13 #ifndef mitkLimitedLinearUndo_h
14 #define mitkLimitedLinearUndo_h
23 #pragma GCC visibility push(default)
24 #include <itkEventObject.h>
25 #pragma GCC visibility pop
43 itkFactorylessNewMacro(
Self);
56 bool Undo(
bool)
override;
60 virtual bool Undo(
int oeid);
70 bool Redo(
bool)
override;
74 virtual bool Redo(
int oeid);
78 void Clear()
override;
82 void ClearRedoList()
override;
86 bool RedoListEmpty()
override;
93 std::size_t GetUndoLimit()
const override;
101 void SetUndoLimit(std::size_t limit)
override;
106 int GetLastObjectEventIdInList()
override;
111 int GetLastGroupEventIdInList()
override;
138 std::size_t m_UndoLimit;
142 #pragma GCC visibility push(default)
155 #pragma GCC visibility pop