1 <?xml version=
"1.0" encoding=
"UTF-8"?>
3 <class>settingsDialog
</class>
4 <widget class=
"QDialog" name=
"settingsDialog">
5 <property name=
"geometry">
13 <property name=
"windowTitle">
14 <string>QBat - Settings
</string>
16 <layout class=
"QVBoxLayout">
18 <widget class=
"QGroupBox" name=
"criticalGroup">
19 <property name=
"title">
20 <string>Event for critical battery capacity
</string>
22 <property name=
"checkable">
25 <layout class=
"QGridLayout">
26 <item row=
"0" column=
"0">
27 <widget class=
"QLabel" name=
"criticalCapacitylabel">
28 <property name=
"text">
29 <string>Critical capacity (in %)
</string>
33 <item row=
"1" column=
"0">
34 <widget class=
"QRadioButton" name=
"criticalWarningRadio">
35 <property name=
"text">
36 <string>Show warning message
</string>
38 <property name=
"checked">
43 <item row=
"2" column=
"0" rowspan=
"2">
44 <widget class=
"QRadioButton" name=
"criticalCommandRadio">
45 <property name=
"text">
46 <string>Execute command
</string>
48 <property name=
"checked">
53 <item row=
"0" column=
"1">
54 <widget class=
"QSpinBox" name=
"criticalCapacitySpin">
55 <property name=
"minimum">
58 <property name=
"maximum">
61 <property name=
"value">
66 <item row=
"4" column=
"0" colspan=
"3">
67 <widget class=
"QGroupBox" name=
"confirmCommandBox">
68 <property name=
"title">
69 <string>Confirm command
</string>
71 <property name=
"checkable">
74 <layout class=
"QGridLayout">
75 <item row=
"0" column=
"0">
76 <widget class=
"QCheckBox" name=
"timeoutCheck">
77 <property name=
"text">
78 <string>Use timeout to confirm
</string>
80 <property name=
"checked">
85 <item row=
"0" column=
"1">
86 <widget class=
"QSpinBox" name=
"timeoutSpin">
87 <property name=
"minimum">
90 <property name=
"value">
95 <item row=
"0" column=
"2">
96 <widget class=
"QLabel" name=
"timeoutLabel">
97 <property name=
"text">
98 <string>Seconds
</string>
102 <item row=
"0" column=
"3">
103 <spacer name=
"spacer1">
104 <property name=
"orientation">
105 <enum>Qt::Horizontal
</enum>
107 <property name=
"sizeHint" stdset=
"0">
118 <item row=
"2" column=
"1" rowspan=
"2" colspan=
"2">
119 <widget class=
"QLineEdit" name=
"criticalCommandEdit"/>
121 <item row=
"0" column=
"2">
122 <spacer name=
"spacer0">
123 <property name=
"orientation">
124 <enum>Qt::Horizontal
</enum>
126 <property name=
"sizeHint" stdset=
"0">
138 <widget class=
"QGroupBox" name=
"batteryIconGroup">
139 <property name=
"title">
140 <string>Battery icon(s)
</string>
142 <layout class=
"QGridLayout">
143 <item row=
"0" column=
"5" rowspan=
"3">
144 <spacer name=
"spacer2">
145 <property name=
"orientation">
146 <enum>Qt::Horizontal
</enum>
148 <property name=
"sizeHint" stdset=
"0">
156 <item row=
"0" column=
"0" colspan=
"2">
157 <widget class=
"QLabel" name=
"mainColorLabel">
158 <property name=
"text">
159 <string>Main color
</string>
163 <item row=
"0" column=
"2">
164 <widget class=
"QToolButton" name=
"mainFullColorButton">
165 <property name=
"toolTip">
166 <string>full
</string>
168 <property name=
"text">
169 <string>full
</string>
173 <item row=
"0" column=
"3">
174 <widget class=
"QToolButton" name=
"mainChargedColorButton">
175 <property name=
"toolTip">
176 <string>charged
</string>
178 <property name=
"text">
179 <string>charged
</string>
183 <item row=
"0" column=
"4">
184 <widget class=
"QToolButton" name=
"mainEmptyColorButton">
185 <property name=
"toolTip">
186 <string>empty
</string>
188 <property name=
"text">
189 <string>empty
</string>
193 <item row=
"1" column=
"0" colspan=
"2">
194 <widget class=
"QLabel" name=
"textColorLabel">
195 <property name=
"text">
196 <string>Text color
</string>
200 <item row=
"1" column=
"2">
201 <widget class=
"QToolButton" name=
"textFullColorButton">
202 <property name=
"toolTip">
203 <string>full
</string>
205 <property name=
"text">
206 <string>full
</string>
210 <item row=
"2" column=
"0" colspan=
"2">
211 <widget class=
"QLabel" name=
"poleLabel">
212 <property name=
"text">
213 <string>"+ pole
" color
</string>
217 <item row=
"2" column=
"2">
218 <widget class=
"QToolButton" name=
"poleFullColorButton">
219 <property name=
"toolTip">
220 <string>full
</string>
222 <property name=
"text">
223 <string>full
</string>
227 <item row=
"2" column=
"3">
228 <widget class=
"QToolButton" name=
"poleChargingColorButton">
229 <property name=
"toolTip">
230 <string>charging
</string>
232 <property name=
"text">
233 <string>charging
</string>
237 <item row=
"3" column=
"0" colspan=
"6">
238 <widget class=
"QCheckBox" name=
"mergeBatteriesCheck">
239 <property name=
"text">
240 <string>Merge Icons
</string>
244 <item row=
"1" column=
"3">
245 <widget class=
"QToolButton" name=
"textChargingColorButton">
246 <property name=
"toolTip">
247 <string>charging
</string>
249 <property name=
"text">
250 <string>charging
</string>
254 <item row=
"1" column=
"4">
255 <widget class=
"QToolButton" name=
"textDischargingColorButton">
256 <property name=
"toolTip">
257 <string>discharging
</string>
259 <property name=
"text">
260 <string>discharging
</string>
264 <item row=
"2" column=
"4">
265 <widget class=
"QToolButton" name=
"poleDischargingColorButton">
266 <property name=
"toolTip">
267 <string>discharging
</string>
269 <property name=
"text">
270 <string>discharging
</string>
278 <widget class=
"QCheckBox" name=
"showBalloonCheck">
279 <property name=
"text">
280 <string>Show messages as balloon tips
</string>
285 <layout class=
"QHBoxLayout">
287 <widget class=
"QLabel" name=
"pollingRateLabel">
288 <property name=
"sizePolicy">
289 <sizepolicy hsizetype=
"Minimum" vsizetype=
"Preferred">
290 <horstretch>0</horstretch>
291 <verstretch>0</verstretch>
294 <property name=
"text">
295 <string>Polling rate (in milliseconds)
</string>
300 <widget class=
"QSpinBox" name=
"pollingRateSpin">
301 <property name=
"minimum">
304 <property name=
"maximum">
305 <number>20000</number>
307 <property name=
"singleStep">
313 <spacer name=
"spacer3">
314 <property name=
"orientation">
315 <enum>Qt::Horizontal
</enum>
317 <property name=
"sizeHint" stdset=
"0">
328 <spacer name=
"spacer4">
329 <property name=
"orientation">
330 <enum>Qt::Vertical
</enum>
332 <property name=
"sizeHint" stdset=
"0">
341 <widget class=
"QDialogButtonBox" name=
"buttonBox">
342 <property name=
"orientation">
343 <enum>Qt::Horizontal
</enum>
345 <property name=
"standardButtons">
346 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok
</set>
348 <property name=
"centerButtons">
356 <tabstop>criticalGroup
</tabstop>
357 <tabstop>criticalWarningRadio
</tabstop>
358 <tabstop>criticalCommandRadio
</tabstop>
359 <tabstop>mainFullColorButton
</tabstop>
360 <tabstop>mainChargedColorButton
</tabstop>
361 <tabstop>mainEmptyColorButton
</tabstop>
362 <tabstop>textFullColorButton
</tabstop>
363 <tabstop>textChargingColorButton
</tabstop>
364 <tabstop>poleFullColorButton
</tabstop>
365 <tabstop>poleChargingColorButton
</tabstop>
366 <tabstop>pollingRateSpin
</tabstop>
367 <tabstop>buttonBox
</tabstop>
372 <sender>buttonBox
</sender>
373 <signal>accepted()
</signal>
374 <receiver>settingsDialog
</receiver>
375 <slot>accept()
</slot>
377 <hint type=
"sourcelabel">
381 <hint type=
"destinationlabel">
388 <sender>buttonBox
</sender>
389 <signal>rejected()
</signal>
390 <receiver>settingsDialog
</receiver>
391 <slot>reject()
</slot>
393 <hint type=
"sourcelabel">
397 <hint type=
"destinationlabel">
404 <sender>criticalCommandRadio
</sender>
405 <signal>toggled(bool)
</signal>
406 <receiver>criticalCommandEdit
</receiver>
407 <slot>setEnabled(bool)
</slot>
409 <hint type=
"sourcelabel">
413 <hint type=
"destinationlabel">
420 <sender>timeoutCheck
</sender>
421 <signal>toggled(bool)
</signal>
422 <receiver>timeoutSpin
</receiver>
423 <slot>setEnabled(bool)
</slot>
425 <hint type=
"sourcelabel">
429 <hint type=
"destinationlabel">
436 <sender>timeoutCheck
</sender>
437 <signal>toggled(bool)
</signal>
438 <receiver>timeoutLabel
</receiver>
439 <slot>setEnabled(bool)
</slot>
441 <hint type=
"sourcelabel">
445 <hint type=
"destinationlabel">
452 <sender>criticalCommandRadio
</sender>
453 <signal>toggled(bool)
</signal>
454 <receiver>confirmCommandBox
</receiver>
455 <slot>setEnabled(bool)
</slot>
457 <hint type=
"sourcelabel">
461 <hint type=
"destinationlabel">