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

Public Functions#

Type Name
SBCUndoEvent (Type type, SBCUndoCommand * undoCommand, SBCUndoStack * undoStack)
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 ()

Public Static Functions#

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

Protected Attributes#

Type Name
SBCUndoEventData * dataPointer

Public Types Documentation#

enum Type#

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

Public Functions Documentation#

function SBCUndoEvent#

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#

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#

SBCUndoEventData* dataPointer;