]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionmodifyrotate.h
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionmodifyrotate.h
1 #ifndef RS_ACTIONMODIFYROTATE_H
2 #define RS_ACTIONMODIFYROTATE_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 move entities.
10  *
11  * @author Andrew Mustun
12  */
13 class RS_ActionModifyRotate: public RS_PreviewActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetReferencePoint, /**< Setting the reference point. */
21                         ShowDialog /**< Showing the options dialog. */
22                 };
23
24         public:
25                 RS_ActionModifyRotate(RS_EntityContainer & container, GraphicView & graphicView);
26                 ~RS_ActionModifyRotate();
27
28                 virtual void init(int status = 0);
29                 virtual void trigger();
30                 virtual void mouseMoveEvent(QMouseEvent * e);
31                 virtual void mouseReleaseEvent(QMouseEvent * e);
32                 virtual void coordinateEvent(Vector * e);
33                 virtual void updateMouseButtonHints();
34                 virtual void updateMouseCursor();
35                 virtual void updateToolBar();
36
37         private:
38                 RS_RotateData data;
39                 Vector referencePoint;
40                 Vector targetPoint;
41 };
42
43 #endif