summaryrefslogtreecommitdiff
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/settings/netsystemtime/formattabwidget.cpp50
-rw-r--r--noncore/settings/netsystemtime/formattabwidget.h50
-rw-r--r--noncore/settings/netsystemtime/main.cpp50
-rw-r--r--noncore/settings/netsystemtime/mainwindow.cpp50
-rw-r--r--noncore/settings/netsystemtime/mainwindow.h50
-rw-r--r--noncore/settings/netsystemtime/ntptabwidget.cpp57
-rw-r--r--noncore/settings/netsystemtime/ntptabwidget.h50
-rw-r--r--noncore/settings/netsystemtime/predicttabwidget.cpp50
-rw-r--r--noncore/settings/netsystemtime/predicttabwidget.h50
-rw-r--r--noncore/settings/netsystemtime/settingstabwidget.cpp50
-rw-r--r--noncore/settings/netsystemtime/settingstabwidget.h50
-rw-r--r--noncore/settings/netsystemtime/timetabwidget.cpp62
-rw-r--r--noncore/settings/netsystemtime/timetabwidget.h50
13 files changed, 351 insertions, 318 deletions
diff --git a/noncore/settings/netsystemtime/formattabwidget.cpp b/noncore/settings/netsystemtime/formattabwidget.cpp
index 982305b..7d01bff 100644
--- a/noncore/settings/netsystemtime/formattabwidget.cpp
+++ b/noncore/settings/netsystemtime/formattabwidget.cpp
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5           .>+-= 5 =.
6 _;:,     .>    :=|. This file is free software; you can 6 .=l.
7.> <`_,   >  .   <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i,     .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11     ._= =}       : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12    .%`+i>       _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13    .i_,=:_.      -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15    : ..    .:,     . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.=       =       ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++=   -.     .`     .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20 :     =  ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21 -.   .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23    --        :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "formattabwidget.h" 31#include "formattabwidget.h"
30 32
31#include <qpe/config.h> 33#include <qpe/config.h>
32 34
33#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) 35#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
34#include <qpe/qcopenvelope_qws.h> 36#include <qpe/qcopenvelope_qws.h>
35#endif 37#endif
36 38
37#include <qcombobox.h> 39#include <qcombobox.h>
38#include <qlabel.h> 40#include <qlabel.h>
39#include <qlayout.h> 41#include <qlayout.h>
40#include <qscrollview.h> 42#include <qscrollview.h>
41#include <qtimer.h> 43#include <qtimer.h>
42 44
diff --git a/noncore/settings/netsystemtime/formattabwidget.h b/noncore/settings/netsystemtime/formattabwidget.h
index e4073e7..171cd5f 100644
--- a/noncore/settings/netsystemtime/formattabwidget.h
+++ b/noncore/settings/netsystemtime/formattabwidget.h
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5           .>+-=
6 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#ifndef FORMATTABWIDGET_H 31#ifndef FORMATTABWIDGET_H
30#define FORMATTABWIDGET_H 32#define FORMATTABWIDGET_H
31 33
32#include <qpe/timestring.h> 34#include <qpe/timestring.h>
33 35
34#include <qwidget.h> 36#include <qwidget.h>
35 37
36class QComboBox; 38class QComboBox;
37 39
38class FormatTabWidget : public QWidget 40class FormatTabWidget : public QWidget
39{ 41{
40 Q_OBJECT 42 Q_OBJECT
41 43
42public: 44public:
diff --git a/noncore/settings/netsystemtime/main.cpp b/noncore/settings/netsystemtime/main.cpp
index dbcdc17..ef1bc8e 100644
--- a/noncore/settings/netsystemtime/main.cpp
+++ b/noncore/settings/netsystemtime/main.cpp
@@ -1,34 +1,36 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5           .>+-=
6 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#include "mainwindow.h" 31#include "mainwindow.h"
30 32
31#include <opie2/oapplicationfactory.h> 33#include <opie2/oapplicationfactory.h>
32 34
33using namespace Opie::Core; 35using namespace Opie::Core;
34OPIE_EXPORT_APP( OApplicationFactory<MainWindow> ) 36OPIE_EXPORT_APP( OApplicationFactory<MainWindow> )
diff --git a/noncore/settings/netsystemtime/mainwindow.cpp b/noncore/settings/netsystemtime/mainwindow.cpp
index 1f9f8c3..35d4105 100644
--- a/noncore/settings/netsystemtime/mainwindow.cpp
+++ b/noncore/settings/netsystemtime/mainwindow.cpp
@@ -1,42 +1,44 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4 .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 .>+-= 5 =.
6_;:, .> :=|. This file is free software; you can 6 .=l.
7.> <`_, > . <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.-- : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i, .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10- . .-<_> .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11 ._= =} : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12 .%`+i> _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13 .i_,=:_. -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15 : .. .:, . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.= = ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++= -. .` .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20: = ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21-. .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22 -_. . . )=. = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23 -- :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "mainwindow.h" 31#include "mainwindow.h"
30#include "timetabwidget.h" 32#include "timetabwidget.h"
31#include "formattabwidget.h" 33#include "formattabwidget.h"
32#include "settingstabwidget.h" 34#include "settingstabwidget.h"
33#include "ntptabwidget.h" 35#include "ntptabwidget.h"
34#include "predicttabwidget.h" 36#include "predicttabwidget.h"
35 37
36#include <qpe/config.h> 38#include <qpe/config.h>
37#include <qpe/datebookdb.h> 39#include <qpe/datebookdb.h>
38#include <qpe/qpeapplication.h> 40#include <qpe/qpeapplication.h>
39#include <qpe/qpedialog.h> 41#include <qpe/qpedialog.h>
40 42
41#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) 43#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
42#include <qpe/qcopenvelope_qws.h> 44#include <qpe/qcopenvelope_qws.h>
diff --git a/noncore/settings/netsystemtime/mainwindow.h b/noncore/settings/netsystemtime/mainwindow.h
index 8701803..0ef24e0 100644
--- a/noncore/settings/netsystemtime/mainwindow.h
+++ b/noncore/settings/netsystemtime/mainwindow.h
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5           .>+-= 5 =.
6 _;:,     .>    :=|. This file is free software; you can 6 .=l.
7.> <`_,   >  .   <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i,     .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11     ._= =}       : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12    .%`+i>       _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13    .i_,=:_.      -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15    : ..    .:,     . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.=       =       ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++=   -.     .`     .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20 :     =  ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21 -.   .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23    --        :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#ifndef MAINWINDOW_H 31#ifndef MAINWINDOW_H
30#define MAINWINDOW_H 32#define MAINWINDOW_H
31 33
32#include <qdialog.h> 34#include <qdialog.h>
33 35
34#include <opie2/oprocess.h> 36#include <opie2/oprocess.h>
35#include <opie2/otabwidget.h> 37#include <opie2/otabwidget.h>
36 38
37class TimeTabWidget; 39class TimeTabWidget;
38class FormatTabWidget; 40class FormatTabWidget;
39class SettingsTabWidget; 41class SettingsTabWidget;
40class NTPTabWidget; 42class NTPTabWidget;
41class PredictTabWidget; 43class PredictTabWidget;
42 44
diff --git a/noncore/settings/netsystemtime/ntptabwidget.cpp b/noncore/settings/netsystemtime/ntptabwidget.cpp
index 616bc22..16d21cc 100644
--- a/noncore/settings/netsystemtime/ntptabwidget.cpp
+++ b/noncore/settings/netsystemtime/ntptabwidget.cpp
@@ -1,47 +1,51 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4 .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 .>+-= 5 =.
6_;:, .> :=|. This file is free software; you can 6 .=l.
7.> <`_, > . <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.-- : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i, .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10- . .-<_> .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11 ._= =} : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12 .%`+i> _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13 .i_,=:_. -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15 : .. .:, . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.= = ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++= -. .` .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20: = ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21-. .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22 -_. . . )=. = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23 -- :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "ntptabwidget.h" 31#include "ntptabwidget.h"
30 32
31#include <qpe/resource.h> 33#include <opie2/oresource.h>
34
35#include <qpe/applnk.h>
32 36
33#include <qlabel.h> 37#include <qlabel.h>
34#include <qlayout.h> 38#include <qlayout.h>
35#include <qmultilineedit.h> 39#include <qmultilineedit.h>
36#include <qpushbutton.h> 40#include <qpushbutton.h>
37#include <qscrollview.h> 41#include <qscrollview.h>
38 42
39NTPTabWidget::NTPTabWidget( QWidget *parent ) 43NTPTabWidget::NTPTabWidget( QWidget *parent )
40 : QWidget( parent, 0x0, 0 ) 44 : QWidget( parent, 0x0, 0 )
41{ 45{
42 QVBoxLayout *tmpvb = new QVBoxLayout( this ); 46 QVBoxLayout *tmpvb = new QVBoxLayout( this );
43 QScrollView *sv = new QScrollView( this ); 47 QScrollView *sv = new QScrollView( this );
44 tmpvb->addWidget( sv, 0, 0 ); 48 tmpvb->addWidget( sv, 0, 0 );
45 sv->setResizePolicy( QScrollView::AutoOneFit ); 49 sv->setResizePolicy( QScrollView::AutoOneFit );
46 sv->setFrameStyle( QFrame::NoFrame ); 50 sv->setFrameStyle( QFrame::NoFrame );
47 QWidget *container = new QWidget( sv->viewport() ); 51 QWidget *container = new QWidget( sv->viewport() );
@@ -62,34 +66,35 @@ NTPTabWidget::NTPTabWidget( QWidget *parent )
62 layout->addWidget( lblTimeShift, 1, 1 ); 66 layout->addWidget( lblTimeShift, 1, 1 );
63 67
64 // New time 68 // New time
65 layout->addWidget( new QLabel( tr( "New time" ), container ), 2, 0 ); 69 layout->addWidget( new QLabel( tr( "New time" ), container ), 2, 0 );
66 lblNewTime = new QLabel( tr( "n/a" ), container ); 70 lblNewTime = new QLabel( tr( "n/a" ), container );
67 layout->addWidget( lblNewTime, 2, 1 ); 71 layout->addWidget( lblNewTime, 2, 1 );
68 72
69 // NTP output display 73 // NTP output display
70 mleNtpOutput = new QMultiLineEdit( container ); 74 mleNtpOutput = new QMultiLineEdit( container );
71 QFont font( mleNtpOutput->font() ); 75 QFont font( mleNtpOutput->font() );
72 font.setPointSize( 7 ); 76 font.setPointSize( 7 );
73 mleNtpOutput->setFont( font ); 77 mleNtpOutput->setFont( font );
74 mleNtpOutput->setWordWrap( QMultiLineEdit::WidgetWidth ); 78 mleNtpOutput->setWordWrap( QMultiLineEdit::WidgetWidth );
75 layout->addMultiCellWidget( mleNtpOutput, 3, 3, 0, 1 ); 79 layout->addMultiCellWidget( mleNtpOutput, 3, 3, 0, 1 );
76 80
77 // Set NTP time button 81 // Set NTP time button
78 m_ntpBtn = new QPushButton( Resource::loadPixmap( "netsystemtime/ntptab" ), 82 m_ntpBtn = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/ntptab", Opie::Core::OResource::SmallIcon ),
79 tr( "Get time from the network" ), container ); 83 tr( "Get time from the network" ), container );
84 m_ntpBtn->setMinimumHeight( AppLnk::smallIconSize()+4 );
80 connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); 85 connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) );
81 layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 ); 86 layout->addMultiCellWidget( m_ntpBtn, 4, 4, 0, 1 );
82} 87}
83 88
84NTPTabWidget::~NTPTabWidget() 89NTPTabWidget::~NTPTabWidget()
85{ 90{
86} 91}
87 92
88void NTPTabWidget::setStartTime( const QString &str ) 93void NTPTabWidget::setStartTime( const QString &str )
89{ 94{
90 lblStartTime->setText( str ); 95 lblStartTime->setText( str );
91} 96}
92 97
93void NTPTabWidget::setTimeShift( const QString &str ) 98void NTPTabWidget::setTimeShift( const QString &str )
94{ 99{
95 lblTimeShift->setText( str ); 100 lblTimeShift->setText( str );
diff --git a/noncore/settings/netsystemtime/ntptabwidget.h b/noncore/settings/netsystemtime/ntptabwidget.h
index f05482e..a7dd02e 100644
--- a/noncore/settings/netsystemtime/ntptabwidget.h
+++ b/noncore/settings/netsystemtime/ntptabwidget.h
@@ -1,42 +1,44 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4 .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5 .>+-=
6_;:, .> :=|. This file is free software; you can
7.> <`_, > . <= redistribute it and/or modify it under
8:`=1 )Y*s>-.-- : the terms of the GNU General Public
9.="- .-=="i, .._ License as published by the Free Software
10- . .-<_> .<> Foundation; either version 2 of the License,
11 ._= =} : or (at your option) any later version.
12 .%`+i> _;_.
13 .i_,=:_. -<s. This file is distributed in the hope that
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
15 : .. .:, . . . without even the implied warranty of
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.= = ; Public License for more details.
19++= -. .` .:
20: = ...= . :.=- You should have received a copy of the GNU
21-. .:....=;==+<; General Public License along with this file;
22 -_. . . )=. = see the file COPYING. If not, write to the
23 -- :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#ifndef NTPTABWIDGET_H 31#ifndef NTPTABWIDGET_H
30#define NTPTABWIDGET_H 32#define NTPTABWIDGET_H
31 33
32#include <qwidget.h> 34#include <qwidget.h>
33 35
34class QLabel; 36class QLabel;
35class QMultiLineEdit; 37class QMultiLineEdit;
36class QPushButton; 38class QPushButton;
37 39
38class NTPTabWidget : public QWidget 40class NTPTabWidget : public QWidget
39{ 41{
40 Q_OBJECT 42 Q_OBJECT
41 43
42public: 44public:
diff --git a/noncore/settings/netsystemtime/predicttabwidget.cpp b/noncore/settings/netsystemtime/predicttabwidget.cpp
index c706add..98e0afd 100644
--- a/noncore/settings/netsystemtime/predicttabwidget.cpp
+++ b/noncore/settings/netsystemtime/predicttabwidget.cpp
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5           .>+-= 5 =.
6 _;:,     .>    :=|. This file is free software; you can 6 .=l.
7.> <`_,   >  .   <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i,     .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11     ._= =}       : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12    .%`+i>       _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13    .i_,=:_.      -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15    : ..    .:,     . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.=       =       ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++=   -.     .`     .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20 :     =  ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21 -.   .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23    --        :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "predicttabwidget.h" 31#include "predicttabwidget.h"
30 32
31#include <qpe/config.h> 33#include <qpe/config.h>
32#include <qpe/timeconversion.h> 34#include <qpe/timeconversion.h>
33 35
34#include <qlabel.h> 36#include <qlabel.h>
35#include <qlayout.h> 37#include <qlayout.h>
36#include <qpushbutton.h> 38#include <qpushbutton.h>
37#include <qscrollview.h> 39#include <qscrollview.h>
38#include <qtable.h> 40#include <qtable.h>
39 41
40#include <stdlib.h> 42#include <stdlib.h>
41 43
42PredictTabWidget::PredictTabWidget( QWidget *parent ) 44PredictTabWidget::PredictTabWidget( QWidget *parent )
diff --git a/noncore/settings/netsystemtime/predicttabwidget.h b/noncore/settings/netsystemtime/predicttabwidget.h
index da1d8ed..a0f1073 100644
--- a/noncore/settings/netsystemtime/predicttabwidget.h
+++ b/noncore/settings/netsystemtime/predicttabwidget.h
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5           .>+-=
6 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#ifndef PREDICTTABWIDGET_H 31#ifndef PREDICTTABWIDGET_H
30#define PREDICTTABWIDGET_H 32#define PREDICTTABWIDGET_H
31 33
32#include <qdatetime.h> 34#include <qdatetime.h>
33#include <qstring.h> 35#include <qstring.h>
34#include <qwidget.h> 36#include <qwidget.h>
35 37
36class QLabel; 38class QLabel;
37class QTable; 39class QTable;
38 40
39class PredictTabWidget : public QWidget 41class PredictTabWidget : public QWidget
40{ 42{
41 Q_OBJECT 43 Q_OBJECT
42 44
diff --git a/noncore/settings/netsystemtime/settingstabwidget.cpp b/noncore/settings/netsystemtime/settingstabwidget.cpp
index 9315d2e..3bb0ec3 100644
--- a/noncore/settings/netsystemtime/settingstabwidget.cpp
+++ b/noncore/settings/netsystemtime/settingstabwidget.cpp
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5           .>+-= 5 =.
6 _;:,     .>    :=|. This file is free software; you can 6 .=l.
7.> <`_,   >  .   <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.--   : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i,     .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10 - .   .-<_>     .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11     ._= =}       : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12    .%`+i>       _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13    .i_,=:_.      -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15    : ..    .:,     . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.=       =       ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++=   -.     .`     .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20 :     =  ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21 -.   .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22  -_. . .   )=.  = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23    --        :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "settingstabwidget.h" 31#include "settingstabwidget.h"
30 32
31#include <qpe/config.h> 33#include <qpe/config.h>
32#include <qpe/qpeapplication.h> 34#include <qpe/qpeapplication.h>
33 35
34#include <qcheckbox.h> 36#include <qcheckbox.h>
35#include <qcombobox.h> 37#include <qcombobox.h>
36#include <qlabel.h> 38#include <qlabel.h>
37#include <qlayout.h> 39#include <qlayout.h>
38#include <qscrollview.h> 40#include <qscrollview.h>
39#include <qspinbox.h> 41#include <qspinbox.h>
40 42
41SettingsTabWidget::SettingsTabWidget( QWidget *parent ) 43SettingsTabWidget::SettingsTabWidget( QWidget *parent )
42 : QWidget( parent, 0x0, 0 ) 44 : QWidget( parent, 0x0, 0 )
diff --git a/noncore/settings/netsystemtime/settingstabwidget.h b/noncore/settings/netsystemtime/settingstabwidget.h
index 2901bb3..9578245 100644
--- a/noncore/settings/netsystemtime/settingstabwidget.h
+++ b/noncore/settings/netsystemtime/settingstabwidget.h
@@ -1,42 +1,44 @@
1/* 1/*
2                This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4             .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5           .>+-=
6 _;:,     .>    :=|. This file is free software; you can
7.> <`_,   >  .   <= redistribute it and/or modify it under
8:`=1 )Y*s>-.--   : the terms of the GNU General Public
9.="- .-=="i,     .._ License as published by the Free Software
10 - .   .-<_>     .<> Foundation; either version 2 of the License,
11     ._= =}       : or (at your option) any later version.
12    .%`+i>       _;_.
13    .i_,=:_.      -<s. This file is distributed in the hope that
14     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
15    : ..    .:,     . . . without even the implied warranty of
16    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
17  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.=       =       ; Public License for more details.
19++=   -.     .`     .:
20 :     =  ...= . :.=- You should have received a copy of the GNU
21 -.   .:....=;==+<; General Public License along with this file;
22  -_. . .   )=.  = see the file COPYING. If not, write to the
23    --        :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#ifndef SETTINGSTABWIDGET_H 31#ifndef SETTINGSTABWIDGET_H
30#define SETTINGSTABWIDGET_H 32#define SETTINGSTABWIDGET_H
31 33
32#include <qwidget.h> 34#include <qwidget.h>
33 35
34class QCheckBox; 36class QCheckBox;
35class QComboBox; 37class QComboBox;
36class QSpinBox; 38class QSpinBox;
37 39
38class SettingsTabWidget : public QWidget 40class SettingsTabWidget : public QWidget
39{ 41{
40 Q_OBJECT 42 Q_OBJECT
41 43
42public: 44public:
diff --git a/noncore/settings/netsystemtime/timetabwidget.cpp b/noncore/settings/netsystemtime/timetabwidget.cpp
index 905461f..bcfbdf7 100644
--- a/noncore/settings/netsystemtime/timetabwidget.cpp
+++ b/noncore/settings/netsystemtime/timetabwidget.cpp
@@ -1,50 +1,54 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =. 3
4 .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?> 4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 .>+-= 5 =.
6_;:, .> :=|. This file is free software; you can 6 .=l.
7.> <`_, > . <= redistribute it and/or modify it under 7           .>+-=
8:`=1 )Y*s>-.-- : the terms of the GNU General Public 8 _;:,     .>    :=|. This program is free software; you can
9.="- .-=="i, .._ License as published by the Free Software 9.> <`_,   >  .   <= redistribute it and/or modify it under
10- . .-<_> .<> Foundation; either version 2 of the License, 10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11 ._= =} : or (at your option) any later version. 11.="- .-=="i,     .._ License as published by the Free Software
12 .%`+i> _;_. 12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13 .i_,=:_. -<s. This file is distributed in the hope that 13     ._= =}       : or (at your option) any later version.
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY; 14    .%`+i>       _;_.
15 : .. .:, . . . without even the implied warranty of 15    .i_,=:_.      -<s. This program is distributed in the hope that
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A 16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General 17 : ..    .:,     . . . without even the implied warranty of
18..}^=.= = ; Public License for more details. 18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19++= -. .` .: 19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20: = ...= . :.=- You should have received a copy of the GNU 20..}^=.=       =       ; Library General Public License for more
21-. .:....=;==+<; General Public License along with this file; 21++=   -.     .`     .: details.
22 -_. . . )=. = see the file COPYING. If not, write to the 22:     =  ...= . :.=-
23 -- :-=` Free Software Foundation, Inc., 23 -.   .:....=;==+<; You should have received a copy of the GNU
24 59 Temple Place - Suite 330, 24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA. 28 Boston, MA 02111-1307, USA.
26
27*/ 29*/
28 30
29#include "timetabwidget.h" 31#include "timetabwidget.h"
30 32
33#include <opie2/oresource.h>
34
35#include <qpe/applnk.h>
31#include <qpe/config.h> 36#include <qpe/config.h>
32#include <qpe/datebookmonth.h> 37#include <qpe/datebookmonth.h>
33#include <qpe/global.h> 38#include <qpe/global.h>
34#include <qpe/resource.h>
35#include <qpe/tzselect.h> 39#include <qpe/tzselect.h>
36 40
37#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP) 41#if ( defined Q_WS_QWS || defined(_WS_QWS_) ) && !defined(QT_NO_COP)
38#include <qpe/qcopenvelope_qws.h> 42#include <qpe/qcopenvelope_qws.h>
39#endif 43#endif
40 44
41#include <qcombobox.h> 45#include <qcombobox.h>
42#include <qdatetime.h> 46#include <qdatetime.h>
43#include <qframe.h> 47#include <qframe.h>
44#include <qlabel.h> 48#include <qlabel.h>
45#include <qlayout.h> 49#include <qlayout.h>
46#include <qpushbutton.h> 50#include <qpushbutton.h>
47#include <qscrollview.h> 51#include <qscrollview.h>
48#include <qspinbox.h> 52#include <qspinbox.h>
49 53
50#include <stdlib.h> 54#include <stdlib.h>
@@ -96,40 +100,42 @@ TimeTabWidget::TimeTabWidget( QWidget *parent )
96 100
97 // Date 101 // Date
98 layout->addWidget( new QLabel( tr( "Date" ), container ), 4, 0 ); 102 layout->addWidget( new QLabel( tr( "Date" ), container ), 4, 0 );
99 btnDate = new DateButton( TRUE, container ); 103 btnDate = new DateButton( TRUE, container );
100 layout->addMultiCellWidget( btnDate, 4, 4, 1, 5 ); 104 layout->addMultiCellWidget( btnDate, 4, 4, 1, 5 );
101 105
102 // Timezone 106 // Timezone
103 layout->addMultiCellWidget( new QLabel( tr( "Time zone" ), container ), 6, 6, 0, 1 ); 107 layout->addMultiCellWidget( new QLabel( tr( "Time zone" ), container ), 6, 6, 0, 1 );
104 selTimeZone = new TimeZoneSelector( container ); 108 selTimeZone = new TimeZoneSelector( container );
105 connect( selTimeZone, SIGNAL(signalNewTz(const QString&)), this, SLOT(slotTZChanged(const QString&)) ); 109 connect( selTimeZone, SIGNAL(signalNewTz(const QString&)), this, SLOT(slotTZChanged(const QString&)) );
106 layout->addMultiCellWidget( selTimeZone, 6, 6, 2, 5 ); 110 layout->addMultiCellWidget( selTimeZone, 6, 6, 2, 5 );
107 111
108 // Space filler 112 // Space filler
109 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 7, 0 ); 113 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 7, 0 );
110 114
111 // Set NTP time button 115 // Set NTP time button
112 m_ntpBtn = new QPushButton( Resource::loadPixmap( "netsystemtime/ntptab" ), 116 m_ntpBtn = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/ntptab", Opie::Core::OResource::SmallIcon ),
113 tr( "Get time from the network" ), container ); 117 tr( "Get time from the network" ), container );
118 m_ntpBtn->setMinimumHeight( AppLnk::smallIconSize()+4 );
114 connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) ); 119 connect( m_ntpBtn, SIGNAL(clicked()), this, SIGNAL(getNTPTime()) );
115 layout->addMultiCellWidget( m_ntpBtn, 8, 8, 0, 5 ); 120 layout->addMultiCellWidget( m_ntpBtn, 8, 8, 0, 5 );
116 121
117 // Set predicted time button 122 // Set predicted time button
118 QPushButton *pb = new QPushButton( Resource::loadPixmap( "netsystemtime/predicttab" ), tr( "Set predicted time" ), 123 QPushButton *pb = new QPushButton( Opie::Core::OResource::loadPixmap( "netsystemtime/predicttab", Opie::Core::OResource::SmallIcon ),
119 container ); 124 tr( "Set predicted time" ), container );
125 pb->setMinimumHeight( AppLnk::smallIconSize()+4 );
120 connect( pb, SIGNAL(clicked()), this, SIGNAL(getPredictedTime()) ); 126 connect( pb, SIGNAL(clicked()), this, SIGNAL(getPredictedTime()) );
121 layout->addMultiCellWidget( pb, 9, 9, 0, 5 ); 127 layout->addMultiCellWidget( pb, 9, 9, 0, 5 );
122 128
123 // Space filler at bottom of widget 129 // Space filler at bottom of widget
124 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 10, 0 ); 130 layout->addItem( new QSpacerItem( 1, 1, QSizePolicy::Minimum, QSizePolicy::Expanding ), 10, 0 );
125 131
126 // Initialize values 132 // Initialize values
127 Config config( "locale" ); 133 Config config( "locale" );
128 config.setGroup( "Location" ); 134 config.setGroup( "Location" );
129 selTimeZone->setCurrentZone( config.readEntry( "Timezone", "America/New_York" ) ); 135 selTimeZone->setCurrentZone( config.readEntry( "Timezone", "America/New_York" ) );
130 use12HourTime = FALSE; 136 use12HourTime = FALSE;
131 setDateTime( QDateTime::currentDateTime() ); 137 setDateTime( QDateTime::currentDateTime() );
132} 138}
133 139
134TimeTabWidget::~TimeTabWidget() 140TimeTabWidget::~TimeTabWidget()
135{ 141{
diff --git a/noncore/settings/netsystemtime/timetabwidget.h b/noncore/settings/netsystemtime/timetabwidget.h
index 949535d..4674c5c8 100644
--- a/noncore/settings/netsystemtime/timetabwidget.h
+++ b/noncore/settings/netsystemtime/timetabwidget.h
@@ -1,42 +1,44 @@
1/* 1/*
2 This file is part of the OPIE Project 2                 This file is part of the Opie Project
3 =.
4 .=l. Copyright (c) 2002 OPIE team <opie@handhelds.org?>
5 .>+-=
6_;:, .> :=|. This file is free software; you can
7.> <`_, > . <= redistribute it and/or modify it under
8:`=1 )Y*s>-.-- : the terms of the GNU General Public
9.="- .-=="i, .._ License as published by the Free Software
10- . .-<_> .<> Foundation; either version 2 of the License,
11 ._= =} : or (at your option) any later version.
12 .%`+i> _;_.
13 .i_,=:_. -<s. This file is distributed in the hope that
14 + . -:. = it will be useful, but WITHOUT ANY WARRANTY;
15 : .. .:, . . . without even the implied warranty of
16 =_ + =;=|` MERCHANTABILITY or FITNESS FOR A
17 _.=:. : :=>`: PARTICULAR PURPOSE. See the GNU General
18..}^=.= = ; Public License for more details.
19++= -. .` .:
20: = ...= . :.=- You should have received a copy of the GNU
21-. .:....=;==+<; General Public License along with this file;
22 -_. . . )=. = see the file COPYING. If not, write to the
23 -- :-=` Free Software Foundation, Inc.,
24 59 Temple Place - Suite 330,
25 Boston, MA 02111-1307, USA.
26 3
4 Copyright (C) Opie Team <opie-devel@handhelds.org>
5 =.
6 .=l.
7           .>+-=
8 _;:,     .>    :=|. This program is free software; you can
9.> <`_,   >  .   <= redistribute it and/or modify it under
10:`=1 )Y*s>-.--   : the terms of the GNU Library General Public
11.="- .-=="i,     .._ License as published by the Free Software
12 - .   .-<_>     .<> Foundation; either version 2 of the License,
13     ._= =}       : or (at your option) any later version.
14    .%`+i>       _;_.
15    .i_,=:_.      -<s. This program is distributed in the hope that
16     +  .  -:.       = it will be useful, but WITHOUT ANY WARRANTY;
17 : ..    .:,     . . . without even the implied warranty of
18    =_        +     =;=|` MERCHANTABILITY or FITNESS FOR A
19  _.=:.       :    :=>`: PARTICULAR PURPOSE. See the GNU
20..}^=.=       =       ; Library General Public License for more
21++=   -.     .`     .: details.
22:     =  ...= . :.=-
23 -.   .:....=;==+<; You should have received a copy of the GNU
24  -_. . .   )=.  = Library General Public License along with
25    --        :-=` this library; see the file COPYING.LIB.
26 If not, write to the Free Software Foundation,
27 Inc., 59 Temple Place - Suite 330,
28 Boston, MA 02111-1307, USA.
27*/ 29*/
28 30
29#ifndef TIMETABWIDGET_H 31#ifndef TIMETABWIDGET_H
30#define TIMETABWIDGET_H 32#define TIMETABWIDGET_H
31 33
32#include <qwidget.h> 34#include <qwidget.h>
33 35
34class DateButton; 36class DateButton;
35class DateFormat; 37class DateFormat;
36class QComboBox; 38class QComboBox;
37class QDateTime; 39class QDateTime;
38class QPushButton; 40class QPushButton;
39class QSpinBox; 41class QSpinBox;
40class TimeZoneSelector; 42class TimeZoneSelector;
41 43
42class TimeTabWidget : public QWidget 44class TimeTabWidget : public QWidget