1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'desFormule.ui'
5 # Created: ven mai 16 13:30:38 2008
6 # by: The PyQt User Interface Compiler (pyuic) 3.13
8 # WARNING! All changes made in this file will be lost!
14 class DFormule(QWidget):
15 def __init__(self,parent = None,name = None,fl = 0):
16 QWidget.__init__(self,parent,name,fl)
19 self.setName("DFormule")
21 self.setMinimumSize(QSize(505,0))
23 DFormuleLayout = QGridLayout(self,1,1,11,6,"DFormuleLayout")
25 layout4 = QHBoxLayout(None,0,6,"layout4")
27 self.bSup = QPushButton(self,"bSup")
28 self.bSup.setMinimumSize(QSize(0,30))
29 self.bSup.setAutoDefault(1)
30 layout4.addWidget(self.bSup)
32 self.bOk = QPushButton(self,"bOk")
33 self.bOk.setMinimumSize(QSize(0,30))
34 self.bOk.setAutoDefault(1)
35 self.bOk.setDefault(1)
36 layout4.addWidget(self.bOk)
38 self.bHelp = QPushButton(self,"bHelp")
39 self.bHelp.setMinimumSize(QSize(0,30))
40 self.bHelp.setAutoDefault(1)
41 layout4.addWidget(self.bHelp)
43 DFormuleLayout.addLayout(layout4,2,0)
45 self.Commentaire = QLabel(self,"Commentaire")
47 DFormuleLayout.addWidget(self.Commentaire,1,0)
49 self.TWChoix = QTabWidget(self,"TWChoix")
51 self.Formule = QWidget(self.TWChoix,"Formule")
52 FormuleLayout = QGridLayout(self.Formule,1,1,11,6,"FormuleLayout")
54 self.textLabel1 = QLabel(self.Formule,"textLabel1")
55 self.textLabel1.setMinimumSize(QSize(0,0))
57 FormuleLayout.addWidget(self.textLabel1,0,0)
59 self.textLabel1_3 = QLabel(self.Formule,"textLabel1_3")
61 FormuleLayout.addMultiCellWidget(self.textLabel1_3,6,6,0,1)
63 layout6 = QHBoxLayout(None,0,6,"layout6")
65 self.LENomFormule = QLineEdit(self.Formule,"LENomFormule")
66 self.LENomFormule.setMinimumSize(QSize(0,40))
67 layout6.addWidget(self.LENomFormule)
69 layout4_2 = QHBoxLayout(None,0,6,"layout4_2")
71 self.textLabel1_6 = QLabel(self.Formule,"textLabel1_6")
72 layout4_2.addWidget(self.textLabel1_6)
74 self.LENomsArgs = QLineEdit(self.Formule,"LENomsArgs")
75 self.LENomsArgs.setMinimumSize(QSize(230,40))
76 layout4_2.addWidget(self.LENomsArgs)
78 self.textLabel1_6_2 = QLabel(self.Formule,"textLabel1_6_2")
79 layout4_2.addWidget(self.textLabel1_6_2)
80 layout6.addLayout(layout4_2)
82 FormuleLayout.addMultiCellLayout(layout6,2,2,0,1)
84 self.textLabel2 = QLabel(self.Formule,"textLabel2")
86 FormuleLayout.addWidget(self.textLabel2,1,1)
88 self.textLabel1_3_2 = QLabel(self.Formule,"textLabel1_3_2")
90 FormuleLayout.addMultiCellWidget(self.textLabel1_3_2,7,7,0,1)
92 self.textLabel2_2 = QLabel(self.Formule,"textLabel2_2")
94 FormuleLayout.addMultiCellWidget(self.textLabel2_2,3,3,0,1)
96 self.textLabel1_5 = QLabel(self.Formule,"textLabel1_5")
97 self.textLabel1_5.setMinimumSize(QSize(0,0))
99 FormuleLayout.addMultiCellWidget(self.textLabel1_5,4,4,0,1)
101 self.LECorpsFormule = QLineEdit(self.Formule,"LECorpsFormule")
102 self.LECorpsFormule.setMinimumSize(QSize(0,30))
104 FormuleLayout.addMultiCellWidget(self.LECorpsFormule,5,5,0,1)
106 self.textLabel1_2 = QLabel(self.Formule,"textLabel1_2")
108 FormuleLayout.addWidget(self.textLabel1_2,0,1)
109 self.TWChoix.insertTab(self.Formule,QString(""))
111 self.Commande = QWidget(self.TWChoix,"Commande")
112 CommandeLayout = QGridLayout(self.Commande,1,1,11,6,"CommandeLayout")
114 self.textLabel4 = QLabel(self.Commande,"textLabel4")
116 CommandeLayout.addMultiCellWidget(self.textLabel4,3,3,0,3)
118 self.buttonGroup1 = QButtonGroup(self.Commande,"buttonGroup1")
120 LayoutWidget = QWidget(self.buttonGroup1,"layout1")
121 LayoutWidget.setGeometry(QRect(20,20,113,48))
122 layout1 = QVBoxLayout(LayoutWidget,11,6,"layout1")
124 self.RBalpha = QRadioButton(LayoutWidget,"RBalpha")
125 self.RBalpha.setChecked(1)
126 layout1.addWidget(self.RBalpha)
128 self.RBGroupe = QRadioButton(LayoutWidget,"RBGroupe")
129 layout1.addWidget(self.RBGroupe)
131 CommandeLayout.addMultiCellWidget(self.buttonGroup1,0,1,3,3)
133 self.LBNouvCommande = QListBox(self.Commande,"LBNouvCommande")
135 CommandeLayout.addMultiCellWidget(self.LBNouvCommande,2,2,0,3)
137 self.textLabel1_4 = QLabel(self.Commande,"textLabel1_4")
139 CommandeLayout.addMultiCellWidget(self.textLabel1_4,0,0,0,2)
141 self.textLabel6 = QLabel(self.Commande,"textLabel6")
142 self.textLabel6.setMinimumSize(QSize(40,0))
144 CommandeLayout.addWidget(self.textLabel6,1,0)
146 self.LEFiltre = QLineEdit(self.Commande,"LEFiltre")
147 self.LEFiltre.setMinimumSize(QSize(160,40))
149 CommandeLayout.addWidget(self.LEFiltre,1,1)
151 self.BNext = QToolButton(self.Commande,"BNext")
152 self.BNext.setMinimumSize(QSize(60,40))
153 self.BNext.setIconSet(QIconSet())
155 CommandeLayout.addWidget(self.BNext,1,2)
156 self.TWChoix.insertTab(self.Commande,QString(""))
158 DFormuleLayout.addWidget(self.TWChoix,0,0)
160 self.languageChange()
162 self.resize(QSize(529,493).expandedTo(self.minimumSizeHint()))
163 self.clearWState(Qt.WState_Polished)
165 self.connect(self.LBNouvCommande,SIGNAL("doubleClicked(QListBoxItem*)"),self.LBNouvCommandeClicked)
166 self.connect(self.LEFiltre,SIGNAL("textChanged(const QString&)"),self.LEFiltreTextChanged)
167 self.connect(self.LEFiltre,SIGNAL("returnPressed()"),self.LEfiltreReturnPressed)
168 self.connect(self.bSup,SIGNAL("pressed()"),self.BSupPressed)
169 self.connect(self.bOk,SIGNAL("clicked()"),self.BOkPressed)
170 self.connect(self.RBalpha,SIGNAL("clicked()"),self.BuildTabCommand)
171 self.connect(self.RBGroupe,SIGNAL("clicked()"),self.BuildTabCommand)
172 self.connect(self.BNext,SIGNAL("clicked()"),self.BNextPressed)
173 self.connect(self.LENomFormule,SIGNAL("returnPressed()"),self.NomFormuleSaisi)
174 self.connect(self.LENomsArgs,SIGNAL("returnPressed()"),self.argsSaisis)
175 self.connect(self.LECorpsFormule,SIGNAL("returnPressed()"),self.FormuleSaisie)
176 self.connect(self.bHelp,SIGNAL("clicked()"),self.ViewDoc)
178 self.setTabOrder(self.LEFiltre,self.LENomFormule)
179 self.setTabOrder(self.LENomFormule,self.LENomsArgs)
180 self.setTabOrder(self.LENomsArgs,self.LECorpsFormule)
181 self.setTabOrder(self.LECorpsFormule,self.bSup)
182 self.setTabOrder(self.bSup,self.bOk)
183 self.setTabOrder(self.bOk,self.bHelp)
184 self.setTabOrder(self.bHelp,self.TWChoix)
185 self.setTabOrder(self.TWChoix,self.RBalpha)
186 self.setTabOrder(self.RBalpha,self.RBGroupe)
187 self.setTabOrder(self.RBGroupe,self.LBNouvCommande)
190 def languageChange(self):
191 self.setCaption(self.__tr("DMacro"))
192 self.bSup.setText(self.__tr("&Supprimer"))
193 self.bSup.setAccel(self.__tr("Alt+S"))
194 QToolTip.add(self.bSup,self.__tr("suppression du mot clef"))
195 self.bOk.setText(self.__tr("&Valider"))
196 self.bOk.setAccel(self.__tr("Shift+A, Alt+A, Alt+A, Alt+A"))
197 QToolTip.add(self.bOk,self.__tr("validation de la saisie"))
198 self.bHelp.setText(self.__tr("&Documentation"))
199 self.bHelp.setAccel(self.__tr("Alt+D"))
200 QToolTip.add(self.bHelp,self.__tr("affichage documentation aster"))
201 self.Commentaire.setText(QString.null)
202 self.textLabel1.setText(self.__tr("<h3><p align=\"center\"><u><b>Nom de la formule</b></u></p></h3>"))
203 self.textLabel1_3.setText(self.__trUtf8("\x52\x65\x74\x6f\x75\x72\x2d\x43\x68\x61\x72\x69\x6f\x74\x20\x70\x65\x72\x6d\x65\x74\x20\x64\x65\x20\x76\xc3\xa9\x72\x69\x66\x69\x65\x72\x20\x71\x75\x65\x20\x6c\x27\x65\x78\x70\x72\x65\x73\x73\x69\x6f\x6e\x20\x65\x73\x74\x20\x76\x61\x6c\x69\x64\x65\x2e"))
204 self.textLabel1_6.setText(self.__tr("<h1><b>(</b></h1>"))
205 self.textLabel1_6_2.setText(self.__tr("<h1><b>)</b></h1>"))
206 self.textLabel2.setText(self.__trUtf8("\x76\x61\x72\x69\x61\x62\x6c\x65\x73\x20\x73\xc3\xa9\x70\x61\x72\xc3\xa9\x65\x73\x20\x70\x61\x72\x20\x64\x65\x73\x20\x22\x2c\x22\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x70\x61\x72\x20\x65\x78\x2e\x20\x3a\x20\x78\x2c\x79\x2c\x7a"))
207 self.textLabel1_3_2.setText(self.__trUtf8("\x43\x65\x20\x6e\x27\x65\x73\x74\x20\x71\x75\x27\x61\x70\x72\xc3\xa8\x73\x20\x61\x76\x6f\x69\x72\x20\x61\x70\x70\x75\x79\xc3\xa9\x20\x73\x75\x72\x20\x6c\x65\x20\x62\x6f\x75\x74\x6f\x6e\x20\x56\x61\x6c\x69\x64\x65\x72\x20\x71\x75\x65\x20\x6c\x65\x73\x20\x6e\x6f\x75\x76\x65\x6c\x6c\x65\x73\x0a\x76\x61\x6c\x65\x75\x72\x73\x20\x73\x65\x72\x6f\x6e\x74\x20\x65\x66\x66\x65\x63\x74\x69\x76\x65\x6d\x65\x6e\x74\x20\x70\x72\x69\x73\x65\x73\x20\x65\x6e\x20\x63\x6f\x6d\x70\x74\x65"))
208 self.textLabel2_2.setText(self.__tr("<font size=\"+4\" face=\"Helvetica\"><b>=</b></font>"))
209 self.textLabel1_5.setText(self.__tr("<h3><p align=\"center\"><u><b>Expression</b></u></p></h3>"))
210 self.textLabel1_2.setText(self.__tr("<h3><p align=\"center\"><u><b>Arguments</b></u></p></h3>"))
211 self.TWChoix.changeTab(self.Formule,self.__trUtf8("\x44\xc3\xa9\x66\x69\x6e\x69\x74\x69\x6f\x6e\x20\x46\x6f\x72\x6d\x75\x6c\x65"))
212 self.textLabel4.setText(self.__trUtf8("\x3c\x70\x20\x61\x6c\x69\x67\x6e\x3d\x22\x6c\x65\x66\x74\x22\x3e\x4c\x61\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x65\x20\x63\x68\x6f\x69\x73\x69\x65\x20\x73\x65\x72\x61\x20\x61\x6a\x6f\x75\x74\xc3\xa9\x65\x20\x41\x50\x52\x45\x53\x20\x6c\x61\x20\x63\x6f\x6d\x6d\x61\x6e\x64\x65\x20\x63\x6f\x75\x72\x61\x6e\x74\x65\x3c\x2f\x70\x3e"))
213 self.buttonGroup1.setTitle(self.__tr("Affichage"))
214 self.RBalpha.setText(self.__trUtf8("\x61\x6c\x70\x68\x61\x62\xc3\xa9\x74\x69\x71\x75\x65"))
215 self.RBGroupe.setText(self.__tr("par groupe"))
216 self.textLabel1_4.setText(self.__tr("<b><u>Commandes :</u></b>"))
217 self.textLabel6.setText(self.__tr("Filtre"))
218 self.BNext.setText(self.__tr("Suivant"))
219 QToolTip.add(self.BNext,self.__tr("affiche la prochaine occurence"))
220 self.TWChoix.changeTab(self.Commande,self.__tr("Nouvelle Commande"))
223 def LBNouvCommandeClicked(self):
224 print "DFormule.LBNouvCommandeClicked(): Not implemented yet"
226 def LEFiltreTextChanged(self):
227 print "DFormule.LEFiltreTextChanged(): Not implemented yet"
229 def LEfiltreReturnPressed(self):
230 print "DFormule.LEfiltreReturnPressed(): Not implemented yet"
232 def BSupPressed(self):
233 print "DFormule.BSupPressed(): Not implemented yet"
235 def BOkPressed(self):
236 print "DFormule.BOkPressed(): Not implemented yet"
238 def BuildTabCommand(self):
239 print "DFormule.BuildTabCommand(): Not implemented yet"
241 def BNextPressed(self):
242 print "DFormule.BNextPressed(): Not implemented yet"
244 def NomFormuleSaisi(self):
245 print "DFormule.NomFormuleSaisi(): Not implemented yet"
247 def argsSaisis(self):
248 print "DFormule.argsSaisis(): Not implemented yet"
250 def FormuleSaisie(self):
251 print "DFormule.FormuleSaisie(): Not implemented yet"
254 print "DFormule.ViewDoc(): Not implemented yet"
256 def __tr(self,s,c = None):
257 return qApp.translate("DFormule",s,c)
259 def __trUtf8(self,s,c = None):
260 return qApp.translate("DFormule",s,c,QApplication.UnicodeUTF8)