CommandExecutor — The base class for the document Command exector.
class CommandExecutor (SimpleWrappedObjectSernaApi::SimpleWrappedObject) : # construct/copy/destruct __init__(SernaApiBase * = 0) __del__() # public member functions Command executeAndAdd(const Command &) Command undo() Command redo() bool isModified() const Command lastDone() const Command firstChild() const Command lastChild() const Command getChild(int) const int countChildren() const None appendChild(const Command &) None removeAllChildren()
CommandExecutor
public member functionsCommand executeAndAdd(const Command & command)
Executes command and adds it to undo/redo stack.
Command undo()
Undo (unexecute) the command.
Command redo()
Redo (re-execute) the command.
Checks if there are any executed/added commands.
Command lastDone() const
Returns last executed command.
Command firstChild() const
Command lastChild() const
Command getChild(int n) const