]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actionlockrelativezero.h
146d65414fe90854045ffe85d8860294177fb8e9
[architektonas] / src / actions / rs_actionlockrelativezero.h
1 #ifndef RS_ACTIONLOCKRELATIVEZERO_H
2 #define RS_ACTIONLOCKRELATIVEZERO_H
3
4 #include "rs_previewactioninterface.h"
5
6 /**
7  * This action class can handle user events to lock or unlock
8  * the relative Zero point.
9  * It overrides but retains the locking of the relative Zero.
10  *
11  * @author Ulf Lehnert
12  */
13 class RS_ActionLockRelativeZero: public RS_ActionInterface
14 {
15         public:
16                 RS_ActionLockRelativeZero(RS_EntityContainer & container, RS_GraphicView & graphicView, bool on);
17                 ~RS_ActionLockRelativeZero();
18
19                 virtual void init(int status = 0);
20                 virtual void trigger();
21
22         private:
23                 bool on;
24 };
25
26 #endif