5 #include <nano-signal-slot/nano_signal_slot.hpp>
16 operation::Undoable_SPtr undoable = std::dynamic_pointer_cast<
operation::Undoable>(
event.operation());
18 if (undoable.get() !=
nullptr) {
24 operation::Undoable_SPtr undoable =
_reDoables.top();
45 operation::Undoable_SPtr undoable =
_reDoables.top();
53 operation::Undoable_SPtr undoable =
_unDoables.back();
virtual bool canRedo() const
Check if redo can be done.
virtual void redo()
redo an operation.
: Abstract class for a Undoable operations All operations you wnt to beable to get place in the undo ...
std::vector< operation::Undoable_SPtr > _unDoables
Undo list.
virtual void undo()
undo an operation.
virtual void removeUndoables()
Clears the Undo/Redo stack.
const unsigned int _maximumUndoLevels
Maximum undo level.
std::stack< operation::Undoable_SPtr > _reDoables
Redo stack.
UndoManagerImpl(unsigned int maximumUndoLevels)
void on_CommitProcessEvent(const lc::CommitProcessEvent &event)
virtual bool canUndo() const
Check if undo can be done.