def setdockWindowActivated(self, visible): """ mv is the Main CFD window allocated by MainView code When we click on a CFD window browser tab, the CFD window browser appears and the associated cfd study window raises too """ studyId = sgPyQt.getStudyId() dockWB = self.sender() log.debug("setdockWindowActivated -> %s" % (dockWB,)) if not visible: return #if dockWB.isActiveWindow() == False: #return if _c_CFDGUI != None: dock = _c_CFDGUI.getdock(studyId, dockWB) if dock != None: dock.activateWindow() dock.show() dock.raise_() mw = _c_CFDGUI.getMW(studyId, dock) self._CurrentWindow = mw mw.activateWindow() log.debug("setdockWindowActivated -> mw = %s" % (mw,)) ob = sgPyQt.getObjectBrowser() # effacer la selection en cours ob.clearSelection() else: self._CurrentWindow = None
def setdockWindowBrowserActivated(self, visible): """ mw is the Main CFD window allocated by MainView code When we click on a cfd study window tab, the cfd study window appears and the associated CFD window browser raises too """ studyId = sgPyQt.getStudyId() dock = self.sender() log.debug("setdockWindowBrowserActivated -> %s" % (dock,)) if not visible: return #if dock.isActiveWindow() == False: #return if _c_CFDGUI != None: dockWB = _c_CFDGUI.getdockWB(studyId, dock) if dockWB != None: dockWB.activateWindow() dockWB.show() dockWB.raise_() mw = _c_CFDGUI.getMW(studyId, dock) self._CurrentWindow = mw mw.activateWindow() log.debug("setdockWindowBrowserActivated -> mw = %s" % (mw,)) ob = sgPyQt.getObjectBrowser() # Clear the current selection in the SALOME object browser, which does not match with the shown dock window ob.clearSelection() else: self._CurrentWindow = None
def setdockWindowActivated(self, visible): """ mv is the Main CFD window allocated by MainView code When we click on a CFD window browser tab, the CFD window browser appears and the associated cfd study window raises too """ studyId = sgPyQt.getStudyId() dockWB = self.sender() log.debug("setdockWindowActivated -> %s" % (dockWB, )) if not visible: return #if dockWB.isActiveWindow() == False: #return if _c_CFDGUI != None: dock = _c_CFDGUI.getdock(studyId, dockWB) if dock != None: dock.activateWindow() dock.show() dock.raise_() mw = _c_CFDGUI.getMW(studyId, dock) self._CurrentWindow = mw mw.activateWindow() log.debug("setdockWindowActivated -> mw = %s" % (mw, )) ob = sgPyQt.getObjectBrowser() # effacer la selection en cours ob.clearSelection() else: self._CurrentWindow = None
def setdockWindowBrowserActivated(self, visible): """ mw is the Main CFD window allocated by MainView code When we click on a cfd study window tab, the cfd study window appears and the associated CFD window browser raises too """ studyId = sgPyQt.getStudyId() dock = self.sender() log.debug("setdockWindowBrowserActivated -> %s" % (dock, )) if not visible: return #if dock.isActiveWindow() == False: #return if _c_CFDGUI != None: dockWB = _c_CFDGUI.getdockWB(studyId, dock) if dockWB != None: dockWB.activateWindow() dockWB.show() dockWB.raise_() mw = _c_CFDGUI.getMW(studyId, dock) self._CurrentWindow = mw mw.activateWindow() log.debug("setdockWindowBrowserActivated -> mw = %s" % (mw, )) ob = sgPyQt.getObjectBrowser() # Clear the current selection in the SALOME object browser, which does not match with the shown dock window ob.clearSelection() else: self._CurrentWindow = None
def deactivate(): """ This method is called when GUI module is being deactivated. """ log.debug("deactivate") dsk = sgPyQt.getDesktop() ActionHandler = _DesktopMgr.getActionHandler(dsk) ActionHandler._SalomeSelection.currentSelectionChanged.disconnect(ActionHandler.updateActions) ActionHandler.disconnectSolverGUI() ob = sgPyQt.getObjectBrowser() if ob != None: ob.collapseAll()
def showDocks(self): _c_CFDGUI.showDocks() ob = sgPyQt.getObjectBrowser() # Clear the current selection in the SALOME object browser, which does not match with the shown dock window if ob != None: ob.clearSelection()