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