1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'desCommande.ui'
5 # Created: Fri Apr 24 13:21:13 2009
6 # by: PyQt4 UI code generator 4.4.3
8 # WARNING! All changes made in this file will be lost!
10 from PyQt4 import QtCore, QtGui
12 class Ui_DComm(object):
13 def setupUi(self, DComm):
14 DComm.setObjectName("DComm")
15 DComm.resize(792, 770)
16 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
17 sizePolicy.setHorizontalStretch(0)
18 sizePolicy.setVerticalStretch(0)
19 sizePolicy.setHeightForWidth(DComm.sizePolicy().hasHeightForWidth())
20 DComm.setSizePolicy(sizePolicy)
21 DComm.setMinimumSize(QtCore.QSize(505, 0))
22 self.gridLayout_3 = QtGui.QGridLayout(DComm)
23 self.gridLayout_3.setObjectName("gridLayout_3")
24 self.Commentaire = QtGui.QLabel(DComm)
25 self.Commentaire.setMaximumSize(QtCore.QSize(793, 20))
26 self.Commentaire.setFrameShape(QtGui.QFrame.NoFrame)
27 self.Commentaire.setFrameShadow(QtGui.QFrame.Plain)
28 self.Commentaire.setWordWrap(False)
29 self.Commentaire.setObjectName("Commentaire")
30 self.gridLayout_3.addWidget(self.Commentaire, 1, 0, 1, 1)
31 self.horizontalLayout = QtGui.QHBoxLayout()
32 self.horizontalLayout.setObjectName("horizontalLayout")
33 spacerItem = QtGui.QSpacerItem(263, 27, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
34 self.horizontalLayout.addItem(spacerItem)
35 self.bOk = QtGui.QPushButton(DComm)
36 sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Fixed, QtGui.QSizePolicy.Fixed)
37 sizePolicy.setHorizontalStretch(0)
38 sizePolicy.setVerticalStretch(0)
39 sizePolicy.setHeightForWidth(self.bOk.sizePolicy().hasHeightForWidth())
40 self.bOk.setSizePolicy(sizePolicy)
41 self.bOk.setMinimumSize(QtCore.QSize(160, 30))
42 self.bOk.setMaximumSize(QtCore.QSize(16777215, 30))
43 self.bOk.setAutoDefault(True)
44 self.bOk.setDefault(True)
45 self.bOk.setObjectName("bOk")
46 self.horizontalLayout.addWidget(self.bOk)
47 spacerItem1 = QtGui.QSpacerItem(254, 27, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
48 self.horizontalLayout.addItem(spacerItem1)
49 self.gridLayout_3.addLayout(self.horizontalLayout, 2, 0, 1, 1)
50 self.TWChoix = QtGui.QTabWidget(DComm)
51 self.TWChoix.setObjectName("TWChoix")
52 self.MotClef = QtGui.QWidget()
53 self.MotClef.setObjectName("MotClef")
54 self.gridLayout_6 = QtGui.QGridLayout(self.MotClef)
55 self.gridLayout_6.setObjectName("gridLayout_6")
56 self.gridLayout_5 = QtGui.QGridLayout()
57 self.gridLayout_5.setObjectName("gridLayout_5")
58 self.textLabel1 = QtGui.QLabel(self.MotClef)
59 self.textLabel1.setMinimumSize(QtCore.QSize(0, 0))
60 self.textLabel1.setWordWrap(False)
61 self.textLabel1.setObjectName("textLabel1")
62 self.gridLayout_5.addWidget(self.textLabel1, 0, 0, 1, 1)
63 self.textLabel1_2 = QtGui.QLabel(self.MotClef)
64 self.textLabel1_2.setWordWrap(False)
65 self.textLabel1_2.setObjectName("textLabel1_2")
66 self.gridLayout_5.addWidget(self.textLabel1_2, 0, 1, 1, 1)
67 self.LBMCPermis = QtGui.QListWidget(self.MotClef)
68 self.LBMCPermis.setObjectName("LBMCPermis")
69 self.gridLayout_5.addWidget(self.LBMCPermis, 1, 0, 1, 1)
70 self.LBRegles = QtGui.QListWidget(self.MotClef)
71 self.LBRegles.setObjectName("LBRegles")
72 self.gridLayout_5.addWidget(self.LBRegles, 1, 1, 1, 1)
73 self.gridLayout_6.addLayout(self.gridLayout_5, 0, 0, 1, 1)
74 self.TWChoix.addTab(self.MotClef, "")
75 self.Concept = QtGui.QWidget()
76 self.Concept.setObjectName("Concept")
77 self.gridLayout_9 = QtGui.QGridLayout(self.Concept)
78 self.gridLayout_9.setObjectName("gridLayout_9")
79 self.groupBox1 = QtGui.QGroupBox(self.Concept)
80 self.groupBox1.setObjectName("groupBox1")
81 self.gridLayout_8 = QtGui.QGridLayout(self.groupBox1)
82 self.gridLayout_8.setObjectName("gridLayout_8")
83 self.splitter = QtGui.QSplitter(self.groupBox1)
84 self.splitter.setOrientation(QtCore.Qt.Horizontal)
85 self.splitter.setObjectName("splitter")
86 self.textLabel1_3 = QtGui.QLabel(self.splitter)
87 self.textLabel1_3.setWordWrap(False)
88 self.textLabel1_3.setObjectName("textLabel1_3")
89 self.gridLayout_8.addWidget(self.splitter, 0, 0, 1, 1)
90 self.horizontalLayout_2 = QtGui.QHBoxLayout()
91 self.horizontalLayout_2.setObjectName("horizontalLayout_2")
92 self.LENomConcept = QtGui.QLineEdit(self.groupBox1)
93 self.LENomConcept.setMinimumSize(QtCore.QSize(360, 40))
94 self.LENomConcept.setObjectName("LENomConcept")
95 self.horizontalLayout_2.addWidget(self.LENomConcept)
96 spacerItem2 = QtGui.QSpacerItem(356, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
97 self.horizontalLayout_2.addItem(spacerItem2)
98 self.gridLayout_8.addLayout(self.horizontalLayout_2, 1, 0, 1, 1)
99 spacerItem3 = QtGui.QSpacerItem(20, 51, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
100 self.gridLayout_8.addItem(spacerItem3, 2, 0, 1, 1)
101 self.verticalLayout = QtGui.QVBoxLayout()
102 self.verticalLayout.setObjectName("verticalLayout")
103 self.gridLayout_7 = QtGui.QGridLayout()
104 self.gridLayout_7.setObjectName("gridLayout_7")
105 self.textLabel1_3_2 = QtGui.QLabel(self.groupBox1)
106 self.textLabel1_3_2.setWordWrap(False)
107 self.textLabel1_3_2.setObjectName("textLabel1_3_2")
108 self.gridLayout_7.addWidget(self.textLabel1_3_2, 0, 0, 1, 1)
109 self.textLabel3 = QtGui.QLabel(self.groupBox1)
110 self.textLabel3.setWordWrap(False)
111 self.textLabel3.setObjectName("textLabel3")
112 self.gridLayout_7.addWidget(self.textLabel3, 1, 0, 1, 1)
113 self.typeConcept = QtGui.QLabel(self.groupBox1)
114 self.typeConcept.setWordWrap(False)
115 self.typeConcept.setObjectName("typeConcept")
116 self.gridLayout_7.addWidget(self.typeConcept, 1, 1, 1, 1)
117 self.verticalLayout.addLayout(self.gridLayout_7)
118 spacerItem4 = QtGui.QSpacerItem(20, 338, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
119 self.verticalLayout.addItem(spacerItem4)
120 self.gridLayout_8.addLayout(self.verticalLayout, 3, 0, 1, 1)
121 self.gridLayout_9.addWidget(self.groupBox1, 0, 0, 1, 1)
122 self.TWChoix.addTab(self.Concept, "")
123 self.Commande = QtGui.QWidget()
124 self.Commande.setObjectName("Commande")
125 self.gridLayout_4 = QtGui.QGridLayout(self.Commande)
126 self.gridLayout_4.setObjectName("gridLayout_4")
127 self.gridLayout_2 = QtGui.QGridLayout()
128 self.gridLayout_2.setObjectName("gridLayout_2")
129 self.textLabel1_4 = QtGui.QLabel(self.Commande)
130 self.textLabel1_4.setWordWrap(False)
131 self.textLabel1_4.setObjectName("textLabel1_4")
132 self.gridLayout_2.addWidget(self.textLabel1_4, 0, 0, 1, 2)
133 self.groupBox = QtGui.QGroupBox(self.Commande)
134 self.groupBox.setMinimumSize(QtCore.QSize(171, 71))
135 self.groupBox.setObjectName("groupBox")
136 self.gridLayout = QtGui.QGridLayout(self.groupBox)
137 self.gridLayout.setObjectName("gridLayout")
138 self.RBalpha = QtGui.QRadioButton(self.groupBox)
139 self.RBalpha.setMinimumSize(QtCore.QSize(149, 16))
140 self.RBalpha.setMaximumSize(QtCore.QSize(149, 16))
141 self.RBalpha.setChecked(True)
142 self.RBalpha.setObjectName("RBalpha")
143 self.gridLayout.addWidget(self.RBalpha, 0, 0, 1, 1)
144 self.RBGroupe = QtGui.QRadioButton(self.groupBox)
145 self.RBGroupe.setObjectName("RBGroupe")
146 self.gridLayout.addWidget(self.RBGroupe, 1, 0, 1, 1)
147 self.gridLayout_2.addWidget(self.groupBox, 0, 4, 2, 1)
148 self.textLabel6 = QtGui.QLabel(self.Commande)
149 self.textLabel6.setMinimumSize(QtCore.QSize(91, 30))
150 self.textLabel6.setWordWrap(False)
151 self.textLabel6.setObjectName("textLabel6")
152 self.gridLayout_2.addWidget(self.textLabel6, 1, 0, 1, 1)
153 self.LEFiltre = QtGui.QLineEdit(self.Commande)
154 self.LEFiltre.setMinimumSize(QtCore.QSize(231, 30))
155 self.LEFiltre.setObjectName("LEFiltre")
156 self.gridLayout_2.addWidget(self.LEFiltre, 1, 1, 1, 1)
157 self.BNext = QtGui.QPushButton(self.Commande)
158 self.BNext.setMinimumSize(QtCore.QSize(90, 30))
159 self.BNext.setObjectName("BNext")
160 self.gridLayout_2.addWidget(self.BNext, 1, 2, 1, 1)
161 spacerItem5 = QtGui.QSpacerItem(108, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
162 self.gridLayout_2.addItem(spacerItem5, 1, 3, 1, 1)
163 self.gridLayout_4.addLayout(self.gridLayout_2, 0, 0, 1, 1)
164 self.LBNouvCommande = QtGui.QListWidget(self.Commande)
165 self.LBNouvCommande.setObjectName("LBNouvCommande")
166 self.gridLayout_4.addWidget(self.LBNouvCommande, 1, 0, 1, 1)
167 self.textLabel4 = QtGui.QLabel(self.Commande)
168 self.textLabel4.setMaximumSize(QtCore.QSize(721, 20))
169 self.textLabel4.setWordWrap(False)
170 self.textLabel4.setObjectName("textLabel4")
171 self.gridLayout_4.addWidget(self.textLabel4, 2, 0, 1, 1)
172 self.TWChoix.addTab(self.Commande, "")
173 self.gridLayout_3.addWidget(self.TWChoix, 0, 0, 1, 1)
175 self.retranslateUi(DComm)
176 self.TWChoix.setCurrentIndex(0)
177 QtCore.QMetaObject.connectSlotsByName(DComm)
178 DComm.setTabOrder(self.TWChoix, self.LBNouvCommande)
179 DComm.setTabOrder(self.LBNouvCommande, self.bOk)
181 def retranslateUi(self, DComm):
182 DComm.setWindowTitle(QtGui.QApplication.translate("DComm", "DComm", None, QtGui.QApplication.UnicodeUTF8))
183 self.bOk.setToolTip(QtGui.QApplication.translate("DComm", "validation de la saisie", None, QtGui.QApplication.UnicodeUTF8))
184 self.bOk.setText(QtGui.QApplication.translate("DComm", "&Valider", None, QtGui.QApplication.UnicodeUTF8))
185 self.bOk.setShortcut(QtGui.QApplication.translate("DComm", "Shift+A, Alt+A, Alt+A, Alt+A", None, QtGui.QApplication.UnicodeUTF8))
186 self.textLabel1.setText(QtGui.QApplication.translate("DComm", "<h3><p align=\"center\"><u><b>Mots Clefs Permis</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
187 self.textLabel1_2.setText(QtGui.QApplication.translate("DComm", "<h3><p align=\"center\"><u><b>Règles</b></u></p></h3>", None, QtGui.QApplication.UnicodeUTF8))
188 self.TWChoix.setTabText(self.TWChoix.indexOf(self.MotClef), QtGui.QApplication.translate("DComm", "Ajouter Mot-Clef", None, QtGui.QApplication.UnicodeUTF8))
189 self.groupBox1.setTitle(QtGui.QApplication.translate("DComm", "Concept", None, QtGui.QApplication.UnicodeUTF8))
190 self.textLabel1_3.setText(QtGui.QApplication.translate("DComm", "<u>Nom du concept :</u>", None, QtGui.QApplication.UnicodeUTF8))
191 self.textLabel1_3_2.setText(QtGui.QApplication.translate("DComm", "<u>Type du concept :</u>", None, QtGui.QApplication.UnicodeUTF8))
192 self.textLabel3.setText(QtGui.QApplication.translate("DComm", "L\'opérateur retourne un concept de type :", None, QtGui.QApplication.UnicodeUTF8))
193 self.typeConcept.setText(QtGui.QApplication.translate("DComm", "TypeDuConcept", None, QtGui.QApplication.UnicodeUTF8))
194 self.TWChoix.setTabText(self.TWChoix.indexOf(self.Concept), QtGui.QApplication.translate("DComm", "Nommer Concept", None, QtGui.QApplication.UnicodeUTF8))
195 self.textLabel1_4.setText(QtGui.QApplication.translate("DComm", "<b><u>Commandes :</u></b>", None, QtGui.QApplication.UnicodeUTF8))
196 self.groupBox.setTitle(QtGui.QApplication.translate("DComm", "Affichage", None, QtGui.QApplication.UnicodeUTF8))
197 self.RBalpha.setText(QtGui.QApplication.translate("DComm", "alphabétique", None, QtGui.QApplication.UnicodeUTF8))
198 self.RBGroupe.setText(QtGui.QApplication.translate("DComm", "par groupe", None, QtGui.QApplication.UnicodeUTF8))
199 self.textLabel6.setText(QtGui.QApplication.translate("DComm", "Filtre", None, QtGui.QApplication.UnicodeUTF8))
200 self.BNext.setText(QtGui.QApplication.translate("DComm", "Suivant", None, QtGui.QApplication.UnicodeUTF8))
201 self.textLabel4.setText(QtGui.QApplication.translate("DComm", "La commande choisie sera ajoutée APRES la commande courante", None, QtGui.QApplication.UnicodeUTF8))
202 self.TWChoix.setTabText(self.TWChoix.indexOf(self.Commande), QtGui.QApplication.translate("DComm", "Nouvelle Commande", None, QtGui.QApplication.UnicodeUTF8))
205 if __name__ == "__main__":
207 app = QtGui.QApplication(sys.argv)
208 DComm = QtGui.QWidget()
212 sys.exit(app.exec_())