summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntpbase.ui938
-rw-r--r--noncore/settings/netsystemtime/settime.cpp17
2 files changed, 402 insertions, 553 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">
107 <name>name</name>
108 <cstring>runNtp</cstring>
109 </property>
110 <property stdset="1">
111 <name>text</name>
112 <string>Get time from network</string>
113 </property> 86 </property>
114 </widget> 87 <widget class="QFrame">
115 <widget row="0" column="0" > 88 <property name="name">
116 <class>QFrame</class> 89 <cstring>FrameSetTime</cstring>
117 <property stdset="1">
118 <name>name</name>
119 <cstring>FrameNtp</cstring>
120 </property> 90 </property>
121 <property stdset="1"> 91 <property name="frameShape">
122 <name>frameShape</name>
123 <enum>StyledPanel</enum> 92 <enum>StyledPanel</enum>
124 </property> 93 </property>
125 <property stdset="1"> 94 <property name="frameShadow">
126 <name>frameShadow</name>
127 <enum>Raised</enum> 95 <enum>Raised</enum>
128 </property> 96 </property>
129 <property> 97 </widget>
130 <name>layoutMargin</name> 98 <widget class="QPushButton">
99 <property name="name">
100 <cstring>PushButtonSetManualTime</cstring>
131 </property> 101 </property>
132 <property> 102 <property name="text">
133 <name>layoutSpacing</name> 103 <string>Set time</string>
134 </property> 104 </property>
105 </widget>
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>
135 <grid> 115 <grid>
136 <property stdset="1"> 116 <property name="name">
137 <name>margin</name> 117 <cstring>unnamed</cstring>
118 </property>
119 <property name="margin">
138 <number>2</number> 120 <number>2</number>
139 </property> 121 </property>
140 <property stdset="1"> 122 <property name="spacing">
141 <name>spacing</name>
142 <number>2</number> 123 <number>2</number>
143 </property> 124 </property>
144 <widget row="0" column="0" > 125 <widget class="QFrame" row="0" column="0">
145 <class>QLayoutWidget</class> 126 <property name="name">
146 <property stdset="1"> 127 <cstring>FrameSettings</cstring>
147 <name>name</name>
148 <cstring>Layout4</cstring>
149 </property> 128 </property>
150 <vbox> 129 <property name="frameShape">
151 <property stdset="1"> 130 <enum>StyledPanel</enum>
152 <name>margin</name>
153 <number>0</number>
154 </property> 131 </property>
155 <property stdset="1"> 132 <property name="frameShadow">
156 <name>spacing</name> 133 <enum>Raised</enum>
157 <number>6</number>
158 </property> 134 </property>
159 <widget> 135 <property name="layoutMargin" stdset="0">
160 <class>QLabel</class>
161 <property stdset="1">
162 <name>name</name>
163 <cstring>TextLabel1</cstring>
164 </property> 136 </property>
165 <property stdset="1"> 137 <property name="layoutSpacing" stdset="0">
166 <name>autoMask</name>
167 <bool>false</bool>
168 </property> 138 </property>
169 <property stdset="1"> 139 <grid>
170 <name>text</name> 140 <property name="name">
171 <string>Start Time:</string> 141 <cstring>unnamed</cstring>
172 </property> 142 </property>
173 </widget> 143 <property name="margin">
174 <widget> 144 <number>3</number>
175 <class>QLabel</class>
176 <property stdset="1">
177 <name>name</name>
178 <cstring>TextLabelStartTime</cstring>
179 </property> 145 </property>
180 <property stdset="1"> 146 <property name="spacing">
181 <name>text</name> 147 <number>11</number>
182 <string>nan</string>
183 </property> 148 </property>
184 </widget> 149 <widget class="QLayoutWidget" row="0" column="0">
185 <widget> 150 <property name="name">
186 <class>QLabel</class> 151 <cstring>Layout6</cstring>
187 <property stdset="1">
188 <name>name</name>
189 <cstring>TextLabel3</cstring>
190 </property> 152 </property>
191 <property stdset="1"> 153 <grid>
192 <name>text</name> 154 <property name="name">
193 <string>Time Shift:</string> 155 <cstring>unnamed</cstring>
156 </property>
157 <property name="margin">
158 <number>0</number>
159 </property>
160 <property name="spacing">
161 <number>6</number>
162 </property>
163 <widget class="QLabel" row="0" column="0">
164 <property name="name">
165 <cstring>TextLabel7_2</cstring>
166 </property>
167 <property name="text">
168 <string>Use</string>
194 </property> 169 </property>
195 </widget> 170 </widget>
196 <widget> 171 <widget class="QLabel" row="0" column="2">
197 <class>QLabel</class> 172 <property name="name">
198 <property stdset="1"> 173 <cstring>TextLabel2_2</cstring>
199 <name>name</name>
200 <cstring>TextLabelTimeShift</cstring>
201 </property> 174 </property>
202 <property stdset="1"> 175 <property name="text">
203 <name>text</name> 176 <string>as</string>
204 <string>nan</string>
205 </property> 177 </property>
206 </widget> 178 </widget>
207 <widget> 179 <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
208 <class>QLabel</class> 180 <property name="name">
209 <property stdset="1"> 181 <cstring>TextLabel1_3</cstring>
210 <name>name</name>
211 <cstring>TextLabel5</cstring>
212 </property> 182 </property>
213 <property stdset="1"> 183 <property name="text">
214 <name>text</name> 184 <string>NTP server to get the time from the network.</string>
215 <string>New Time:</string> 185 </property>
186 <property name="alignment">
187 <set>WordBreak|AlignVCenter|AlignLeft</set>
188 </property>
189 <property name="wordwrap" stdset="0">
216 </property> 190 </property>
217 </widget> 191 </widget>
218 <widget> 192 <widget class="QComboBox" row="0" column="1">
219 <class>QLabel</class> 193 <property name="name">
220 <property stdset="1"> 194 <cstring>ComboNtpSrv</cstring>
221 <name>name</name>
222 <cstring>TextLabelNewTime</cstring>
223 </property> 195 </property>
224 <property stdset="1"> 196 <property name="editable">
225 <name>text</name> 197 <bool>true</bool>
226 <string>nan</string>
227 </property> 198 </property>
228 </widget> 199 </widget>
229 <spacer> 200 </grid>
230 <property> 201 </widget>
231 <name>name</name> 202 <spacer row="3" column="0">
232 <cstring>Spacer1</cstring> 203 <property name="name">
204 <cstring>Spacer2</cstring>
233 </property> 205 </property>
234 <property stdset="1"> 206 <property name="orientation">
235 <name>orientation</name>
236 <enum>Vertical</enum> 207 <enum>Vertical</enum>
237 </property> 208 </property>
238 <property stdset="1"> 209 <property name="sizeType">
239 <name>sizeType</name>
240 <enum>Expanding</enum> 210 <enum>Expanding</enum>
241 </property> 211 </property>
242 <property> 212 <property name="sizeHint">
243 <name>sizeHint</name>
244 <size> 213 <size>
245 <width>20</width> 214 <width>0</width>
246 <height>20</height> 215 <height>20</height>
247 </size> 216 </size>
248 </property> 217 </property>
249 </spacer> 218 </spacer>
250 </vbox> 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>
236 </property>
237 <property name="text">
238 <string>Insure a delay of</string>
239 </property>
251 </widget> 240 </widget>
252 <widget row="1" column="0" > 241 <widget class="QLabel" row="0" column="2">
253 <class>QMultiLineEdit</class> 242 <property name="name">
254 <property stdset="1"> 243 <cstring>TextLabel2</cstring>
255 <name>name</name>
256 <cstring>MultiLineEditntpOutPut</cstring>
257 </property> 244 </property>
258 <property stdset="1"> 245 <property name="text">
259 <name>font</name> 246 <string>minutes until</string>
260 <font>
261 <pointsize>7</pointsize>
262 </font>
263 </property> 247 </property>
264 <property stdset="1"> 248 </widget>
265 <name>wordWrap</name> 249 <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
266 <enum>WidgetWidth</enum> 250 <property name="name">
251 <cstring>TextLabel3_3</cstring>
267 </property> 252 </property>
268 <property stdset="1"> 253 <property name="text">
269 <name>text</name> 254 <string>a new NTP lookup will be used to predict the time.</string>
270 <string></string> 255 </property>
256 <property name="alignment">
257 <set>WordBreak|AlignVCenter|AlignLeft</set>
258 </property>
259 <property name="wordwrap" stdset="0">
260 </property>
261 </widget>
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> 271 </property>
272 </widget> 272 </widget>
273 </grid> 273 </grid>
274 </widget> 274 </widget>
275 <widget class="QLayoutWidget" row="1" column="0">
276 <property name="name">
277 <cstring>Layout7_2</cstring>
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>
275 </grid> 337 </grid>
276 </widget> 338 </widget>
277 <widget> 339 </grid>
278 <class>QWidget</class> 340 </widget>
279 <property stdset="1"> 341 </grid>
280 <name>name</name> 342 </widget>
343 <widget class="QWidget">
344 <property 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>
455 </property> 484 </property>
456 <property stdset="1"> 485 <property name="margin">
457 <name>spacing</name> 486 <number>1</number>
487 </property>
488 <property name="spacing">
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> 494 </property>
464 <cstring>FrameSettings</cstring> 495 <property name="text">
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>
465 </property> 502 </property>
466 <property stdset="1"> 503 <property name="frameShape">
467 <name>frameShape</name>
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">
492 <name>name</name>
493 <cstring>Layout6</cstring>
494 </property> 522 </property>
495 <grid> 523 <widget class="QLayoutWidget" row="0" column="0">
496 <property stdset="1"> 524 <property name="name">
497 <name>margin</name> 525 <cstring>Layout4</cstring>
526 </property>
527 <vbox>
528 <property name="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> 540 </property>
510 <property stdset="1"> 541 <property name="autoMask">
511 <name>text</name> 542 <bool>false</bool>
512 <string>Use</string> 543 </property>
544 <property name="text">
545 <string>Start Time:</string>
513 </property> 546 </property>
514 </widget> 547 </widget>
515 <widget row="0" column="2" > 548 <widget class="QLabel">
516 <class>QLabel</class> 549 <property name="name">
517 <property stdset="1"> 550 <cstring>TextLabelStartTime</cstring>
518 <name>name</name>
519 <cstring>TextLabel2_2</cstring>
520 </property> 551 </property>
521 <property stdset="1"> 552 <property name="text">
522 <name>text</name> 553 <string>nan</string>
523 <string>as</string>
524 </property> 554 </property>
525 </widget> 555 </widget>
526 <widget row="1" column="0" rowspan="1" colspan="2" > 556 <widget class="QLabel">
527 <class>QLabel</class> 557 <property name="name">
528 <property stdset="1"> 558 <cstring>TextLabel3</cstring>
529 <name>name</name>
530 <cstring>TextLabel1_3</cstring>
531 </property> 559 </property>
532 <property stdset="1"> 560 <property name="text">
533 <name>text</name> 561 <string>Time Shift:</string>
534 <string>NTP server to get the time from the network.</string>
535 </property> 562 </property>
536 <property stdset="1"> 563 </widget>
537 <name>alignment</name> 564 <widget class="QLabel">
538 <set>WordBreak|AlignVCenter|AlignLeft</set> 565 <property name="name">
566 <cstring>TextLabelTimeShift</cstring>
539 </property> 567 </property>
540 <property> 568 <property name="text">
541 <name>wordwrap</name> 569 <string>nan</string>
542 </property> 570 </property>
543 </widget> 571 </widget>
544 <widget row="0" column="1" > 572 <widget class="QLabel">
545 <class>QComboBox</class> 573 <property name="name">
546 <property stdset="1"> 574 <cstring>TextLabel5</cstring>
547 <name>name</name>
548 <cstring>ComboNtpSrv</cstring>
549 </property> 575 </property>
550 <property stdset="1"> 576 <property name="text">
551 <name>editable</name> 577 <string>New Time:</string>
552 <bool>true</bool>
553 </property> 578 </property>
554 </widget> 579 </widget>
555 </grid> 580 <widget class="QLabel">
581 <property name="name">
582 <cstring>TextLabelNewTime</cstring>
583 </property>
584 <property name="text">
585 <string>nan</string>
586 </property>
556 </widget> 587 </widget>
557 <spacer row="3" column="0" > 588 <spacer>
558 <property> 589 <property name="name">
559 <name>name</name> 590 <cstring>Spacer1</cstring>
560 <cstring>Spacer2</cstring>
561 </property> 591 </property>
562 <property stdset="1"> 592 <property name="orientation">
563 <name>orientation</name>
564 <enum>Vertical</enum> 593 <enum>Vertical</enum>
565 </property> 594 </property>
566 <property stdset="1"> 595 <property name="sizeType">
567 <name>sizeType</name>
568 <enum>Expanding</enum> 596 <enum>Expanding</enum>
569 </property> 597 </property>
570 <property> 598 <property name="sizeHint">
571 <name>sizeHint</name>
572 <size> 599 <size>
573 <width>20</width> 600 <width>0</width>
574 <height>20</height> 601 <height>20</height>
575 </size> 602 </size>
576 </property> 603 </property>
577 </spacer> 604 </spacer>
578 <widget row="2" column="0" > 605 </vbox>
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>
599 <property stdset="1">
600 <name>text</name>
601 <string>Insure a delay of</string>
602 </property>
603 </widget>
604 <widget row="0" column="2" >
605 <class>QLabel</class>
606 <property stdset="1">
607 <name>name</name>
608 <cstring>TextLabel2</cstring>
609 </property>
610 <property stdset="1">
611 <name>text</name>
612 <string>minutes until</string>
613 </property>
614 </widget>
615 <widget row="1" column="0" rowspan="1" colspan="3" >
616 <class>QLabel</class>
617 <property stdset="1">
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>
629 <property>
630 <name>wordwrap</name>
631 </property>
632 </widget>
633 <widget row="0" column="1" >
634 <class>QSpinBox</class>
635 <property stdset="1">
636 <name>name</name>
637 <cstring>SpinBoxMinLookupDelay</cstring>
638 </property>
639 <property stdset="1">
640 <name>maxValue</name>
641 <number>9999999</number>
642 </property>
643 <property stdset="1">
644 <name>minValue</name>
645 <number>42</number>
646 </property>
647 </widget>
648 </grid>
649 </widget>
650 <widget row="1" column="0" >
651 <class>QLayoutWidget</class>
652 <property stdset="1">
653 <name>name</name>
654 <cstring>Layout7_2</cstring>
655 </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> 606 </widget>
694 <widget row="1" column="0" rowspan="1" colspan="3" > 607 <widget class="QMultiLineEdit" row="1" column="0">
695 <class>QLabel</class> 608 <property name="name">
696 <property stdset="1"> 609 <cstring>MultiLineEditntpOutPut</cstring>
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> 610 </property>
711 </widget> 611 <property name="font">
712 <widget row="0" column="1" > 612 <font>
713 <class>QSpinBox</class> 613 <pointsize>7</pointsize>
714 <property stdset="1"> 614 </font>
715 <name>name</name>
716 <cstring>SpinBoxNtpDelay</cstring>
717 </property> 615 </property>
718 <property stdset="1"> 616 <property name="text">
719 <name>maxValue</name> 617 <string></string>
720 <number>9999999</number>
721 </property> 618 </property>
722 <property stdset="1"> 619 <property name="wordWrap">
723 <name>minValue</name> 620 <enum>WidgetWidth</enum>
724 <number>0</number>
725 </property> 621 </property>
726 </widget> 622 </widget>
727 </grid> 623 </grid>
728 </widget> 624 </widget>
729 </grid> 625 </grid>
730 </widget> 626 </widget>
731 </grid>
732 </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