Class TUndoRearrangeScreenObjects

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoRearrangeScreenObjects = class(TCustomUpdateScreenObjectUndo)

Description

TUndoRearrangeScreenObjects is used to change the order of TScreenObjects and to rename them.

Hierarchy

Overview

Fields

Private FList: TScreenObjectList;
Private FNames: TStringList;
Public FNewList: TScreenObjectList;
Public FNewNames: TStringList;

Methods

Protected function Description: string; override;
Protected procedure SetOrder(const ScreenObjectList: TScreenObjectList; const NameList: TStringList);
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;
Public constructor Create;
Public destructor Destroy; override;

Description

Fields

Private FList: TScreenObjectList;

FList is a list of the TScreenObjects in their original order. All the TScreenObjects must be included in FList.

Private FNames: TStringList;

FNames is a list of the names of the TScreenObjects in their original order. All the names must be included in FNames.

Public FNewList: TScreenObjectList;

FNewList is a list of the TScreenObjects in their new order. All the TScreenObjects must be included in FNewList.

Public FNewNames: TStringList;

FNewNames is a list of the names of the TScreenObjects in their new order. All the names must be included in FNewNames.

Methods

Protected function Description: string; override;

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

Protected procedure SetOrder(const ScreenObjectList: TScreenObjectList; const NameList: TStringList);

SetOrder Changes the order of the TScreenObjects to

Public procedure DoCommand; override;

DoCommand sets the order of the TScreenObjects to be the order specified in FNewList and the names to be the names specified in FNewNames.

Public procedure Redo; override;

Redo calls DoCommand.

Public procedure Undo; override;

Undo restores the order and names of the TScreenObjects to be the order order and names.

Public constructor Create;

Create creates an instance of TUndoRearrangeScreenObjects and initializes the private fields.

Public destructor Destroy; override;

Destroy destroys the current instance of TUndoRearrangeScreenObjects. Do not call Destroy directly. Call free instead.


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