]> Shamusworld >> Repos - architektonas/blob - src/actions/actionmodifymove.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionmodifymove.h
1 #ifndef __ACTIONMODIFYMOVE_H__
2 #define __ACTIONMODIFYMOVE_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 ActionModifyMove: public ActionInterface
15 {
16         public:
17                 /**
18                  * Action States.
19                  */
20                 enum Status {
21                         SetReferencePoint, /**< Setting the reference point. */
22                         SetTargetPoint, /**< Setting the target point. */
23                         ShowDialog /**< Showing the options dialog. */
24                 };
25
26         public:
27                 ActionModifyMove(EntityContainer & container, GraphicView & graphicView);
28                 ~ActionModifyMove();
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 updateMouseButtonHints();
36                 virtual void updateMouseCursor();
37                 virtual void updateToolBar();
38
39         private:
40                 MoveData data;
41                 Vector referencePoint;
42                 Vector targetPoint;
43 };
44
45 #endif  // __ACTIONMODIFYMOVE_H__