Add Button Bar
Add Button Bar
--
-- (c) Copyright 1998 to Current Year AVEVA Solutions Limited
--
-- File: gph3ddesign.pmlfnc
-- Type: Function Definition
-- Group: Graphic View
-- Keyword: VIEW
-- Module: common
-- Replaces:
--
-- Author: N.Holmes
-- Created: Tue Jan 20 10:04:50 WAT 1998
--
-- Last modified by $Author: nrh $ on $Date: 2003/01/09 17:07:25 $
-- $Revision: 1.28 $
--
-- Description:
-- Standard Design Graphic View
--
------------------------------------------------------------------------
--
-- Function Type: Function/Procedure
-- Arguments:
-- [#] [R/RW] [Data Type] [Description]
-- 1 R REAL Form number
-- Return:
-- [Data Type] [Description]
-- FORM Form created
--
------------------------------------------------------------------------
-- Define function
define function !!gph3DDesign(!number is REAL) is FORM
-- Initialise Variables
!form = '!!gph3DDesign' & !number
!module = !!module()
-- Define form
setup form $!<form> resize DOCUMENT
$!<form>.formTitle = 'Default'
$!<form>.iconTitle = '3DView'
$!<form>.callback = ''
$!<form>.formRevision = ' $Revision: 1.28 $ '
$!<form>.cancelCall = '!!gphViews.close(' & !form & ')'
-- Body of form definition
-- Define Prompt
para .prompt at x0 ymax width 80 lines 1
-- New model editor view
if(!module.appName.lowcase() eq 'design') then
!volumeType = 'GIVolume'
!autoCeIcon = !!pml.getPathName('autocepopup16.png')
!rotateCeIcon = !!pml.getPathName('rotatece16.png')
!mouseZoomRectIcon = !!pml.getPathName('ng_zoomrectangle.png')
!mouseZoomInOutIcon = !!pml.getPathName('ng_zoominout.png')
!mouseRotateIcon = !!pml.getPathName('ng_rotatemode.png')
!mousePanIcon = !!pml.getPathName('ng_panmode.png')
!mouseWalkIcon = !!pml.getPathName('ng_walkmode.png')
!mouseWalkIconOff = !!pml.getPathName('ng_walkmode_off.png')
!restoreOneIcon = !!pml.getPathName('ng_restoreview1.png')
!restoreOneIconOff = !!pml.getPathName('ng_restoreview1_off.png')
!restoreTwoIcon = !!pml.getPathName('ng_restoreview2.png')
!restoreTwoIconOff = !!pml.getPathName('ng_restoreview2_off.png')
!restoreThreeIcon = !!pml.getPathName('ng_restoreview3.png')
!restoreThreeIconOff = !!pml.getPathName('ng_restoreview3_off.png')
!restoreFourIcon = !!pml.getPathName('ng_restoreview4.png')
!restoreFourIconOff = !!pml.getPathName('ng_restoreview4_off.png')
!zoomToCEIcon = !!pml.getPathName('ng_zoomtoce.png')
!zoomToIdentifyIcon = !!pml.getPathName('ng_zoomtoidentify.png')
!walkToDrawlistIcon = !!pml.getPathName('ng_zoomtodrawlist.png')
!zoomToSelectionIcon = !!pml.getPathName('ng_zoomtoselection.png')
!zoomToSelIconOff = !!pml.getPathName('ng_zoomtoselection_off.png')
!clippingIconOn = !!pml.getPathName('clippingicon_on16.png')
!clippingIconOff = !!pml.getPathName('clippingicon_off16.png')
!clipCE = !!pml.getPathName('clipce16.png')
--------------------------------------------------------------------------------
--------------------------------------------------
-- DO NOT ATTEMPT TO MODIFY THE NAMES OR DEFINITIONS OF ANY .core BUTTONS. THE
SE ARE CONTROLLED BY PDMS DESIGN CORE.
--------------------------------------------------------------------------------
--------------------------------------------------
-- define view control buttons
button .autoCE tooltip 'Limits CE & Options'
pixmap /$!<autoCeIcon> width 16 height 16 at x0 ymax+0.2 callba
ck |!!gphViews.limits(!this.view, !!ce)|
button .coreZoomToSelectionButton tooltip 'Zoom to Selection'
pixmap /$!<zoomToSelectionIcon> width 16 height 16 at xmin ymax
button .coreWalkToDrawlistButton tooltip 'Walk to Draw List'
pixmap /$!<walkToDrawlistIcon> width 16 height 16 at xmin ymax
button .coreCentreButton tooltip 'Centre on Selection'
pixmap /$!<rotateCeIcon> width 16 height 16 at xmin ymax callba
ck |!!gphViews.rotate(!this.view, !!ce.position)|
-- Middle mouse button view manipulation modes
button .coreZoomRectButton toggle tooltip 'Middle mouse button: Zoom Rect
angle' pixmap /$!<mouseZoomRectIcon> /$!<mouseZoomRectIcon>
width 16 height 16 at xmin ymax+0.3
button .coreZoomInOutButton toggle tooltip 'Middle mouse button: Zoom In/O
ut' pixmap /$!<mouseZoomInOutIcon> /$!<mouseZoomInOutIcon>
width 16 height 16 at xmin ymax
button .coreRotateButton toggle tooltip 'Middle mouse button: Rotate'
pixmap /$!<mouseRotateIcon> /$!<mouseRotateIcon>
width 16 height 16 at xmin ymax
button .corePanButton toggle tooltip 'Middle mouse button: Pan'
pixmap /$!<mousePanIcon> /$!<mousePanIcon>
width 16 height 16 at xmin ymax
button .coreWalkButton toggle tooltip 'Middle mouse button: Walkthrou
gh' pixmap /$!<mouseWalkIcon> /$!<mouseWalkIcon> /$!<mouseWalkIconOff>
width 16 height 16 at xmin ymax
button .clippingButton toggle tooltip 'Clipping & Options'
pixmap /$!<clippingIconOff> /$!<clippingIconOn>
width 16 height 16 at xmin ymax+0.3 callback |!!gphViews.cl
ipButton(|
button .clippingCE tooltip 'Clip CE'
pixmap /$!<clipCE> width 1
6 height 16 at xmin ymax callback |!!gphViews.clipboxElement(!this.view, !!C
E)|
-- View save and restore commands
button .coreRestoreView1Button tooltip 'Restore View 1' pixmap /$!<res
toreOneIcon> /$!<restoreOneIcon> /$!<restoreOneIconOff> width 16 heigh
t 16 at xmin ymax+0.3
button .coreRestoreView2Button tooltip 'Restore View 2' pixmap /$!<res
toreTwoIcon> /$!<restoreTwoIcon> /$!<restoreTwoIconOff> width 16 heigh
t 16 at xmin ymax
button .coreRestoreView3Button tooltip 'Restore View 3' pixmap /$!<res
toreThreeIcon> /$!<restoreThreeIcon> /$!<restoreThreeIconOff> width 16 heigh
t 16 at xmin ymax
button .coreRestoreView4Button tooltip 'Restore View 4' pixmap /$!<res
toreFourIcon> /$!<restoreFourIcon> /$!<restoreFourIconOff> width 16 heigh
t 16 at xmin ymax
-- Added by Simon Liddicott
button .newButton tooltip 'New button' pixmap /$!<restoreFourIcon> wid
th 16 height 16 at xmin ymax callback |$P new button|
-- Edit ends