]> Shamusworld >> Repos - architektonas/blob - src/actions/actioninfodist2.h
In the middle of major refactoring...
[architektonas] / src / actions / actioninfodist2.h
1 #ifndef __ACTIONINFODIST2_H__
2 #define __ACTIONINFODIST2_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 class RS_Entity;
8
9 /**
10  * This action class can handle user events to measure distances between
11  * entities and points.
12  *
13  * @author James Hammons
14  * @author Andrew Mustun
15  */
16 class ActionInfoDist2: public ActionInterface
17 {
18         public:
19                 /**
20                  * Action States.
21                  */
22                 enum Status {
23                         SetEntity,    /**< Setting the entity. */
24                         SetPoint      /**< Setting the point of the distance. */
25                 };
26
27         public:
28                 ActionInfoDist2(RS_EntityContainer & container, GraphicView & graphicView);
29                 ~ActionInfoDist2();
30
31                 virtual void init(int status = 0);
32                 virtual void trigger();
33                 virtual void mouseMoveEvent(QMouseEvent * e);
34                 virtual void mouseReleaseEvent(QMouseEvent * e);
35                 virtual void coordinateEvent(Vector * e);
36                 virtual void updateMouseButtonHints();
37                 virtual void updateMouseCursor();
38                 virtual void updateToolBar();
39
40         private:
41                 RS_Entity * entity;
42                 Vector point;
43 };
44
45 #endif  // __ACTIONINFODIST2_H__