Sourceforge.net - The VCF's Project Host
   The VCF Website Home   |   Online Discussion Forums   |   Sourceforge.net Project Page   

VCF::CommandGroup Class Reference

Class CommandGroup documentation. More...

#include <vcf/ApplicationKit/CommandGroup.h>

Inheritance diagram for VCF::CommandGroup:

VCF::AbstractCommand VCF::Object VCF::Command List of all members.

Public Member Functions

 CommandGroup ()
virtual ~CommandGroup ()
virtual void undo ()
 Undo the command.
virtual void redo ()
 redo the command.
virtual void execute ()
 execute the command.
void addCommand (Command *command)

Protected Attributes

std::vector< Command * > commands_

Detailed Description

Class CommandGroup documentation.


Constructor & Destructor Documentation

VCF::CommandGroup::CommandGroup  ) 
 

virtual VCF::CommandGroup::~CommandGroup  )  [virtual]
 


Member Function Documentation

void VCF::CommandGroup::addCommand Command command  )  [inline]
 

virtual void VCF::CommandGroup::execute  )  [virtual]
 

execute the command.

Usually called by the UndoRedoStack after the command has been added to it.

Implements VCF::Command.

virtual void VCF::CommandGroup::redo  )  [virtual]
 

redo the command.

Generally the same, or similar, code as performed in the execute() method

Implements VCF::Command.

virtual void VCF::CommandGroup::undo  )  [virtual]
 

Undo the command.

Implements VCF::Command.


Member Data Documentation

std::vector<Command*> VCF::CommandGroup::commands_ [protected]
 


The documentation for this class was generated from the following file:
   Comments or Suggestions?    License Information