summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntp.cpp45
-rw-r--r--noncore/settings/netsystemtime/ntp.h5
-rw-r--r--noncore/settings/netsystemtime/ntpbase.cpp90
-rw-r--r--noncore/settings/netsystemtime/ntpbase.h17
-rw-r--r--noncore/settings/netsystemtime/ntpbase.ui1027
5 files changed, 722 insertions, 462 deletions
diff --git a/noncore/settings/netsystemtime/ntp.cpp b/noncore/settings/netsystemtime/ntp.cpp
index fbd65a2..6f6316c 100644
--- a/noncore/settings/netsystemtime/ntp.cpp
+++ b/noncore/settings/netsystemtime/ntp.cpp
@@ -9,2 +9,5 @@
#include <qspinbox.h>
+#include <qcheckbox.h>
+#include <qtabwidget.h>
+#include <qlayout.h>
#include <qmessagebox.h>
@@ -41,6 +44,12 @@ Ntp::Ntp( QWidget* parent, const char* name, WFlags fl )
cfg.setGroup("settings");
- SpinBoxMinLookupDelay->setValue( cfg.readNumEntry("minLookupDiff",41) );
- SpinBoxNtpDelay->setValue( cfg.readNumEntry("ntpRefreshFreq",42) );
+ SpinBoxMinLookupDelay->setValue( cfg.readNumEntry("minLookupDiff",720) );
+ SpinBoxNtpDelay->setValue( cfg.readNumEntry("ntpRefreshFreq",1440) );
ComboNtpSrv->setCurrentItem( cfg.readNumEntry("ntpServer", 0) );
+ bool advMode = cfg.readBoolEntry("advancedFeatures", false );
+ showAdvancedFeatures(advMode);
+ CheckBoxAdvSettings->setChecked( advMode );
+ connect( CheckBoxAdvSettings, SIGNAL( toggled( bool ) ),
+ SLOT( showAdvancedFeatures( bool ) ) );
+
makeChannel();
@@ -144,3 +153,3 @@ void Ntp::ntpFinished(OProcess *p)
{
- qDebug("p->exitStatus() %i",p->exitStatus());
+ // qDebug("p->exitStatus() %i",p->exitStatus());
if (p->exitStatus()!=0 || !p->normalExit())
@@ -279,3 +288,3 @@ void Ntp::slotCheckNtp(int i)
preditctTime();
- ButtonSetTime->setText( tr("Set predicted time") );
+ ButtonSetTime->setText( tr("Set predicted time: ")+predictedTime.toString() );
if (i>0)ntpOutPut(tr("Could not connect to server ")+getNtpServer());
@@ -288,3 +297,2 @@ void Ntp::slotProbeNtpServer()
{
- qDebug("Ntp::slotProbeNtpServer()");
ntpSock->connectToHost( getNtpServer() ,123);
@@ -332 +340,28 @@ void Ntp::setDocument(const QString &fileName)
}
+
+void Ntp::showAdvancedFeatures(bool advMode)
+{
+ if (advMode) {
+ TabWidgetMain->addTab( tabPredict, tr( "Predict" ) );
+ TabWidgetMain->addTab( tabNtp, tr( "NTP" ) );
+ TextLabel1_2_2->show();
+ TextLabel2_3->show();
+ TextLabel3_3_2->show();
+ TextLabel1_2->show();
+ SpinBoxMinLookupDelay->show();
+ TextLabel2->show();
+ TextLabel3_3->show();
+ SpinBoxNtpDelay->show();
+ }else{
+ TabWidgetMain->removePage( tabPredict );
+ TabWidgetMain->removePage( tabNtp );
+ TextLabel1_2_2->hide();
+ TextLabel2_3->hide();
+ TextLabel3_3_2->hide();
+ TextLabel1_2->hide();
+ SpinBoxMinLookupDelay->hide();
+ TextLabel2->hide();
+ TextLabel3_3->hide();
+ SpinBoxNtpDelay->hide();
+ };
+}
diff --git a/noncore/settings/netsystemtime/ntp.h b/noncore/settings/netsystemtime/ntp.h
index 56e0131..fe0bae6 100644
--- a/noncore/settings/netsystemtime/ntp.h
+++ b/noncore/settings/netsystemtime/ntp.h
@@ -13,6 +13,6 @@ class Ntp : public SetDateTime
{
- Q_OBJECT
+ Q_OBJECT
public:
- Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
+ Ntp( QWidget* parent = 0, const char* name = 0, WFlags fl = 0 );
~Ntp();
@@ -47,2 +47,3 @@ private slots:
void setPredictTime();
+ void showAdvancedFeatures(bool);
void slotProbeNtpServer();
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
@@ -3,3 +3,3 @@
**
-** Created: Mon Oct 21 21:06:08 2002
+** Created: Mon Oct 21 21:32:47 2002
** by: The User Interface Compiler (uic)
@@ -10,2 +10,3 @@
+#include <qcheckbox.h>
#include <qcombobox.h>
@@ -184,5 +185,5 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
FrameSettings->setFrameShadow( QFrame::Raised );
- FrameSettingsLayout = new QGridLayout( FrameSettings );
- FrameSettingsLayout->setSpacing( 11 );
- FrameSettingsLayout->setMargin( 3 );
+ FrameSettingsLayout = new QVBoxLayout( FrameSettings );
+ FrameSettingsLayout->setSpacing( 6 );
+ FrameSettingsLayout->setMargin( 11 );
@@ -212,34 +213,15 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
Layout6->addWidget( ComboNtpSrv, 0, 1 );
+ FrameSettingsLayout->addLayout( Layout6 );
+ QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
+ FrameSettingsLayout->addItem( spacer_2 );
- FrameSettingsLayout->addLayout( Layout6, 0, 0 );
- QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
- FrameSettingsLayout->addItem( spacer_2, 3, 0 );
+ CheckBoxAdvSettings = new QCheckBox( FrameSettings, "CheckBoxAdvSettings" );
+ CheckBoxAdvSettings->setText( tr( "Advanced features" ) );
+ FrameSettingsLayout->addWidget( CheckBoxAdvSettings );
+ QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
+ FrameSettingsLayout->addItem( spacer_3 );
- Layout7 = new QGridLayout;
- Layout7->setSpacing( 6 );
- Layout7->setMargin( 0 );
-
- TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" );
- TextLabel1_2->setText( tr( "Insure a delay of" ) );
-
- Layout7->addWidget( TextLabel1_2, 0, 0 );
-
- TextLabel2 = new QLabel( FrameSettings, "TextLabel2" );
- TextLabel2->setText( tr( "minutes until" ) );
-
- Layout7->addWidget( TextLabel2, 0, 2 );
-
- TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
- TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) );
- TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
-
- Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
-
- SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
- SpinBoxMinLookupDelay->setMaxValue( 9999999 );
- SpinBoxMinLookupDelay->setMinValue( 42 );
-
- Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
-
- FrameSettingsLayout->addLayout( Layout7, 2, 0 );
+ Line1 = new QFrame( FrameSettings, "Line1" );
+ Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
+ FrameSettingsLayout->addWidget( Line1 );
@@ -267,8 +249,38 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
SpinBoxNtpDelay = new QSpinBox( FrameSettings, "SpinBoxNtpDelay" );
+ SpinBoxNtpDelay->setWrapping( TRUE );
SpinBoxNtpDelay->setMaxValue( 9999999 );
- SpinBoxNtpDelay->setMinValue( 0 );
+ SpinBoxNtpDelay->setMinValue( 1 );
+ SpinBoxNtpDelay->setValue( 1440 );
Layout7_2->addWidget( SpinBoxNtpDelay, 0, 1 );
+ FrameSettingsLayout->addLayout( Layout7_2 );
- FrameSettingsLayout->addLayout( Layout7_2, 1, 0 );
+ Layout7 = new QGridLayout;
+ Layout7->setSpacing( 6 );
+ Layout7->setMargin( 0 );
+
+ TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" );
+ TextLabel1_2->setText( tr( "Insure a delay of" ) );
+
+ Layout7->addWidget( TextLabel1_2, 0, 0 );
+
+ TextLabel2 = new QLabel( FrameSettings, "TextLabel2" );
+ TextLabel2->setText( tr( "minutes until" ) );
+
+ Layout7->addWidget( TextLabel2, 0, 2 );
+
+ TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
+ TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) );
+ TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
+
+ Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
+
+ SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
+ SpinBoxMinLookupDelay->setWrapping( TRUE );
+ SpinBoxMinLookupDelay->setMaxValue( 9999999 );
+ SpinBoxMinLookupDelay->setMinValue( 42 );
+ SpinBoxMinLookupDelay->setValue( 720 );
+
+ Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
+ FrameSettingsLayout->addLayout( Layout7 );
@@ -290,10 +302,8 @@ NtpBase::NtpBase( QWidget* parent, const char* name, WFlags fl )
- TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
+ TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) );
-
TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) );
-
- TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) );
+ TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
diff --git a/noncore/settings/netsystemtime/ntpbase.h b/noncore/settings/netsystemtime/ntpbase.h
index b337822..a669601 100644
--- a/noncore/settings/netsystemtime/ntpbase.h
+++ b/noncore/settings/netsystemtime/ntpbase.h
@@ -3,3 +3,3 @@
**
-** Created: Mon Oct 21 21:05:47 2002
+** Created: Mon Oct 21 21:32:43 2002
** by: The User Interface Compiler (uic)
@@ -16,2 +16,3 @@ class QHBoxLayout;
class QGridLayout;
+class QCheckBox;
class QComboBox;
@@ -62,6 +63,4 @@ public:
QComboBox* ComboNtpSrv;
- QLabel* TextLabel1_2;
- QLabel* TextLabel2;
- QLabel* TextLabel3_3;
- QSpinBox* SpinBoxMinLookupDelay;
+ QCheckBox* CheckBoxAdvSettings;
+ QFrame* Line1;
QLabel* TextLabel1_2_2;
@@ -70,2 +69,6 @@ public:
QSpinBox* SpinBoxNtpDelay;
+ QLabel* TextLabel1_2;
+ QLabel* TextLabel2;
+ QLabel* TextLabel3_3;
+ QSpinBox* SpinBoxMinLookupDelay;
QWidget* tabManualSetTime;
@@ -84,6 +87,6 @@ protected:
QGridLayout* TabSettingsLayout;
- QGridLayout* FrameSettingsLayout;
+ QVBoxLayout* FrameSettingsLayout;
QGridLayout* Layout6;
- QGridLayout* Layout7;
QGridLayout* Layout7_2;
+ QGridLayout* Layout7;
QVBoxLayout* tabManualSetTimeLayout;
diff --git a/noncore/settings/netsystemtime/ntpbase.ui b/noncore/settings/netsystemtime/ntpbase.ui
index be2c8d3..62f736b 100644
--- a/noncore/settings/netsystemtime/ntpbase.ui
+++ b/noncore/settings/netsystemtime/ntpbase.ui
@@ -1,8 +1,11 @@
-<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
+<!DOCTYPE UI><UI>
<class>NtpBase</class>
-<widget class="QWidget">
- <property name="name">
+<widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>NtpBase</cstring>
</property>
- <property name="geometry">
+ <property stdset="1">
+ <name>geometry</name>
<rect>
@@ -10,3 +13,3 @@
<y>0</y>
- <width>324</width>
+ <width>320</width>
<height>411</height>
@@ -14,32 +17,41 @@
</property>
- <property name="caption">
- <string>Set Time</string>
+ <property stdset="1">
+ <name>caption</name>
+ <string>Network Time</string>
</property>
- <property name="layoutMargin" stdset="0">
+ <property>
+ <name>layoutMargin</name>
</property>
- <property name="layoutSpacing" stdset="0">
+ <property>
+ <name>layoutSpacing</name>
</property>
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <property stdset="1">
+ <name>margin</name>
<number>2</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>2</number>
</property>
- <widget class="QTabWidget" row="0" column="0">
- <property name="name">
+ <widget row="0" column="0" >
+ <class>QTabWidget</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TabWidgetMain</cstring>
</property>
- <property name="layoutMargin" stdset="0">
+ <property>
+ <name>layoutMargin</name>
</property>
- <property name="layoutSpacing" stdset="0">
+ <property>
+ <name>layoutSpacing</name>
</property>
- <widget class="QWidget">
- <property name="name">
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>tabMain</cstring>
</property>
- <attribute name="title">
+ <attribute>
+ <name>title</name>
<string>Main</string>
@@ -47,19 +59,22 @@
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <property stdset="1">
+ <name>margin</name>
<number>2</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>2</number>
</property>
- <widget class="QFrame" row="0" column="0">
- <property name="name">
+ <widget row="0" column="0" >
+ <class>QFrame</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>FrameSystemTime</cstring>
</property>
- <property name="frameShape">
+ <property stdset="1">
+ <name>frameShape</name>
<enum>StyledPanel</enum>
</property>
- <property name="frameShadow">
+ <property stdset="1">
+ <name>frameShadow</name>
<enum>Raised</enum>
@@ -69,270 +84,189 @@
</widget>
- <widget class="QWidget">
- <property name="name">
- <cstring>tabSetTime</cstring>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tabNtp</cstring>
</property>
- <attribute name="title">
- <string>Manual</string>
+ <attribute>
+ <name>title</name>
+ <string>NTP</string>
</attribute>
- <vbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>2</number>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>1</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>2</number>
</property>
- <widget class="QFrame">
- <property name="name">
- <cstring>FrameSetTime</cstring>
- </property>
- <property name="frameShape">
- <enum>StyledPanel</enum>
- </property>
- <property name="frameShadow">
- <enum>Raised</enum>
- </property>
- </widget>
- <widget class="QPushButton">
- <property name="name">
- <cstring>PushButtonSetManualTime</cstring>
+ <widget row="1" column="0" >
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>runNtp</cstring>
</property>
- <property name="text">
- <string>Set time</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>Get time from network</string>
</property>
</widget>
- </vbox>
- </widget>
- <widget class="QWidget">
- <property name="name">
- <cstring>TabSettings</cstring>
- </property>
- <attribute name="title">
- <string>Settings</string>
- </attribute>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>2</number>
- </property>
- <property name="spacing">
- <number>2</number>
- </property>
- <widget class="QFrame" row="0" column="0">
- <property name="name">
- <cstring>FrameSettings</cstring>
+ <widget row="0" column="0" >
+ <class>QFrame</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>FrameNtp</cstring>
</property>
- <property name="frameShape">
+ <property stdset="1">
+ <name>frameShape</name>
<enum>StyledPanel</enum>
</property>
- <property name="frameShadow">
+ <property stdset="1">
+ <name>frameShadow</name>
<enum>Raised</enum>
</property>
- <property name="layoutMargin" stdset="0">
+ <property>
+ <name>layoutMargin</name>
</property>
- <property name="layoutSpacing" stdset="0">
+ <property>
+ <name>layoutSpacing</name>
</property>
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>3</number>
+ <property stdset="1">
+ <name>margin</name>
+ <number>2</number>
</property>
- <property name="spacing">
- <number>11</number>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>2</number>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
- <property name="name">
- <cstring>Layout6</cstring>
+ <widget row="0" column="0" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout4</cstring>
</property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
<number>0</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>TextLabel7_2</cstring>
- </property>
- <property name="text">
- <string>Use</string>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel1</cstring>
</property>
- </widget>
- <widget class="QLabel" row="0" column="2">
- <property name="name">
- <cstring>TextLabel2_2</cstring>
+ <property stdset="1">
+ <name>autoMask</name>
+ <bool>false</bool>
</property>
- <property name="text">
- <string>as</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>Start Time:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="2">
- <property name="name">
- <cstring>TextLabel1_3</cstring>
- </property>
- <property name="text">
- <string>NTP server to get the time from the network.</string>
- </property>
- <property name="alignment">
- <set>WordBreak|AlignVCenter|AlignLeft</set>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabelStartTime</cstring>
</property>
- <property name="wordwrap" stdset="0">
+ <property stdset="1">
+ <name>text</name>
+ <string>nan</string>
</property>
</widget>
- <widget class="QComboBox" row="0" column="1">
- <property name="name">
- <cstring>ComboNtpSrv</cstring>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3</cstring>
</property>
- <property name="editable">
- <bool>true</bool>
+ <property stdset="1">
+ <name>text</name>
+ <string>Time Shift:</string>
</property>
</widget>
- </grid>
- </widget>
- <spacer row="3" column="0">
- <property name="name">
- <cstring>Spacer2</cstring>
- </property>
- <property name="orientation">
- <enum>Vertical</enum>
- </property>
- <property name="sizeType">
- <enum>Expanding</enum>
- </property>
- <property name="sizeHint">
- <size>
- <width>0</width>
- <height>20</height>
- </size>
- </property>
- </spacer>
- <widget class="QLayoutWidget" row="2" column="0">
- <property name="name">
- <cstring>Layout7</cstring>
- </property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>TextLabel1_2</cstring>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabelTimeShift</cstring>
</property>
- <property name="text">
- <string>Insure a delay of</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>nan</string>
</property>
</widget>
- <widget class="QLabel" row="0" column="2">
- <property name="name">
- <cstring>TextLabel2</cstring>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel5</cstring>
</property>
- <property name="text">
- <string>minutes until</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>New Time:</string>
</property>
</widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>TextLabel3_3</cstring>
- </property>
- <property name="text">
- <string>a new NTP lookup will be used to predict the time.</string>
- </property>
- <property name="alignment">
- <set>WordBreak|AlignVCenter|AlignLeft</set>
+ <widget>
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabelNewTime</cstring>
</property>
- <property name="wordwrap" stdset="0">
+ <property stdset="1">
+ <name>text</name>
+ <string>nan</string>
</property>
</widget>
- <widget class="QSpinBox" row="0" column="1">
- <property name="name">
- <cstring>SpinBoxMinLookupDelay</cstring>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer1</cstring>
</property>
- <property name="maxValue">
- <number>9999999</number>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
</property>
- <property name="minValue">
- <number>42</number>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
</property>
- </widget>
- </grid>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ </vbox>
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
- <property name="name">
- <cstring>Layout7_2</cstring>
+ <widget row="1" column="0" >
+ <class>QMultiLineEdit</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>MultiLineEditntpOutPut</cstring>
+ </property>
+ <property stdset="1">
+ <name>font</name>
+ <font>
+ <pointsize>7</pointsize>
+ </font>
+ </property>
+ <property stdset="1">
+ <name>wordWrap</name>
+ <enum>WidgetWidth</enum>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string></string>
</property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>0</number>
- </property>
- <property name="spacing">
- <number>6</number>
- </property>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
- <cstring>TextLabel1_2_2</cstring>
- </property>
- <property name="sizePolicy">
- <sizepolicy>
- <hsizetype>1</hsizetype>
- <vsizetype>1</vsizetype>
- <horstretch>0</horstretch>
- <verstretch>0</verstretch>
- </sizepolicy>
- </property>
- <property name="text">
- <string>Wait for </string>
- </property>
- </widget>
- <widget class="QLabel" row="0" column="2">
- <property name="name">
- <cstring>TextLabel2_3</cstring>
- </property>
- <property name="text">
- <string>minutes until</string>
- </property>
- </widget>
- <widget class="QLabel" row="1" column="0" rowspan="1" colspan="3">
- <property name="name">
- <cstring>TextLabel3_3_2</cstring>
- </property>
- <property name="text">
- <string>NTP tries to syncronises the clock with the network.</string>
- </property>
- <property name="alignment">
- <set>WordBreak|AlignVCenter|AlignLeft</set>
- </property>
- <property name="wordwrap" stdset="0">
- </property>
- </widget>
- <widget class="QSpinBox" row="0" column="1">
- <property name="name">
- <cstring>SpinBoxNtpDelay</cstring>
- </property>
- <property name="maxValue">
- <number>9999999</number>
- </property>
- <property name="minValue">
- <number>0</number>
- </property>
- </widget>
- </grid>
</widget>
@@ -342,7 +276,10 @@
</widget>
- <widget class="QWidget">
- <property name="name">
- <cstring>tab</cstring>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tabPredict</cstring>
</property>
- <attribute name="title">
+ <attribute>
+ <name>title</name>
<string>Predict</string>
@@ -350,16 +287,18 @@
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <property stdset="1">
+ <name>margin</name>
<number>5</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>6</number>
</property>
- <widget class="QTable" row="0" column="0">
- <property name="name">
+ <widget row="0" column="0" >
+ <class>QTable</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TableLookups</cstring>
</property>
- <property name="font">
+ <property stdset="1">
+ <name>font</name>
<font>
@@ -368,6 +307,8 @@
</property>
- <property name="numRows">
+ <property stdset="1">
+ <name>numRows</name>
<number>2</number>
</property>
- <property name="numCols">
+ <property stdset="1">
+ <name>numCols</name>
<number>2</number>
@@ -375,4 +316,6 @@
</widget>
- <widget class="QLayoutWidget" row="1" column="0">
- <property name="name">
+ <widget row="1" column="0" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>Layout9</cstring>
@@ -380,16 +323,18 @@
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <property stdset="1">
+ <name>margin</name>
<number>0</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>6</number>
</property>
- <widget class="QLabel" row="0" column="1">
- <property name="name">
+ <widget row="0" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TextLabelShift</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>nan</string>
@@ -397,7 +342,10 @@
</widget>
- <widget class="QLabel" row="1" column="0">
- <property name="name">
+ <widget row="1" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TextLabel4</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>Esimated Shift:</string>
@@ -405,7 +353,10 @@
</widget>
- <widget class="QLabel" row="1" column="1">
- <property name="name">
+ <widget row="1" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TextLabelEstimatedShift</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>nan</string>
@@ -413,7 +364,10 @@
</widget>
- <widget class="QLabel" row="2" column="0">
- <property name="name">
+ <widget row="2" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TextLabel3_2</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>Predicted Time:</string>
@@ -421,7 +375,10 @@
</widget>
- <widget class="QLabel" row="0" column="0">
- <property name="name">
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>Mean_shift_label</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>Mean shift:</string>
@@ -429,7 +386,10 @@
</widget>
- <widget class="QLabel" row="2" column="1">
- <property name="name">
+ <widget row="2" column="1" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>TextLabelPredTime</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>nan</string>
@@ -439,4 +399,6 @@
</widget>
- <widget class="QLayoutWidget" row="2" column="0">
- <property name="name">
+ <widget row="2" column="0" >
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>Layout11</cstring>
@@ -444,16 +406,18 @@
<hbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <property stdset="1">
+ <name>margin</name>
<number>0</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>6</number>
</property>
- <widget class="QPushButton">
- <property name="name">
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>PushButtonSetPredTime</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>Set predicted time</string>
@@ -461,7 +425,10 @@
</widget>
- <widget class="QPushButton">
- <property name="name">
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
<cstring>PushButtonPredict</cstring>
</property>
- <property name="text">
+ <property stdset="1">
+ <name>text</name>
<string>Predict time</string>
@@ -473,152 +440,350 @@
</widget>
- <widget class="QWidget">
- <property name="name">
- <cstring>tabNtp</cstring>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TabSettings</cstring>
</property>
- <attribute name="title">
- <string>NTP</string>
+ <attribute>
+ <name>title</name>
+ <string>Settings</string>
</attribute>
<grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>1</number>
+ <property stdset="1">
+ <name>margin</name>
+ <number>2</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>2</number>
</property>
- <widget class="QPushButton" row="1" column="0">
- <property name="name">
- <cstring>runNtp</cstring>
- </property>
- <property name="text">
- <string>Get time from network</string>
- </property>
- </widget>
- <widget class="QFrame" row="0" column="0">
- <property name="name">
- <cstring>FrameNtp</cstring>
+ <widget row="0" column="0" >
+ <class>QFrame</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>FrameSettings</cstring>
</property>
- <property name="frameShape">
+ <property stdset="1">
+ <name>frameShape</name>
<enum>StyledPanel</enum>
</property>
- <property name="frameShadow">
+ <property stdset="1">
+ <name>frameShadow</name>
<enum>Raised</enum>
</property>
- <property name="layoutMargin" stdset="0">
+ <property>
+ <name>layoutMargin</name>
</property>
- <property name="layoutSpacing" stdset="0">
+ <property>
+ <name>layoutSpacing</name>
</property>
- <grid>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
- <number>2</number>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>11</number>
</property>
- <property name="spacing">
- <number>2</number>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
</property>
- <widget class="QLayoutWidget" row="0" column="0">
- <property name="name">
- <cstring>Layout4</cstring>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout6</cstring>
</property>
- <vbox>
- <property name="name">
- <cstring>unnamed</cstring>
- </property>
- <property name="margin">
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
<number>0</number>
</property>
- <property name="spacing">
+ <property stdset="1">
+ <name>spacing</name>
<number>6</number>
</property>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabel1</cstring>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel7_2</cstring>
</property>
- <property name="autoMask">
- <bool>false</bool>
+ <property stdset="1">
+ <name>text</name>
+ <string>Use</string>
</property>
- <property name="text">
- <string>Start Time:</string>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel2_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>as</string>
</property>
</widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabelStartTime</cstring>
+ <widget row="1" column="0" rowspan="1" colspan="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel1_3</cstring>
</property>
- <property name="text">
- <string>nan</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>NTP server to get the time from the network.</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>WordBreak|AlignVCenter|AlignLeft</set>
+ </property>
+ <property>
+ <name>wordwrap</name>
</property>
</widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabel3</cstring>
+ <widget row="0" column="1" >
+ <class>QComboBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>ComboNtpSrv</cstring>
</property>
- <property name="text">
- <string>Time Shift:</string>
+ <property stdset="1">
+ <name>editable</name>
+ <bool>true</bool>
</property>
</widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabelTimeShift</cstring>
+ </grid>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer3</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Minimum</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>QCheckBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>CheckBoxAdvSettings</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Advanced settings</string>
+ </property>
+ </widget>
+ <spacer>
+ <property>
+ <name>name</name>
+ <cstring>Spacer4</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Vertical</enum>
+ </property>
+ <property stdset="1">
+ <name>sizeType</name>
+ <enum>Expanding</enum>
+ </property>
+ <property>
+ <name>sizeHint</name>
+ <size>
+ <width>20</width>
+ <height>20</height>
+ </size>
+ </property>
+ </spacer>
+ <widget>
+ <class>Line</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Line1</cstring>
+ </property>
+ <property stdset="1">
+ <name>orientation</name>
+ <enum>Horizontal</enum>
+ </property>
+ </widget>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7_2</cstring>
+ </property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel1_2_2</cstring>
</property>
- <property name="text">
- <string>nan</string>
+ <property stdset="1">
+ <name>sizePolicy</name>
+ <sizepolicy>
+ <hsizetype>1</hsizetype>
+ <vsizetype>1</vsizetype>
+ </sizepolicy>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Wait for </string>
</property>
</widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabel5</cstring>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel2_3</cstring>
</property>
- <property name="text">
- <string>New Time:</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>minutes until</string>
</property>
</widget>
- <widget class="QLabel">
- <property name="name">
- <cstring>TextLabelNewTime</cstring>
+ <widget row="1" column="0" rowspan="1" colspan="3" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3_3_2</cstring>
</property>
- <property name="text">
- <string>nan</string>
+ <property stdset="1">
+ <name>text</name>
+ <string>NTP tries to syncronises the clock with the network.</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>WordBreak|AlignVCenter|AlignLeft</set>
+ </property>
+ <property>
+ <name>wordwrap</name>
</property>
</widget>
- <spacer>
- <property name="name">
- <cstring>Spacer1</cstring>
+ <widget row="0" column="1" >
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>SpinBoxNtpDelay</cstring>
</property>
- <property name="orientation">
- <enum>Vertical</enum>
+ <property stdset="1">
+ <name>wrapping</name>
+ <bool>true</bool>
</property>
- <property name="sizeType">
- <enum>Expanding</enum>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>9999999</number>
</property>
- <property name="sizeHint">
- <size>
- <width>0</width>
- <height>20</height>
- </size>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>1</number>
</property>
- </spacer>
- </vbox>
+ <property stdset="1">
+ <name>value</name>
+ <number>1440</number>
+ </property>
+ </widget>
+ </grid>
</widget>
- <widget class="QMultiLineEdit" row="1" column="0">
- <property name="name">
- <cstring>MultiLineEditntpOutPut</cstring>
- </property>
- <property name="font">
- <font>
- <pointsize>7</pointsize>
- </font>
- </property>
- <property name="text">
- <string></string>
- </property>
- <property name="wordWrap">
- <enum>WidgetWidth</enum>
+ <widget>
+ <class>QLayoutWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>Layout7</cstring>
</property>
+ <grid>
+ <property stdset="1">
+ <name>margin</name>
+ <number>0</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>6</number>
+ </property>
+ <widget row="0" column="0" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel1_2</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Insure a delay of</string>
+ </property>
+ </widget>
+ <widget row="0" column="2" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel2</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>minutes until</string>
+ </property>
+ </widget>
+ <widget row="1" column="0" rowspan="1" colspan="3" >
+ <class>QLabel</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>TextLabel3_3</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>a new NTP lookup will be used to predict the time.</string>
+ </property>
+ <property stdset="1">
+ <name>alignment</name>
+ <set>WordBreak|AlignVCenter|AlignLeft</set>
+ </property>
+ <property>
+ <name>wordwrap</name>
+ </property>
+ </widget>
+ <widget row="0" column="1" >
+ <class>QSpinBox</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>SpinBoxMinLookupDelay</cstring>
+ </property>
+ <property stdset="1">
+ <name>wrapping</name>
+ <bool>true</bool>
+ </property>
+ <property stdset="1">
+ <name>maxValue</name>
+ <number>9999999</number>
+ </property>
+ <property stdset="1">
+ <name>minValue</name>
+ <number>42</number>
+ </property>
+ <property stdset="1">
+ <name>value</name>
+ <number>720</number>
+ </property>
+ </widget>
+ </grid>
</widget>
- </grid>
+ </vbox>
</widget>
@@ -626,2 +791,49 @@
</widget>
+ <widget>
+ <class>QWidget</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>tabManualSetTime</cstring>
+ </property>
+ <attribute>
+ <name>title</name>
+ <string>Manual</string>
+ </attribute>
+ <vbox>
+ <property stdset="1">
+ <name>margin</name>
+ <number>2</number>
+ </property>
+ <property stdset="1">
+ <name>spacing</name>
+ <number>2</number>
+ </property>
+ <widget>
+ <class>QFrame</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>FrameSetTime</cstring>
+ </property>
+ <property stdset="1">
+ <name>frameShape</name>
+ <enum>StyledPanel</enum>
+ </property>
+ <property stdset="1">
+ <name>frameShadow</name>
+ <enum>Raised</enum>
+ </property>
+ </widget>
+ <widget>
+ <class>QPushButton</class>
+ <property stdset="1">
+ <name>name</name>
+ <cstring>PushButtonSetManualTime</cstring>
+ </property>
+ <property stdset="1">
+ <name>text</name>
+ <string>Set time</string>
+ </property>
+ </widget>
+ </vbox>
+ </widget>
</widget>
@@ -629,3 +841,2 @@
</widget>
-<layoutdefaults spacing="6" margin="11"/>
</UI>