Undo/redo history manager for graph commands.
bool CanRedo() const
Check if redo is available.
std::string GetRedoDescription() const
Get description of next redo command.
std::vector< GraphCommandPtr > m_redoStack
bool ExecuteCommand(GraphCommandPtr command)
Execute a new command and add it to history.
void Clear()
Clear all undo/redo history.
bool Redo()
Redo the last undone command.
std::vector< GraphCommandPtr > m_undoStack
bool CanUndo() const
Check if undo is available.
std::string GetUndoDescription() const
Get description of next undo command.