From 3a30a7f992b357d7aeeac9fe5f9088dc5b24d1e1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= Date: Wed, 26 Jan 2011 14:09:43 +0100 Subject: [PATCH] =?utf8?q?D=C3=A9sactivation=20de=20la=20vue=20de=20ADAO?= =?utf8?q?=20lorsque=20le=20module=20n'est=20pas=20activ=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/daSalome/daGUI/daGuiImpl/ADAOGUI_impl.py | 2 ++ src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/src/daSalome/daGUI/daGuiImpl/ADAOGUI_impl.py b/src/daSalome/daGUI/daGuiImpl/ADAOGUI_impl.py index 0c6446f..8168608 100644 --- a/src/daSalome/daGUI/daGuiImpl/ADAOGUI_impl.py +++ b/src/daSalome/daGUI/daGuiImpl/ADAOGUI_impl.py @@ -98,6 +98,8 @@ def activate(): # called when module is deactivated def deactivate(): + ctx = _setContext( sgPyQt.getStudyId() ) + ctx.actionImpl.deactivate() pass # called when active study is changed diff --git a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py index 3c98d52..e08249b 100644 --- a/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py +++ b/src/daSalome/daGUI/daGuiImpl/adaoGuiManager.py @@ -161,10 +161,16 @@ class AdaoGuiActionImpl(EficasObserver): wmType = "ADAO View" self.__Eficas_viewId = sgPyQt.createView(wmType, area) sgPyQt.setViewClosable(self.__Eficas_viewId, False) + self.__dlgEficasWrapper.setEnabled(True) def activate(self): self.showEficas() + def deactivate(self): + self.showEficas() + if self.__Eficas_viewId != -1: + self.__dlgEficasWrapper.setEnabled(False) + # Actions from SALOME GUI def newAdaoCase(self): -- 2.39.2