Class TUndoEditGridLines

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoEditGridLines = class(TCustomUndoChangeGridDimensions)

Description

TUndoEditGridLines is used to change multiple column, row, and layer positions at one time.

Hierarchy

Overview

Fields

Private FOldColumns: TOneDRealArray;
Private FOldLayerElevations: TOneDRealArray;
Private FOldRows: TOneDRealArray;
Public FNewColumns: TOneDRealArray;
Public FNewLayerElevations: TOneDRealArray;
Public FNewRows: TOneDRealArray ;

Methods

Private procedure ChangeView;
Protected function Description: string; override;
Public constructor Create;
Public procedure DoCommand; override;
Public procedure Undo; override;

Description

Fields

Private FOldColumns: TOneDRealArray;

FOldColumns: TOneDRealArray; FOldColumns is the positions of the column boundaries when the TUndoEditGridLines was created.

Private FOldLayerElevations: TOneDRealArray;

FOldLayerElevations: TOneDRealArray; FOldLayerElevations is the positions of the layer boundaries when the TUndoEditGridLines was created.

Private FOldRows: TOneDRealArray;

FOldRows: TOneDRealArray; FOldRows is the positions of the row boundaries when the TUndoEditGridLines was created.

Public FNewColumns: TOneDRealArray;

FNewColumns: TOneDRealArray; FNewColumns is the new positions of the column boundaries that should be set in DoCommand.

Public FNewLayerElevations: TOneDRealArray;

FNewLayerElevations: TOneDRealArray; FNewLayerElevations is the new positions of the layer boundaries that should be set in DoCommand.

Public FNewRows: TOneDRealArray ;

FNewRows: TOneDRealArray; FNewRows is the new positions of the row boundaries that should be set in DoCommand.

Methods

Private procedure ChangeView;

Set the magnifications so that the grid will fill most of the screen.

Protected function Description: string; override;

See TCustomUndo.Description.

Public constructor Create;

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

Public procedure DoCommand; override;

DoCommand sets the column, row, and layer boundaries to FNewColumns, FNewRows, and FNewLayerElevations. Those must all be set before DoCommand is called.

Public procedure Undo; override;

Undo restores the column, row, and layer boundaries to FOldColumns, FOldRows, and FOldLayerElevations,


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