]> Shamusworld >> Repos - architektonas/blob - src/actions/actionmodifyscale.h
Last checkin before major refactor...
[architektonas] / src / actions / actionmodifyscale.h
1 #ifndef __ACTIONMODIFYSCALE_H__
2 #define __ACTIONMODIFYSCALE_H__
3
4 #include "rs_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 ActionModifyScale: 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                 ActionModifyScale(RS_EntityContainer & container, GraphicView & graphicView);
27                 ~ActionModifyScale();
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 updateMouseButtonHints();
34                 virtual void updateMouseCursor();
35                 virtual void updateToolBar();
36
37         private:
38                 RS_ScaleData data;
39                 Vector referencePoint;
40                 Vector targetPoint;
41 };
42
43 #endif  // __ACTIONMODIFYSCALE_H__