5 #ifndef __uiundomanager__ 6 #define __uiundomanager__ 8 #include "../../lib/vstguibase.h" 10 #if VSTGUI_LIVE_EDITING 12 #include "../../lib/idependency.h" 21 class UIUndoManager :
public CBaseObject,
protected std::list<IAction*>,
public IDependency
25 ~UIUndoManager ()
override;
27 void pushAndPerform (IAction* action);
29 UTF8StringPtr getUndoName ();
30 UTF8StringPtr getRedoName ();
37 void startGroupAction (UTF8StringPtr name);
38 void endGroupAction ();
39 void cancelGroupAction ();
43 void markSavePosition ();
44 bool isSavePosition ()
const;
46 static IdStringPtr kMsgChanged;
49 iterator savePosition;
50 using GroupActionDeque = std::deque<UIGroupAction*>;
51 GroupActionDeque groupQueue;
56 #endif // VSTGUI_LIVE_EDITING 58 #endif // __uiundomanager__ Definition: customcontrols.cpp:8