]> Shamusworld >> Repos - architektonas/blob - src/actions/actionlockrelativezero.h
Bugfixes related to removing Snapper class.
[architektonas] / src / actions / actionlockrelativezero.h
1 #ifndef __ACTIONLOCKRELATIVEZERO_H__
2 #define __ACTIONLOCKRELATIVEZERO_H__
3
4 #include "actioninterface.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 James Hammons
12  * @author Ulf Lehnert
13  */
14 class ActionLockRelativeZero: public ActionInterface
15 {
16         public:
17                 ActionLockRelativeZero(EntityContainer & container, GraphicView & graphicView, bool on);
18                 ~ActionLockRelativeZero();
19
20                 virtual void init(int status = 0);
21                 virtual void trigger();
22
23         private:
24                 bool on;
25 };
26
27 #endif  // __ACTIONLOCKRELATIVEZERO_H__