Tizen 2.1 base
[platform/upstream/hplip.git] / ui / colorcalform_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/colorcalform_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 ColorCalForm_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("ColorCalForm_base")
21
22
23         ColorCalForm_baseLayout = QGridLayout(self,1,1,11,6,"ColorCalForm_baseLayout")
24
25         self.ContinueButton = QPushButton(self,"ContinueButton")
26
27         ColorCalForm_baseLayout.addWidget(self.ContinueButton,1,3)
28         spacer1 = QSpacerItem(335,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
29         ColorCalForm_baseLayout.addItem(spacer1,1,1)
30
31         self.CancelButton = QPushButton(self,"CancelButton")
32
33         ColorCalForm_baseLayout.addWidget(self.CancelButton,1,2)
34
35         self.ColorCalGroup = QButtonGroup(self,"ColorCalGroup")
36         self.ColorCalGroup.setColumnLayout(0,Qt.Vertical)
37         self.ColorCalGroup.layout().setSpacing(6)
38         self.ColorCalGroup.layout().setMargin(11)
39         ColorCalGroupLayout = QGridLayout(self.ColorCalGroup.layout())
40         ColorCalGroupLayout.setAlignment(Qt.AlignTop)
41
42         layout2 = QHBoxLayout(None,0,6,"layout2")
43
44         self.radioButton12 = QRadioButton(self.ColorCalGroup,"radioButton12")
45         layout2.addWidget(self.radioButton12)
46
47         self.radioButton13 = QRadioButton(self.ColorCalGroup,"radioButton13")
48         layout2.addWidget(self.radioButton13)
49
50         self.radioButton14 = QRadioButton(self.ColorCalGroup,"radioButton14")
51         layout2.addWidget(self.radioButton14)
52
53         self.radioButton15 = QRadioButton(self.ColorCalGroup,"radioButton15")
54         self.radioButton15.setChecked(1)
55         layout2.addWidget(self.radioButton15)
56
57         self.radioButton16 = QRadioButton(self.ColorCalGroup,"radioButton16")
58         layout2.addWidget(self.radioButton16)
59
60         self.radioButton17 = QRadioButton(self.ColorCalGroup,"radioButton17")
61         layout2.addWidget(self.radioButton17)
62
63         self.radioButton18 = QRadioButton(self.ColorCalGroup,"radioButton18")
64         layout2.addWidget(self.radioButton18)
65
66         ColorCalGroupLayout.addLayout(layout2,1,0)
67
68         self.textLabel2_2 = QLabel(self.ColorCalGroup,"textLabel2_2")
69         self.textLabel2_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
70
71         ColorCalGroupLayout.addWidget(self.textLabel2_2,0,0)
72
73         ColorCalForm_baseLayout.addMultiCellWidget(self.ColorCalGroup,0,0,0,3)
74
75         self.languageChange()
76
77         self.resize(QSize(610,220).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.ColorCalGroup,SIGNAL("clicked(int)"),self.ColorCalGroup_clicked)
83
84
85     def languageChange(self):
86         self.setCaption(self.__tr("HP Device Manager - Color Calibration"))
87         self.ContinueButton.setText(self.__tr("Next >"))
88         self.CancelButton.setText(self.__tr("Cancel"))
89         self.ColorCalGroup.setTitle(self.__tr("Color Calibration"))
90         self.radioButton12.setText(self.__tr("1"))
91         self.radioButton13.setText(self.__tr("2"))
92         self.radioButton14.setText(self.__tr("3"))
93         self.radioButton15.setText(self.__tr("4"))
94         self.radioButton16.setText(self.__tr("5"))
95         self.radioButton17.setText(self.__tr("6"))
96         self.radioButton18.setText(self.__tr("7"))
97         self.textLabel2_2.setText(self.__tr("Choose the numbered image labeled \"1\" thru \"7\" that is <b>best color matched</b> to the image labeled \"X\"."))
98
99
100     def buttonGroup2_clicked(self,a0):
101         print "ColorCalForm_base.buttonGroup2_clicked(int): Not implemented yet"
102
103     def ColorCalGroup_released(self,a0):
104         print "ColorCalForm_base.ColorCalGroup_released(int): Not implemented yet"
105
106     def ColorCalGroup_clicked(self,a0):
107         print "ColorCalForm_base.ColorCalGroup_clicked(int): Not implemented yet"
108
109     def __tr(self,s,c = None):
110         return qApp.translate("ColorCalForm_base",s,c)
111
112 if __name__ == "__main__":
113     a = QApplication(sys.argv)
114     QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
115     w = ColorCalForm_base()
116     a.setMainWidget(w)
117     w.show()
118     a.exec_loop()