proc xOverlayDependencyCallback {customField viewField dataField} {
global xExtentsBox
overlayDependencyCallback $xExtentsBox $customField $viewField $dataField
}
proc yOverlayDependencyCallback {customField viewField dataField} {
global yExtentsBox
overlayDependencyCallback $yExtentsBox $customField $viewField $dataField
}
proc gridPlaneValueCallback {} {
global grid_plane_value
global grid
if {"[$grid getCurrentValue]" == "location"} {
$grid_plane_value setNullAllowed false
} else {
$grid_plane_value setNullAllowed true
}
}
proc overlayDependencyCallback {comboBox customField viewField dataField} {
if {"[$comboBox getCurrentValue]" == "Custom"} {
$customField setVisible true
$viewField setVisible false
$dataField setVisible false
} elseif {"[$comboBox getCurrentValue]" == "View"} {
$customField setVisible false
$viewField setVisible true
$dataField setVisible false
} elseif  {"[$comboBox getCurrentValue]" == "Data"} {
$dataField setVisible true
$customField setVisible false
$viewField setVisible false
}
}
GuidoForm frm00140 {
-action initial {[yOverlayDependencyCallback $yExtentMinCustom $yExtentMinView $yExtentMinData]}
-action initial {[yOverlayDependencyCallback $yExtentMaxCustom $yExtentMaxView $yExtentMaxData]}
-action initial {[xOverlayDependencyCallback $xExtentMinCustom $xExtentMinView $xExtentMinData]}
-action initial {[xOverlayDependencyCallback $xExtentMaxCustom $xExtentMaxView $xExtentMaxData]}
-action initial {[yOverlayDependencyCallback $ygrid_inc_custom $ygrid_inc_view $ygrid_inc_data]}
-action initial {[xOverlayDependencyCallback $xgrid_inc_custom $xgrid_inc_view $xgrid_inc_data]}
-default_buttons
-label "Draw a Grid"
-layout BoxLayout Y_AXIS
-tip "2DGRID_TOOLTIP"
GuidoPanel frm00140_7 {
-layout CentreLineLayout
GuidoLabel planeLabel {
-font_style bold
}
GuidoLabel function {
-font_style bold
-visible false
}
}
GuidoPanel frm00140_GridParameters {
-layout BoxLayout X_AXIS
-border etched true
-label "Grid Parameters"
GuidoPanel frm00140_8 {
-layout CentreLineLayout
GuidoFiller frm00140_11 {}
GuidoLabel frm00140_3 {
-label "Grid Line Interval"
}
GuidoLabel ylabel {
-label "Y Direction:"
}
GuidoPanel frm00140_132_1 {
-layout OverlayLayout
GuidoField ygrid_inc_view {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus ylabel_inc
-null false
-tip "GRID_YSPACING_TOOLTIP"
-translate upper
-decimals 3
}
GuidoField ygrid_inc_custom {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus ylabel_inc
-null false
-tip "GRID_YSPACING_TOOLTIP"
-translate upper
-decimals 3
}
GuidoField ygrid_inc_data {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus ylabel_inc
-null false
-tip "GRID_YSPACING_TOOLTIP"
-translate upper
-decimals 3
}
}
GuidoLabel xlabel {
-label "X Direction:"
}
GuidoPanel frm00140_132_2 {
-layout OverlayLayout
GuidoField xgrid_inc_view {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus xlabel_inc
-null false
-tip "GRID_XDIR_TOOLTIP"
-translate upper
-decimals 3
}
GuidoField xgrid_inc_custom {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus xlabel_inc
-null false
-tip "GRID_XDIR_TOOLTIP"
-translate upper
-decimals 3
}
GuidoField xgrid_inc_data {
-display_length 16
-format double
-high_bound 999999999
-low_bound 0.005
-max_length 16
-next_focus xlabel_inc
-null false
-tip "GRID_XDIR_TOOLTIP"
-translate upper
-decimals 3
}
}
GuidoLabel zlabel {
-dependency {"[ $function getCurrentValue]" == "3D GRID"}
-label "Z Direction:"
}
GuidoField zgrid_inc {
-dependency {"[ $function getCurrentValue]" == "3D GRID"}
-display_length 16
-format double
-high_bound 999999999
-low_bound .005
-max_length 16
-next_focus zlabel_inc
-null false
-tip "GRID_ZDIR_TOOLTIP"
-translate upper
-decimals 3
}
}
GuidoFiller frm00140_12 {
-width 1
}
GuidoPanel frm00140_9 {
-layout BoxLayout Y_AXIS
GuidoLabel frm00140_4 {
-label "Label Frequency"
}
GuidoField ylabel_inc {
-default 1
-display_length 6
-format double
-high_bound 999999999
-low_bound 0
-max_length 4
-next_focus xgrid_inc_view
-null false
-tip "GRID_LABEL_TOOLTIP"
-translate upper
}
GuidoField xlabel_inc {
-default 1
-display_length 6
-format double
-high_bound 999999999
-low_bound 0
-max_length 4
-next_focus zgrid_inc
-null false
-tip "GRID_LABEL_TOOLTIP"
-translate upper
}
GuidoField zlabel_inc {
-default 1
-dependency {"[ $function getCurrentValue]" == "3D GRID"}
-display_length 6
-format double
-high_bound 999999999
-low_bound 0
-max_length 4
-null false
-tip "GRID_LABEL_TOOLTIP"
-translate upper
}
}
}
GuidoPanel frm00140_2d_OR_3d {
-layout OverlayLayout
GuidoPanel frm00140_2dstuff {
-layout BoxLayout Y_AXIS
GuidoPanel frm00140_14 {
-dependency {"[ $function getCurrentValue]" == "2D GRID"}
-layout BoxLayout X_AXIS
-border etched true
-label "Grid Extents"
GuidoPanel frm00140_141 {
-layout BoxLayout Y_AXIS
GuidoLabel xDir {
-label "Y Direction: "
-display_length 10
}
GuidoLabel yDir {
-label "X Direction: "
-display_length 10
}
}
GuidoPanel frm00140_142 {
-layout CentreLineLayout
GuidoLabel minYlbl {
-label "Minimum: "
}
GuidoPanel frm00140_132 {
-layout OverlayLayout
GuidoField yExtentMinCustom {
-display_length 6
-format double
-high_bound 999999999
-low_bound -999999999
-max_length 16
-null false
-translate upper
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
GuidoLabel yExtentMinView {
-label "432"
-display_length 6
}
GuidoLabel yExtentMinData {
-label "23"
-display_length 6
}
}
GuidoLabel minXlbl {
-label "Minimum: "
}
GuidoPanel frm00140_133 {
-layout OverlayLayout
GuidoField xExtentMinCustom {
-display_length 6
-format double
-high_bound 999999999
-low_bound -999999999
-max_length 16
-null false
-translate upper
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
GuidoLabel xExtentMinView {
-label "432"
-display_length 6
}
GuidoLabel xExtentMinData {
-label "23"
-display_length 6
}
}
}
GuidoFiller foo_ball {
-width 2
}
GuidoPanel frm00140_142 {
-layout CentreLineLayout
GuidoLabel maxYlbl {
-label "Maximum: "
}
GuidoPanel frm00140_132 {
-layout OverlayLayout
GuidoField yExtentMaxCustom {
-display_length 6
-format double
-high_bound 999999999
-low_bound -999999999
-max_length 16
-null false
-translate upper
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
GuidoLabel yExtentMaxView {
-label "432"
-display_length 6
}
GuidoLabel yExtentMaxData {
-label "23"
-display_length 6
}
}
GuidoLabel maxXlbl {
-label "Maximum: "
}
GuidoPanel frm00140_133 {
-layout OverlayLayout
GuidoField xExtentMaxCustom {
-display_length 6
-format double
-high_bound 999999999
-low_bound -999999999
-max_length 16
-null false
-translate upper
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
GuidoLabel xExtentMaxView {
-label "432"
-display_length 6
}
GuidoLabel xExtentMaxData {
-label "23"
-display_length 6
}
}
}
GuidoFiller bar_ball {
-width 2
}
GuidoPanel frm00140_24 {
-layout BoxLayout Y_AXIS
GuidoComboBox yExtentsBox {
-action valueChanged {[yOverlayDependencyCallback $yExtentMinCustom $yExtentMinView $yExtentMinData]}
-action valueChanged {[yOverlayDependencyCallback $yExtentMaxCustom $yExtentMaxView $yExtentMaxData]}
-action valueChanged {[yOverlayDependencyCallback $ygrid_inc_custom $ygrid_inc_view $ygrid_inc_data]}
-display_length 7
-value_in "View" "Data" "Custom"
-input true
-exclusive true
-null false
-default "View"
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
GuidoComboBox xExtentsBox {
-action valueChanged {[xOverlayDependencyCallback $xExtentMinCustom $xExtentMinView $xExtentMinData]}
-action valueChanged {[xOverlayDependencyCallback $xExtentMaxCustom $xExtentMaxView $xExtentMaxData]}
-action valueChanged {[xOverlayDependencyCallback $xgrid_inc_custom $xgrid_inc_view $xgrid_inc_data]}
-display_length 7
-value_in "View" "Data" "Custom"
-input true
-exclusive true
-null false
-default "View"
-tip "2DGRID_EXTENTS_SELECT_TIP"
}
}
}
GuidoPanel frm00140_GridPosition {
-dependency {"[ $function getCurrentValue]" == "2D GRID"}
-layout BoxLayout Y_AXIS
-border etched true
-label "Grid Position"
-tip "2DGRID_ARB_POS_TOOLTIP"
GuidoButtonGroupPanel grid {
-action valueChanged {[gridPlaneValueCallback]}
GuidoRadioButton frm00140_14 {
-caption "In Front"
-selected_value above
}
GuidoRadioButton frm00140_15 {
-caption "Midpoint"
-selected_value midpoint
}
GuidoRadioButton frm00140_16 {
-caption "Behind"
-selected_value below
}
GuidoRadioButton frm00140_17 {
-caption "Position"
-selected_value location
-next_focus arb_value
}
}
GuidoPanel frm00140_22 {
-layout BoxLayout X_AXIS
GuidoLabel max {
-label "Enter the value: "
-display_length 8
}
GuidoField grid_plane_value {
-dependency {"[ $grid getCurrentValue]" == "location"}
-display_length 16
-format range
-high_bound 999999999
-low_bound 0
-max_length 16
-tip "2DGRID_POSITION_TOOLTIP"
-translate upper
}
GuidoFiller frm00140_12 {
-width 7
}
}
}
GuidoPanel frm00140_97815321 {
-layout BoxLayout X_AXIS
-label "Appearance"
-border etched true
-dependency {"[ $function getCurrentValue]" == "2D GRID"}
GuidoPanel frm00140_persistance_options {
-layout CentreLineLayout
GuidoCheckBox replaceCurrentGrid {
-default true
-label "Replace current grid:"
-selected_value Y
-unselected_value N
-caption_placement "right"
}
GuidoFileBrowserField gridFile {
-label "Append to file:"
-display_length 10
-format none
-max_length FIO_MAX_FILENAME_LENGTH
-translate lower
-extension true
-file_mask "*.grids"
-file_access write
-tip GRID_FILE_APPEND_TIP
}
}
GuidoFiller frm00140_12 {
-width 2
}
GuidoPanel frm00140_colour_set {
-layout BoxLayout X_AXIS
GuidoPanel frm00140_colour_arrange {
-layout CentreLineLayout
GuidoColourBrowserField grid_line_colour {
-display_length 10
-exclusive false
-label "Line colour:"
-max_length 32
-tip "The colour for the new grid"
}
GuidoColourBrowserField grid_text_colour {
-display_length 10
-exclusive false
-label "Text colour:"
-max_length 32
-tip "The colour for the new grid"
}
}
}
}
}
GuidoPanel frm00140_3dstuff {
-layout BoxLayout Y_AXIS
GuidoPanel frm00140_7865324 {
-dependency {"[ $function getCurrentValue]" == "3D GRID"}
-layout CentreLineLayout
-border etched true
-label "Grid Planes"
GuidoLabel planPlaneLabel {
-label "XY Plan"
-display_length 8
}
GuidoComboBox planGridPos {
-action valueChanged {[xOverlayDependencyCallback $xExtentMinCustom $xExtentMinView $xExtentMinData]}
-action valueChanged {[xOverlayDependencyCallback $xExtentMaxCustom $xExtentMaxView $xExtentMaxData]}
-display_length 7
-value_in "Above" "Below" "Both" "None"
-input true
-exclusive true
-null false
-default "Below"
}
GuidoLabel sectionPlaneLabel {
-label "XZ Section"
-display_length 8
}
GuidoComboBox sectionGridPos {
-action valueChanged {[xOverlayDependencyCallback $xExtentMinCustom $xExtentMinView $xExtentMinData]}
-action valueChanged {[xOverlayDependencyCallback $xExtentMaxCustom $xExtentMaxView $xExtentMaxData]}
-display_length 7
-value_in "Front" "Behind" "Both" "None"
-input true
-exclusive true
-null false
-default "Behind"
}
GuidoLabel longSectionPlaneLabel {
-label "YZ Long Section"
-display_length 8
}
GuidoComboBox longSectionGridPos {
-action valueChanged {[xOverlayDependencyCallback $xExtentMinCustom $xExtentMinView $xExtentMinData]}
-action valueChanged {[xOverlayDependencyCallback $xExtentMaxCustom $xExtentMaxView $xExtentMaxData]}
-display_length 7
-value_in "Left" "Right" "Both" "None"
-input true
-exclusive true
-null false
-default "None"
}
}
}
}
}
