summaryrefslogtreecommitdiff
path: root/noncore/settings/netsystemtime/ntpbase.cpp
Unidiff
Diffstat (limited to 'noncore/settings/netsystemtime/ntpbase.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntpbase.cpp90
1 files changed, 50 insertions, 40 deletions
diff --git a/noncore/settings/netsystemtime/ntpbase.cpp b/noncore/settings/netsystemtime/ntpbase.cpp
index 7762e93..c10c6ae 100644
--- a/noncore/settings/netsystemtime/ntpbase.cpp
+++ b/noncore/settings/netsystemtime/ntpbase.cpp
@@ -1,13 +1,14 @@
1/**************************************************************************** 1/****************************************************************************
2** Form implementation generated from reading ui file 'ntpbase.ui' 2** Form implementation generated from reading ui file 'ntpbase.ui'
3** 3**
4** Created: Mon Oct 21 21:06:08 2002 4** Created: Mon Oct 21 21:32:47 2002
5** by: The User Interface Compiler (uic) 5** by: The User Interface Compiler (uic)
6** 6**
7** WARNING! All changes made in this file will be lost! 7** WARNING! All changes made in this file will be lost!
8****************************************************************************/ 8****************************************************************************/
9#include "ntpbase.h" 9#include "ntpbase.h"
10 10
11#include <qcheckbox.h>
11#include <qcombobox.h> 12#include <qcombobox.h>
12#include <qframe.h> 13#include <qframe.h>
13#include <qlabel.h> 14#include <qlabel.h>
@@ -182,9 +183,9 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
182 FrameSettings = new QFrame( TabSettings, "FrameSettings" ); 183 FrameSettings = new QFrame( TabSettings, "FrameSettings" );
183 FrameSettings->setFrameShape( QFrame::StyledPanel ); 184 FrameSettings->setFrameShape( QFrame::StyledPanel );
184 FrameSettings->setFrameShadow( QFrame::Raised ); 185 FrameSettings->setFrameShadow( QFrame::Raised );
185 FrameSettingsLayout = new QGridLayout( FrameSettings ); 186 FrameSettingsLayout = new QVBoxLayout( FrameSettings );
186 FrameSettingsLayout->setSpacing( 11 ); 187 FrameSettingsLayout->setSpacing( 6 );
187 FrameSettingsLayout->setMargin( 3 ); 188 FrameSettingsLayout->setMargin( 11 );
188 189
189 Layout6 = new QGridLayout; 190 Layout6 = new QGridLayout;
190 Layout6->setSpacing( 6 ); 191 Layout6->setSpacing( 6 );
@@ -210,38 +211,19 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
210 ComboNtpSrv->setEditable( TRUE ); 211 ComboNtpSrv->setEditable( TRUE );
211 212
212 Layout6->addWidget( ComboNtpSrv, 0, 1 ); 213 Layout6->addWidget( ComboNtpSrv, 0, 1 );
214 FrameSettingsLayout->addLayout( Layout6 );
215 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
216 FrameSettingsLayout->addItem( spacer_2 );
213 217
214 FrameSettingsLayout->addLayout( Layout6, 0, 0 ); 218 CheckBoxAdvSettings = new QCheckBox( FrameSettings, "CheckBoxAdvSettings" );
215 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding ); 219 CheckBoxAdvSettings->setText( tr( "Advanced features" ) );
216 FrameSettingsLayout->addItem( spacer_2, 3, 0 ); 220 FrameSettingsLayout->addWidget( CheckBoxAdvSettings );
221 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
222 FrameSettingsLayout->addItem( spacer_3 );
217 223
218 Layout7 = new QGridLayout; 224 Line1 = new QFrame( FrameSettings, "Line1" );
219 Layout7->setSpacing( 6 ); 225 Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
220 Layout7->setMargin( 0 ); 226 FrameSettingsLayout->addWidget( Line1 );
221
222 TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" );
223 TextLabel1_2->setText( tr( "Insure a delay of" ) );
224
225 Layout7->addWidget( TextLabel1_2, 0, 0 );
226
227 TextLabel2 = new QLabel( FrameSettings, "TextLabel2" );
228 TextLabel2->setText( tr( "minutes until" ) );
229
230 Layout7->addWidget( TextLabel2, 0, 2 );
231
232 TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
233 TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) );
234 TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
235
236 Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
237
238 SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
239 SpinBoxMinLookupDelay->setMaxValue( 9999999 );
240 SpinBoxMinLookupDelay->setMinValue( 42 );
241
242 Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
243
244 FrameSettingsLayout->addLayout( Layout7, 2, 0 );
245 227
246 Layout7_2 = new QGridLayout; 228 Layout7_2 = new QGridLayout;
247 Layout7_2->setSpacing( 6 ); 229 Layout7_2->setSpacing( 6 );
@@ -265,12 +247,42 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
265 Layout7_2->addMultiCellWidget( TextLabel3_3_2, 1, 1, 0, 2 ); 247 Layout7_2->addMultiCellWidget( TextLabel3_3_2, 1, 1, 0, 2 );
266 248
267 SpinBoxNtpDelay = new QSpinBox( FrameSettings, "SpinBoxNtpDelay" ); 249 SpinBoxNtpDelay = new QSpinBox( FrameSettings, "SpinBoxNtpDelay" );
250 SpinBoxNtpDelay->setWrapping( TRUE );
268 SpinBoxNtpDelay->setMaxValue( 9999999 ); 251 SpinBoxNtpDelay->setMaxValue( 9999999 );
269 SpinBoxNtpDelay->setMinValue( 0 ); 252 SpinBoxNtpDelay->setMinValue( 1 );
253 SpinBoxNtpDelay->setValue( 1440 );
270 254
271 Layout7_2->addWidget( SpinBoxNtpDelay, 0, 1 ); 255 Layout7_2->addWidget( SpinBoxNtpDelay, 0, 1 );
256 FrameSettingsLayout->addLayout( Layout7_2 );
272 257
273 FrameSettingsLayout->addLayout( Layout7_2, 1, 0 ); 258 Layout7 = new QGridLayout;
259 Layout7->setSpacing( 6 );
260 Layout7->setMargin( 0 );
261
262 TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" );
263 TextLabel1_2->setText( tr( "Insure a delay of" ) );
264
265 Layout7->addWidget( TextLabel1_2, 0, 0 );
266
267 TextLabel2 = new QLabel( FrameSettings, "TextLabel2" );
268 TextLabel2->setText( tr( "minutes until" ) );
269
270 Layout7->addWidget( TextLabel2, 0, 2 );
271
272 TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
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 ) );
275
276 Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
277
278 SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
279 SpinBoxMinLookupDelay->setWrapping( TRUE );
280 SpinBoxMinLookupDelay->setMaxValue( 9999999 );
281 SpinBoxMinLookupDelay->setMinValue( 42 );
282 SpinBoxMinLookupDelay->setValue( 720 );
283
284 Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
285 FrameSettingsLayout->addLayout( Layout7 );
274 286
275 TabSettingsLayout->addWidget( FrameSettings, 0, 0 ); 287 TabSettingsLayout->addWidget( FrameSettings, 0, 0 );
276 288
@@ -288,14 +300,12 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
288 PushButtonSetManualTime->setText( tr( "Set time" ) ); 300 PushButtonSetManualTime->setText( tr( "Set time" ) );
289 tabManualSetTimeLayout->addWidget( PushButtonSetManualTime ); 301 tabManualSetTimeLayout->addWidget( PushButtonSetManualTime );
290 302
291 TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
292 303
304 TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
293 TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) ); 305 TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) );
294
295 TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) ); 306 TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) );
296
297 TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
298 TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) ); 307 TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) );
308 TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
299 309
300 NtpBaseLayout->addWidget( TabWidgetMain, 0, 0 ); 310 NtpBaseLayout->addWidget( TabWidgetMain, 0, 0 );
301} 311}