1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file '/home/dwelch/linux-imaging-and-printing/src/ui/paperedgealignform_base.ui'
5 # Created: Wed Jul 13 09:36:14 2005
6 # by: The PyQt User Interface Compiler (pyuic) 3.14.1
8 # WARNING! All changes made in this file will be lost!
15 class PaperEdgeAlignForm_base(QDialog):
16 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
17 QDialog.__init__(self,parent,name,modal,fl)
20 self.setName("PaperEdgeAlignForm_base")
23 PaperEdgeAlignForm_baseLayout = QGridLayout(self,1,1,11,6,"PaperEdgeAlignForm_baseLayout")
24 spacer37 = QSpacerItem(80,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
25 PaperEdgeAlignForm_baseLayout.addItem(spacer37,1,1)
27 self.ContinueButton = QPushButton(self,"ContinueButton")
29 PaperEdgeAlignForm_baseLayout.addWidget(self.ContinueButton,1,3)
31 self.CancelButton = QPushButton(self,"CancelButton")
33 PaperEdgeAlignForm_baseLayout.addWidget(self.CancelButton,1,2)
35 self.buttonGroup = QButtonGroup(self,"buttonGroup")
36 self.buttonGroup.setSizePolicy(QSizePolicy(QSizePolicy.Minimum,QSizePolicy.Preferred,0,0,self.buttonGroup.sizePolicy().hasHeightForWidth()))
37 self.buttonGroup.setColumnLayout(0,Qt.Vertical)
38 self.buttonGroup.layout().setSpacing(6)
39 self.buttonGroup.layout().setMargin(11)
40 buttonGroupLayout = QGridLayout(self.buttonGroup.layout())
41 buttonGroupLayout.setAlignment(Qt.AlignTop)
43 layout24 = QHBoxLayout(None,0,6,"layout24")
45 self.radioButton1 = QRadioButton(self.buttonGroup,"radioButton1")
46 self.radioButton1.setChecked(1)
47 layout24.addWidget(self.radioButton1)
49 self.radioButton2 = QRadioButton(self.buttonGroup,"radioButton2")
50 layout24.addWidget(self.radioButton2)
52 self.radioButton3 = QRadioButton(self.buttonGroup,"radioButton3")
53 layout24.addWidget(self.radioButton3)
55 self.radioButton4 = QRadioButton(self.buttonGroup,"radioButton4")
56 layout24.addWidget(self.radioButton4)
58 self.radioButton5 = QRadioButton(self.buttonGroup,"radioButton5")
59 layout24.addWidget(self.radioButton5)
61 self.radioButton6 = QRadioButton(self.buttonGroup,"radioButton6")
62 layout24.addWidget(self.radioButton6)
64 self.radioButton7 = QRadioButton(self.buttonGroup,"radioButton7")
65 layout24.addWidget(self.radioButton7)
67 self.radioButton8 = QRadioButton(self.buttonGroup,"radioButton8")
68 layout24.addWidget(self.radioButton8)
70 self.radioButton9 = QRadioButton(self.buttonGroup,"radioButton9")
71 layout24.addWidget(self.radioButton9)
73 self.radioButton10 = QRadioButton(self.buttonGroup,"radioButton10")
74 layout24.addWidget(self.radioButton10)
76 self.radioButton11 = QRadioButton(self.buttonGroup,"radioButton11")
77 layout24.addWidget(self.radioButton11)
79 self.radioButton12 = QRadioButton(self.buttonGroup,"radioButton12")
80 layout24.addWidget(self.radioButton12)
82 self.radioButton13 = QRadioButton(self.buttonGroup,"radioButton13")
83 layout24.addWidget(self.radioButton13)
85 buttonGroupLayout.addMultiCellLayout(layout24,1,1,0,1)
87 self.Icon = QLabel(self.buttonGroup,"Icon")
88 self.Icon.setSizePolicy(QSizePolicy(QSizePolicy.Fixed,QSizePolicy.Fixed,0,0,self.Icon.sizePolicy().hasHeightForWidth()))
89 self.Icon.setScaledContents(1)
91 buttonGroupLayout.addWidget(self.Icon,0,0)
93 self.textLabel4_2 = QLabel(self.buttonGroup,"textLabel4_2")
94 self.textLabel4_2.setAlignment(QLabel.WordBreak | QLabel.AlignVCenter)
96 buttonGroupLayout.addWidget(self.textLabel4_2,0,1)
98 PaperEdgeAlignForm_baseLayout.addMultiCellWidget(self.buttonGroup,0,0,0,3)
100 self.languageChange()
102 self.resize(QSize(618,233).expandedTo(self.minimumSizeHint()))
103 self.clearWState(Qt.WState_Polished)
105 self.connect(self.CancelButton,SIGNAL("clicked()"),self.reject)
106 self.connect(self.ContinueButton,SIGNAL("clicked()"),self.accept)
107 self.connect(self.buttonGroup,SIGNAL("clicked(int)"),self.buttonGroup_clicked)
110 def languageChange(self):
111 self.setCaption(self.__tr("HP Device Manager - Paper Edge Alignment"))
112 self.ContinueButton.setText(self.__tr("Next >"))
113 self.CancelButton.setText(self.__tr("Cancel"))
114 self.buttonGroup.setTitle(self.__tr("Paper Edge"))
115 self.radioButton1.setText(self.__tr("1"))
116 self.radioButton2.setText(self.__tr("2"))
117 self.radioButton3.setText(self.__tr("3"))
118 self.radioButton4.setText(self.__tr("4"))
119 self.radioButton5.setText(self.__tr("5"))
120 self.radioButton6.setText(self.__tr("6"))
121 self.radioButton7.setText(self.__tr("7"))
122 self.radioButton8.setText(self.__tr("8"))
123 self.radioButton9.setText(self.__tr("9"))
124 self.radioButton10.setText(self.__tr("10"))
125 self.radioButton11.setText(self.__tr("11"))
126 self.radioButton12.setText(self.__tr("12"))
127 self.radioButton13.setText(self.__tr("13"))
128 self.textLabel4_2.setText(self.__tr("Choose the <b>numbered arrow</b> that <b>best </b>marks the edge of the paper."))
131 def buttonGroup_clicked(self,a0):
132 print "PaperEdgeAlignForm_base.buttonGroup_clicked(int): Not implemented yet"
134 def __tr(self,s,c = None):
135 return qApp.translate("PaperEdgeAlignForm_base",s,c)
137 if __name__ == "__main__":
138 a = QApplication(sys.argv)
139 QObject.connect(a,SIGNAL("lastWindowClosed()"),a,SLOT("quit()"))
140 w = PaperEdgeAlignForm_base()