virtual ~CommandHistory()
dtor.
const PanoCommand * getLastCommand() const
return the last PanoCommand
std::string getLastCommandName() const
returns the name of the last command
bool canRedo() const
Return true iff there is a command to redo.
void clearRedoQueue()
clear all commands in the redo queue
void addCommand(PanoCommand *command, bool execute=true)
Adds a command to the history.
void clear()
Erases all the undo/redo history.
bool canUndo() const
Return true iff there is a command to undo.
virtual void redo()
Redoes the last undone action.
std::vector< PanoCommand * > commands