Web Analytics Made Easy - Statcounter
Skip to content

Class SBCUndoEvent#

ClassList > SBCUndoEvent

This class describes an event of the undo manager.

  • #include "SBCUndoEvent.hpp"

Public Types#

Type Name
enum Type
Available undo event types.

Public Functions#

Type Name
SBCUndoEvent (Type type, SBCUndoCommand * undoCommand, SBCUndoStack * undoStack)
Constructs the undo event.
SB_DECLARE_DATA (SBCUndoEvent)
Type getType () const
Returns the undo event type.
SBCUndoCommand * getUndoCommand () const
Returns a pointer to the undo command.
SBCUndoStack * getUndoStack () const
Returns a pointer to the undo stack.
virtual void print (unsigned int offset=0) const
Print debugging information.
virtual ~SBCUndoEvent ()
Destructs the undo event.

Public Static Functions#

Type Name
std::string getTypeString (Type type)
Returns the undo event type as a string.

Protected Attributes#

Type Name
SBCUndoEventData * dataPointer
A pointer to the private data.

Public Types Documentation#

enum Type#

Available undo event types.

enum SBCUndoEvent::Type {
    Undefined = 0,
    CommandAdded = 1,
    CommandRemoved = 2,
    CommandDisabled = 3,
    NextCommandIndexChanged = 4
};


Public Functions Documentation#

function SBCUndoEvent#

Constructs the undo event.

SBCUndoEvent::SBCUndoEvent (
    Type type,
    SBCUndoCommand * undoCommand,
    SBCUndoStack * undoStack
) 


function SB_DECLARE_DATA#

SBCUndoEvent::SB_DECLARE_DATA (
    SBCUndoEvent
) 

function getType#

Returns the undo event type.

Type SBCUndoEvent::getType () const


function getUndoCommand#

Returns a pointer to the undo command.

SBCUndoCommand * SBCUndoEvent::getUndoCommand () const


function getUndoStack#

Returns a pointer to the undo stack.

SBCUndoStack * SBCUndoEvent::getUndoStack () const


function print#

Print debugging information.

virtual void SBCUndoEvent::print (
    unsigned int offset=0
) const


function ~SBCUndoEvent#

Destructs the undo event.

virtual SBCUndoEvent::~SBCUndoEvent () 


Public Static Functions Documentation#

function getTypeString#

Returns the undo event type as a string.

static std::string SBCUndoEvent::getTypeString (
    Type type
) 


Protected Attributes Documentation#

variable dataPointer#

A pointer to the private data.

SBCUndoEventData* SBCUndoEvent::dataPointer;