]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionzoomwindow.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionzoomwindow.h
1 #ifndef RS_ACTIONZOOMWINDOW_H
2 #define RS_ACTIONZOOMWINDOW_H
3
4 #include "rs_previewactioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events to zoom in a window.
9  *
10  * @author Andrew Mustun
11  */
12 class RS_ActionZoomWindow: public RS_PreviewActionInterface
13 {
14         public:
15                 RS_ActionZoomWindow(RS_EntityContainer & container, RS_GraphicView & graphicView, bool keepAspectRatio = true);
16                 ~RS_ActionZoomWindow();
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 updateMouseButtonHints();
24                 virtual void updateMouseCursor();
25
26         protected:
27                 Vector v1;
28                 Vector v2;
29
30                 bool keepAspectRatio;
31 };
32
33 #endif