#define __EVENTHANDLER_H__
#include <QtGui>
-#include "rs.h"
+#include "enums.h"
#define RS_MAXACTIONS 16
class ActionInterface;
-class RS_CommandEvent;
+class CommandEvent;
class GraphicView;
/**
* active. All events going from the view to the actions come over
* this class.
*/
-class RS_EventHandler
+class EventHandler
{
public:
- RS_EventHandler(GraphicView * graphicView);
- ~RS_EventHandler();
+ EventHandler(GraphicView * graphicView);
+ ~EventHandler();
void back();
void enter();
void mouseEnterEvent();
void keyPressEvent(QKeyEvent * e);
void keyReleaseEvent(QKeyEvent * e);
- void commandEvent(RS_CommandEvent * e);
+ void commandEvent(CommandEvent * e);
void enableCoordinateInput();
void disableCoordinateInput();
void setDefaultAction(ActionInterface * action);