]> Shamusworld >> Repos - architektonas/blob - src/actions/actionsetrelativezero.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionsetrelativezero.h
1 #ifndef __ACTIONSETRELATIVEZERO_H__
2 #define __ACTIONSETRELATIVEZERO_H__
3
4 #include "actioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events to set the relative Zero point. It
9  * overrides but retains the locking of the relative Zero.
10  *
11  * @author James Hammons
12  * @author Ulf Lehnert
13  */
14 class ActionSetRelativeZero: public ActionInterface
15 {
16         public:
17                 ActionSetRelativeZero(EntityContainer & container, GraphicView & graphicView);
18                 ~ActionSetRelativeZero();
19
20                 virtual RS2::ActionType rtti();
21                 virtual void trigger();
22                 virtual void mouseMoveEvent(QMouseEvent * e);
23                 virtual void mouseReleaseEvent(QMouseEvent * e);
24                 virtual void coordinateEvent(Vector * e);
25                 virtual void updateMouseButtonHints();
26                 virtual void updateMouseCursor();
27                 virtual void updateToolBar();
28
29         private:
30                 Vector pt;
31 };
32
33 #endif  // __ACTIONSETRELATIVEZERO_H__