| Description | Hierarchy | Fields | Methods | Properties |
type TUndoChangeSelection = class(TCustomUndo)
TUndoChangeSelection is used to change or restore which TScreenObjects or vertices in an individual TScreenObject are selected.
To use, Create a TUndoChangeSelection, change the TScreenObjects that are selected, and call SetPostSelection. Then Undo and Redo can be used to restore or redo the changes in what is selected.
UndoChangeSelection := TUndoChangeSelection.Create;
try
// Change the selected TScreenObjects here.
UndoChangeSelection.SetPostSelection;
if UndoChangeSelection.SelectionChanged then
begin
frmGoPhast.UndoStack.Submit(UndoChangeSelection);
end
else
begin
UndoChangeSelection.Free;
end;
except
UndoChangeSelection.Free;
raise;
end;
![]() |
FNewSelectedVertices: T2DBoolArray; |
![]() |
FNewSelectedScreenObjects: TList; |
![]() |
FOldSelectedVertices: T2DBoolArray; |
![]() |
FOldSelectedScreenObjects: TList; |
![]() |
procedure ResetSelection(const ScreenObjects: TList; const SelectedVertices: T2DBoolArray); |
![]() |
procedure SetPriorSelection; |
![]() |
procedure SetSelection(const ScreenObjects: TList; var SelectedVertices: T2DBoolArray); |
![]() |
function Description: string; override; |
![]() |
constructor Create; |
![]() |
destructor Destroy; override; |
![]() |
procedure DoCommand; override; |
![]() |
procedure Redo; override; |
![]() |
function SelectionChanged: boolean; |
![]() |
procedure SetPostSelection; |
![]() |
procedure Undo; override; |
![]() |
FNewSelectedVertices: T2DBoolArray; |
|
| |
![]() |
FNewSelectedScreenObjects: TList; |
|
| |
![]() |
FOldSelectedVertices: T2DBoolArray; |
|
| |
![]() |
FOldSelectedScreenObjects: TList; |
|
| |
![]() |
procedure ResetSelection(const ScreenObjects: TList; const SelectedVertices: T2DBoolArray); |
|
| |
![]() |
procedure SetPriorSelection; |
|
| |
![]() |
procedure SetSelection(const ScreenObjects: TList; var SelectedVertices: T2DBoolArray); |
|
| |
![]() |
function Description: string; override; |
|
Description tells what TUndoChangeSelection does. | |
![]() |
constructor Create; |
|
Create creates an instance of TUndoChangeSelection and stores the selected TScreenObjects. | |
![]() |
destructor Destroy; override; |
|
Destroy gets rid of the instance of TUndoChangeSelection. | |
![]() |
procedure DoCommand; override; |
|
DoCommand causes the paint boxes showing the selected TScreenObjects to be invalidated. | |
![]() |
procedure Redo; override; |
|
Redo sets the selection to what it was when SetPostSelection was called. | |
![]() |
function SelectionChanged: boolean; |
|
SelectionChanged indicates whether or not the selection changed. | |
![]() |
procedure SetPostSelection; |
|
| |
![]() |
procedure Undo; override; |
|
Undo sets the selection to what it was when the TUndoChangeSelection was created. | |