1 #ifndef __EVENTHANDLER_H__
2 #define __EVENTHANDLER_H__
6 #define RS_MAXACTIONS 16
13 * The event handler owns and manages all actions that are currently
14 * active. All events going from the view to the actions come over
25 void MousePressEvent(QMouseEvent * e);
26 void MouseReleaseEvent(QMouseEvent * e);
27 void MouseMoveEvent(QMouseEvent * e);
28 void MouseLeaveEvent();
29 void MouseEnterEvent();
30 void KeyPressEvent(QKeyEvent * e);
31 void KeyReleaseEvent(QKeyEvent * e);
32 void HandleCommandEvent(GraphicView *, CommandEvent * e);
33 void EnableCoordinateInput();
34 void DisableCoordinateInput();
35 void SetDefaultAction(ActionInterface * action);
36 ActionInterface * GetDefaultAction();
37 void SetCurrentAction(ActionInterface * action);
38 ActionInterface * GetCurrentAction();
39 void KillSelectActions();
40 void KillAllActions();
46 ActionInterface * defaultAction;
47 ActionInterface * currentActions[RS_MAXACTIONS];
49 bool coordinateInputEnabled;
52 #endif // __EVENTHANDLER_H__