]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
IL: prise en compte de Carmel3D : ajout d un bouton
authorilct <>
Thu, 29 Mar 2012 14:07:01 +0000 (14:07 +0000)
committerilct <>
Thu, 29 Mar 2012 14:07:01 +0000 (14:07 +0000)
src/EFICASGUI/EFICASGUI.py

index 2ac240577bc7a36b08e415c46b28ce5c572dbf1b..755ec6aa15c52bfb2ed2b9a7573fc109167a56af 100644 (file)
@@ -46,6 +46,7 @@ class GUIcontext:
     OT_STUDY_ID    = 944
     OT_WRAPPER_ID  = 945
     MULTICATALOG_ID = 946
+    CARMEL3D_ID    = 947
 
     # constructor
     def __init__(self):
@@ -80,6 +81,10 @@ class GUIcontext:
                                     "Eficas pour Openturns Wrapper",
                                     "Editer un jeu de commande Openturns Wrapper avec Eficas",
                                     "eficasotwrp.png")
+        self.addActionConditionally("Carmel3D/prefs.py", GUIcontext.CARMEL3D_ID,
+                                    "Eficas pour Carmel3D",
+                                    "Editer un jeu de commande Carmel3D avec Eficas",
+                                    "eficascarmel.png")
 
     def addActionConditionally(self, fileToTest, commandId, menuLabel, tipLabel, icon):
         global eficasRoot
@@ -213,6 +218,11 @@ def runEficaspourMap():
    eficasSalome.runEficas( "MAP" )
    
    
+def runEficaspourCarmel3D():
+   print "runEficas Pour Carmel3D "
+   import eficasSalome
+   eficasSalome.runEficas( "CARMEL3D" )
+   
 
 def runEficasFichier(version=None):
    """
@@ -253,6 +263,7 @@ dict_command={
                 GUIcontext.MAP_ID        : runEficaspourMap,
                 GUIcontext.OT_STUDY_ID   : runEficaspourOpenturnsStudy,
                 GUIcontext.OT_WRAPPER_ID : runEficaspourOpenturnsWrapper,
+                GUIcontext.CARMEL3D_ID   : runEficaspourCarmel3D,
                 GUIcontext.MULTICATALOG_ID : runEficas,
 
                 9041:runEficasFichier,