#include <Command.h>

Inheritance diagram for MacroCommand:
Inheritance graph
Collaboration diagram for MacroCommand:
Collaboration graph

Public Member Functions

 MacroCommand (QString name)
 
virtual ~MacroCommand ()
 
virtual void addCommand (Command *command)
 
virtual void deleteCommand (Command *command)
 
virtual bool haveCommands () const
 
void execute () override
 
void unexecute () override
 
QString getName () const override
 
virtual void setName (QString name)
 

Protected Attributes

QString m_name
 
std::vector< Command * > m_commands
 

Detailed Description

Definition at line 86 of file Command.h.

Constructor & Destructor Documentation

MacroCommand::MacroCommand ( QString  name)

Definition at line 19 of file Command.cpp.

MacroCommand::~MacroCommand ( )
virtual

Definition at line 24 of file Command.cpp.

References m_commands.

Member Function Documentation

void MacroCommand::addCommand ( Command command)
virtual

Reimplemented in ChangeEventsCommand.

Definition at line 32 of file Command.cpp.

References m_commands.

Referenced by ChangeEventsCommand::addCommand().

void MacroCommand::deleteCommand ( Command command)
virtual

Definition at line 38 of file Command.cpp.

References m_commands.

bool MacroCommand::haveCommands ( ) const
virtual

Definition at line 52 of file Command.cpp.

References m_commands.

void MacroCommand::execute ( )
overridevirtual

Implements Command.

Definition at line 58 of file Command.cpp.

References m_commands.

void MacroCommand::unexecute ( )
overridevirtual

Implements Command.

Definition at line 66 of file Command.cpp.

References m_commands.

QString MacroCommand::getName ( ) const
overridevirtual

Implements Command.

Reimplemented in BundleCommand.

Definition at line 74 of file Command.cpp.

References m_name.

void MacroCommand::setName ( QString  name)
virtual

Definition at line 80 of file Command.cpp.

References m_name.

Member Data Documentation

QString MacroCommand::m_name
protected

Definition at line 103 of file Command.h.

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

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

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