Diffstat (limited to 'core/pim/datebook/dateentryimpl.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | core/pim/datebook/dateentryimpl.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/pim/datebook/dateentryimpl.h b/core/pim/datebook/dateentryimpl.h index 4eb24b4..a3c4668 100644 --- a/core/pim/datebook/dateentryimpl.h +++ b/core/pim/datebook/dateentryimpl.h | |||
@@ -1,75 +1,79 @@ | |||
1 | /********************************************************************** | 1 | /********************************************************************** |
2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. | 2 | ** Copyright (C) 2000 Trolltech AS. All rights reserved. |
3 | ** | 3 | ** |
4 | ** This file is part of Qtopia Environment. | 4 | ** This file is part of Qtopia Environment. |
5 | ** | 5 | ** |
6 | ** This file may be distributed and/or modified under the terms of the | 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 | 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 | 8 | ** Foundation and appearing in the file LICENSE.GPL included in the |
9 | ** packaging of this file. | 9 | ** packaging of this file. |
10 | ** | 10 | ** |
11 | ** This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE | 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. | 12 | ** WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. |
13 | ** | 13 | ** |
14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. | 14 | ** See http://www.trolltech.com/gpl/ for GPL licensing information. |
15 | ** | 15 | ** |
16 | ** Contact info@trolltech.com if any conditions of this licensing are | 16 | ** Contact info@trolltech.com if any conditions of this licensing are |
17 | ** not clear to you. | 17 | ** not clear to you. |
18 | ** | 18 | ** |
19 | **********************************************************************/ | 19 | **********************************************************************/ |
20 | #ifndef DATEENTRY_H | 20 | #ifndef DATEENTRY_H |
21 | #define DATEENTRY_H | 21 | #define DATEENTRY_H |
22 | 22 | ||
23 | #include "dateentry.h" | 23 | #include "dateentry.h" |
24 | #include "noteentryimpl.h" | ||
24 | 25 | ||
25 | #include <qpe/event.h> | 26 | #include <qpe/event.h> |
26 | 27 | ||
27 | #include <qdatetime.h> | 28 | #include <qdatetime.h> |
28 | 29 | ||
29 | class DateBookMonth; | 30 | class DateBookMonth; |
30 | 31 | ||
31 | class DateEntry : public DateEntryBase | 32 | class DateEntry : public DateEntryBase |
32 | { | 33 | { |
33 | Q_OBJECT | 34 | Q_OBJECT |
34 | 35 | ||
35 | public: | 36 | public: |
36 | DateEntry( bool startOnMonday, const QDateTime &start, | 37 | DateEntry( bool startOnMonday, const QDateTime &start, |
37 | const QDateTime &end, bool whichClock = FALSE, | 38 | const QDateTime &end, bool whichClock = FALSE, |
38 | QWidget* parent = 0, const char* name = 0 ); | 39 | QWidget* parent = 0, const char* name = 0 ); |
39 | DateEntry( bool startOnMonday, const Event &event, bool whichCLock = FALSE, | 40 | DateEntry( bool startOnMonday, const Event &event, bool whichCLock = FALSE, |
40 | QWidget* parent = 0, const char* name = 0 ); | 41 | QWidget* parent = 0, const char* name = 0 ); |
41 | ~DateEntry(); | 42 | ~DateEntry(); |
42 | 43 | ||
43 | Event event(); | 44 | Event event(); |
44 | void setAlarmEnabled( bool alarmPreset, int presetTime, Event::SoundTypeChoice ); | 45 | void setAlarmEnabled( bool alarmPreset, int presetTime, Event::SoundTypeChoice ); |
45 | virtual bool eventFilter( QObject *, QEvent * ); | 46 | virtual bool eventFilter( QObject *, QEvent * ); |
46 | public slots: | 47 | public slots: |
47 | void endDateChanged( int, int, int ); | 48 | void endDateChanged( int, int, int ); |
48 | void endTimeChanged( const QString & ); | 49 | void endTimeChanged( const QString & ); |
49 | void endTimeChanged( const QTime & ); | 50 | void endTimeChanged( const QTime & ); |
50 | void startDateChanged(int, int, int); | 51 | void startDateChanged(int, int, int); |
51 | void startTimeEdited( const QString & ); | 52 | void startTimeEdited( const QString & ); |
52 | void startTimeChanged( const QTime & ); | 53 | void startTimeChanged( const QTime & ); |
53 | void startTimePicked( const QTime & ); | 54 | void startTimePicked( const QTime & ); |
54 | void typeChanged( const QString & ); | 55 | void typeChanged( const QString & ); |
55 | void slotRepeat(); | 56 | void slotRepeat(); |
56 | void slotChangeClock( bool ); | 57 | void slotChangeClock( bool ); |
57 | void slotChangeStartOfWeek( bool ); | 58 | void slotChangeStartOfWeek( bool ); |
59 | void slotEditNote(); | ||
58 | 60 | ||
59 | private: | 61 | private: |
60 | void init(); | 62 | void init(); |
61 | void initCombos(); | 63 | void initCombos(); |
62 | void setDates( const QDateTime& s, const QDateTime& e ); | 64 | void setDates( const QDateTime& s, const QDateTime& e ); |
63 | void setRepeatLabel(); | 65 | void setRepeatLabel(); |
64 | void updateTimeEdit(bool,bool); | 66 | void updateTimeEdit(bool,bool); |
65 | 67 | ||
66 | DateBookMonth *startPicker, *endPicker; | 68 | DateBookMonth *startPicker, *endPicker; |
67 | QDate startDate, endDate; | 69 | QDate startDate, endDate; |
68 | QTime startTime, endTime; | 70 | QTime startTime, endTime; |
69 | Event::RepeatPattern rp; | 71 | Event::RepeatPattern rp; |
70 | bool ampm:1; | 72 | bool ampm:1; |
71 | bool startWeekOnMonday:1; | 73 | bool startWeekOnMonday:1; |
72 | bool m_showStart:1; | 74 | bool m_showStart:1; |
75 | |||
76 | QString noteStr; | ||
73 | }; | 77 | }; |
74 | 78 | ||
75 | #endif // DATEENTRY_H | 79 | #endif // DATEENTRY_H |