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

# AI*Environment Prototype GUI Layout 2
# Menu definitions
#
# E. Miller
# Last mod: 09/10/03 vlad: va_check_angle/distance/location;
#
# J. Spaete
# AI_ENV_IN_WB2 runs the ICEM CFD addin
#
#-----------------------------------------------------------------------------
iconBar FileBar
ifndef AI_ENV_IN_WB2
  iconButton openProjBut "Open Project" Utils_OpenProj$icon_size1.gif aie_openProject "Open Project"
  iconButton saveBut "Save Project" Utils_Save$icon_size1.gif aie_saveProject "Save Project"
endif
ifdef AI_ENV_IN_WB2
  iconButton saveBut "Save Project" Utils_Save$icon_size1.gif "aie_wb2_save_project" "Save Project"
  iconButton refreshProjBut "Refresh Project" Refresh$icon_size1.gif "aie_wb2_refresh_upstream_data" "Refresh Project"
  iconButton updateProjBut "Update Project" Update$icon_size1.gif "aie_wb2_update" "Update Project"
  iconDrop ReplayWBFileDrop
    iconButton replayStartBut "Start Replay Recording" ReplayRecord$icon_size1.gif "aie_wb2_record_replay 1" "Start Replay Recording"
    iconButton replayPauseBut "Pause Replay Recording" ReplayPause$icon_size1.gif "aie_wb2_record_replay 3" "Pause Replay Recording"
    iconButton replayStopBut "Stop Replay Recording" ReplayStop$icon_size1.gif "aie_wb2_record_replay 0" "Stop Replay Recording"
    iconButton replayRunBut "Run Replay File" ReplayPlay$icon_size1.gif "aie_wb2_record_replay 2" "Run Replay File"
    iconButton replayRunDel "Delete Replay File" ReplayDelete$icon_size1.gif "aie_wb2_record_replay 4" "Delete Replay File"
    iconButton replayControl "Workbench Replay Control" ReplayControl$icon_size1.gif "aie_wb2_record_replay 5" "Workbench Replay Control"
  iconDrop END
  iconDrop SolversWBDrop
    iconButton solverWBFluent "Output mesh to ANSYS FLUENT" O_FluentV6_$icon_size1.gif "aie_wb2_run_solver fluent6 {ANSYS Fluent}" "Output mesh to ANSYS FLUENT"
    iconButton solverWBCFX5 "Output mesh to ANSYS CFX" O_CFX$icon_size1.gif "aie_wb2_run_solver cfx5 {ANSYS CFX}" "Output mesh to ANSYS CFX"
    iconButton solverWBPolyflow "Output mesh to Polyflow" O_Polyflow$icon_size1.gif "aie_wb2_run_solver polyflow {Polyflow}" "Output mesh to Polyflow"
    iconButton solverWBAnsys "Output mesh to ANSYS" O_Ansys$icon_size1.gif "aie_wb2_run_solver ANSYS {ANSYS}" "Output mesh to ANSYS"
    iconButton solverWBFensap "Output mesh to FENSAP" O_Fensap$icon_size1.gif "aie_wb2_run_solver FENSAP {FENSAP}" "Output mesh to FENSAP"
  iconDrop END
endif
ifndef AI_ENV_IN_WB2
iconDrop GeometryFileDrop
    iconButton openGeomBut "Open Geometry" Utils_OpenGeom$icon_size1.gif aie_open_geom "Open Geometry"
    iconButton saveGeomBut "Save Geometry as" Utils_SaveGeom$icon_size1.gif "aie_save_geom 1" "Save Geometry as..."
    iconButton closeGeomBut "Close Geometry" Utils_CloseGeom$icon_size1.gif aie_close_geom "Close Geometry"
iconDrop END
ifndef AI_ENV_LSTC
iconDrop MeshFileDrop
    iconButton openMeshBut "Open Mesh" Utils_OpenMesh$icon_size1.gif aie_open_Mesh "Open Mesh"
	iconButton saveMeshBut "Save Mesh as" Utils_SaveMesh$icon_size1.gif "aie_save_Meshas" "Save Mesh as..."
	iconButton closeMeshBut "Close Mesh" Utils_CloseMesh$icon_size1.gif aie_close_Mesh "Close Mesh"
iconDrop END
endif
iconDrop BlockingFileDrop
    iconButton openBlockBut "Open Blocking" Utils_OpenBlock$icon_size1.gif aie_open_blocking "Open Blocking"
    iconButton saveBlockBut "Save Blocking as" Utils_SaveBlock$icon_size1.gif "aie_save_blocking 1" "Save Blocking as..."
    iconButton closeBlockBut "Close Blocking" Utils_CloseBlock$icon_size1.gif aie_close_blocking "Close Blocking"
iconDrop END
ifdef AI_ENV_LSTC
  iconButton saveMeshLSPre "Export mesh to LS-Pre" O_WriteInputFile$icon_size1.gif aie_export_mesh_lspre "Export mesh"
endif
endif
iconBar END

iconBar undoBar
  iconButton undoBut "Undo" Utils_Undo$icon_size1.gif "aie_undo 0" "Undo (key = Ctrl-z)"
  iconButton redoBut "Redo" Utils_Redo$icon_size1.gif "aie_undo 1" "Redo (key = Ctrl-y)"
iconBar END

iconBar viewBar
  iconButton fitWindowBut "Fit" Utils_ZoomXtents$icon_size1.gif "aie_view fitWindow" "Fit Window (key = x)"
  iconButton boxWindowZoomBut "Box Zoom" Utils_ZoomWin$icon_size1.gif "aie_view boxZoom" "Box Zoom (key = z)"
  #iconButton viewControlBut "Control View" toolsTab.gif "va_ezcad_load lib.tcl val_set_screen_position" "Control View"
  #iconButton rotateBut "Rotate View" view_rotate.gif "aie_view rotate" "Rotate View"
#	iconDrop viewDrop
#    		iconButton topViewDDBut "Top" View_top.gif "aie_view top" "Top"
#    		iconButton bottomViewDDBut "Bottom" View_bottom.gif "aie_view bottom" "Bottom"
#    		iconButton rightViewDDBut "Right" View_right.gif "aie_view right" "Right"
#    		iconButton leftViewDDBut "Left" View_left.gif "aie_view left" "Left"
#    		iconButton frontViewDDBut "Front" View_front.gif "aie_view front" "Front"
#  	iconDrop END
#iconBar END

#iconBar MeasureBar
 	iconDrop measureDrop
 	   iconButton distanceBut "Measure Distance" Utils_Distance$icon_size1.gif va_check_distance "Measure Distance"
 	   iconButton angleBut "Measure Angle" Utils_Angle$icon_size1.gif va_check_angle "Measure Angle"
 	   iconButton locationBut "Find Location" Utils_Location$icon_size1.gif va_check_location "Find Location"
	iconDrop END
        iconButton lcsBut "Local Coordinate Systems" Utils_LCS$icon_size1.gif "createLCSDEZ show" "Local Coordinate Systems"
ifndef AI_NO_BLOCKING
    iconDrop RefreshDrop
 	   iconButton refreshWindowBut "Refresh" Utils_Refresh$icon_size1.gif aie_refresh_screen "Refresh"
 	   iconButton RecomputeHexaBut "Recompute Premesh" B_Regen$icon_size1.gif "aie_hex_recompute_mesh" "Recompute Premesh"
     iconDrop END
endif
ifdef AI_NO_BLOCKING
   iconButton refreshWindowBut "Refresh" Utils_Refresh$icon_size1.gif aie_refresh_screen "Refresh"
endif

iconBar END

iconBar DisplayBar
	iconDrop WireDisDrop
	   iconButton unShadeSimpBut "Wireframe Display" Disp_WireSmpl$icon_size1.gif "ai_wire_all simple" "WireFrame Simple Display"
	   iconButton unShadeFullBut "Wireframe Display" Disp_WireFull$icon_size1.gif "ai_wire_all full" "WireFrame Full Display"
	iconDrop END
	iconDrop ShadDispDrop
	   iconButton shadeSimpBut "Shaded Display" Disp_SolidSmpl$icon_size1.gif "ai_shade_all simple" "Solid Simple Display"
	   iconButton shadeFullBut "Shaded Display" Disp_SolidFull$icon_size1.gif "ai_shade_all full" "Solid Full Display"
       iconButton shadeFullFlatBut "Shaded Display" Disp_SolidFullFlat$icon_size1.gif "ai_shade_all full 1" "Solid Full Flat Display"
	   iconButton shadeFullWrBut "Shaded Display" Disp_SolidFullWire$icon_size1.gif "ai_shade_all full-wire" "Solid/Wire Full Display"
	iconDrop END 
iconBar END
  
#iconBar toolsBar
	 
#  iconButton rotateControlBut "Rotate" rotateControl.gif DummyProc "Rotate"
#  iconButton ppanControlBut "Pan" ppanControl.gif DummyProc "Pan"
#  iconButton zoomSpinControlBut "Zoom/Spin" zoomSpinControl.gif DummyProc "Zoom & Spin"

# iconButton cutplaneBut "Cut Plane" tools_cutplane.gif "cutPlaneDEZ show" "Cut Plane"
#iconBar END

