Tizen 2.1 base
[platform/upstream/hplip.git] / ui / colorcalform2_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/colorcalform2_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 ColorCalForm2_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("ColorCalForm2_base")
21
22
23         ColorCalForm2_baseLayout = QGridLayout(self,1,1,11,6,"ColorCalForm2_baseLayout")
24
25         self.CancelButton = QPushButton(self,"CancelButton")
26
27         ColorCalForm2_baseLayout.addWidget(self.CancelButton,1,2)
28
29         self.ContinueButton = QPushButton(self,"ContinueButton")
30
31         ColorCalForm2_baseLayout.addWidget(self.ContinueButton,1,3)
32         spacer1 = QSpacerItem(270,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
33         ColorCalForm2_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,4)
52
53         layout3 = QHBoxLayout(None,0,6,"layout3")
54
55         self.textLabel1 = QLabel(self.buttonGroup,"textLabel1")
56         layout3.addWidget(self.textLabel1)
57
58         self.SpinBox = QSpinBox(self.buttonGroup,"SpinBox")
59         self.SpinBox.setMaxValue(81)
60         self.SpinBox.setMinValue(1)
61         layout3.addWidget(self.SpinBox)
62
63         buttonGroupLayout.addMultiCellLayout(layout3,2,2,2,3)
64         spacer3 = QSpacerItem(351,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
65         buttonGroupLayout.addItem(spacer3,2,4)
66         spacer4 = QSpacerItem(251,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
67         buttonGroupLayout.addMultiCell(spacer4,2,2,0,1)
68         spacer5 = QSpacerItem(20,21,QSizePolicy.Minimum,QSizePolicy.Expanding)
69         buttonGroupLayout.addItem(spacer5,1,2)
70         spacer6 = QSpacerItem(20,61,QSizePolicy.Minimum,QSizePolicy.Expanding)
71         buttonGroupLayout.addItem(spacer6,3,3)
72
73         ColorCalForm2_baseLayout.addMultiCellWidget(self.buttonGroup,0,0,0,3)
74
75         self.languageChange()
76
77         self.resize(QSize(952,327).expandedTo(self.minimumSizeHint()))
78         self.clearWState(Qt.WState_Polished)
79
80         self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
81         self.connect(self.ContinueButton,SIGNAL("clicked()"),self.accept)
82         self.connect(self.SpinBox,SIGNAL("valueChanged(int)"),self.SpinBox_valueChanged)
83
84
85     def languageChange(self):
86         self.setCaption(self.__tr("HP Device Manager - Color Calibration"))
87         self.CancelButton.setText(self.__tr("Cancel"))
88         self.ContinueButton.setText(self.__tr("Next >"))
89         self.buttonGroup.setTitle(QString.null)
90         self.textLabel2_2.setText(self.__tr("<b>A page of color patches is printing. When it is complete, follow these steps:</b>\n"
91 "<p><b>1.</b> Hold the page approximately 8 inches (~20cm) in front of your eyes.\n"
92 "<p><b>2.</b> Slowly move the page away from you until the numbered patches fade to match the background.\n"
93 "<p><b>3.</b> Select the number (below) between <i>1</i> and <i>81 </i>of the numbered patch that <b>best </b>matches the background:"))
94         self.textLabel1.setText(self.__tr("Number of best matching patch (1-81):"))
95
96
97     def buttonGroup_clicked(self,a0):
98         print "ColorCalForm2_base.buttonGroup_clicked(int): Not implemented yet"
99
100     def SpinBox_valueChanged(self,a0):
101         print "ColorCalForm2_base.SpinBox_valueChanged(int): Not implemented yet"
102
103     def __tr(self,s,c = None):
104         return qApp.translate("ColorCalForm2_base",s,c)
105
106 if __name__ == "__main__":
107     a = QApplication(sys.argv)
108     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
109     w = ColorCalForm2_base()
110     a.setMainWidget(w)
111     w.show()
112     a.exec_loop()