From: Pascale Noyret Date: Thu, 10 Jan 2013 17:24:55 +0000 (+0000) Subject: pour run de Map X-Git-Tag: V6_6_0p1~7 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=35c2aaeccb56492424d8a0b21b82915fd624d249;p=tools%2Feficas.git pour run de Map --- diff --git a/InterfaceQT4/qtEficas.py b/InterfaceQT4/qtEficas.py index 1d3ec834..0d19fcbc 100644 --- a/InterfaceQT4/qtEficas.py +++ b/InterfaceQT4/qtEficas.py @@ -106,12 +106,16 @@ class Appli(Ui_Eficas,QMainWindow): self.initPatrons() self.initRecents() self.initAides() - for intituleMenu in ("menuTraduction","menuOptions","menuMesh"): + for intituleMenu in ("menuTraduction","menuOptions","menuMesh","menuExecution"): if hasattr(self,intituleMenu): menu=getattr(self,intituleMenu) menu.setAttribute(Qt.WA_DeleteOnClose) menu.close() delattr(self,intituleMenu) + for intituleAction in ("actionExecution",): + if hasattr(self,intituleAction): + action=getattr(self,intituleAction) + self.toolBar.removeAction(action) if self.code in Appli.__dict__.keys(): listeTexte=apply(Appli.__dict__[self.code],(self,)) @@ -132,6 +136,18 @@ class Appli(Ui_Eficas,QMainWindow): self.actionCode.setEnabled(True) self.menuAide.addAction(self.actionCode) + def MAP(self): + self.menuExecution = self.menubar.addMenu(QApplication.translate("Eficas", "Execution", None, QApplication.UnicodeUTF8)) + self.actionExecution = QAction(self) + icon6 = QIcon(self.RepIcon+"/compute.png") + self.actionExecution.setIcon(icon6) + self.actionExecution.setObjectName("actionExecution") + self.menuExecution.addAction(self.actionExecution) + if not(self.actionExecution in self.toolBar.actions()): + self.toolBar.addAction(self.actionExecution) + self.actionExecution.setText(QApplication.translate("Eficas", "Execution ", None, QApplication.UnicodeUTF8)) + self.connect(self.actionExecution,SIGNAL("activated()"),self.run) + def ASTER(self) : self.menuTraduction = self.menubar.addMenu("menuTraduction")