BundleCommand is a MacroCommand whose name includes a note of how many commands it contains. More...

#include <Command.h>

Inheritance diagram for BundleCommand:
Inheritance graph
Collaboration diagram for BundleCommand:
Collaboration graph

Public Member Functions

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

Protected Attributes

QString m_name
 
std::vector< Command * > m_commands
 

Detailed Description

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.

Definition at line 112 of file Command.h.

Constructor & Destructor Documentation

BundleCommand::BundleCommand ( QString  name)

Definition at line 85 of file Command.cpp.

BundleCommand::~BundleCommand ( )
virtual

Definition at line 90 of file Command.cpp.

Member Function Documentation

QString BundleCommand::getName ( ) const
overridevirtual

Reimplemented from MacroCommand.

Definition at line 95 of file Command.cpp.

References MacroCommand::m_commands, and MacroCommand::m_name.

void MacroCommand::addCommand ( Command command)
virtualinherited

Reimplemented in ChangeEventsCommand.

Definition at line 32 of file Command.cpp.

References MacroCommand::m_commands.

Referenced by ChangeEventsCommand::addCommand().

void MacroCommand::deleteCommand ( Command command)
virtualinherited

Definition at line 38 of file Command.cpp.

References MacroCommand::m_commands.

bool MacroCommand::haveCommands ( ) const
virtualinherited

Definition at line 52 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::execute ( )
overridevirtualinherited

Implements Command.

Definition at line 58 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::unexecute ( )
overridevirtualinherited

Implements Command.

Definition at line 66 of file Command.cpp.

References MacroCommand::m_commands.

void MacroCommand::setName ( QString  name)
virtualinherited

Definition at line 80 of file Command.cpp.

References MacroCommand::m_name.

Member Data Documentation

QString MacroCommand::m_name
protectedinherited

Definition at line 103 of file Command.h.

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


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