]> Shamusworld >> Repos - architektonas/blobdiff - src/base/eventhandler.h
Removed Snapper class; still refactoring Snapper/Preview...
[architektonas] / src / base / eventhandler.h
index 4651a8971e947828ea8a2635baeae01bf6e4364d..203e9b4a4ead5c87eaa828acf27bcc08ef7152af 100644 (file)
@@ -2,7 +2,6 @@
 #define __EVENTHANDLER_H__
 
 #include <QtGui>
-#include "enums.h"
 
 #define RS_MAXACTIONS 16
 
@@ -18,35 +17,32 @@ class GraphicView;
 class EventHandler
 {
        public:
-               EventHandler(GraphicView * graphicView);
+               EventHandler();
                ~EventHandler();
 
-               void back();
-               void enter();
-               void mousePressEvent(QMouseEvent * e);
-               void mouseReleaseEvent(QMouseEvent * e);
-               void mouseMoveEvent(QMouseEvent * e);
-               void mouseLeaveEvent();
-               void mouseEnterEvent();
-               void keyPressEvent(QKeyEvent * e);
-               void keyReleaseEvent(QKeyEvent * e);
-               void commandEvent(CommandEvent * e);
-               void enableCoordinateInput();
-               void disableCoordinateInput();
-               void setDefaultAction(ActionInterface * action);
-               ActionInterface * getDefaultAction();
-               void setCurrentAction(ActionInterface * action);
-               ActionInterface * getCurrentAction();
-               void killSelectActions();
-               void killAllActions();
-               bool hasAction();
-               void cleanUp();
-               void debugActions();
-               void setSnapMode(RS2::SnapMode sm);
-               void setSnapRestriction(RS2::SnapRestriction sr);
+               void Back();
+               void Enter();
+               void MousePressEvent(QMouseEvent * e);
+               void MouseReleaseEvent(QMouseEvent * e);
+               void MouseMoveEvent(QMouseEvent * e);
+               void MouseLeaveEvent();
+               void MouseEnterEvent();
+               void KeyPressEvent(QKeyEvent * e);
+               void KeyReleaseEvent(QKeyEvent * e);
+               void HandleCommandEvent(GraphicView *, CommandEvent * e);
+               void EnableCoordinateInput();
+               void DisableCoordinateInput();
+               void SetDefaultAction(ActionInterface * action);
+               ActionInterface * GetDefaultAction();
+               void SetCurrentAction(ActionInterface * action);
+               ActionInterface * GetCurrentAction();
+               void KillSelectActions();
+               void KillAllActions();
+               bool HasAction();
+               void CleanUp();
+               void DebugActions();
 
        protected:
-               GraphicView * graphicView;
                ActionInterface * defaultAction;
                ActionInterface * currentActions[RS_MAXACTIONS];
                int actionIndex;