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