Tizen 2.1 base
[platform/upstream/hplip.git] / ui / coloradjform_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/coloradjform_base.ui'
4 #
5 # Created: Wed Jul 13 09:36:13 2005
6 #      by: The PyQt User Interface Compiler (pyuic) 3.14.1
7 #
8 # WARNING! All changes made in this file will be lost!
9
10
11 import sys
12 from qt import *
13
14
15 class ColorAdjForm_base(QDialog):
16     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17         QDialog.__init__(self,parent,name,modal,fl)
18
19         if not name:
20             self.setName("ColorAdjForm_base")
21
22
23         ColorAdjForm_baseLayout = QGridLayout(self,1,1,11,6,"ColorAdjForm_baseLayout")
24
25         self.CancelButton = QPushButton(self,"CancelButton")
26
27         ColorAdjForm_baseLayout.addWidget(self.CancelButton,1,2)
28
29         self.ContinueButton = QPushButton(self,"ContinueButton")
30
31         ColorAdjForm_baseLayout.addWidget(self.ContinueButton,1,3)
32         spacer1 = QSpacerItem(270,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
33         ColorAdjForm_baseLayout.addItem(spacer1,1,1)
34
35         self.buttonGroup = QButtonGroup(self,"buttonGroup")
36         self.buttonGroup.setColumnLayout(0,Qt.Vertical)
37         self.buttonGroup.layout().setSpacing(6)
38         self.buttonGroup.layout().setMargin(11)
39         buttonGroupLayout = QGridLayout(self.buttonGroup.layout())
40         buttonGroupLayout.setAlignment(Qt.AlignTop)
41
42         self.Icon = QLabel(self.buttonGroup,"Icon")
43         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
44         self.Icon.setScaledContents(1)
45
46         buttonGroupLayout.addWidget(self.Icon,0,0)
47
48         self.textLabel2_2 = QLabel(self.buttonGroup,"textLabel2_2")
49         self.textLabel2_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
50
51         buttonGroupLayout.addMultiCellWidget(self.textLabel2_2,0,0,1,2)
52
53         layout2 = QHBoxLayout(None,0,6,"layout2")
54
55         self.radioButton1 = QRadioButton(self.buttonGroup,"radioButton1")
56         radioButton1_font = QFont(self.radioButton1.font())
57         radioButton1_font.setPointSize(8)
58         self.radioButton1.setFont(radioButton1_font)
59         layout2.addWidget(self.radioButton1)
60
61         self.radioButton2 = QRadioButton(self.buttonGroup,"radioButton2")
62         radioButton2_font = QFont(self.radioButton2.font())
63         radioButton2_font.setPointSize(8)
64         self.radioButton2.setFont(radioButton2_font)
65         layout2.addWidget(self.radioButton2)
66
67         self.radioButton3 = QRadioButton(self.buttonGroup,"radioButton3")
68         radioButton3_font = QFont(self.radioButton3.font())
69         radioButton3_font.setPointSize(8)
70         self.radioButton3.setFont(radioButton3_font)
71         layout2.addWidget(self.radioButton3)
72
73         self.radioButton4 = QRadioButton(self.buttonGroup,"radioButton4")
74         radioButton4_font = QFont(self.radioButton4.font())
75         radioButton4_font.setPointSize(8)
76         self.radioButton4.setFont(radioButton4_font)
77         layout2.addWidget(self.radioButton4)
78
79         self.radioButton5 = QRadioButton(self.buttonGroup,"radioButton5")
80         radioButton5_font = QFont(self.radioButton5.font())
81         radioButton5_font.setPointSize(8)
82         self.radioButton5.setFont(radioButton5_font)
83         layout2.addWidget(self.radioButton5)
84
85         self.radioButton6 = QRadioButton(self.buttonGroup,"radioButton6")
86         radioButton6_font = QFont(self.radioButton6.font())
87         radioButton6_font.setPointSize(8)
88         self.radioButton6.setFont(radioButton6_font)
89         layout2.addWidget(self.radioButton6)
90
91         self.radioButton7 = QRadioButton(self.buttonGroup,"radioButton7")
92         radioButton7_font = QFont(self.radioButton7.font())
93         radioButton7_font.setPointSize(8)
94         self.radioButton7.setFont(radioButton7_font)
95         layout2.addWidget(self.radioButton7)
96
97         self.radioButton8 = QRadioButton(self.buttonGroup,"radioButton8")
98         radioButton8_font = QFont(self.radioButton8.font())
99         radioButton8_font.setPointSize(8)
100         self.radioButton8.setFont(radioButton8_font)
101         layout2.addWidget(self.radioButton8)
102
103         self.radioButton9 = QRadioButton(self.buttonGroup,"radioButton9")
104         radioButton9_font = QFont(self.radioButton9.font())
105         radioButton9_font.setPointSize(8)
106         self.radioButton9.setFont(radioButton9_font)
107         layout2.addWidget(self.radioButton9)
108
109         self.radioButton10 = QRadioButton(self.buttonGroup,"radioButton10")
110         radioButton10_font = QFont(self.radioButton10.font())
111         radioButton10_font.setPointSize(8)
112         self.radioButton10.setFont(radioButton10_font)
113         layout2.addWidget(self.radioButton10)
114
115         self.radioButton11 = QRadioButton(self.buttonGroup,"radioButton11")
116         radioButton11_font = QFont(self.radioButton11.font())
117         radioButton11_font.setPointSize(8)
118         self.radioButton11.setFont(radioButton11_font)
119         self.radioButton11.setChecked(1)
120         layout2.addWidget(self.radioButton11)
121
122         self.radioButton12 = QRadioButton(self.buttonGroup,"radioButton12")
123         radioButton12_font = QFont(self.radioButton12.font())
124         radioButton12_font.setPointSize(8)
125         self.radioButton12.setFont(radioButton12_font)
126         layout2.addWidget(self.radioButton12)
127
128         self.radioButton13 = QRadioButton(self.buttonGroup,"radioButton13")
129         radioButton13_font = QFont(self.radioButton13.font())
130         radioButton13_font.setPointSize(8)
131         self.radioButton13.setFont(radioButton13_font)
132         layout2.addWidget(self.radioButton13)
133
134         self.radioButton14 = QRadioButton(self.buttonGroup,"radioButton14")
135         radioButton14_font = QFont(self.radioButton14.font())
136         radioButton14_font.setPointSize(8)
137         self.radioButton14.setFont(radioButton14_font)
138         layout2.addWidget(self.radioButton14)
139
140         self.radioButton15 = QRadioButton(self.buttonGroup,"radioButton15")
141         radioButton15_font = QFont(self.radioButton15.font())
142         radioButton15_font.setPointSize(8)
143         self.radioButton15.setFont(radioButton15_font)
144         layout2.addWidget(self.radioButton15)
145
146         self.radioButton16 = QRadioButton(self.buttonGroup,"radioButton16")
147         radioButton16_font = QFont(self.radioButton16.font())
148         radioButton16_font.setPointSize(8)
149         self.radioButton16.setFont(radioButton16_font)
150         layout2.addWidget(self.radioButton16)
151
152         self.radioButton17 = QRadioButton(self.buttonGroup,"radioButton17")
153         radioButton17_font = QFont(self.radioButton17.font())
154         radioButton17_font.setPointSize(8)
155         self.radioButton17.setFont(radioButton17_font)
156         layout2.addWidget(self.radioButton17)
157
158         self.radioButton18 = QRadioButton(self.buttonGroup,"radioButton18")
159         radioButton18_font = QFont(self.radioButton18.font())
160         radioButton18_font.setPointSize(8)
161         self.radioButton18.setFont(radioButton18_font)
162         layout2.addWidget(self.radioButton18)
163
164         self.radioButton19 = QRadioButton(self.buttonGroup,"radioButton19")
165         radioButton19_font = QFont(self.radioButton19.font())
166         radioButton19_font.setPointSize(8)
167         self.radioButton19.setFont(radioButton19_font)
168         layout2.addWidget(self.radioButton19)
169
170         self.radioButton20 = QRadioButton(self.buttonGroup,"radioButton20")
171         radioButton20_font = QFont(self.radioButton20.font())
172         radioButton20_font.setPointSize(8)
173         self.radioButton20.setFont(radioButton20_font)
174         layout2.addWidget(self.radioButton20)
175
176         self.radioButton21 = QRadioButton(self.buttonGroup,"radioButton21")
177         radioButton21_font = QFont(self.radioButton21.font())
178         radioButton21_font.setPointSize(8)
179         self.radioButton21.setFont(radioButton21_font)
180         layout2.addWidget(self.radioButton21)
181
182         buttonGroupLayout.addMultiCellLayout(layout2,1,1,1,2)
183         spacer2 = QSpacerItem(750,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
184         buttonGroupLayout.addItem(spacer2,2,2)
185
186         layout3 = QHBoxLayout(None,0,6,"layout3")
187
188         self.LineLabel_2 = QLabel(self.buttonGroup,"LineLabel_2")
189         LineLabel_2_font = QFont(self.LineLabel_2.font())
190         LineLabel_2_font.setFamily("Times New Roman")
191         self.LineLabel_2.setFont(LineLabel_2_font)
192         layout3.addWidget(self.LineLabel_2)
193
194         self.LineLabel = QLabel(self.buttonGroup,"LineLabel")
195         LineLabel_font = QFont(self.LineLabel.font())
196         LineLabel_font.setFamily("Times New Roman")
197         self.LineLabel.setFont(LineLabel_font)
198         layout3.addWidget(self.LineLabel)
199
200         buttonGroupLayout.addMultiCellLayout(layout3,2,2,0,1)
201
202         ColorAdjForm_baseLayout.addMultiCellWidget(self.buttonGroup,0,0,0,3)
203
204         self.languageChange()
205
206         self.resize(QSize(1013,164).expandedTo(self.minimumSizeHint()))
207         self.clearWState(Qt.WState_Polished)
208
209         self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
210         self.connect(self.ContinueButton,SIGNAL("clicked()"),self.accept)
211         self.connect(self.buttonGroup,SIGNAL("clicked(int)"),self.buttonGroup_clicked)
212
213
214     def languageChange(self):
215         self.setCaption(self.__tr("HP Device Manager - Color Adjustment"))
216         self.CancelButton.setText(self.__tr("Cancel"))
217         self.ContinueButton.setText(self.__tr("Next >"))
218         self.buttonGroup.setTitle(QString.null)
219         self.textLabel2_2.setText(self.__tr("Choose the numbered colored box that the color <b>best </b>matches the background color of the bar."))
220         self.radioButton1.setText(self.__tr("1"))
221         self.radioButton2.setText(self.__tr("2"))
222         self.radioButton3.setText(self.__tr("3"))
223         self.radioButton4.setText(self.__tr("4"))
224         self.radioButton5.setText(self.__tr("5"))
225         self.radioButton6.setText(self.__tr("6"))
226         self.radioButton7.setText(self.__tr("7"))
227         self.radioButton8.setText(self.__tr("8"))
228         self.radioButton9.setText(self.__tr("9"))
229         self.radioButton10.setText(self.__tr("10"))
230         self.radioButton11.setText(self.__tr("11"))
231         self.radioButton12.setText(self.__tr("12"))
232         self.radioButton13.setText(self.__tr("13"))
233         self.radioButton14.setText(self.__tr("14"))
234         self.radioButton15.setText(self.__tr("15"))
235         self.radioButton16.setText(self.__tr("16"))
236         self.radioButton17.setText(self.__tr("17"))
237         self.radioButton18.setText(self.__tr("18"))
238         self.radioButton19.setText(self.__tr("19"))
239         self.radioButton20.setText(self.__tr("20"))
240         self.radioButton21.setText(self.__tr("21"))
241         self.LineLabel_2.setText(self.__tr("<b><font size=\"+1\">Line</font></b>"))
242         self.LineLabel.setText(self.__tr("<b><font size=\"+1\">X</font></b>"))
243
244
245     def buttonGroup_clicked(self,a0):
246         print "ColorAdjForm_base.buttonGroup_clicked(int): Not implemented yet"
247
248     def __tr(self,s,c = None):
249         return qApp.translate("ColorAdjForm_base",s,c)
250
251 if __name__ == "__main__":
252     a = QApplication(sys.argv)
253     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
254     w = ColorAdjForm_base()
255     a.setMainWidget(w)
256     w.show()
257     a.exec_loop()