Class TUndoChangeDataSets

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoChangeDataSets = class(TCustomUndo)

Description

TUndoChangeDataSets is used to add, delete, and change the properties of TDataArrays.

Hierarchy

Overview

Fields

Private FDeletedDataSets: TList;
Private FNewDataSets: TList;
Private FOldDataSetProperties: TList;
Private FNewDataSetProperties: TList;

Methods

Private procedure StoreData;
Private procedure ClearExpressionsAndVariables;
Private procedure SetProperties(AddedDataSets, DeletedDataSets, DataSetProperties: TList);
Protected function Description: string; override;
Public Constructor Create;
Public function DataSetsChanged: boolean;
Public Destructor Destroy; override;
Public procedure DoCommand; override;
Public procedure Undo; override;

Description

Fields

Private FDeletedDataSets: TList;

FDeletedDataSets contains the TDataArrays to be deleted.

Private FNewDataSets: TList;

FNewDataSets contains the TDataArrays to be addead.

Private FOldDataSetProperties: TList;

FOldDataSetProperties is implemented as a TObjectList. It is used to store a series of instances of TPhastDataSetStorage for old properties of TDataArrays or TCustomPhastDataSets.

Private FNewDataSetProperties: TList;

FNewDataSetProperties is implemented as a TObjectList. It is used to store a series of instances of TPhastDataSetStorage for new properties of TDataArrays or TCustomPhastDataSets.

Methods

Private procedure StoreData;

StoreData stores the current state of frmGoPhast.Model.DataSets and the new values to be assigned.

Private procedure ClearExpressionsAndVariables;

ClearExpressionsAndVariables clears expressions and variables in frmGoPhast.

Private procedure SetProperties(AddedDataSets, DeletedDataSets, DataSetProperties: TList);

SetProperties sets the properties of the TDataArrays.

Parameters
AddedDataSets
the new data sets that have been created.
DeletedDataSets
the existing data sets that have been deleted.
DataSetProperties
stores a series of TPhastDataSetStorage that store the properties of the TDataArrays.
Protected function Description: string; override;

Description describes what TUndoChangeDataSets does.

Public Constructor Create;

Create creates and instance of TUndoChangeDataSets

Public function DataSetsChanged: boolean;

DataSetsChanged returns True if any of the TDataArrays has changed;

Public Destructor Destroy; override;

Destroy destroys the current instance of TUndoChangeDataSets. Do not call Destroy directly. Call Free instead.

Public procedure DoCommand; override;

DoCommand does the command for the first time.

Public procedure Undo; override;

Undo undoes the command.


Generated by PasDoc 0.10.0 on 2006-10-31 09:56:34