1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'desFormule.ui'
5 # Created: Tue Nov 18 17:37:24 2008
6 # by: PyQt4 UI code generator 4.4.2
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
12 class Ui_DFormule(object):
13 def setupUi(self, DFormule):
14 DFormule.setObjectName("DFormule")
15 DFormule.resize(529,493)
16 DFormule.setMinimumSize(QtCore.QSize(505,0))
17 self.gridlayout = QtGui.QGridLayout(DFormule)
18 self.gridlayout.setObjectName("gridlayout")
19 self.hboxlayout = QtGui.QHBoxLayout()
20 self.hboxlayout.setObjectName("hboxlayout")
21 self.bSup = QtGui.QPushButton(DFormule)
22 self.bSup.setMinimumSize(QtCore.QSize(0,30))
23 self.bSup.setAutoDefault(True)
24 self.bSup.setObjectName("bSup")
25 self.hboxlayout.addWidget(self.bSup)
26 self.bOk = QtGui.QPushButton(DFormule)
27 self.bOk.setMinimumSize(QtCore.QSize(0,30))
28 self.bOk.setAutoDefault(True)
29 self.bOk.setDefault(True)
30 self.bOk.setObjectName("bOk")
31 self.hboxlayout.addWidget(self.bOk)
32 self.bHelp = QtGui.QPushButton(DFormule)
33 self.bHelp.setMinimumSize(QtCore.QSize(0,30))
34 self.bHelp.setAutoDefault(True)
35 self.bHelp.setObjectName("bHelp")
36 self.hboxlayout.addWidget(self.bHelp)
37 self.gridlayout.addLayout(self.hboxlayout,2,0,1,1)
38 self.Commentaire = QtGui.QLabel(DFormule)
39 self.Commentaire.setWordWrap(False)
40 self.Commentaire.setObjectName("Commentaire")
41 self.gridlayout.addWidget(self.Commentaire,1,0,1,1)
42 self.TWChoix = QtGui.QTabWidget(DFormule)
43 self.TWChoix.setObjectName("TWChoix")
44 self.Formule = QtGui.QWidget()
45 self.Formule.setGeometry(QtCore.QRect(0,0,507,384))
46 self.Formule.setObjectName("Formule")
47 self.gridlayout1 = QtGui.QGridLayout(self.Formule)
48 self.gridlayout1.setObjectName("gridlayout1")
49 self.textLabel1 = QtGui.QLabel(self.Formule)
50 self.textLabel1.setMinimumSize(QtCore.QSize(0,0))
51 self.textLabel1.setWordWrap(False)
52 self.textLabel1.setObjectName("textLabel1")
53 self.gridlayout1.addWidget(self.textLabel1,0,0,1,1)
54 self.textLabel1_3 = QtGui.QLabel(self.Formule)
55 self.textLabel1_3.setWordWrap(False)
56 self.textLabel1_3.setObjectName("textLabel1_3")
57 self.gridlayout1.addWidget(self.textLabel1_3,6,0,1,2)
58 self.hboxlayout1 = QtGui.QHBoxLayout()
59 self.hboxlayout1.setObjectName("hboxlayout1")
60 self.LENomFormule = QtGui.QLineEdit(self.Formule)
61 self.LENomFormule.setMinimumSize(QtCore.QSize(0,40))
62 self.LENomFormule.setObjectName("LENomFormule")
63 self.hboxlayout1.addWidget(self.LENomFormule)
64 self.hboxlayout2 = QtGui.QHBoxLayout()
65 self.hboxlayout2.setObjectName("hboxlayout2")
66 self.textLabel1_6 = QtGui.QLabel(self.Formule)
67 self.textLabel1_6.setWordWrap(False)
68 self.textLabel1_6.setObjectName("textLabel1_6")
69 self.hboxlayout2.addWidget(self.textLabel1_6)
70 self.LENomsArgs = QtGui.QLineEdit(self.Formule)
71 self.LENomsArgs.setMinimumSize(QtCore.QSize(230,40))
72 self.LENomsArgs.setObjectName("LENomsArgs")
73 self.hboxlayout2.addWidget(self.LENomsArgs)
74 self.textLabel1_6_2 = QtGui.QLabel(self.Formule)
75 self.textLabel1_6_2.setWordWrap(False)
76 self.textLabel1_6_2.setObjectName("textLabel1_6_2")
77 self.hboxlayout2.addWidget(self.textLabel1_6_2)
78 self.hboxlayout1.addLayout(self.hboxlayout2)
79 self.gridlayout1.addLayout(self.hboxlayout1,2,0,1,2)
80 self.textLabel2 = QtGui.QLabel(self.Formule)
81 self.textLabel2.setWordWrap(False)
82 self.textLabel2.setObjectName("textLabel2")
83 self.gridlayout1.addWidget(self.textLabel2,1,1,1,1)
84 self.textLabel1_3_2 = QtGui.QLabel(self.Formule)
85 self.textLabel1_3_2.setWordWrap(False)
86 self.textLabel1_3_2.setObjectName("textLabel1_3_2")
87 self.gridlayout1.addWidget(self.textLabel1_3_2,7,0,1,2)
88 self.textLabel2_2 = QtGui.QLabel(self.Formule)
89 self.textLabel2_2.setWordWrap(False)
90 self.textLabel2_2.setObjectName("textLabel2_2")
91 self.gridlayout1.addWidget(self.textLabel2_2,3,0,1,2)
92 self.textLabel1_5 = QtGui.QLabel(self.Formule)
93 self.textLabel1_5.setMinimumSize(QtCore.QSize(0,0))
94 self.textLabel1_5.setWordWrap(False)
95 self.textLabel1_5.setObjectName("textLabel1_5")
96 self.gridlayout1.addWidget(self.textLabel1_5,4,0,1,2)
97 self.LECorpsFormule = QtGui.QLineEdit(self.Formule)
98 self.LECorpsFormule.setMinimumSize(QtCore.QSize(0,30))
99 self.LECorpsFormule.setObjectName("LECorpsFormule")
100 self.gridlayout1.addWidget(self.LECorpsFormule,5,0,1,2)
101 self.textLabel1_2 = QtGui.QLabel(self.Formule)
102 self.textLabel1_2.setWordWrap(False)
103 self.textLabel1_2.setObjectName("textLabel1_2")
104 self.gridlayout1.addWidget(self.textLabel1_2,0,1,1,1)
105 self.TWChoix.addTab(self.Formule,"")
106 self.Commande = QtGui.QWidget()
107 self.Commande.setGeometry(QtCore.QRect(0,0,507,384))
108 self.Commande.setObjectName("Commande")
109 self.gridLayout_2 = QtGui.QGridLayout(self.Commande)
110 self.gridLayout_2.setObjectName("gridLayout_2")
111 self.textLabel1_4 = QtGui.QLabel(self.Commande)
112 self.textLabel1_4.setWordWrap(False)
113 self.textLabel1_4.setObjectName("textLabel1_4")
114 self.gridLayout_2.addWidget(self.textLabel1_4,0,0,1,1)
115 self.groupBox = QtGui.QGroupBox(self.Commande)
116 self.groupBox.setObjectName("groupBox")
117 self.gridLayout = QtGui.QGridLayout(self.groupBox)
118 self.gridLayout.setObjectName("gridLayout")
119 self.RBalpha = QtGui.QRadioButton(self.groupBox)
120 self.RBalpha.setChecked(True)
121 self.RBalpha.setObjectName("RBalpha")
122 self.gridLayout.addWidget(self.RBalpha,0,0,1,1)
123 self.RBGroupe = QtGui.QRadioButton(self.groupBox)
124 self.RBGroupe.setObjectName("RBGroupe")
125 self.gridLayout.addWidget(self.RBGroupe,1,0,1,1)
126 self.gridLayout_2.addWidget(self.groupBox,0,1,2,1)
127 self.horizontalLayout = QtGui.QHBoxLayout()
128 self.horizontalLayout.setObjectName("horizontalLayout")
129 self.textLabel6 = QtGui.QLabel(self.Commande)
130 self.textLabel6.setMinimumSize(QtCore.QSize(50,30))
131 self.textLabel6.setWordWrap(False)
132 self.textLabel6.setObjectName("textLabel6")
133 self.horizontalLayout.addWidget(self.textLabel6)
134 self.LEFiltre = QtGui.QLineEdit(self.Commande)
135 self.LEFiltre.setMinimumSize(QtCore.QSize(160,30))
136 self.LEFiltre.setObjectName("LEFiltre")
137 self.horizontalLayout.addWidget(self.LEFiltre)
138 self.BNext = QtGui.QPushButton(self.Commande)
139 self.BNext.setObjectName("BNext")
140 self.horizontalLayout.addWidget(self.BNext)
141 self.gridLayout_2.addLayout(self.horizontalLayout,1,0,1,1)
142 self.LBNouvCommande = QtGui.QListWidget(self.Commande)
143 self.LBNouvCommande.setObjectName("LBNouvCommande")
144 self.gridLayout_2.addWidget(self.LBNouvCommande,2,0,1,2)
145 self.textLabel4 = QtGui.QLabel(self.Commande)
146 self.textLabel4.setWordWrap(False)
147 self.textLabel4.setObjectName("textLabel4")
148 self.gridLayout_2.addWidget(self.textLabel4,3,0,1,2)
149 self.TWChoix.addTab(self.Commande,"")
150 self.gridlayout.addWidget(self.TWChoix,0,0,1,1)
152 self.retranslateUi(DFormule)
153 self.TWChoix.setCurrentIndex(0)
154 QtCore.QMetaObject.connectSlotsByName(DFormule)
155 DFormule.setTabOrder(self.LEFiltre,self.LENomFormule)
156 DFormule.setTabOrder(self.LENomFormule,self.LENomsArgs)
157 DFormule.setTabOrder(self.LENomsArgs,self.LECorpsFormule)
158 DFormule.setTabOrder(self.LECorpsFormule,self.bSup)
159 DFormule.setTabOrder(self.bSup,self.bOk)
160 DFormule.setTabOrder(self.bOk,self.bHelp)
161 DFormule.setTabOrder(self.bHelp,self.TWChoix)
162 DFormule.setTabOrder(self.TWChoix,self.RBalpha)
163 DFormule.setTabOrder(self.RBalpha,self.RBGroupe)
164 DFormule.setTabOrder(self.RBGroupe,self.LBNouvCommande)
166 def retranslateUi(self, DFormule):
167 DFormule.setWindowTitle(QtGui.QApplication.translate("DFormule", "DMacro", None, QtGui.QApplication.UnicodeUTF8))
168 self.bSup.setToolTip(QtGui.QApplication.translate("DFormule", "suppression du mot clef", None, QtGui.QApplication.UnicodeUTF8))
169 self.bSup.setText(QtGui.QApplication.translate("DFormule", "&Supprimer", None, QtGui.QApplication.UnicodeUTF8))
170 self.bSup.setShortcut(QtGui.QApplication.translate("DFormule", "Alt+S", None, QtGui.QApplication.UnicodeUTF8))
171 self.bOk.setToolTip(QtGui.QApplication.translate("DFormule", "validation de la saisie", None, QtGui.QApplication.UnicodeUTF8))
172 self.bOk.setText(QtGui.QApplication.translate("DFormule", "&Valider", None, QtGui.QApplication.UnicodeUTF8))
173 self.bOk.setShortcut(QtGui.QApplication.translate("DFormule", "Shift+A, Alt+A, Alt+A, Alt+A", None, QtGui.QApplication.UnicodeUTF8))
174 self.bHelp.setToolTip(QtGui.QApplication.translate("DFormule", "affichage documentation aster", None, QtGui.QApplication.UnicodeUTF8))
175 self.bHelp.setText(QtGui.QApplication.translate("DFormule", "&Documentation", None, QtGui.QApplication.UnicodeUTF8))
176 self.bHelp.setShortcut(QtGui.QApplication.translate("DFormule", "Alt+D", None, QtGui.QApplication.UnicodeUTF8))
177 self.textLabel1.setText(QtGui.QApplication.translate("DFormule", "<h3><p align=\"center\"><u><b>Nom de la formule</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
178 self.textLabel1_3.setText(QtGui.QApplication.translate("DFormule", "Retour-Chariot permet de vérifier que l\'expression est valide.", None, QtGui.QApplication.UnicodeUTF8))
179 self.textLabel1_6.setText(QtGui.QApplication.translate("DFormule", "<h1><b>(</b></h1>", None, QtGui.QApplication.UnicodeUTF8))
180 self.textLabel1_6_2.setText(QtGui.QApplication.translate("DFormule", "<h1><b>)</b></h1>", None, QtGui.QApplication.UnicodeUTF8))
181 self.textLabel2.setText(QtGui.QApplication.translate("DFormule", "variables séparées par des \",\"\n"
182 " par ex. : x,y,z", None, QtGui.QApplication.UnicodeUTF8))
183 self.textLabel1_3_2.setText(QtGui.QApplication.translate("DFormule", "Ce n\'est qu\'après avoir appuyé sur le bouton Valider que les nouvelles\n"
184 "valeurs seront effectivement prises en compte", None, QtGui.QApplication.UnicodeUTF8))
185 self.textLabel2_2.setText(QtGui.QApplication.translate("DFormule", "<font size=\"+4\" face=\"Helvetica\"><b>=</b></font>", None, QtGui.QApplication.UnicodeUTF8))
186 self.textLabel1_5.setText(QtGui.QApplication.translate("DFormule", "<h3><p align=\"center\"><u><b>Expression</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
187 self.textLabel1_2.setText(QtGui.QApplication.translate("DFormule", "<h3><p align=\"center\"><u><b>Arguments</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
188 self.TWChoix.setTabText(self.TWChoix.indexOf(self.Formule), QtGui.QApplication.translate("DFormule", "Définition Formule", None, QtGui.QApplication.UnicodeUTF8))
189 self.textLabel1_4.setText(QtGui.QApplication.translate("DFormule", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
190 self.groupBox.setTitle(QtGui.QApplication.translate("DFormule", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
191 self.RBalpha.setText(QtGui.QApplication.translate("DFormule", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
192 self.RBGroupe.setText(QtGui.QApplication.translate("DFormule", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
193 self.textLabel6.setText(QtGui.QApplication.translate("DFormule", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
194 self.BNext.setText(QtGui.QApplication.translate("DFormule", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
195 self.textLabel4.setText(QtGui.QApplication.translate("DFormule", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
196 self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DFormule", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
199 if __name__ == "__main__":
201 app = QtGui.QApplication(sys.argv)
202 DFormule = QtGui.QWidget()
206 sys.exit(app.exec_())