Class SBCUndoCommandGroup#
ClassList > SBCUndoCommandGroup
This class describes a group of undo commands. More...
#include "SBCUndoCommandGroup.hpp"
Inherits the following classes: SBCUndoCommand
Public Functions#
Type | Name |
---|---|
SB_DECLARE_DATA (SBCUndoCommandGroup) |
|
virtual std::string | getName () override const Returns the undo command group's name. |
virtual bool | isCommand () override const Returns whether it is an undo command - returns false __ |
virtual bool | isCommandGroup () override const Returns whether it is an undo command group - returns true __ |
virtual void | print (unsigned int offset=0) override const Prints debugging information. |
Public Functions inherited from SBCUndoCommand#
See SBCUndoCommand
Type | Name |
---|---|
SB_DECLARE_DATA (SBCUndoCommand) |
|
virtual std::string | getName () const Returns the undo command's name. |
SBCUndoCommand * | getParent () const Returns the undo command's parent. |
virtual bool | isCommand () const Returns whether it is an undo command - returns true __ |
virtual bool | isCommandGroup () const Returns whether it is an undo command group - returns false __ |
bool | isDone () const Returns whether the undo command is done. |
virtual void | print (unsigned int offset=0) const Prints debugging information. |
virtual | ~SBCUndoCommand () Destructs the undo command. |
Protected Attributes inherited from SBCUndoCommand#
See SBCUndoCommand
Type | Name |
---|---|
SBCUndoCommandData * | dataPointer A pointer to the private data. |
Protected Functions#
Type | Name |
---|---|
SBCUndoCommandGroup (const std::string & n) Protected constructor. |
|
virtual void | addChild (SBCUndoCommand * undoCommand) override Adds a child undo command to the undo command group. |
virtual unsigned int | getNumberOfCommands () override const Returns the number of commands in the undo command group. |
virtual void | redo () override Redo the operation. |
virtual void | undo () override Undo the operation. |
virtual | ~SBCUndoCommandGroup () Destructor. |
Protected Functions inherited from SBCUndoCommand#
See SBCUndoCommand
Type | Name |
---|---|
SBCUndoCommand () Protected constructor. |
|
SBCUndoCommand (SBCUndoCommandData * dataPointer) Protected constructor. |
|
virtual void | addChild (SBCUndoCommand * undoCommand) Adds a child undo command to an undo command group, does nothing for an undo command. |
virtual unsigned int | getNumberOfCommands () const Returns the number of undo commands in an undo command group or 1 for an undo command. |
virtual void | redo () Redo the operation. |
virtual void | undo () Undo the operation. |
Detailed Description#
Short name: SBUndoCommandGroup
Public Functions Documentation#
function SB_DECLARE_DATA#
function getName#
Returns the undo command group's name.
Implements SBCUndoCommand::getName
function isCommand#
Returns whether it is an undo command - returns false
__
Implements SBCUndoCommand::isCommand
function isCommandGroup#
Returns whether it is an undo command group - returns true
__
Implements SBCUndoCommand::isCommandGroup
function print#
Prints debugging information.
Implements SBCUndoCommand::print
Protected Functions Documentation#
function SBCUndoCommandGroup#
Protected constructor.
function addChild#
Adds a child undo command to the undo command group.
Implements SBCUndoCommand::addChild
function getNumberOfCommands#
Returns the number of commands in the undo command group.
Implements SBCUndoCommand::getNumberOfCommands
function redo#
Redo the operation.
Implements SBCUndoCommand::redo
function undo#
Undo the operation.
Implements SBCUndoCommand::undo
function ~SBCUndoCommandGroup#
Destructor.