MacroCommand Class Reference

#include <Command.h>

Inherits Command.

Inherited by SparseModel< PointType >::EditCommand.

Inheritance diagram for MacroCommand:

Inheritance graph
[legend]
Collaboration diagram for MacroCommand:

Collaboration graph
[legend]
List of all members.

Detailed Description

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


Constructor & Destructor Documentation

MacroCommand::MacroCommand ( QString  name  ) 

Definition at line 18 of file Command.cpp.

MacroCommand::~MacroCommand (  )  [virtual]

Definition at line 23 of file Command.cpp.

References m_commands.


Member Function Documentation

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]

Implements Command.

Definition at line 57 of file Command.cpp.

References m_commands.

void MacroCommand::unexecute (  )  [virtual]

Implements Command.

Definition at line 65 of file Command.cpp.

References m_commands.

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]

Definition at line 79 of file Command.cpp.

References m_name.


Member Data Documentation

QString MacroCommand::m_name [protected]

Definition at line 49 of file Command.h.

Referenced by getName(), and setName().

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


The documentation for this class was generated from the following files:
Generated on Wed Feb 20 15:45:33 2008 for SonicVisualiser by  doxygen 1.5.1