redesigned battery data structures and added icon merge
[qbat.git] / settingsdialog.ui
blob02ccbb0d6578ff9b9697c14d98f4cf797a29591f
1 <?xml version="1.0" encoding="UTF-8"?>
2 <ui version="4.0">
3 <class>settingsDialog</class>
4 <widget class="QDialog" name="settingsDialog">
5 <property name="geometry">
6 <rect>
7 <x>0</x>
8 <y>0</y>
9 <width>445</width>
10 <height>495</height>
11 </rect>
12 </property>
13 <property name="windowTitle">
14 <string>QBat - Settings</string>
15 </property>
16 <layout class="QVBoxLayout">
17 <item>
18 <widget class="QGroupBox" name="criticalGroup">
19 <property name="title">
20 <string>Event for critical battery capacity</string>
21 </property>
22 <property name="checkable">
23 <bool>true</bool>
24 </property>
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>
30 </property>
31 </widget>
32 </item>
33 <item row="1" column="0">
34 <widget class="QRadioButton" name="criticalWarningRadio">
35 <property name="text">
36 <string>Show warning message</string>
37 </property>
38 <property name="checked">
39 <bool>false</bool>
40 </property>
41 </widget>
42 </item>
43 <item row="2" column="0" rowspan="2">
44 <widget class="QRadioButton" name="criticalCommandRadio">
45 <property name="text">
46 <string>Execute command</string>
47 </property>
48 <property name="checked">
49 <bool>true</bool>
50 </property>
51 </widget>
52 </item>
53 <item row="0" column="1">
54 <widget class="QSpinBox" name="criticalCapacitySpin">
55 <property name="minimum">
56 <number>1</number>
57 </property>
58 <property name="maximum">
59 <number>99</number>
60 </property>
61 <property name="value">
62 <number>10</number>
63 </property>
64 </widget>
65 </item>
66 <item row="4" column="0" colspan="3">
67 <widget class="QGroupBox" name="confirmCommandBox">
68 <property name="title">
69 <string>Confirm command</string>
70 </property>
71 <property name="checkable">
72 <bool>true</bool>
73 </property>
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>
79 </property>
80 <property name="checked">
81 <bool>true</bool>
82 </property>
83 </widget>
84 </item>
85 <item row="0" column="1">
86 <widget class="QSpinBox" name="timeoutSpin">
87 <property name="minimum">
88 <number>1</number>
89 </property>
90 <property name="value">
91 <number>5</number>
92 </property>
93 </widget>
94 </item>
95 <item row="0" column="2">
96 <widget class="QLabel" name="timeoutLabel">
97 <property name="text">
98 <string>Seconds</string>
99 </property>
100 </widget>
101 </item>
102 <item row="0" column="3">
103 <spacer name="spacer1">
104 <property name="orientation">
105 <enum>Qt::Horizontal</enum>
106 </property>
107 <property name="sizeHint" stdset="0">
108 <size>
109 <width>40</width>
110 <height>20</height>
111 </size>
112 </property>
113 </spacer>
114 </item>
115 </layout>
116 </widget>
117 </item>
118 <item row="2" column="1" rowspan="2" colspan="2">
119 <widget class="QLineEdit" name="criticalCommandEdit"/>
120 </item>
121 <item row="0" column="2">
122 <spacer name="spacer0">
123 <property name="orientation">
124 <enum>Qt::Horizontal</enum>
125 </property>
126 <property name="sizeHint" stdset="0">
127 <size>
128 <width>40</width>
129 <height>20</height>
130 </size>
131 </property>
132 </spacer>
133 </item>
134 </layout>
135 </widget>
136 </item>
137 <item>
138 <widget class="QGroupBox" name="batteryIconGroup">
139 <property name="title">
140 <string>Battery icon(s)</string>
141 </property>
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>
147 </property>
148 <property name="sizeHint" stdset="0">
149 <size>
150 <width>40</width>
151 <height>20</height>
152 </size>
153 </property>
154 </spacer>
155 </item>
156 <item row="0" column="0" colspan="2">
157 <widget class="QLabel" name="mainColorLabel">
158 <property name="text">
159 <string>Main color</string>
160 </property>
161 </widget>
162 </item>
163 <item row="0" column="2">
164 <widget class="QToolButton" name="mainFullColorButton">
165 <property name="toolTip">
166 <string>full</string>
167 </property>
168 <property name="text">
169 <string>full</string>
170 </property>
171 </widget>
172 </item>
173 <item row="0" column="3">
174 <widget class="QToolButton" name="mainChargedColorButton">
175 <property name="toolTip">
176 <string>charged</string>
177 </property>
178 <property name="text">
179 <string>charged</string>
180 </property>
181 </widget>
182 </item>
183 <item row="0" column="4">
184 <widget class="QToolButton" name="mainEmptyColorButton">
185 <property name="toolTip">
186 <string>empty</string>
187 </property>
188 <property name="text">
189 <string>empty</string>
190 </property>
191 </widget>
192 </item>
193 <item row="1" column="0" colspan="2">
194 <widget class="QLabel" name="textColorLabel">
195 <property name="text">
196 <string>Text color</string>
197 </property>
198 </widget>
199 </item>
200 <item row="1" column="2">
201 <widget class="QToolButton" name="textFullColorButton">
202 <property name="toolTip">
203 <string>full</string>
204 </property>
205 <property name="text">
206 <string>full</string>
207 </property>
208 </widget>
209 </item>
210 <item row="1" column="3">
211 <widget class="QToolButton" name="textColorButton">
212 <property name="toolTip">
213 <string>(dis)charging</string>
214 </property>
215 <property name="text">
216 <string>(dis)charging</string>
217 </property>
218 </widget>
219 </item>
220 <item row="2" column="0" colspan="2">
221 <widget class="QLabel" name="poleLabel">
222 <property name="text">
223 <string>&quot;+ pole&quot; color</string>
224 </property>
225 </widget>
226 </item>
227 <item row="2" column="2">
228 <widget class="QToolButton" name="poleFullColorButton">
229 <property name="toolTip">
230 <string>full</string>
231 </property>
232 <property name="text">
233 <string>full</string>
234 </property>
235 </widget>
236 </item>
237 <item row="2" column="3">
238 <widget class="QToolButton" name="poleColorButton">
239 <property name="toolTip">
240 <string>(dis)charging</string>
241 </property>
242 <property name="text">
243 <string>(dis)charging</string>
244 </property>
245 </widget>
246 </item>
247 <item row="3" column="0" colspan="6">
248 <widget class="QCheckBox" name="mergeBatteriesCheck">
249 <property name="text">
250 <string>Merge Icons</string>
251 </property>
252 </widget>
253 </item>
254 </layout>
255 </widget>
256 </item>
257 <item>
258 <widget class="QCheckBox" name="showBalloonCheck">
259 <property name="text">
260 <string>Show messages as balloon tips</string>
261 </property>
262 </widget>
263 </item>
264 <item>
265 <layout class="QHBoxLayout">
266 <item>
267 <widget class="QLabel" name="pollingRateLabel">
268 <property name="sizePolicy">
269 <sizepolicy hsizetype="Minimum" vsizetype="Preferred">
270 <horstretch>0</horstretch>
271 <verstretch>0</verstretch>
272 </sizepolicy>
273 </property>
274 <property name="text">
275 <string>Polling rate (in milliseconds)</string>
276 </property>
277 </widget>
278 </item>
279 <item>
280 <widget class="QSpinBox" name="pollingRateSpin">
281 <property name="minimum">
282 <number>100</number>
283 </property>
284 <property name="maximum">
285 <number>20000</number>
286 </property>
287 <property name="singleStep">
288 <number>100</number>
289 </property>
290 </widget>
291 </item>
292 <item>
293 <spacer name="spacer3">
294 <property name="orientation">
295 <enum>Qt::Horizontal</enum>
296 </property>
297 <property name="sizeHint" stdset="0">
298 <size>
299 <width>40</width>
300 <height>20</height>
301 </size>
302 </property>
303 </spacer>
304 </item>
305 </layout>
306 </item>
307 <item>
308 <spacer name="spacer4">
309 <property name="orientation">
310 <enum>Qt::Vertical</enum>
311 </property>
312 <property name="sizeHint" stdset="0">
313 <size>
314 <width>437</width>
315 <height>20</height>
316 </size>
317 </property>
318 </spacer>
319 </item>
320 <item>
321 <widget class="QDialogButtonBox" name="buttonBox">
322 <property name="orientation">
323 <enum>Qt::Horizontal</enum>
324 </property>
325 <property name="standardButtons">
326 <set>QDialogButtonBox::Cancel|QDialogButtonBox::Ok</set>
327 </property>
328 <property name="centerButtons">
329 <bool>false</bool>
330 </property>
331 </widget>
332 </item>
333 </layout>
334 </widget>
335 <tabstops>
336 <tabstop>criticalGroup</tabstop>
337 <tabstop>criticalWarningRadio</tabstop>
338 <tabstop>criticalCommandRadio</tabstop>
339 <tabstop>mainFullColorButton</tabstop>
340 <tabstop>mainChargedColorButton</tabstop>
341 <tabstop>mainEmptyColorButton</tabstop>
342 <tabstop>textFullColorButton</tabstop>
343 <tabstop>textColorButton</tabstop>
344 <tabstop>poleFullColorButton</tabstop>
345 <tabstop>poleColorButton</tabstop>
346 <tabstop>pollingRateSpin</tabstop>
347 <tabstop>buttonBox</tabstop>
348 </tabstops>
349 <resources/>
350 <connections>
351 <connection>
352 <sender>buttonBox</sender>
353 <signal>accepted()</signal>
354 <receiver>settingsDialog</receiver>
355 <slot>accept()</slot>
356 <hints>
357 <hint type="sourcelabel">
358 <x>235</x>
359 <y>490</y>
360 </hint>
361 <hint type="destinationlabel">
362 <x>157</x>
363 <y>274</y>
364 </hint>
365 </hints>
366 </connection>
367 <connection>
368 <sender>buttonBox</sender>
369 <signal>rejected()</signal>
370 <receiver>settingsDialog</receiver>
371 <slot>reject()</slot>
372 <hints>
373 <hint type="sourcelabel">
374 <x>303</x>
375 <y>490</y>
376 </hint>
377 <hint type="destinationlabel">
378 <x>286</x>
379 <y>274</y>
380 </hint>
381 </hints>
382 </connection>
383 <connection>
384 <sender>criticalCommandRadio</sender>
385 <signal>toggled(bool)</signal>
386 <receiver>criticalCommandEdit</receiver>
387 <slot>setEnabled(bool)</slot>
388 <hints>
389 <hint type="sourcelabel">
390 <x>172</x>
391 <y>112</y>
392 </hint>
393 <hint type="destinationlabel">
394 <x>208</x>
395 <y>112</y>
396 </hint>
397 </hints>
398 </connection>
399 <connection>
400 <sender>timeoutCheck</sender>
401 <signal>toggled(bool)</signal>
402 <receiver>timeoutSpin</receiver>
403 <slot>setEnabled(bool)</slot>
404 <hints>
405 <hint type="sourcelabel">
406 <x>129</x>
407 <y>186</y>
408 </hint>
409 <hint type="destinationlabel">
410 <x>257</x>
411 <y>189</y>
412 </hint>
413 </hints>
414 </connection>
415 <connection>
416 <sender>timeoutCheck</sender>
417 <signal>toggled(bool)</signal>
418 <receiver>timeoutLabel</receiver>
419 <slot>setEnabled(bool)</slot>
420 <hints>
421 <hint type="sourcelabel">
422 <x>101</x>
423 <y>186</y>
424 </hint>
425 <hint type="destinationlabel">
426 <x>315</x>
427 <y>189</y>
428 </hint>
429 </hints>
430 </connection>
431 <connection>
432 <sender>criticalCommandRadio</sender>
433 <signal>toggled(bool)</signal>
434 <receiver>confirmCommandBox</receiver>
435 <slot>setEnabled(bool)</slot>
436 <hints>
437 <hint type="sourcelabel">
438 <x>67</x>
439 <y>109</y>
440 </hint>
441 <hint type="destinationlabel">
442 <x>180</x>
443 <y>141</y>
444 </hint>
445 </hints>
446 </connection>
447 </connections>
448 </ui>