]> Shamusworld >> Repos - architektonas/blob - src/actions/actionmodifyrotate.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionmodifyrotate.h
1 #ifndef __ACTIONMODIFYROTATE_H__
2 #define __ACTIONMODIFYROTATE_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 move entities.
10  *
11  * @author James Hammons
12  * @author Andrew Mustun
13  */
14 class ActionModifyRotate: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         SetReferencePoint, /**< Setting the reference point. */
22                         ShowDialog /**< Showing the options dialog. */
23                 };
24
25         public:
26                 ActionModifyRotate(EntityContainer & container, GraphicView & graphicView);
27                 ~ActionModifyRotate();
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 updateMouseButtonHints();
35                 virtual void updateMouseCursor();
36                 virtual void updateToolBar();
37
38         private:
39                 RotateData data;
40                 Vector referencePoint;
41                 Vector targetPoint;
42 };
43
44 #endif  // __ACTIONMODIFYROTATE_H__