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