Name

CommandExecutor — The base class for the document Command exector.

Synopsis

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() 

Description

CommandExecutor construct/copy/destruct

  1. __init__(SernaApiBase * = 0)


  2. __del__()


CommandExecutor public member functions

  1. Command executeAndAdd(const Command & command)

    Executes command and adds it to undo/redo stack.


  2. Command undo()

    Undo (unexecute) the command.


  3. Command redo()

    Redo (re-execute) the command.


  4. bool isModified() const

    Checks if there are any executed/added commands.


  5. Command lastDone() const

    Returns last executed command.


  6. Command firstChild() const


  7. Command lastChild() const


  8. Command getChild(int n) const


  9. int countChildren() const


  10. None appendChild(const Command & )


  11. None removeAllChildren()