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