]> Shamusworld >> Repos - architektonas/blob - actionsetsnaprestriction.h
8bbca94dfbed24f32522658ddb220b1b2ed61053
[architektonas] / actionsetsnaprestriction.h
1 #ifndef __ACTIONSETSNAPRESTRICTION_H__
2 #define __ACTIONSETSNAPRESTRICTION_H__
3
4 #include "rs.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(RS_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__