author | sandman <sandman> | 2002-06-27 01:44:44 (UTC) |
---|---|---|
committer | sandman <sandman> | 2002-06-27 01:44:44 (UTC) |
commit | 6d0df38a805c5560b0815df62b212d4be0913154 (patch) (unidiff) | |
tree | 3d6e276d877c4bfe2f1960ec62465cb5122bcade /core | |
parent | ed8d1696ca8f0407cb7e6b91cc8d410dede5ccdc (diff) | |
download | opie-6d0df38a805c5560b0815df62b212d4be0913154.zip opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.gz opie-6d0df38a805c5560b0815df62b212d4be0913154.tar.bz2 |
Made the launcher dialog "liquid compatible":
remvoed the ui file and hand-coded the gui with smarter palette handling.
-rw-r--r-- | core/launcher/launcher.pro | 2 | ||||
-rw-r--r-- | core/launcher/shutdown.ui | 1323 | ||||
-rw-r--r-- | core/launcher/shutdownimpl.cpp | 124 | ||||
-rw-r--r-- | core/launcher/shutdownimpl.h | 15 |
4 files changed, 109 insertions, 1355 deletions
diff --git a/core/launcher/launcher.pro b/core/launcher/launcher.pro index c053662..ccf8231 100644 --- a/core/launcher/launcher.pro +++ b/core/launcher/launcher.pro | |||
@@ -70,48 +70,48 @@ SOURCES = background.cpp \ | |||
70 | $(OPIEDIR)/rsync/checksum.c \ | 70 | $(OPIEDIR)/rsync/checksum.c \ |
71 | $(OPIEDIR)/rsync/command.c \ | 71 | $(OPIEDIR)/rsync/command.c \ |
72 | $(OPIEDIR)/rsync/delta.c \ | 72 | $(OPIEDIR)/rsync/delta.c \ |
73 | $(OPIEDIR)/rsync/emit.c \ | 73 | $(OPIEDIR)/rsync/emit.c \ |
74 | $(OPIEDIR)/rsync/hex.c \ | 74 | $(OPIEDIR)/rsync/hex.c \ |
75 | $(OPIEDIR)/rsync/job.c \ | 75 | $(OPIEDIR)/rsync/job.c \ |
76 | $(OPIEDIR)/rsync/mdfour.c \ | 76 | $(OPIEDIR)/rsync/mdfour.c \ |
77 | $(OPIEDIR)/rsync/mksum.c \ | 77 | $(OPIEDIR)/rsync/mksum.c \ |
78 | $(OPIEDIR)/rsync/msg.c \ | 78 | $(OPIEDIR)/rsync/msg.c \ |
79 | $(OPIEDIR)/rsync/netint.c \ | 79 | $(OPIEDIR)/rsync/netint.c \ |
80 | $(OPIEDIR)/rsync/patch.c \ | 80 | $(OPIEDIR)/rsync/patch.c \ |
81 | $(OPIEDIR)/rsync/prototab.c \ | 81 | $(OPIEDIR)/rsync/prototab.c \ |
82 | $(OPIEDIR)/rsync/readsums.c \ | 82 | $(OPIEDIR)/rsync/readsums.c \ |
83 | $(OPIEDIR)/rsync/scoop.c \ | 83 | $(OPIEDIR)/rsync/scoop.c \ |
84 | $(OPIEDIR)/rsync/search.c \ | 84 | $(OPIEDIR)/rsync/search.c \ |
85 | $(OPIEDIR)/rsync/stats.c \ | 85 | $(OPIEDIR)/rsync/stats.c \ |
86 | $(OPIEDIR)/rsync/stream.c \ | 86 | $(OPIEDIR)/rsync/stream.c \ |
87 | $(OPIEDIR)/rsync/sumset.c \ | 87 | $(OPIEDIR)/rsync/sumset.c \ |
88 | $(OPIEDIR)/rsync/trace.c \ | 88 | $(OPIEDIR)/rsync/trace.c \ |
89 | $(OPIEDIR)/rsync/tube.c \ | 89 | $(OPIEDIR)/rsync/tube.c \ |
90 | $(OPIEDIR)/rsync/util.c \ | 90 | $(OPIEDIR)/rsync/util.c \ |
91 | $(OPIEDIR)/rsync/version.c \ | 91 | $(OPIEDIR)/rsync/version.c \ |
92 | $(OPIEDIR)/rsync/whole.c \ | 92 | $(OPIEDIR)/rsync/whole.c \ |
93 | $(OPIEDIR)/rsync/qrsync.cpp | 93 | $(OPIEDIR)/rsync/qrsync.cpp |
94 | INTERFACES= shutdown.ui syncdialog.ui | 94 | INTERFACES= syncdialog.ui |
95 | INCLUDEPATH += $(OPIEDIR)/include | 95 | INCLUDEPATH += $(OPIEDIR)/include |
96 | DEPENDPATH+= $(OPIEDIR)/include . | 96 | DEPENDPATH+= $(OPIEDIR)/include . |
97 | INCLUDEPATH += $(OPIEDIR)/core/apps/calibrate | 97 | INCLUDEPATH += $(OPIEDIR)/core/apps/calibrate |
98 | DEPENDPATH+= $(OPIEDIR)/core/apps/calibrate | 98 | DEPENDPATH+= $(OPIEDIR)/core/apps/calibrate |
99 | INCLUDEPATH += $(OPIEDIR)/rsync | 99 | INCLUDEPATH += $(OPIEDIR)/rsync |
100 | DEPENDPATH+= $(OPIEDIR)/rsync | 100 | DEPENDPATH+= $(OPIEDIR)/rsync |
101 | TARGET = qpe | 101 | TARGET = qpe |
102 | LIBS += -lqpe -lcrypt -lopie | 102 | LIBS += -lqpe -lcrypt -lopie |
103 | 103 | ||
104 | TRANSLATIONS = ../../i18n/de/qpe.ts \ | 104 | TRANSLATIONS = ../../i18n/de/qpe.ts \ |
105 | ../../i18n/en/qpe.ts \ | 105 | ../../i18n/en/qpe.ts \ |
106 | ../../i18n/es/qpe.ts \ | 106 | ../../i18n/es/qpe.ts \ |
107 | ../../i18n/fr/qpe.ts \ | 107 | ../../i18n/fr/qpe.ts \ |
108 | ../../i18n/hu/qpe.ts \ | 108 | ../../i18n/hu/qpe.ts \ |
109 | ../../i18n/ja/qpe.ts \ | 109 | ../../i18n/ja/qpe.ts \ |
110 | ../../i18n/ko/qpe.ts \ | 110 | ../../i18n/ko/qpe.ts \ |
111 | ../../i18n/no/qpe.ts \ | 111 | ../../i18n/no/qpe.ts \ |
112 | ../../i18n/pl/qpe.ts \ | 112 | ../../i18n/pl/qpe.ts \ |
113 | ../../i18n/pt/qpe.ts \ | 113 | ../../i18n/pt/qpe.ts \ |
114 | ../../i18n/pt_BR/qpe.ts \ | 114 | ../../i18n/pt_BR/qpe.ts \ |
115 | ../../i18n/sl/qpe.ts \ | 115 | ../../i18n/sl/qpe.ts \ |
116 | ../../i18n/zh_CN/qpe.ts \ | 116 | ../../i18n/zh_CN/qpe.ts \ |
117 | ../../i18n/zh_TW/qpe.ts | 117 | ../../i18n/zh_TW/qpe.ts |
diff --git a/core/launcher/shutdown.ui b/core/launcher/shutdown.ui deleted file mode 100644 index c5863df..0000000 --- a/core/launcher/shutdown.ui +++ b/dev/null | |||
@@ -1,1323 +0,0 @@ | |||
1 | <!DOCTYPE UI><UI> | ||
2 | <class>Shutdown</class> | ||
3 | <widget> | ||
4 | <class>QWidget</class> | ||
5 | <property stdset="1"> | ||
6 | <name>name</name> | ||
7 | <cstring>Form1</cstring> | ||
8 | </property> | ||
9 | <property stdset="1"> | ||
10 | <name>geometry</name> | ||
11 | <rect> | ||
12 | <x>0</x> | ||
13 | <y>0</y> | ||
14 | <width>433</width> | ||
15 | <height>465</height> | ||
16 | </rect> | ||
17 | </property> | ||
18 | <property stdset="1"> | ||
19 | <name>caption</name> | ||
20 | <string>Shut down...</string> | ||
21 | </property> | ||
22 | <property> | ||
23 | <name>layoutMargin</name> | ||
24 | </property> | ||
25 | <property> | ||
26 | <name>layoutSpacing</name> | ||
27 | </property> | ||
28 | <vbox> | ||
29 | <property stdset="1"> | ||
30 | <name>margin</name> | ||
31 | <number>6</number> | ||
32 | </property> | ||
33 | <property stdset="1"> | ||
34 | <name>spacing</name> | ||
35 | <number>3</number> | ||
36 | </property> | ||
37 | <widget> | ||
38 | <class>QButtonGroup</class> | ||
39 | <property stdset="1"> | ||
40 | <name>name</name> | ||
41 | <cstring>ButtonGroup1</cstring> | ||
42 | </property> | ||
43 | <property stdset="1"> | ||
44 | <name>title</name> | ||
45 | <string>Terminate</string> | ||
46 | </property> | ||
47 | <property> | ||
48 | <name>layoutMargin</name> | ||
49 | </property> | ||
50 | <property> | ||
51 | <name>layoutSpacing</name> | ||
52 | </property> | ||
53 | <grid> | ||
54 | <property stdset="1"> | ||
55 | <name>margin</name> | ||
56 | <number>7</number> | ||
57 | </property> | ||
58 | <property stdset="1"> | ||
59 | <name>spacing</name> | ||
60 | <number>3</number> | ||
61 | </property> | ||
62 | <widget row="1" column="1" > | ||
63 | <class>QPushButton</class> | ||
64 | <property stdset="1"> | ||
65 | <name>name</name> | ||
66 | <cstring>quit</cstring> | ||
67 | </property> | ||
68 | <property stdset="1"> | ||
69 | <name>sizePolicy</name> | ||
70 | <sizepolicy> | ||
71 | <hsizetype>3</hsizetype> | ||
72 | <vsizetype>0</vsizetype> | ||
73 | </sizepolicy> | ||
74 | </property> | ||
75 | <property stdset="1"> | ||
76 | <name>palette</name> | ||
77 | <palette> | ||
78 | <active> | ||
79 | <color> | ||
80 | <red>0</red> | ||
81 | <green>0</green> | ||
82 | <blue>0</blue> | ||
83 | </color> | ||
84 | <color> | ||
85 | <red>236</red> | ||
86 | <green>236</green> | ||
87 | <blue>179</blue> | ||
88 | </color> | ||
89 | <color> | ||
90 | <red>255</red> | ||
91 | <green>255</green> | ||
92 | <blue>255</blue> | ||
93 | </color> | ||
94 | <color> | ||
95 | <red>245</red> | ||
96 | <green>245</green> | ||
97 | <blue>217</blue> | ||
98 | </color> | ||
99 | <color> | ||
100 | <red>118</red> | ||
101 | <green>118</green> | ||
102 | <blue>89</blue> | ||
103 | </color> | ||
104 | <color> | ||
105 | <red>157</red> | ||
106 | <green>157</green> | ||
107 | <blue>119</blue> | ||
108 | </color> | ||
109 | <color> | ||
110 | <red>0</red> | ||
111 | <green>0</green> | ||
112 | <blue>0</blue> | ||
113 | </color> | ||
114 | <color> | ||
115 | <red>255</red> | ||
116 | <green>255</green> | ||
117 | <blue>255</blue> | ||
118 | </color> | ||
119 | <color> | ||
120 | <red>0</red> | ||
121 | <green>0</green> | ||
122 | <blue>0</blue> | ||
123 | </color> | ||
124 | <color> | ||
125 | <red>255</red> | ||
126 | <green>255</green> | ||
127 | <blue>255</blue> | ||
128 | </color> | ||
129 | <color> | ||
130 | <red>222</red> | ||
131 | <green>222</green> | ||
132 | <blue>222</blue> | ||
133 | </color> | ||
134 | <color> | ||
135 | <red>0</red> | ||
136 | <green>0</green> | ||
137 | <blue>0</blue> | ||
138 | </color> | ||
139 | <color> | ||
140 | <red>0</red> | ||
141 | <green>0</green> | ||
142 | <blue>128</blue> | ||
143 | </color> | ||
144 | <color> | ||
145 | <red>255</red> | ||
146 | <green>255</green> | ||
147 | <blue>255</blue> | ||
148 | </color> | ||
149 | </active> | ||
150 | <disabled> | ||
151 | <color> | ||
152 | <red>128</red> | ||
153 | <green>128</green> | ||
154 | <blue>128</blue> | ||
155 | </color> | ||
156 | <color> | ||
157 | <red>236</red> | ||
158 | <green>236</green> | ||
159 | <blue>179</blue> | ||
160 | </color> | ||
161 | <color> | ||
162 | <red>255</red> | ||
163 | <green>255</green> | ||
164 | <blue>255</blue> | ||
165 | </color> | ||
166 | <color> | ||
167 | <red>255</red> | ||
168 | <green>255</green> | ||
169 | <blue>209</blue> | ||
170 | </color> | ||
171 | <color> | ||
172 | <red>118</red> | ||
173 | <green>118</green> | ||
174 | <blue>89</blue> | ||
175 | </color> | ||
176 | <color> | ||
177 | <red>157</red> | ||
178 | <green>157</green> | ||
179 | <blue>119</blue> | ||
180 | </color> | ||
181 | <color> | ||
182 | <red>128</red> | ||
183 | <green>128</green> | ||
184 | <blue>128</blue> | ||
185 | </color> | ||
186 | <color> | ||
187 | <red>255</red> | ||
188 | <green>255</green> | ||
189 | <blue>255</blue> | ||
190 | </color> | ||
191 | <color> | ||
192 | <red>128</red> | ||
193 | <green>128</green> | ||
194 | <blue>128</blue> | ||
195 | </color> | ||
196 | <color> | ||
197 | <red>255</red> | ||
198 | <green>255</green> | ||
199 | <blue>255</blue> | ||
200 | </color> | ||
201 | <color> | ||
202 | <red>222</red> | ||
203 | <green>222</green> | ||
204 | <blue>222</blue> | ||
205 | </color> | ||
206 | <color> | ||
207 | <red>0</red> | ||
208 | <green>0</green> | ||
209 | <blue>0</blue> | ||
210 | </color> | ||
211 | <color> | ||
212 | <red>0</red> | ||
213 | <green>0</green> | ||
214 | <blue>128</blue> | ||
215 | </color> | ||
216 | <color> | ||
217 | <red>255</red> | ||
218 | <green>255</green> | ||
219 | <blue>255</blue> | ||
220 | </color> | ||
221 | </disabled> | ||
222 | <inactive> | ||
223 | <color> | ||
224 | <red>0</red> | ||
225 | <green>0</green> | ||
226 | <blue>0</blue> | ||
227 | </color> | ||
228 | <color> | ||
229 | <red>236</red> | ||
230 | <green>236</green> | ||
231 | <blue>179</blue> | ||
232 | </color> | ||
233 | <color> | ||
234 | <red>255</red> | ||
235 | <green>255</green> | ||
236 | <blue>255</blue> | ||
237 | </color> | ||
238 | <color> | ||
239 | <red>255</red> | ||
240 | <green>255</green> | ||
241 | <blue>209</blue> | ||
242 | </color> | ||
243 | <color> | ||
244 | <red>118</red> | ||
245 | <green>118</green> | ||
246 | <blue>89</blue> | ||
247 | </color> | ||
248 | <color> | ||
249 | <red>157</red> | ||
250 | <green>157</green> | ||
251 | <blue>119</blue> | ||
252 | </color> | ||
253 | <color> | ||
254 | <red>0</red> | ||
255 | <green>0</green> | ||
256 | <blue>0</blue> | ||
257 | </color> | ||
258 | <color> | ||
259 | <red>255</red> | ||
260 | <green>255</green> | ||
261 | <blue>255</blue> | ||
262 | </color> | ||
263 | <color> | ||
264 | <red>0</red> | ||
265 | <green>0</green> | ||
266 | <blue>0</blue> | ||
267 | </color> | ||
268 | <color> | ||
269 | <red>255</red> | ||
270 | <green>255</green> | ||
271 | <blue>255</blue> | ||
272 | </color> | ||
273 | <color> | ||
274 | <red>222</red> | ||
275 | <green>222</green> | ||
276 | <blue>222</blue> | ||
277 | </color> | ||
278 | <color> | ||
279 | <red>0</red> | ||
280 | <green>0</green> | ||
281 | <blue>0</blue> | ||
282 | </color> | ||
283 | <color> | ||
284 | <red>0</red> | ||
285 | <green>0</green> | ||
286 | <blue>128</blue> | ||
287 | </color> | ||
288 | <color> | ||
289 | <red>255</red> | ||
290 | <green>255</green> | ||
291 | <blue>255</blue> | ||
292 | </color> | ||
293 | </inactive> | ||
294 | </palette> | ||
295 | </property> | ||
296 | <property stdset="1"> | ||
297 | <name>text</name> | ||
298 | <string>Terminate Opie</string> | ||
299 | </property> | ||
300 | <property stdset="1"> | ||
301 | <name>buttonGroupId</name> | ||
302 | <number>4</number> | ||
303 | </property> | ||
304 | </widget> | ||
305 | <widget row="1" column="0" > | ||
306 | <class>QPushButton</class> | ||
307 | <property stdset="1"> | ||
308 | <name>name</name> | ||
309 | <cstring>reboot</cstring> | ||
310 | </property> | ||
311 | <property stdset="1"> | ||
312 | <name>sizePolicy</name> | ||
313 | <sizepolicy> | ||
314 | <hsizetype>3</hsizetype> | ||
315 | <vsizetype>0</vsizetype> | ||
316 | </sizepolicy> | ||
317 | </property> | ||
318 | <property stdset="1"> | ||
319 | <name>palette</name> | ||
320 | <palette> | ||
321 | <active> | ||
322 | <color> | ||
323 | <red>0</red> | ||
324 | <green>0</green> | ||
325 | <blue>0</blue> | ||
326 | </color> | ||
327 | <color> | ||
328 | <red>236</red> | ||
329 | <green>183</green> | ||
330 | <blue>181</blue> | ||
331 | </color> | ||
332 | <color> | ||
333 | <red>255</red> | ||
334 | <green>255</green> | ||
335 | <blue>255</blue> | ||
336 | </color> | ||
337 | <color> | ||
338 | <red>245</red> | ||
339 | <green>219</green> | ||
340 | <blue>218</blue> | ||
341 | </color> | ||
342 | <color> | ||
343 | <red>118</red> | ||
344 | <green>92</green> | ||
345 | <blue>91</blue> | ||
346 | </color> | ||
347 | <color> | ||
348 | <red>157</red> | ||
349 | <green>122</green> | ||
350 | <blue>121</blue> | ||
351 | </color> | ||
352 | <color> | ||
353 | <red>0</red> | ||
354 | <green>0</green> | ||
355 | <blue>0</blue> | ||
356 | </color> | ||
357 | <color> | ||
358 | <red>255</red> | ||
359 | <green>255</green> | ||
360 | <blue>255</blue> | ||
361 | </color> | ||
362 | <color> | ||
363 | <red>0</red> | ||
364 | <green>0</green> | ||
365 | <blue>0</blue> | ||
366 | </color> | ||
367 | <color> | ||
368 | <red>255</red> | ||
369 | <green>255</green> | ||
370 | <blue>255</blue> | ||
371 | </color> | ||
372 | <color> | ||
373 | <red>222</red> | ||
374 | <green>222</green> | ||
375 | <blue>222</blue> | ||
376 | </color> | ||
377 | <color> | ||
378 | <red>0</red> | ||
379 | <green>0</green> | ||
380 | <blue>0</blue> | ||
381 | </color> | ||
382 | <color> | ||
383 | <red>0</red> | ||
384 | <green>0</green> | ||
385 | <blue>128</blue> | ||
386 | </color> | ||
387 | <color> | ||
388 | <red>255</red> | ||
389 | <green>255</green> | ||
390 | <blue>255</blue> | ||
391 | </color> | ||
392 | </active> | ||
393 | <disabled> | ||
394 | <color> | ||
395 | <red>128</red> | ||
396 | <green>128</green> | ||
397 | <blue>128</blue> | ||
398 | </color> | ||
399 | <color> | ||
400 | <red>236</red> | ||
401 | <green>183</green> | ||
402 | <blue>181</blue> | ||
403 | </color> | ||
404 | <color> | ||
405 | <red>255</red> | ||
406 | <green>255</green> | ||
407 | <blue>255</blue> | ||
408 | </color> | ||
409 | <color> | ||
410 | <red>255</red> | ||
411 | <green>213</green> | ||
412 | <blue>212</blue> | ||
413 | </color> | ||
414 | <color> | ||
415 | <red>118</red> | ||
416 | <green>92</green> | ||
417 | <blue>91</blue> | ||
418 | </color> | ||
419 | <color> | ||
420 | <red>157</red> | ||
421 | <green>122</green> | ||
422 | <blue>121</blue> | ||
423 | </color> | ||
424 | <color> | ||
425 | <red>128</red> | ||
426 | <green>128</green> | ||
427 | <blue>128</blue> | ||
428 | </color> | ||
429 | <color> | ||
430 | <red>255</red> | ||
431 | <green>255</green> | ||
432 | <blue>255</blue> | ||
433 | </color> | ||
434 | <color> | ||
435 | <red>128</red> | ||
436 | <green>128</green> | ||
437 | <blue>128</blue> | ||
438 | </color> | ||
439 | <color> | ||
440 | <red>255</red> | ||
441 | <green>255</green> | ||
442 | <blue>255</blue> | ||
443 | </color> | ||
444 | <color> | ||
445 | <red>222</red> | ||
446 | <green>222</green> | ||
447 | <blue>222</blue> | ||
448 | </color> | ||
449 | <color> | ||
450 | <red>0</red> | ||
451 | <green>0</green> | ||
452 | <blue>0</blue> | ||
453 | </color> | ||
454 | <color> | ||
455 | <red>0</red> | ||
456 | <green>0</green> | ||
457 | <blue>128</blue> | ||
458 | </color> | ||
459 | <color> | ||
460 | <red>255</red> | ||
461 | <green>255</green> | ||
462 | <blue>255</blue> | ||
463 | </color> | ||
464 | </disabled> | ||
465 | <inactive> | ||
466 | <color> | ||
467 | <red>0</red> | ||
468 | <green>0</green> | ||
469 | <blue>0</blue> | ||
470 | </color> | ||
471 | <color> | ||
472 | <red>236</red> | ||
473 | <green>183</green> | ||
474 | <blue>181</blue> | ||
475 | </color> | ||
476 | <color> | ||
477 | <red>255</red> | ||
478 | <green>255</green> | ||
479 | <blue>255</blue> | ||
480 | </color> | ||
481 | <color> | ||
482 | <red>255</red> | ||
483 | <green>213</green> | ||
484 | <blue>212</blue> | ||
485 | </color> | ||
486 | <color> | ||
487 | <red>118</red> | ||
488 | <green>92</green> | ||
489 | <blue>91</blue> | ||
490 | </color> | ||
491 | <color> | ||
492 | <red>157</red> | ||
493 | <green>122</green> | ||
494 | <blue>121</blue> | ||
495 | </color> | ||
496 | <color> | ||
497 | <red>0</red> | ||
498 | <green>0</green> | ||
499 | <blue>0</blue> | ||
500 | </color> | ||
501 | <color> | ||
502 | <red>255</red> | ||
503 | <green>255</green> | ||
504 | <blue>255</blue> | ||
505 | </color> | ||
506 | <color> | ||
507 | <red>0</red> | ||
508 | <green>0</green> | ||
509 | <blue>0</blue> | ||
510 | </color> | ||
511 | <color> | ||
512 | <red>255</red> | ||
513 | <green>255</green> | ||
514 | <blue>255</blue> | ||
515 | </color> | ||
516 | <color> | ||
517 | <red>222</red> | ||
518 | <green>222</green> | ||
519 | <blue>222</blue> | ||
520 | </color> | ||
521 | <color> | ||
522 | <red>0</red> | ||
523 | <green>0</green> | ||
524 | <blue>0</blue> | ||
525 | </color> | ||
526 | <color> | ||
527 | <red>0</red> | ||
528 | <green>0</green> | ||
529 | <blue>128</blue> | ||
530 | </color> | ||
531 | <color> | ||
532 | <red>255</red> | ||
533 | <green>255</green> | ||
534 | <blue>255</blue> | ||
535 | </color> | ||
536 | </inactive> | ||
537 | </palette> | ||
538 | </property> | ||
539 | <property stdset="1"> | ||
540 | <name>text</name> | ||
541 | <string>Reboot</string> | ||
542 | </property> | ||
543 | <property stdset="1"> | ||
544 | <name>buttonGroupId</name> | ||
545 | <number>2</number> | ||
546 | </property> | ||
547 | </widget> | ||
548 | <widget row="0" column="1" > | ||
549 | <class>QPushButton</class> | ||
550 | <property stdset="1"> | ||
551 | <name>name</name> | ||
552 | <cstring>restart</cstring> | ||
553 | </property> | ||
554 | <property stdset="1"> | ||
555 | <name>palette</name> | ||
556 | <palette> | ||
557 | <active> | ||
558 | <color> | ||
559 | <red>0</red> | ||
560 | <green>0</green> | ||
561 | <blue>0</blue> | ||
562 | </color> | ||
563 | <color> | ||
564 | <red>236</red> | ||
565 | <green>236</green> | ||
566 | <blue>179</blue> | ||
567 | </color> | ||
568 | <color> | ||
569 | <red>255</red> | ||
570 | <green>255</green> | ||
571 | <blue>255</blue> | ||
572 | </color> | ||
573 | <color> | ||
574 | <red>245</red> | ||
575 | <green>245</green> | ||
576 | <blue>217</blue> | ||
577 | </color> | ||
578 | <color> | ||
579 | <red>118</red> | ||
580 | <green>118</green> | ||
581 | <blue>89</blue> | ||
582 | </color> | ||
583 | <color> | ||
584 | <red>157</red> | ||
585 | <green>157</green> | ||
586 | <blue>119</blue> | ||
587 | </color> | ||
588 | <color> | ||
589 | <red>0</red> | ||
590 | <green>0</green> | ||
591 | <blue>0</blue> | ||
592 | </color> | ||
593 | <color> | ||
594 | <red>255</red> | ||
595 | <green>255</green> | ||
596 | <blue>255</blue> | ||
597 | </color> | ||
598 | <color> | ||
599 | <red>0</red> | ||
600 | <green>0</green> | ||
601 | <blue>0</blue> | ||
602 | </color> | ||
603 | <color> | ||
604 | <red>255</red> | ||
605 | <green>255</green> | ||
606 | <blue>255</blue> | ||
607 | </color> | ||
608 | <color> | ||
609 | <red>222</red> | ||
610 | <green>222</green> | ||
611 | <blue>222</blue> | ||
612 | </color> | ||
613 | <color> | ||
614 | <red>0</red> | ||
615 | <green>0</green> | ||
616 | <blue>0</blue> | ||
617 | </color> | ||
618 | <color> | ||
619 | <red>0</red> | ||
620 | <green>0</green> | ||
621 | <blue>128</blue> | ||
622 | </color> | ||
623 | <color> | ||
624 | <red>255</red> | ||
625 | <green>255</green> | ||
626 | <blue>255</blue> | ||
627 | </color> | ||
628 | </active> | ||
629 | <disabled> | ||
630 | <color> | ||
631 | <red>128</red> | ||
632 | <green>128</green> | ||
633 | <blue>128</blue> | ||
634 | </color> | ||
635 | <color> | ||
636 | <red>236</red> | ||
637 | <green>236</green> | ||
638 | <blue>179</blue> | ||
639 | </color> | ||
640 | <color> | ||
641 | <red>255</red> | ||
642 | <green>255</green> | ||
643 | <blue>255</blue> | ||
644 | </color> | ||
645 | <color> | ||
646 | <red>255</red> | ||
647 | <green>255</green> | ||
648 | <blue>209</blue> | ||
649 | </color> | ||
650 | <color> | ||
651 | <red>118</red> | ||
652 | <green>118</green> | ||
653 | <blue>89</blue> | ||
654 | </color> | ||
655 | <color> | ||
656 | <red>157</red> | ||
657 | <green>157</green> | ||
658 | <blue>119</blue> | ||
659 | </color> | ||
660 | <color> | ||
661 | <red>128</red> | ||
662 | <green>128</green> | ||
663 | <blue>128</blue> | ||
664 | </color> | ||
665 | <color> | ||
666 | <red>255</red> | ||
667 | <green>255</green> | ||
668 | <blue>255</blue> | ||
669 | </color> | ||
670 | <color> | ||
671 | <red>128</red> | ||
672 | <green>128</green> | ||
673 | <blue>128</blue> | ||
674 | </color> | ||
675 | <color> | ||
676 | <red>255</red> | ||
677 | <green>255</green> | ||
678 | <blue>255</blue> | ||
679 | </color> | ||
680 | <color> | ||
681 | <red>222</red> | ||
682 | <green>222</green> | ||
683 | <blue>222</blue> | ||
684 | </color> | ||
685 | <color> | ||
686 | <red>0</red> | ||
687 | <green>0</green> | ||
688 | <blue>0</blue> | ||
689 | </color> | ||
690 | <color> | ||
691 | <red>0</red> | ||
692 | <green>0</green> | ||
693 | <blue>128</blue> | ||
694 | </color> | ||
695 | <color> | ||
696 | <red>255</red> | ||
697 | <green>255</green> | ||
698 | <blue>255</blue> | ||
699 | </color> | ||
700 | </disabled> | ||
701 | <inactive> | ||
702 | <color> | ||
703 | <red>0</red> | ||
704 | <green>0</green> | ||
705 | <blue>0</blue> | ||
706 | </color> | ||
707 | <color> | ||
708 | <red>236</red> | ||
709 | <green>236</green> | ||
710 | <blue>179</blue> | ||
711 | </color> | ||
712 | <color> | ||
713 | <red>255</red> | ||
714 | <green>255</green> | ||
715 | <blue>255</blue> | ||
716 | </color> | ||
717 | <color> | ||
718 | <red>255</red> | ||
719 | <green>255</green> | ||
720 | <blue>209</blue> | ||
721 | </color> | ||
722 | <color> | ||
723 | <red>118</red> | ||
724 | <green>118</green> | ||
725 | <blue>89</blue> | ||
726 | </color> | ||
727 | <color> | ||
728 | <red>157</red> | ||
729 | <green>157</green> | ||
730 | <blue>119</blue> | ||
731 | </color> | ||
732 | <color> | ||
733 | <red>0</red> | ||
734 | <green>0</green> | ||
735 | <blue>0</blue> | ||
736 | </color> | ||
737 | <color> | ||
738 | <red>255</red> | ||
739 | <green>255</green> | ||
740 | <blue>255</blue> | ||
741 | </color> | ||
742 | <color> | ||
743 | <red>0</red> | ||
744 | <green>0</green> | ||
745 | <blue>0</blue> | ||
746 | </color> | ||
747 | <color> | ||
748 | <red>255</red> | ||
749 | <green>255</green> | ||
750 | <blue>255</blue> | ||
751 | </color> | ||
752 | <color> | ||
753 | <red>222</red> | ||
754 | <green>222</green> | ||
755 | <blue>222</blue> | ||
756 | </color> | ||
757 | <color> | ||
758 | <red>0</red> | ||
759 | <green>0</green> | ||
760 | <blue>0</blue> | ||
761 | </color> | ||
762 | <color> | ||
763 | <red>0</red> | ||
764 | <green>0</green> | ||
765 | <blue>128</blue> | ||
766 | </color> | ||
767 | <color> | ||
768 | <red>255</red> | ||
769 | <green>255</green> | ||
770 | <blue>255</blue> | ||
771 | </color> | ||
772 | </inactive> | ||
773 | </palette> | ||
774 | </property> | ||
775 | <property stdset="1"> | ||
776 | <name>text</name> | ||
777 | <string>Restart Opie</string> | ||
778 | </property> | ||
779 | <property stdset="1"> | ||
780 | <name>buttonGroupId</name> | ||
781 | <number>3</number> | ||
782 | </property> | ||
783 | </widget> | ||
784 | <widget row="0" column="0" > | ||
785 | <class>QPushButton</class> | ||
786 | <property stdset="1"> | ||
787 | <name>name</name> | ||
788 | <cstring>shutdown</cstring> | ||
789 | </property> | ||
790 | <property stdset="1"> | ||
791 | <name>palette</name> | ||
792 | <palette> | ||
793 | <active> | ||
794 | <color> | ||
795 | <red>0</red> | ||
796 | <green>0</green> | ||
797 | <blue>0</blue> | ||
798 | </color> | ||
799 | <color> | ||
800 | <red>236</red> | ||
801 | <green>183</green> | ||
802 | <blue>181</blue> | ||
803 | </color> | ||
804 | <color> | ||
805 | <red>255</red> | ||
806 | <green>255</green> | ||
807 | <blue>255</blue> | ||
808 | </color> | ||
809 | <color> | ||
810 | <red>245</red> | ||
811 | <green>219</green> | ||
812 | <blue>218</blue> | ||
813 | </color> | ||
814 | <color> | ||
815 | <red>118</red> | ||
816 | <green>92</green> | ||
817 | <blue>91</blue> | ||
818 | </color> | ||
819 | <color> | ||
820 | <red>157</red> | ||
821 | <green>122</green> | ||
822 | <blue>121</blue> | ||
823 | </color> | ||
824 | <color> | ||
825 | <red>0</red> | ||
826 | <green>0</green> | ||
827 | <blue>0</blue> | ||
828 | </color> | ||
829 | <color> | ||
830 | <red>255</red> | ||
831 | <green>255</green> | ||
832 | <blue>255</blue> | ||
833 | </color> | ||
834 | <color> | ||
835 | <red>0</red> | ||
836 | <green>0</green> | ||
837 | <blue>0</blue> | ||
838 | </color> | ||
839 | <color> | ||
840 | <red>255</red> | ||
841 | <green>255</green> | ||
842 | <blue>255</blue> | ||
843 | </color> | ||
844 | <color> | ||
845 | <red>222</red> | ||
846 | <green>222</green> | ||
847 | <blue>222</blue> | ||
848 | </color> | ||
849 | <color> | ||
850 | <red>0</red> | ||
851 | <green>0</green> | ||
852 | <blue>0</blue> | ||
853 | </color> | ||
854 | <color> | ||
855 | <red>0</red> | ||
856 | <green>0</green> | ||
857 | <blue>128</blue> | ||
858 | </color> | ||
859 | <color> | ||
860 | <red>255</red> | ||
861 | <green>255</green> | ||
862 | <blue>255</blue> | ||
863 | </color> | ||
864 | </active> | ||
865 | <disabled> | ||
866 | <color> | ||
867 | <red>128</red> | ||
868 | <green>128</green> | ||
869 | <blue>128</blue> | ||
870 | </color> | ||
871 | <color> | ||
872 | <red>236</red> | ||
873 | <green>183</green> | ||
874 | <blue>181</blue> | ||
875 | </color> | ||
876 | <color> | ||
877 | <red>255</red> | ||
878 | <green>255</green> | ||
879 | <blue>255</blue> | ||
880 | </color> | ||
881 | <color> | ||
882 | <red>255</red> | ||
883 | <green>213</green> | ||
884 | <blue>212</blue> | ||
885 | </color> | ||
886 | <color> | ||
887 | <red>118</red> | ||
888 | <green>92</green> | ||
889 | <blue>91</blue> | ||
890 | </color> | ||
891 | <color> | ||
892 | <red>157</red> | ||
893 | <green>122</green> | ||
894 | <blue>121</blue> | ||
895 | </color> | ||
896 | <color> | ||
897 | <red>128</red> | ||
898 | <green>128</green> | ||
899 | <blue>128</blue> | ||
900 | </color> | ||
901 | <color> | ||
902 | <red>255</red> | ||
903 | <green>255</green> | ||
904 | <blue>255</blue> | ||
905 | </color> | ||
906 | <color> | ||
907 | <red>128</red> | ||
908 | <green>128</green> | ||
909 | <blue>128</blue> | ||
910 | </color> | ||
911 | <color> | ||
912 | <red>255</red> | ||
913 | <green>255</green> | ||
914 | <blue>255</blue> | ||
915 | </color> | ||
916 | <color> | ||
917 | <red>222</red> | ||
918 | <green>222</green> | ||
919 | <blue>222</blue> | ||
920 | </color> | ||
921 | <color> | ||
922 | <red>0</red> | ||
923 | <green>0</green> | ||
924 | <blue>0</blue> | ||
925 | </color> | ||
926 | <color> | ||
927 | <red>0</red> | ||
928 | <green>0</green> | ||
929 | <blue>128</blue> | ||
930 | </color> | ||
931 | <color> | ||
932 | <red>255</red> | ||
933 | <green>255</green> | ||
934 | <blue>255</blue> | ||
935 | </color> | ||
936 | </disabled> | ||
937 | <inactive> | ||
938 | <color> | ||
939 | <red>0</red> | ||
940 | <green>0</green> | ||
941 | <blue>0</blue> | ||
942 | </color> | ||
943 | <color> | ||
944 | <red>236</red> | ||
945 | <green>183</green> | ||
946 | <blue>181</blue> | ||
947 | </color> | ||
948 | <color> | ||
949 | <red>255</red> | ||
950 | <green>255</green> | ||
951 | <blue>255</blue> | ||
952 | </color> | ||
953 | <color> | ||
954 | <red>255</red> | ||
955 | <green>213</green> | ||
956 | <blue>212</blue> | ||
957 | </color> | ||
958 | <color> | ||
959 | <red>118</red> | ||
960 | <green>92</green> | ||
961 | <blue>91</blue> | ||
962 | </color> | ||
963 | <color> | ||
964 | <red>157</red> | ||
965 | <green>122</green> | ||
966 | <blue>121</blue> | ||
967 | </color> | ||
968 | <color> | ||
969 | <red>0</red> | ||
970 | <green>0</green> | ||
971 | <blue>0</blue> | ||
972 | </color> | ||
973 | <color> | ||
974 | <red>255</red> | ||
975 | <green>255</green> | ||
976 | <blue>255</blue> | ||
977 | </color> | ||
978 | <color> | ||
979 | <red>0</red> | ||
980 | <green>0</green> | ||
981 | <blue>0</blue> | ||
982 | </color> | ||
983 | <color> | ||
984 | <red>255</red> | ||
985 | <green>255</green> | ||
986 | <blue>255</blue> | ||
987 | </color> | ||
988 | <color> | ||
989 | <red>222</red> | ||
990 | <green>222</green> | ||
991 | <blue>222</blue> | ||
992 | </color> | ||
993 | <color> | ||
994 | <red>0</red> | ||
995 | <green>0</green> | ||
996 | <blue>0</blue> | ||
997 | </color> | ||
998 | <color> | ||
999 | <red>0</red> | ||
1000 | <green>0</green> | ||
1001 | <blue>128</blue> | ||
1002 | </color> | ||
1003 | <color> | ||
1004 | <red>255</red> | ||
1005 | <green>255</green> | ||
1006 | <blue>255</blue> | ||
1007 | </color> | ||
1008 | </inactive> | ||
1009 | </palette> | ||
1010 | </property> | ||
1011 | <property stdset="1"> | ||
1012 | <name>text</name> | ||
1013 | <string>Shutdown</string> | ||
1014 | </property> | ||
1015 | <property stdset="1"> | ||
1016 | <name>buttonGroupId</name> | ||
1017 | <number>1</number> | ||
1018 | </property> | ||
1019 | </widget> | ||
1020 | </grid> | ||
1021 | </widget> | ||
1022 | <widget> | ||
1023 | <class>QLabel</class> | ||
1024 | <property stdset="1"> | ||
1025 | <name>name</name> | ||
1026 | <cstring>info</cstring> | ||
1027 | </property> | ||
1028 | <property stdset="1"> | ||
1029 | <name>text</name> | ||
1030 | <string><p> | ||
1031 | These termination options are provided primarily for use while developing and testing the Opie system. In a normal environment, these concepts are unnecessary.</string> | ||
1032 | </property> | ||
1033 | </widget> | ||
1034 | <widget> | ||
1035 | <class>QProgressBar</class> | ||
1036 | <property stdset="1"> | ||
1037 | <name>name</name> | ||
1038 | <cstring>progressBar</cstring> | ||
1039 | </property> | ||
1040 | <property stdset="1"> | ||
1041 | <name>frameShape</name> | ||
1042 | <enum>Panel</enum> | ||
1043 | </property> | ||
1044 | <property stdset="1"> | ||
1045 | <name>frameShadow</name> | ||
1046 | <enum>Sunken</enum> | ||
1047 | </property> | ||
1048 | <property stdset="1"> | ||
1049 | <name>totalSteps</name> | ||
1050 | <number>20</number> | ||
1051 | </property> | ||
1052 | <property stdset="1"> | ||
1053 | <name>indicatorFollowsStyle</name> | ||
1054 | <bool>false</bool> | ||
1055 | </property> | ||
1056 | </widget> | ||
1057 | <spacer> | ||
1058 | <property> | ||
1059 | <name>name</name> | ||
1060 | <cstring>Spacer2</cstring> | ||
1061 | </property> | ||
1062 | <property stdset="1"> | ||
1063 | <name>orientation</name> | ||
1064 | <enum>Vertical</enum> | ||
1065 | </property> | ||
1066 | <property stdset="1"> | ||
1067 | <name>sizeType</name> | ||
1068 | <enum>Expanding</enum> | ||
1069 | </property> | ||
1070 | <property> | ||
1071 | <name>sizeHint</name> | ||
1072 | <size> | ||
1073 | <width>20</width> | ||
1074 | <height>20</height> | ||
1075 | </size> | ||
1076 | </property> | ||
1077 | </spacer> | ||
1078 | <widget> | ||
1079 | <class>QPushButton</class> | ||
1080 | <property stdset="1"> | ||
1081 | <name>name</name> | ||
1082 | <cstring>cancel</cstring> | ||
1083 | </property> | ||
1084 | <property stdset="1"> | ||
1085 | <name>sizePolicy</name> | ||
1086 | <sizepolicy> | ||
1087 | <hsizetype>1</hsizetype> | ||
1088 | <vsizetype>7</vsizetype> | ||
1089 | </sizepolicy> | ||
1090 | </property> | ||
1091 | <property stdset="1"> | ||
1092 | <name>palette</name> | ||
1093 | <palette> | ||
1094 | <active> | ||
1095 | <color> | ||
1096 | <red>0</red> | ||
1097 | <green>0</green> | ||
1098 | <blue>0</blue> | ||
1099 | </color> | ||
1100 | <color> | ||
1101 | <red>181</red> | ||
1102 | <green>222</green> | ||
1103 | <blue>178</blue> | ||
1104 | </color> | ||
1105 | <color> | ||
1106 | <red>255</red> | ||
1107 | <green>255</green> | ||
1108 | <blue>255</blue> | ||
1109 | </color> | ||
1110 | <color> | ||
1111 | <red>218</red> | ||
1112 | <green>238</green> | ||
1113 | <blue>216</blue> | ||
1114 | </color> | ||
1115 | <color> | ||
1116 | <red>90</red> | ||
1117 | <green>111</green> | ||
1118 | <blue>89</blue> | ||
1119 | </color> | ||
1120 | <color> | ||
1121 | <red>120</red> | ||
1122 | <green>148</green> | ||
1123 | <blue>118</blue> | ||
1124 | </color> | ||
1125 | <color> | ||
1126 | <red>0</red> | ||
1127 | <green>0</green> | ||
1128 | <blue>0</blue> | ||
1129 | </color> | ||
1130 | <color> | ||
1131 | <red>255</red> | ||
1132 | <green>255</green> | ||
1133 | <blue>255</blue> | ||
1134 | </color> | ||
1135 | <color> | ||
1136 | <red>0</red> | ||
1137 | <green>0</green> | ||
1138 | <blue>0</blue> | ||
1139 | </color> | ||
1140 | <color> | ||
1141 | <red>255</red> | ||
1142 | <green>255</green> | ||
1143 | <blue>255</blue> | ||
1144 | </color> | ||
1145 | <color> | ||
1146 | <red>174</red> | ||
1147 | <green>222</green> | ||
1148 | <blue>158</blue> | ||
1149 | </color> | ||
1150 | <color> | ||
1151 | <red>0</red> | ||
1152 | <green>0</green> | ||
1153 | <blue>0</blue> | ||
1154 | </color> | ||
1155 | <color> | ||
1156 | <red>0</red> | ||
1157 | <green>0</green> | ||
1158 | <blue>128</blue> | ||
1159 | </color> | ||
1160 | <color> | ||
1161 | <red>255</red> | ||
1162 | <green>255</green> | ||
1163 | <blue>255</blue> | ||
1164 | </color> | ||
1165 | </active> | ||
1166 | <disabled> | ||
1167 | <color> | ||
1168 | <red>128</red> | ||
1169 | <green>128</green> | ||
1170 | <blue>128</blue> | ||
1171 | </color> | ||
1172 | <color> | ||
1173 | <red>181</red> | ||
1174 | <green>222</green> | ||
1175 | <blue>178</blue> | ||
1176 | </color> | ||
1177 | <color> | ||
1178 | <red>255</red> | ||
1179 | <green>255</green> | ||
1180 | <blue>255</blue> | ||
1181 | </color> | ||
1182 | <color> | ||
1183 | <red>207</red> | ||
1184 | <green>255</green> | ||
1185 | <blue>204</blue> | ||
1186 | </color> | ||
1187 | <color> | ||
1188 | <red>90</red> | ||
1189 | <green>111</green> | ||
1190 | <blue>89</blue> | ||
1191 | </color> | ||
1192 | <color> | ||
1193 | <red>120</red> | ||
1194 | <green>148</green> | ||
1195 | <blue>118</blue> | ||
1196 | </color> | ||
1197 | <color> | ||
1198 | <red>128</red> | ||
1199 | <green>128</green> | ||
1200 | <blue>128</blue> | ||
1201 | </color> | ||
1202 | <color> | ||
1203 | <red>255</red> | ||
1204 | <green>255</green> | ||
1205 | <blue>255</blue> | ||
1206 | </color> | ||
1207 | <color> | ||
1208 | <red>128</red> | ||
1209 | <green>128</green> | ||
1210 | <blue>128</blue> | ||
1211 | </color> | ||
1212 | <color> | ||
1213 | <red>255</red> | ||
1214 | <green>255</green> | ||
1215 | <blue>255</blue> | ||
1216 | </color> | ||
1217 | <color> | ||
1218 | <red>174</red> | ||
1219 | <green>222</green> | ||
1220 | <blue>158</blue> | ||
1221 | </color> | ||
1222 | <color> | ||
1223 | <red>0</red> | ||
1224 | <green>0</green> | ||
1225 | <blue>0</blue> | ||
1226 | </color> | ||
1227 | <color> | ||
1228 | <red>0</red> | ||
1229 | <green>0</green> | ||
1230 | <blue>128</blue> | ||
1231 | </color> | ||
1232 | <color> | ||
1233 | <red>255</red> | ||
1234 | <green>255</green> | ||
1235 | <blue>255</blue> | ||
1236 | </color> | ||
1237 | </disabled> | ||
1238 | <inactive> | ||
1239 | <color> | ||
1240 | <red>0</red> | ||
1241 | <green>0</green> | ||
1242 | <blue>0</blue> | ||
1243 | </color> | ||
1244 | <color> | ||
1245 | <red>181</red> | ||
1246 | <green>222</green> | ||
1247 | <blue>178</blue> | ||
1248 | </color> | ||
1249 | <color> | ||
1250 | <red>255</red> | ||
1251 | <green>255</green> | ||
1252 | <blue>255</blue> | ||
1253 | </color> | ||
1254 | <color> | ||
1255 | <red>207</red> | ||
1256 | <green>255</green> | ||
1257 | <blue>204</blue> | ||
1258 | </color> | ||
1259 | <color> | ||
1260 | <red>90</red> | ||
1261 | <green>111</green> | ||
1262 | <blue>89</blue> | ||
1263 | </color> | ||
1264 | <color> | ||
1265 | <red>120</red> | ||
1266 | <green>148</green> | ||
1267 | <blue>118</blue> | ||
1268 | </color> | ||
1269 | <color> | ||
1270 | <red>0</red> | ||
1271 | <green>0</green> | ||
1272 | <blue>0</blue> | ||
1273 | </color> | ||
1274 | <color> | ||
1275 | <red>255</red> | ||
1276 | <green>255</green> | ||
1277 | <blue>255</blue> | ||
1278 | </color> | ||
1279 | <color> | ||
1280 | <red>0</red> | ||
1281 | <green>0</green> | ||
1282 | <blue>0</blue> | ||
1283 | </color> | ||
1284 | <color> | ||
1285 | <red>255</red> | ||
1286 | <green>255</green> | ||
1287 | <blue>255</blue> | ||
1288 | </color> | ||
1289 | <color> | ||
1290 | <red>174</red> | ||
1291 | <green>222</green> | ||
1292 | <blue>158</blue> | ||
1293 | </color> | ||
1294 | <color> | ||
1295 | <red>0</red> | ||
1296 | <green>0</green> | ||
1297 | <blue>0</blue> | ||
1298 | </color> | ||
1299 | <color> | ||
1300 | <red>0</red> | ||
1301 | <green>0</green> | ||
1302 | <blue>128</blue> | ||
1303 | </color> | ||
1304 | <color> | ||
1305 | <red>255</red> | ||
1306 | <green>255</green> | ||
1307 | <blue>255</blue> | ||
1308 | </color> | ||
1309 | </inactive> | ||
1310 | </palette> | ||
1311 | </property> | ||
1312 | <property stdset="1"> | ||
1313 | <name>text</name> | ||
1314 | <string>Cancel</string> | ||
1315 | </property> | ||
1316 | <property stdset="1"> | ||
1317 | <name>default</name> | ||
1318 | <bool>true</bool> | ||
1319 | </property> | ||
1320 | </widget> | ||
1321 | </vbox> | ||
1322 | </widget> | ||
1323 | </UI> | ||
diff --git a/core/launcher/shutdownimpl.cpp b/core/launcher/shutdownimpl.cpp index 06ed756..0c5b4f6 100644 --- a/core/launcher/shutdownimpl.cpp +++ b/core/launcher/shutdownimpl.cpp | |||
@@ -6,90 +6,162 @@ | |||
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | 20 | ||
21 | #include "shutdownimpl.h" | 21 | #include "shutdownimpl.h" |
22 | 22 | ||
23 | #include <qpe/global.h> | 23 | #include <qpe/global.h> |
24 | 24 | ||
25 | #include <qtimer.h> | 25 | #include <qtimer.h> |
26 | #include <qprogressbar.h> | 26 | #include <qprogressbar.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | #include <qbuttongroup.h> | 28 | #include <qbuttongroup.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | #include <qlayout.h> | ||
31 | #include <qpalette.h> | ||
30 | 32 | ||
31 | 33 | ||
34 | static void changeButtonColor ( QPushButton *btn, const QColor &col ) | ||
35 | { | ||
36 | QPalette pal = btn-> palette ( ); | ||
37 | |||
38 | pal. setColor ( QPalette::Active, QColorGroup::Button, col ); | ||
39 | pal. setColor ( QPalette::Disabled, QColorGroup::Button, col ); | ||
40 | pal. setColor ( QPalette::Inactive, QColorGroup::Button, col ); | ||
41 | |||
42 | btn-> setPalette ( pal ); | ||
43 | } | ||
44 | |||
32 | 45 | ||
33 | #include <stdio.h> | ||
34 | ShutdownImpl::ShutdownImpl( QWidget* parent, const char *name, WFlags fl ) | 46 | ShutdownImpl::ShutdownImpl( QWidget* parent, const char *name, WFlags fl ) |
35 | : Shutdown( parent, name, fl ) | 47 | : QWidget ( parent, name, fl ) |
36 | { | 48 | { |
37 | timer = new QTimer( this ); | 49 | setCaption ( tr( "Shut down..." )); |
38 | connect( timer, SIGNAL(timeout()), this, SLOT(timeout()) ); | 50 | |
51 | QVBoxLayout *vbox = new QVBoxLayout ( this ); | ||
52 | vbox-> setSpacing ( 3 ); | ||
53 | vbox-> setMargin ( 6 ); | ||
54 | |||
55 | QButtonGroup *btngrp = new QButtonGroup ( this ); | ||
56 | |||
57 | btngrp-> setTitle ( tr( "Terminate" )); | ||
58 | btngrp-> setColumnLayout ( 0, Qt::Vertical ); | ||
59 | btngrp-> layout ( )-> setSpacing ( 0 ); | ||
60 | btngrp-> layout ( )-> setMargin ( 0 ); | ||
61 | |||
62 | QGridLayout *grid = new QGridLayout ( btngrp-> layout ( )); | ||
63 | grid-> setAlignment ( Qt::AlignTop ); | ||
64 | grid-> setSpacing ( 3 ); | ||
65 | grid-> setMargin ( 7 ); | ||
66 | |||
67 | QPushButton *quit = new QPushButton ( tr( "Terminate Opie" ), btngrp, "quit" ); | ||
68 | changeButtonColor ( quit, QColor ( 236, 236, 179 )); | ||
69 | btngrp-> insert ( quit, 4 ); | ||
70 | grid-> addWidget ( quit, 1, 1 ); | ||
71 | |||
72 | QPushButton *reboot = new QPushButton ( tr( "Reboot" ), btngrp, "reboot" ); | ||
73 | changeButtonColor ( reboot, QColor( 236, 183, 181 )); | ||
74 | btngrp-> insert ( reboot, 2 ); | ||
75 | grid-> addWidget( reboot, 1, 0 ); | ||
39 | 76 | ||
40 | connect( ButtonGroup1, SIGNAL(clicked(int)), this, SLOT(buttonClicked(int)) ); | 77 | QPushButton *restart = new QPushButton ( tr( "Restart Opie" ), btngrp, "restart" ); |
78 | changeButtonColor ( restart, QColor( 236, 236, 179 )); | ||
79 | btngrp-> insert ( restart, 3 ); | ||
80 | grid-> addWidget ( restart, 0, 1 ); | ||
81 | |||
82 | QPushButton *shutdown = new QPushButton( tr( "Shutdown" ), btngrp, "shutdown" ); | ||
83 | changeButtonColor ( shutdown, QColor( 236, 183, 181 )); | ||
84 | btngrp-> insert ( shutdown, 1 ); | ||
85 | grid-> addWidget ( shutdown, 0, 0 ); | ||
86 | |||
87 | vbox-> addWidget ( btngrp ); | ||
88 | |||
89 | m_info = new QLabel ( this, "info" ); | ||
90 | m_info-> setText( tr( "<p>\n" "These termination options are provided primarily for use while developing and testing the Opie system. In a normal environment, these concepts are unnecessary." ) ); | ||
91 | vbox-> addWidget ( m_info ); | ||
92 | |||
93 | m_progress = new QProgressBar ( this, "progressBar" ); | ||
94 | m_progress-> setFrameShape ( QProgressBar::Panel ); | ||
95 | m_progress-> setFrameShadow ( QProgressBar::Sunken ); | ||
96 | m_progress-> setTotalSteps ( 20 ); | ||
97 | m_progress-> setIndicatorFollowsStyle ( false ); | ||
98 | vbox-> addWidget ( m_progress ); | ||
99 | |||
100 | vbox-> addItem ( new QSpacerItem ( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding )); | ||
101 | |||
102 | QPushButton *cancel = new QPushButton ( tr( "Cancel" ), this, "cancel" ); | ||
103 | changeButtonColor ( cancel, QColor( 181, 222, 178 )); | ||
104 | cancel-> setDefault ( true ); | ||
105 | cancel-> setSizePolicy ( QSizePolicy ( QSizePolicy::Minimum, QSizePolicy::Expanding, cancel-> sizePolicy ( ). hasHeightForWidth ( ))); | ||
106 | vbox-> addWidget ( cancel ); | ||
107 | |||
108 | m_timer = new QTimer ( this ); | ||
109 | connect ( m_timer, SIGNAL( timeout ( )), this, SLOT( timeout ( ))); | ||
110 | |||
111 | connect ( btngrp, SIGNAL( clicked ( int )), this, SLOT( buttonClicked ( int ))); | ||
41 | connect( cancel, SIGNAL(clicked()), this, SLOT(cancelClicked()) ); | 112 | connect( cancel, SIGNAL(clicked()), this, SLOT(cancelClicked()) ); |
42 | 113 | ||
43 | progressBar->hide(); | 114 | m_progress-> hide ( ); |
44 | Global::hideInputMethod(); | 115 | Global::hideInputMethod(); |
116 | |||
45 | #ifdef QT_QWS_CUSTOM | 117 | #ifdef QT_QWS_CUSTOM |
46 | QPushButton *sb = Shutdown::shutdown; | 118 | shutdown-> hide ( ); |
47 | sb->hide(); | ||
48 | #endif | 119 | #endif |
49 | } | 120 | } |
50 | 121 | ||
51 | void ShutdownImpl::buttonClicked( int b ) | 122 | void ShutdownImpl::buttonClicked( int b ) |
52 | { | 123 | { |
53 | progress = 0; | 124 | m_counter = 0; |
125 | |||
54 | switch ( b ) { | 126 | switch ( b ) { |
55 | case 1: | 127 | case 1: |
56 | operation = ShutdownSystem; | 128 | m_operation = ShutdownSystem; |
57 | break; | 129 | break; |
58 | case 2: | 130 | case 2: |
59 | operation = RebootSystem; | 131 | m_operation = RebootSystem; |
60 | break; | 132 | break; |
61 | case 3: | 133 | case 3: |
62 | operation = RestartDesktop; | 134 | m_operation = RestartDesktop; |
63 | break; | 135 | break; |
64 | case 4: | 136 | case 4: |
65 | operation = TerminateDesktop; | 137 | m_operation = TerminateDesktop; |
66 | break; | 138 | break; |
67 | } | 139 | } |
68 | info->hide(); | 140 | m_info-> hide ( ); |
69 | progressBar->show(); | 141 | m_progress-> show ( ); |
70 | timer->start( 300 ); | 142 | m_timer-> start ( 300 ); |
71 | timeout(); | 143 | timeout(); |
72 | } | 144 | } |
73 | 145 | ||
74 | void ShutdownImpl::cancelClicked() | 146 | void ShutdownImpl::cancelClicked() |
75 | { | 147 | { |
76 | progressBar->hide(); | 148 | m_progress-> hide ( ); |
77 | info->show(); | 149 | m_info-> show ( ); |
78 | if ( timer->isActive() ) | 150 | if ( m_timer-> isActive ( )) |
79 | timer->stop(); | 151 | m_timer-> stop ( ); |
80 | else | 152 | else |
81 | close(); | 153 | close(); |
82 | } | 154 | } |
83 | 155 | ||
84 | void ShutdownImpl::timeout() | 156 | void ShutdownImpl::timeout() |
85 | { | 157 | { |
86 | if ( (progress+=2) > progressBar->totalSteps() ) { | 158 | if (( m_counter += 2 ) > m_progress-> totalSteps ( )) { |
87 | progressBar->hide(); | 159 | m_progress-> hide ( ); |
88 | timer->stop(); | 160 | m_timer-> stop ( ); |
89 | emit shutdown( operation ); | 161 | emit shutdown ( m_operation ); |
90 | } else { | ||
91 | progressBar->setProgress( progress ); | ||
92 | } | 162 | } |
163 | else | ||
164 | m_progress-> setProgress ( m_counter ); | ||
93 | } | 165 | } |
94 | 166 | ||
95 | 167 | ||
diff --git a/core/launcher/shutdownimpl.h b/core/launcher/shutdownimpl.h index 54668f3..462f347 100644 --- a/core/launcher/shutdownimpl.h +++ b/core/launcher/shutdownimpl.h | |||
@@ -1,50 +1,55 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 6 | ** This file may be distributed and/or modified under the terms of the |
7 | ** GNU General Public License version 2 as published by the Free Software | 7 | ** GNU General Public License version 2 as published by the Free Software |
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE |
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef SHUTDOWNIMPL_H | 20 | #ifndef SHUTDOWNIMPL_H |
21 | #define SHUTDOWNIMPL_H | 21 | #define SHUTDOWNIMPL_H |
22 | 22 | ||
23 | #include "shutdown.h" | 23 | #include <qwidget.h> |
24 | 24 | ||
25 | class QTimer; | 25 | class QTimer; |
26 | class QLabel; | ||
27 | class QProgressBar; | ||
26 | 28 | ||
27 | class ShutdownImpl : public Shutdown | 29 | class ShutdownImpl : public QWidget |
28 | { | 30 | { |
29 | Q_OBJECT | 31 | Q_OBJECT |
30 | public: | 32 | public: |
31 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); | 33 | ShutdownImpl( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); |
32 | 34 | ||
33 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; | 35 | enum Type { ShutdownSystem, RebootSystem, RestartDesktop, TerminateDesktop }; |
34 | 36 | ||
35 | signals: | 37 | signals: |
36 | void shutdown( ShutdownImpl::Type ); | 38 | void shutdown( ShutdownImpl::Type ); |
37 | 39 | ||
38 | private slots: | 40 | private slots: |
39 | void buttonClicked( int ); | 41 | void buttonClicked( int ); |
40 | void cancelClicked(); | 42 | void cancelClicked(); |
41 | void timeout(); | 43 | void timeout(); |
42 | 44 | ||
43 | private: | 45 | private: |
44 | QTimer *timer; | 46 | QTimer *m_timer; |
45 | int progress; | 47 | int m_counter; |
46 | Type operation; | 48 | Type m_operation; |
49 | |||
50 | QLabel * m_info; | ||
51 | QProgressBar *m_progress; | ||
47 | }; | 52 | }; |
48 | 53 | ||
49 | #endif | 54 | #endif |
50 | 55 | ||