]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionsetrelativezero.h
Major refactoring of actions: Moved implementation from header files
[architektonas] / src / actions / rs_actionsetrelativezero.h
1 #ifndef RS_ACTIONSETRELATIVEZERO_H
2 #define RS_ACTIONSETRELATIVEZERO_H
3
4 #include "rs_previewactioninterface.h"
5 #include "vector.h"
6
7 /**
8  * This action class can handle user events to set
9  * the relative Zero point.
10  * It overrides but retains the locking of the relative Zero.
11  *
12  * @author Ulf Lehnert
13  */
14 class RS_ActionSetRelativeZero: public RS_PreviewActionInterface
15 {
16         public:
17                 RS_ActionSetRelativeZero(RS_EntityContainer & container, RS_GraphicView & graphicView);
18                 ~RS_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