self.addColumn(self.trUtf8('Commande'))
self.addColumn(self.trUtf8('Concept/Valeur'))
- self.setMinimumSize(QSize(400,500))
+ #self.setMinimumSize(QSize(400,500))
self.connect(self,SIGNAL('contextMenuRequested(QListViewItem *, const QPoint &, int)'),
self.handleContextMenu)
import prefs
import qtCommun
-VERSION_EFICAS = "EFICAS v1.14"
+VERSION_EFICAS = "EFICAS v1.15"
# -------------------------- #
ex = ".comm"
fn.append(ex)
if QFileInfo(fn).exists():
- abort = QMessageBox.warning(self,
+ abort = QMessageBox.warning(
+ self,
self.trUtf8("Save File"),
- self.trUtf8("The file <b>%1</b> already exists.")
- .arg(fn),
+ self.trUtf8("The file <b>%1</b> already exists.").arg(fn),
self.trUtf8("&Overwrite"),
- self.trUtf8("&Abort"), None, 1)
+ self.trUtf8("&Abort") )
+ print abort
if abort:
return (0, None)
fn = unicode(QDir.convertSeparators(fn))
def detruitBouton(self):
mc = self.node.item.get_definition()
type = mc.type[0]
- print self.editor.salome
if not(('grma' in repr(type)) or ('grno' in repr(type))) or not(self.editor.salome) :
self.BSalome.close()
self.BView2D.close()
self.LBValeurs.setCurrentItem(index)
index=index+1
self.listeValeursCourantes=l1+listeRetour+l3
+ self.editor.modified=1
def BImportPressed(self):
init=QString( self.editor.CONFIGURATION.savedir)
def SeparateurSelect(self,numero):
monBouton=self.BGSeparateur.find(numero)
self.separateur=self.dictSepar[str(monBouton.text())]
- print self.separateur
def BImportSelPressed(self):
text=str(self.TBtext.selectedText())
def Traitement(self):
import string
- print "kkkkkkkkkkkkkkkkkkkkk"
if self.textTraite[-1]=="\n" : self.textTraite=self.textTraite[0:-1]
self.textTraite=string.replace(self.textTraite,"\n",self.separateur)
liste1=self.textTraite.split(self.separateur)
- print self.separateur
- print liste1
liste=[]
for val in liste1 :
val=str(val)
titre = "version "
monVisu=DVisu(parent=self.viewmanager,fl=Qt.WType_Dialog)
monVisu.setCaption(titre)
- monVisu.TB.setText("Eficas V1.14")
+ monVisu.TB.setText("Eficas V1.15")
monVisu.adjustSize()
monVisu.show()
valeurBrute=str(self.LEValeur.text())
else :
valeurBrute=valeurTraitee
- if valeurBrute == str("") : return 1, listeValeurs
+ if valeurBrute == str("") : return listeValeurs,1
try :
valeur=eval(valeurBrute,{})
except :
# Form implementation generated from reading ui file 'OptionsEditeur.ui'
#
-# Created: Wed Jul 9 10:12:47 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'OptionsPdf.ui'
#
-# Created: Wed Jul 9 10:12:47 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'aideQT.ui'
#
-# Created: Wed Jul 9 10:12:47 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desChoixCata.ui'
#
-# Created: Wed Jul 16 16:27:33 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desCommande.ui'
#
-# Created: Tue Sep 23 10:19:58 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desCommentaire.ui'
#
-# Created: Wed Jul 23 12:00:45 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desError.ui'
#
-# Created: Wed Jul 9 10:11:20 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desFormule.ui'
#
-# Created: Wed Jul 23 11:43:53 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desInactif.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desInclude.ui'
#
-# Created: Tue Oct 7 16:59:34 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desListeParam.ui'
#
-# Created: Fri Jul 18 16:24:34 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desMCFact.ui'
#
-# Created: Fri Jul 18 16:24:34 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desMCListAjout.ui'
#
-# Created: Wed Jul 9 10:11:21 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desParam.ui'
#
-# Created: Wed Sep 10 11:20:17 2008
+# Created: Tue Nov 18 17:37:24 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desPlusieursBase.ui'
#
-# Created: Fri Jul 18 16:24:35 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desPlusieursInto.ui'
#
-# Created: Fri Sep 26 11:16:49 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desPoursuite.ui'
#
-# Created: Fri Oct 10 11:42:29 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desRacine.ui'
#
-# Created: Tue Sep 23 10:19:58 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desSelectVal.ui'
#
-# Created: Fri Sep 26 17:59:06 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueASSD.ui'
#
-# Created: Fri Jul 18 16:24:35 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueBase.ui'
#
-# Created: Thu Jul 24 10:46:31 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueComp.ui'
#
-# Created: Wed Jul 9 10:31:14 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueInto.ui'
#
-# Created: Fri Jul 18 16:24:35 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueSDCO.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desUniqueSDCOInto.ui'
#
-# Created: Fri Jul 18 16:24:35 2008
+# Created: Tue Nov 18 17:37:25 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desViewTexte.ui'
#
-# Created: Tue Sep 9 18:09:46 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'desVisu.ui'
#
-# Created: Wed Jul 9 10:11:22 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
# Form implementation generated from reading ui file 'myMain.ui'
#
-# Created: Wed Sep 10 09:57:04 2008
+# Created: Tue Nov 18 17:37:26 2008
# by: PyQt4 UI code generator 4.4.2
#
# WARNING! All changes made in this file will be lost!
self.actionFermer.setObjectName("actionFermer")
self.actionFermer_tout = QtGui.QAction(Eficas)
self.actionFermer_tout.setObjectName("actionFermer_tout")
- self.actionCopier = QtGui.QAction(Eficas)
- self.actionCopier.setObjectName("actionCopier")
self.actionCouper = QtGui.QAction(Eficas)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icons/Cut24.gif"),QtGui.QIcon.Normal,QtGui.QIcon.Off)
self.actionCouper.setIcon(icon)
self.actionCouper.setObjectName("actionCouper")
- self.actionColler = QtGui.QAction(Eficas)
- self.actionColler.setObjectName("actionColler")
- self.actionCopier1 = QtGui.QAction(Eficas)
+ self.actionCopier = QtGui.QAction(Eficas)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icons/Copy24.gif"),QtGui.QIcon.Normal,QtGui.QIcon.Off)
- self.actionCopier1.setIcon(icon)
- self.actionCopier1.setObjectName("actionCopier1")
- self.actionColler1 = QtGui.QAction(Eficas)
+ self.actionCopier.setIcon(icon)
+ self.actionCopier.setObjectName("actionCopier")
+ self.actionColler = QtGui.QAction(Eficas)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap("icons/Paste24.gif"),QtGui.QIcon.Normal,QtGui.QIcon.Off)
- self.actionColler1.setIcon(icon)
- self.actionColler1.setObjectName("actionColler1")
+ self.actionColler.setIcon(icon)
+ self.actionColler.setObjectName("actionColler")
self.actionQuitter = QtGui.QAction(Eficas)
self.actionQuitter.setObjectName("actionQuitter")
self.actionRapport_de_Validation = QtGui.QAction(Eficas)
self.action_Ouvrir.setText(QtGui.QApplication.translate("Eficas", "&Ouvrir", None, QtGui.QApplication.UnicodeUTF8))
self.action_Ouvrir.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+O", None, QtGui.QApplication.UnicodeUTF8))
self.actionEnregistrer.setText(QtGui.QApplication.translate("Eficas", "Enregistrer", None, QtGui.QApplication.UnicodeUTF8))
- self.actionEnregistrer.setShortcut(QtGui.QApplication.translate("Eficas", "Shift+E", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionEnregistrer.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+E", None, QtGui.QApplication.UnicodeUTF8))
self.actionEnregistrer_sous.setText(QtGui.QApplication.translate("Eficas", "Enregistrer sous", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionEnregistrer_sous.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+Shift+E", None, QtGui.QApplication.UnicodeUTF8))
self.actionFermer.setText(QtGui.QApplication.translate("Eficas", "Fermer ", None, QtGui.QApplication.UnicodeUTF8))
self.actionFermer.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+W", None, QtGui.QApplication.UnicodeUTF8))
self.actionFermer_tout.setText(QtGui.QApplication.translate("Eficas", "Fermer tout", None, QtGui.QApplication.UnicodeUTF8))
- self.actionCopier.setText(QtGui.QApplication.translate("Eficas", "Copier", None, QtGui.QApplication.UnicodeUTF8))
self.actionCouper.setText(QtGui.QApplication.translate("Eficas", "Couper", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionCouper.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+X", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionCopier.setText(QtGui.QApplication.translate("Eficas", "Copier", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionCopier.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+C", None, QtGui.QApplication.UnicodeUTF8))
self.actionColler.setText(QtGui.QApplication.translate("Eficas", "Coller", None, QtGui.QApplication.UnicodeUTF8))
- self.actionCopier1.setText(QtGui.QApplication.translate("Eficas", "Copier", None, QtGui.QApplication.UnicodeUTF8))
- self.actionColler1.setText(QtGui.QApplication.translate("Eficas", "Coller", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionColler.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+V", None, QtGui.QApplication.UnicodeUTF8))
self.actionQuitter.setText(QtGui.QApplication.translate("Eficas", "Quitter", None, QtGui.QApplication.UnicodeUTF8))
+ self.actionQuitter.setShortcut(QtGui.QApplication.translate("Eficas", "Ctrl+Q", None, QtGui.QApplication.UnicodeUTF8))
self.actionRapport_de_Validation.setText(QtGui.QApplication.translate("Eficas", "Rapport de Validation", None, QtGui.QApplication.UnicodeUTF8))
self.actionFichier_Source.setText(QtGui.QApplication.translate("Eficas", "Fichier Source", None, QtGui.QApplication.UnicodeUTF8))
self.actionFichier_Resultat.setText(QtGui.QApplication.translate("Eficas", "Fichier Résultat", None, QtGui.QApplication.UnicodeUTF8))
<string>Enregistrer</string>
</property>
<property name="shortcut" >
- <string>Shift+E</string>
+ <string>Ctrl+E</string>
</property>
</action>
<action name="actionEnregistrer_sous" >
<property name="text" >
<string>Enregistrer sous</string>
</property>
+ <property name="shortcut" >
+ <string>Ctrl+Shift+E</string>
+ </property>
</action>
<action name="actionFermer" >
<property name="text" >
<string>Fermer tout</string>
</property>
</action>
- <action name="actionCopier" >
- <property name="text" >
- <string>Copier</string>
- </property>
- </action>
<action name="actionCouper" >
<property name="icon" >
<iconset>
<property name="text" >
<string>Couper</string>
</property>
- </action>
- <action name="actionColler" >
- <property name="text" >
- <string>Coller</string>
+ <property name="shortcut" >
+ <string>Ctrl+X</string>
</property>
</action>
<action name="actionCopier" >
<property name="text" >
<string>Copier</string>
</property>
+ <property name="shortcut" >
+ <string>Ctrl+C</string>
+ </property>
</action>
<action name="actionColler" >
<property name="icon" >
<property name="text" >
<string>Coller</string>
</property>
+ <property name="shortcut" >
+ <string>Ctrl+V</string>
+ </property>
</action>
<action name="actionQuitter" >
<property name="text" >
<string>Quitter</string>
</property>
+ <property name="shortcut" >
+ <string>Ctrl+Q</string>
+ </property>
</action>
<action name="actionRapport_de_Validation" >
<property name="text" >