Class TUndoPasteScreenObjects

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoPasteScreenObjects = class(TCustomImportMultipleScreenObjects)

Description

no description available, TCustomImportMultipleScreenObjects description follows
no description available, TUndoChangeSelection description follows

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;
    

Hierarchy

Overview

Fields

Private FOldChildModelScreenObjects: TList;

Methods

Protected function Description: string; override;
Public constructor Create;
Public destructor Destroy; override;
Public procedure StoreNewScreenObjects(const ListOfScreenObjects: TList); override;
Public procedure DoCommand; override;
Public procedure Undo; override;
Public procedure Redo; override;

Description

Fields

Private FOldChildModelScreenObjects: TList;
 

Methods

Protected function Description: string; override;

Description describes what this TUndoPasteScreenObjects does. It is used in menu captions and hints.

Public constructor Create;
 
Public destructor Destroy; override;
 
Public procedure StoreNewScreenObjects(const ListOfScreenObjects: TList); override;
 
Public procedure DoCommand; override;
 
Public procedure Undo; override;
 
Public procedure Redo; override;
 

Generated by PasDoc 0.12.1 on 2013-05-13 15:42:06