- self.actionEnregistrer_Python = QAction(self)
- self.actionEnregistrer_Python.setObjectName("actionEnregistrer_Python")
- self.menuFichier.addAction(self.actionEnregistrer_Python)
- self.actionEnregistrer_Python.setText(QApplication.translate("Eficas", "Sauve Python", None,QApplication.UnicodeUTF8))
- self.connect(self.actionEnregistrer_Python,SIGNAL("activated()"),self.saveRun)
-
- self.actionEnregistrerYACS = QAction(self)
- self.actionEnregistrerYACS.setObjectName("actionEnregistrerYACS")
- self.menuFichier.addAction(self.actionEnregistrerYACS)
- self.actionEnregistrerYACS.setText(QApplication.translate("Eficas", "Sauve Schema YACS", None,QApplication.UnicodeUTF8))
- self.connect(self.actionEnregistrerYACS,SIGNAL("activated()"),self.saveYACS)
-
- self.actionExecutionYACS = QAction(self)
- icon7 = QIcon(self.RepIcon+"/application.gif")
- self.actionExecutionYACS.setIcon(icon7)
- self.actionExecutionYACS.setObjectName("actionExecutionYACS")
- self.menuJdC.addAction(self.actionExecutionYACS)
- self.toolBar.addAction(self.actionExecutionYACS)
- self.actionExecutionYACS.setText(QApplication.translate("Eficas", "Execution YACS", None, QApplication.UnicodeUTF8))
- self.connect(self.actionExecutionYACS,SIGNAL("activated()"),self.runYACS)
+ def ajoutSauveExecution(self):
+ self.actionSaveRun = QAction(self)
+ icon7 = QIcon(self.repIcon+"/export_MAP.png")
+ self.actionSaveRun.setIcon(icon7)
+ self.actionSaveRun.setObjectName("actionSaveRun")
+ self.menuExecution.addAction(self.actionSaveRun)
+ if not(self.actionSaveRun in self.toolBar.actions()):
+ self.toolBar.addAction(self.actionSaveRun)
+ self.actionSaveRun.setText(QApplication.translate("Eficas", "Save Run", None, QApplication.UnicodeUTF8))
+ self.connect(self.actionSaveRun,SIGNAL("activated()"),self.saveRun)
+
+ def griserActionsStructures(self):
+ self.actionCouper.setEnabled(False)
+ self.actionColler.setEnabled(False)
+ self.actionCopier.setEnabled(False)
+ self.actionSupprimer.setEnabled(False)
+
+ def enleverNewInclude(self):
+ self.actionNouvel_Include.setVisible(False)
+
+ def enleverRechercherDsCatalogue(self):
+ self.actionRechercherDsCatalogue.setVisible(False)
+
+ def ZCRACKS(self):
+ self.enleverNewInclude()
+ self.toolBar.addSeparator()
+ self.ajoutExecution()
+
+ self.menuOptions = self.menubar.addMenu("menuOptions")
+ self.menuOptions.addAction(self.actionParametres_Eficas)
+ self.menuOptions.setTitle(tr("Options"))
+
+ def ADAO(self):
+ self.griserActionsStructures()
+ self.enleverNewInclude()
+ self.enleverRechercherDsCatalogue()
+
+ def ASTER(self) :
+ self.menuTraduction = self.menubar.addMenu("menuTraduction")
+ self.menuTraduction.addAction(self.actionTraduitV11V12)
+ self.menuTraduction.addAction(self.actionTraduitV10V11)
+ self.menuTraduction.addAction(self.actionTraduitV9V10)
+ self.menuTraduction.setTitle(tr("Traduction"))
+
+ self.menuFichier.addAction(self.actionSauveLigne)
+
+ self.menuOptions = self.menubar.addMenu("menuOptions")
+ self.menuOptions.addAction(self.actionParametres_Eficas)
+ self.menuOptions.addAction(self.actionLecteur_Pdf)
+ self.menuOptions.setTitle(tr("Options"))
+
+ def CARMEL3D(self):
+ #if self.salome == 0 : return
+ self.enleverNewInclude()
+ self.menuMesh = self.menubar.addMenu("menuMesh")
+ self.menuMesh.setObjectName("Mesh")
+ self.menuMesh.addAction(self.actionChercheGrpMaille)
+ self.griserActionsStructures()
+
+ def CARMELCND(self):
+ self.enleverNewInclude()
+ self.enleverRechercherDsCatalogue()
+ self.ajoutExecution()
+ self.ajoutSauveExecution()
+ self.griserActionsStructures()
+
+ def MAP(self):
+ self.enleverNewInclude()
+ self.toolBar.addSeparator()
+ self.ajoutExecution()
+ self.ajoutSauveExecution()
+ self.menuOptions = self.menubar.addMenu("menuOptions")
+ self.menuOptions.addAction(self.actionParametres_Eficas)
+ self.menuOptions.setTitle(tr("Options"))
+
+
+ def ChercheGrpMesh(self):
+ Msg,listeGroup=self.ChercheGrpMeshInSalome()
+ if Msg == None :
+ self.viewmanager.handleAjoutGroup(listeGroup)
+ else :
+ print "il faut gerer les erreurs"
+
+ def ChercheGrpMaille(self):
+ Msg,listeGroup=self.ChercheGrpMailleInSalome()
+ if Msg == None :
+ self.viewmanager.handleAjoutGroup(listeGroup)
+ else :
+ print "il faut gerer les erreurs"
+
+ def ChercheGrp(self):
+ #Msg,listeGroup=self.ChercheGrpMailleInSalome()
+ #if Msg == None :
+ # self.viewmanager.handleAjoutGroup(listeGroup)
+ #else :
+ print "il faut gerer "
+