author | tille <tille> | 2002-06-25 13:09:08 (UTC) |
---|---|---|
committer | tille <tille> | 2002-06-25 13:09:08 (UTC) |
commit | 8501705e4e50602aaabe9877e6d8821555e3a05a (patch) (unidiff) | |
tree | 3f34b6d0f8b7f7e692ccbefd91356685c322204f /noncore/settings/netsystemtime/settime.h | |
parent | d282b4f9cba20305e237910aca531b0360666f13 (diff) | |
download | opie-8501705e4e50602aaabe9877e6d8821555e3a05a.zip opie-8501705e4e50602aaabe9877e6d8821555e3a05a.tar.gz opie-8501705e4e50602aaabe9877e6d8821555e3a05a.tar.bz2 |
included systemtime gui
not yet much funtionaliti
Diffstat (limited to 'noncore/settings/netsystemtime/settime.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/settings/netsystemtime/settime.h | 97 |
1 files changed, 97 insertions, 0 deletions
diff --git a/noncore/settings/netsystemtime/settime.h b/noncore/settings/netsystemtime/settime.h new file mode 100644 index 0000000..053d17a --- a/dev/null +++ b/noncore/settings/netsystemtime/settime.h | |||
@@ -0,0 +1,97 @@ | |||
1 | /********************************************************************** | ||
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | ||
3 | ** | ||
4 | ** This file is part of Qtopia Environment. | ||
5 | ** | ||
6 | ** This file may be distributed and/or modified under the terms of the | ||
7 | ** GNU General Public License version 2 as published by the Free Software | ||
8 | ** Foundation and appearing in the file LICENSE.GPL included in the | ||
9 | ** packaging of this file. | ||
10 | ** | ||
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | ||
12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. | ||
13 | ** | ||
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | ||
15 | ** | ||
16 | ** Contact info@trolltech.com if any conditions of this licensing are | ||
17 | ** not clear to you. | ||
18 | ** | ||
19 | **********************************************************************/ | ||
20 | #ifndef SYSTEM_TIME_H | ||
21 | #define SYSTEM_TIME_H | ||
22 | |||
23 | |||
24 | #include <qdatetime.h> | ||
25 | #include <qdialog.h> | ||
26 | |||
27 | #include <qpe/timestring.h> | ||
28 | #include "ntpbase.h" | ||
29 | |||
30 | class QToolButton; | ||
31 | class QSpinBox; | ||
32 | class QLabel; | ||
33 | class TimeZoneSelector; | ||
34 | class DateBookMonth; | ||
35 | class QComboBox; | ||
36 | //class QPEDialogListener; | ||
37 | |||
38 | class SetTime : public QWidget | ||
39 | { | ||
40 | Q_OBJECT | ||
41 | public: | ||
42 | SetTime( QWidget *parent=0, const char *name=0 ); | ||
43 | |||
44 | QTime time() const; | ||
45 | |||
46 | public slots: | ||
47 | void slotTzChange( const QString& tz ); | ||
48 | void show12hourTime( int ); | ||
49 | |||
50 | protected slots: | ||
51 | void hourChanged( int value ); | ||
52 | void minuteChanged( int value ); | ||
53 | |||
54 | void checkedPM( int ); | ||
55 | |||
56 | protected: | ||
57 | int hour; | ||
58 | int minute; | ||
59 | bool use12hourTime; | ||
60 | QComboBox *ampm; | ||
61 | QSpinBox *sbHour; | ||
62 | QSpinBox *sbMin; | ||
63 | }; | ||
64 | |||
65 | class DateButton; | ||
66 | |||
67 | class SetDateTime : public NtpBase | ||
68 | { | ||
69 | Q_OBJECT | ||
70 | public: | ||
71 | SetDateTime( QWidget *parent=0, const char *name=0, WFlags f=0 ); | ||
72 | |||
73 | protected slots: | ||
74 | void tzChange( const QString &tz ); | ||
75 | void formatChanged(int); | ||
76 | |||
77 | protected: | ||
78 | void commitTime(); | ||
79 | virtual void accept(); | ||
80 | virtual void done(int); | ||
81 | |||
82 | SetTime *timeButton; | ||
83 | DateButton *dateButton; | ||
84 | TimeZoneSelector *tz; | ||
85 | QComboBox *weekStartCombo; | ||
86 | QComboBox *ampmCombo; | ||
87 | QComboBox *dateFormatCombo; | ||
88 | QComboBox *clockAppletCombo; | ||
89 | |||
90 | // QPEDialogListener *dl; | ||
91 | |||
92 | DateFormat date_formats[4]; | ||
93 | }; | ||
94 | |||
95 | |||
96 | #endif | ||
97 | |||