#ifndef RS_EVENTHANDLER_H
#define RS_EVENTHANDLER_H
-#include "rs_actioninterface.h"
+#include <QtGui>
+#include "rs.h"
#define RS_MAXACTIONS 16
-class RS_ActionInterface;
+class ActionInterface;
+class RS_CommandEvent;
class GraphicView;
/**
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(RS_CommandEvent * e);
void enableCoordinateInput();
void disableCoordinateInput();
-
- void setDefaultAction(RS_ActionInterface * action);
- RS_ActionInterface * getDefaultAction();
-
- void setCurrentAction(RS_ActionInterface * action);
- RS_ActionInterface * getCurrentAction();
-
+ 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;
- RS_ActionInterface * defaultAction;
- RS_ActionInterface * currentActions[RS_MAXACTIONS];
+ ActionInterface * defaultAction;
+ ActionInterface * currentActions[RS_MAXACTIONS];
int actionIndex;
bool coordinateInputEnabled;
};