svcore
1.9
|
BundleCommand is a MacroCommand whose name includes a note of how many commands it contains. More...
#include <Command.h>
Public Member Functions | |
BundleCommand (QString name) | |
virtual | ~BundleCommand () |
virtual QString | getName () const |
virtual void | addCommand (Command *command) |
virtual void | deleteCommand (Command *command) |
virtual bool | haveCommands () const |
virtual void | execute () |
virtual void | unexecute () |
virtual void | setName (QString name) |
Protected Attributes | |
QString | m_name |
std::vector< Command * > | m_commands |
BundleCommand is a MacroCommand whose name includes a note of how many commands it contains.
It is a QObject with Q_OBJECT macro so that it can do plural-sensitive translations.
BundleCommand::BundleCommand | ( | QString | name | ) |
Definition at line 85 of file Command.cpp.
BundleCommand::~BundleCommand | ( | ) | [virtual] |
Definition at line 90 of file Command.cpp.
QString BundleCommand::getName | ( | ) | const [virtual] |
Reimplemented from MacroCommand.
Definition at line 95 of file Command.cpp.
References MacroCommand::m_commands, and MacroCommand::m_name.
void MacroCommand::addCommand | ( | Command * | command | ) | [virtual, inherited] |
Reimplemented in SparseModel< PointType >::EditCommand.
Definition at line 32 of file Command.cpp.
References MacroCommand::m_commands.
Referenced by SparseModel< PointType >::EditCommand::addCommand().
void MacroCommand::deleteCommand | ( | Command * | command | ) | [virtual, inherited] |
Definition at line 38 of file Command.cpp.
References MacroCommand::m_commands.
bool MacroCommand::haveCommands | ( | ) | const [virtual, inherited] |
Definition at line 52 of file Command.cpp.
References MacroCommand::m_commands.
void MacroCommand::execute | ( | ) | [virtual, inherited] |
void MacroCommand::unexecute | ( | ) | [virtual, inherited] |
void MacroCommand::setName | ( | QString | name | ) | [virtual, inherited] |
Definition at line 80 of file Command.cpp.
References MacroCommand::m_name.
QString MacroCommand::m_name [protected, inherited] |
Definition at line 52 of file Command.h.
Referenced by MacroCommand::getName(), getName(), and MacroCommand::setName().
std::vector<Command *> MacroCommand::m_commands [protected, inherited] |
Definition at line 53 of file Command.h.
Referenced by MacroCommand::addCommand(), MacroCommand::deleteCommand(), MacroCommand::execute(), getName(), MacroCommand::haveCommands(), MacroCommand::unexecute(), and MacroCommand::~MacroCommand().