Methods |
AddAction(theAction as pbsw_UndoAction) [Public] |
|
adds theAction as a new undoable action
if the UndoCenter is already holding the maximum levels of undo that it can, the oldest one will be bumped
|
|
AddToLastUndoableAction(theObjectActionType as integer, theObject as pbsw_CopyableObject) [Public] |
|
adds another object (theObject) to the last added action
theObjectActionType is the type of action the object needs undone
(see the constants for pbsw_UndoObject for the description of supported types)
|
|
Constructor(theMaxUndo as integer) [Public] |
|
creates a new undo center with the maximum number of undos/redos equal to "theMaxUndo"
|
|
GetRedoMenuText() as string [Public] |
|
returns the text for the "Redo" menu for the next action to be redone
|
|
GetUndoMenuText() as string [Public] |
|
returns the text for the "Undo" menu for the next action to be undone
|
|
NewUndoableAction(theObjectActionType as integer, theObject as pbsw_CopyableObject, theMenuText as string, undoReversed as boolean = false, redoReversed as boolean = false) [Public] |
|
(This is a convenience function that performs the creation of the pbsw_UndoObject and pbsw_UndoAction for a single object and action all in one fell swoop.)
creates a new undoable action
theObjectActionType is the type of action the object needs undone
(see the constants for pbsw_UndoObject for the description of supported types)
theObject is the object needing undo information stored
theMenuText is the text that will be added to the "Undo" and "Redo" menus to describe the action
set undoReversed to true if the objects should be undone in reverse order
set redoReversed to true if the objects should be redone in reverse order
NOTE: undoReversed and redoReversed are flags for your own informational purposes - internal operation is not changed with the setting of these flags
|
|
Redo() as pbsw_UndoAction [Public] |
|
returns the next action to be redone, and adjusts the undo / redo stack appropriately for the next actions
|
|
RedoStackCount() as integer [Public] |
|
returns the number of actions in the redo stack
|
|
SetMaxUndo(theMaxUndo as integer) [Public] |
|
sets the maximum number of steps that can be undone/redone
|
|
Undo() as pbsw_UndoAction [Public] |
|
'] returns the next action to be undone, and adjusts the undo / redo stack appropriately for the next actions
|
|
UndoStackCount() as integer [Public] |
|
returns the number of actions in the undo stack
|
|