]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionzoompan.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionzoompan.h
1 #ifndef RS_ACTIONZOOMPAN_H
2 #define RS_ACTIONZOOMPAN_H
3
4 #include "rs_actioninterface.h"
5
6 /**
7  * This action class can handle user events to zoom in a window.
8  *
9  * @author Andrew Mustun
10  */
11 class RS_ActionZoomPan: public RS_ActionInterface
12 {
13         public:
14                 RS_ActionZoomPan(RS_EntityContainer & container, RS_GraphicView & graphicView);
15                 ~RS_ActionZoomPan();
16
17                 virtual void init(int status = 0);
18                 virtual void trigger();
19                 virtual void mouseMoveEvent(QMouseEvent * e);
20                 virtual void mousePressEvent(QMouseEvent * e);
21                 virtual void mouseReleaseEvent(QMouseEvent * e);
22                 virtual void updateMouseCursor();
23
24         protected:
25                 int x1;
26                 int y1;
27                 int x2;
28                 int y2;
29 };
30
31 #endif