# $Revision$ on $Date$
# The above revision line needs to be the first line for ttkrf files
# Copyright (c) 2006 Ansys Inc

dataEntryDialog v3SurfacePropertyDEZ "Selected Surfaces' Properties"
  textEntry v3SurfaceSName "Names" ::surf_info(slted) TEXT
  frame v3SurfacePpt "Line-width, Sizes, etc."
   # textEntry v3SurfacePptAlpha Transparency surf_info:transp NUM
   # textEntry v3SurfacePptCtlw  "Contourline width" surf_info:contourline_width NUM
   # textEntry v3SurfacePptGdlw  "Grid line width" surf_info:grid_width NUM
   # textEntry v3SurfacePptEglw  "Edge line width" surf_info:edge_width NUM
   # textEntry v3SurfacePptVsiz  "Vector size" surf_info:vec_size NUM
   # textEntry v3SurfacePptArsz  "Arrow size" surf_info:arrow_size NUM
   # textEntry v3SurfacePpt2dVsz "2D Vector size" surf_info:v2d_size NUM
   # textEntry v3SurfacePptDotsz "Nodes' dot size" surf_info:dots_size NUM

   # entryButton v3SurfacePptAlpha Transparency NULL surf_info:transp \
   #               "aie_v3p_surfppts transp" "Transparency"
     scaleBar    v3SurfacePptAlpha Transparency surf_info:transp \
                   0 1 0.01 "aie_v3p_surfppts transp {}" 0 160 1
     entryButton v3SurfacePptCtlw  "Contourline width" NULL surf_info:contourline_width \
                  "aie_v3p_surfppts contourline_width" "Contourline width"
     entryButton v3SurfacePptGdlw  "Grid line width" NULL surf_info:grid_width \
                  "aie_v3p_surfppts grid_width" "Grid line width"
     entryButton v3SurfacePptEglw  "Edge line width" NULL surf_info:edge_width \
                  "aie_v3p_surfppts edge_width" "Edge line width"
     entryButton v3SurfacePptVsiz  "Vector size" NULL surf_info:vec_size  \
                  "aie_v3p_surfppts vec_size" "Vector size"
     entryButton v3SurfacePptArsz  "Arrow size" NULL surf_info:arrow_size \
                  "aie_v3p_surfppts arrow_size" "Arrow size"
     entryButton v3SurfacePpt2dVsz "2D Vector size" NULL surf_info:v2d_size \
                  "aie_v3p_surfppts v2d_size" "2D Vector size"
     entryButton v3SurfacePptDotsz "Nodes' dot size" NULL surf_info:dots_size \
                  "aie_v3p_surfppts dots_size" "Nodes' dot size"
  frame END
  frame v3SurfaceCols "Uniform Colors"
     colorOptMenu v3SurfacePptSfCol "Solid display" surf_info(selected,solid,col) \
                  "update_all_surfaces_selected solid col"
     colorOptMenu v3SurfacePptCtCol "Contourline" surf_info(selected,contour,col) \
                  "update_all_surfaces_selected contour col"
     colorOptMenu v3SurfacePptGdCol "Grid plot" surf_info(selected,grid,col) \
                  "update_all_surfaces_selected grid col"
     colorOptMenu v3SurfacePptEgCol "Edge plot" surf_info(selected,edge,col) \
                  "update_all_surfaces_selected edge col"
     colorOptMenu v3SurfacePptVcCol "Vector plot" surf_info(selected,vec,col) \
                  "update_all_surfaces_selected vec col"
     colorOptMenu v3SurfacePptV2Col "2D Vector plot" surf_info(selected,v2d,col) \
                  "update_all_surfaces_selected v2d col"
     colorOptMenu v3SurfacePptDtCol "Node plot" surf_info(selected,dots,col) \
                  "update_all_surfaces_selected dots col"
  frame END
  checkFrame v3SurfaceTuft "Vectors uniformly spaced with" \
            ::surf_info(selected,tufts) "update_all_surfaces_selected tufts"
     entryButton v3SurfaceTuftN "Number of vectors" NULL surf_info:ntufts \
                  "aie_v3p_surfppts ntufts" "Number of vectors"
  checkFrame END
  frame v3SurfaceOpts "Options"
     textButton v3SurfaceOptsFtlns "Set featureLines" \
                           "aie_v3surfgrp_opts set_featurelines {}"
     textButton v3SurfaceOptsRmFtlns "Remove featureLines" \
                           "aie_v3surfgrp_opts remove_featurelines {}"
     textButton v3SurfaceOptsSmShade "Use smooth shading"  \
                           "aie_v3surfgrp_opts shading smooth {}"
     textButton v3SurfaceOptsFlShade "Use flat shading"  \
                           "aie_v3surfgrp_opts shading flat {}"

     textButton v3SurfaceOptsBandClip "Clip Contour Bands" \
                           "aie_v3surfgrp_opts set_clip_contours {}"
     textButton v3SurfaceOptsRmBandClip "Extend Contour Bands" \
                           "aie_v3surfgrp_opts remove_clip_contours {}"

     textButton v3SurfaceOptsUniDir "Repair polygon's orientation" \
                           "aie_v3surfgrp_opts unidir_polys {}"
     textButton v3SurfaceOptsInterpol "Interpolate results"   \
                           "aie_v3surfgrp_opts interpolate_vars {}"
   # textOptMenu v3SurfaceOptsTranspMode "Translucent types" surf_info(wf,transp_mode) \
   #             "{Type I (fast)} 0x000706 {Type I (better)} 0x010706 {Type II} 0x000106" \
   #             0 "aie_v3surfgrp_opts transp_mode" 
  frame END
dataEntryDialog END

dataEntryDialog v3SaveAsDEZ "Save As"
  exclusiveGroup v3SaveAsFmt NULL "Format" 1 DROPDOWN v3SaveAsFormat
     exclusiveGroupItem v3SaveAsDomain "ICEM Domain Format"
        textLabel v3SaveAsDomainT "Binary Result Domain Format"
     exclusiveGroupItem END
     exclusiveGroupItem v3SaveAsText "Text List"
        frame v3SaveAsTextFm "with"
           checkItem v3SaveAsTextPt "Coordinates" ::surf_info(savetxt,pt) NULL
           checkItem v3SaveAsTextS  "Scalar Results" ::surf_info(savetxt,scalar) NULL
           checkItem v3SaveAsTextV  "Vector Results" ::surf_info(savetxt,vector) NULL 
           checkItem v3SaveAsTextTQ "Triangles and Quads" ::surf_info(savetxt,TQ) NULL
           checkItem v3SaveAsTextStat "Statistics" ::surf_info(savetxt,stat) NULL
       frame END
     exclusiveGroupItem END
  exclusiveGroup END
 #fileChooser v3SaveAsFile "File" v3SaveAsFileVar FALSE "All Files, .*"
dataEntryDialog END


dataEntryDialog v3SurfIntegalDEZ "Surface Integral"
  frame v3SurfIntgSig "with flux sign"
     textOptMenu v3SurfIntgCmd " " integrate_data(flux_how) \
              "In_direction 0 Away_from_point 1 Towards_point -1" 0 aie_update_integral
     textEntry v3SurfIntgDir " " ::integrate_data(flux_dir) NUM
  frame END
  frame v3SurfIntg "For selected surfaces"
     textEntry v3SurfIntgArea "Total area"    ::integrate_data(total_area) NUM
     textEntry v3SurfIntgTVal "Total value"   ::integrate_data(total_value) NUM
     textEntry v3SurfIntgTFlx "Total flux"    ::integrate_data(total_flux) NUM
ifdef AI_ENV_CFD
     textEntry v3SurfIntgTFlw "Total flow"    ::integrate_data(total_flow) NUM
endif
     textEntry v3SurfIntgAVal "Average value" ::integrate_data(avg_value) NUM
     textEntry v3SurfIntgAFlx "Average flux"  ::integrate_data(avg_flux) NUM
ifdef AI_ENV_CFD
     textEntry v3SurfIntgAFlw "Average flow"  ::integrate_data(avg_flow) NUM
endif
     textEntry v3SurfIntgFntA "Front Area"    ::integrate_data(farea) NUM
  frame END
dataEntryDialog END

dataEntryDialog v3SurfFlowDEZ "Surface Flow"

  frame v3SurfFlowVecFm "Velocity on No-Slip Wall"
     entryButton v3SurfFlowVec "Project from" NULL ::sfstrm_data(vec_away) \
                  "aie_update_surface_flow vec_away" \
                  "Project from the number times of smallest cell size"
     textEntry v3SurfFlowCellSz " times" ::sfstrm_data(cell_size) READONLY
  frame END

  checkItem v3SurfFlines "Display lines" ::sfstrm_data(draw_surfstrm) \
                  "aie_update_surface_flow lines {}"
  colorOptMenu v3SurfFlinesCol "    with color" sfstrm_data(line_color) \
                  "aie_update_surface_flow line_color"  
  checkItem v3SurfFlow "Display LIC" ::sfstrm_data(lic) \
                  "aie_update_surface_flow lic {}"
  frame v3SurfFlowPm "with"
     textEntry v3SurfFlowPmSize "Texture size" ::sfstrm_data(tex_msize) NUM

     checkItem v3SurfFlowPmNum  "Single buffer" ::sfstrm_data(tex_single) NULL

     textOptMenu v3SurfFlowPmCol "Coloring type"  sfstrm_data(lic_coloring) \
           "Grey_level 1 Scalar_result 3 Swirl_pattern 0x103" 0 \
           "aie_update_surface_flow lic_coloring"
  frame END
  entryButton v3SurfFlowEnh "Enhance constrast" NULL ::sfstrm_data(nenhanced) \
              "aie_update_surface_flow enhance_lic" "Enhance LIC image constrast"
 #checkItem v3SurfFlowShading "Add light shading" ::sfstrm_data(lic_shading) \
 #                "aie_update_surface_flow lic_shading {}"
dataEntryDialog END

dataEntryDialog v3SurfVarSVDEZ "Surface Variables"
exclusiveGroup v3SurfVarSVEXG "Surface Variables" "Select" 2 ICON
  exclusiveGroupItem v3SurfVarS "Scalar Variable" PP_ScalarVar$icon_size2.gif
     radioFrame v3SurfVarSG "Global Scalar" ::sfvars_data(sop) 0 "aie_v3p_surfvars global s"
        dropDownEntry v3SurfVarSGN "  " v3pSVarList ::sfvars_data(gsub,s) FALSE MENULIKE
        textButton v3SurfVarSGLoc "Save as a local" "aie_v3p_surfvars save_v3pcurrent s {}"
     radioFrame END
     radioFrame v3SurfVarSL "Local Variable" ::sfvars_data(sop) 1 "aie_v3p_surfvars local s"
        dropDownEntry v3SurfVarSLN "  " v3pSfSVList ::sfvars_data(lsn) FALSE MENULIKE
     radioFrame END
     textEntry v3SurfVarSMin Min ::sfvars_data(smin) READONLY
     textEntry v3SurfVarSMax Max ::sfvars_data(smax) READONLY
  exclusiveGroupItem END #0
  exclusiveGroupItem v3SurfVarV "Vector Variable" PP_VectorVar$icon_size2.gif
     radioFrame v3SurfVarVG "Global Vector" ::sfvars_data(vop) 0 "aie_v3p_surfvars global v"
        dropDownEntry v3SurfVarVGN "  " v3pVVarList ::sfvars_data(gsub,v) FALSE MENULIKE
        textButton v3SurfVarVGLoc "Save as a local" "aie_v3p_surfvars save_v3pcurrent v {}"
     radioFrame END
     radioFrame v3SurfVarVL "Local Variable" ::sfvars_data(vop) 1 "aie_v3p_surfvars local v"
        dropDownEntry v3SurfVarVLN "  " v3pSfVVList ::sfvars_data(lvn) FALSE MENULIKE
     radioFrame END
     textEntry v3SurfVarVMag "Max mag" ::sfvars_data(vmax) READONLY
  exclusiveGroupItem END #1
exclusiveGroup END
dataEntryDialog END

dataEntryDialog v3SurfSVarDEZ "Surface Scalar Variable"
  radioFrame v3SurfSVarG "Global Variable" ::sfvars_data(sop) 0 "aie_v3p_surfvars global s"
     dropDownEntry v3SurfSVarGN "  " v3pSVarList ::sfvars_data(gsub,s) FALSE MENULIKE
     textButton v3SurfSVarGLoc "Save as a local" "aie_v3p_surfvars save_v3pcurrent s {}"
  radioFrame END
  radioFrame v3SurfSVarL "Local Variable" ::sfvars_data(sop) 1 "aie_v3p_surfvars local s"
     dropDownEntry v3SurfSVarLN "  " v3pSfSVList ::sfvars_data(lsn) FALSE MENULIKE
  radioFrame END
  textEntry v3SurfSVarMin Min ::sfvars_data(smin) READONLY
  textEntry v3SurfSVarMax Max ::sfvars_data(smax) READONLY
dataEntryDialog END

dataEntryDialog v3SurfVVarDEZ "Surface Vector Variable"
  radioFrame v3SurfVVarG "Global Variable" ::sfvars_data(vop) 0 "aie_v3p_surfvars global v"
     dropDownEntry v3SurfVVarGN "  " v3pVVarList ::sfvars_data(gsub,v) FALSE MENULIKE
     textButton v3SurfVVarGLoc "Save as a local" "aie_v3p_surfvars save_v3pcurrent v {}"
  radioFrame END
  radioFrame v3SurfVVarL "Local Variable" ::sfvars_data(vop) 1 "aie_v3p_surfvars local v"
     dropDownEntry v3SurfVVarLN "  " v3pSfVVList ::sfvars_data(lvn) FALSE MENULIKE
  radioFrame END
  textEntry v3SurfVVarMag "Max mag" ::sfvars_data(vmax) READONLY
dataEntryDialog END

dataEntryDialog v3SurfThrPlaneDEZ "Surface Threshold"
  entryButton v3SurfThrPlaneAdd "Add Plane" NULL v3SurfThrPlaneTitle \
                "aie_v3p_surfthr_cmd add_new" "Add the current plane"
  textOptMenu v3SurfThrPlanes "Modify" sfthr_data(iplane) \
                ::sfthr_data(plane_list) 0 "aie_v3p_surfthr_cmd plane_list"
 #frame v3SurfThrPlaneModify "Modify"
  exclusiveGroup v3SurfThrPlaneType NULL "      " 1 DROPDOWN v3SurfThrPlaneTypeVar \
                          "aie_v3p_surfthr_cmd select_type"
     exclusiveGroupItem v3SurfThrCutPn "by Point and Normal"
        coordsEntry v3SurfThrCutPnPt "Pt" ::sfthr_data(xyz)
        textEntry v3SurfThrCutPnNx NX ::sfthr_data(nx) NUM
        textEntry v3SurfThrCutPnNy NY ::sfthr_data(ny) NUM
        textEntry v3SurfThrCutPnNz NZ ::sfthr_data(nz) NUM
     exclusiveGroupItem END #0
     exclusiveGroupItem v3SurfThrCutCf "by Coefficients"
        textEntry v3SurfThrCutCfA Ax ::sfthr_data(a) NUM
        textEntry v3SurfThrCutCfB By ::sfthr_data(b) NUM
        textEntry v3SurfThrCutCfC Bz ::sfthr_data(c) NUM
        textEntry v3SurfThrCutCfD D  ::sfthr_data(d) NUM
     exclusiveGroupItem END #1
     exclusiveGroupItem v3SurfThrCutSX "Middle X Plane"
        textLabel v3SurfThrCutSXt "Set to the plane normal to X in the middle of volume"
     exclusiveGroupItem END #2
     exclusiveGroupItem v3SurfThrCutSY "Middle Y Plane"
        textLabel v3SurfThrCutSYt "Set to the plane normal to Y in the middle of volume"
     exclusiveGroupItem END #3
     exclusiveGroupItem v3SurfThrCutSZ "Middle Z Plane"
        textLabel v3SurfThrCutSZt "Set to the plane normal to Z in the middle of volume"
     exclusiveGroupItem END #4
    #exclusiveGroupItem v3SurfThrCut3P "by 3 Points"
    #   textLabel v3SurfThrCut3Pt "Specify three points by clicking on surfaces on the screen"
    #exclusiveGroupItem END #5
    #exclusiveGroupItem v3SurfThrCutIT "by Move or Rotate"
    #   textLabel v3SurfThrCutITt \
    #      "Move with left button down. Rotate with middle button down. Escape with right click"
    #exclusiveGroupItem END #6
  exclusiveGroup END
  scaleBar v3SurfThrCutPScale "Fraction Value:" \
             ::sfthr_data(an_val) 0 1 0.001 "aie_v3p_surfthr_cmd scan" 0 160
 #frame END 
  textButton v3SurfThrPlaneDel "Remove the current" \
                           "aie_v3p_surfthr_cmd rm_plane {}"
  textButton v3SurfThrPlaneClean "Remove all planes" \
                           "aie_v3p_surfthr_cmd clean {}"
dataEntryDialog END

dataEntryDialog v3DynamicCutPDEZ "Define Dynamic Cut Plane"
 checkFrame v3DynamicCutOn "Active" ::cutp_info(active) "aie_v3_dynamic_cut active"
  exclusiveGroup v3DynamicCutM NULL "Method" 1 DROPDOWN V3CutMethod
     exclusiveGroupItem v3DynamicCutPn "by Point and Normal"
   #    textEntry v3DynamicCutPnPt Pt ::cutp_info(xyz) NUM
   #    entityButton v3DynamicCutPnPt "Pt" select_location24.gif ::cutp_info(xyz) \
   #              "aie_v3_dynamic_cut get_pt cutp_info(xyz)" "Pick a point"
        coordsEntry v3DynamicCutPnPt "Pt" ::cutp_info(xyz)
        textEntry v3DynamicCutPnNx NX ::cutp_info(nx) NUM
        textEntry v3DynamicCutPnNy NY ::cutp_info(ny) NUM
        textEntry v3DynamicCutPnNz NZ ::cutp_info(nz) NUM
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutCf "by Coefficients"
        textEntry v3DynamicCutCfA Ax ::cutp_info(a) NUM
        textEntry v3DynamicCutCfB By ::cutp_info(b) NUM
        textEntry v3DynamicCutCfC Bz ::cutp_info(c) NUM
        textEntry v3DynamicCutCfD D  ::cutp_info(d) NUM
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutCp "by Corner Points"
  #     textEntry v3DynamicCutCp1 Pt1 ::cutp_info(pt1) NUM
  #     textEntry v3DynamicCutCp2 Pt2 ::cutp_info(pt2) NUM
  #     textEntry v3DynamicCutCp3 Pt3 ::cutp_info(pt3) NUM
        coordsEntry v3DynamicCutCp1 Pt1 ::cutp_info(pt1)
        coordsEntry v3DynamicCutCp2 Pt2 ::cutp_info(pt2)
        coordsEntry v3DynamicCutCp3 Pt3 ::cutp_info(pt3)
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCut3P "by 3 Points"
        textLabel v3DynamicCut3Pt "Specify three points by clicking on surfaces on the screen"
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutIT "Move or Rotate"
        textLabel v3DynamicCutITt \
           "Move with left button down. Rotate with middle button down. Escape with right click"
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutSX "Middle X Plane"
        textLabel v3DynamicCutSXt "Set to the plane normal to X in the middle of volume"
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutSY "Middle Y Plane"
        textLabel v3DynamicCutSYt "Set to the plane normal to Y in the middle of volume"
     exclusiveGroupItem END
     exclusiveGroupItem v3DynamicCutSZ "Middle Z Plane"
        textLabel v3DynamicCutSZt "Set to the plane normal to Z in the middle of volume"
     exclusiveGroupItem END
  exclusiveGroup END
  scaleBar v3DynamicCutPScale "Fraction Value:" \
             ::dynamic_info(an_val) 0 1 0.001 "aie_update_dynamic_scan" 0 160
  dialogSpace 1
  entryButton v3DynamicCutPMul "Multiple Cut Planes" NULL ::dynamic_info(mulcuts) \
                "aie_v3_dynamic_surface multiple_step" "Make numbered cut planes"
#ifdef AI_ENV_FLOWMATCH
  textButton v3DynamicCutPCpy "Copy Current Cut Plane" \
                "aie_v3_dynamic_surface copy_current {}"
 #textButton v3DynamicCutPSet "Set selected Dynamic" \
 #              "aie_v3_dynamic_surface set_selected {}"
#endif
 checkFrame END
 checkFrame v3DynamicCutDraw "Display back cut plane" \
                    ::cutp_info(display) "aie_v3_dynamic_cut displays {}"
    textOptMenu v3DynamicCutDrawP "with" cutp_info(display_tsh) \
            "translucent 0.5 solid 1 hollow 0" 0 "aie_v3_dynamic_cut displays"
    checkItem v3DynamicCutDrawN "Draw plane normal" \
                    ::cutp_info(display_n) "aie_v3_dynamic_cut displays {}"
    checkItem v3DynamicCutDrawB "Draw plane border" \
                    ::cutp_info(display_bd) "aie_v3_dynamic_cut displays {}"
    colorOptMenu v3DynamicCutDrawCol "Color" \
                    cutp_info(display_color) "aie_v3_dynamic_cut display_color"
 checkFrame END
dataEntryDialog END

dataEntryDialog v3DynamicIsoDEZ "Define Iso-surface"
 checkFrame v3DynamicIsoOn "Active" ::iso_info(active) "aie_v3_dynamic_iso active"
  dropDownEntry v3DynamicIsoVar "Variable" v3pSVarList ::iso_info(zvarname) FALSE MENULIKE
  textEntry v3DynamicSfIsoMin "Min Value" ::iso_info(zmin) READONLY
  textEntry v3DynamicSfIsoMax "Max Value" ::iso_info(zmax) READONLY
  textEntry v3DynamicSfIsoVal "Iso Value" ::iso_info(value) NUM
  dialogSpace 1
  scaleBar v3DynamicIsoScale "Fraction Value:" ::dynamic_info(an_val) \
                      0 1 0.001 "aie_update_dynamic_scan" 0 160
  dialogSpace 1
  textButton v3DynamicIsoMul "Make Multiple Iso-surfaces" "multiple_iso_surfaces {}"
 #textButton v3DynamicIsoCpy "Copy Current Iso-surface" \
 #                           "V3_dynamic_surface copy_current {}"
 #textButton v3DynamicIsoSet "Set selected Dynamic" \
 #                           "update_dynamic_selected {}"
 checkFrame END
dataEntryDialog END


dataEntryDialog v3ImportSfDEZ "Create/Import Surfaces"
   exclusiveGroup v3ImportSf "Create/Import" "Method" 5 ICON
     exclusiveGroupItem v3ParamSfSph "Sphere"  PP_ResultSphere$icon_size2.gif
        coordsEntry v3ParamSfSphP0 Center ::defuv_info(sphere,p0)
        textEntry v3ParamSfSphP1 Pole   ::defuv_info(sphere,p1) NUM
        textEntry v3ParamSfSphRd Radius ::defuv_info(sphere,r) NUM
        textEntry v3ParamSfSphT0 "Theta0(-90)" ::defuv_info(sphere,theta0) NUM
        textEntry v3ParamSfSphT1 "Theta1(90)"  ::defuv_info(sphere,theta1) NUM
        textEntry v3ParamSfSphI0 "Phi0(0)"     ::defuv_info(sphere,phi0) NUM
        textEntry v3ParamSfSphI1 "Phi1(360)"   ::defuv_info(sphere,phi1) NUM
        frame v3ParamSfSphPm "with"
           textEntry v3ParamSfSphName "Surface Name" ::defuv_info(name) TEXT
           textEntry v3ParamSfSphU     "U size"       ::defuv_info(numu) NUM
           textEntry v3ParamSfSphV     "V size"       ::defuv_info(numv) NUM
        frame END
     exclusiveGroupItem END #0
     exclusiveGroupItem v3ParamSfCyl "Cylinder" PP_ResultCylinder$icon_size2.gif
        coordsEntry v3ParamSfCylP1 "Center Start" ::defuv_info(cylinder,p1)
        coordsEntry v3ParamSfCylP2 "Center End"   ::defuv_info(cylinder,p2)
        textEntry v3ParamSfCylRd "Radius"       ::defuv_info(cylinder,r) NUM
        textEntry v3ParamSfCylA0 "Start angle"  ::defuv_info(cylinder,s) NUM
        textEntry v3ParamSfCylA1 "End angle"    ::defuv_info(cylinder,e) NUM
        frame v3ParamSfCylPm "with"
           textEntry v3ParamSfCylName "Surface Name" ::defuv_info(name) TEXT
           textEntry v3ParamSfCylU     "U size"       ::defuv_info(numu) NUM
           textEntry v3ParamSfCylV     "V size"       ::defuv_info(numv) NUM
        frame END
     exclusiveGroupItem END #1
     exclusiveGroupItem v3ParamSfQuad "Quadratic Surface" PP_ResultQuadSurf$icon_size2.gif
        coordsEntry v3ParamSfQuadP0 "Point 1" ::defuv_info(quad,p0)
        coordsEntry v3ParamSfQuadP1 "Point 2" ::defuv_info(quad,p1) 
        coordsEntry v3ParamSfQuadP2 "Point 3" ::defuv_info(quad,p2) 
        coordsEntry v3ParamSfQuadP3 "Point 4" ::defuv_info(quad,p3) 
        frame v3ParamSfQuadPm "with"
           textEntry v3ParamSfQuadName "Surface Name" ::defuv_info(name) TEXT
           textEntry v3ParamSfQuadU    "U size"       ::defuv_info(numu) NUM
           textEntry v3ParamSfQuadV    "V size"       ::defuv_info(numv) NUM
        frame END
     exclusiveGroupItem END #2
     exclusiveGroupItem v3ParamSfCone "Cone" PP_ResultCone$icon_size2.gif
        coordsEntry v3ParamSfConeP0 "Center Start" ::defuv_info(cone,p0)
        coordsEntry v3ParamSfConeP1 "Center End"   ::defuv_info(cone,p1)
        textEntry v3ParamSfConeSp "Slope"        ::defuv_info(cone,s) NUM
        textEntry v3ParamSfConeR0 "Start Radius" ::defuv_info(cone,sr) NUM
        textEntry v3ParamSfConeR1 "End Radius"   ::defuv_info(cone,er) NUM
        textEntry v3ParamSfConeA0 "Start angle"  ::defuv_info(cone,sa) NUM
        textEntry v3ParamSfConeA1 "End angle"    ::defuv_info(cone,ea) NUM
        frame v3ParamSfConePm "with"
           textEntry v3ParamSfConeName "Surface Name" ::defuv_info(name) TEXT
           textEntry v3ParamSfConeU    "U size"       ::defuv_info(numu) NUM
           textEntry v3ParamSfConeV    "V size"       ::defuv_info(numv) NUM
        frame END
     exclusiveGroupItem END #3
     exclusiveGroupItem v3ParamSfEq "Surf from EQN" PP_ResultEQNSurf$icon_size2.gif
        textEntry v3ParamSfEqX "X" ::defuv_info(x) TEXT
        textEntry v3ParamSfEqY "Y" ::defuv_info(y) TEXT
        textEntry v3ParamSfEqZ "Z" ::defuv_info(z) TEXT
        frame v3ParamSfEqPm "with"
           textEntry v3ParamSfEqName "Surface Name" ::defuv_info(name) TEXT
           textEntry v3ParamSfEqU    "U size"       ::defuv_info(numu) NUM
           textEntry v3ParamSfEqV    "V size"       ::defuv_info(numv) NUM
        frame END
     exclusiveGroupItem END #4
     exclusiveGroupItem v3TetinSf "Import Tetin (Geometry)" PP_ResultTetinSurf$icon_size2.gif
        exclusiveGroup v3TetinSfSelect NULL "  " 1 DROPDOWN V3TetinSelect
           exclusiveGroupItem v3TetinSfAll "All Families"
              textLabel v3TetinSfAllTx "includes all surfaces in all tetin families"
          exclusiveGroupItem END
          exclusiveGroupItem v3TetinSfFam "All in Family:"
             dropDownEntry v3TetinSfFamEnt " " v3TetinSflsgrp v3TetinSfgroup FALSE MENULIKE
          exclusiveGroupItem END
       #  exclusiveGroupItem v3TetinSfSel "Select on Screen"
       #     textLabel v3TetinSfSelTx "with left button, done with middle button"
       #  exclusiveGroupItem END
          exclusiveGroupItem v3TetinSfReset "Load new tetin file"
          exclusiveGroupItem END
       exclusiveGroup END
     exclusiveGroupItem END #5
     exclusiveGroupItem v3LoadPtsSf "Import surface defined by points" PP_ResultPointsSurf$icon_size2.gif
       fileChooser v3LoadPtsSfFile "File" v3LoadPtsSfFileVar FALSE "All Files, .*"
     exclusiveGroupItem END #6
     exclusiveGroupItem v3LoadDomainSf "Import Domain (Mesh as Geometry)" PP_ResultDomainSurf$icon_size2.gif
       fileChooser v3LoadDomainSfFile "File" v3LoadDomainSfFileVar FALSE "All Files, .*"
     exclusiveGroupItem END #7
  exclusiveGroup END
  textButton v3ExtSfPreview "Preview surface" "aie_v3p_user_surf preview {}"
  textButton v3ExtSfStopPre "Stop preview" "aie_v3p_user_surf stop_preview {}"
  checkItem v3ExtSfInterp "Auto interpolate result" ::surf_info(wf,interp_tetin) NULL
  checkItem v3ExtSfInAll "Create in all datasets" ::surf_info(wf,in_all) NULL
dataEntryDialog END


dataEntryDialog v3ProbePtDEZ "Point Probe on Surfaces"
  entityButton v3ProbePtSurf "Surface" PP_ProbeSurf24.gif probe_data:sfname \
                   aie_update_probe_surface "Point probe on surfaces"
  textEntry v3ProbePtX  "X" probe_data:x NUM
  textEntry v3ProbePtY  "Y" probe_data:y NUM
  textEntry v3ProbePtZ  "Z" probe_data:z NUM
  textEntry v3ProbePtP  "Polygon" probe_data:p INT
  textEntry v3ProbePtID "ID" probe_data:id INT
  textEntry v3ProbePtSv "Value" probe_data:sv NUM
  textEntry v3ProbePtVx "Vector(X)" probe_data:vx NUM
  textEntry v3ProbePtVy "Vector(Y)" probe_data:vy NUM
  textEntry v3ProbePtVz "Vector(Z)" probe_data:vz NUM
  textEntry v3ProbePtNs "Vertices"  probe_data:vertices INT
  textEntry v3ProbePtWs "Weights"   probe_data:wts NUM
  textEntry v3ProbePtPv "Values"    probe_data:values NUM
  checkFrame v3ProbePtRc "Recording to file" ::probe_data(record) "aie_surf_probe_file"
     fileChooser v3ProbePtFile " " ::probe_data(file) TRUE "All Files, .*"
  checkFrame END
dataEntryDialog END


dataEntryDialog v3AnimateDEZ "Animation Controller"
   animator v3Animator animate_data:instant 0 1 0.001 "aie_update_animate" 0 160
   frame v3AnimaParam  "with"
      textEntry v3AnimaParamStep "Steps" animate_data:nsteps NUM
      dropDownEntry v3AnimaParamCycle "Cycles" v3AnimaCycles v3AnimaNcycles FALSE
      textEntry v3AnimaParamSpeed "Speed(ms)" animate_data:speed NUM
      checkItem v3AnimaParamAutoMV "Auto-generating Images" \
                        animate_data:automv "aie_setup_animate auto_mv {}"
      textButton v3AnimaMpeg "Encode MPEG file" "aie_setup_animate encode_mpg {}"
   frame END
ifdef AI_ENV_CFD
   checkFrame v3AnimaStream "Animate all streams" animate_data:streams "aie_setup_animate streams"
      textEntry v3AnimaStreamSpry "spray per steps" str_data:animate_spray NUM
      textEntry v3AnimaStreamHsiz "bubble size" str_data:bubble_size NUM
      textEntry v3AnimaStreamTlen "tail length" str_data:tail_len NUM
      textOptMenu v3AnimaStreamTmS "time scale" str_data(tmscaling) \
             "median(5%) 1 median(25%) 2 median 3 median(75%) 4 median(95%) 5 maximum 6" \
             0 "V3_strm_cmd set_tmscaling"
   checkFrame END
endif
   	checkItem v3AnimaDynamic "Animate dynamic surfaces" animate_data:dynamic "aie_setup_animate dynamic {}"
	checkItem v3AnimaTransient "Animate transient" animate_data:transient "aie_setup_animate transient {}"
 # checkItem v3AnimaView "Animate views" animate_data:views "aie_setup_animate views {}"
#   checkFrame END
   checkFrame v3AnimaView "Animate list of views" animate_data:views "aie_setup_animate views"
      textButton v3AnimaViewAdd "Add current view" "aie_setup_animate app_view {}"
      checkItem  v3AnimaViewSwing "Swing Back" ::vtan_data(swing) NULL
   checkFrame END
   checkFrame v3AnimaRot  "Rotate about line" animate_data:linerot "aie_setup_animate linerot"
      textEntry v3AnimaRotDeg "Angle(degree)" linerot_data:total_degree NUM
      textEntry v3AnimaRotAxis "Axis" linerot_data:axis NUM
      textEntry v3AnimaRotCtr  "Center" linerot_data:center NUM
   checkFrame END
ifndef AI_ENV_CFD_ONLY
   checkFrame v3AnimaDeform "Animate deformation" animate_data:deform "aie_setup_animate deform"
      checkItem v3AnimaDeformUd "Undeformed shape" modal_view:deform_ud \
                                  "aie_setup_animate deform_ud with_undeformed {}"
     #checkItem v3AnimaDeformSvar "Scalar varies proportionally" modal_view:deform_svar \
     #                            "aie_setup_animate deform_svar deform_svar {}"
      checkItem v3AnimaDeformBack "Smoothly back cycle" modal_view:deform_back \
                                  "aie_setup_animate deform_back deform_back {}"
      ampEntry v3AnimaDeformAmp "Amplifier" modal_view:deform_amp modal_view:df_ambar \
                                  "aie_setup_animate deform_amp df_amp"
   checkFrame END
   checkFrame v3AnimaModal "Animate modal" animate_data:modal "aie_setup_animate modal"
    # dropDownEntry v3AnimaModFq "Mode (Hz)" v3pModesList v3pModeCur FALSE MENULIKE
      checkItem v3AnimaModUd "Undeformed shape" modal_view:modal_ud "aie_setup_animate modal_ud with_undeformed {}"
     #checkItem v3AnimaModSvar "Scalar varies proportionally" modal_view:deform_svar \
     #                           "aie_setup_animate deform_svar deform_svar {}"
      textEntry v3AnimaModNs "Steps per cycle" modal_view:nsteps NUM 
      ampEntry v3AnimaModAmp "Amplifier" modal_view:modal_amp modal_view:mod_ambar "aie_setup_animate modal_amp df_amp"
   checkFrame END
endif
dataEntryDialog END

dataEntryDialog v3CreateStrmDEZ "Set seeds for streams"
  exclusiveGroup v3CreateStrm "Define seeds" "Method" 3 ICON
    exclusiveGroupItem v3CreateStrm2dEXG "Set seeds with 2D annotation" PP_Streamlines$icon_size2.gif
      radioGroup v3CreateStrm2dE "2D Annotation" 2 str_data:2d_how pts NULL
        radioItem v3CreateStrm2dEPoints "Points" pts
        radioItem v3CreateStrm2dEMLines "Multiple lines" lines
        radioItem v3CreateStrm2dELine   "Line" oneline
        radioItem v3CreateStrm2dEFBox   "Filled box" fbox
        radioItem v3CreateStrm2dECircle "Circle" circle
        radioItem v3CreateStrm2dEFCircl "Filled circle" fcircle
      radioGroup END
    exclusiveGroupItem END #0
    exclusiveGroupItem v3CreateStrmSfEXG "From selected surface" PP_StreamSurf$icon_size2.gif
      frame v3CreateStrmSfNameFm "Current Selected Surfaces"
         entityButton v3CreateStrmSfName " " select_d2_on$icon_size1.gif str_data:sfname \
                   aie_select_surface_by_probe "Select a surface" READONLY
      frame END
      radioGroup v3CreateStrmSf "Selected Surface's" 2 str_data:noded 1 NULL
        radioItem v3CreateStrmSfNodes "Nodes" 1
        radioItem v3CreateStrmSfCentr "Centroids" 0
      radioGroup END
      checkItem v3CreateStrmSfEdg "Exclude edge nodes" str_data:surf_ex NULL
    exclusiveGroupItem END #1
    exclusiveGroupItem v3CreateStrmLdEXG "Load from file" PP_StreamFile$icon_size2.gif
      fileChooser v3CreateStrmLdFile "File" v3CreateStrmLdFileVar FALSE "All Files, .*"
    exclusiveGroupItem END #2
  exclusiveGroup END  
  radioGroup v3CreateStrmDir "Tracking Direction" 3 str_data:dir 0 NULL
     radioItem v3CreateStrmDirBoth "Both" 0
     radioItem v3CreateStrmDirDown "Down" 1
     radioItem v3CreateStrmDirUp   "Up"   -1
  radioGroup END
  textEntry v3CreateStrmNum "Number of seeds" str_data:2d_npts INT
  checkItem v3CreateStrmNCF "Searching for nonconforming interfaces" \
        ::str_data(wf,use_pv_bounce) "update_streams_mg use_pv_bounce {}"
  checkItem v3CreateStrmLMC "Create in all datasets simultaneously" \
        ::str_data(wf,link_all_clients) "update_streams_mg link_all_clients {}"
dataEntryDialog END

dataEntryDialog v3CreateStrm2dDEZ "Define seeds from"
  radioGroup v3CreateStrm2d "2D Annotation" 2 str_data:2d_how pts NULL
     radioItem v3CreateStrm2dPoints "Points" pts
     radioItem v3CreateStrm2dMLines "Multiple lines" lines
     radioItem v3CreateStrm2dLine   "Line" oneline
     radioItem v3CreateStrm2dFBox   "Filled box" fbox
     radioItem v3CreateStrm2dCircle "Circle" circle
     radioItem v3CreateStrm2dFCircl "Filled circle" fcircle
  radioGroup END

  radioGroup v3CreateStrm2dir "Tracking Direction" 3 str_data:dir 0 NULL
     radioItem v3CreateStrm2dirBoth "Both" 0
     radioItem v3CreateStrm2dirDown "Down" 1
     radioItem v3CreateStrm2dirUp   "Up"   -1
  radioGroup END
  
  textEntry v3CreateStrm2dNum "Number of seeds" str_data:2d_npts INT

  checkItem v3CreateStrm2dNCF "Searching for nonconforming interfaces" \
        ::str_data(wf,use_pv_bounce) "update_streams_mg use_pv_bounce {}" 
  checkItem v3CreateStrm2dLMC "Create in all datasets simultaneously" \
        ::str_data(wf,link_all_clients) "update_streams_mg link_all_clients {}"
dataEntryDialog END


dataEntryDialog v3CreateStrmsfDEZ "Set seeds at"
  frame v3CreateStrmsfNameFm "Current Selected Surfaces"
  entityButton v3CreateStrmsfName " " select_d2_on$icon_size1.gif str_data:sfname \
                   aie_select_surface_by_probe "Select a surface"
  frame END

  radioGroup v3CreateStrmsf "Selected Surface's" 2 str_data:noded 1 NULL
     radioItem v3CreateStrmsfNodes "Nodes" 1
     radioItem v3CreateStrmsfCentr "Centroids" 0
  radioGroup END

  checkItem v3CreateStrmsfEdg "Exclude edge nodes" str_data:surf_ex NULL

  radioGroup v3CreateStrmsfdir "Tracking Direction" 3 str_data:dir 0 NULL
     radioItem v3CreateStrmdirsfBoth "Both" 0
     radioItem v3CreateStrmdirsfDown "Down" 1
     radioItem v3CreateStrmdirsfUp   "Up"   -1
  radioGroup END
 
  textEntry v3CreateStrmsfNum "Number of seeds" str_data:surfnpts INT

  checkItem v3CreateStrmsfNCF "Searching for nonconforming interfaces" \
        ::str_data(wf,use_pv_bounce) "update_streams_mg use_pv_bounce {}"
  checkItem v3CreateStrmsfLMC "Create in all datasets simultaneously" \
        ::str_data(wf,link_all_clients) "update_streams_mg link_all_clients {}"
dataEntryDialog END


dataEntryDialog v3StrmPropertiesDEZ "Streams Properties"
   colorOptMenu v3StrmPropertiesLcol "Line back color" \
            str_data(dcol) "aie_modify_streams dcol"
   frame v3StrmPropertiesRT "Ribbons or Tubes's"
      textEntry v3StrmPropertiesRsize width str_data:ribbon_size NUM
      textEntry v3StrmPropertiesMsize "max width" str_data:max_sizing NUM
      textEntry v3StrmPropertiesAngle "start angles" str_data:start_angle NUM
      colorOptMenu v3StrmPropertiesRcol "back color" \
             str_data(ribbon_dcol) "aie_modify_streams ribbon_dcol"
   frame END
   frame v3StrmPropertiesAM "Animation's"
      textEntry v3StrmPropertiesSpry "spray per steps" str_data:animate_spray NUM
      textEntry v3StrmPropertiesHsiz "bubble size" str_data:bubble_size NUM
      textEntry v3StrmPropertiesTlen "tail length" str_data:tail_len NUM 
      colorOptMenu v3StrmPropertiesHcol "back color" \
             str_data(bubble_dcol) "aie_modify_streams bubble_dcol"
   frame END
dataEntryDialog END


dataEntryDialog v3VarsGDEZ "Result Variables"
exclusiveGroup v3VarsEXG "Global Variables" "Select" 3 ICON
  exclusiveGroupItem v3SelectVars "Select Variables" PP_SelectVars$icon_size2.gif
   frame v3SVarFm "Scalar Variable"
      dropDownEntry v3SVarMenu "Current" v3pSVarList v3pSVarCur FALSE MENULIKE
      textEntry v3VarSMin "Min" var_tab:svmin NUM
      textEntry v3VarSMax "Max" var_tab:svmax NUM
   frame END

   frame v3VVarFm "Vector Variable"
      dropDownEntry v3VVarMenu "Current" v3pVVarList v3pVVarCur FALSE MENULIKE
      textEntry v3VarVMag "Max mag" var_tab:vec_max NUM
   frame END
  exclusiveGroupItem END #0
  exclusiveGroupItem v3DefSVar "Define New Scalar Variable" PP_ScalarVar$icon_size2.gif
   frame v3DefSVarNfm "Enter Name"
      textEntry v3DefSVarN " " v3SVTitle TEXT
   frame END
   frame v3DefSVarEfm "Expression"
      textEntry v3DefSVarE " " v3SVEval TEXT
   frame END
   checkItem v3DefSVarAct "Use as the default variable" v3SVAct NULL
  exclusiveGroupItem END #1
  exclusiveGroupItem v3DefVVar "Define New Vector Variable" PP_VectorVar$icon_size2.gif
   frame v3DefVVarNfm "Enter Name"
      textEntry v3DefVVarN " " v3VVTitle TEXT
   frame END
   frame v3DefVVarEfm "Expression"
      textEntry v3DefVVarE " " v3VVEval TEXT
   frame END
   checkItem v3DefVVarAct "Use as the default variable" v3VVAct NULL
  exclusiveGroupItem END #2
exclusiveGroup END
dataEntryDialog END


dataEntryDialog v3DocDEZ "Generate Report"
   exclusiveGroup v3DocEXG "Add / Save" "Type" 3 ICON
      exclusiveGroupItem v3DocNew "Start new report" PP_CreateReport$icon_size2.gif
         fileChooser v3DocDir "Report Dir"   v3DocDirVar DIR
        #textEntry v3DocTitle "Report Title" v3DocTitleVar TEXT
         textEntryEdit v3DocTitle "Report Title" v3DocTitleVar
         textEntry v3DocUser  "User"  v3DocUserVar TEXT
         textOptMenu v3DocPaper "Paper size" report_paper_size \
                 "A4 A4 Letter letter" 0 "aie_v3p_report paper_size"
         checkItem v3DocCover "Cover page" report_cover_page NULL
      exclusiveGroupItem END #0
      exclusiveGroupItem v3DocInfo "Summary info" PP_CreateReportSum$icon_size2.gif
        #textEntry v3DocInfoTitle "Summary Title" v3DocInfoTitleVar TEXT
        #textEntry v3DocInfoIntro "Introduction" v3DocInfoIntroVar TEXT
        #textEntry v3DocInfoOutro "Summary Finale" v3DocInfoOutroVar TEXT
         textEntryEdit v3DocInfoTitle "Summary Title" v3DocInfoTitleVar
         textEntryEdit v3DocInfoIntro "Introduction" v3DocInfoIntroVar
         textEntryEdit v3DocInfoOutro "Summary Finale" v3DocInfoOutroVar
      exclusiveGroupItem END #1
      exclusiveGroupItem v3DocCFD "Add CFD DataSet Info" PP_CreateReportCFD$icon_size2.gif
        textEntry v3DocCFDModel "Model" v3DocCModelVar TEXT
        textEntry v3DocCFDCode "Code" v3DocCCodeVar TEXT
        textEntry v3DocCFDTurb "Turbulence Model" v3DocCTurbVar TEXT
        textEntry v3DocCFDGrid "Grid Type" v3DocCGridVar  TEXT
        textEntry v3DocCFDDate "Date" v3DocCDateVar TEXT
     exclusiveGroupItem END #2
     exclusiveGroupItem v3DocEFD "Add EFD DataSet Info" PP_CreateReportEFD$icon_size2.gif
        textEntry v3DocEFDDevice "Device" v3DocEDeviceVar TEXT
        textEntry v3DocEFDSubType "Sub type" v3DocESubVar TEXT
        textEntry v3DocEFDDate "Date" v3DocEDateVar TEXT
        textEntry v3DocEFDAuxi "Auxilary" v3DocEAuxiVar TEXT
     exclusiveGroupItem END #3
     exclusiveGroupItem v3DocChap "Add Chapter" PP_CreateReportCHPT$icon_size2.gif
       #textEntry v3DocChapTitle "Chapter Title" v3DocChapTitleVar TEXT
       #textEntry v3DocChapIntro "Introduction" v3DocChapIntroVar TEXT
       #textEntry v3DocChapOutro "Chapter Finale" v3DocChapOutroVar TEXT
        textEntryEdit v3DocChapTitle "Chapter Title" v3DocChapTitleVar
        textEntryEdit v3DocChapIntro "Introduction" v3DocChapIntroVar
        textEntryEdit v3DocChapOutro "Chapter Finale" v3DocChapOutroVar
     exclusiveGroupItem END #4
     exclusiveGroupItem v3DocSect "Add Section" PP_CreateReportSECT$icon_size2.gif
       #textEntry v3DocSectTitle "Section Title" v3DocSectTitleVar TEXT
       #textEntry v3DocSectIntro "Introduction" v3DocSectIntroVar TEXT
       #textEntry v3DocSectOutro "Section Finale" v3DocSectOutroVar TEXT
        textEntryEdit v3DocSectTitle "Section Title" v3DocSectTitleVar
        textEntryEdit v3DocSectIntro "Introduction" v3DocSectIntroVar
        textEntryEdit v3DocSectOutro "Section Finale" v3DocSectOutroVar
     exclusiveGroupItem END #5
     exclusiveGroupItem v3DocImg "Add Images" PP_CreateReportPICS$icon_size2.gif
        radioGroup v3DocImgType "Image Format" 3 v3DocImgTypeVar 0 NULL
           radioItem v3DocImgTypeGIF "GIF" gif
           radioItem v3DocImgTypeJPG "JPEG" jpeg
        radioGroup END
        radioGroup v3DocImgWin "DataSet" 1 v3DocImgWinVar 0 NULL
           radioItem v3DocImgDSetCur "Current Window" current
           radioItem v3DocImgDSetAll "All Dataset" dataset
           radioItem v3DocImgWinAll  "All Windows" windows
           radioItem v3DocImgHistogm "Current Histogram" histogram 
        radioGroup END
        textEntry v3DocImgWidth "Width" v3DocImgWidthVar NUM
        textEntry v3DocImgHeight "Height" v3DocImgHeightVar NUM
       #textEntry v3DocImgText "Caption" v3DocImgTextVar TEXT
        textEntryEdit v3DocImgText "Caption" v3DocImgTextVar
     exclusiveGroupItem END #6
     exclusiveGroupItem v3DocText "Add Text" PP_CreateReportTEXT$icon_size2.gif
        #textEntry v3DocTextEntry "Text" v3DocTextVar TEXT
        textEntryEdit v3DocTextEntry "Text" v3DocTextVar
     exclusiveGroupItem END #7 
     exclusiveGroupItem v3DocTable "Add Comparison Table" PP_CreateReportTEXT$icon_size2.gif
        checkItem v3DocTableStyle "With grid" v3DocTableStyleVar NULL
        textEntry v3DocTableBd    "Border width" v3DocTableBdVar NUM
       #textEntry v3DocTableText "Caption" v3DocTableTextVar TEXT
        textEntryEdit v3DocTableText "Caption" v3DocTableTextVar
     exclusiveGroupItem END #8
     exclusiveGroupItem v3DocSaveXML "Save report as XML" PP_SaveReportXML$icon_size2.gif
     exclusiveGroupItem END #9
     exclusiveGroupItem v3DocSaveHTM "Save report as HTML" PP_SaveReportHTML$icon_size2.gif
     exclusiveGroupItem END #10
     exclusiveGroupItem v3DocSavePDF "Save report as PDF" PP_SaveReportPDF$icon_size2.gif
     exclusiveGroupItem END #11
   exclusiveGroup END
dataEntryDialog END

dataEntryDialog v3ReportDEZ "Generate Report"
 # exclusiveGroup v3ReportType NULL "Add / Save" 1 DROPDOWN V3ReporTypeVar
   exclusiveGroup v3ReportType "Add / Save" "Type" 3 ICON
     exclusiveGroupItem v3ReportText "Add Text" v3ReportAdd.gif
        textEntry v3ReportTextEntry "Text" v3ReportTextVar TEXT
     exclusiveGroupItem END #0
     exclusiveGroupItem v3ReportImg "Add Images" v3ReportAdd.gif
        radioGroup v3ReportImgType "Image Format" 3 v3ReportImgTypeVar 0 NULL
           radioItem v3ReportImgTypeGIF "GIF" gif
           radioItem v3ReportImgTypeJPG "JPEG" jpeg
        radioGroup END
        radioGroup v3ReportImgWin "DataSet" 1 v3ReportImgWinVar 0 NULL
           radioItem v3ReportImgDSetCur "Current Window" current
           radioItem v3ReportImgDSetAll "All Dataset" dataset
           radioItem v3ReportImgWinAll  "All Windows" windows
        radioGroup END
        textEntry v3ReportImgText "Caption" v3ReportImgVar TEXT
     exclusiveGroupItem END #1
     exclusiveGroupItem v3ReportCFD "Add CFD DataSet Info" v3ReportAdd.gif
        textEntry v3ReportCFDModel "Model" v3ReportCModelVar TEXT
        textEntry v3ReportCFDCode "Code" v3ReportCCodeVar TEXT
        textEntry v3ReportCFDTurb "Turbulence Model" v3ReportCTurbVar TEXT
        textEntry v3ReportCFDGrid "Grid Type" v3ReportCGridVar  TEXT
        textEntry v3ReportCFDDate "Date" v3ReportCDateVar TEXT
     exclusiveGroupItem END #2
     exclusiveGroupItem v3ReportEFD "Add EFD DataSet Info" v3ReportAdd.gif
        textEntry v3ReportEFDDevice "Device" v3ReportEDeviceVar TEXT
        textEntry v3ReportEFDSubType "Sub type" v3ReportESubVar TEXT
        textEntry v3ReportEFDDate "Date" v3ReportEDateVar TEXT
        textEntry v3ReportEFDAuxi "Auxilary" v3ReportEAuxiVar TEXT
     exclusiveGroupItem END #3
     exclusiveGroupItem v3ReportNew "Start new report" v3ReportNew.gif
     exclusiveGroupItem END #4
     exclusiveGroupItem v3ReportSaveXML "Save report as XML" v3ReportSave.gif 
     exclusiveGroupItem END #5
     exclusiveGroupItem v3ReportSaveHTM "Save report as HTML" v3ReportSave.gif 
     exclusiveGroupItem END #6
     exclusiveGroupItem v3ReportSavePDF "Save report as PDF" v3ReportSave.gif 
     exclusiveGroupItem END #7
   exclusiveGroup END
dataEntryDialog END

dataEntryDialog v3CompareDEZ "Compare Results"
   exclusiveGroup v3Compare NULL "Type" 5 ICON
      exclusiveGroupItem v3CompareDynSurf "Compare Dynamic Surfaces" \
                           PP_CompareDynSurf$icon_size2.gif
         textLabel v3CompareDynSurfText \
             "Click Apply to Compare Results on The Current Dynamic Surfaces"
      exclusiveGroupItem END #0
      exclusiveGroupItem v3CompareTwoSurf "Compare Specific Surfaces" \
                           PP_CompareTwoSurf$icon_size2.gif
         frame v3CompareSurf1Fm "Select Surface 1"
            entityButton v3CompareSurf1Name " " select_d2_on$icon_size1.gif sf1name \
                 "aie_select_surface_in_dset 1" "Select a surface"
         frame END
         frame v3CompareSurf2Fm "Select Surface 2"
            entityButton v3CompareSurf2Name " " select_d2_on$icon_size1.gif sf2name \
                 "aie_select_surface_in_dset 2" "Select a surface"
         frame END
         checkItem v3CompareSkipIntp "Skip Interpolation" skipinterp NULL
      exclusiveGroupItem END #1
      exclusiveGroupItem v3Compare3DBox "Compare Results within A Box" \
                           PP_Compare3DBox$icon_size2.gif
         textEntry v3Compare3DBoxTitle "Name" v3Compare3DBoxName TEXT

         coordsEntry v3Compare3DBoxP0 "Point 0" boxPt0
         coordsEntry v3Compare3DBoxP1 "Point 1" boxPt1
         coordsEntry v3Compare3DBoxP2 "Point 2" boxPt2
         coordsEntry v3Compare3DBoxP3 "Point 3" boxPt3

         frame v3Compare3DBoxNumFm "Numbers of Points"
            textEntry v3Compare3DBoxNum1 "in Direct 1" boxPtNum1 INT
            textEntry v3Compare3DBoxNum2 "in Direct 2" boxPtNum2 INT
            textEntry v3Compare3DBoxNum3 "in Direct 3" boxPtNum3 INT
         frame END
      exclusiveGroupItem END #2
   exclusiveGroup END
dataEntryDialog END

# ------------------------------ not in use
dataEntryDialog v3BindVarDEZ "Bind Variables"
   dropDownEntry v3BindVarDSet1 "in DataSet 1" v3pVarList1 v3pVarD1 FALSE
   dropDownEntry v3BindVarDSet2 "in DataSet 1" v3pVarList2 v3pVarD2 FALSE
   entryButton v3BindVarDo "Bind as" NULL v3pVarName \
                   "aie_v3p_bind_vars" "Bind as"
dataEntryDialog END

dataEntryDialog v3TransTimeIDEZ "Select Transient Steps"
   textOptMenu v3TransTimeIState " " transient_info(pause) \
             "Run-time 0 Pause-time 1 Single-step 2" 0 \
             "aie_v3p_update_timesteps states"
   dropDownEntry v3TransTimeStep " " ::transient_info(steptimes) \
                       ::transient_info(timestep) FALSE MENULIKE
  #textOptMenu v3TransStep "  " transient_info(step) \
  #      ::transient_info(steps_list) 0 "aie_v3p_update_timesteps stepin"

  checkItem v3TransTmLabel "Display Transient Time" ::transient_info(tmlabel)\
                   "aie_v3p_update_timesteps tmlabel {}"
dataEntryDialog END

dataEntryDialog v3TransTimePDEZ "Select Transient Steps"
   textOptMenu v3TransTimePState " " transient_info(pause) \
             "Run-time 0 Pause-time 1 Single-step 2" 0 \
             "aie_v3p_update_timesteps states"
   textEntry v3TransTimePStep "  " ::transient_info(time) NUM
dataEntryDialog END


include v3pcustomDEZ.ttkrf


dataEntryDialog v3StartupDEZ "Select Result Format"
  entryButton v3DataSetsAdd "Add as" NULL v3DataSetTitle \
                  "aie_add_setup_set" "Add the current data set"
  textOptMenu v3DataSets "DataSet" dset_info(iread) \
        ::dset_info(read_list) 0 "aie_v3p_setup_sets" 
  exclusiveGroup v3DataFormat NULL "Format" 1 DROPDOWN v3DataFormatVar "aie_select_dataform"
     includePattern *_format_aie.ttkrf ::v3_readers_dir
     exclusiveGroupItem v3DataFormatNull "  "
     exclusiveGroupItem END
  exclusiveGroup END
dataEntryDialog END


