1 #ifndef BALL_VIEW_KERNEL_MODES_INTERACTIONMODE_H
2 #define BALL_VIEW_KERNEL_MODES_INTERACTIONMODE_H
6 #include <QtCore/QPoint>
7 #include <QtCore/QSize>
8 #include <QtCore/QObject>
32 virtual void keyPressEvent(QKeyEvent* evt);
33 virtual void keyReleaseEvent(QKeyEvent* evt);
35 virtual void mouseDoubleClickEvent(
QMouseEvent* evt);
40 virtual void wheelEvent(QWheelEvent* evt);
42 virtual void addToolBarEntries(QToolBar* tb);
45 virtual Qt::Key getKey()
const = 0;
46 virtual QString
getName()
const = 0;
48 virtual void deactivate();
49 virtual void activate();
51 void setMouseSensitivity(
float sens);
53 QAction* getMainAction();
61 void modeChangeSlot_();
73 virtual void mouseMoveEventImpl_ (
QMouseEvent* evt);
74 virtual void mousePressEventImpl_ (
QMouseEvent* evt);
75 virtual void mouseReleaseEventImpl_(
QMouseEvent* evt);
77 float getXDiff_()
const;
78 float getYDiff_()
const;
85 #endif //BALL_VIEW_KERNEL_MODES_INTERACTIONMODE_H
virtual void populateContextMenu(QMenu *)
float mouse_wheel_sensitivity_
void setCurrent(bool current)