Description | Hierarchy | Fields | Methods | Properties |
type TUndoStack = class(TList)
TUndoStack
is used to manage the TUndoItems.
TUndoStack
allows commands to be undone and then redone when they are encapsulated as TUndoItems.
![]() |
FMaxItems: integer; |
![]() |
FUndoToolButton: TToolButton; |
![]() |
FRedoToolButton: TToolButton; |
![]() |
FUndoEvent: TNotifyEvent; |
![]() |
FReDoEvent: TNotifyEvent; |
![]() |
CurrentUndo: integer; |
![]() |
procedure HiddenProcExcept; |
![]() |
procedure SetMaxItems(AMaxItems: integer); |
![]() |
function GetCurrentItem: TUndoItem; |
![]() |
function GetCurrentRedoItem: TUndoItem; |
![]() |
function CanUndo: boolean; |
![]() |
function CanRedo: boolean; |
![]() |
procedure UndoClick(Sender: TObject); |
![]() |
procedure RedoClick(Sender: TObject); |
![]() |
procedure UpdateButtons; |
![]() |
constructor Create(AMaxItems: integer); |
![]() |
procedure Clear; override; |
![]() |
procedure DeleteAndFree(Item: integer); |
![]() |
function Submit(Item: TUndoItem): TStackStatus; |
![]() |
procedure Undo(Num: integer); |
![]() |
procedure Redo(Num: integer); |
![]() |
procedure RemoveLastItem; |
![]() |
procedure SetUndoActions(const UndoAction, RedoAction: TAction); |
![]() |
procedure SetUndoMenuItems(const UndoItem, RedoItem: TMenuItem); |
![]() |
procedure SetUndoToolButtons(const Undo, Redo: TToolButton); |
![]() |
procedure Delete(Index: Integer); |
![]() |
function Add(Item: Pointer): Integer; |
![]() |
procedure Insert(Index: Integer; const S: string); |
![]() |
procedure Move(CurIndex, NewIndex: Integer); |
![]() |
procedure Exchange(Index1, Index2: Integer); |
![]() |
property MaxItems: integer read FMaxItems write SetMaxItems; |
![]() |
property CurrentItem: TUndoItem read GetCurrentItem; |
![]() |
property CurrentRedoItem: TUndoItem read GetCurrentRedoItem; |
![]() |
property UndoToolButton: TToolButton
read FUndoToolButton write FUndoToolButton; |
![]() |
property RedoToolButton: TToolButton
read FRedoToolButton write FRedoToolButton; |
![]() |
property UndoEvent : TNotifyEvent read FUndoEvent; |
![]() |
property ReDoEvent : TNotifyEvent read FReDoEvent; |
![]() |
FMaxItems: integer; |
|
![]() |
FUndoToolButton: TToolButton; |
![]() |
FRedoToolButton: TToolButton; |
![]() |
FUndoEvent: TNotifyEvent; |
![]() |
FReDoEvent: TNotifyEvent; |
![]() |
CurrentUndo: integer; |
|
![]() |
procedure HiddenProcExcept; |
|
![]() |
procedure SetMaxItems(AMaxItems: integer); |
See MaxItems. |
![]() |
function GetCurrentItem: TUndoItem; |
|
![]() |
function GetCurrentRedoItem: TUndoItem; |
|
![]() |
function CanUndo: boolean; |
|
![]() |
function CanRedo: boolean; |
|
![]() |
procedure UndoClick(Sender: TObject); |
|
![]() |
procedure RedoClick(Sender: TObject); |
|
![]() |
procedure UpdateButtons; |
![]() |
constructor Create(AMaxItems: integer); |
|
![]() |
procedure Clear; override; |
|
![]() |
procedure DeleteAndFree(Item: integer); |
|
![]() |
function Submit(Item: TUndoItem): TStackStatus; |
|
![]() |
procedure Undo(Num: integer); |
|
![]() |
procedure Redo(Num: integer); |
|
![]() |
procedure RemoveLastItem; |
|
![]() |
procedure SetUndoActions(const UndoAction, RedoAction: TAction); |
Set the properties of the TActions used for undoing and redoing things. |
![]() |
procedure SetUndoMenuItems(const UndoItem, RedoItem: TMenuItem); |
Set the properties of the TMenuItems used for undoing and redoing things. |
![]() |
procedure SetUndoToolButtons(const Undo, Redo: TToolButton); |
Set the properties of the TToolButtons used for undoing and redoing things. |
![]() |
procedure Delete(Index: Integer); |
|
![]() |
function Add(Item: Pointer): Integer; |
|
![]() |
procedure Insert(Index: Integer; const S: string); |
|
![]() |
procedure Move(CurIndex, NewIndex: Integer); |
|
![]() |
procedure Exchange(Index1, Index2: Integer); |
|
![]() |
property MaxItems: integer read FMaxItems write SetMaxItems; |
|
![]() |
property CurrentItem: TUndoItem read GetCurrentItem; |
|
![]() |
property CurrentRedoItem: TUndoItem read GetCurrentRedoItem; |
|
![]() |
property UndoToolButton: TToolButton
read FUndoToolButton write FUndoToolButton; |
![]() |
property RedoToolButton: TToolButton
read FRedoToolButton write FRedoToolButton; |
![]() |
property UndoEvent : TNotifyEvent read FUndoEvent; |
![]() |
property ReDoEvent : TNotifyEvent read FReDoEvent; |