1 # -*- coding: utf-8 -*-
3 # Form implementation generated from reading ui file 'ui/settingsdialog_base.ui'
5 # Created: Mon Apr 21 09:46:06 2008
6 # by: The PyQt User Interface Compiler (pyuic) 3.17.3
8 # WARNING! All changes made in this file will be lost!
14 class SettingsDialog_base(QDialog):
15 def __init__(self,parent = None,name = None,modal = 0,fl = 0):
16 QDialog.__init__(self,parent,name,modal,fl)
19 self.setName("SettingsDialog_base")
22 SettingsDialog_baseLayout = QGridLayout(self,1,1,11,6,"SettingsDialog_baseLayout")
24 self.pushButton30 = QPushButton(self,"pushButton30")
26 SettingsDialog_baseLayout.addWidget(self.pushButton30,1,2)
28 self.pushButton31 = QPushButton(self,"pushButton31")
30 SettingsDialog_baseLayout.addWidget(self.pushButton31,1,1)
31 spacer40 = QSpacerItem(430,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
32 SettingsDialog_baseLayout.addItem(spacer40,1,0)
34 self.TabWidget = QTabWidget(self,"TabWidget")
36 self.CleaningLevels = QWidget(self.TabWidget,"CleaningLevels")
37 CleaningLevelsLayout = QGridLayout(self.CleaningLevels,1,1,11,6,"CleaningLevelsLayout")
39 self.textLabel3_2_2 = QLabel(self.CleaningLevels,"textLabel3_2_2")
41 CleaningLevelsLayout.addWidget(self.textLabel3_2_2,0,0)
43 self.line1_2_2 = QFrame(self.CleaningLevels,"line1_2_2")
44 self.line1_2_2.setFrameShape(QFrame.HLine)
45 self.line1_2_2.setFrameShadow(QFrame.Sunken)
46 self.line1_2_2.setFrameShape(QFrame.HLine)
48 CleaningLevelsLayout.addWidget(self.line1_2_2,1,0)
49 spacer8 = QSpacerItem(20,30,QSizePolicy.Minimum,QSizePolicy.Expanding)
50 CleaningLevelsLayout.addItem(spacer8,5,0)
52 self.autoRefreshCheckBox = QCheckBox(self.CleaningLevels,"autoRefreshCheckBox")
54 CleaningLevelsLayout.addWidget(self.autoRefreshCheckBox,2,0)
56 self.CleaningLevel = QButtonGroup(self.CleaningLevels,"CleaningLevel")
57 self.CleaningLevel.setColumnLayout(0,Qt.Vertical)
58 self.CleaningLevel.layout().setSpacing(6)
59 self.CleaningLevel.layout().setMargin(11)
60 CleaningLevelLayout = QGridLayout(self.CleaningLevel.layout())
61 CleaningLevelLayout.setAlignment(Qt.AlignTop)
62 spacer9_2 = QSpacerItem(290,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
63 CleaningLevelLayout.addItem(spacer9_2,0,2)
65 self.textLabel1_4 = QLabel(self.CleaningLevel,"textLabel1_4")
67 CleaningLevelLayout.addWidget(self.textLabel1_4,0,0)
69 layout7 = QHBoxLayout(None,0,6,"layout7")
71 self.AutoRefreshRate = QSpinBox(self.CleaningLevel,"AutoRefreshRate")
72 self.AutoRefreshRate.setEnabled(0)
73 self.AutoRefreshRate.setWrapping(1)
74 self.AutoRefreshRate.setButtonSymbols(QSpinBox.PlusMinus)
75 self.AutoRefreshRate.setMaxValue(60)
76 self.AutoRefreshRate.setMinValue(5)
77 self.AutoRefreshRate.setValue(6)
78 layout7.addWidget(self.AutoRefreshRate)
80 self.textLabel1_3 = QLabel(self.CleaningLevel,"textLabel1_3")
81 layout7.addWidget(self.textLabel1_3)
83 CleaningLevelLayout.addLayout(layout7,0,1)
85 CleaningLevelsLayout.addWidget(self.CleaningLevel,3,0)
87 self.refreshScopeButtonGroup = QButtonGroup(self.CleaningLevels,"refreshScopeButtonGroup")
88 self.refreshScopeButtonGroup.setColumnLayout(0,Qt.Vertical)
89 self.refreshScopeButtonGroup.layout().setSpacing(6)
90 self.refreshScopeButtonGroup.layout().setMargin(11)
91 refreshScopeButtonGroupLayout = QGridLayout(self.refreshScopeButtonGroup.layout())
92 refreshScopeButtonGroupLayout.setAlignment(Qt.AlignTop)
94 self.radioButton1 = QRadioButton(self.refreshScopeButtonGroup,"radioButton1")
95 self.radioButton1.setEnabled(0)
96 self.radioButton1.setChecked(1)
98 refreshScopeButtonGroupLayout.addWidget(self.radioButton1,0,0)
100 self.radioButton2 = QRadioButton(self.refreshScopeButtonGroup,"radioButton2")
101 self.radioButton2.setEnabled(0)
103 refreshScopeButtonGroupLayout.addWidget(self.radioButton2,1,0)
105 CleaningLevelsLayout.addWidget(self.refreshScopeButtonGroup,4,0)
106 self.TabWidget.insertTab(self.CleaningLevels,QString.fromLatin1(""))
108 self.FunctionCommands = QWidget(self.TabWidget,"FunctionCommands")
109 FunctionCommandsLayout = QGridLayout(self.FunctionCommands,1,1,11,6,"FunctionCommandsLayout")
111 self.line1_2_2_3 = QFrame(self.FunctionCommands,"line1_2_2_3")
112 self.line1_2_2_3.setFrameShape(QFrame.HLine)
113 self.line1_2_2_3.setFrameShadow(QFrame.Sunken)
114 self.line1_2_2_3.setFrameShape(QFrame.HLine)
116 FunctionCommandsLayout.addMultiCellWidget(self.line1_2_2_3,1,1,0,1)
118 self.textLabel3_2_2_2 = QLabel(self.FunctionCommands,"textLabel3_2_2_2")
120 FunctionCommandsLayout.addMultiCellWidget(self.textLabel3_2_2_2,0,0,0,1)
122 self.DefaultsButton = QPushButton(self.FunctionCommands,"DefaultsButton")
123 self.DefaultsButton.setEnabled(1)
125 FunctionCommandsLayout.addWidget(self.DefaultsButton,4,0)
126 spacer8_2 = QSpacerItem(20,20,QSizePolicy.Expanding,QSizePolicy.Minimum)
127 FunctionCommandsLayout.addItem(spacer8_2,4,1)
129 self.groupBox3 = QGroupBox(self.FunctionCommands,"groupBox3")
130 self.groupBox3.setColumnLayout(0,Qt.Vertical)
131 self.groupBox3.layout().setSpacing(6)
132 self.groupBox3.layout().setMargin(11)
133 groupBox3Layout = QGridLayout(self.groupBox3.layout())
134 groupBox3Layout.setAlignment(Qt.AlignTop)
136 self.textLabel1_2 = QLabel(self.groupBox3,"textLabel1_2")
138 groupBox3Layout.addWidget(self.textLabel1_2,0,0)
140 self.PrintCommand = QLineEdit(self.groupBox3,"PrintCommand")
141 self.PrintCommand.setEnabled(1)
143 groupBox3Layout.addWidget(self.PrintCommand,1,0)
145 self.textLabel2_2 = QLabel(self.groupBox3,"textLabel2_2")
147 groupBox3Layout.addWidget(self.textLabel2_2,2,0)
149 self.textLabel3_3 = QLabel(self.groupBox3,"textLabel3_3")
151 groupBox3Layout.addWidget(self.textLabel3_3,4,0)
153 self.textLabel4 = QLabel(self.groupBox3,"textLabel4")
155 groupBox3Layout.addWidget(self.textLabel4,6,0)
157 self.ScanCommand = QLineEdit(self.groupBox3,"ScanCommand")
159 groupBox3Layout.addWidget(self.ScanCommand,3,0)
161 self.SendFaxCommand = QLineEdit(self.groupBox3,"SendFaxCommand")
162 self.SendFaxCommand.setEnabled(1)
164 groupBox3Layout.addWidget(self.SendFaxCommand,5,0)
166 self.AccessPCardCommand = QLineEdit(self.groupBox3,"AccessPCardCommand")
167 self.AccessPCardCommand.setEnabled(1)
169 groupBox3Layout.addWidget(self.AccessPCardCommand,7,0)
171 self.textLabel5 = QLabel(self.groupBox3,"textLabel5")
173 groupBox3Layout.addWidget(self.textLabel5,8,0)
175 self.MakeCopiesCommand = QLineEdit(self.groupBox3,"MakeCopiesCommand")
176 self.MakeCopiesCommand.setEnabled(1)
178 groupBox3Layout.addWidget(self.MakeCopiesCommand,9,0)
180 FunctionCommandsLayout.addMultiCellWidget(self.groupBox3,2,2,0,1)
181 spacer49 = QSpacerItem(20,60,QSizePolicy.Minimum,QSizePolicy.Expanding)
182 FunctionCommandsLayout.addItem(spacer49,3,0)
183 self.TabWidget.insertTab(self.FunctionCommands,QString.fromLatin1(""))
185 SettingsDialog_baseLayout.addMultiCellWidget(self.TabWidget,0,0,0,2)
187 self.languageChange()
189 self.resize(QSize(460,565).expandedTo(self.minimumSizeHint()))
190 self.clearWState(Qt.WState_Polished)
192 self.connect(self.pushButton31,SIGNAL("clicked()"),self.reject)
193 self.connect(self.pushButton30,SIGNAL("clicked()"),self.accept)
194 self.connect(self.CleaningLevel,SIGNAL("clicked(int)"),self.CleaningLevel_clicked)
195 self.connect(self.DefaultsButton,SIGNAL("clicked()"),self.DefaultsButton_clicked)
196 self.connect(self.TabWidget,SIGNAL("currentChanged(QWidget*)"),self.TabWidget_currentChanged)
197 self.connect(self.autoRefreshCheckBox,SIGNAL("clicked()"),self.autoRefreshCheckBox_clicked)
198 self.connect(self.autoRefreshCheckBox,SIGNAL("toggled(bool)"),self.AutoRefreshRate.setEnabled)
199 self.connect(self.autoRefreshCheckBox,SIGNAL("toggled(bool)"),self.radioButton1.setEnabled)
200 self.connect(self.autoRefreshCheckBox,SIGNAL("toggled(bool)"),self.radioButton2.setEnabled)
201 self.connect(self.refreshScopeButtonGroup,SIGNAL("clicked(int)"),self.refreshScopeButtonGroup_clicked)
203 self.setTabOrder(self.TabWidget,self.pushButton30)
204 self.setTabOrder(self.pushButton30,self.pushButton31)
205 self.setTabOrder(self.pushButton31,self.PrintCommand)
206 self.setTabOrder(self.PrintCommand,self.ScanCommand)
207 self.setTabOrder(self.ScanCommand,self.AccessPCardCommand)
208 self.setTabOrder(self.AccessPCardCommand,self.SendFaxCommand)
209 self.setTabOrder(self.SendFaxCommand,self.MakeCopiesCommand)
210 self.setTabOrder(self.MakeCopiesCommand,self.DefaultsButton)
213 def languageChange(self):
214 self.setCaption(self.__tr("HP Device Manager - Settings"))
215 self.pushButton30.setText(self.__tr("OK"))
216 self.pushButton31.setText(self.__tr("Cancel"))
217 self.textLabel3_2_2.setText(self.__tr("<b>Configure if and when device(s) are automatically refreshed</b>"))
218 self.autoRefreshCheckBox.setText(self.__tr("Enable device auto refresh"))
219 self.CleaningLevel.setTitle(self.__tr("Auto Interval"))
220 self.textLabel1_4.setText(self.__tr("Refresh every:"))
221 self.textLabel1_3.setText(self.__tr("seconds"))
222 self.refreshScopeButtonGroup.setTitle(self.__tr("Device(s) to Refresh "))
223 self.radioButton1.setText(self.__tr("Only currently selected device"))
224 self.radioButton2.setText(self.__tr("All devices"))
225 self.TabWidget.changeTab(self.CleaningLevels,self.__tr("Auto Refresh"))
226 self.textLabel3_2_2_2.setText(self.__tr("<b>Configure what commands to run for device functions</b>"))
227 self.DefaultsButton.setText(self.__tr("Set Defaults"))
228 self.groupBox3.setTitle(self.__tr("Commands"))
229 self.textLabel1_2.setText(self.__tr("Print:"))
230 self.textLabel2_2.setText(self.__tr("Scan:"))
231 self.textLabel3_3.setText(self.__tr("Send PC Fax:"))
232 self.textLabel4.setText(self.__tr("Unload Photo Cards:"))
233 self.textLabel5.setText(self.__tr("Make Copies:"))
234 self.TabWidget.changeTab(self.FunctionCommands,self.__tr("Commands (Advanced)"))
237 def PrintCmdChangeButton_clicked(self):
238 print "SettingsDialog_base.PrintCmdChangeButton_clicked(): Not implemented yet"
240 def ScanCmdChangeButton_clicked(self):
241 print "SettingsDialog_base.ScanCmdChangeButton_clicked(): Not implemented yet"
243 def AccessPCardCmdChangeButton_clicked(self):
244 print "SettingsDialog_base.AccessPCardCmdChangeButton_clicked(): Not implemented yet"
246 def SendFaxCmdChangeButton_clicked(self):
247 print "SettingsDialog_base.SendFaxCmdChangeButton_clicked(): Not implemented yet"
249 def MakeCopiesCmdChangeButton_clicked(self):
250 print "SettingsDialog_base.MakeCopiesCmdChangeButton_clicked(): Not implemented yet"
252 def CleaningLevel_clicked(self,a0):
253 print "SettingsDialog_base.CleaningLevel_clicked(int): Not implemented yet"
255 def pushButton5_clicked(self):
256 print "SettingsDialog_base.pushButton5_clicked(): Not implemented yet"
258 def DefaultsButton_clicked(self):
259 print "SettingsDialog_base.DefaultsButton_clicked(): Not implemented yet"
261 def TabWidget_currentChanged(self,a0):
262 print "SettingsDialog_base.TabWidget_currentChanged(QWidget*): Not implemented yet"
264 def pushButton6_clicked(self):
265 print "SettingsDialog_base.pushButton6_clicked(): Not implemented yet"
267 def EmailTestButton_clicked(self):
268 print "SettingsDialog_base.EmailTestButton_clicked(): Not implemented yet"
270 def autoRefreshCheckBox_clicked(self):
271 print "SettingsDialog_base.autoRefreshCheckBox_clicked(): Not implemented yet"
273 def refreshScopeButtonGroup_clicked(self,a0):
274 print "SettingsDialog_base.refreshScopeButtonGroup_clicked(int): Not implemented yet"
276 def printButtonGroup_clicked(self,a0):
277 print "SettingsDialog_base.printButtonGroup_clicked(int): Not implemented yet"
279 def scanButtonGroup_clicked(self,a0):
280 print "SettingsDialog_base.scanButtonGroup_clicked(int): Not implemented yet"
282 def faxButtonGroup_clicked(self,a0):
283 print "SettingsDialog_base.faxButtonGroup_clicked(int): Not implemented yet"
285 def pcardButtonGroup_clicked(self,a0):
286 print "SettingsDialog_base.pcardButtonGroup_clicked(int): Not implemented yet"
288 def copyButtonGroup_clicked(self,a0):
289 print "SettingsDialog_base.copyButtonGroup_clicked(int): Not implemented yet"
291 def __tr(self,s,c = None):
292 return qApp.translate("SettingsDialog_base",s,c)