]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionmodifyrotate2.h
Refactoring: Moved RS_GraphicView to GraphicView.
[architektonas] / src / actions / rs_actionmodifyrotate2.h
1 #ifndef RS_ACTIONMODIFYROTATE2_H
2 #define RS_ACTIONMODIFYROTATE2_H
3
4 #include "rs_modification.h"
5 #include "rs_previewactioninterface.h"
6
7 /**
8  * This action class can handle user events to rotate entities around
9  * two entities.
10  *
11  * @author Andrew Mustun
12  */
13 class RS_ActionModifyRotate2: public RS_PreviewActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetReferencePoint1, /**< Setting the reference point. */
21                         SetReferencePoint2, /**< Setting the target point. */
22                         ShowDialog /**< Showing the options dialog. */
23                 };
24
25         public:
26                 RS_ActionModifyRotate2(RS_EntityContainer & container, GraphicView & graphicView);
27                 ~RS_ActionModifyRotate2();
28
29                 virtual void init(int status = 0);
30                 virtual void trigger();
31                 virtual void mouseMoveEvent(QMouseEvent * e);
32                 virtual void mouseReleaseEvent(QMouseEvent * e);
33                 virtual void coordinateEvent(Vector * e);
34                 virtual void commandEvent(RS_CommandEvent * e);
35                 virtual QStringList getAvailableCommands();
36                 virtual void updateMouseButtonHints();
37                 virtual void updateMouseCursor();
38                 virtual void updateToolBar();
39
40         private:
41                 RS_Rotate2Data data;
42 };
43
44 #endif