#logger.setLevel(logging.ERROR)
import HYDROSOLVER_ORB
+from salome.hydro.interpolz_gui import InterpolzDlg
from salome.hydro.gui_utils import HSGUIException, wait_cursor, get_and_check_selected_file_path
import salome.hydro.study as hydro_study
from salome.hydro.mascaret.eficas.appli import EficasForMascaretAppli
GENERATE_JOB = 954
DEFINE_BOUNDARY_CONDITIONS_ID = 955
EDIT_BOUNDARY_CONDITIONS_FILE_ID = 956
+ GENERATE_INTERPOLZ_PY_ID = 957
def __init__( self ):
# create top-level menu
a = sgPyQt.createAction( GUIcontext.CREATE_PYTEL_CASE_ID,
"Create case for Pytel execution", "Create case for Pytel execution",
"Create a new case for Pytel execution", "create_case_pytel.png" )
+
+ sgPyQt.createMenu( a, mid )
+ sgPyQt.createTool( a, tid )
+
+ a = sgPyQt.createSeparator()
+ sgPyQt.createMenu( a, mid )
+ sgPyQt.createTool( a, tid )
+
+ a = sgPyQt.createAction( GUIcontext.GENERATE_INTERPOLZ_PY_ID,
+ "Generate interpolz.py", "Generate interpolz.py",
+ "Generate interpolation script from the template", "generate_interpolz_py.png" )
+
sgPyQt.createMenu( a, mid )
sgPyQt.createTool( a, tid )
# Open dialog for boundary conditions edition
###
def edit_boundary_conditions_file():
- dlg = BndConditionsDialog.BoundaryConditionsDialog()
+ desktop = sgPyQt.getDesktop()
+ dlg = BndConditionsDialog.BoundaryConditionsDialog(desktop)
dlg.exec_()
+###
+# Open dialog for interpolz.py script generation
+###
+def generate_interpolz_py():
+ desktop = sgPyQt.getDesktop()
+ dlg = InterpolzDlg(desktop)
+ dlg.show()
+
###
# Commands dictionary
###
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,
+ GUIcontext.GENERATE_INTERPOLZ_PY_ID: generate_interpolz_py,
}