Diffstat (limited to 'core/pim/datebook/dateentryimpl.h') (more/less context) (show whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.h | 71 |
1 files changed, 71 insertions, 0 deletions
diff --git a/core/pim/datebook/dateentryimpl.h b/core/pim/datebook/dateentryimpl.h new file mode 100644 index 0000000..785af7a --- a/dev/null +++ b/core/pim/datebook/dateentryimpl.h | |||
@@ -0,0 +1,71 @@ | |||
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 DATEENTRY_H | ||
21 | #define DATEENTRY_H | ||
22 | |||
23 | #include "dateentry.h" | ||
24 | |||
25 | #include <qpe/event.h> | ||
26 | |||
27 | #include <qdatetime.h> | ||
28 | |||
29 | class DateBookMonth; | ||
30 | |||
31 | class DateEntry : public DateEntryBase | ||
32 | { | ||
33 | Q_OBJECT | ||
34 | |||
35 | public: | ||
36 | DateEntry( bool startOnMonday, const QDateTime &start, | ||
37 | const QDateTime &end, bool whichClock = FALSE, | ||
38 | QWidget* parent = 0, const char* name = 0 ); | ||
39 | DateEntry( bool startOnMonday, const Event &event, bool whichCLock = FALSE, | ||
40 | QWidget* parent = 0, const char* name = 0 ); | ||
41 | ~DateEntry(); | ||
42 | |||
43 | Event event(); | ||
44 | void setAlarmEnabled( bool alarmPreset, int presetTime, Event::SoundTypeChoice ); | ||
45 | |||
46 | public slots: | ||
47 | void endDateChanged( int, int, int ); | ||
48 | void endTimeChanged( const QString & ); | ||
49 | void startDateChanged(int, int, int); | ||
50 | void startTimeChanged( int index ); | ||
51 | void typeChanged( const QString & ); | ||
52 | void changeEndCombo( int change ); | ||
53 | void slotRepeat(); | ||
54 | void slotChangeClock( bool ); | ||
55 | void slotChangeStartOfWeek( bool ); | ||
56 | |||
57 | private: | ||
58 | void init(); | ||
59 | void initCombos(); | ||
60 | void setDates( const QDateTime& s, const QDateTime& e ); | ||
61 | void setRepeatLabel(); | ||
62 | |||
63 | DateBookMonth *startPicker, *endPicker; | ||
64 | QDate startDate, endDate; | ||
65 | QTime startTime, endTime; | ||
66 | Event::RepeatPattern rp; | ||
67 | bool ampm; | ||
68 | bool startWeekOnMonday; | ||
69 | }; | ||
70 | |||
71 | #endif // DATEENTRY_H | ||