From d1a8847d4a5f7bae2f3d4a0bf268e63b46c5fa28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Ribes?= Date: Wed, 9 Mar 2011 16:30:47 +0100 Subject: [PATCH] Suppression code mort --- .../daEficasWrapper/adaoEficasWrapper.py | 79 ------------------- 1 file changed, 79 deletions(-) diff --git a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py index 989f63c..8dacee4 100644 --- a/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py +++ b/src/daSalome/daGUI/daEficasWrapper/adaoEficasWrapper.py @@ -179,82 +179,3 @@ class AdaoEficasWrapper(eficasSalome.MyEficas): def notifyObserver(self, eventType, callbackId=None): eficasEvent = EficasEvent(eventType, callbackId) self.__observer.processEficasEvent(self, eficasEvent) - - -####### -# -# Deprecated code -# -####### - - def openEmptyCase(self, callbackId): - qtEficas.Appli.fileNew(self) - self.removeCallbackId(callbackId) - self.setCallbackId(callbackId) - - def getCaseName(self): - if self.__close_editor is None: - index = self.viewmanager.myQtab.currentIndex() - CaseName = self.viewmanager.myQtab.tabText(index) - return CaseName - else: - CaseName = str(self.__close_editor.fichier.split('/')[-1]) - return CaseName - - def getFileCaseName(self): - if self.__close_editor is None: - index = self.viewmanager.myQtab.currentIndex() - editor = self.viewmanager.dict_editors[index] - return editor.fichier - else: - return self.__close_editor.fichier - - def Openfile(self, filename): - self.viewmanager.handleOpen(fichier=filename) - - def handleOpenRecent(self): - """ - @overload - """ - idx = self.sender() - fichier = self.ficRecents[idx] - self.__file_open_name = fichier - self.notifyObserver(EficasEvent.EVENT_TYPES.OPEN) - self.__file_open_name = "" - - - def getOpenFileName(self): - return str(self.__file_open_name) - - - def fileClose(self): - """ - @overload - """ - index = self.viewmanager.myQtab.currentIndex() - self.__close_editor = self.viewmanager.dict_editors[index] - res = self.viewmanager.handleClose(self) - if res != 2: # l utilsateur a annule - if self.__close_editor.fichier is None: - # We have to destroy the case - self.notifyObserver(EficasEvent.EVENT_TYPES.DESTROY) - self.__myCallbackId.pop(self.__close_editor) - else: - # Il faudrait en faire plus -> Voir Edit dans SALOME ! - self.notifyObserver(EficasEvent.EVENT_TYPES.SAVE) - self.__myCallbackId.pop(self.__close_editor) - self.__close_editor = None - return res - - def fileCloseAll(self): - """ - @overload - """ - while len(self.viewmanager.dict_editors) > 0: - self.viewmanager.myQtab.setCurrentIndex(0) - if self.viewmanager.myQtab.currentIndex() == 0: - res = self.fileClose() - if res==2 : return res # l utilsateur a annule - else: - return 0 - -- 2.39.2