summaryrefslogtreecommitdiff
path: root/noncore
authormickeyl <mickeyl>2003-02-09 15:33:42 (UTC)
committer mickeyl <mickeyl>2003-02-09 15:33:42 (UTC)
commitcade16aa686978486acab98bc98602ede356ac09 (patch) (unidiff)
tree8d4e94aaa76f7a8351b1237b4b76ba47741ca330 /noncore
parenta0eb099d4d39e61a4d3016f3b609cad732c07248 (diff)
downloadopie-cade16aa686978486acab98bc98602ede356ac09.zip
opie-cade16aa686978486acab98bc98602ede356ac09.tar.gz
opie-cade16aa686978486acab98bc98602ede356ac09.tar.bz2
remove uic-generated files
Diffstat (limited to 'noncore') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/ntpbase.cpp335
-rw-r--r--noncore/settings/netsystemtime/ntpbase.h97
2 files changed, 0 insertions, 432 deletions
diff --git a/noncore/settings/netsystemtime/ntpbase.cpp b/noncore/settings/netsystemtime/ntpbase.cpp
deleted file mode 100644
index 878c158..0000000
--- a/noncore/settings/netsystemtime/ntpbase.cpp
+++ b/dev/null
@@ -1,335 +0,0 @@
1/****************************************************************************
2** Form implementation generated from reading ui file 'ntpbase.ui'
3**
4** Created: Sat Nov 16 15:49:54 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#include "ntpbase.h"
10
11#include <qcheckbox.h>
12#include <qcombobox.h>
13#include <qframe.h>
14#include <qlabel.h>
15#include <qmultilineedit.h>
16#include <qpushbutton.h>
17#include <qspinbox.h>
18#include <qtable.h>
19#include <qtabwidget.h>
20#include <qwidget.h>
21#include <qlayout.h>
22#include <qvariant.h>
23#include <qtooltip.h>
24#include <qwhatsthis.h>
25
26/*
27 * Constructs a NtpBase which is a child of 'parent', with the
28 * name 'name' and widget flags set to 'f'
29 *
30 * The dialog will by default be modeless, unless you set 'modal' to
31 * TRUE to construct a modal dialog.
32 */
33NtpBase::NtpBase( QWidget* parent, const char* name, bool modal, WFlags fl )
34 : QDialog( parent, name, modal, fl )
35{
36 if ( !name )
37 setName( "NtpBase" );
38 resize( 317, 411 );
39 setCaption( tr( "Network Time" ) );
40 NtpBaseLayout = new QGridLayout( this );
41 NtpBaseLayout->setSpacing( 2 );
42 NtpBaseLayout->setMargin( 2 );
43
44 TabWidgetMain = new QTabWidget( this, "TabWidgetMain" );
45
46 tabMain = new QWidget( TabWidgetMain, "tabMain" );
47 tabMainLayout = new QGridLayout( tabMain );
48 tabMainLayout->setSpacing( 2 );
49 tabMainLayout->setMargin( 2 );
50
51 FrameSystemTime = new QFrame( tabMain, "FrameSystemTime" );
52
53 tabMainLayout->addWidget( FrameSystemTime, 0, 0 );
54 TabWidgetMain->insertTab( tabMain, tr( "Main" ) );
55
56 tabNtp = new QWidget( TabWidgetMain, "tabNtp" );
57 tabNtpLayout = new QGridLayout( tabNtp );
58 tabNtpLayout->setSpacing( 2 );
59 tabNtpLayout->setMargin( 1 );
60
61 runNtp = new QPushButton( tabNtp, "runNtp" );
62 runNtp->setText( tr( "Get time from network" ) );
63
64 tabNtpLayout->addWidget( runNtp, 1, 0 );
65
66 FrameNtp = new QWidget( tabNtp, "FrameNtp" );
67 FrameNtpLayout = new QGridLayout( FrameNtp );
68 FrameNtpLayout->setSpacing( 2 );
69 FrameNtpLayout->setMargin( 2 );
70
71 Layout4 = new QVBoxLayout;
72 Layout4->setSpacing( 6 );
73 Layout4->setMargin( 0 );
74
75 TextLabel1 = new QLabel( FrameNtp, "TextLabel1" );
76 TextLabel1->setAutoMask( FALSE );
77 TextLabel1->setText( tr( "Start Time:" ) );
78 Layout4->addWidget( TextLabel1 );
79
80 TextLabelStartTime = new QLabel( FrameNtp, "TextLabelStartTime" );
81 TextLabelStartTime->setText( tr( "nan" ) );
82 Layout4->addWidget( TextLabelStartTime );
83
84 TextLabel3 = new QLabel( FrameNtp, "TextLabel3" );
85 TextLabel3->setText( tr( "Time Shift:" ) );
86 Layout4->addWidget( TextLabel3 );
87
88 TextLabelTimeShift = new QLabel( FrameNtp, "TextLabelTimeShift" );
89 TextLabelTimeShift->setText( tr( "nan" ) );
90 Layout4->addWidget( TextLabelTimeShift );
91
92 TextLabel5 = new QLabel( FrameNtp, "TextLabel5" );
93 TextLabel5->setText( tr( "New Time:" ) );
94 Layout4->addWidget( TextLabel5 );
95
96 TextLabelNewTime = new QLabel( FrameNtp, "TextLabelNewTime" );
97 TextLabelNewTime->setText( tr( "nan" ) );
98 Layout4->addWidget( TextLabelNewTime );
99 QSpacerItem* spacer = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
100 Layout4->addItem( spacer );
101
102 FrameNtpLayout->addLayout( Layout4, 0, 0 );
103
104 MultiLineEditntpOutPut = new QMultiLineEdit( FrameNtp, "MultiLineEditntpOutPut" );
105 QFont MultiLineEditntpOutPut_font( MultiLineEditntpOutPut->font() );
106 MultiLineEditntpOutPut_font.setPointSize( 7 );
107 MultiLineEditntpOutPut->setFont( MultiLineEditntpOutPut_font );
108 MultiLineEditntpOutPut->setWordWrap( QMultiLineEdit::WidgetWidth );
109 MultiLineEditntpOutPut->setText( tr( "" ) );
110
111 FrameNtpLayout->addWidget( MultiLineEditntpOutPut, 1, 0 );
112
113 tabNtpLayout->addWidget( FrameNtp, 0, 0 );
114 TabWidgetMain->insertTab( tabNtp, tr( "NTP" ) );
115
116 tabPredict = new QWidget( TabWidgetMain, "tabPredict" );
117 tabPredictLayout = new QGridLayout( tabPredict );
118 tabPredictLayout->setSpacing( 6 );
119 tabPredictLayout->setMargin( 5 );
120
121 TableLookups = new QTable( tabPredict, "TableLookups" );
122 QFont TableLookups_font( TableLookups->font() );
123 TableLookups_font.setPointSize( 8 );
124 TableLookups->setFont( TableLookups_font );
125 TableLookups->setNumRows( 2 );
126 TableLookups->setNumCols( 2 );
127
128 tabPredictLayout->addWidget( TableLookups, 0, 0 );
129
130 Layout9 = new QGridLayout;
131 Layout9->setSpacing( 6 );
132 Layout9->setMargin( 0 );
133
134 TextLabelShift = new QLabel( tabPredict, "TextLabelShift" );
135 TextLabelShift->setText( tr( "nan" ) );
136
137 Layout9->addWidget( TextLabelShift, 0, 1 );
138
139 TextLabel4 = new QLabel( tabPredict, "TextLabel4" );
140 TextLabel4->setText( tr( "Esimated Shift:" ) );
141
142 Layout9->addWidget( TextLabel4, 1, 0 );
143
144 TextLabelEstimatedShift = new QLabel( tabPredict, "TextLabelEstimatedShift" );
145 TextLabelEstimatedShift->setText( tr( "nan" ) );
146
147 Layout9->addWidget( TextLabelEstimatedShift, 1, 1 );
148
149 TextLabel3_2 = new QLabel( tabPredict, "TextLabel3_2" );
150 TextLabel3_2->setText( tr( "Predicted Time:" ) );
151
152 Layout9->addWidget( TextLabel3_2, 2, 0 );
153
154 Mean_shift_label = new QLabel( tabPredict, "Mean_shift_label" );
155 Mean_shift_label->setText( tr( "Mean shift:" ) );
156
157 Layout9->addWidget( Mean_shift_label, 0, 0 );
158
159 TextLabelPredTime = new QLabel( tabPredict, "TextLabelPredTime" );
160 TextLabelPredTime->setText( tr( "nan" ) );
161
162 Layout9->addWidget( TextLabelPredTime, 2, 1 );
163
164 tabPredictLayout->addLayout( Layout9, 1, 0 );
165
166 Layout11 = new QHBoxLayout;
167 Layout11->setSpacing( 6 );
168 Layout11->setMargin( 0 );
169
170 PushButtonSetPredTime = new QPushButton( tabPredict, "PushButtonSetPredTime" );
171 PushButtonSetPredTime->setText( tr( "Set predicted time" ) );
172 Layout11->addWidget( PushButtonSetPredTime );
173
174 PushButtonPredict = new QPushButton( tabPredict, "PushButtonPredict" );
175 PushButtonPredict->setText( tr( "Predict time" ) );
176 Layout11->addWidget( PushButtonPredict );
177
178 tabPredictLayout->addLayout( Layout11, 2, 0 );
179 TabWidgetMain->insertTab( tabPredict, tr( "Predict" ) );
180
181 TabSettings = new QWidget( TabWidgetMain, "TabSettings" );
182 TabSettingsLayout = new QGridLayout( TabSettings );
183 TabSettingsLayout->setSpacing( 2 );
184 TabSettingsLayout->setMargin( 2 );
185
186 FrameSettings = new QWidget( TabSettings, "FrameSettings" );
187 FrameSettingsLayout = new QVBoxLayout( FrameSettings );
188 FrameSettingsLayout->setSpacing( 6 );
189 FrameSettingsLayout->setMargin( 11 );
190
191 Layout6 = new QGridLayout;
192 Layout6->setSpacing( 6 );
193 Layout6->setMargin( 0 );
194
195 TextLabel7_2 = new QLabel( FrameSettings, "TextLabel7_2" );
196 TextLabel7_2->setText( tr( "Use" ) );
197
198 Layout6->addWidget( TextLabel7_2, 0, 0 );
199
200 TextLabel2_2 = new QLabel( FrameSettings, "TextLabel2_2" );
201 TextLabel2_2->setText( tr( "as" ) );
202
203 Layout6->addWidget( TextLabel2_2, 0, 2 );
204
205 TextLabel1_3 = new QLabel( FrameSettings, "TextLabel1_3" );
206 TextLabel1_3->setText( tr( "NTP server to get the time from the network." ) );
207 TextLabel1_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
208
209 Layout6->addMultiCellWidget( TextLabel1_3, 1, 1, 0, 1 );
210
211 ComboNtpSrv = new QComboBox( FALSE, FrameSettings, "ComboNtpSrv" );
212 ComboNtpSrv->setEditable( TRUE );
213
214 Layout6->addWidget( ComboNtpSrv, 0, 1 );
215 FrameSettingsLayout->addLayout( Layout6 );
216 QSpacerItem* spacer_2 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Minimum );
217 FrameSettingsLayout->addItem( spacer_2 );
218
219 CheckBoxAdvSettings = new QCheckBox( FrameSettings, "CheckBoxAdvSettings" );
220 CheckBoxAdvSettings->setText( tr( "Advanced settings" ) );
221 FrameSettingsLayout->addWidget( CheckBoxAdvSettings );
222 QSpacerItem* spacer_3 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
223 FrameSettingsLayout->addItem( spacer_3 );
224
225 Line1 = new QFrame( FrameSettings, "Line1" );
226 Line1->setFrameStyle( QFrame::HLine | QFrame::Sunken );
227 FrameSettingsLayout->addWidget( Line1 );
228
229 Layout7_2 = new QGridLayout;
230 Layout7_2->setSpacing( 6 );
231 Layout7_2->setMargin( 0 );
232
233 TextLabel1_2_2 = new QLabel( FrameSettings, "TextLabel1_2_2" );
234 TextLabel1_2_2->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)1, (QSizePolicy::SizeType)1, TextLabel1_2_2->sizePolicy().hasHeightForWidth() ) );
235 TextLabel1_2_2->setText( tr( "Wait for " ) );
236
237 Layout7_2->addWidget( TextLabel1_2_2, 0, 0 );
238
239 TextLabel2_3 = new QLabel( FrameSettings, "TextLabel2_3" );
240 TextLabel2_3->setText( tr( "minutes until" ) );
241
242 Layout7_2->addWidget( TextLabel2_3, 0, 2 );
243
244 TextLabel3_3_2 = new QLabel( FrameSettings, "TextLabel3_3_2" );
245 TextLabel3_3_2->setText( tr( "NTP tries to syncronises the clock with the network." ) );
246 TextLabel3_3_2->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
247
248 Layout7_2->addMultiCellWidget( TextLabel3_3_2, 1, 1, 0, 2 );
249
250 SpinBoxNtpDelay = new QSpinBox( FrameSettings, "SpinBoxNtpDelay" );
251 SpinBoxNtpDelay->setWrapping( TRUE );
252 SpinBoxNtpDelay->setMaxValue( 9999999 );
253 SpinBoxNtpDelay->setMinValue( 1 );
254 SpinBoxNtpDelay->setValue( 1440 );
255
256 Layout7_2->addWidget( SpinBoxNtpDelay, 0, 1 );
257 FrameSettingsLayout->addLayout( Layout7_2 );
258
259 Layout7 = new QGridLayout;
260 Layout7->setSpacing( 6 );
261 Layout7->setMargin( 0 );
262
263 TextLabel1_2 = new QLabel( FrameSettings, "TextLabel1_2" );
264 TextLabel1_2->setText( tr( "Insure a delay of" ) );
265
266 Layout7->addWidget( TextLabel1_2, 0, 0 );
267
268 TextLabel2 = new QLabel( FrameSettings, "TextLabel2" );
269 TextLabel2->setText( tr( "minutes until" ) );
270
271 Layout7->addWidget( TextLabel2, 0, 2 );
272
273 TextLabel3_3 = new QLabel( FrameSettings, "TextLabel3_3" );
274 TextLabel3_3->setText( tr( "a new NTP lookup will be used to predict the time." ) );
275 TextLabel3_3->setAlignment( int( QLabel::WordBreak | QLabel::AlignVCenter | QLabel::AlignLeft ) );
276
277 Layout7->addMultiCellWidget( TextLabel3_3, 1, 1, 0, 2 );
278
279 SpinBoxMinLookupDelay = new QSpinBox( FrameSettings, "SpinBoxMinLookupDelay" );
280 SpinBoxMinLookupDelay->setWrapping( TRUE );
281 SpinBoxMinLookupDelay->setMaxValue( 9999999 );
282 SpinBoxMinLookupDelay->setMinValue( 42 );
283 SpinBoxMinLookupDelay->setValue( 720 );
284
285 Layout7->addWidget( SpinBoxMinLookupDelay, 0, 1 );
286 FrameSettingsLayout->addLayout( Layout7 );
287
288 TabSettingsLayout->addWidget( FrameSettings, 0, 0 );
289 TabWidgetMain->insertTab( TabSettings, tr( "Settings" ) );
290
291 tabManualSetTime = new QWidget( TabWidgetMain, "tabManualSetTime" );
292 tabManualSetTimeLayout = new QVBoxLayout( tabManualSetTime );
293 tabManualSetTimeLayout->setSpacing( 6 );
294 tabManualSetTimeLayout->setMargin( 11 );
295
296 FrameSetTime = new QWidget( tabManualSetTime, "FrameSetTime" );
297 FrameSetTime->setSizePolicy( QSizePolicy( (QSizePolicy::SizeType)5, (QSizePolicy::SizeType)3, FrameSetTime->sizePolicy().hasHeightForWidth() ) );
298 tabManualSetTimeLayout->addWidget( FrameSetTime );
299
300 PushButtonSetManualTime = new QPushButton( tabManualSetTime, "PushButtonSetManualTime" );
301 PushButtonSetManualTime->setText( tr( "Set time" ) );
302 tabManualSetTimeLayout->addWidget( PushButtonSetManualTime );
303 QSpacerItem* spacer_4 = new QSpacerItem( 20, 20, QSizePolicy::Minimum, QSizePolicy::Expanding );
304 tabManualSetTimeLayout->addItem( spacer_4 );
305 TabWidgetMain->insertTab( tabManualSetTime, tr( "Manual" ) );
306
307 NtpBaseLayout->addWidget( TabWidgetMain, 0, 0 );
308}
309
310/*
311 * Destroys the object and frees any allocated resources
312 */
313NtpBase::~NtpBase()
314{
315 // no need to delete child widgets, Qt does it all for us
316}
317
318/*
319 * Main event handler. Reimplemented to handle application
320 * font changes
321 */
322bool NtpBase::event( QEvent* ev )
323{
324 bool ret = QDialog::event( ev );
325 if ( ev->type() == QEvent::ApplicationFontChange ) {
326 QFont MultiLineEditntpOutPut_font( MultiLineEditntpOutPut->font() );
327 MultiLineEditntpOutPut_font.setPointSize( 7 );
328 MultiLineEditntpOutPut->setFont( MultiLineEditntpOutPut_font );
329 QFont TableLookups_font( TableLookups->font() );
330 TableLookups_font.setPointSize( 8 );
331 TableLookups->setFont( TableLookups_font );
332 }
333 return ret;
334}
335
diff --git a/noncore/settings/netsystemtime/ntpbase.h b/noncore/settings/netsystemtime/ntpbase.h
deleted file mode 100644
index 68599c9..0000000
--- a/noncore/settings/netsystemtime/ntpbase.h
+++ b/dev/null
@@ -1,97 +0,0 @@
1/****************************************************************************
2** Form interface generated from reading ui file 'ntpbase.ui'
3**
4** Created: Sat Nov 16 15:49:32 2002
5** by: The User Interface Compiler (uic)
6**
7** WARNING! All changes made in this file will be lost!
8****************************************************************************/
9#ifndef NTPBASE_H
10#define NTPBASE_H
11
12#include <qvariant.h>
13#include <qdialog.h>
14class QVBoxLayout;
15class QHBoxLayout;
16class QGridLayout;
17class QCheckBox;
18class QComboBox;
19class QFrame;
20class QLabel;
21class QMultiLineEdit;
22class QPushButton;
23class QSpinBox;
24class QTabWidget;
25class QTable;
26class QWidget;
27
28class NtpBase : public QDialog
29{
30 Q_OBJECT
31
32public:
33 NtpBase( QWidget* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
34 ~NtpBase();
35
36 QTabWidget* TabWidgetMain;
37 QWidget* tabMain;
38 QFrame* FrameSystemTime;
39 QWidget* tabNtp;
40 QPushButton* runNtp;
41 QWidget* FrameNtp;
42 QLabel* TextLabel1;
43 QLabel* TextLabelStartTime;
44 QLabel* TextLabel3;
45 QLabel* TextLabelTimeShift;
46 QLabel* TextLabel5;
47 QLabel* TextLabelNewTime;
48 QMultiLineEdit* MultiLineEditntpOutPut;
49 QWidget* tabPredict;
50 QTable* TableLookups;
51 QLabel* TextLabelShift;
52 QLabel* TextLabel4;
53 QLabel* TextLabelEstimatedShift;
54 QLabel* TextLabel3_2;
55 QLabel* Mean_shift_label;
56 QLabel* TextLabelPredTime;
57 QPushButton* PushButtonSetPredTime;
58 QPushButton* PushButtonPredict;
59 QWidget* TabSettings;
60 QWidget* FrameSettings;
61 QLabel* TextLabel7_2;
62 QLabel* TextLabel2_2;
63 QLabel* TextLabel1_3;
64 QComboBox* ComboNtpSrv;
65 QCheckBox* CheckBoxAdvSettings;
66 QFrame* Line1;
67 QLabel* TextLabel1_2_2;
68 QLabel* TextLabel2_3;
69 QLabel* TextLabel3_3_2;
70 QSpinBox* SpinBoxNtpDelay;
71 QLabel* TextLabel1_2;
72 QLabel* TextLabel2;
73 QLabel* TextLabel3_3;
74 QSpinBox* SpinBoxMinLookupDelay;
75 QWidget* tabManualSetTime;
76 QWidget* FrameSetTime;
77 QPushButton* PushButtonSetManualTime;
78
79protected:
80 QGridLayout* NtpBaseLayout;
81 QGridLayout* tabMainLayout;
82 QGridLayout* tabNtpLayout;
83 QGridLayout* FrameNtpLayout;
84 QVBoxLayout* Layout4;
85 QGridLayout* tabPredictLayout;
86 QGridLayout* Layout9;
87 QHBoxLayout* Layout11;
88 QGridLayout* TabSettingsLayout;
89 QVBoxLayout* FrameSettingsLayout;
90 QGridLayout* Layout6;
91 QGridLayout* Layout7_2;
92 QGridLayout* Layout7;
93 QVBoxLayout* tabManualSetTimeLayout;
94 bool event( QEvent* );
95};
96
97#endif // NTPBASE_H