From: salome <> Date: Wed, 19 Oct 2005 14:11:27 +0000 (+0000) Subject: ajout d'un gestionnaire de l'arbre d'étude ( cf module EficasStudy ) X-Git-Tag: EFICAS_before_burge~3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=81f250c9f32ee4501c5cc8011aa21d20af1412a4;p=modules%2Feficas.git ajout d'un gestionnaire de l'arbre d'étude ( cf module EficasStudy ) --- diff --git a/src/EFICASGUI/EFICASGUI.py b/src/EFICASGUI/EFICASGUI.py index 17e41c85..2f933a88 100644 --- a/src/EFICASGUI/EFICASGUI.py +++ b/src/EFICASGUI/EFICASGUI.py @@ -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"