#include <Command.h>
Inherits Command.
Inherited by SparseModel< PointType >::EditCommand.
Inheritance diagram for MacroCommand:


Definition at line 32 of file Command.h.
Public Member Functions | |
| MacroCommand (QString name) | |
| virtual | ~MacroCommand () |
| virtual void | addCommand (Command *command) |
| virtual void | deleteCommand (Command *command) |
| virtual bool | haveCommands () const |
| virtual void | execute () |
| virtual void | unexecute () |
| virtual QString | getName () const |
| virtual void | setName (QString name) |
Protected Attributes | |
| QString | m_name |
| std::vector< Command * > | m_commands |
| MacroCommand::MacroCommand | ( | QString | name | ) |
Definition at line 18 of file Command.cpp.
| MacroCommand::~MacroCommand | ( | ) | [virtual] |
| void MacroCommand::addCommand | ( | Command * | command | ) | [virtual] |
Reimplemented in SparseModel< PointType >::EditCommand.
Definition at line 31 of file Command.cpp.
References m_commands.
Referenced by SparseModel< PointType >::EditCommand::addCommand(), CommandHistory::addToBundle(), and CommandHistory::addToCompound().
| void MacroCommand::deleteCommand | ( | Command * | command | ) | [virtual] |
Definition at line 37 of file Command.cpp.
References m_commands.
Referenced by SparseModel< PointType >::EditCommand::addCommand().
| bool MacroCommand::haveCommands | ( | ) | const [virtual] |
Definition at line 51 of file Command.cpp.
References m_commands.
Referenced by CommandHistory::endCompoundOperation().
| void MacroCommand::execute | ( | ) | [virtual] |
| void MacroCommand::unexecute | ( | ) | [virtual] |
| QString MacroCommand::getName | ( | ) | const [virtual] |
Implements Command.
Definition at line 73 of file Command.cpp.
References m_name.
Referenced by CommandHistory::startCompoundOperation().
| void MacroCommand::setName | ( | QString | name | ) | [virtual] |
QString MacroCommand::m_name [protected] |
std::vector<Command *> MacroCommand::m_commands [protected] |
Definition at line 50 of file Command.h.
Referenced by SparseModel< PointType >::EditCommand::addCommand(), addCommand(), deleteCommand(), execute(), SparseModel< PointType >::EditCommand::finish(), haveCommands(), unexecute(), and ~MacroCommand().
1.5.1