Class TUndoMoveScreenObject

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TUndoMoveScreenObject = class(TCustomUpdateScreenObjectUndo)

Description

TUndoMoveScreenObject moves one or more TScreenObjects or points within them.

Hierarchy

Overview

Fields

Private FCanMoveScreenObject: array of Boolean;
Private FDirection: TViewDirection;
Private FX: double;
Private FY: double;

Methods

Private procedure Move(const XOffset, YOffset: double; const Undoing: boolean);
Protected function Description: string; override;
Public constructor Create(const X, Y: double; const ADirection: TViewDirection);
Public procedure DoCommand; override;
Public procedure Redo; override;
Public procedure Undo; override;

Description

Fields

Private FCanMoveScreenObject: array of Boolean;

FCanMoveScreenObject: array of Boolean; each element of FCanMoveScreenObject indicates whether the corresponding TScreenObject can be moved.

Private FDirection: TViewDirection;

FDirection: TViewDirection; FDirection indicates the TViewDirection of the TScreenObjects that will be moved.

Private FX: double;

FX: double; FX is the distance in the X direction that the TScreenObjects will be moved.

Private FY: double;

FY: double; FY is the distance in the Y direction that the TScreenObjects will be moved.

Methods

Private procedure Move(const XOffset, YOffset: double; const Undoing: boolean);

Move moves TScreenObjects by the amount XOffset, YOffset.

Protected function Description: string; override;

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

Public constructor Create(const X, Y: double; const ADirection: TViewDirection);

Create creates an instance of TUndoMoveScreenObject.

Parameters
X
is the distance in the X direction that the selected TScreenObjects or the selected points in the selected TScreenObject should be moved.
Y
is the distance in the Y direction that the selected TScreenObjects or the selected points in the selected TScreenObject should be moved.
ADirection
is the TViewDirection of the TScreenObjects that should be moved.
Public procedure DoCommand; override;

DoCommand moves the selected TScreenObjects or the selected points in the selected TScreenObject.

Public procedure Redo; override;

Redo calls DoCommand.

Public procedure Undo; override;

Undo reverses the movement of the selected TScreenObjects or the selected points in the selected TScreenObject.


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