]> Shamusworld >> Repos - architektonas/blob - src/actions/actionselectintersected.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionselectintersected.h
1 #ifndef __ACTIONSELECTINTERSECTED_H__
2 #define __ACTIONSELECTINTERSECTED_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events to select all entities.
9  *
10  * @author James Hammons
11  * @author Andrew Mustun
12  */
13 class ActionSelectIntersected: public ActionInterface
14 {
15         public:
16                 /**
17                  * Action States.
18                  */
19                 enum Status {
20                         SetPoint1, /**< Setting the 1st corner of the window.  */
21                         SetPoint2 /**< Setting the 2nd corner of the window. */
22                 };
23
24         public:
25                 ActionSelectIntersected(EntityContainer & container, GraphicView & graphicView, bool select);
26                 ~ActionSelectIntersected();
27
28                 virtual RS2::ActionType rtti();
29                 virtual void init(int status = 0);
30                 virtual void trigger();
31                 virtual void mouseMoveEvent(QMouseEvent * e);
32                 virtual void mousePressEvent(QMouseEvent * e);
33                 virtual void mouseReleaseEvent(QMouseEvent * e);
34                 virtual void updateMouseButtonHints();
35                 virtual void updateMouseCursor();
36                 virtual void updateToolBar();
37
38         protected:
39                 Vector v1;
40                 Vector v2;
41
42                 bool select;
43 };
44
45 #endif  // __ACTIONSELECTINTERSECTED_H__