Class TUndoMoveLayer

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoMoveLayer = class(TUndoDeleteLayer)

Description

TUndoMoveLayer is used for moving a layer boundary.

Hierarchy

Overview

Fields

Private FNewLayer: integer;
Private FNewLayerElevation: real;

Methods

Protected function Description: string; override;
Public constructor Create(const ALayer: integer; const NewPosition: real);
Public procedure DoCommand; override;
Public procedure Undo; override;

Description

Fields

Private FNewLayer: integer;

FNewLayer: integer; FNewLayer is the index of the layer after being moved.

Private FNewLayerElevation: real;

FNewLayerElevation: real; FNewLayerElevation is the position of the layer after being moved.

Methods

Protected function Description: string; override;

See TCustomUndo.Description.

Public constructor Create(const ALayer: integer; const NewPosition: real);

Create creates an instance of TUndoMoveLayer.

Parameters
ALayer
is the index of the layer boundary to be moved.
NewPosition
is the position of that layer after being moved.
Public procedure DoCommand; override;

DoCommand moves the layer.

Public procedure Undo; override;

Undo moves the layer back where it was.


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