]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
passage V9 V9_2_1
authorpascale.noyret <pascale.noyret@edf.fr>
Fri, 21 Sep 2018 11:43:59 +0000 (13:43 +0200)
committerpascale.noyret <pascale.noyret@edf.fr>
Fri, 21 Sep 2018 11:43:59 +0000 (13:43 +0200)
CMakeLists.txt
src/EFICASGUI/EFICASGUI.py
src/EFICASGUI/eficasSalome.py

index 6661afeb84bd52d99ccf775ab3bb94c42184bc21..4963b3be264d22e0f6b97e577da1692816f73834 100644 (file)
@@ -27,8 +27,8 @@ CMAKE_POLICY(SET CMP0003 NEW)
 # Project name, upper case
 STRING(TOUPPER ${PROJECT_NAME} PROJECT_NAME_UC)
 
-SET(${PROJECT_NAME_UC}_MAJOR_VERSION 8)
-SET(${PROJECT_NAME_UC}_MINOR_VERSION 5)
+SET(${PROJECT_NAME_UC}_MAJOR_VERSION 9)
+SET(${PROJECT_NAME_UC}_MINOR_VERSION 0)
 SET(${PROJECT_NAME_UC}_PATCH_VERSION 0)
 SET(${PROJECT_NAME_UC}_VERSION
   ${${PROJECT_NAME_UC}_MAJOR_VERSION}.${${PROJECT_NAME_UC}_MINOR_VERSION}.${${PROJECT_NAME_UC}_PATCH_VERSION})
index a95792c5690a24f10f68a695a77d8725fc21c90c..30cea061d28859ed8f44566b6d9f005e719d269f 100644 (file)
@@ -18,6 +18,7 @@
 # See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
 #
 
+# -*- coding: utf-8 -*-
 
 import os
 
@@ -122,25 +123,26 @@ class GUIcontext:
 ################################################
 
 # study-to-context map
-__study2context__ = {}
+#__study2context__ = {}
 # current context
-__current_context__ = None
+#__current_context__ = None
+
 
 
 # ##
 # set and return current GUI context
 # study ID is passed as parameter
 # ##
-def _setContext(studyID):
-    global eficasRoot
-    if eficasRoot is None:
-        return
-    global __study2context__, __current_context__
-    if studyID not in __study2context__:
-        __study2context__[studyID] = GUIcontext()
-        pass
-    __current_context__ = __study2context__[studyID]
-    return __current_context__
+#def _setContext(studyID):
+#    global eficasRoot
+#    if eficasRoot is None:
+#        return
+#    global __study2context__, __current_context__
+#    if studyID not in __study2context__:
+#        __study2context__[studyID] = GUIcontext()
+#        pass
+#    __current_context__ = __study2context__[studyID]
+#    return __current_context__
 
 
 # -----------------------------------------------------------------------------
@@ -155,11 +157,11 @@ def OnGUIEvent(commandID):
 
 # -----------------------------------------------------------------------------
 
-def setSettings():
-    """
-    Cette méthode permet les initialisations.
-    """
-    _setContext(sgPyQt.getStudyId())
+#def setSettings():
+#    """
+#    Cette méthode permet les initialisations.
+#    """
+    #_setContext(sgPyQt.getStudyId())
 
 
 def activate():
@@ -169,13 +171,14 @@ def activate():
 
     Portage V3.
     """
-    setSettings()
+#    setSettings()
+    GUIcontext()
 
 
 # -----------------------------------------------------------------------------
 
-def activeStudyChanged(ID):
-    _setContext(ID)
+#def activeStudyChanged(ID):
+#    _setContext(ID)
 
 
 # -----------------------------------------------------------------------------
index 40d0e1a4ea751fc7de1309460d27e49f9896326d..8aac9093c3709217181f56f0bdd5b0bc03405379 100644 (file)
@@ -489,7 +489,7 @@ class MyEficas(qtEficas.Appli):
             from salome.smesh import smeshBuilder
             smesh = smeshBuilder.New(theStudy)
             smesh.CreateMeshesFromMED(fileName)
-            salome.sg.updateObjBrowser(1)
+            salome.sg.updateObjBrowser()
             return 1, ""
         except:
             return (0, "Pb a l import")
@@ -598,7 +598,7 @@ class MyEficas(qtEficas.Appli):
                                                      # icon    = "ICON_COMM_FILE",
                                                      comment=str(jdcPath))
 
-            salome.sg.updateObjBrowser(1)
+            salome.sg.updateObjBrowser()
 
             if commEntry:
                 ok, msgError = True, ''
@@ -687,7 +687,7 @@ class MyEficas(qtEficas.Appli):
             structElemManager = StructuralElementManager()
             elem = structElemManager.createElement(liste_commandes)
             elem.display()
-            salome.sg.updateObjBrowser(True)
+            salome.sg.updateObjBrowser()
         except InvalidParameterError as err:
             trStr = self.tr("Invalid parameter for group %(group)s: %(expr)s must be "
                             "greater than %(minval)g (actual value is %(value)g)")