]> SALOME platform Git repositories - modules/hydrosolver.git/commitdiff
Salome HOME
menu et icones. en cours
authorPaul RASCLE <paul.rascle@edf.fr>
Tue, 7 Feb 2017 15:32:49 +0000 (16:32 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Tue, 7 Feb 2017 15:32:49 +0000 (16:32 +0100)
src/HYDROGUI/HYDROSOLVERGUI.py

index d0d6cb80456616c760dc52cb8ea0968262c91391..69a34c411f4bde158bb10c98a4a9e82ef72d3aa9 100755 (executable)
@@ -78,13 +78,6 @@ class GUIcontext:
         # create toolbar
         tid = sgPyQt.createTool( "Hydro" )
         # create actions and fill menu and toolbar with actions
-        #a = sgPyQt.createAction( GUIcontext.DEFINE_BOUNDARY_CONDITIONS_ID,
-        #                         "Define boundary conditions", "Define boundary conditions",
-        #                         "Define the boundary conditions for Telemac",
-        #                         "define_boundary_conditions.png" )
-        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",
@@ -120,10 +113,15 @@ class GUIcontext:
         sgPyQt.createMenu( a, mid )
         sgPyQt.createTool( a, tid )
 
-        a = sgPyQt.createSeparator()
+        a = sgPyQt.createAction( GUIcontext.EDIT_PYTEL_CASE_ID,
+                                "Edit case for Pytel execution", "Edit case for Pytel execution",
+                                "Edit a new case for Pytel execution", "edit_case_pytel.png" )
+
         sgPyQt.createMenu( a, mid )
         sgPyQt.createTool( a, tid )
 
+        a = sgPyQt.createSeparator()
+
         a = sgPyQt.createAction( GUIcontext.GENERATE_INTERPOLZ_PY_ID,
                                  "Generate interpolz.py", "Generate interpolz.py",
                                  "Generate interpolation script from the template", "generate_interpolz_py.png" )
@@ -468,7 +466,7 @@ def generate_interpolz_py():
 ###
 # Open dialog for boundary conditions edition
 ###
-def eficas_for_cas_Telemac2D()
+def eficas_for_cas_Telemac2D():
    runEficas(code='TELEMAC')
 ###
 # Commands dictionary
@@ -491,5 +489,5 @@ dict_command = {
     #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,
-    GUIcontext.GUIcontext.DEFINE_CAS_FILE: eficas_for_cas_Telemac2D,
+    GUIcontext.DEFINE_CAS_FILE: eficas_for_cas_Telemac2D,
     }