Class TfrmGoPhast

DescriptionHierarchyFieldsMethodsProperties

Unit

Declaration

type TfrmGoPhast = class(TUndoForm)

Description

TfrmGoPhast is the type of frmGoPhast which is the main form of GoPhast.

TfrmGoPhast has tool bars and a menu to control the operation of GoPhast. The main part of the form is occupied by three TframeViews which display top, front, and side views of the model. Most of the user interaction with the spatial data in the model is through the three TframeViews. A status bar sbMain on TfrmGoPhast displays messages to the user.

See frmGoPhast.

Hierarchy

Overview

Fields

Published acAddColumn: TAction;
Published acAddRow: TAction;
Published acColor: TAction;
Published acColoredGrid: TAction;
Published acCopy: TAction;
Published acCreateLine: TAction;
Published acCreatePoint: TAction;
Published acCreatePolygon: TAction;
Published acCreateRectangle: TAction;
Published acCreateStraightLine: TAction;
Published acCut: TAction;
Published acDeleteColumnRow: TAction;
Published acDeleteSegment: TAction;
Published acEditDataSets: TAction;
Published acEditGridLines: TAction;
Published acEditVerticalExaggeration: TAction;
Published acExit: TAction;
Published acExportPhastInputFile: TAction;
Published acFileNew: TAction;
Published acFileOpen: TAction;
Published acFilePrint: TAction;
Published acFileSave: TAction;
Published acFileSaveAs: TAction;
Published acFont: TAction;
Published acGenerateGrid: TAction;
Published acGridAngle: TAction;
Published acGridDragRotate: TAction;
Published acHelpContents: THelpContents;
Published acHelpTopicSearch: THelpTopicSearch;
Published acInsertNode: TAction;
Published acMoveColumnOrRow: TAction;
Published acMoveTo: TAction;
Published acPan: TAction;
Published acPaste: TAction;
Published acRestoreDefaultView: TAction;
Published acSelectAll: TAction;
Published acSelectNode: TAction;
Published acSelectObjects: TAction;
Published acSelectWithLasso: TAction;
Published acSetSpacing: TAction;
Published acShow3DObjects: TAction;
Published acShowFrontGrid: TAction;
Published acShowGridShell: TAction;
Published acShowHideObjects: TAction;
Published acShowSideGrid: TAction;
Published acShowTopGrid: TAction;
Published acSmoothGrid: TAction;
Published acSubdivide: TAction;
Published acZoom: TAction;
Published acZoomIn: TAction;
Published acZoomOut: TAction;
Published alActionList: TActionList;
Published cbControlBar: TControlBar;
Published cdColorDialog: TColorDialog;
Published dcAddColCursor: TQRbwDynamicCursor;
Published dcAddRowCursor: TQRbwDynamicCursor;
Published dcMoveColCursor: TQRbwDynamicCursor;
Published dcMoveRowCursor: TQRbwDynamicCursor;
Published dcSetSpacing: TQRbwDynamicCursor;
Published dcSubdivide: TQRbwDynamicCursor;
Published fdFontDialog: TFontDialog;
Published frame3DView: Tframe3DView;
Published frameFrontView: TframeView;
Published frameSideView: TframeView;
Published frameTopView: TframeView;
Published ilImageList: TImageList;
Published mi3D_Colors: TMenuItem;
Published miAbout: TMenuItem;
Published miAddHorizontalGridLine: TMenuItem;
Published miAddVerticalGridLine: TMenuItem;
Published miChangeStyle: TMenuItem;
Published miChemistryOptions: TMenuItem;
Published miColor: TMenuItem;
Published miColorGrid: TMenuItem;
Published miContents: TMenuItem;
Published miCopy: TMenuItem;
Published miCreateLine: TMenuItem;
Published miCreatePoint: TMenuItem;
Published miCreatePolygon: TMenuItem;
Published miCreateRectangle: TMenuItem;
Published miCreateStraightLine: TMenuItem;
Published miCustomize: TMenuItem;
Published miCut: TMenuItem;
Published miData: TMenuItem;
Published miDeleteGridLine: TMenuItem;
Published miDeleteSegment: TMenuItem;
Published miDragtoRotate: TMenuItem;
Published miEdit: TMenuItem;
Published miEditBitmaps: TMenuItem;
Published miEditDataSet: TMenuItem;
Published miEditGridLines: TMenuItem;
Published miEditSelectedObjects: TMenuItem;
Published miExamples: TMenuItem;
Published miExit: TMenuItem;
Published miExport: TMenuItem;
Published miFile: TMenuItem;
Published miFont: TMenuItem;
Published miFreeSurface: TMenuItem;
Published miGenerateGrid: TMenuItem;
Published miGoTo: TMenuItem;
Published miGrid: TMenuItem;
Published miGridAngle: TMenuItem;
Published miGridOptions: TMenuItem;
Published miHelp: TMenuItem;
Published miHelpOnMainWindow: TMenuItem;
Published miHintDelay: TMenuItem;
Published miImport: TMenuItem;
Published miImportBitmap: TMenuItem;
Published miImportDistributedDatabyZone: TMenuItem;
Published miImportDXFFile: TMenuItem;
Published miImportPoints: TMenuItem;
Published miImportShapefile: TMenuItem;
Published miInsertNode: TMenuItem;
Published miMoveColumnOrRow: TMenuItem;
Published miNew: TMenuItem;
Published miObject: TMenuItem;
Published miOpen: TMenuItem;
Published miPan: TMenuItem;
Published miPaste: TMenuItem;
Published miPhastOptions: TMenuItem;
Published miPrint: TMenuItem;
Published miPrintFrequency: TMenuItem;
Published miPrintInitial: TMenuItem;
Published miRearrangeObjects: TMenuItem;
Published miRedo: TMenuItem;
Published miRestoreDefaultView: TMenuItem;
Published miRulerFormat: TMenuItem;
Published miSave: TMenuItem;
Published miSaveAs: TMenuItem;
Published miSearchForObject: TMenuItem;
Published miSelectAll: TMenuItem;
Published miSelectNodes: TMenuItem;
Published miSelectObjects: TMenuItem;
Published miSelectObjectsByName: TMenuItem;
Published miSelectWithLasso: TMenuItem;
Published miSetSelectedColRowLayer: TMenuItem;
Published miSetSpacing: TMenuItem;
Published miShow3DObjects: TMenuItem;
Published miShowColoredGrid: TMenuItem;
Published miShowFormulaErrors: TMenuItem;
Published miShowFrontGrid: TMenuItem;
Published miShowGridShell: TMenuItem;
Published miShowHideBitmaps: TMenuItem;
Published miShowHideObjects: TMenuItem;
Published miShowSelectedObjects: TMenuItem;
Published miShowSideGrid: TMenuItem;
Published miShowTopGrid: TMenuItem;
Published miSmoothGrid: TMenuItem;
Published miSolutionMethod: TMenuItem;
Published miSteadyFlow: TMenuItem;
Published miSubdivide: TMenuItem;
Published miTimeControl: TMenuItem;
Published miTitleAndUnits: TMenuItem;
Published miTopicSearch: TMenuItem;
Published miUndo: TMenuItem;
Published miVerticalExaggeration: TMenuItem;
Published miView: TMenuItem;
Published miZoom: TMenuItem;
Published miZoomIn: TMenuItem;
Published miZoomOut: TMenuItem;
Published mmMainMenu: TMainMenu;
Published MostRecentlyUsed: TRbwMostRecentlyUsed;
Published N1: TMenuItem;
Published N2: TMenuItem;
Published N3: TMenuItem;
Published N4: TMenuItem;
Published N5: TMenuItem;
Published N6: TMenuItem;
Published odOpenDialog: TOpenDialog;
Published pnlBottom: TPanel;
Published pnlTop: TPanel;
Published rpFrontFormulaCompiler: TRbwParser;
Published rpFrontFormulaCompilerNodes: TRbwParser;
Published rpSideFormulaCompiler: TRbwParser;
Published rpSideFormulaCompilerNodes: TRbwParser;
Published rpThreeDFormulaCompiler: TRbwParser;
Published rpThreeDFormulaCompilerNodes: TRbwParser;
Published rpTopFormulaCompiler: TRbwParser;
Published rpTopFormulaCompilerNodes: TRbwParser;
Published sbMain: TStatusBar;
Published sdPhastInput: TSaveDialog;
Published sdSaveDialog: TSaveDialog;
Published splitHoriz: TSplitter;
Published splitVertBottom: TSplitter;
Published splitVertTop: TSplitter;
Published tb3DColors: TToolButton;
Published tb3DObjects: TToolButton;
Published tbAddHorizontalBoundary: TToolButton;
Published tbAddVerticalBoundary: TToolButton;
Published tbarCreateScreenObject: TToolBar;
Published tbarEdit: TToolBar;
Published tbarEditGrid: TToolBar;
Published tbarEditScreenObjects: TToolBar;
Published tbarFile: TToolBar;
Published tbarView: TToolBar;
Published tbarView3D: TToolBar;
Published tbCopy: TToolButton;
Published tbCut: TToolButton;
Published tbDeleteColumnRow: TToolButton;
Published tbDeleteSegment: TToolButton;
Published tbFrontGrid: TToolButton;
Published tbGenerateGrid: TToolButton;
Published tbGridAngle: TToolButton;
Published tbInsertPoint: TToolButton;
Published tbLasso: TToolButton;
Published tbLine: TToolButton;
Published tbMove: TToolButton;
Published tbNew: TToolButton;
Published tbOpen: TToolButton;
Published tbPan: TToolButton;
Published tbPaste: TToolButton;
Published tbPoint: TToolButton;
Published tbPolygon: TToolButton;
Published tbPrint: TToolButton;
Published tbRectangle: TToolButton;
Published tbRedo: TToolButton;
Published tbSave: TToolButton;
Published tbSelect: TToolButton;
Published tbSelectPoint: TToolButton;
Published tbSeparator1: TToolButton;
Published tbSeparator2: TToolButton;
Published tbShell: TToolButton;
Published tbShowHideObjects: TToolButton;
Published tbSideGrid: TToolButton;
Published tbSpacing: TToolButton;
Published tbStraightLine: TToolButton;
Published tbSubdivide: TToolButton;
Published tbTopGrid: TToolButton;
Published tbUndo: TToolButton;
Published tbZoom: TToolButton;
Published tbZoomIn: TToolButton;
Published tbZoomOut: TToolButton;
Published timTimer: TTimer;
Private FCanDraw: boolean;
Private FCanEdit: boolean;
Private FClickedRuler: TObject;
Private FCurrentTool: TCustomInteractiveTool;
Private FCursorGrid: TCursorGrid;
Private FCursorX: integer;
Private FCursorY: integer;
Private FDeletedDataSets: TObjectList;
Private FFileFormat: TFileFormat;
Private FFrontGridChanged: boolean;
Private FFrontScreenObjectsChanged: boolean;
Private FModel: TPhastModel;
Private FMovingPanelIndex: integer;
Private FMovingStatusBarPanel: boolean;
Private FOldHeight: integer;
Private FOldWidth: integer;
Private FSideGridChanged: boolean;
Private FSideScreenObjectsChanged: boolean;
Private FTopGridChanged: boolean;
Private FTopScreenObjectsChanged: boolean;
Private FIniFile: TMemInifile;

Methods

Private procedure DeleteLastPointInScreenObject;
Published procedure acColorExecute(Sender: TObject);
Published procedure acDeleteColumnRowExecute(Sender: TObject);
Published procedure acEditDataSetsExecute(Sender: TObject);
Published procedure acEditGridLinesExecute(Sender: TObject);
Published procedure acExitExecute(Sender: TObject);
Published procedure acExportPhastInputFileExecute(Sender: TObject);
Published procedure acFileNewExecute(Sender: TObject);
Published procedure acFileOpenExecute(Sender: TObject);
Published procedure acFileSaveAsExecute(Sender: TObject);
Published procedure acFileSaveExecute(Sender: TObject);
Published procedure acFontExecute(Sender: TObject);
Published procedure acGenerateGridExecute(Sender: TObject);
Published procedure acGridAngleExecute(Sender: TObject);
Published procedure acHelpContentsExecute(Sender: TObject);
Published procedure acMoveColumnOrRowExecute(Sender: TObject);
Published procedure acMoveToExecute(Sender: TObject);
Published procedure acRestoreDefaultViewExecute(Sender: TObject);
Published procedure acSetSpacingExecute(Sender: TObject);
Published procedure acShowFrontGridExecute(Sender: TObject);
Published procedure acShowGridShellExecute(Sender: TObject);
Published procedure acShowSideGridExecute(Sender: TObject);
Published procedure acShowTopGridExecute(Sender: TObject);
Published procedure acSmoothGridExecute(Sender: TObject);
Published procedure acSubdivideExecute(Sender: TObject);
Published procedure dcAddColCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure dcAddRowCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure dcMoveColCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure dcMoveRowCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure dcSetSpacingDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure dcSubdivideDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);
Published procedure FormClose(Sender: TObject; var Action: TCloseAction);
Published procedure FormCreate(Sender: TObject); override;
Published procedure FormDestroy(Sender: TObject);
Published procedure FormResize(Sender: TObject);
Published procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
Published procedure mi3D_ColorsClick(Sender: TObject);
Published procedure miAboutClick(Sender: TObject);
Published procedure miChangeStyleClick(Sender: TObject);
Published procedure miChemistryOptionsClick(Sender: TObject);
Published procedure miColorGridClick(Sender: TObject);
Published procedure miEditBitmapsClick(Sender: TObject);
Published procedure miEditSelectedObjectsClick(Sender: TObject);
Published procedure miExamplesClick(Sender: TObject);
Published procedure miFreeSurfaceClick(Sender: TObject);
Published procedure miGridOptionsClick(Sender: TObject);
Published procedure miHelpOnMainWindowClick(Sender: TObject);
Published procedure miHintDelayClick(Sender: TObject);
Published procedure miImportBitmapClick(Sender: TObject);
Published procedure miImportDistributedDatabyZoneClick(Sender: TObject);
Published procedure miImportDXFFileClick(Sender: TObject);
Published procedure miImportPointsClick(Sender: TObject);
Published procedure miImportShapefileClick(Sender: TObject);
Published procedure miPrintFrequencyClick(Sender: TObject);
Published procedure miPrintInitialClick(Sender: TObject);
Published procedure miRearrangeObjectsClick(Sender: TObject);
Published procedure miRulerFormatClick(Sender: TObject);
Published procedure miSearchForObjectClick(Sender: TObject);
Published procedure miSelectObjectsByNameClick(Sender: TObject);
Published procedure miSetSelectedColRowLayerClick(Sender: TObject);
Published procedure miShowFormulaErrorsClick(Sender: TObject);
Published procedure miShowHideBitmapsClick(Sender: TObject);
Published procedure miShowHideObjectsClick(Sender: TObject);
Published procedure miShowSelectedObjectsClick(Sender: TObject);
Published procedure miSolutionMethodClick(Sender: TObject);
Published procedure miSteadyFlowClick(Sender: TObject);
Published procedure miTimeControlClick(Sender: TObject);
Published procedure miTitleAndUnitsClick(Sender: TObject);
Published procedure miTopicSearchClick(Sender: TObject);
Published procedure miVerticalExaggerationClick(Sender: TObject);
Published procedure miZoomInClick(Sender: TObject);
Published procedure OpenMostRecentlyUsed(Sender: TObject);
Published procedure pnlLowerRightMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
Published procedure sbMainMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
Published procedure sbMainMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
Published procedure sbMainMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
Published procedure sdSaveDialogFilterChange(Sender: TObject; NewIndex: Integer);
Published procedure splitHorizMoved(Sender: TObject);
Published procedure splitVertBottomMoved(Sender: TObject);
Published procedure splitVertTopMoved(Sender: TObject);
Published procedure tb3DColorsClick(Sender: TObject);
Published procedure tb3DObjectsClick(Sender: TObject);
Published procedure tbAddHorizontalBoundaryClick(Sender: TObject);
Published procedure tbAddVerticalBoundaryClick(Sender: TObject);
Published procedure tbDeleteSegmentClick(Sender: TObject);
Published procedure tbGridAngleClick(Sender: TObject);
Published procedure tbInsertPointClick(Sender: TObject);
Published procedure tbLassoClick(Sender: TObject);
Published procedure tbLineClick(Sender: TObject);
Published procedure tbPanClick(Sender: TObject);
Published procedure tbPointClick(Sender: TObject);
Published procedure tbPointMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
Published procedure tbPolygonClick(Sender: TObject);
Published procedure tbRectangleClick(Sender: TObject);
Published procedure tbSelectClick(Sender: TObject);
Published procedure tbSelectPointClick(Sender: TObject);
Published procedure tbShellClick(Sender: TObject);
Published procedure tbStraightLineClick(Sender: TObject);
Published procedure tbZoomClick(Sender: TObject);
Published procedure tbZoomOutClick(Sender: TObject);
Published procedure ToolButtonMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);
Private procedure AddMostRecentlyUsedFile(const FileName: string);
Private procedure AdjustToolbarPositions(FirstToolBar, SecondToolBar: TToolBar);
Private procedure AdjustToolbarWidth(AToolBar: TToolBar);
Private procedure BringFormsToFront(Sender: TObject);
Private function CheckModel: boolean;
Private procedure ClearSelectedNodes;
Private procedure DrawAddColRowCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);
Private procedure DrawHint(Sender: TObject; Canvas: TCanvas; const Rect: TRect; var DefaultDraw: Boolean);
Private procedure DrawMoveColRowCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);
Private procedure DrawSubdivideCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);
Private procedure ExportFile(const FileName: string);
Private procedure FillButtonList(AList: TList);
Private function GetPhastGrid: TPhastGrid;
Private function IsOverStatusPanelDivider(const X: integer): boolean;
Private procedure ReadIniFile;
Private procedure SaveAFile(FileName: string);
Private procedure SelectDefaultButton;
Private procedure SetActionChecked(Sender: TObject);
Private procedure SetButtonsUp(const CurrentButton: TObject);
Private procedure SetCurrentTool(const Value: TCustomInteractiveTool);
Private procedure SetCursorGrid(const Value: TCursorGrid);
Private procedure SetFileFormat(const Value: TFileFormat);
Private procedure SetFrontScreenObjectsChanged(const Value: boolean);
Private procedure SetSideScreenObjectsChanged(const Value: boolean);
Private procedure SetTopScreenObjectsChanged(const Value: boolean);
Private procedure SetZB_Cursors(const ACursor: TCursor);
Private procedure ShowHint(Sender: TObject);
Private procedure ValidateJpeg;
Private procedure WriteIniFile;
Protected procedure OnAppIdle(Sender: TObject; var Done: Boolean);
Protected function WidgetFlags: integer; override;
Public procedure AdjustScales;
Public procedure EditScreenObjects;
Public function GetCompiler(const Orientation: TDataSetOrientation; const EvaluatedAt: TEvaluatedAt): TRbwParser;
Public procedure InvalidateDataSets;
Public procedure InvalidateFront;
Public procedure InvalidateModel;
Public procedure InvalidateSide;
Public procedure InvalidateTop;
Public procedure OpenAFile(const FileName: string);
Public function ResetSelectedScreenObjects: boolean;
Public procedure ResizeZoomBoxes(Sender: TObject);
Public procedure ScreenObjectsChanged(Sender: TObject);
Public procedure UpdateDataSetDimensions;

Properties

Protected property FileFormat: TFileFormat read FFileFormat write SetFileFormat;
Public property CanDraw: boolean read FCanDraw write FCanDraw;
Public property CanEdit: boolean read FCanEdit write FCanEdit;
Public property ClickedRuler: TObject read FClickedRuler write FClickedRuler;
Public property CurrentTool: TCustomInteractiveTool read FCurrentTool write SetCurrentTool;
Public property CursorGrid: TCursorGrid read FCursorGrid write SetCursorGrid;
Public property CursorX: integer read FCursorX write FCursorX;
Public property CursorY: integer read FCursorY write FCursorY;
Public property DeletedDataSets: TObjectList read FDeletedDataSets;
Public property FrontGridChanged: boolean read FFrontGridChanged write FFrontGridChanged;
Public property FrontScreenObjectsChanged: boolean read FFrontScreenObjectsChanged write SetFrontScreenObjectsChanged;
Public property IniFile: TMemInifile read FIniFile;
Public property Model: TPhastModel read FModel write FModel;
Public property OldHeight: integer read FOldHeight;
Public property OldWidth: integer read FOldWidth;
Public property PhastGrid: TPhastGrid read GetPhastGrid;
Public property SideGridChanged: boolean read FSideGridChanged write FSideGridChanged;
Public property SideScreenObjectsChanged: boolean read FSideScreenObjectsChanged write SetSideScreenObjectsChanged;
Public property TopGridChanged: boolean read FTopGridChanged write FTopGridChanged;
Public property TopScreenObjectsChanged: boolean read FTopScreenObjectsChanged write SetTopScreenObjectsChanged;

Description

Fields

Published acAddColumn: TAction;

acAddColumn: TAction; acAddColumn is the TAction for miAddVerticalGridLine and tbAddVerticalBoundary. See tbAddVerticalBoundaryClick.

Published acAddRow: TAction;

acAddRow: TAction; acAddRow is the TAction for miAddHorizontalGridLine and tbAddHorizontalBoundary. See tbAddHorizontalBoundaryClick.

Published acColor: TAction;

acColor: TAction; acColor is the TAction for miColor and tb3DColors. See acColorExecute.

Published acColoredGrid: TAction;

acColoredGrid: TAction; acColoredGrid is the TAction for miShowColoredGrid and tb3DColors. See tb3DColorsClick.

Published acCopy: TAction;

acCopy: TAction; acCopy is the TAction for miCopy and tbCopy. acCopy is not yet used.

Published acCreateLine: TAction;

acCreateLine: TAction; acCreateLine is the TAction for miCreateLine and tbLine. See tbLineClick.

Published acCreatePoint: TAction;

acCreatePoint: TAction; acCreatePoint is the TAction for miCreatePoint and tbPoint. See tbPointClick.

Published acCreatePolygon: TAction;

acCreatePolygon: TAction; acCreatePolygon is the TAction for miCreatePolygon and tbPolygon. See tbPolygonClick.

Published acCreateRectangle: TAction;

acCreateRectangle: TAction; acCreateRectangle is the TAction for miCreateRectangle and tbRectangle. See tbRectangleClick.

Published acCreateStraightLine: TAction;

acCreateStraightLine: TAction; acCreateStraightLine is the TAction for miCreateStraightLine and tbStraightLine. See tbStraightLineClick.

Published acCut: TAction;

acCut: TAction; acCut is the TAction for miCut and tbCut. acCut is not yet used.

Published acDeleteColumnRow: TAction;

acDeleteColumnRow: TAction; acDeleteColumnRow is the TAction for miDeleteGridLine and tbDeleteColumnRow. See acDeleteColumnRowExecute.

Published acDeleteSegment: TAction;

acDeleteSegment: TAction; acDeleteSegment is the TAction for miDeleteSegment and tbDeleteSegment. See tbDeleteSegmentClick.

Published acEditDataSets: TAction;

acEditDataSets: TAction; acEditDataSets is the TAction for miEditDataSet. See acEditDataSetsExecute.

Published acEditGridLines: TAction;

acEditGridLines: TAction; acEditGridLines is the TAction for miEditGridLines. See acEditGridLinesExecute.

Published acEditVerticalExaggeration: TAction;

acEditVerticalExaggeration: TAction; acEditVerticalExaggeration is the TAction for miVerticalExaggeration. See miVerticalExaggerationClick.

Published acExit: TAction;

acExit: TAction; acExit is the TAction for miExit. See acExitExecute.

Published acExportPhastInputFile: TAction;

acExportPhastInputFile: TAction; acExportPhastInputFile is the TAction for miExport. See acExportPhastInputFileExecute.

Published acFileNew: TAction;

acFileNew: TAction; acFileNew is the TAction for miNew and tbNew. See acFileNewExecute.

Published acFileOpen: TAction;

acFileOpen: TAction; acFileOpen is the TAction for miOpen and tbOpen. See acFileOpenExecute.

Published acFilePrint: TAction;

acFilePrint: TAction; acFilePrint is the TAction for miPrint and tbPrint. acFilePrint is not yet used.

Published acFileSave: TAction;

acFileSave: TAction; acFileSave is the TAction for miSave and tbSave. See acFileSaveExecute.

Published acFileSaveAs: TAction;

acFileSaveAs: TAction; acFileSaveAs is the TAction for miSaveAs. See acFileSaveAsExecute.

Published acFont: TAction;

acFont: TAction; acFont is the TAction for miFont. See acFontExecute.

Published acGenerateGrid: TAction;

acGenerateGrid: TAction; acGenerateGrid is the TAction for miGenerateGrid and tbGenerateGrid. See acGenerateGridExecute.

Published acGridAngle: TAction;

acGridAngle: TAction; acGridAngle is the TAction for miGridAngle. See acGridAngleExecute.

Published acGridDragRotate: TAction;

acGridDragRotate: TAction; acGridDragRotate is the TAction for miDragtoRotate and tbGridAngle. See tbGridAngleClick.

Published acHelpContents: THelpContents;

acHelpContents: TAction; acHelpContents is the TAction for miContents. See acHelpContentsExecute.

Published acHelpTopicSearch: THelpTopicSearch;

acHelpTopicSearch: TAction; acHelpTopicSearch is the TAction for miTopicSearch. See miTopicSearchClick.

Published acInsertNode: TAction;

acInsertNode: TAction; acInsertNode is the TAction for miInsertNode and tbInsertPoint. See tbInsertPointClick.

Published acMoveColumnOrRow: TAction;

acMoveColumnOrRow: TAction; acMoveColumnOrRow is the TAction for miMoveColumnOrRow and tbMove. See acMoveColumnOrRowExecute.

Published acMoveTo: TAction;

acMoveTo: TAction; acMoveTo is the TAction for miGoTo. See acMoveToExecute.

Published acPan: TAction;

acPan: TAction; acPan is the TAction for miPan and tbPan. See tbPanClick.

Published acPaste: TAction;

acPaste: TAction; acPaste is the TAction for miPaste and tbPaste. acPaste is not used yet.

Published acRestoreDefaultView: TAction;

acRestoreDefaultView: TAction; acRestoreDefaultView is the TAction for miRestoreDefaultView. See acRestoreDefaultViewExecute.

Published acSelectAll: TAction;

acSelectAll: TAction; acSelectAll is the TAction for miSelectAll. acSelectAll is not used yet.

Published acSelectNode: TAction;

acSelectNode: TAction; acSelectNode is the TAction for miSelectNodes and tbSelectPoint. See tbSelectPointClick.

Published acSelectObjects: TAction;

acSelectObjects: TAction; acSelectObjects is the TAction for miSelectObjects and tbSelect. See tbSelectClick.

Published acSelectWithLasso: TAction;

acSelectWithLasso: TAction; acSelectWithLasso is the TAction for miSelectWithLasso and tbLasso. See tbLassoClick.

Published acSetSpacing: TAction;

acSetSpacing: TAction; acSetSpacing is the TAction for miSetSpacing and tbSpacing. See acSetSpacingExecute.

Published acShow3DObjects: TAction;

acShow3DObjects: TAction; acShow3DObjects is the TAction for miShow3DObjects and tb3DObjects. See tb3DObjectsClick.

Published acShowFrontGrid: TAction;

acShowFrontGrid: TAction; acShowFrontGrid is the TAction for miShowFrontGrid and tbFrontGrid. See acShowFrontGridExecute.

Published acShowGridShell: TAction;

acShowGridShell: TAction; acShowGridShell is the TAction for miShowGridShell and tbShell. See acShowGridShellExecute.

Published acShowHideObjects: TAction;

acShowHideObjects is the action for showing or hiding frmShowHideObjects. See miShowHideObjectsClick.

Published acShowSideGrid: TAction;

acShowSideGrid: TAction; acShowSideGrid is the TAction for miShowSideGrid and tbSideGrid. See acShowSideGridExecute.

Published acShowTopGrid: TAction;

acShowTopGrid: TAction; acShowTopGrid is the TAction for miShowTopGrid and tbTopGrid. See acShowTopGridExecute.

Published acSmoothGrid: TAction;

acSmoothGrid: TAction; acSmoothGrid is the TAction for miSmoothGrid. See acSmoothGridExecute.

Published acSubdivide: TAction;

acSubdivide: TAction; acSubdivide is the TAction for miSubdivide and tbSubdivide. See acSubdivideExecute.

Published acZoom: TAction;

acZoom: TAction; acZoom is the TAction for miZoom and tbZoom. See tbZoomClick.

Published acZoomIn: TAction;

acZoomIn: TAction; acZoomIn is the TAction for miZoomIn and tbZoomIn. See miZoomInClick.

Published acZoomOut: TAction;

acZoomOut: TAction; acZoomOut is the TAction for miZoomOut and tbZoomOut. See tbZoomOutClick.

Published alActionList: TActionList;

alActionList: TActionList; alActionList holds the instances of TAction in GoPhast.

Published cbControlBar: TControlBar;

cbControlBar: TControlBar; cbControlBar holds the instances of TToolBar in GoPhast.

Published cdColorDialog: TColorDialog;

cdColorDialog: TColorDialog; cdColorDialog is used to pick the background color for GoPhast in acColorExecute.

Published dcAddColCursor: TQRbwDynamicCursor;

dcAddColCursor: TQRbwDynamicCursor; dcAddColCursor is used to draw a rotated version of the AddColumn cursor in the top view of the model.

Published dcAddRowCursor: TQRbwDynamicCursor;

dcAddRowCursor: TQRbwDynamicCursor; dcAddRowCursor is used to draw a rotated version of the AddRow cursor in the top view of the model.

Published dcMoveColCursor: TQRbwDynamicCursor;

dcMoveColCursor: TQRbwDynamicCursor; dcMoveColCursor is used to draw a rotated version of the MoveColumn cursor in the top view of the model.

Published dcMoveRowCursor: TQRbwDynamicCursor;

dcMoveRowCursor: TQRbwDynamicCursor; dcMoveRowCursor is used to draw a rotated version of the MoveRow cursor in the top view of the model.

Published dcSetSpacing: TQRbwDynamicCursor;

dcSetSpacing: TQRbwDynamicCursor; dcSetSpacing is used to draw a rotated version of the SetCellSpacing cursor in the top view of the model.

Published dcSubdivide: TQRbwDynamicCursor;

dcSubdivide: TQRbwDynamicCursor; dcSubdivide is used to draw a rotated version of the Subdivide cursor in the top view of the model.

Published fdFontDialog: TFontDialog;

fdFontDialog: TFontDialog; fdFontDialog is used to pick the font for GoPhast in acFontExecute.

Published frame3DView: Tframe3DView;

frame3DView: Tframe3DView; frame3DView displays a 3D view of the model and handles interaction with the 3D view.

Published frameFrontView: TframeView;

frameFrontView: TframeView; frameFrontView displays a front view of the model and handles interaction with the front view.

Published frameSideView: TframeView;

frameSideView: TframeView; frameSideView displays a side view of the model and handles interaction with the side view.

Published frameTopView: TframeView;

frameTopView: TframeView; frameTopView displays a top view of the model and handles interaction with the top view.

Published ilImageList: TImageList;

ilImageList: TImageList; ilImageList holds the images of the buttons.

Published mi3D_Colors: TMenuItem;

mi3D_Colors: TMenuItem; See mi3D_ColorsClick.

Published miAbout: TMenuItem;

miAbout: TMenuItem; See miAboutClick.

Published miAddHorizontalGridLine: TMenuItem;

miAddHorizontalGridLine: TMenuItem; See tbAddHorizontalBoundaryClick and acAddRow.

Published miAddVerticalGridLine: TMenuItem;

miAddVerticalGridLine: TMenuItem; See tbAddVerticalBoundaryClick and acAddColumn.

Published miChangeStyle: TMenuItem;

miChangeStyle: TMenuItem; See miChangeStyleClick.

Published miChemistryOptions: TMenuItem;

miChemistryOptions: TMenuItem; See miChemistryOptionsClick.

Published miColor: TMenuItem;

miColor: TMenuItem; See acColorExecute and acColor.

Published miColorGrid: TMenuItem;

miColorGrid: TMenuItem; See miColorGridClick.

Published miContents: TMenuItem;

miContents: TMenuItem; See acHelpContentsExecute and acHelpContents.

Published miCopy: TMenuItem;

miCopy: TMenuItem; See acCopy.

Published miCreateLine: TMenuItem;

miCreateLine: TMenuItem; See tbLineClick and acCreateLine.

Published miCreatePoint: TMenuItem;

miCreatePoint: TMenuItem; See tbPointClick and acCreatePoint.

Published miCreatePolygon: TMenuItem;

miCreatePolygon: TMenuItem; See tbPolygonClick and acCreatePolygon.

Published miCreateRectangle: TMenuItem;

miCreateRectangle: TMenuItem; See tbRectangleClick and acCreateRectangle.

Published miCreateStraightLine: TMenuItem;

miCreateStraightLine: TMenuItem; See tbStraightLineClick and acCreateStraightLine.

Published miCustomize: TMenuItem;

miCustomize: TMenuItem; miCustomize holds the miFont, miColor, miHintDelay, miRulerFormat, and miChangeStyle menu items.

Published miCut: TMenuItem;

miCut: TMenuItem; See acCut.

Published miData: TMenuItem;

miData: TMenuItem; miData holds the miEditDataSet, miColorGrid, and miShowFormulaErrors menu items.

Published miDeleteGridLine: TMenuItem;

miDeleteGridLine: TMenuItem; See acDeleteColumnRowExecute and acDeleteColumnRow.

Published miDeleteSegment: TMenuItem;

miDeleteSegment: TMenuItem; See tbDeleteSegmentClick and acDeleteSegment.

Published miDragtoRotate: TMenuItem;

miDragtoRotate: TMenuItem; See tbGridAngleClick and acGridDragRotate.

Published miEdit: TMenuItem;

miEdit: TMenuItem; miEdit holds the miUndo, miRedo, miCut, miCopy, miPaste, miSelectAll, miEditBitmaps, and miShowHideBitmaps menu items.

Published miEditBitmaps: TMenuItem;

miEditBitmaps: TMenuItem; See miEditBitmapsClick.

Published miEditDataSet: TMenuItem;

miEditDataSet: TMenuItem; See acEditDataSetsExecute and acEditDataSets.

Published miEditGridLines: TMenuItem;

miEditGridLines: TMenuItem; See acEditGridLinesExecute and acEditGridLines.

Published miEditSelectedObjects: TMenuItem;

This TMenuItem [Object|Edit Selected Object(s)], allows the user to edit the properties of the selected objects by displaying the TfrmScreenObjectProperties dialog box.

See also
miEditSelectedObjectsClick
miEditSelectedObjectsClick edits TScreenObjects by calling EditScreenObjects.
Published miExamples: TMenuItem;

The OnClick event for miExamples, miExamplesClick, opens the default web browser with the web page for the instructions for recreating the examples.

Published miExit: TMenuItem;

miExit: TMenuItem; See acExitExecute and acExit.

Published miExport: TMenuItem;

miExport: TMenuItem; See acExportPhastInputFileExecute and acExportPhastInputFile.

Published miFile: TMenuItem;

miFile: TMenuItem; miFile holds the miNew, miOpen, miSave, miSaveAs, miImport, miExport, miPrint, and miExit menu items.

Published miFont: TMenuItem;

miFont: TMenuItem; See acFontExecute and acFont.

Published miFreeSurface: TMenuItem;

miFreeSurface: TMenuItem; See miFreeSurfaceClick.

Published miGenerateGrid: TMenuItem;

miGenerateGrid: TMenuItem; See acGenerateGridExecute and acGenerateGrid.

Published miGoTo: TMenuItem;

miGoTo: TMenuItem; See acMoveToExecute and acMoveTo.

Published miGrid: TMenuItem;

miGrid: TMenuItem; miGrid holds the miDeleteGridLine, miMoveColumnOrRow, miAddVerticalGridLine, miAddHorizontalGridLine, miSubdivide, miSetSpacing, miDragtoRotate, miGridAngle, miGenerateGrid, miEditGridLines, miSmoothGrid, and miSetSelectedColRowLayer menu items.

Published miGridAngle: TMenuItem;

miGridAngle: TMenuItem; See acGridAngleExecute and acGridAngle.

Published miGridOptions: TMenuItem;

miGridOptions: TMenuItem; See miGridOptionsClick.

Published miHelp: TMenuItem;

miHelp: TMenuItem; miHelp holds the miContents, and miTopicSearchClick, miAbout menu items.

Published miHelpOnMainWindow: TMenuItem;

miHelpOnMainWindow provides help on the main window of GoPhast.

Published miHintDelay: TMenuItem;

miHintDelay: TMenuItem; See miHintDelayClick.

Published miImport: TMenuItem;

miImport: TMenuItem; miImport holds the miImportDistributedDatabyZone, miImportShapefile, miImportDXFFile, and miImportBitmap menu items. miImport is under the miFile menu item.

Published miImportBitmap: TMenuItem;

miImportBitmap: TMenuItem; See miImportBitmapClick.

Published miImportDistributedDatabyZone: TMenuItem;

miImportDistributedDatabyZone: TMenuItem; See miImportDistributedDatabyZoneClick.

Published miImportDXFFile: TMenuItem;

miImportDXFFile: TMenuItem; See miImportDXFFileClick.

Published miImportPoints: TMenuItem;

See miImportPointsClick.

Published miImportShapefile: TMenuItem;

miImportShapefile: TMenuItem; See miImportShapefileClick.

Published miInsertNode: TMenuItem;

miInsertNode: TMenuItem; See tbInsertPointClick and acInsertNode.

Published miMoveColumnOrRow: TMenuItem;

miMoveColumnOrRow: TMenuItem; See acMoveColumnOrRowExecute and acMoveColumnOrRow.

Published miNew: TMenuItem;

miNew: TMenuItem; See acFileNewExecute and acFileNew.

Published miObject: TMenuItem;

miObject: TMenuItem; miObject holds the miSelectObjects, miSelectNodes, miSelectWithLasso, N4, miCreatePoint, miCreateLine, miCreatePolygon, miCreateStraightLine, miCreateRectangle, N2, miInsertNode, miDeleteSegment, miRearrangeObjects, N1, miSearchForObject, miShowSelectedObjects, miShowHideObjects, miSelectObjectsByName, and mi3D_Colors menu items.

Published miOpen: TMenuItem;

miOpen: TMenuItem; See acFileOpenExecute and acFileOpen.

Published miPan: TMenuItem;

miPan: TMenuItem; See tbPanClick and acPan.

Published miPaste: TMenuItem;

miPaste: TMenuItem; See and acPaste.

Published miPhastOptions: TMenuItem;

miPhastOptions: TMenuItem; miPhastOptions holds the miTitleAndUnits, miGridOptions, miChemistryOptions, miSolutionMethod, miSteadyFlow, miTimeControl, miFreeSurface, miPrintInitial, and miPrintFrequency menu items.

Published miPrint: TMenuItem;

miPrint: TMenuItem; See acFilePrint.

Published miPrintFrequency: TMenuItem;

miPrintFrequency: TMenuItem; See miPrintFrequencyClick.

Published miPrintInitial: TMenuItem;

miPrintInitial: TMenuItem; See miPrintInitialClick.

Published miRearrangeObjects: TMenuItem;

miRearrangeObjects: TMenuItem; See miRearrangeObjectsClick.

Published miRedo: TMenuItem;

miRedo: TMenuItem; miRedo is used to redo the users actions. Its OnClick event handler is assigned at runtime in SetUndoMenuItems. .

See also
tbRedo
tbRedo: TToolButton; tbRedo is used to redo the users actions.
Published miRestoreDefaultView: TMenuItem;

miRestoreDefaultView: TMenuItem; See acRestoreDefaultViewExecute and acRestoreDefaultView.

Published miRulerFormat: TMenuItem;

miRulerFormat: TMenuItem; See miRulerFormatClick.

Published miSave: TMenuItem;

miSave: TMenuItem; See acFileSaveExecute and acFileSave.

Published miSaveAs: TMenuItem;

miSaveAs: TMenuItem; See acFileSaveAsExecute and acFileSaveAs.

Published miSearchForObject: TMenuItem;

miSearchForObject: TMenuItem; See miSearchForObjectClick.

Published miSelectAll: TMenuItem;

miSelectAll: TMenuItem; See acSelectAll.

Published miSelectNodes: TMenuItem;

miSelectNodes: TMenuItem; See tbSelectPointClick and acSelectNode.

Published miSelectObjects: TMenuItem;

miSelectObjects: TMenuItem; See tbSelectClick and acSelectObjects.

Published miSelectObjectsByName: TMenuItem;

miSelectObjectsByName: TMenuItem; See miSelectObjectsByNameClick.

Published miSelectWithLasso: TMenuItem;

miSelectWithLasso: TMenuItem; See tbLassoClick and acSelectWithLasso.

Published miSetSelectedColRowLayer: TMenuItem;

miSetSelectedColRowLayer: TMenuItem; See miSetSelectedColRowLayerClick.

Published miSetSpacing: TMenuItem;

miSetSpacing: TMenuItem; See acSetSpacingExecute and acSetSpacing.

Published miShow3DObjects: TMenuItem;

miShow3DObjects: TMenuItem; See tb3DObjectsClick and acShow3DObjects.

Published miShowColoredGrid: TMenuItem;

miShowColoredGrid: TMenuItem; See tb3DColorsClick and acColoredGrid.

Published miShowFormulaErrors: TMenuItem;

miShowFormulaErrors: TMenuItem; See miShowFormulaErrorsClick.

Published miShowFrontGrid: TMenuItem;

miShowFrontGrid: TMenuItem; See acShowFrontGridExecute and acShowFrontGrid.

Published miShowGridShell: TMenuItem;

miShowGridShell: TMenuItem; See acShowGridShellExecute and acShowGridShell.

Published miShowHideBitmaps: TMenuItem;

miShowHideBitmaps: TMenuItem; See miShowHideBitmapsClick.

Published miShowHideObjects: TMenuItem;

miShowHideObjects: TMenuItem; See miShowHideObjectsClick.

Published miShowSelectedObjects: TMenuItem;

miShowSelectedObjects: TMenuItem; See miShowSelectedObjectsClick.

Published miShowSideGrid: TMenuItem;

miShowSideGrid: TMenuItem; See acShowSideGridExecute and acShowSideGrid.

Published miShowTopGrid: TMenuItem;

miShowTopGrid: TMenuItem; See acShowTopGridExecute and acShowTopGrid.

Published miSmoothGrid: TMenuItem;

miSmoothGrid: TMenuItem; See acSmoothGridExecute and acSmoothGrid.

Published miSolutionMethod: TMenuItem;

miSolutionMethod: TMenuItem; See miSolutionMethodClick.

Published miSteadyFlow: TMenuItem;

miSteadyFlow: TMenuItem; See miSteadyFlowClick.

Published miSubdivide: TMenuItem;

miSubdivide: TMenuItem; See acSubdivideExecute and acSubdivide.

Published miTimeControl: TMenuItem;

miTimeControl: TMenuItem; See miTimeControlClick.

Published miTitleAndUnits: TMenuItem;

miTitleAndUnits: TMenuItem; See miTitleAndUnitsClick.

Published miTopicSearch: TMenuItem;

miTopicSearch: TMenuItem; See miTopicSearchClick and acHelpTopicSearch.

Published miUndo: TMenuItem;

miUndo: TMenuItem; miUndo is used to undo the users actions. Its OnClick event handler is assigned at runtime in SetUndoMenuItems.

See also
tbUndo
tbUndo: TToolButton; tbUndo is used to undo the users actions.
Published miVerticalExaggeration: TMenuItem;

miVerticalExaggeration: TMenuItem; See miVerticalExaggerationClick and acEditVerticalExaggeration.

Published miView: TMenuItem;

miView: TMenuItem; miView holds the miZoom, miZoomIn, miZoomOut, miPan, miGoTo, miVerticalExaggeration, N3, miShowGridShell, miShowTopGrid, miShowFrontGrid, miShowSideGrid, miShowColoredGrid, miShow3DObjects, and miRestoreDefaultView menu items.

Published miZoom: TMenuItem;

miZoom: TMenuItem; See tbZoomClick and acZoom.

Published miZoomIn: TMenuItem;

miZoomIn: TMenuItem; See miZoomInClick and acZoomIn.

Published miZoomOut: TMenuItem;

miZoomOut: TMenuItem; See tbZoomOutClick and acZoomOut.

Published mmMainMenu: TMainMenu;

mmMainMenu: TMainMenu; mmMainMenu is the main menu of GoPhast.

Published MostRecentlyUsed: TRbwMostRecentlyUsed;

MostRecentlyUsed stores the four most recently opened or saved files.

See also
OpenAFile
OpenAFile is used to read a GoPhast file from the disk.
SaveAFile
SaveAFile saves the file named FileName.
OpenMostRecentlyUsed
OpenMostRecentlyUsed is the event handler for the menu items created by MostRecentlyUsed.
Published N1: TMenuItem;

N1: TMainMenu; N1 is a divider between menu items.

Published N2: TMenuItem;

N2: TMainMenu; N2 is a divider between menu items.

Published N3: TMenuItem;

N3: TMainMenu; N3 is a divider between menu items.

Published N4: TMenuItem;

N4: TMainMenu; N4 is a divider between menu items.

Published N5: TMenuItem;

N5 represents a line above the mostly opened files in the File menu.

Published N6: TMenuItem;

N6 represents a line below the mostly opened files in the File menu.

Published odOpenDialog: TOpenDialog;

odOpenDialog: TOpenDialog; odOpenDialog is used to open GoPhast files in acFileOpenExecute.

Published pnlBottom: TPanel;

pnlBottom: TPanel; pnlBottom contains the views of the model in the bottom half of the main form.

Published pnlTop: TPanel;

pnlTop: TPanel; pnlTop contains the views of the model in the top half of the main form.

Published rpFrontFormulaCompiler: TRbwParser;

rpFrontFormulaCompiler: TRbwParser; rpFrontFormulaCompiler is the TRbwParser for formulas for data sets on the front view of the model evaluated at elements.

Published rpFrontFormulaCompilerNodes: TRbwParser;

rpFrontFormulaCompilerNodes: TRbwParser; rpFrontFormulaCompilerNodes is the TRbwParser for formulas for data sets on the front view of the model evaluated at nodes.

Published rpSideFormulaCompiler: TRbwParser;

rpSideFormulaCompiler: TRbwParser; rpSideFormulaCompiler is the TRbwParser for formulas for data sets on the side view of the model evaluated at elements.

Published rpSideFormulaCompilerNodes: TRbwParser;

rpSideFormulaCompilerNodes: TRbwParser; rpSideFormulaCompilerNodes is the TRbwParser for formulas for data sets on the side view of the model evaluated at nodes.

Published rpThreeDFormulaCompiler: TRbwParser;

rpThreeDFormulaCompiler: TRbwParser; rpThreeDFormulaCompiler is the TRbwParser for formulas for 3D data sets view of the model evaluated at elements.

Published rpThreeDFormulaCompilerNodes: TRbwParser;

rpThreeDFormulaCompilerNodes: TRbwParser; rpThreeDFormulaCompilerNodes is the TRbwParser for formulas for 3D data sets view of the model evaluated at nodes.

Published rpTopFormulaCompiler: TRbwParser;

rpTopFormulaCompiler: TRbwParser; rpTopFormulaCompiler is the TRbwParser for formulas for data sets on the top view of the model evaluated at elements.

Published rpTopFormulaCompilerNodes: TRbwParser;

rpTopFormulaCompilerNodes: TRbwParser; rpTopFormulaCompilerNodes is the TRbwParser for formulas for data sets on the top view of the model evaluated at nodes.

Published sbMain: TStatusBar;

sbMain: TStatusBar; sbMain is the status bar at the bottom of the TfrmGoPhast.

Published sdPhastInput: TSaveDialog;

sdPhastInput: TSaveDialog; sdPhastInput is used when saving the PHAST input file to the disk in acExportPhastInputFileExecute.

Published sdSaveDialog: TSaveDialog;

sdSaveDialog: TSaveDialog; sdSaveDialog is used to save GoPhast files to disk in acFileSaveAsExecute.

Published splitHoriz: TSplitter;

splitHoriz: TSplitter; splitHoriz separates pnlBottom from pnlTop and can be used to resize them. See splitHorizMoved.

Published splitVertBottom: TSplitter;

splitVertBottom: TSplitter; splitVertBottom separates frame3DView from frameFrontView and can be used to resize them. See splitVertBottomMoved.

Published splitVertTop: TSplitter;

splitVertTop: TSplitter; splitVertTop separates frameSideView from frameTopView and can be used to resize them. See splitVertTopMoved.

Published tb3DColors: TToolButton;

tb3DColors: TToolButton; See tb3DColorsClick and acColoredGrid.

Published tb3DObjects: TToolButton;

tb3DObjects: TToolButton; See tb3DObjectsClick and acShow3DObjects.

Published tbAddHorizontalBoundary: TToolButton;

tbAddHorizontalBoundary: TToolButton; See tbAddHorizontalBoundaryClick and acAddRow.

Published tbAddVerticalBoundary: TToolButton;

tbAddVerticalBoundary: TToolButton; See tbAddVerticalBoundaryClick and acAddColumn.

Published tbarCreateScreenObject: TToolBar;

tbarCreateScreenObject: TToolButton; tbarCreateScreenObject holds buttons for creating TScreenObjects. See tbPoint, tbLine, tbPolygon, tbStraightLine, and tbRectangle.

Published tbarEdit: TToolBar;

tbarEdit: TToolButton; tbarEdit holds buttons for editing operations. See tbCopy, tbCut, tbPaste, tbRedo, and tbUndo.

Published tbarEditGrid: TToolBar;

tbarEditGrid: TToolButton; tbarEditGrid holds buttons for editing operations. See tbAddHorizontalBoundary, tbAddVerticalBoundary, tbDeleteColumnRow, See tbGenerateGrid, tbGridAngle, tbMove, tbSpacing, and tbSubdivide.

Published tbarEditScreenObjects: TToolBar;

tbarEditScreenObjects: TToolButton; tbarEditScreenObjects holds buttons for editing TScreenObjects. See tbDeleteSegment, tbInsertPoint, tbLasso, tbSelect, tbSelectPoint, and tbSeparator1.

Published tbarFile: TToolBar;

tbarFile: TToolButton; tbarFile holds buttons for file operations. See tbNew, tbOpen, tbPrint, and tbSave.

Published tbarView: TToolBar;

tbarView: TToolButton; tbarView holds buttons for viewing operations. See tbPan, tbZoom, tbZoomIn, and tbZoomOut.

Published tbarView3D: TToolBar;

tbarView3D: TToolButton; tbarView3D holds buttons for changing the appearance of the 3D view of the model. See tb3DColors, tb3DObjects, tbFrontGrid, tbShell, tbSideGrid, and tbTopGrid.

Published tbCopy: TToolButton;

tbCopy: TToolButton; See acCopy.

Published tbCut: TToolButton;

tbCut: TToolButton; See acCut.

Published tbDeleteColumnRow: TToolButton;

tbDeleteColumnRow: TToolButton; See acDeleteColumnRowExecute and acDeleteColumnRow.

Published tbDeleteSegment: TToolButton;

tbDeleteSegment: TToolButton; See tbDeleteSegmentClick and acDeleteSegment.

Published tbFrontGrid: TToolButton;

tbFrontGrid: TToolButton; See acShowFrontGridExecute and acShowFrontGrid.

Published tbGenerateGrid: TToolButton;

tbGenerateGrid: TToolButton; See acGenerateGridExecute and acGenerateGrid.

Published tbGridAngle: TToolButton;

tbGridAngle: TToolButton; See tbGridAngleClick and acGridDragRotate.

Published tbInsertPoint: TToolButton;

tbInsertPoint: TToolButton; See tbInsertPointClick and acInsertNode.

Published tbLasso: TToolButton;

tbLasso: TToolButton; See tbLassoClick and acSelectWithLasso.

Published tbLine: TToolButton;

tbLine: TToolButton; See tbLineClick and acCreateLine.

Published tbMove: TToolButton;

tbMove: TToolButton; See acMoveColumnOrRowExecute and acMoveColumnOrRow.

Published tbNew: TToolButton;

tbNew: TToolButton; See acFileNewExecute and acFileNew.

Published tbOpen: TToolButton;

tbOpen: TToolButton; See acFileOpenExecute and acFileOpen.

Published tbPan: TToolButton;

tbPan: TToolButton; See tbPanClick and acPan.

Published tbPaste: TToolButton;

tbPaste: TToolButton; See acPaste.

Published tbPoint: TToolButton;

tbPoint: TToolButton; See tbPointClick and acCreatePoint.

Published tbPolygon: TToolButton;

tbPolygon: TToolButton; See tbPolygonClick and acCreatePolygon.

Published tbPrint: TToolButton;

tbPrint: TToolButton; See acFilePrint.

Published tbRectangle: TToolButton;

tbRectangle: TToolButton; See tbRectangleClick and acCreateRectangle.

Published tbRedo: TToolButton;

tbRedo: TToolButton; tbRedo is used to redo the users actions. Its OnClick event handler is assigned at runtime in SetUndoToolButtons.

See also
miRedo
miRedo: TMenuItem; miRedo is used to redo the users actions.
Published tbSave: TToolButton;

tbSave: TToolButton; See acFileSaveExecute and acFileSave.

Published tbSelect: TToolButton;

tbSelect: TToolButton; See tbSelectClick and acSelectObjects.

Published tbSelectPoint: TToolButton;

tbSelectPoint: TToolButton; See tbSelectPointClick and acSelectNode.

Published tbSeparator1: TToolButton;

tbSeparator1: TToolButton; tbSeparator1 is used to separate buttons on tbarEditScreenObjects.

Published tbSeparator2: TToolButton;

tbSeparator2 is used to separate buttons on tbarEditScreenObjects.

Published tbShell: TToolButton;

tbShell: TToolButton; See acShowGridShellExecute and acShowGridShell.

Published tbShowHideObjects: TToolButton;

See miShowHideObjectsClick.

Published tbSideGrid: TToolButton;

tbSideGrid: TToolButton; See acShowSideGridExecute and acShowSideGrid.

Published tbSpacing: TToolButton;

tbSpacing: TToolButton; See acSetSpacingExecute and acSetSpacing.

Published tbStraightLine: TToolButton;

tbStraightLine: TToolButton; See tbStraightLineClick and acCreateStraightLine.

Published tbSubdivide: TToolButton;

tbSubdivide: TToolButton; See acSubdivideExecute and acSubdivide.

Published tbTopGrid: TToolButton;

tbTopGrid: TToolButton; See acShowTopGridExecute and acShowTopGrid.

Published tbUndo: TToolButton;

tbUndo: TToolButton; tbUndo is used to undo the users actions. Its OnClick event handler is assigned at runtime in SetUndoToolButtons.

See also
miUndo
miUndo: TMenuItem; miUndo is used to undo the users actions.
Published tbZoom: TToolButton;

tbZoom: TToolButton; See tbZoomClick and acZoom.

Published tbZoomIn: TToolButton;

tbZoomIn: TToolButton; See miZoomInClick and acZoomIn.

Published tbZoomOut: TToolButton;

tbZoomOut: TToolButton; See tbZoomOutClick and acZoomOut.

Published timTimer: TTimer;

timTimer: TTimer; The OnTimer event handler for timTimer is set to ResizeZoomBoxes in TframeView.ZoomBoxResize.

Private FCanDraw: boolean;

FCanDraw: boolean; See CanDraw.

Private FCanEdit: boolean;

See CanEdit.

Private FClickedRuler: TObject;

FClickedRuler: TObject; See ClickedRuler.

Private FCurrentTool: TCustomInteractiveTool;

FCurrentTool: TCustomInteractiveTool; See CurrentTool.

Private FCursorGrid: TCursorGrid;

FCursorGrid: TCursorGrid; See CursorGrid.

Private FCursorX: integer;

FCursorX: integer; See CursorX.

Private FCursorY: integer;

FCursorY: integer; See CursorY.

Private FDeletedDataSets: TObjectList;

FDeletedDataSets: TObjectList; See DeletedDataSets.

Private FFileFormat: TFileFormat;

FFileFormat: TFileFormat; See FileFormat.

Private FFrontGridChanged: boolean;

FFrontGridChanged: boolean; See FrontGridChanged.

Private FFrontScreenObjectsChanged: boolean;

FFrontScreenObjectsChanged: boolean; See FrontScreenObjectsChanged.

Private FModel: TPhastModel;

FModel: TPhastModel; See Model.

Private FMovingPanelIndex: integer;

FMovingPanelIndex: integer; FMovingPanelIndex indicates which boundary between panels on sbMain the mouse was over when it started to drag the panel.

Private FMovingStatusBarPanel: boolean;

FMovingStatusBarPanel: boolean; FMovingStatusBarPanel indicates whether or not the user is dragging the boundary between two panels on sbMain.

Private FOldHeight: integer;

FOldHeight: integer; FOldHeight is set to Height in FormCreate and FormResize. See OldHeight.

Private FOldWidth: integer;

FOldWidth: integer; FOldWidth is set to Width in FormCreate and FormResize. See OldWidth.

Private FSideGridChanged: boolean;

FSideGridChanged: boolean; See SideGridChanged.

Private FSideScreenObjectsChanged: boolean;

FSideScreenObjectsChanged: boolean; See SideScreenObjectsChanged.

Private FTopGridChanged: boolean;

FTopGridChanged: boolean; See TopGridChanged.

Private FTopScreenObjectsChanged: boolean;

FTopScreenObjectsChanged: boolean; See TopScreenObjectsChanged.

Private FIniFile: TMemInifile;

See IniFile.

Methods

Private procedure DeleteLastPointInScreenObject;

DeleteLastPointInScreenObject deletes the last point the the current TScreenObject.

Published procedure acColorExecute(Sender: TObject);

acColorExecute changes the background color of GoPhast.

Published procedure acDeleteColumnRowExecute(Sender: TObject);

acDeleteColumnRowExecute sets CurrentTool to DeleteGridBoundaryTool.

Published procedure acEditDataSetsExecute(Sender: TObject);

acEditDataSetsExecute allows the user to edit data sets by showing TfrmDataSets.

Published procedure acEditGridLinesExecute(Sender: TObject);

acEditGridLinesExecute allows the user to edit grid lines by showing TfrmGridSpacing.

Published procedure acExitExecute(Sender: TObject);

acExitExecute closes GoPhast.

Published procedure acExportPhastInputFileExecute(Sender: TObject);

acExportPhastInputFileExecute exports the transport input file for PHAST.

Published procedure acFileNewExecute(Sender: TObject);

acFileNewExecute creates a new model.

Published procedure acFileOpenExecute(Sender: TObject);

acFileOpenExecute reads an existing file from the disk.

Published procedure acFileSaveAsExecute(Sender: TObject);

acFileSaveAsExecute saves a file to the disk with a user-specified name.

Published procedure acFileSaveExecute(Sender: TObject);

acFileSaveExecute saves a file to the disk with the existing file name.

Published procedure acFontExecute(Sender: TObject);

acFontExecute sets the font of GoPhast.

Published procedure acGenerateGridExecute(Sender: TObject);

acGenerateGridExecute generates a grid by showing TfrmGenerateGrid.

Published procedure acGridAngleExecute(Sender: TObject);

acGridAngleExecute allows the user to set the grid angle using TfrmGridAngle.

Published procedure acHelpContentsExecute(Sender: TObject);

acHelpContentsExecute looks for help for HelpKeyword. Displays the Help contents for GoPhast.

Published procedure acMoveColumnOrRowExecute(Sender: TObject);

acMoveColumnOrRowExecute sets CurrentTool to MovingGridBoundaryTool.

Published procedure acMoveToExecute(Sender: TObject);

acMoveToExecute allows the user to move to a location, object, cell or element by showing TfrmMoveTo.

Published procedure acRestoreDefaultViewExecute(Sender: TObject);

acRestoreDefaultViewExecute restores the 3D view to its default orientation and magnification.

Published procedure acSetSpacingExecute(Sender: TObject);

acSetSpacingExecute sets CurrentTool to SpacingGridTool.

Published procedure acShowFrontGridExecute(Sender: TObject);

acShowFrontGridExecute allows the user to show or hide the front grid in the 3D view.

Published procedure acShowGridShellExecute(Sender: TObject);

acShowGridShellExecute allows the user to show or hide the grid shell in the 3D view.

Published procedure acShowSideGridExecute(Sender: TObject);

acShowSideGridExecute allows the user to show or hide the side grid in the 3D view.

Published procedure acShowTopGridExecute(Sender: TObject);

acShowTopGridExecute allows the user to show or hide the top grid in the 3D view.

Published procedure acSmoothGridExecute(Sender: TObject);

acSmoothGridExecute allows the user to adjust row, column, or layer widths by showing TfrmSmoothGrid.

Published procedure acSubdivideExecute(Sender: TObject);

acSubdivideExecute sets CurrentTool to SubdivideGridTool.

Published procedure dcAddColCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcAddColCursorDrawCursor is used to draw a rotated version of the AddColumn cursor in the top view of the model.

Published procedure dcAddRowCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcAddRowCursorDrawCursor is used to draw a rotated version of the AddRow cursor in the top view of the model.

Published procedure dcMoveColCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcMoveColCursorDrawCursor is used to draw a rotated version of the MoveColumn cursor in the top view of the model.

Published procedure dcMoveRowCursorDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcMoveRowCursorDrawCursor is used to draw a rotated version of the MoveRow cursor in the top view of the model.

Published procedure dcSetSpacingDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcSetSpacingDrawCursor is used to draw a rotated version of the SetCellSpacing cursor in the top view of the model.

Published procedure dcSubdivideDrawCursor(Sender: TObject; const ABitMap, AMask: TBitmap);

dcSubdivideDrawCursor is used to draw a rotated version of the Subdivide cursor in the top view of the model.

Published procedure FormClose(Sender: TObject; var Action: TCloseAction);

FormClose checks that the model has closed and allows the user an chance to save it if it hasn't been saved.

Published procedure FormCreate(Sender: TObject); override;

FormCreate does the following 1. It creates the observer list which is used to notify objects when they are out of date. 2. It creates an initial model. 3. It adds PHAST specific functions to each TRbwParser. 4. It sets up the initial view of the model. 5. It update the cursors. 6. It sets some properties of the Application object.

Published procedure FormDestroy(Sender: TObject);

FormDestroy cleans up by destroying the model and other objects.

Published procedure FormResize(Sender: TObject);

When the form is resized, synchronize the rulers with the views of the model.

Published procedure FormKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);

FormKeyUp responds to the Escape, Return, Delete, PageUp, PageDown and arrow keys.

  • Escape: delete the last point in a TScreenObject that is being created.

  • Return: finish any TScreenObjects.

  • Delete: delete the selected TScreenObject or the selected vertices in the selected TScreenObject.

  • Left arrow: increase the selected column.

  • Right arrow: decrease the selected column.

  • Up arrow: increase the selected row.

  • Down arrow: decrease the selected row.

  • Page Up: increase the selected layer.

  • Page Down: decrease the selected layer.

FormKeyUp also implements the shortcuts of the TMenuItems. It should not need to do that; CLX should do it but does not.

Published procedure mi3D_ColorsClick(Sender: TObject);

mi3D_ColorsClick shows frmColors to allow the user to specify the color of the light in the 3D view.

Published procedure miAboutClick(Sender: TObject);

miAboutClick shows the About form for GoPhast. See link(frmAbout) and TfrmAbout.

Published procedure miChangeStyleClick(Sender: TObject);

miChangeStyleClick allows the user to customize the appearance of controls in GoPhast via TfrmChooseStyle.

Published procedure miChemistryOptionsClick(Sender: TObject);

miChemistryOptionsClick allows the user to set the options related to chemistry in PHAST via TfrmChemistryOptions.

Published procedure miColorGridClick(Sender: TObject);

miColorGridClick allows the user to color the grid with the values of a TDataArray in GoPhast via TfrmGridColor.

Published procedure miEditBitmapsClick(Sender: TObject);

miEditBitmapsClick allows the user to edit the position of bitmaps in GoPhast via TfrmImportBitmap.

Published procedure miEditSelectedObjectsClick(Sender: TObject);

miEditSelectedObjectsClick edits TScreenObjects by calling EditScreenObjects.

See also
miEditSelectedObjects
This TMenuItem [Object|Edit Selected Object(s)], allows the user to edit the properties of the selected objects by displaying the TfrmScreenObjectProperties dialog box.
Published procedure miExamplesClick(Sender: TObject);

See miExamples

Published procedure miFreeSurfaceClick(Sender: TObject);

miFreeSurfaceClick allows the user to set the options related to a free surface in PHAST via TfrmFreeSurface.

Published procedure miGridOptionsClick(Sender: TObject);

miGridOptionsClick allows the user to set the options related to the grid in PHAST via TfrmPhastGridOptions.

Published procedure miHelpOnMainWindowClick(Sender: TObject);

See miHelpOnMainWindow.

Published procedure miHintDelayClick(Sender: TObject);

miHintDelayClick allows the user to adjust how long hints should be visible in GoPhast via TfrmHintDelay.

Published procedure miImportBitmapClick(Sender: TObject);

miImportBitmapClick allows the user to import bitmaps into GoPhast via TfrmImportBitmap.

Published procedure miImportDistributedDatabyZoneClick(Sender: TObject);

miImportDistributedDatabyZoneClick allows the user to import zones from an existing PHAST model into GoPhast via TfrmImportDistributedData.

Published procedure miImportDXFFileClick(Sender: TObject);

miImportDXFFileClick allows the user to import DXF files into GoPhast via TfrmImportDXF.

Published procedure miImportPointsClick(Sender: TObject);

miImportPointsClick is used to import scattered point data.

Published procedure miImportShapefileClick(Sender: TObject);

miImportShapefileClick allows the user to import Shapefiles into GoPhast via TfrmImportShapefile.

Published procedure miPrintFrequencyClick(Sender: TObject);

miPrintFrequencyClick allows the user to set the options related to the print frequency in PHAST via TfrmPrintFrequency.

Published procedure miPrintInitialClick(Sender: TObject);

miPrintInitialClick allows the user to set the options related to the initial printing in PHAST via TfrmPrintInitial.

Published procedure miRearrangeObjectsClick(Sender: TObject);

miRearrangeObjectsClick allows the user to change the order of objects in GoPhast via TfrmRearrangeObjects.

Published procedure miRulerFormatClick(Sender: TObject);

miRulerFormatClick allows the user to change the format of the rulers in GoPhast via TfrmRulerOptions.

Published procedure miSearchForObjectClick(Sender: TObject);

miSearchForObjectClick allows the user to select an object based on what it does in GoPhast via TfrmSearch.

Published procedure miSelectObjectsByNameClick(Sender: TObject);

miSelectObjectsByNameClick allows the user to select an object based on its name in GoPhast via TfrmSelectObjects.

Published procedure miSetSelectedColRowLayerClick(Sender: TObject);

miSetSelectedColRowLayerClick allows the user to change the selected column, row, or layer in GoPhast via TfrmSelectColRowLayer.

Published procedure miShowFormulaErrorsClick(Sender: TObject);

miShowFormulaErrorsClick allows the user to see errors in formulas in GoPhast via frmFormulaErrors and TfrmFormulaErrors.

Published procedure miShowHideBitmapsClick(Sender: TObject);

miShowHideBitmapsClick allows the user to show or hide bitmaps in GoPhast via TfrmShowHideBitmaps.

Published procedure miShowHideObjectsClick(Sender: TObject);

miShowHideObjectsClick allows the user to show or hide TScreenObjects in GoPhast via TfrmShowHideObjects.

Published procedure miShowSelectedObjectsClick(Sender: TObject);

miShowSelectedObjectsClick allows the user to see the names of the selected TScreenObjects in GoPhast via frmSelectedObjects and TfrmSelectedObjects.

Published procedure miSolutionMethodClick(Sender: TObject);

miSolutionMethodClick allows the user to set the options related to the solution method in PHAST via TfrmSolutionMethod.

Published procedure miSteadyFlowClick(Sender: TObject);

miSteadyFlowClick allows the user to set the options related to steady flow in PHAST via TfrmSteadyFlow.

Published procedure miTimeControlClick(Sender: TObject);

miTimeControlClick allows the user to set the options related to time control in PHAST via TfrmTimeControl.

Published procedure miTitleAndUnitsClick(Sender: TObject);

miTitleAndUnitsClick allows the user to set the title and units in PHAST via TfrmUnits.

Published procedure miTopicSearchClick(Sender: TObject);

miTopicSearchClick allows the user to search for help on a topic using a keyword search. SearchFrame.html is displayed.

Published procedure miVerticalExaggerationClick(Sender: TObject);

miVerticalExaggerationClick allows the user to change the vertical exaggeration of the model. in GoPhast via TfrmVerticalExaggeration.

Published procedure miZoomInClick(Sender: TObject);

miZoomInClick allows the user to zoom in to a particular region. miZoomInClick sets CurrentTool to ZoomInTool.

Published procedure OpenMostRecentlyUsed(Sender: TObject);

OpenMostRecentlyUsed is the event handler for the menu items created by MostRecentlyUsed.

Published procedure pnlLowerRightMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);

pnlLowerRightMouseMove is used as the OnMouseMove event handler for most components. It sets CursorGrid to cgNone;

Published procedure sbMainMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

If the cursor is over one of the dividers between panels on sbMain when the MouseDown event occurs, sbMainMouseDown starts moving the divider.

Published procedure sbMainMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);

When the cursor is over one of the dividers between panels in sbMain or when the divider is being moved, sbMainMouseMove uses crMoveColumn as the cursor. Otherwise it, uses crDefault.

Published procedure sbMainMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

If the user is moving the dividers between two panels on sbMain, sbMainMouseUp moves the divider in the MouseUp event handler.

Published procedure sdSaveDialogFilterChange(Sender: TObject; NewIndex: Integer);

sdSaveDialogFilterChange sets FileFormat based on the filter that the user has selected in sdSaveDialog.

Published procedure splitHorizMoved(Sender: TObject);

This procedure keeps the rulers updated when the horizontal splitter separating the upper and lower halves of the main window is moved.

Published procedure splitVertBottomMoved(Sender: TObject);

One vertical splitter separates the top and side views. Another separates the bottom and blank panel. This procedure updates the upper one when the lower one is moved.

Published procedure splitVertTopMoved(Sender: TObject);

One vertical splitter separates the top and side views. Another separates the bottom and blank panel. This procedure updates the lower one when the upper one is moved.

Published procedure tb3DColorsClick(Sender: TObject);

tb3DColorsClick shows or hides the colors of the selected TDataArray in the 3D view of the model.

Published procedure tb3DObjectsClick(Sender: TObject);

tb3DObjectsClick shows or hides the colors of the TScreenObjects in the 3D view of the model.

Published procedure tbAddHorizontalBoundaryClick(Sender: TObject);

tbAddHorizontalBoundaryClick allows the user to add a horizontal boundary to the grid. tbAddHorizontalBoundaryClick sets CurrentTool to AddGridBoundaryTool.

Published procedure tbAddVerticalBoundaryClick(Sender: TObject);

tbAddVerticalBoundaryClick allows the user to add a vertical boundary to the grid. tbAddVerticalBoundaryClick sets CurrentTool to AddGridBoundaryTool.

Published procedure tbDeleteSegmentClick(Sender: TObject);

tbDeleteSegmentClick allows the user to delete a segment of a TScreenObject tbDeleteSegmentClick sets CurrentTool to DeleteSegmentTool.

Published procedure tbGridAngleClick(Sender: TObject);

tbGridAngleClick allows the user to rotate the grid tbGridAngleClick sets CurrentTool to RotateGridTool.

Published procedure tbInsertPointClick(Sender: TObject);

tbInsertPointClick allows the user to insert a point in a TScreenObject tbInsertPointClick sets CurrentTool to InsertPointTool.

Published procedure tbLassoClick(Sender: TObject);

tbLassoClick allows the user to TScreenObjects by dragging a line around them. tbLassoClick sets CurrentTool to LassoTool.

Published procedure tbLineClick(Sender: TObject);

tbLineClick allows the user to create a line TScreenObject. tbLineClick sets CurrentTool to CreateLineScreenObjectTool.

Published procedure tbPanClick(Sender: TObject);

tbPanClick allows the user to start panning. tbPanClick sets CurrentTool to PanTool.

Published procedure tbPointClick(Sender: TObject);

tbPointClick allows the user to create a point TScreenObject. tbPointClick sets CurrentTool to CreatePointScreenObjectTool.

Published procedure tbPointMouseDown(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

tbPointMouseDown makes sure all buttons except the current one are up.

Parameters
Sender
is the TToolButton that has been depressed.
Published procedure tbPolygonClick(Sender: TObject);

tbPolygonClick allows the user to create a polygon TScreenObject. tbPolygonClick sets CurrentTool to CreateLineScreenObjectTool.

Published procedure tbRectangleClick(Sender: TObject);

tbRectangleClick allows the user to create a rectangle TScreenObject. tbRectangleClick sets CurrentTool to CreateRectangleScreenObjectTool.

Published procedure tbSelectClick(Sender: TObject);

tbSelectClick allows the user to select a TScreenObject by clicking on it. tbSelectClick sets CurrentTool to SelectScreenObjectTool.

Published procedure tbSelectPointClick(Sender: TObject);

tbSelectPointClick allows the user to select a node in a TScreenObject by clicking on it. tbSelectPointClick sets CurrentTool to SelectPointTool.

Published procedure tbShellClick(Sender: TObject);

tbShellClick shows or hides the grid shell in the 3D view of the model.

Published procedure tbStraightLineClick(Sender: TObject);

tbStraightLineClick allows the user to create a straight-line TScreenObject. tbStraightLineClick sets CurrentTool to CreateStraightLineScreenObjectTool.

Published procedure tbZoomClick(Sender: TObject);

tbZoomClick allows the user to zoom in on a particular region by selecting it with the mouse. tbZoomClick sets CurrentTool to ZoomTool.

Published procedure tbZoomOutClick(Sender: TObject);

tbZoomOutClick allows the user to zoom out from a particular region. tbZoomOutClick sets CurrentTool to ZoomOutTool.

Published procedure ToolButtonMouseUp(Sender: TObject; Button: TMouseButton; Shift: TShiftState; X, Y: Integer);

When handling the OnMouseUp event, ToolButtonMouseUp checks that the user released the mouse while it was over the TToolButton. If so, ToolButton.Down is set to false and CurrentTool is set to Nil.

Private procedure AddMostRecentlyUsedFile(const FileName: string);

AddMostRecentlyUsedFile adds FileName to MostRecentlyUsed.

Private procedure AdjustToolbarPositions(FirstToolBar, SecondToolBar: TToolBar);

AdjustToolbarPositions adjusts SecondToolBar.Left so that is just to the right of FirstToolBar. It is assumed that FirstToolBar and SecondToolBar are on the same row.

Private procedure AdjustToolbarWidth(AToolBar: TToolBar);

AdjustToolbarWidth adjusts the width of AToolBar so that it accommodates all the visible buttons on it.

Private procedure BringFormsToFront(Sender: TObject);

If frmProgress, frmSelectedObjects, or frmColors are visible, BringFormsToFront brings them to the front. BringFormsToFront is the Application.OnActivate event handler.

Private function CheckModel: boolean;

CheckModel checks that the model has closed and allows the user an chance to save it if it hasn't been saved.

Private procedure ClearSelectedNodes;

If any individual vertices in a TScreenObject are selected ClearSelectedNodes deselects them. ClearSelectedNodes is used in tbSelectClick.

Private procedure DrawAddColRowCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);

DrawAddColRowCursor is used to draw the bitmaps for the add-column or add-row cursor for the top view. It is also used to help draw the subdivide cursor. The cursor is drawn with lines that are parallel to the grid.

Private procedure DrawHint(Sender: TObject; Canvas: TCanvas; const Rect: TRect; var DefaultDraw: Boolean);

DrawHint ensures that the hint text is black despite the possibility of weird settings on the computer. DrawHint is the DrawHint event handler for Application.Style.

Private procedure DrawMoveColRowCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);

DrawMoveColRowCursor is used to draw the bitmaps for the move-column or move-row cursor for the top view. The cursor is drawn with lines that are parallel to the grid.

Private procedure DrawSubdivideCursor(const AndImage: TBitmap; Angle: real; const CursorComponent: TQRbwDynamicCursor);

DrawSubdivideCursor is used to help draw the bitmaps for the subdivide cursor for the top view. The cursor is drawn with lines that are parallel to the grid.

Private procedure ExportFile(const FileName: string);

ExportFile writes the transport input file for PHAST. The work is delegated to WritePhastInput.

Private procedure FillButtonList(AList: TList);

FillButtonList fills AList with the buttons that can't all be down at the same time.

Private function GetPhastGrid: TPhastGrid;

See PhastGrid.

Private function IsOverStatusPanelDivider(const X: integer): boolean;

IsOverStatusPanelDivider returns true if X indicates that the mouse is over one of the dividers between panels on sbMain. IsOverStatusPanelDivider is called from sbMainMouseMove.

Private procedure ReadIniFile;

ReadIniFile reads an ini file containing the most recently used files.

See also
WriteIniFile
WriteIniFile writes an ini file containing the most recently used files.
Private procedure SaveAFile(FileName: string);

SaveAFile saves the file named FileName.

Private procedure SelectDefaultButton;

If none of the buttons for creating TScreenObjects, editing the grid or other similar activities is Down. SelectDefaultButton sets tbSelect down.

Private procedure SetActionChecked(Sender: TObject);

SetActionChecked toggles the checked state of an action or the action associated with a control.

Parameters
Sender
must be the action or control whose state is to be toggled for SetActionChecked to do anything. If it isn't, SetActionChecked does nothing.
Private procedure SetButtonsUp(const CurrentButton: TObject);

SetButtonsUp sets the Down property of all buttons related to CurrentButton to false.

Parameters
CurrentButton
is the button that should remain down.
Private procedure SetCurrentTool(const Value: TCustomInteractiveTool);

See CurrentTool.

Private procedure SetCursorGrid(const Value: TCursorGrid);

See CursorGrid.

Private procedure SetFileFormat(const Value: TFileFormat);

See FileFormat.

Private procedure SetFrontScreenObjectsChanged(const Value: boolean);

See FrontScreenObjectsChanged.

Private procedure SetSideScreenObjectsChanged(const Value: boolean);

See SideScreenObjectsChanged.

Private procedure SetTopScreenObjectsChanged(const Value: boolean);

See TopScreenObjectsChanged.

Private procedure SetZB_Cursors(const ACursor: TCursor);

SetZB_Cursors sets TframeView..ZoomBox.Cursor and TframeView..ZoomBox.PaintBox.Cursor to ACursor in frameTopView, frameFrontView, and frameSideView.

Private procedure ShowHint(Sender: TObject);

ShowHint is the event-handler for Application.OnHint. ShowHint shows a long version of the hint on the status bar (sbMain).

Private procedure ValidateJpeg;

In Windows, ValidateJpeg checks whether gdiplus.dll is installed. If not. it shows a warning via TfrmJpegWarning and sets JpegsOK to False. ValidateJpeg is called in FormCreate.

Private procedure WriteIniFile;

WriteIniFile writes an ini file containing the most recently used files.

See also
ReadIniFile
ReadIniFile reads an ini file containing the most recently used files.
Protected procedure OnAppIdle(Sender: TObject; var Done: Boolean);

OnAppIdle assigns the event handlers to the undo/redo buttons and undo/redo menu items.

Protected function WidgetFlags: integer; override;

WidgetFlags is overridden to eliminates a lot of flickering during repaint operations. Credit: http://www.psychology.nottingham.ac.uk/staff/cr/kylix.html.

Public procedure AdjustScales;

AdjustScales calls TframeView.AdjustScales for frameTopView, frameFrontView, and frameSideView.

Public procedure EditScreenObjects;

EditScreenObjects allows the user to edit the properties of the selected screen objects.

Public function GetCompiler(const Orientation: TDataSetOrientation; const EvaluatedAt: TEvaluatedAt): TRbwParser;

GetCompiler returns the TRbwParser that should be used for a particular TDataSetOrientation and TEvaluatedAt.

Public procedure InvalidateDataSets;

InvalidateDataSets invalidates all the TDataArrays in the model.

Public procedure InvalidateFront;

InvalidateFront causes the the front view of the model to be redrawn.

Public procedure InvalidateModel;

InvalidateModel invalidates Model.

Public procedure InvalidateSide;

InvalidateSide causes the the side view of the model to be redrawn.

Public procedure InvalidateTop;

InvalidateTop causes the the top view of the model to be redrawn.

Public procedure OpenAFile(const FileName: string);

OpenAFile is used to read a GoPhast file from the disk.

Parameters
FileName
is the name of the file that is to be read.
Public function ResetSelectedScreenObjects: boolean;

ResetSelectedScreenObjects sets the Selected property of all TScreenObjects to false. ResetSelectedScreenObjects returns true if any of them were selected.

Public procedure ResizeZoomBoxes(Sender: TObject);

ResizeZoomBoxes causes the ZoomBoxes to be resized. ResizeZoomBoxes is set to be the OnTimer event handler of timTimer in TframeView.ZoomBoxResize.

Public procedure ScreenObjectsChanged(Sender: TObject);

ScreenObjectsChanged is used to update all views of the model.

Public procedure UpdateDataSetDimensions;

UpdateDataSetDimensions tells all the TDataArrays what the new grid dimensions are.

Properties

Protected property FileFormat: TFileFormat read FFileFormat write SetFileFormat;

FileFormat is used to specify the format of the files that can be opened or saved by GoPhast.

Public property CanDraw: boolean read FCanDraw write FCanDraw;

Setting CanDraw to False causes TframeView.ZoomBoxPaintBoxPaint to exit immediately without doing anything.

Public property CanEdit: boolean read FCanEdit write FCanEdit;

CanEdit is used to prevent editing of two or more sets of TScreenObjects at one time.

Public property ClickedRuler: TObject read FClickedRuler write FClickedRuler;

ClickedRuler is set to the TRbwRuler in TframeView.rulerDblClick It determines which tab of TfrmRulerOptions will be visible when it is first displayed.

Public property CurrentTool: TCustomInteractiveTool read FCurrentTool write SetCurrentTool;

CurrentTool is the TCustomInteractiveTool that is currently being used to handle the user interaction with TframeView.ZoomBox.

Public property CursorGrid: TCursorGrid read FCursorGrid write SetCursorGrid;

CursorGrid is used to indicate which view of the model, if any, the mouse is over.

Public property CursorX: integer read FCursorX write FCursorX;

CursorX is used to store the X-coordinate of the current mouse position in the current TframeView.ZoomBox.

Public property CursorY: integer read FCursorY write FCursorY;

CursorY is used to store the Y-coordinate of the current mouse position in the current TframeView.ZoomBox.

Public property DeletedDataSets: TObjectList read FDeletedDataSets;

DeletedDataSets is used to store TDataArrays that have been deleted. The intent is to allow them to be restored later. However, that capability has not been implemented.

Public property FrontGridChanged: boolean read FFrontGridChanged write FFrontGridChanged;

FrontGridChanged is used to indicate that a change has been made to the grid in the front view of the model so that the view of the model needs to be redrawn.

Public property FrontScreenObjectsChanged: boolean read FFrontScreenObjectsChanged write SetFrontScreenObjectsChanged;

Setting FrontScreenObjectsChanged to true causes the front view of the model to be redrawn.

Public property IniFile: TMemInifile read FIniFile;

IniFile is the ini file for GoPhast. It stores a list of the most recently opened files.

Public property Model: TPhastModel read FModel write FModel;

Model is the TPhastModel that is being edited in GoPhast.

Public property OldHeight: integer read FOldHeight;

OldHeight represents the height of the main form in GoPhast when it is not minimized. It is used in TPhastModel.Height.

Public property OldWidth: integer read FOldWidth;

OldWidth represents the width of the main form in GoPhast when it is not minimized. It is used in TPhastModel.Width.

Public property PhastGrid: TPhastGrid read GetPhastGrid;

PhastGrid is the PhastGrid of Model.

Public property SideGridChanged: boolean read FSideGridChanged write FSideGridChanged;

SideGridChanged is used to indicate that a change has been made to the grid in the side view of the model so that the view of the model needs to be redrawn.

Public property SideScreenObjectsChanged: boolean read FSideScreenObjectsChanged write SetSideScreenObjectsChanged;

Setting SideScreenObjectsChanged to true causes the side view of the model to be redrawn.

Public property TopGridChanged: boolean read FTopGridChanged write FTopGridChanged;

TopGridChanged is used to indicate that a change has been made to the grid in the top view of the model so that the view of the model needs to be redrawn.

Public property TopScreenObjectsChanged: boolean read FTopScreenObjectsChanged write SetTopScreenObjectsChanged;

Setting TopScreenObjectsChanged to true causes the top view of the model to be redrawn.


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