]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionmodifymirror.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionmodifymirror.h
1 #ifndef RS_ACTIONMODIFYMIRROR_H
2 #define RS_ACTIONMODIFYMIRROR_H
3
4 #include "rs_modification.h"
5 #include "rs_previewactioninterface.h"
6 #include "vector.h"
7
8 /**
9  * This action class can handle user events to mirror entities.
10  *
11  * @author Andrew Mustun
12  */
13 class RS_ActionModifyMirror: public RS_PreviewActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetAxisPoint1, /**< Setting the 1st point of the axis. */
21                         SetAxisPoint2, /**< Setting the 2nd point of the axis. */
22                         ShowDialog /**< Showing the options dialog. */
23                 };
24
25         public:
26                 RS_ActionModifyMirror(RS_EntityContainer & container, RS_GraphicView & graphicView);
27                 ~RS_ActionModifyMirror();
28
29                 virtual void init(int status = 0);
30                 virtual void trigger();
31                 virtual void coordinateEvent(Vector * e);
32                 virtual void mouseMoveEvent(QMouseEvent * e);
33                 virtual void mouseReleaseEvent(QMouseEvent * e);
34                 virtual void updateMouseButtonHints();
35                 virtual void updateMouseCursor();
36                 virtual void updateToolBar();
37
38         private:
39                 RS_MirrorData data;
40                 Vector axisPoint1;
41                 Vector axisPoint2;
42 };
43
44 #endif