]> Shamusworld >> Repos - architektonas/blob - src/actions/actionsetsnaprestriction.h
Fixed problem with MDI activation.
[architektonas] / src / actions / actionsetsnaprestriction.h
1 #ifndef __ACTIONSETSNAPRESTRICTION_H__
2 #define __ACTIONSETSNAPRESTRICTION_H__
3
4 #include "enums.h"
5 #include "actioninterface.h"
6
7 /**
8  * This action changes the current additional snap mode.
9  *
10  * @author James Hammons
11  * @author Andrew Mustun
12  */
13 class ActionSetSnapRestriction: public ActionInterface
14 {
15         public:
16                 ActionSetSnapRestriction(EntityContainer & container, GraphicView & graphicView, RS2::SnapRestriction snapRes);
17                 ~ActionSetSnapRestriction();
18
19                 virtual void init(int status = 0);
20                 virtual void trigger();
21
22         protected:
23                 RS2::SnapRestriction snapRes;
24 };
25
26 #endif  // __ACTIONSETSNAPRESTRICTION_H__