]> Shamusworld >> Repos - architektonas/blob - src/actions/actionzoompan.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionzoompan.h
1 #ifndef __ACTIONZOOMPAN_H__
2 #define __ACTIONZOOMPAN_H__
3
4 #include "actioninterface.h"
5
6 /**
7  * This action class can handle user events to zoom in a window.
8  *
9  * @author James Hammons
10  * @author Andrew Mustun
11  */
12 class ActionZoomPan: public ActionInterface
13 {
14         public:
15                 ActionZoomPan(EntityContainer & container, GraphicView & graphicView);
16                 ~ActionZoomPan();
17
18                 virtual void init(int status = 0);
19                 virtual void trigger();
20                 virtual void mouseMoveEvent(QMouseEvent * e);
21                 virtual void mousePressEvent(QMouseEvent * e);
22                 virtual void mouseReleaseEvent(QMouseEvent * e);
23                 virtual void updateMouseCursor();
24
25         protected:
26                 int x1;
27                 int y1;
28                 int x2;
29                 int y2;
30 };
31
32 #endif  // __ACTIONZOOMPAN_H__