]> SALOME platform Git repositories - modules/eficas.git/commitdiff
Salome HOME
ajout d'un gestionnaire de l'arbre d'étude ( cf module EficasStudy )
authorsalome <>
Wed, 19 Oct 2005 14:11:27 +0000 (14:11 +0000)
committersalome <>
Wed, 19 Oct 2005 14:11:27 +0000 (14:11 +0000)
src/EFICASGUI/EFICASGUI.py

index 17e41c856119011df62addf882faba6d507f678b..2f933a88acb08935a18e26df27e1bb42a4f1f5fe 100644 (file)
@@ -35,6 +35,13 @@ import salomedsgui
 aGuiDS=salomedsgui.guiDS()
 print "EFicasGUI :: :::::::::::::::::::::::::::::::::::::::::::::::::::::"
 
+
+
+# -----------------------------------------------------------------------------
+# gestionnaire arbre d'étude
+from EficasStudy import study
+
+
 # -----------------------------------------------------------------------------
 
 def setWorkSpace(workSpace):
@@ -76,7 +83,8 @@ def setSettings():
    currentStudyId = sgPyQt.getStudyId()
    print "setSettings: currentStudyId = " + str(currentStudyId)
    # _CS_gbo_ Voir si on peut utiliser directement sgPyQt.getStudyId()
-   # dans salomedsgui?
+   # dans salomedsgui?   
+   study.setCurrentStudyID( currentStudyId )
 
 
 # -----------------------------------------------------------------------------
@@ -89,7 +97,9 @@ def activeStudyChanged(ID):
    # studyId=sg.getActiveStudyId()
    currentStudyId=ID
    print "_CS_GBO_ : EFICASGUI.activeStudyChanged : currentStudyId = ", currentStudyId
-   print "_CS_GBO_ : EFICASGUI.activeStudyChanged : sgPyQt.getStudyId() = ", sgPyQt.getStudyId()
+   print "_CS_GBO_ : EFICASGUI.activeStudyChanged : sgPyQt.getStudyId() = ", sgPyQt.getStudyId()   
+   study.setCurrentStudyID( ID )
+   
 
 def definePopup(theContext, theObject, theParent):
    print "EFICASGUI --- definePopup"