Click or drag to resize

IMcUndoStack Interface

An interface implementing an Undo-Redo manager

Namespace:  MediaCy.IQL.Engine
Assembly:  MediaCy.IQL.Engine (in MediaCy.IQL.Engine.dll) Version: 10.0.6912.0
Syntax
VB
Public Interface IMcUndoStack

The IMcUndoStack type exposes the following members.

Properties
  NameDescription
Public propertyCanRedo
Read-only property, checks whether or not a Redo may be performed.
Public propertyCanUndo
Read-only property, checks whether or not an Undo may be performed.
Public propertyDisabled
Read-write property, allows the freezing of Push, Undo or Redo operations the undo-redo manager.
Public propertyMaxSize
Reflects and sets the maximum number of undo states kept.
Public propertyRedoTopStateContext
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateDescription
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateID
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateOperation
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateOwner
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateUndoable
Read-only property providing the atributes of the top state of the stack
Public propertyRedoTopStateValue
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateContext
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateDescription
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateID
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateOperation
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateOwner
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateUndoable
Read-only property providing the atributes of the top state of the stack
Public propertyUndoTopStateValue
Read-only property providing the atributes of the top state of the stack
Top
Methods
  NameDescription
Public methodFlush
Drops all states in the Undo stack, and the Redo stack
Public methodPopRedo
Drops the top state of the Redo stack without performing the redo
Public methodPopUndo
Drops the top state of the Undo stack without performing the undo
Public methodCode examplePush
Saves the state of an undoable object for a future Undo operation.
Public methodRedo
Will save the undoable on top of the Undo stack, update the undoable with the top of the Redo stack, and drop the top of the Redo stack. The operation will fail if the Redo stack is empty. This function will fire two events: AboutToRedo and RedoDone.
Public methodUndo
Will save the undoable on top of the Redo stack, update the undoable with the top of the Undo stack, and drop the top of the Undo stack. This function will fire two events: AboutToUndo and UndoDone.
Top
Remarks
It uses an Undo and a Redo stack, internally to store the history of states of the undoables Push saves a state in the Undo stack Undo saves the undoable in the Redo stack, update the undoable with the top of the Undo stack, and drops the top of the Undo stack (similar, but reverse for Redo) The property MaxSize defines the maximum number of states held by both the Undo and the Redo stack CanUndo and CanRedo, respectively test the presence of states in the Undo and Redo stack. The Undo-Redo manager can be set to an insensitive mode, where all functions (except read-only properties) return without doing anything. A set of read-only properties gives access to all the attributes of the top state of the Undo stack, and the top state of the Redo stack. When this object is attached to an image (IMcImage.UndoStack), the undo context (ordering and stored information) is relative to the image.
See Also