svcore  1.9
MacroCommand Class Reference

#include <Command.h>

Inheritance diagram for MacroCommand:
Collaboration diagram for MacroCommand:

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
 

Detailed Description

Definition at line 35 of file Command.h.

Constructor & Destructor Documentation

◆ MacroCommand()

MacroCommand::MacroCommand ( QString  name)

Definition at line 19 of file Command.cpp.

◆ ~MacroCommand()

MacroCommand::~MacroCommand ( )
virtual

Definition at line 24 of file Command.cpp.

References m_commands.

Member Function Documentation

◆ addCommand()

void MacroCommand::addCommand ( Command command)
virtual

Reimplemented in SparseModel< PointType >::EditCommand.

Definition at line 32 of file Command.cpp.

References m_commands.

Referenced by SparseModel< PointType >::EditCommand::addCommand().

◆ deleteCommand()

void MacroCommand::deleteCommand ( Command command)
virtual

Definition at line 38 of file Command.cpp.

References m_commands.

◆ haveCommands()

bool MacroCommand::haveCommands ( ) const
virtual

Definition at line 52 of file Command.cpp.

References m_commands.

◆ execute()

void MacroCommand::execute ( )
virtual

Implements Command.

Definition at line 58 of file Command.cpp.

References m_commands.

◆ unexecute()

void MacroCommand::unexecute ( )
virtual

Implements Command.

Definition at line 66 of file Command.cpp.

References m_commands.

◆ getName()

QString MacroCommand::getName ( ) const
virtual

Implements Command.

Reimplemented in BundleCommand.

Definition at line 74 of file Command.cpp.

References m_name.

◆ setName()

void MacroCommand::setName ( QString  name)
virtual

Definition at line 80 of file Command.cpp.

References m_name.

Member Data Documentation

◆ m_name

QString MacroCommand::m_name
protected

Definition at line 52 of file Command.h.

Referenced by getName(), BundleCommand::getName(), and setName().

◆ m_commands

std::vector<Command *> MacroCommand::m_commands
protected

The documentation for this class was generated from the following files: