From: Renaud Barate Date: Thu, 26 May 2011 09:37:50 +0000 (+0000) Subject: Remove Patrons menu for Aster (patch from Pascale) X-Git-Tag: V6_3_0rc3 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=49a3861d04f203e5117618b480c99644bbf7db55;p=tools%2Feficas.git Remove Patrons menu for Aster (patch from Pascale) --- diff --git a/Editeur/listePatrons.py b/Editeur/listePatrons.py index 872f290b..3de4e4f9 100644 --- a/Editeur/listePatrons.py +++ b/Editeur/listePatrons.py @@ -1,7 +1,7 @@ import os import re -sous_menus={"ASTER" : {0:{"3D":"3D.comm"},1:{"poutre":"pou.comm"},2:{"salome":"salome.comm"},3:{"divers":"comm"}}, +sous_menus={ "OPENTURNS_STUDY" : {0:{"Anne":"Std.comm"}}, "OPENTURNS_WRAPPER" : {0:{"Anne":"wrapper_exemple.comm"}}, } diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 8df1afab..d7ea43f8 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -206,6 +206,12 @@ class Appli(Ui_Eficas,QMainWindow): def initPatrons(self) : # Mise à jour du menu des fichiers recemment ouverts from Editeur import listePatrons + if not(self.code in listePatrons.sous_menus.keys()) : + return + self.menuPatrons = QMenu(self.menubar) + self.menuPatrons.setObjectName("menuPatrons") + self.menubar.addAction(self.menuPatrons.menuAction()) + self.menuPatrons.setTitle(QApplication.translate("Eficas", "Patrons", None, QApplication.UnicodeUTF8)) self.listePatrons = listePatrons.listePatrons(self.code) idx = 0 for nomSsMenu in self.listePatrons.liste.keys(): diff --git a/UiQT4/myMain.ui b/UiQT4/myMain.ui index cf9dbea5..b49ae8df 100644 --- a/UiQT4/myMain.ui +++ b/UiQT4/myMain.ui @@ -68,17 +68,11 @@ - - - Patrons - - -