summaryrefslogtreecommitdiff
authortille <tille>2002-10-19 16:50:55 (UTC)
committer tille <tille>2002-10-19 16:50:55 (UTC)
commit6271b388d25e2ece90c3e24d4fdd41aae56d10c3 (patch) (unidiff)
tree104f9f94870d01bb3df370ebb0bc60976c87e6be
parent57a3bf94f2a50015ecbac871f28118639122502e (diff)
downloadopie-6271b388d25e2ece90c3e24d4fdd41aae56d10c3.zip
opie-6271b388d25e2ece90c3e24d4fdd41aae56d10c3.tar.gz
opie-6271b388d25e2ece90c3e24d4fdd41aae56d10c3.tar.bz2
gui fixes following Harlekins wishes
not yet tested
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntpbase.ui962
-rw-r--r--noncore/settings/netsystemtime/settime.cpp17
2 files changed, 414 insertions, 565 deletions
diff --git a/noncore/settings/netsystemtime/ntpbase.ui b/noncore/settings/netsystemtime/ntpbase.ui
index f5e9371..be2c8d3 100644
--- a/noncore/settings/netsystemtime/ntpbase.ui
+++ b/noncore/settings/netsystemtime/ntpbase.ui
@@ -1,13 +1,10 @@
1<!DOCTYPE UI><UI> 1<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
2<class>NtpBase</class> 2<class>NtpBase</class>
3<widget> 3<widget class="QWidget">
4 <class>QWidget</class> 4 <property name="name">
5 <property stdset="1">
6 <name>name</name>
7 <cstring>NtpBase</cstring> 5 <cstring>NtpBase</cstring>
8 </property> 6 </property>
9 <property stdset="1"> 7 <property name="geometry">
10 <name>geometry</name>
11 <rect> 8 <rect>
12 <x>0</x> 9 <x>0</x>
13 <y>0</y> 10 <y>0</y>
@@ -15,422 +12,458 @@
15 <height>411</height> 12 <height>411</height>
16 </rect> 13 </rect>
17 </property> 14 </property>
18 <property stdset="1"> 15 <property name="caption">
19 <name>caption</name> 16 <string>Set Time</string>
20 <string>Network Time</string>
21 </property> 17 </property>
22 <property> 18 <property name="layoutMargin" stdset="0">
23 <name>layoutMargin</name>
24 </property> 19 </property>
25 <property> 20 <property name="layoutSpacing" stdset="0">
26 <name>layoutSpacing</name>
27 </property> 21 </property>
28 <grid> 22 <grid>
29 <property stdset="1"> 23 <property name="name">
30 <name>margin</name> 24 <cstring>unnamed</cstring>
25 </property>
26 <property name="margin">
31 <number>2</number> 27 <number>2</number>
32 </property> 28 </property>
33 <property stdset="1"> 29 <property name="spacing">
34 <name>spacing</name>
35 <number>2</number> 30 <number>2</number>
36 </property> 31 </property>
37 <widget row="0" column="0" > 32 <widget class="QTabWidget" row="0" column="0">
38 <class>QTabWidget</class> 33 <property name="name">
39 <property stdset="1">
40 <name>name</name>
41 <cstring>TabWidgetMain</cstring> 34 <cstring>TabWidgetMain</cstring>
42 </property> 35 </property>
43 <property> 36 <property name="layoutMargin" stdset="0">
44 <name>layoutMargin</name>
45 </property> 37 </property>
46 <property> 38 <property name="layoutSpacing" stdset="0">
47 <name>layoutSpacing</name>
48 </property> 39 </property>
49 <widget> 40 <widget class="QWidget">
50 <class>QWidget</class> 41 <property name="name">
51 <property stdset="1">
52 <name>name</name>
53 <cstring>tabMain</cstring> 42 <cstring>tabMain</cstring>
54 </property> 43 </property>
55 <attribute> 44 <attribute name="title">
56 <name>title</name>
57 <string>Main</string> 45 <string>Main</string>
58 </attribute> 46 </attribute>
59 <grid> 47 <grid>
60 <property stdset="1"> 48 <property name="name">
61 <name>margin</name> 49 <cstring>unnamed</cstring>
50 </property>
51 <property name="margin">
62 <number>2</number> 52 <number>2</number>
63 </property> 53 </property>
64 <property stdset="1"> 54 <property name="spacing">
65 <name>spacing</name>
66 <number>2</number> 55 <number>2</number>
67 </property> 56 </property>
68 <widget row="0" column="0" > 57 <widget class="QFrame" row="0" column="0">
69 <class>QFrame</class> 58 <property name="name">
70 <property stdset="1">
71 <name>name</name>
72 <cstring>FrameSystemTime</cstring> 59 <cstring>FrameSystemTime</cstring>
73 </property> 60 </property>
74 <property stdset="1"> 61 <property name="frameShape">
75 <name>frameShape</name>
76 <enum>StyledPanel</enum> 62 <enum>StyledPanel</enum>
77 </property> 63 </property>
78 <property stdset="1"> 64 <property name="frameShadow">
79 <name>frameShadow</name>
80 <enum>Raised</enum> 65 <enum>Raised</enum>
81 </property> 66 </property>
82 </widget> 67 </widget>
83 </grid> 68 </grid>
84 </widget> 69 </widget>
85 <widget> 70 <widget class="QWidget">
86 <class>QWidget</class> 71 <property name="name">
87 <property stdset="1"> 72 <cstring>tabSetTime</cstring>
88 <name>name</name>
89 <cstring>tabNtp</cstring>
90 </property> 73 </property>
91 <attribute> 74 <attribute name="title">
92 <name>title</name> 75 <string>Manual</string>
93 <string>NTP</string>
94 </attribute> 76 </attribute>
95 <grid> 77 <vbox>
96 <property stdset="1"> 78 <property name="name">
97 <name>margin</name> 79 <cstring>unnamed</cstring>
98 <number>1</number>
99 </property> 80 </property>
100 <property stdset="1"> 81 <property name="margin">
101 <name>spacing</name>
102 <number>2</number> 82 <number>2</number>
103 </property> 83 </property>
104 <widget row="1" column="0" > 84 <property name="spacing">
105 <class>QPushButton</class> 85 <number>2</number>
106 <property stdset="1"> 86 </property>
107 <name>name</name> 87 <widget class="QFrame">
108 <cstring>runNtp</cstring> 88 <property name="name">
89 <cstring>FrameSetTime</cstring>
109 </property> 90 </property>
110 <property stdset="1"> 91 <property name="frameShape">
111 <name>text</name> 92 <enum>StyledPanel</enum>
112 <string>Get time from network</string> 93 </property>
94 <property name="frameShadow">
95 <enum>Raised</enum>
113 </property> 96 </property>
114 </widget> 97 </widget>
115 <widget row="0" column="0" > 98 <widget class="QPushButton">
116 <class>QFrame</class> 99 <property name="name">
117 <property stdset="1"> 100 <cstring>PushButtonSetManualTime</cstring>
118 <name>name</name> 101 </property>
119 <cstring>FrameNtp</cstring> 102 <property name="text">
103 <string>Set time</string>
120 </property> 104 </property>
121 <property stdset="1"> 105 </widget>
122 <name>frameShape</name> 106 </vbox>
107 </widget>
108 <widget class="QWidget">
109 <property name="name">
110 <cstring>TabSettings</cstring>
111 </property>
112 <attribute name="title">
113 <string>Settings</string>
114 </attribute>
115 <grid>
116 <property name="name">
117 <cstring>unnamed</cstring>
118 </property>
119 <property name="margin">
120 <number>2</number>
121 </property>
122 <property name="spacing">
123 <number>2</number>
124 </property>
125 <widget class="QFrame" row="0" column="0">
126 <property name="name">
127 <cstring>FrameSettings</cstring>
128 </property>
129 <property name="frameShape">
123 <enum>StyledPanel</enum> 130 <enum>StyledPanel</enum>
124 </property> 131 </property>
125 <property stdset="1"> 132 <property name="frameShadow">
126 <name>frameShadow</name>
127 <enum>Raised</enum> 133 <enum>Raised</enum>
128 </property> 134 </property>
129 <property> 135 <property name="layoutMargin" stdset="0">
130 <name>layoutMargin</name>
131 </property> 136 </property>
132 <property> 137 <property name="layoutSpacing" stdset="0">
133 <name>layoutSpacing</name>
134 </property> 138 </property>
135 <grid> 139 <grid>
136 <property stdset="1"> 140 <property name="name">
137 <name>margin</name> 141 <cstring>unnamed</cstring>
138 <number>2</number>
139 </property> 142 </property>
140 <property stdset="1"> 143 <property name="margin">
141 <name>spacing</name> 144 <number>3</number>
142 <number>2</number>
143 </property> 145 </property>
144 <widget row="0" column="0" > 146 <property name="spacing">
145 <class>QLayoutWidget</class> 147 <number>11</number>
146 <property stdset="1"> 148 </property>
147 <name>name</name> 149 <widget class="QLayoutWidget" row="0" column="0">
148 <cstring>Layout4</cstring> 150 <property name="name">
151 <cstring>Layout6</cstring>
149 </property> 152 </property>
150 <vbox> 153 <grid>
151 <property stdset="1"> 154 <property name="name">
152 <name>margin</name> 155 <cstring>unnamed</cstring>
156 </property>
157 <property name="margin">
153 <number>0</number> 158 <number>0</number>
154 </property> 159 </property>
155 <property stdset="1"> 160 <property name="spacing">
156 <name>spacing</name>
157 <number>6</number> 161 <number>6</number>
158 </property> 162 </property>
159 <widget> 163 <widget class="QLabel" row="0" column="0">
160 <class>QLabel</class> 164 <property name="name">
161 <property stdset="1"> 165 <cstring>TextLabel7_2</cstring>
162 <name>name</name>
163 <cstring>TextLabel1</cstring>
164 </property>
165 <property stdset="1">
166 <name>autoMask</name>
167 <bool>false</bool>
168 </property> 166 </property>
169 <property stdset="1"> 167 <property name="text">
170 <name>text</name> 168 <string>Use</string>
171 <string>Start Time:</string>
172 </property> 169 </property>
173 </widget> 170 </widget>
174 <widget> 171 <widget class="QLabel" row="0" column="2">
175 <class>QLabel</class> 172 <property name="name">
176 <property stdset="1"> 173 <cstring>TextLabel2_2</cstring>
177 <name>name</name>
178 <cstring>TextLabelStartTime</cstring>
179 </property> 174 </property>
180 <property stdset="1"> 175 <property name="text">
181 <name>text</name> 176 <string>as</string>
182 <string>nan</string>
183 </property> 177 </property>
184 </widget> 178 </widget>
185 <widget> 179 <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
186 <class>QLabel</class> 180 <property name="name">
187 <property stdset="1"> 181 <cstring>TextLabel1_3</cstring>
188 <name>name</name>
189 <cstring>TextLabel3</cstring>
190 </property> 182 </property>
191 <property stdset="1"> 183 <property name="text">
192 <name>text</name> 184 <string>NTP server to get the time from the network.</string>
193 <string>Time Shift:</string> 185 </property>
186 <property name="alignment">
187 <set>WordBreak|AlignVCenter|AlignLeft</set>
188 </property>
189 <property name="wordwrap" stdset="0">
194 </property> 190 </property>
195 </widget> 191 </widget>
196 <widget> 192 <widget class="QComboBox" row="0" column="1">
197 <class>QLabel</class> 193 <property name="name">
198 <property stdset="1"> 194 <cstring>ComboNtpSrv</cstring>
199 <name>name</name>
200 <cstring>TextLabelTimeShift</cstring>
201 </property> 195 </property>
202 <property stdset="1"> 196 <property name="editable">
203 <name>text</name> 197 <bool>true</bool>
204 <string>nan</string>
205 </property> 198 </property>
206 </widget> 199 </widget>
207 <widget> 200 </grid>
208 <class>QLabel</class> 201 </widget>
209 <property stdset="1"> 202 <spacer row="3" column="0">
210 <name>name</name> 203 <property name="name">
211 <cstring>TextLabel5</cstring> 204 <cstring>Spacer2</cstring>
205 </property>
206 <property name="orientation">
207 <enum>Vertical</enum>
208 </property>
209 <property name="sizeType">
210 <enum>Expanding</enum>
211 </property>
212 <property name="sizeHint">
213 <size>
214 <width>0</width>
215 <height>20</height>
216 </size>
217 </property>
218 </spacer>
219 <widget class="QLayoutWidget" row="2" column="0">
220 <property name="name">
221 <cstring>Layout7</cstring>
222 </property>
223 <grid>
224 <property name="name">
225 <cstring>unnamed</cstring>
226 </property>
227 <property name="margin">
228 <number>0</number>
229 </property>
230 <property name="spacing">
231 <number>6</number>
232 </property>
233 <widget class="QLabel" row="0" column="0">
234 <property name="name">
235 <cstring>TextLabel1_2</cstring>
212 </property> 236 </property>
213 <property stdset="1"> 237 <property name="text">
214 <name>text</name> 238 <string>Insure a delay of</string>
215 <string>New Time:</string>
216 </property> 239 </property>
217 </widget> 240 </widget>
218 <widget> 241 <widget class="QLabel" row="0" column="2">
219 <class>QLabel</class> 242 <property name="name">
220 <property stdset="1"> 243 <cstring>TextLabel2</cstring>
221 <name>name</name>
222 <cstring>TextLabelNewTime</cstring>
223 </property> 244 </property>
224 <property stdset="1"> 245 <property name="text">
225 <name>text</name> 246 <string>minutes until</string>
226 <string>nan</string>
227 </property> 247 </property>
228 </widget> 248 </widget>
229 <spacer> 249 <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
230 <property> 250 <property name="name">
231 <name>name</name> 251 <cstring>TextLabel3_3</cstring>
232 <cstring>Spacer1</cstring>
233 </property> 252 </property>
234 <property stdset="1"> 253 <property name="text">
235 <name>orientation</name> 254 <string>a new NTP lookup will be used to predict the time.</string>
236 <enum>Vertical</enum>
237 </property> 255 </property>
238 <property stdset="1"> 256 <property name="alignment">
239 <name>sizeType</name> 257 <set>WordBreak|AlignVCenter|AlignLeft</set>
240 <enum>Expanding</enum>
241 </property> 258 </property>
242 <property> 259 <property name="wordwrap" stdset="0">
243 <name>sizeHint</name>
244 <size>
245 <width>20</width>
246 <height>20</height>
247 </size>
248 </property> 260 </property>
249 </spacer> 261 </widget>
250 </vbox> 262 <widget class="QSpinBox" row="0" column="1">
263 <property name="name">
264 <cstring>SpinBoxMinLookupDelay</cstring>
265 </property>
266 <property name="maxValue">
267 <number>9999999</number>
268 </property>
269 <property name="minValue">
270 <number>42</number>
271 </property>
272 </widget>
273 </grid>
251 </widget> 274 </widget>
252 <widget row="1" column="0" > 275 <widget class="QLayoutWidget" row="1" column="0">
253 <class>QMultiLineEdit</class> 276 <property name="name">
254 <property stdset="1"> 277 <cstring>Layout7_2</cstring>
255 <name>name</name>
256 <cstring>MultiLineEditntpOutPut</cstring>
257 </property>
258 <property stdset="1">
259 <name>font</name>
260 <font>
261 <pointsize>7</pointsize>
262 </font>
263 </property>
264 <property stdset="1">
265 <name>wordWrap</name>
266 <enum>WidgetWidth</enum>
267 </property>
268 <property stdset="1">
269 <name>text</name>
270 <string></string>
271 </property> 278 </property>
279 <grid>
280 <property name="name">
281 <cstring>unnamed</cstring>
282 </property>
283 <property name="margin">
284 <number>0</number>
285 </property>
286 <property name="spacing">
287 <number>6</number>
288 </property>
289 <widget class="QLabel" row="0" column="0">
290 <property name="name">
291 <cstring>TextLabel1_2_2</cstring>
292 </property>
293 <property name="sizePolicy">
294 <sizepolicy>
295 <hsizetype>1</hsizetype>
296 <vsizetype>1</vsizetype>
297 <horstretch>0</horstretch>
298 <verstretch>0</verstretch>
299 </sizepolicy>
300 </property>
301 <property name="text">
302 <string>Wait for </string>
303 </property>
304 </widget>
305 <widget class="QLabel" row="0" column="2">
306 <property name="name">
307 <cstring>TextLabel2_3</cstring>
308 </property>
309 <property name="text">
310 <string>minutes until</string>
311 </property>
312 </widget>
313 <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
314 <property name="name">
315 <cstring>TextLabel3_3_2</cstring>
316 </property>
317 <property name="text">
318 <string>NTP tries to syncronises the clock with the network.</string>
319 </property>
320 <property name="alignment">
321 <set>WordBreak|AlignVCenter|AlignLeft</set>
322 </property>
323 <property name="wordwrap" stdset="0">
324 </property>
325 </widget>
326 <widget class="QSpinBox" row="0" column="1">
327 <property name="name">
328 <cstring>SpinBoxNtpDelay</cstring>
329 </property>
330 <property name="maxValue">
331 <number>9999999</number>
332 </property>
333 <property name="minValue">
334 <number>0</number>
335 </property>
336 </widget>
337 </grid>
272 </widget> 338 </widget>
273 </grid> 339 </grid>
274 </widget> 340 </widget>
275 </grid> 341 </grid>
276 </widget> 342 </widget>
277 <widget> 343 <widget class="QWidget">
278 <class>QWidget</class> 344 <property name="name">
279 <property stdset="1">
280 <name>name</name>
281 <cstring>tab</cstring> 345 <cstring>tab</cstring>
282 </property> 346 </property>
283 <attribute> 347 <attribute name="title">
284 <name>title</name>
285 <string>Predict</string> 348 <string>Predict</string>
286 </attribute> 349 </attribute>
287 <grid> 350 <grid>
288 <property stdset="1"> 351 <property name="name">
289 <name>margin</name> 352 <cstring>unnamed</cstring>
353 </property>
354 <property name="margin">
290 <number>5</number> 355 <number>5</number>
291 </property> 356 </property>
292 <property stdset="1"> 357 <property name="spacing">
293 <name>spacing</name>
294 <number>6</number> 358 <number>6</number>
295 </property> 359 </property>
296 <widget row="0" column="0" > 360 <widget class="QTable" row="0" column="0">
297 <class>QTable</class> 361 <property name="name">
298 <property stdset="1">
299 <name>name</name>
300 <cstring>TableLookups</cstring> 362 <cstring>TableLookups</cstring>
301 </property> 363 </property>
302 <property stdset="1"> 364 <property name="font">
303 <name>font</name>
304 <font> 365 <font>
305 <pointsize>8</pointsize> 366 <pointsize>8</pointsize>
306 </font> 367 </font>
307 </property> 368 </property>
308 <property stdset="1"> 369 <property name="numRows">
309 <name>numRows</name>
310 <number>2</number> 370 <number>2</number>
311 </property> 371 </property>
312 <property stdset="1"> 372 <property name="numCols">
313 <name>numCols</name>
314 <number>2</number> 373 <number>2</number>
315 </property> 374 </property>
316 </widget> 375 </widget>
317 <widget row="1" column="0" > 376 <widget class="QLayoutWidget" row="1" column="0">
318 <class>QLayoutWidget</class> 377 <property name="name">
319 <property stdset="1">
320 <name>name</name>
321 <cstring>Layout9</cstring> 378 <cstring>Layout9</cstring>
322 </property> 379 </property>
323 <grid> 380 <grid>
324 <property stdset="1"> 381 <property name="name">
325 <name>margin</name> 382 <cstring>unnamed</cstring>
383 </property>
384 <property name="margin">
326 <number>0</number> 385 <number>0</number>
327 </property> 386 </property>
328 <property stdset="1"> 387 <property name="spacing">
329 <name>spacing</name>
330 <number>6</number> 388 <number>6</number>
331 </property> 389 </property>
332 <widget row="0" column="1" > 390 <widget class="QLabel" row="0" column="1">
333 <class>QLabel</class> 391 <property name="name">
334 <property stdset="1">
335 <name>name</name>
336 <cstring>TextLabelShift</cstring> 392 <cstring>TextLabelShift</cstring>
337 </property> 393 </property>
338 <property stdset="1"> 394 <property name="text">
339 <name>text</name>
340 <string>nan</string> 395 <string>nan</string>
341 </property> 396 </property>
342 </widget> 397 </widget>
343 <widget row="1" column="0" > 398 <widget class="QLabel" row="1" column="0">
344 <class>QLabel</class> 399 <property name="name">
345 <property stdset="1">
346 <name>name</name>
347 <cstring>TextLabel4</cstring> 400 <cstring>TextLabel4</cstring>
348 </property> 401 </property>
349 <property stdset="1"> 402 <property name="text">
350 <name>text</name>
351 <string>Esimated Shift:</string> 403 <string>Esimated Shift:</string>
352 </property> 404 </property>
353 </widget> 405 </widget>
354 <widget row="1" column="1" > 406 <widget class="QLabel" row="1" column="1">
355 <class>QLabel</class> 407 <property name="name">
356 <property stdset="1">
357 <name>name</name>
358 <cstring>TextLabelEstimatedShift</cstring> 408 <cstring>TextLabelEstimatedShift</cstring>
359 </property> 409 </property>
360 <property stdset="1"> 410 <property name="text">
361 <name>text</name>
362 <string>nan</string> 411 <string>nan</string>
363 </property> 412 </property>
364 </widget> 413 </widget>
365 <widget row="2" column="0" > 414 <widget class="QLabel" row="2" column="0">
366 <class>QLabel</class> 415 <property name="name">
367 <property stdset="1">
368 <name>name</name>
369 <cstring>TextLabel3_2</cstring> 416 <cstring>TextLabel3_2</cstring>
370 </property> 417 </property>
371 <property stdset="1"> 418 <property name="text">
372 <name>text</name>
373 <string>Predicted Time:</string> 419 <string>Predicted Time:</string>
374 </property> 420 </property>
375 </widget> 421 </widget>
376 <widget row="0" column="0" > 422 <widget class="QLabel" row="0" column="0">
377 <class>QLabel</class> 423 <property name="name">
378 <property stdset="1">
379 <name>name</name>
380 <cstring>Mean_shift_label</cstring> 424 <cstring>Mean_shift_label</cstring>
381 </property> 425 </property>
382 <property stdset="1"> 426 <property name="text">
383 <name>text</name>
384 <string>Mean shift:</string> 427 <string>Mean shift:</string>
385 </property> 428 </property>
386 </widget> 429 </widget>
387 <widget row="2" column="1" > 430 <widget class="QLabel" row="2" column="1">
388 <class>QLabel</class> 431 <property name="name">
389 <property stdset="1">
390 <name>name</name>
391 <cstring>TextLabelPredTime</cstring> 432 <cstring>TextLabelPredTime</cstring>
392 </property> 433 </property>
393 <property stdset="1"> 434 <property name="text">
394 <name>text</name>
395 <string>nan</string> 435 <string>nan</string>
396 </property> 436 </property>
397 </widget> 437 </widget>
398 </grid> 438 </grid>
399 </widget> 439 </widget>
400 <widget row="2" column="0" > 440 <widget class="QLayoutWidget" row="2" column="0">
401 <class>QLayoutWidget</class> 441 <property name="name">
402 <property stdset="1">
403 <name>name</name>
404 <cstring>Layout11</cstring> 442 <cstring>Layout11</cstring>
405 </property> 443 </property>
406 <hbox> 444 <hbox>
407 <property stdset="1"> 445 <property name="name">
408 <name>margin</name> 446 <cstring>unnamed</cstring>
447 </property>
448 <property name="margin">
409 <number>0</number> 449 <number>0</number>
410 </property> 450 </property>
411 <property stdset="1"> 451 <property name="spacing">
412 <name>spacing</name>
413 <number>6</number> 452 <number>6</number>
414 </property> 453 </property>
415 <widget> 454 <widget class="QPushButton">
416 <class>QPushButton</class> 455 <property name="name">
417 <property stdset="1">
418 <name>name</name>
419 <cstring>PushButtonSetPredTime</cstring> 456 <cstring>PushButtonSetPredTime</cstring>
420 </property> 457 </property>
421 <property stdset="1"> 458 <property name="text">
422 <name>text</name>
423 <string>Set predicted time</string> 459 <string>Set predicted time</string>
424 </property> 460 </property>
425 </widget> 461 </widget>
426 <widget> 462 <widget class="QPushButton">
427 <class>QPushButton</class> 463 <property name="name">
428 <property stdset="1">
429 <name>name</name>
430 <cstring>PushButtonPredict</cstring> 464 <cstring>PushButtonPredict</cstring>
431 </property> 465 </property>
432 <property stdset="1"> 466 <property name="text">
433 <name>text</name>
434 <string>Predict time</string> 467 <string>Predict time</string>
435 </property> 468 </property>
436 </widget> 469 </widget>
@@ -438,346 +471,161 @@
438 </widget> 471 </widget>
439 </grid> 472 </grid>
440 </widget> 473 </widget>
441 <widget> 474 <widget class="QWidget">
442 <class>QWidget</class> 475 <property name="name">
443 <property stdset="1"> 476 <cstring>tabNtp</cstring>
444 <name>name</name>
445 <cstring>TabSettings</cstring>
446 </property> 477 </property>
447 <attribute> 478 <attribute name="title">
448 <name>title</name> 479 <string>NTP</string>
449 <string>Settings</string>
450 </attribute> 480 </attribute>
451 <grid> 481 <grid>
452 <property stdset="1"> 482 <property name="name">
453 <name>margin</name> 483 <cstring>unnamed</cstring>
454 <number>2</number> 484 </property>
485 <property name="margin">
486 <number>1</number>
455 </property> 487 </property>
456 <property stdset="1"> 488 <property name="spacing">
457 <name>spacing</name>
458 <number>2</number> 489 <number>2</number>
459 </property> 490 </property>
460 <widget row="0" column="0" > 491 <widget class="QPushButton" row="1" column="0">
461 <class>QFrame</class> 492 <property name="name">
462 <property stdset="1"> 493 <cstring>runNtp</cstring>
463 <name>name</name>
464 <cstring>FrameSettings</cstring>
465 </property> 494 </property>
466 <property stdset="1"> 495 <property name="text">
467 <name>frameShape</name> 496 <string>Get time from network</string>
497 </property>
498 </widget>
499 <widget class="QFrame" row="0" column="0">
500 <property name="name">
501 <cstring>FrameNtp</cstring>
502 </property>
503 <property name="frameShape">
468 <enum>StyledPanel</enum> 504 <enum>StyledPanel</enum>
469 </property> 505 </property>
470 <property stdset="1"> 506 <property name="frameShadow">
471 <name>frameShadow</name>
472 <enum>Raised</enum> 507 <enum>Raised</enum>
473 </property> 508 </property>
474 <property> 509 <property name="layoutMargin" stdset="0">
475 <name>layoutMargin</name>
476 </property> 510 </property>
477 <property> 511 <property name="layoutSpacing" stdset="0">
478 <name>layoutSpacing</name>
479 </property> 512 </property>
480 <grid> 513 <grid>
481 <property stdset="1"> 514 <property name="name">
482 <name>margin</name> 515 <cstring>unnamed</cstring>
483 <number>3</number>
484 </property> 516 </property>
485 <property stdset="1"> 517 <property name="margin">
486 <name>spacing</name> 518 <number>2</number>
487 <number>11</number>
488 </property> 519 </property>
489 <widget row="0" column="0" > 520 <property name="spacing">
490 <class>QLayoutWidget</class> 521 <number>2</number>
491 <property stdset="1"> 522 </property>
492 <name>name</name> 523 <widget class="QLayoutWidget" row="0" column="0">
493 <cstring>Layout6</cstring> 524 <property name="name">
525 <cstring>Layout4</cstring>
494 </property> 526 </property>
495 <grid> 527 <vbox>
496 <property stdset="1"> 528 <property name="name">
497 <name>margin</name> 529 <cstring>unnamed</cstring>
530 </property>
531 <property name="margin">
498 <number>0</number> 532 <number>0</number>
499 </property> 533 </property>
500 <property stdset="1"> 534 <property name="spacing">
501 <name>spacing</name>
502 <number>6</number> 535 <number>6</number>
503 </property> 536 </property>
504 <widget row="0" column="0" > 537 <widget class="QLabel">
505 <class>QLabel</class> 538 <property name="name">
506 <property stdset="1"> 539 <cstring>TextLabel1</cstring>
507 <name>name</name>
508 <cstring>TextLabel7_2</cstring>
509 </property>
510 <property stdset="1">
511 <name>text</name>
512 <string>Use</string>
513 </property> 540 </property>
514 </widget> 541 <property name="autoMask">
515 <widget row="0" column="2" > 542 <bool>false</bool>
516 <class>QLabel</class>
517 <property stdset="1">
518 <name>name</name>
519 <cstring>TextLabel2_2</cstring>
520 </property> 543 </property>
521 <property stdset="1"> 544 <property name="text">
522 <name>text</name> 545 <string>Start Time:</string>
523 <string>as</string>
524 </property> 546 </property>
525 </widget> 547 </widget>
526 <widget row="1" column="0" rowspan="1" colspan="2" > 548 <widget class="QLabel">
527 <class>QLabel</class> 549 <property name="name">
528 <property stdset="1"> 550 <cstring>TextLabelStartTime</cstring>
529 <name>name</name>
530 <cstring>TextLabel1_3</cstring>
531 </property>
532 <property stdset="1">
533 <name>text</name>
534 <string>NTP server to get the time from the network.</string>
535 </property>
536 <property stdset="1">
537 <name>alignment</name>
538 <set>WordBreak|AlignVCenter|AlignLeft</set>
539 </property> 551 </property>
540 <property> 552 <property name="text">
541 <name>wordwrap</name> 553 <string>nan</string>
542 </property> 554 </property>
543 </widget> 555 </widget>
544 <widget row="0" column="1" > 556 <widget class="QLabel">
545 <class>QComboBox</class> 557 <property name="name">
546 <property stdset="1"> 558 <cstring>TextLabel3</cstring>
547 <name>name</name>
548 <cstring>ComboNtpSrv</cstring>
549 </property> 559 </property>
550 <property stdset="1"> 560 <property name="text">
551 <name>editable</name> 561 <string>Time Shift:</string>
552 <bool>true</bool>
553 </property> 562 </property>
554 </widget> 563 </widget>
555 </grid> 564 <widget class="QLabel">
556 </widget> 565 <property name="name">
557 <spacer row="3" column="0" > 566 <cstring>TextLabelTimeShift</cstring>
558 <property>
559 <name>name</name>
560 <cstring>Spacer2</cstring>
561 </property>
562 <property stdset="1">
563 <name>orientation</name>
564 <enum>Vertical</enum>
565 </property>
566 <property stdset="1">
567 <name>sizeType</name>
568 <enum>Expanding</enum>
569 </property>
570 <property>
571 <name>sizeHint</name>
572 <size>
573 <width>20</width>
574 <height>20</height>
575 </size>
576 </property>
577 </spacer>
578 <widget row="2" column="0" >
579 <class>QLayoutWidget</class>
580 <property stdset="1">
581 <name>name</name>
582 <cstring>Layout7</cstring>
583 </property>
584 <grid>
585 <property stdset="1">
586 <name>margin</name>
587 <number>0</number>
588 </property>
589 <property stdset="1">
590 <name>spacing</name>
591 <number>6</number>
592 </property>
593 <widget row="0" column="0" >
594 <class>QLabel</class>
595 <property stdset="1">
596 <name>name</name>
597 <cstring>TextLabel1_2</cstring>
598 </property> 567 </property>
599 <property stdset="1"> 568 <property name="text">
600 <name>text</name> 569 <string>nan</string>
601 <string>Insure a delay of</string>
602 </property> 570 </property>
603 </widget> 571 </widget>
604 <widget row="0" column="2" > 572 <widget class="QLabel">
605 <class>QLabel</class> 573 <property name="name">
606 <property stdset="1"> 574 <cstring>TextLabel5</cstring>
607 <name>name</name>
608 <cstring>TextLabel2</cstring>
609 </property> 575 </property>
610 <property stdset="1"> 576 <property name="text">
611 <name>text</name> 577 <string>New Time:</string>
612 <string>minutes until</string>
613 </property> 578 </property>
614 </widget> 579 </widget>
615 <widget row="1" column="0" rowspan="1" colspan="3" > 580 <widget class="QLabel">
616 <class>QLabel</class> 581 <property name="name">
617 <property stdset="1"> 582 <cstring>TextLabelNewTime</cstring>
618 <name>name</name>
619 <cstring>TextLabel3_3</cstring>
620 </property>
621 <property stdset="1">
622 <name>text</name>
623 <string>a new NTP lookup will be used to predict the time.</string>
624 </property>
625 <property stdset="1">
626 <name>alignment</name>
627 <set>WordBreak|AlignVCenter|AlignLeft</set>
628 </property> 583 </property>
629 <property> 584 <property name="text">
630 <name>wordwrap</name> 585 <string>nan</string>
631 </property> 586 </property>
632 </widget> 587 </widget>
633 <widget row="0" column="1" > 588 <spacer>
634 <class>QSpinBox</class> 589 <property name="name">
635 <property stdset="1"> 590 <cstring>Spacer1</cstring>
636 <name>name</name>
637 <cstring>SpinBoxMinLookupDelay</cstring>
638 </property> 591 </property>
639 <property stdset="1"> 592 <property name="orientation">
640 <name>maxValue</name> 593 <enum>Vertical</enum>
641 <number>9999999</number>
642 </property> 594 </property>
643 <property stdset="1"> 595 <property name="sizeType">
644 <name>minValue</name> 596 <enum>Expanding</enum>
645 <number>42</number>
646 </property> 597 </property>
647 </widget> 598 <property name="sizeHint">
648 </grid> 599 <size>
600 <width>0</width>
601 <height>20</height>
602 </size>
603 </property>
604 </spacer>
605 </vbox>
649 </widget> 606 </widget>
650 <widget row="1" column="0" > 607 <widget class="QMultiLineEdit" row="1" column="0">
651 <class>QLayoutWidget</class> 608 <property name="name">
652 <property stdset="1"> 609 <cstring>MultiLineEditntpOutPut</cstring>
653 <name>name</name> 610 </property>
654 <cstring>Layout7_2</cstring> 611 <property name="font">
612 <font>
613 <pointsize>7</pointsize>
614 </font>
615 </property>
616 <property name="text">
617 <string></string>
618 </property>
619 <property name="wordWrap">
620 <enum>WidgetWidth</enum>
655 </property> 621 </property>
656 <grid>
657 <property stdset="1">
658 <name>margin</name>
659 <number>0</number>
660 </property>
661 <property stdset="1">
662 <name>spacing</name>
663 <number>6</number>
664 </property>
665 <widget row="0" column="0" >
666 <class>QLabel</class>
667 <property stdset="1">
668 <name>name</name>
669 <cstring>TextLabel1_2_2</cstring>
670 </property>
671 <property stdset="1">
672 <name>sizePolicy</name>
673 <sizepolicy>
674 <hsizetype>1</hsizetype>
675 <vsizetype>1</vsizetype>
676 </sizepolicy>
677 </property>
678 <property stdset="1">
679 <name>text</name>
680 <string>Wait for </string>
681 </property>
682 </widget>
683 <widget row="0" column="2" >
684 <class>QLabel</class>
685 <property stdset="1">
686 <name>name</name>
687 <cstring>TextLabel2_3</cstring>
688 </property>
689 <property stdset="1">
690 <name>text</name>
691 <string>minutes until</string>
692 </property>
693 </widget>
694 <widget row="1" column="0" rowspan="1" colspan="3" >
695 <class>QLabel</class>
696 <property stdset="1">
697 <name>name</name>
698 <cstring>TextLabel3_3_2</cstring>
699 </property>
700 <property stdset="1">
701 <name>text</name>
702 <string>NTP tries to syncronises the clock with the network.</string>
703 </property>
704 <property stdset="1">
705 <name>alignment</name>
706 <set>WordBreak|AlignVCenter|AlignLeft</set>
707 </property>
708 <property>
709 <name>wordwrap</name>
710 </property>
711 </widget>
712 <widget row="0" column="1" >
713 <class>QSpinBox</class>
714 <property stdset="1">
715 <name>name</name>
716 <cstring>SpinBoxNtpDelay</cstring>
717 </property>
718 <property stdset="1">
719 <name>maxValue</name>
720 <number>9999999</number>
721 </property>
722 <property stdset="1">
723 <name>minValue</name>
724 <number>0</number>
725 </property>
726 </widget>
727 </grid>
728 </widget> 622 </widget>
729 </grid> 623 </grid>
730 </widget> 624 </widget>
731 </grid> 625 </grid>
732 </widget> 626 </widget>
733 <widget>
734 <class>QWidget</class>
735 <property stdset="1">
736 <name>name</name>
737 <cstring>tabSetTime</cstring>
738 </property>
739 <attribute>
740 <name>title</name>
741 <string>Manual</string>
742 </attribute>
743 <vbox>
744 <property stdset="1">
745 <name>margin</name>
746 <number>2</number>
747 </property>
748 <property stdset="1">
749 <name>spacing</name>
750 <number>2</number>
751 </property>
752 <widget>
753 <class>QFrame</class>
754 <property stdset="1">
755 <name>name</name>
756 <cstring>FrameSetTime</cstring>
757 </property>
758 <property stdset="1">
759 <name>frameShape</name>
760 <enum>StyledPanel</enum>
761 </property>
762 <property stdset="1">
763 <name>frameShadow</name>
764 <enum>Raised</enum>
765 </property>
766 </widget>
767 <widget>
768 <class>QPushButton</class>
769 <property stdset="1">
770 <name>name</name>
771 <cstring>PushButtonSetManualTime</cstring>
772 </property>
773 <property stdset="1">
774 <name>text</name>
775 <string>Set time</string>
776 </property>
777 </widget>
778 </vbox>
779 </widget>
780 </widget> 627 </widget>
781 </grid> 628 </grid>
782</widget> 629</widget>
630<layoutdefaults spacing="6" margin="11"/>
783</UI> 631</UI>
diff --git a/noncore/settings/netsystemtime/settime.cpp b/noncore/settings/netsystemtime/settime.cpp
index d1dc5b8..f6e02d5 100644
--- a/noncore/settings/netsystemtime/settime.cpp
+++ b/noncore/settings/netsystemtime/settime.cpp
@@ -60,14 +60,8 @@ SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f )
60 QVBoxLayout *vb = new QVBoxLayout( FrameSystemTime, 5 ); 60 QVBoxLayout *vb = new QVBoxLayout( FrameSystemTime, 5 );
61 QVBoxLayout *vb2 = new QVBoxLayout( FrameSetTime, 5 ); 61 QVBoxLayout *vb2 = new QVBoxLayout( FrameSetTime, 5 );
62 62
63 TextLabelMainPredTime = new QLabel( FrameSystemTime ); 63# TextLabelMainPredTime = new QLabel( FrameSystemTime );
64 vb->addWidget( TextLabelMainPredTime, 1, 0 ); 64# vb->addWidget( TextLabelMainPredTime, 1, 0 );
65 ButtonSetTime = new QPushButton( FrameSystemTime );
66 vb->addWidget( ButtonSetTime, 1, 0 );
67
68 QFrame *hline = new QFrame( FrameSystemTime );
69 hline->setFrameStyle( QFrame::HLine | QFrame::Sunken );
70 vb->addWidget( hline );
71 65
72 QHBoxLayout *hb = new QHBoxLayout( vb, -1, "timezone layout" ); 66 QHBoxLayout *hb = new QHBoxLayout( vb, -1, "timezone layout" );
73 67
@@ -185,6 +179,13 @@ SetDateTime::SetDateTime(QWidget *parent, const char *name, WFlags f )
185 179
186 vb->addStretch( 0 ); 180 vb->addStretch( 0 );
187 181
182 QFrame *hline = new QFrame( FrameSystemTime );
183 hline->setFrameStyle( QFrame::HLine | QFrame::Sunken );
184 vb->addWidget( hline );
185
186 ButtonSetTime = new QPushButton( FrameSystemTime );
187 vb->addWidget( ButtonSetTime, 1, 0 );
188
188 QObject::connect( PushButtonSetManualTime, SIGNAL(clicked()), 189 QObject::connect( PushButtonSetManualTime, SIGNAL(clicked()),
189 this, SLOT(commitTime())); 190 this, SLOT(commitTime()));
190 191