Tizen 2.1 base
[platform/upstream/hplip.git] / ui4 / settingsdialog_base.py
1 # -*- coding: utf-8 -*-
2
3 # Form implementation generated from reading ui file 'ui4/settingsdialog_base.ui'
4 #
5 # Created: Mon May  4 14:30:36 2009
6 #      by: PyQt4 UI code generator 4.4.4
7 #
8 # WARNING! All changes made in this file will be lost!
9
10 from PyQt4 import QtCore, QtGui
11
12 class Ui_SettingsDialog_base(object):
13     def setupUi(self, SettingsDialog_base):
14         SettingsDialog_base.setObjectName("SettingsDialog_base")
15         SettingsDialog_base.resize(500, 540)
16         self.gridlayout = QtGui.QGridLayout(SettingsDialog_base)
17         self.gridlayout.setObjectName("gridlayout")
18         self.TabWidget = QtGui.QTabWidget(SettingsDialog_base)
19         self.TabWidget.setObjectName("TabWidget")
20         self.AutoRefresh = QtGui.QWidget()
21         self.AutoRefresh.setObjectName("AutoRefresh")
22         self.gridlayout1 = QtGui.QGridLayout(self.AutoRefresh)
23         self.gridlayout1.setObjectName("gridlayout1")
24         self.textLabel3_2_2 = QtGui.QLabel(self.AutoRefresh)
25         self.textLabel3_2_2.setWordWrap(False)
26         self.textLabel3_2_2.setObjectName("textLabel3_2_2")
27         self.gridlayout1.addWidget(self.textLabel3_2_2, 0, 0, 1, 1)
28         self.line1_2_2 = QtGui.QFrame(self.AutoRefresh)
29         self.line1_2_2.setFrameShape(QtGui.QFrame.HLine)
30         self.line1_2_2.setFrameShadow(QtGui.QFrame.Sunken)
31         self.line1_2_2.setObjectName("line1_2_2")
32         self.gridlayout1.addWidget(self.line1_2_2, 1, 0, 1, 1)
33         self.AutoRefreshCheckBox = QtGui.QCheckBox(self.AutoRefresh)
34         self.AutoRefreshCheckBox.setObjectName("AutoRefreshCheckBox")
35         self.gridlayout1.addWidget(self.AutoRefreshCheckBox, 2, 0, 1, 1)
36         self.RefreshRateGroupBox = QtGui.QGroupBox(self.AutoRefresh)
37         self.RefreshRateGroupBox.setEnabled(True)
38         self.RefreshRateGroupBox.setObjectName("RefreshRateGroupBox")
39         self.gridlayout2 = QtGui.QGridLayout(self.RefreshRateGroupBox)
40         self.gridlayout2.setObjectName("gridlayout2")
41         self.textLabel1_4 = QtGui.QLabel(self.RefreshRateGroupBox)
42         self.textLabel1_4.setWordWrap(False)
43         self.textLabel1_4.setObjectName("textLabel1_4")
44         self.gridlayout2.addWidget(self.textLabel1_4, 0, 0, 1, 1)
45         self.hboxlayout = QtGui.QHBoxLayout()
46         self.hboxlayout.setObjectName("hboxlayout")
47         self.AutoRefreshRateSpinBox = QtGui.QSpinBox(self.RefreshRateGroupBox)
48         self.AutoRefreshRateSpinBox.setEnabled(False)
49         self.AutoRefreshRateSpinBox.setWrapping(True)
50         self.AutoRefreshRateSpinBox.setButtonSymbols(QtGui.QAbstractSpinBox.PlusMinus)
51         self.AutoRefreshRateSpinBox.setMinimum(10)
52         self.AutoRefreshRateSpinBox.setMaximum(300)
53         self.AutoRefreshRateSpinBox.setProperty("value", QtCore.QVariant(30))
54         self.AutoRefreshRateSpinBox.setObjectName("AutoRefreshRateSpinBox")
55         self.hboxlayout.addWidget(self.AutoRefreshRateSpinBox)
56         self.gridlayout2.addLayout(self.hboxlayout, 0, 1, 1, 1)
57         spacerItem = QtGui.QSpacerItem(40, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
58         self.gridlayout2.addItem(spacerItem, 0, 2, 1, 1)
59         self.gridlayout1.addWidget(self.RefreshRateGroupBox, 3, 0, 1, 1)
60         self.RefreshTypeGroupBox = QtGui.QGroupBox(self.AutoRefresh)
61         self.RefreshTypeGroupBox.setObjectName("RefreshTypeGroupBox")
62         self.gridlayout3 = QtGui.QGridLayout(self.RefreshTypeGroupBox)
63         self.gridlayout3.setObjectName("gridlayout3")
64         self.RefreshCurrentRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
65         self.RefreshCurrentRadioButton.setEnabled(False)
66         self.RefreshCurrentRadioButton.setChecked(True)
67         self.RefreshCurrentRadioButton.setObjectName("RefreshCurrentRadioButton")
68         self.gridlayout3.addWidget(self.RefreshCurrentRadioButton, 0, 0, 1, 1)
69         self.RefreshAllRadioButton = QtGui.QRadioButton(self.RefreshTypeGroupBox)
70         self.RefreshAllRadioButton.setEnabled(False)
71         self.RefreshAllRadioButton.setObjectName("RefreshAllRadioButton")
72         self.gridlayout3.addWidget(self.RefreshAllRadioButton, 1, 0, 1, 1)
73         self.gridlayout1.addWidget(self.RefreshTypeGroupBox, 4, 0, 1, 1)
74         spacerItem1 = QtGui.QSpacerItem(446, 41, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
75         self.gridlayout1.addItem(spacerItem1, 5, 0, 1, 1)
76         self.TabWidget.addTab(self.AutoRefresh, "")
77         self.SystemTray = QtGui.QWidget()
78         self.SystemTray.setObjectName("SystemTray")
79         self.gridlayout4 = QtGui.QGridLayout(self.SystemTray)
80         self.gridlayout4.setObjectName("gridlayout4")
81         self.textLabel3_2_3 = QtGui.QLabel(self.SystemTray)
82         self.textLabel3_2_3.setWordWrap(False)
83         self.textLabel3_2_3.setObjectName("textLabel3_2_3")
84         self.gridlayout4.addWidget(self.textLabel3_2_3, 0, 0, 1, 1)
85         self.line1_2_3 = QtGui.QFrame(self.SystemTray)
86         self.line1_2_3.setFrameShape(QtGui.QFrame.HLine)
87         self.line1_2_3.setFrameShadow(QtGui.QFrame.Sunken)
88         self.line1_2_3.setObjectName("line1_2_3")
89         self.gridlayout4.addWidget(self.line1_2_3, 1, 0, 1, 1)
90         self.SystemTraySettings = SystrayFrame(self.SystemTray)
91         sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Expanding)
92         sizePolicy.setHorizontalStretch(0)
93         sizePolicy.setVerticalStretch(0)
94         sizePolicy.setHeightForWidth(self.SystemTraySettings.sizePolicy().hasHeightForWidth())
95         self.SystemTraySettings.setSizePolicy(sizePolicy)
96         self.SystemTraySettings.setFrameShadow(QtGui.QFrame.Raised)
97         self.SystemTraySettings.setObjectName("SystemTraySettings")
98         self.gridlayout4.addWidget(self.SystemTraySettings, 2, 0, 1, 1)
99         self.TabWidget.addTab(self.SystemTray, "")
100         self.Commands = QtGui.QWidget()
101         self.Commands.setObjectName("Commands")
102         self.gridlayout5 = QtGui.QGridLayout(self.Commands)
103         self.gridlayout5.setObjectName("gridlayout5")
104         self.textLabel3_2_2_2 = QtGui.QLabel(self.Commands)
105         self.textLabel3_2_2_2.setWordWrap(False)
106         self.textLabel3_2_2_2.setObjectName("textLabel3_2_2_2")
107         self.gridlayout5.addWidget(self.textLabel3_2_2_2, 0, 0, 1, 2)
108         self.line1_2_2_3 = QtGui.QFrame(self.Commands)
109         self.line1_2_2_3.setFrameShape(QtGui.QFrame.HLine)
110         self.line1_2_2_3.setFrameShadow(QtGui.QFrame.Sunken)
111         self.line1_2_2_3.setObjectName("line1_2_2_3")
112         self.gridlayout5.addWidget(self.line1_2_2_3, 1, 0, 1, 2)
113         self.groupBox_3 = QtGui.QGroupBox(self.Commands)
114         self.groupBox_3.setObjectName("groupBox_3")
115         self.gridlayout6 = QtGui.QGridLayout(self.groupBox_3)
116         self.gridlayout6.setObjectName("gridlayout6")
117         self.textLabel1_2 = QtGui.QLabel(self.groupBox_3)
118         self.textLabel1_2.setEnabled(False)
119         self.textLabel1_2.setWordWrap(False)
120         self.textLabel1_2.setObjectName("textLabel1_2")
121         self.gridlayout6.addWidget(self.textLabel1_2, 0, 0, 1, 1)
122         self.PrintCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
123         self.PrintCommandLineEdit.setEnabled(False)
124         self.PrintCommandLineEdit.setObjectName("PrintCommandLineEdit")
125         self.gridlayout6.addWidget(self.PrintCommandLineEdit, 1, 0, 1, 1)
126         self.textLabel2_2 = QtGui.QLabel(self.groupBox_3)
127         self.textLabel2_2.setWordWrap(False)
128         self.textLabel2_2.setObjectName("textLabel2_2")
129         self.gridlayout6.addWidget(self.textLabel2_2, 2, 0, 1, 1)
130         self.ScanCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
131         self.ScanCommandLineEdit.setObjectName("ScanCommandLineEdit")
132         self.gridlayout6.addWidget(self.ScanCommandLineEdit, 3, 0, 1, 1)
133         self.textLabel3_3 = QtGui.QLabel(self.groupBox_3)
134         self.textLabel3_3.setEnabled(False)
135         self.textLabel3_3.setWordWrap(False)
136         self.textLabel3_3.setObjectName("textLabel3_3")
137         self.gridlayout6.addWidget(self.textLabel3_3, 4, 0, 1, 1)
138         self.SendFaxCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
139         self.SendFaxCommandLineEdit.setEnabled(False)
140         self.SendFaxCommandLineEdit.setObjectName("SendFaxCommandLineEdit")
141         self.gridlayout6.addWidget(self.SendFaxCommandLineEdit, 5, 0, 1, 1)
142         self.textLabel4 = QtGui.QLabel(self.groupBox_3)
143         self.textLabel4.setEnabled(False)
144         self.textLabel4.setWordWrap(False)
145         self.textLabel4.setObjectName("textLabel4")
146         self.gridlayout6.addWidget(self.textLabel4, 6, 0, 1, 1)
147         self.AccessPCardCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
148         self.AccessPCardCommandLineEdit.setEnabled(False)
149         self.AccessPCardCommandLineEdit.setObjectName("AccessPCardCommandLineEdit")
150         self.gridlayout6.addWidget(self.AccessPCardCommandLineEdit, 7, 0, 1, 1)
151         self.textLabel5 = QtGui.QLabel(self.groupBox_3)
152         self.textLabel5.setEnabled(False)
153         self.textLabel5.setWordWrap(False)
154         self.textLabel5.setObjectName("textLabel5")
155         self.gridlayout6.addWidget(self.textLabel5, 8, 0, 1, 1)
156         self.MakeCopiesCommandLineEdit = QtGui.QLineEdit(self.groupBox_3)
157         self.MakeCopiesCommandLineEdit.setEnabled(False)
158         self.MakeCopiesCommandLineEdit.setObjectName("MakeCopiesCommandLineEdit")
159         self.gridlayout6.addWidget(self.MakeCopiesCommandLineEdit, 9, 0, 1, 1)
160         self.gridlayout5.addWidget(self.groupBox_3, 2, 0, 1, 2)
161         spacerItem2 = QtGui.QSpacerItem(20, 60, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Expanding)
162         self.gridlayout5.addItem(spacerItem2, 3, 1, 1, 1)
163         self.SetDefaultsButton = QtGui.QPushButton(self.Commands)
164         self.SetDefaultsButton.setEnabled(True)
165         self.SetDefaultsButton.setObjectName("SetDefaultsButton")
166         self.gridlayout5.addWidget(self.SetDefaultsButton, 4, 0, 1, 1)
167         spacerItem3 = QtGui.QSpacerItem(20, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
168         self.gridlayout5.addItem(spacerItem3, 4, 1, 1, 1)
169         self.TabWidget.addTab(self.Commands, "")
170         self.gridlayout.addWidget(self.TabWidget, 0, 0, 1, 2)
171         spacerItem4 = QtGui.QSpacerItem(301, 20, QtGui.QSizePolicy.Expanding, QtGui.QSizePolicy.Minimum)
172         self.gridlayout.addItem(spacerItem4, 1, 0, 1, 1)
173         self.StdButtons = QtGui.QDialogButtonBox(SettingsDialog_base)
174         self.StdButtons.setStandardButtons(QtGui.QDialogButtonBox.Cancel|QtGui.QDialogButtonBox.NoButton|QtGui.QDialogButtonBox.Ok)
175         self.StdButtons.setCenterButtons(False)
176         self.StdButtons.setObjectName("StdButtons")
177         self.gridlayout.addWidget(self.StdButtons, 1, 1, 1, 1)
178         self.textLabel1_4.setBuddy(self.AutoRefreshRateSpinBox)
179         self.textLabel1_2.setBuddy(self.PrintCommandLineEdit)
180         self.textLabel2_2.setBuddy(self.ScanCommandLineEdit)
181         self.textLabel3_3.setBuddy(self.SendFaxCommandLineEdit)
182         self.textLabel4.setBuddy(self.AccessPCardCommandLineEdit)
183         self.textLabel5.setBuddy(self.MakeCopiesCommandLineEdit)
184
185         self.retranslateUi(SettingsDialog_base)
186         self.TabWidget.setCurrentIndex(2)
187         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL("toggled(bool)"), self.AutoRefreshRateSpinBox.setEnabled)
188         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL("toggled(bool)"), self.RefreshAllRadioButton.setEnabled)
189         QtCore.QObject.connect(self.AutoRefreshCheckBox, QtCore.SIGNAL("toggled(bool)"), self.RefreshCurrentRadioButton.setEnabled)
190         QtCore.QObject.connect(self.StdButtons, QtCore.SIGNAL("accepted()"), SettingsDialog_base.accept)
191         QtCore.QObject.connect(self.StdButtons, QtCore.SIGNAL("rejected()"), SettingsDialog_base.reject)
192         QtCore.QMetaObject.connectSlotsByName(SettingsDialog_base)
193         SettingsDialog_base.setTabOrder(self.TabWidget, self.AutoRefreshCheckBox)
194         SettingsDialog_base.setTabOrder(self.AutoRefreshCheckBox, self.AutoRefreshRateSpinBox)
195         SettingsDialog_base.setTabOrder(self.AutoRefreshRateSpinBox, self.RefreshCurrentRadioButton)
196         SettingsDialog_base.setTabOrder(self.RefreshCurrentRadioButton, self.RefreshAllRadioButton)
197         SettingsDialog_base.setTabOrder(self.RefreshAllRadioButton, self.PrintCommandLineEdit)
198         SettingsDialog_base.setTabOrder(self.PrintCommandLineEdit, self.ScanCommandLineEdit)
199         SettingsDialog_base.setTabOrder(self.ScanCommandLineEdit, self.SendFaxCommandLineEdit)
200         SettingsDialog_base.setTabOrder(self.SendFaxCommandLineEdit, self.AccessPCardCommandLineEdit)
201         SettingsDialog_base.setTabOrder(self.AccessPCardCommandLineEdit, self.MakeCopiesCommandLineEdit)
202         SettingsDialog_base.setTabOrder(self.MakeCopiesCommandLineEdit, self.SetDefaultsButton)
203         SettingsDialog_base.setTabOrder(self.SetDefaultsButton, self.StdButtons)
204
205     def retranslateUi(self, SettingsDialog_base):
206         SettingsDialog_base.setWindowTitle(QtGui.QApplication.translate("SettingsDialog_base", "HP Device Manager - Settings", None, QtGui.QApplication.UnicodeUTF8))
207         self.textLabel3_2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
208 "p, li { white-space: pre-wrap; }\n"
209 "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
210 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure if and when devices are automatically refreshed</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
211         self.AutoRefreshCheckBox.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Enable device auto refresh", None, QtGui.QApplication.UnicodeUTF8))
212         self.RefreshRateGroupBox.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Refresh Interval", None, QtGui.QApplication.UnicodeUTF8))
213         self.textLabel1_4.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Refresh every:", None, QtGui.QApplication.UnicodeUTF8))
214         self.AutoRefreshRateSpinBox.setSuffix(QtGui.QApplication.translate("SettingsDialog_base", " sec", None, QtGui.QApplication.UnicodeUTF8))
215         self.RefreshTypeGroupBox.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Devices to Refresh", None, QtGui.QApplication.UnicodeUTF8))
216         self.RefreshCurrentRadioButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "Only &currently selected device", None, QtGui.QApplication.UnicodeUTF8))
217         self.RefreshAllRadioButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "&All devices", None, QtGui.QApplication.UnicodeUTF8))
218         self.TabWidget.setTabText(self.TabWidget.indexOf(self.AutoRefresh), QtGui.QApplication.translate("SettingsDialog_base", "Auto Refresh", None, QtGui.QApplication.UnicodeUTF8))
219         self.textLabel3_2_3.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
220 "p, li { white-space: pre-wrap; }\n"
221 "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
222 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure the behavior of the HP Status Service (hp-systray)</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
223         self.TabWidget.setTabText(self.TabWidget.indexOf(self.SystemTray), QtGui.QApplication.translate("SettingsDialog_base", "System Tray Icon", None, QtGui.QApplication.UnicodeUTF8))
224         self.textLabel3_2_2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "<html><head><meta name=\"qrichtext\" content=\"1\" /><style type=\"text/css\">\n"
225 "p, li { white-space: pre-wrap; }\n"
226 "</style></head><body style=\" font-family:\'DejaVu Sans\'; font-size:10pt; font-weight:400; font-style:normal;\">\n"
227 "<p style=\" margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px;\"><span style=\" font-weight:600;\">Configure what commands to run for device actions</span></p></body></html>", None, QtGui.QApplication.UnicodeUTF8))
228         self.groupBox_3.setTitle(QtGui.QApplication.translate("SettingsDialog_base", "Commands", None, QtGui.QApplication.UnicodeUTF8))
229         self.textLabel1_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Print:", None, QtGui.QApplication.UnicodeUTF8))
230         self.textLabel2_2.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Scan:", None, QtGui.QApplication.UnicodeUTF8))
231         self.textLabel3_3.setText(QtGui.QApplication.translate("SettingsDialog_base", "Send PC &Fax:", None, QtGui.QApplication.UnicodeUTF8))
232         self.textLabel4.setText(QtGui.QApplication.translate("SettingsDialog_base", "&Unload Photo Cards:", None, QtGui.QApplication.UnicodeUTF8))
233         self.textLabel5.setText(QtGui.QApplication.translate("SettingsDialog_base", "Make &Copies:", None, QtGui.QApplication.UnicodeUTF8))
234         self.SetDefaultsButton.setText(QtGui.QApplication.translate("SettingsDialog_base", "Set &Defaults", None, QtGui.QApplication.UnicodeUTF8))
235         self.TabWidget.setTabText(self.TabWidget.indexOf(self.Commands), QtGui.QApplication.translate("SettingsDialog_base", "Commands (Advanced)", None, QtGui.QApplication.UnicodeUTF8))
236
237 from systrayframe import SystrayFrame