]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionzoomin.h
Initial import
[architektonas] / src / actions / rs_actionzoomin.h
1 #ifndef RS_ACTIONZOOMIN_H
2 #define RS_ACTIONZOOMIN_H
3
4 #include "rs_actioninterface.h"
5
6 /**
7  * This action triggers zoom increase.
8  *
9  * @author Andrew Mustun
10  */
11 class RS_ActionZoomIn : public RS_ActionInterface
12 {
13         //Q_OBJECT
14         public:
15                 RS_ActionZoomIn(RS_EntityContainer& container, RS_GraphicView& graphicView,
16                         RS2::ZoomDirection direction = RS2::In, RS2::Axis axis = RS2::Both,
17                         const Vector& center = Vector(false));
18                 ~RS_ActionZoomIn() {}
19
20                 static QAction * createGUIAction(RS2::ActionType type, QObject * /*parent*/);
21
22                 virtual void init(int status = 0);
23                 virtual void trigger();
24
25         protected:
26                 RS2::ZoomDirection direction;
27                 RS2::Axis axis;
28                 Vector center;
29 };
30
31 #endif