Tizen 2.1 base
[platform/upstream/hplip.git] / ui / align10form_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'align10form_base.ui'
4 #
5 # Created: Wed Aug 10 21:07:52 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 from qt import *
12
13
14 class Align10Form_Base(QDialog):
15     def __init__(self,parent = None,name = None,modal = 0,fl = 0):
16         QDialog.__init__(self,parent,name,modal,fl)
17
18         if not name:
19             self.setName("Align10Form_base")
20
21
22         Align10Form_baseLayout = QGridLayout(self,1,1,11,6,"Align10Form_baseLayout")
23
24         self.textLabel2 = QLabel(self,"textLabel2")
25
26         Align10Form_baseLayout.addMultiCellWidget(self.textLabel2,0,0,0,2)
27
28         layout2 = QGridLayout(None,1,1,0,6,"layout2")
29
30         self.comboBoxF = QComboBox(0,self,"comboBoxF")
31
32         layout2.addWidget(self.comboBoxF,5,1)
33
34         self.textLabel1_2 = QLabel(self,"textLabel1_2")
35
36         layout2.addWidget(self.textLabel1_2,1,0)
37
38         self.textLabel1_6 = QLabel(self,"textLabel1_6")
39
40         layout2.addWidget(self.textLabel1_6,5,0)
41
42         self.comboBoxD = QComboBox(0,self,"comboBoxD")
43
44         layout2.addWidget(self.comboBoxD,3,1)
45
46         self.comboBoxE = QComboBox(0,self,"comboBoxE")
47
48         layout2.addWidget(self.comboBoxE,4,1)
49
50         self.textLabel1_3 = QLabel(self,"textLabel1_3")
51
52         layout2.addWidget(self.textLabel1_3,2,0)
53
54         self.textLabel1_4 = QLabel(self,"textLabel1_4")
55
56         layout2.addWidget(self.textLabel1_4,3,0)
57
58         self.comboBoxC = QComboBox(0,self,"comboBoxC")
59
60         layout2.addWidget(self.comboBoxC,2,1)
61
62         self.comboBoxA = QComboBox(0,self,"comboBoxA")
63
64         layout2.addWidget(self.comboBoxA,0,1)
65
66         self.comboBoxH = QComboBox(0,self,"comboBoxH")
67
68         layout2.addWidget(self.comboBoxH,7,1)
69
70         self.textLabel1_7 = QLabel(self,"textLabel1_7")
71
72         layout2.addWidget(self.textLabel1_7,6,0)
73
74         self.textLabel1 = QLabel(self,"textLabel1")
75
76         layout2.addWidget(self.textLabel1,0,0)
77
78         self.textLabel1_5 = QLabel(self,"textLabel1_5")
79
80         layout2.addWidget(self.textLabel1_5,4,0)
81
82         self.textLabel1_8 = QLabel(self,"textLabel1_8")
83
84         layout2.addWidget(self.textLabel1_8,7,0)
85
86         self.comboBoxB = QComboBox(0,self,"comboBoxB")
87
88         layout2.addWidget(self.comboBoxB,1,1)
89
90         self.comboBoxG = QComboBox(0,self,"comboBoxG")
91
92         layout2.addWidget(self.comboBoxG,6,1)
93
94         Align10Form_baseLayout.addMultiCellLayout(layout2,0,1,4,5)
95         spacer2 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
96         Align10Form_baseLayout.addItem(spacer2,0,3)
97         spacer3 = QSpacerItem(20,41,QSizePolicy.Minimum,QSizePolicy.Expanding)
98         Align10Form_baseLayout.addItem(spacer3,2,5)
99
100         self.pushButton1 = QPushButton(self,"pushButton1")
101
102         Align10Form_baseLayout.addWidget(self.pushButton1,3,5)
103
104         self.pushButton2 = QPushButton(self,"pushButton2")
105
106         Align10Form_baseLayout.addMultiCellWidget(self.pushButton2,3,3,3,4)
107         spacer1 = QSpacerItem(320,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
108         Align10Form_baseLayout.addMultiCell(spacer1,3,3,0,2)
109         spacer5 = QSpacerItem(40,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
110         Align10Form_baseLayout.addItem(spacer5,1,0)
111
112         self.Icon = QLabel(self,"Icon")
113         self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
114         self.Icon.setMinimumSize(QSize(192,93))
115         self.Icon.setMaximumSize(QSize(192,93))
116         self.Icon.setScaledContents(1)
117
118         Align10Form_baseLayout.addWidget(self.Icon,1,1)
119         spacer4 = QSpacerItem(60,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
120         Align10Form_baseLayout.addMultiCell(spacer4,1,1,2,3)
121
122         self.languageChange()
123
124         self.resize(QSize(520,326).expandedTo(self.minimumSizeHint()))
125         self.clearWState(Qt.WState_Polished)
126
127         self.connect(self.pushButton1,SIGNAL("clicked()"),self.accept)
128         self.connect(self.pushButton2,SIGNAL("clicked()"),self.reject)
129
130
131     def languageChange(self):
132         self.setCaption(self.__tr("HP Device Manager - Alignment"))
133         self.textLabel2.setText(self.__tr("Examine the page that was printed. Several rows of boxes, each made up of thin lines, appear on the printed page.<p>\n"
134 "For each row, select the label representing the box in which the shorter inner lines are the most aligned with the longer outer lines.."))
135         self.textLabel1_2.setText(self.__tr("<b><font face=\"Courier\">B:</font></b>"))
136         self.textLabel1_6.setText(self.__tr("<b><font face=\"Courier\">F:</font></b>"))
137         self.textLabel1_3.setText(self.__tr("<b><font face=\"Courier\">C:</font></b>"))
138         self.textLabel1_4.setText(self.__tr("<b><font face=\"Courier\">D:</font></b>"))
139         self.textLabel1_7.setText(self.__tr("<b><font face=\"Courier\">G:</font></b>"))
140         self.textLabel1.setText(self.__tr("<b><font face=\"Courier\">A:</font></b>"))
141         self.textLabel1_5.setText(self.__tr("<b><font face=\"Courier\">E:</font></b>"))
142         self.textLabel1_8.setText(self.__tr("<b><font face=\"Courier\">H:</font></b>"))
143         self.pushButton1.setText(self.__tr("Next >"))
144         self.pushButton2.setText(self.__tr("Cancel"))
145
146
147     def __tr(self,s,c = None):
148         return qApp.translate("Align10Form_Base",s,c)