Class 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.
function SB_DECLARE_DATA#
function getType#
Returns the undo event type.
function getUndoCommand#
Returns a pointer to the undo command.
function getUndoStack#
Returns a pointer to the undo stack.
function print#
Print debugging information.
function ~SBCUndoEvent#
Destructs the undo event.
Public Static Functions Documentation#
function getTypeString#
Returns the undo event type as a string.
Protected Attributes Documentation#
variable dataPointer#
A pointer to the private data.