summaryrefslogtreecommitdiff
path: root/noncore
authortille <tille>2002-10-31 17:50:26 (UTC)
committer tille <tille>2002-10-31 17:50:26 (UTC)
commit9c511809c55d48db528e6ef97ec9969fa5517381 (patch) (unidiff)
tree84f51a9b842aac6487cfd7b5ea78d3e17e1591a8 /noncore
parentd955226c2197578f69c510282a4e9ad1ea8fe771 (diff)
downloadopie-9c511809c55d48db528e6ef97ec9969fa5517381.zip
opie-9c511809c55d48db528e6ef97ec9969fa5517381.tar.gz
opie-9c511809c55d48db528e6ef97ec9969fa5517381.tar.bz2
replacement for systemtime now
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/netsystemtime.pro2
-rw-r--r--noncore/settings/netsystemtime/ntpbase.cpp24
-rw-r--r--noncore/settings/netsystemtime/ntpbase.h8
-rw-r--r--noncore/settings/netsystemtime/ntpbase.ui6
4 files changed, 20 insertions, 20 deletions
diff --git a/noncore/settings/netsystemtime/netsystemtime.pro b/noncore/settings/netsystemtime/netsystemtime.pro
index 0530ea5..3aaf369 100644
--- a/noncore/settings/netsystemtime/netsystemtime.pro
+++ b/noncore/settings/netsystemtime/netsystemtime.pro
@@ -1,26 +1,26 @@
1 TEMPLATE= app 1 TEMPLATE= app
2 CONFIG = qt warn_on debug 2 CONFIG = qt warn_on debug
3 #CONFIG = qt warn_on release 3 #CONFIG = qt warn_on release
4 HEADERS = ntp.h settime.h ntpbase.h 4 HEADERS = ntp.h settime.h ntpbase.h
5 SOURCES = main.cpp ntp.cpp settime.cpp ntpbase.cpp 5 SOURCES = main.cpp ntp.cpp settime.cpp ntpbase.cpp
6 INCLUDEPATH+= $(OPIEDIR)/include 6 INCLUDEPATH+= $(OPIEDIR)/include
7 DEPENDPATH+= $(OPIEDIR)/include 7 DEPENDPATH+= $(OPIEDIR)/include
8LIBS += -lqpe -lopie 8LIBS += -lqpe -lopie
9 INTERFACES= 9 INTERFACES=
10DESTDIR = $(OPIEDIR)/bin 10DESTDIR = $(OPIEDIR)/bin
11 TARGET = netsystemtime 11 TARGET = systemtime
12 12
13TRANSLATIONS = ../../../i18n/de/netsystemtime.ts \ 13TRANSLATIONS = ../../../i18n/de/netsystemtime.ts \
14 ../../../i18n/en/netsystemtime.ts \ 14 ../../../i18n/en/netsystemtime.ts \
15 ../../../i18n/es/netsystemtime.ts \ 15 ../../../i18n/es/netsystemtime.ts \
16 ../../../i18n/fr/netsystemtime.ts \ 16 ../../../i18n/fr/netsystemtime.ts \
17 ../../../i18n/hu/netsystemtime.ts \ 17 ../../../i18n/hu/netsystemtime.ts \
18 ../../../i18n/ja/netsystemtime.ts \ 18 ../../../i18n/ja/netsystemtime.ts \
19 ../../../i18n/ko/netsystemtime.ts \ 19 ../../../i18n/ko/netsystemtime.ts \
20 ../../../i18n/no/netsystemtime.ts \ 20 ../../../i18n/no/netsystemtime.ts \
21 ../../../i18n/pl/netsystemtime.ts \ 21 ../../../i18n/pl/netsystemtime.ts \
22 ../../../i18n/pt/netsystemtime.ts \ 22 ../../../i18n/pt/netsystemtime.ts \
23 ../../../i18n/pt_BR/netsystemtime.ts \ 23 ../../../i18n/pt_BR/netsystemtime.ts \
24 ../../../i18n/sl/netsystemtime.ts \ 24 ../../../i18n/sl/netsystemtime.ts \
25 ../../../i18n/zh_CN/netsystemtime.ts \ 25 ../../../i18n/zh_CN/netsystemtime.ts \
26 ../../../i18n/zh_TW/netsystemtime.ts 26 ../../../i18n/zh_TW/netsystemtime.ts
diff --git a/noncore/settings/netsystemtime/ntpbase.cpp b/noncore/settings/netsystemtime/ntpbase.cpp
index c10c6ae..8d44f17 100644
--- a/noncore/settings/netsystemtime/ntpbase.cpp
+++ b/noncore/settings/netsystemtime/ntpbase.cpp
@@ -23,67 +23,67 @@
23#include <qwhatsthis.h> 23#include <qwhatsthis.h>
24 24
25/* 25/*
26 * Constructs a NtpBase which is a child of 'parent', with the 26 * Constructs a NtpBase which is a child of 'parent', with the
27 * name 'name' and widget flags set to 'f' 27 * name 'name' and widget flags set to 'f'
28 */ 28 */
29NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl ) 29NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
30 : QWidget( parent, name, fl ) 30 : QWidget( parent, name, fl )
31{ 31{
32 if ( !name ) 32 if ( !name )
33 setName( "NtpBase" ); 33 setName( "NtpBase" );
34 resize( 320, 411 ); 34 resize( 320, 411 );
35 setCaption( tr( "Network Time" ) ); 35 setCaption( tr( "Network Time" ) );
36 NtpBaseLayout = new QGridLayout( this ); 36 NtpBaseLayout = new QGridLayout( this );
37 NtpBaseLayout->setSpacing( 2 ); 37 NtpBaseLayout->setSpacing( 2 );
38 NtpBaseLayout->setMargin( 2 ); 38 NtpBaseLayout->setMargin( 2 );
39 39
40 TabWidgetMain = new QTabWidget( this, "TabWidgetMain" ); 40 TabWidgetMain = new QTabWidget( this, "TabWidgetMain" );
41 41
42 tabMain = new QWidget( TabWidgetMain, "tabMain" ); 42 tabMain = new QWidget( TabWidgetMain, "tabMain" );
43 tabMainLayout = new QGridLayout( tabMain ); 43 tabMainLayout = new QGridLayout( tabMain );
44 tabMainLayout->setSpacing( 2 ); 44 tabMainLayout->setSpacing( 2 );
45 tabMainLayout->setMargin( 2 ); 45 tabMainLayout->setMargin( 2 );
46 46
47 FrameSystemTime = new QFrame( tabMain, "FrameSystemTime" ); 47 FrameSystemTime = new QWidget( tabMain, "FrameSystemTime" );
48 FrameSystemTime->setFrameShape( QFrame::StyledPanel ); 48 // FrameSystemTime->setFrameShape( QFrame::StyledPanel );
49 FrameSystemTime->setFrameShadow( QFrame::Raised ); 49 //FrameSystemTime->setFrameShadow( QFrame::Raised );
50 50
51 tabMainLayout->addWidget( FrameSystemTime, 0, 0 ); 51 tabMainLayout->addWidget( FrameSystemTime, 0, 0 );
52 52
53 tabNtp = new QWidget( TabWidgetMain, "tabNtp" ); 53 tabNtp = new QWidget( TabWidgetMain, "tabNtp" );
54 tabNtpLayout = new QGridLayout( tabNtp ); 54 tabNtpLayout = new QGridLayout( tabNtp );
55 tabNtpLayout->setSpacing( 2 ); 55 tabNtpLayout->setSpacing( 2 );
56 tabNtpLayout->setMargin( 1 ); 56 tabNtpLayout->setMargin( 1 );
57 57
58 runNtp = new QPushButton( tabNtp, "runNtp" ); 58 runNtp = new QPushButton( tabNtp, "runNtp" );
59 runNtp->setText( tr( "Get time from network" ) ); 59 runNtp->setText( tr( "Get time from network" ) );
60 60
61 tabNtpLayout->addWidget( runNtp, 1, 0 ); 61 tabNtpLayout->addWidget( runNtp, 1, 0 );
62 62
63 FrameNtp = new QFrame( tabNtp, "FrameNtp" ); 63 FrameNtp = new QWidget( tabNtp, "FrameNtp" );
64 FrameNtp->setFrameShape( QFrame::StyledPanel ); 64 // FrameNtp->setFrameShape( QFrame::StyledPanel );
65 FrameNtp->setFrameShadow( QFrame::Raised ); 65 // FrameNtp->setFrameShadow( QFrame::Raised );
66 FrameNtpLayout = new QGridLayout( FrameNtp ); 66 FrameNtpLayout = new QGridLayout( FrameNtp );
67 FrameNtpLayout->setSpacing( 2 ); 67 FrameNtpLayout->setSpacing( 2 );
68 FrameNtpLayout->setMargin( 2 ); 68 FrameNtpLayout->setMargin( 2 );
69 69
70 Layout4 = new QVBoxLayout; 70 Layout4 = new QVBoxLayout;
71 Layout4->setSpacing( 6 ); 71 Layout4->setSpacing( 6 );
72 Layout4->setMargin( 0 ); 72 Layout4->setMargin( 0 );
73 73
74 TextLabel1 = new QLabel( FrameNtp, "TextLabel1" ); 74 TextLabel1 = new QLabel( FrameNtp, "TextLabel1" );
75 TextLabel1->setAutoMask( FALSE ); 75 TextLabel1->setAutoMask( FALSE );
76 TextLabel1->setText( tr( "Start Time:" ) ); 76 TextLabel1->setText( tr( "Start Time:" ) );
77 Layout4->addWidget( TextLabel1 ); 77 Layout4->addWidget( TextLabel1 );
78 78
79 TextLabelStartTime = new QLabel( FrameNtp, "TextLabelStartTime" ); 79 TextLabelStartTime = new QLabel( FrameNtp, "TextLabelStartTime" );
80 TextLabelStartTime->setText( tr( "nan" ) ); 80 TextLabelStartTime->setText( tr( "nan" ) );
81 Layout4->addWidget( TextLabelStartTime ); 81 Layout4->addWidget( TextLabelStartTime );
82 82
83 TextLabel3 = new QLabel( FrameNtp, "TextLabel3" ); 83 TextLabel3 = new QLabel( FrameNtp, "TextLabel3" );
84 TextLabel3->setText( tr( "Time Shift:" ) ); 84 TextLabel3->setText( tr( "Time Shift:" ) );
85 Layout4->addWidget( TextLabel3 ); 85 Layout4->addWidget( TextLabel3 );
86 86
87 TextLabelTimeShift = new QLabel( FrameNtp, "TextLabelTimeShift" ); 87 TextLabelTimeShift = new QLabel( FrameNtp, "TextLabelTimeShift" );
88 TextLabelTimeShift->setText( tr( "nan" ) ); 88 TextLabelTimeShift->setText( tr( "nan" ) );
89 Layout4->addWidget( TextLabelTimeShift ); 89 Layout4->addWidget( TextLabelTimeShift );
@@ -159,51 +159,51 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
159 159
160 Layout9->addWidget( TextLabelPredTime, 2, 1 ); 160 Layout9->addWidget( TextLabelPredTime, 2, 1 );
161 161
162 tabPredictLayout->addLayout( Layout9, 1, 0 ); 162 tabPredictLayout->addLayout( Layout9, 1, 0 );
163 163
164 Layout11 = new QHBoxLayout; 164 Layout11 = new QHBoxLayout;
165 Layout11->setSpacing( 6 ); 165 Layout11->setSpacing( 6 );
166 Layout11->setMargin( 0 ); 166 Layout11->setMargin( 0 );
167 167
168 PushButtonSetPredTime = new QPushButton( tabPredict, "PushButtonSetPredTime" ); 168 PushButtonSetPredTime = new QPushButton( tabPredict, "PushButtonSetPredTime" );
169 PushButtonSetPredTime->setText( tr( "Set predicted time" ) ); 169 PushButtonSetPredTime->setText( tr( "Set predicted time" ) );
170 Layout11->addWidget( PushButtonSetPredTime ); 170 Layout11->addWidget( PushButtonSetPredTime );
171 171
172 PushButtonPredict = new QPushButton( tabPredict, "PushButtonPredict" ); 172 PushButtonPredict = new QPushButton( tabPredict, "PushButtonPredict" );
173 PushButtonPredict->setText( tr( "Predict time" ) ); 173 PushButtonPredict->setText( tr( "Predict time" ) );
174 Layout11->addWidget( PushButtonPredict ); 174 Layout11->addWidget( PushButtonPredict );
175 175
176 tabPredictLayout->addLayout( Layout11, 2, 0 ); 176 tabPredictLayout->addLayout( Layout11, 2, 0 );
177 177
178 TabSettings = new QWidget( TabWidgetMain, "TabSettings" ); 178 TabSettings = new QWidget( TabWidgetMain, "TabSettings" );
179 TabSettingsLayout = new QGridLayout( TabSettings ); 179 TabSettingsLayout = new QGridLayout( TabSettings );
180 TabSettingsLayout->setSpacing( 2 ); 180 TabSettingsLayout->setSpacing( 2 );
181 TabSettingsLayout->setMargin( 2 ); 181 TabSettingsLayout->setMargin( 2 );
182 182
183 FrameSettings = new QFrame( TabSettings, "FrameSettings" ); 183 FrameSettings = new QWidget( TabSettings, "FrameSettings" );
184 FrameSettings->setFrameShape( QFrame::StyledPanel ); 184 // FrameSettings->setFrameShape( QFrame::StyledPanel );
185 FrameSettings->setFrameShadow( QFrame::Raised ); 185 // FrameSettings->setFrameShadow( QFrame::Raised );
186 FrameSettingsLayout = new QVBoxLayout( FrameSettings ); 186 FrameSettingsLayout = new QVBoxLayout( FrameSettings );
187 FrameSettingsLayout->setSpacing( 6 ); 187 FrameSettingsLayout->setSpacing( 6 );
188 FrameSettingsLayout->setMargin( 11 ); 188 FrameSettingsLayout->setMargin( 11 );
189 189
190 Layout6 = new QGridLayout; 190 Layout6 = new QGridLayout;
191 Layout6->setSpacing( 6 ); 191 Layout6->setSpacing( 6 );
192 Layout6->setMargin( 0 ); 192 Layout6->setMargin( 0 );
193 193
194 TextLabel7_2 = new QLabel( FrameSettings, "TextLabel7_2" ); 194 TextLabel7_2 = new QLabel( FrameSettings, "TextLabel7_2" );
195 TextLabel7_2->setText( tr( "Use" ) ); 195 TextLabel7_2->setText( tr( "Use" ) );
196 196
197 Layout6->addWidget( TextLabel7_2, 0, 0 ); 197 Layout6->addWidget( TextLabel7_2, 0, 0 );
198 198
199 TextLabel2_2 = new QLabel( FrameSettings, "TextLabel2_2" ); 199 TextLabel2_2 = new QLabel( FrameSettings, "TextLabel2_2" );
200 TextLabel2_2->setText( tr( "as" ) ); 200 TextLabel2_2->setText( tr( "as" ) );
201 201
202 Layout6->addWidget( TextLabel2_2, 0, 2 ); 202 Layout6->addWidget( TextLabel2_2, 0, 2 );
203 203
204 TextLabel1_3 = new QLabel( FrameSettings, "TextLabel1_3" ); 204 TextLabel1_3 = new QLabel( FrameSettings, "TextLabel1_3" );
205 TextLabel1_3->setText( tr( "NTP server to get the time from the network." ) ); 205 TextLabel1_3->setText( tr( "NTP server to get the time from the network." ) );
206 TextLabel1_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); 206 TextLabel1_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
207 207
208 Layout6->addMultiCellWidget( TextLabel1_3, 1, 1, 0, 1 ); 208 Layout6->addMultiCellWidget( TextLabel1_3, 1, 1, 0, 1 );
209 209
@@ -270,51 +270,51 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
270 Layout7->addWidget( TextLabel2, 0, 2 ); 270 Layout7->addWidget( TextLabel2, 0, 2 );
271 271
272 TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" ); 272 TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
273 TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) ); 273 TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) );
274 TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) ); 274 TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
275 275
276 Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 ); 276 Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
277 277
278 SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" ); 278 SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
279 SpinBoxMinLookupDelay->setWrapping( TRUE ); 279 SpinBoxMinLookupDelay->setWrapping( TRUE );
280 SpinBoxMinLookupDelay->setMaxValue( 9999999 ); 280 SpinBoxMinLookupDelay->setMaxValue( 9999999 );
281 SpinBoxMinLookupDelay->setMinValue( 42 ); 281 SpinBoxMinLookupDelay->setMinValue( 42 );
282 SpinBoxMinLookupDelay->setValue( 720 ); 282 SpinBoxMinLookupDelay->setValue( 720 );
283 283
284 Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 ); 284 Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
285 FrameSettingsLayout->addLayout( Layout7 ); 285 FrameSettingsLayout->addLayout( Layout7 );
286 286
287 TabSettingsLayout->addWidget( FrameSettings, 0, 0 ); 287 TabSettingsLayout->addWidget( FrameSettings, 0, 0 );
288 288
289 tabManualSetTime = new QWidget( TabWidgetMain, "tabManualSetTime" ); 289 tabManualSetTime = new QWidget( TabWidgetMain, "tabManualSetTime" );
290 tabManualSetTimeLayout = new QVBoxLayout( tabManualSetTime ); 290 tabManualSetTimeLayout = new QVBoxLayout( tabManualSetTime );
291 tabManualSetTimeLayout->setSpacing( 2 ); 291 tabManualSetTimeLayout->setSpacing( 2 );
292 tabManualSetTimeLayout->setMargin( 2 ); 292 tabManualSetTimeLayout->setMargin( 2 );
293 293
294 FrameSetTime = new QFrame( tabManualSetTime, "FrameSetTime" ); 294 FrameSetTime = new QWidget( tabManualSetTime, "FrameSetTime" );
295 FrameSetTime->setFrameShape( QFrame::StyledPanel ); 295 // FrameSetTime->setFrameShape( QFrame::StyledPanel );
296 FrameSetTime->setFrameShadow( QFrame::Raised ); 296 // FrameSetTime->setFrameShadow( QFrame::Raised );
297 tabManualSetTimeLayout->addWidget( FrameSetTime ); 297 tabManualSetTimeLayout->addWidget( FrameSetTime );
298 298
299 PushButtonSetManualTime = new QPushButton( tabManualSetTime, "PushButtonSetManualTime" ); 299 PushButtonSetManualTime = new QPushButton( tabManualSetTime, "PushButtonSetManualTime" );
300 PushButtonSetManualTime->setText( tr( "Set time" ) ); 300 PushButtonSetManualTime->setText( tr( "Set time" ) );
301 tabManualSetTimeLayout->addWidget( PushButtonSetManualTime ); 301 tabManualSetTimeLayout->addWidget( PushButtonSetManualTime );
302 302
303 303
304 TabWidgetMain->insertTab( tabMain, tr( "Main" ) ); 304 TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
305 TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) ); 305 TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) );
306 TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) ); 306 TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) );
307 TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) ); 307 TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) );
308 TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) ); 308 TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
309 309
310 NtpBaseLayout->addWidget( TabWidgetMain, 0, 0 ); 310 NtpBaseLayout->addWidget( TabWidgetMain, 0, 0 );
311} 311}
312 312
313/* 313/*
314 * Destroys the object and frees any allocated resources 314 * Destroys the object and frees any allocated resources
315 */ 315 */
316NtpBase::~NtpBase() 316NtpBase::~NtpBase()
317{ 317{
318 // no need to delete child widgets, Qt does it all for us 318 // no need to delete child widgets, Qt does it all for us
319} 319}
320 320
diff --git a/noncore/settings/netsystemtime/ntpbase.h b/noncore/settings/netsystemtime/ntpbase.h
index a669601..a443495 100644
--- a/noncore/settings/netsystemtime/ntpbase.h
+++ b/noncore/settings/netsystemtime/ntpbase.h
@@ -13,84 +13,84 @@
13#include <qwidget.h> 13#include <qwidget.h>
14class QVBoxLayout; 14class QVBoxLayout;
15class QHBoxLayout; 15class QHBoxLayout;
16class QGridLayout; 16class QGridLayout;
17class QCheckBox; 17class QCheckBox;
18class QComboBox; 18class QComboBox;
19class QFrame; 19class QFrame;
20class QLabel; 20class QLabel;
21class QMultiLineEdit; 21class QMultiLineEdit;
22class QPushButton; 22class QPushButton;
23class QSpinBox; 23class QSpinBox;
24class QTabWidget; 24class QTabWidget;
25class QTable; 25class QTable;
26 26
27class NtpBase : public QWidget 27class NtpBase : public QWidget
28{ 28{
29 Q_OBJECT 29 Q_OBJECT
30 30
31public: 31public:
32 NtpBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 ); 32 NtpBase( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
33 ~NtpBase(); 33 ~NtpBase();
34 34
35 QTabWidget* TabWidgetMain; 35 QTabWidget* TabWidgetMain;
36 QWidget* tabMain; 36 QWidget* tabMain;
37 QFrame* FrameSystemTime; 37 QWidget* FrameSystemTime;
38 QWidget* tabNtp; 38 QWidget* tabNtp;
39 QPushButton* runNtp; 39 QPushButton* runNtp;
40 QFrame* FrameNtp; 40 QWidget* FrameNtp;
41 QLabel* TextLabel1; 41 QLabel* TextLabel1;
42 QLabel* TextLabelStartTime; 42 QLabel* TextLabelStartTime;
43 QLabel* TextLabel3; 43 QLabel* TextLabel3;
44 QLabel* TextLabelTimeShift; 44 QLabel* TextLabelTimeShift;
45 QLabel* TextLabel5; 45 QLabel* TextLabel5;
46 QLabel* TextLabelNewTime; 46 QLabel* TextLabelNewTime;
47 QMultiLineEdit* MultiLineEditntpOutPut; 47 QMultiLineEdit* MultiLineEditntpOutPut;
48 QWidget* tabPredict; 48 QWidget* tabPredict;
49 QTable* TableLookups; 49 QTable* TableLookups;
50 QLabel* TextLabelShift; 50 QLabel* TextLabelShift;
51 QLabel* TextLabel4; 51 QLabel* TextLabel4;
52 QLabel* TextLabelEstimatedShift; 52 QLabel* TextLabelEstimatedShift;
53 QLabel* TextLabel3_2; 53 QLabel* TextLabel3_2;
54 QLabel* Mean_shift_label; 54 QLabel* Mean_shift_label;
55 QLabel* TextLabelPredTime; 55 QLabel* TextLabelPredTime;
56 QPushButton* PushButtonSetPredTime; 56 QPushButton* PushButtonSetPredTime;
57 QPushButton* PushButtonPredict; 57 QPushButton* PushButtonPredict;
58 QWidget* TabSettings; 58 QWidget* TabSettings;
59 QFrame* FrameSettings; 59 QWidget* FrameSettings;
60 QLabel* TextLabel7_2; 60 QLabel* TextLabel7_2;
61 QLabel* TextLabel2_2; 61 QLabel* TextLabel2_2;
62 QLabel* TextLabel1_3; 62 QLabel* TextLabel1_3;
63 QComboBox* ComboNtpSrv; 63 QComboBox* ComboNtpSrv;
64 QCheckBox* CheckBoxAdvSettings; 64 QCheckBox* CheckBoxAdvSettings;
65 QFrame* Line1; 65 QFrame* Line1;
66 QLabel* TextLabel1_2_2; 66 QLabel* TextLabel1_2_2;
67 QLabel* TextLabel2_3; 67 QLabel* TextLabel2_3;
68 QLabel* TextLabel3_3_2; 68 QLabel* TextLabel3_3_2;
69 QSpinBox* SpinBoxNtpDelay; 69 QSpinBox* SpinBoxNtpDelay;
70 QLabel* TextLabel1_2; 70 QLabel* TextLabel1_2;
71 QLabel* TextLabel2; 71 QLabel* TextLabel2;
72 QLabel* TextLabel3_3; 72 QLabel* TextLabel3_3;
73 QSpinBox* SpinBoxMinLookupDelay; 73 QSpinBox* SpinBoxMinLookupDelay;
74 QWidget* tabManualSetTime; 74 QWidget* tabManualSetTime;
75 QFrame* FrameSetTime; 75 QWidget* FrameSetTime;
76 QPushButton* PushButtonSetManualTime; 76 QPushButton* PushButtonSetManualTime;
77 77
78protected: 78protected:
79 QGridLayout* NtpBaseLayout; 79 QGridLayout* NtpBaseLayout;
80 QGridLayout* tabMainLayout; 80 QGridLayout* tabMainLayout;
81 QGridLayout* tabNtpLayout; 81 QGridLayout* tabNtpLayout;
82 QGridLayout* FrameNtpLayout; 82 QGridLayout* FrameNtpLayout;
83 QVBoxLayout* Layout4; 83 QVBoxLayout* Layout4;
84 QGridLayout* tabPredictLayout; 84 QGridLayout* tabPredictLayout;
85 QGridLayout* Layout9; 85 QGridLayout* Layout9;
86 QHBoxLayout* Layout11; 86 QHBoxLayout* Layout11;
87 QGridLayout* TabSettingsLayout; 87 QGridLayout* TabSettingsLayout;
88 QVBoxLayout* FrameSettingsLayout; 88 QVBoxLayout* FrameSettingsLayout;
89 QGridLayout* Layout6; 89 QGridLayout* Layout6;
90 QGridLayout* Layout7_2; 90 QGridLayout* Layout7_2;
91 QGridLayout* Layout7; 91 QGridLayout* Layout7;
92 QVBoxLayout* tabManualSetTimeLayout; 92 QVBoxLayout* tabManualSetTimeLayout;
93 bool event( QEvent* ); 93 bool event( QEvent* );
94}; 94};
95 95
96#endif // NTPBASE_H 96#endif // NTPBASE_H
diff --git a/noncore/settings/netsystemtime/ntpbase.ui b/noncore/settings/netsystemtime/ntpbase.ui
index 62f736b..465bba0 100644
--- a/noncore/settings/netsystemtime/ntpbase.ui
+++ b/noncore/settings/netsystemtime/ntpbase.ui
@@ -92,49 +92,49 @@
92 <name>title</name> 92 <name>title</name>
93 <string>NTP</string> 93 <string>NTP</string>
94 </attribute> 94 </attribute>
95 <grid> 95 <grid>
96 <property stdset="1"> 96 <property stdset="1">
97 <name>margin</name> 97 <name>margin</name>
98 <number>1</number> 98 <number>1</number>
99 </property> 99 </property>
100 <property stdset="1"> 100 <property stdset="1">
101 <name>spacing</name> 101 <name>spacing</name>
102 <number>2</number> 102 <number>2</number>
103 </property> 103 </property>
104 <widget row="1" column="0" > 104 <widget row="1" column="0" >
105 <class>QPushButton</class> 105 <class>QPushButton</class>
106 <property stdset="1"> 106 <property stdset="1">
107 <name>name</name> 107 <name>name</name>
108 <cstring>runNtp</cstring> 108 <cstring>runNtp</cstring>
109 </property> 109 </property>
110 <property stdset="1"> 110 <property stdset="1">
111 <name>text</name> 111 <name>text</name>
112 <string>Get time from network</string> 112 <string>Get time from network</string>
113 </property> 113 </property>
114 </widget> 114 </widget>
115 <widget row="0" column="0" > 115 <widget row="0" column="0" >
116 <class>QFrame</class> 116 <class>QWidget</class>
117 <property stdset="1"> 117 <property stdset="1">
118 <name>name</name> 118 <name>name</name>
119 <cstring>FrameNtp</cstring> 119 <cstring>FrameNtp</cstring>
120 </property> 120 </property>
121 <property stdset="1"> 121 <property stdset="1">
122 <name>frameShape</name> 122 <name>frameShape</name>
123 <enum>StyledPanel</enum> 123 <enum>StyledPanel</enum>
124 </property> 124 </property>
125 <property stdset="1"> 125 <property stdset="1">
126 <name>frameShadow</name> 126 <name>frameShadow</name>
127 <enum>Raised</enum> 127 <enum>Raised</enum>
128 </property> 128 </property>
129 <property> 129 <property>
130 <name>layoutMargin</name> 130 <name>layoutMargin</name>
131 </property> 131 </property>
132 <property> 132 <property>
133 <name>layoutSpacing</name> 133 <name>layoutSpacing</name>
134 </property> 134 </property>
135 <grid> 135 <grid>
136 <property stdset="1"> 136 <property stdset="1">
137 <name>margin</name> 137 <name>margin</name>
138 <number>2</number> 138 <number>2</number>
139 </property> 139 </property>
140 <property stdset="1"> 140 <property stdset="1">
@@ -437,49 +437,49 @@
437 </hbox> 437 </hbox>
438 </widget> 438 </widget>
439 </grid> 439 </grid>
440 </widget> 440 </widget>
441 <widget> 441 <widget>
442 <class>QWidget</class> 442 <class>QWidget</class>
443 <property stdset="1"> 443 <property stdset="1">
444 <name>name</name> 444 <name>name</name>
445 <cstring>TabSettings</cstring> 445 <cstring>TabSettings</cstring>
446 </property> 446 </property>
447 <attribute> 447 <attribute>
448 <name>title</name> 448 <name>title</name>
449 <string>Settings</string> 449 <string>Settings</string>
450 </attribute> 450 </attribute>
451 <grid> 451 <grid>
452 <property stdset="1"> 452 <property stdset="1">
453 <name>margin</name> 453 <name>margin</name>
454 <number>2</number> 454 <number>2</number>
455 </property> 455 </property>
456 <property stdset="1"> 456 <property stdset="1">
457 <name>spacing</name> 457 <name>spacing</name>
458 <number>2</number> 458 <number>2</number>
459 </property> 459 </property>
460 <widget row="0" column="0" > 460 <widget row="0" column="0" >
461 <class>QFrame</class> 461 <class>QWidget</class>
462 <property stdset="1"> 462 <property stdset="1">
463 <name>name</name> 463 <name>name</name>
464 <cstring>FrameSettings</cstring> 464 <cstring>FrameSettings</cstring>
465 </property> 465 </property>
466 <property stdset="1"> 466 <property stdset="1">
467 <name>frameShape</name> 467 <name>frameShape</name>
468 <enum>StyledPanel</enum> 468 <enum>StyledPanel</enum>
469 </property> 469 </property>
470 <property stdset="1"> 470 <property stdset="1">
471 <name>frameShadow</name> 471 <name>frameShadow</name>
472 <enum>Raised</enum> 472 <enum>Raised</enum>
473 </property> 473 </property>
474 <property> 474 <property>
475 <name>layoutMargin</name> 475 <name>layoutMargin</name>
476 </property> 476 </property>
477 <property> 477 <property>
478 <name>layoutSpacing</name> 478 <name>layoutSpacing</name>
479 </property> 479 </property>
480 <vbox> 480 <vbox>
481 <property stdset="1"> 481 <property stdset="1">
482 <name>margin</name> 482 <name>margin</name>
483 <number>11</number> 483 <number>11</number>
484 </property> 484 </property>
485 <property stdset="1"> 485 <property stdset="1">
@@ -788,49 +788,49 @@
788 </vbox> 788 </vbox>
789 </widget> 789 </widget>
790 </grid> 790 </grid>
791 </widget> 791 </widget>
792 <widget> 792 <widget>
793 <class>QWidget</class> 793 <class>QWidget</class>
794 <property stdset="1"> 794 <property stdset="1">
795 <name>name</name> 795 <name>name</name>
796 <cstring>tabManualSetTime</cstring> 796 <cstring>tabManualSetTime</cstring>
797 </property> 797 </property>
798 <attribute> 798 <attribute>
799 <name>title</name> 799 <name>title</name>
800 <string>Manual</string> 800 <string>Manual</string>
801 </attribute> 801 </attribute>
802 <vbox> 802 <vbox>
803 <property stdset="1"> 803 <property stdset="1">
804 <name>margin</name> 804 <name>margin</name>
805 <number>2</number> 805 <number>2</number>
806 </property> 806 </property>
807 <property stdset="1"> 807 <property stdset="1">
808 <name>spacing</name> 808 <name>spacing</name>
809 <number>2</number> 809 <number>2</number>
810 </property> 810 </property>
811 <widget> 811 <widget>
812 <class>QFrame</class> 812 <class>QWidget</class>
813 <property stdset="1"> 813 <property stdset="1">
814 <name>name</name> 814 <name>name</name>
815 <cstring>FrameSetTime</cstring> 815 <cstring>FrameSetTime</cstring>
816 </property> 816 </property>
817 <property stdset="1"> 817 <property stdset="1">
818 <name>frameShape</name> 818 <name>frameShape</name>
819 <enum>StyledPanel</enum> 819 <enum>StyledPanel</enum>
820 </property> 820 </property>
821 <property stdset="1"> 821 <property stdset="1">
822 <name>frameShadow</name> 822 <name>frameShadow</name>
823 <enum>Raised</enum> 823 <enum>Raised</enum>
824 </property> 824 </property>
825 </widget> 825 </widget>
826 <widget> 826 <widget>
827 <class>QPushButton</class> 827 <class>QPushButton</class>
828 <property stdset="1"> 828 <property stdset="1">
829 <name>name</name> 829 <name>name</name>
830 <cstring>PushButtonSetManualTime</cstring> 830 <cstring>PushButtonSetManualTime</cstring>
831 </property> 831 </property>
832 <property stdset="1"> 832 <property stdset="1">
833 <name>text</name> 833 <name>text</name>
834 <string>Set time</string> 834 <string>Set time</string>
835 </property> 835 </property>
836 </widget> 836 </widget>