Class TMovingGridBoundaryTool

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TMovingGridBoundaryTool = class(TCustomGridCursorTool)

Description

TMovingGridBoundaryTool is used to move a column, row, or layer boundary.

Hierarchy

Overview

Fields

Private FMovingColumn: boolean;
Private FMovingLayer: boolean;
Private FMovingRow: boolean;
Protected FColumnBeingMoved: integer;
Protected FCurrentX: integer;
Protected FCurrentY: integer;
Protected FLayerBeingMoved: integer;
Protected FRowBeingMoved: integer;

Methods

Private procedure SetMovingColumn(const Value: boolean);
Private procedure SetMovingLayer(const Value: boolean);
Private procedure SetMovingRow(const Value: boolean);
Protected procedure BeginFrontMove(X, Y: Integer);
Protected procedure BeginSideMove(X, Y: Integer);
Protected procedure BeginTopMove(X, Y: Integer);
Protected function GetHint: string; override;
Protected function GetSelectedCursor: TCursor; override;
Protected procedure MoveColumnOrLayer(X, Y: Integer);
Protected procedure MoveColumnOrRow(X, Y: Integer);
Protected procedure MoveRowOrLayer(X, Y: Integer);
Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
Public procedure Activate; override;
Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;
Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;
Public procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

Properties

Protected property MovingColumn: boolean read FMovingColumn write SetMovingColumn;
Protected property MovingLayer: boolean read FMovingLayer write SetMovingLayer;
Protected property MovingRow: boolean read FMovingRow write SetMovingRow;

Description

Fields

Private FMovingColumn: boolean;

See MovingColumn.

Private FMovingLayer: boolean;

See MovingLayer.

Private FMovingRow: boolean;

See MovingRow.

Protected FColumnBeingMoved: integer;

FColumnBeingMoved: integer; FColumnBeingMoved is the index of the column boundary being moved.

Protected FCurrentX: integer;

Name is the X-coordinate of the cursor. It is set in MouseMove and used in GetSelectedCursor.

Protected FCurrentY: integer;

Name is the Y-coordinate of the cursor. It is set in MouseMove and used in GetSelectedCursor.

Protected FLayerBeingMoved: integer;

FLayerBeingMoved: integer; FLayerBeingMoved is the index of the layer boundary being moved.

Protected FRowBeingMoved: integer;

FRowBeingMoved: integer; FRowBeingMoved is the index of the row boundary being moved.

Methods

Private procedure SetMovingColumn(const Value: boolean);

See MovingColumn.

Private procedure SetMovingLayer(const Value: boolean);

See MovingLayer.

Private procedure SetMovingRow(const Value: boolean);

See MovingRow.

Protected procedure BeginFrontMove(X, Y: Integer);

BeginFrontMove starts to move a column or layer on the front view of the model.

Protected procedure BeginSideMove(X, Y: Integer);

BeginSideMove starts to move a row or layer on the side view of the model.

Protected procedure BeginTopMove(X, Y: Integer);

BeginTopMove starts to move a column or row on the top view of the model.

Protected function GetHint: string; override;

Used to define Hint

Protected function GetSelectedCursor: TCursor; override;

GetSelectedCursor returns the correct cursor for the top, front, or side view of the model when the cursor is over a column, row, or layer boundary is is moving a column, row, or layer boundary.

Protected procedure MoveColumnOrLayer(X, Y: Integer);

MoveColumnOrLayer moves a column or layer on the front view of the model.

Protected procedure MoveColumnOrRow(X, Y: Integer);

MoveColumnOrRow moves a column or row on the top view of the model.

Protected procedure MoveRowOrLayer(X, Y: Integer);

MoveRowOrLayer moves a row or layer on the side view of the model.

Protected procedure DrawOnBitMap32(Sender: TObject; Buffer: TBitmap32); override;
 
Public procedure Activate; override;
 
Public procedure MouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseDown starts to move a column, row, or layer boundary.

Public procedure MouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer); override;

MouseMove sets the cursor.

Public procedure MouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

MouseUp moves the column, row, or layer boundary.

Public procedure RightClick(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer); override;

RightClick aborts movement.

Properties

Protected property MovingColumn: boolean read FMovingColumn write SetMovingColumn;

MovingColumn indicates that a column boundary is being moved.

Protected property MovingLayer: boolean read FMovingLayer write SetMovingLayer;

MovingLayer indicates that a layer boundary is being moved.

Protected property MovingRow: boolean read FMovingRow write SetMovingRow;

MovingRow indicates that a row boundary is being moved.


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