Class TCustomImportMultipleScreenObjects

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TCustomImportMultipleScreenObjects = class(TUndoChangeSelection)

Description

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

Protected FNewScreenObjects: TList;

Methods

Protected procedure UnDeleteNewScreenObjects;
Protected procedure DeleteNewScreenObjects;
Public Destructor Destroy; override;
Public procedure StoreNewScreenObjects(const ListOfScreenObjects: TList); virtual;
Public procedure UpdateScreenObject(const AScreenObject: TScreenObject);
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;

Description

Fields

Protected FNewScreenObjects: TList;

FNewScreenObjects holds the newly imported TScreenObjects.

Methods

Protected procedure UnDeleteNewScreenObjects;
 
Protected procedure DeleteNewScreenObjects;
 
Public Destructor Destroy; override;
 
Public procedure StoreNewScreenObjects(const ListOfScreenObjects: TList); virtual;

StoreNewScreenObjects deselects all the existing TScreenObjects, creates FNewScreenObjects and puts the contents of ListOfScreenObjects in FNewScreenObjects.

Public procedure UpdateScreenObject(const AScreenObject: TScreenObject);
 
Public procedure DoCommand; override;
 
Public procedure Redo; override;
 
Public procedure Undo; override;
 

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