]> Shamusworld >> Repos - architektonas/blob - src/actions/rs_actioneditundo.h
Initial import
[architektonas] / src / actions / rs_actioneditundo.h
1 #ifndef RS_ACTIONEDITUNDO_H
2 #define RS_ACTIONEDITUNDO_H
3
4 #include "rs_actioninterface.h"
5 #include "rs_undo.h"
6
7 /**
8  * This action class can handle user events for undo / redo.
9  *
10  * @author Andrew Mustun
11  */
12 class RS_ActionEditUndo : public RS_ActionInterface
13 {
14         //Q_OBJECT
15         public:
16                 RS_ActionEditUndo(bool undo, RS_EntityContainer & container,
17                         RS_GraphicView & graphicView);
18                 ~RS_ActionEditUndo();
19
20                 static QAction * createGUIAction(RS2::ActionType type, QObject * parent);
21
22                 virtual void init(int status = 0);
23                 virtual void trigger();
24
25         protected:
26                 /** Undo (true) or redo (false) */
27                 bool undo;
28 };
29
30 #endif