]> SALOME platform Git repositories - tools/eficas.git/commitdiff
Salome HOME
pour run de Map
authorPascale Noyret <pascale.noyret@edf.fr>
Thu, 10 Jan 2013 17:24:55 +0000 (17:24 +0000)
committerPascale Noyret <pascale.noyret@edf.fr>
Thu, 10 Jan 2013 17:24:55 +0000 (17:24 +0000)
InterfaceQT4/qtEficas.py

index 1d3ec8349370dd2e2c588a3a43f69b991250a9e2..0d19fcbc9738fed6192b9b90a9efd8e1c1232047 100644 (file)
@@ -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")