import salome.hydro.pytel.gui as pytel_gui
from salome.hydro.boundary_conditions.eficas.appli import EficasForBoundaryConditionsAppli
+import BndConditionsDialog
+
################################################
# GUI context class
# Used to store actions, menus, toolbars, etc...
EDIT_PYTEL_CASE_ID = 953
GENERATE_JOB = 954
DEFINE_BOUNDARY_CONDITIONS_ID = 955
+ EDIT_BOUNDARY_CONDITIONS_FILE_ID = 956
def __init__( self ):
# create top-level menu
sgPyQt.createMenu( a, mid )
sgPyQt.createTool( a, tid )
+ a = sgPyQt.createAction( GUIcontext.EDIT_BOUNDARY_CONDITIONS_FILE_ID,
+ "Edit boundary conditions file", "Edit boundary conditions file",
+ "Create/edit the boundary conditions file for Telemac",
+ "edit_boundary_conditions_file.png" )
+ sgPyQt.createMenu( a, mid )
+ sgPyQt.createTool( a, tid )
+
a = sgPyQt.createSeparator()
sgPyQt.createMenu( a, mid )
sgPyQt.createTool( a, tid )
def define_boundary_conditions():
EficasForBoundaryConditionsAppli()
+###
+# Open dialog for boundary conditions edition
+###
+def edit_boundary_conditions_file():
+ dlg = BndConditionsDialog.BoundaryConditionsDialog()
+ dlg.exec_()
+
###
# Commands dictionary
###
GUIcontext.EDIT_PYTEL_CASE_ID: pytel_gui.edit_selected_case,
GUIcontext.GENERATE_JOB: pytel_gui.generate_job_for_selected_case,
GUIcontext.DEFINE_BOUNDARY_CONDITIONS_ID: define_boundary_conditions,
+ GUIcontext.EDIT_BOUNDARY_CONDITIONS_FILE_ID: edit_boundary_conditions_file,
}