-rw-r--r-- | korganizer/journalentry.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/korganizer/journalentry.h b/korganizer/journalentry.h index cc9b5ef..fb19fb1 100644 --- a/korganizer/journalentry.h +++ b/korganizer/journalentry.h | |||
@@ -1,84 +1,85 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef JOURNALENTRY_H | 23 | #ifndef JOURNALENTRY_H |
24 | #define JOURNALENTRY_H | 24 | #define JOURNALENTRY_H |
25 | // | 25 | // |
26 | // Widget showing one Journal entry | 26 | // Widget showing one Journal entry |
27 | 27 | ||
28 | #include <qframe.h> | 28 | #include <qframe.h> |
29 | 29 | ||
30 | #include <libkcal/calendar.h> | 30 | #include <libkcal/calendar.h> |
31 | 31 | ||
32 | class QLabel; | 32 | class QLabel; |
33 | class KTextEdit; | 33 | class KTextEdit; |
34 | class KLineEdit; | 34 | class KLineEdit; |
35 | class KOLocationBox; | ||
35 | 36 | ||
36 | using namespace KCal; | 37 | using namespace KCal; |
37 | 38 | ||
38 | class JournalEntry : public QFrame { | 39 | class JournalEntry : public QFrame { |
39 | Q_OBJECT | 40 | Q_OBJECT |
40 | public: | 41 | public: |
41 | JournalEntry(Calendar *,QWidget *parent); | 42 | JournalEntry(Calendar *,QWidget *parent); |
42 | virtual ~JournalEntry(); | 43 | virtual ~JournalEntry(); |
43 | 44 | ||
44 | void setJournal(Journal *); | 45 | void setJournal(Journal *); |
45 | Journal *journal() const; | 46 | Journal *journal() const; |
46 | 47 | ||
47 | void setDate(const QDate &); | 48 | void setDate(const QDate &); |
48 | 49 | ||
49 | void clear(); | 50 | void clear(); |
50 | 51 | ||
51 | void flushEntry(); | 52 | void flushEntry(); |
52 | void setShowOnly(); | 53 | void setShowOnly(); |
53 | QSize sizeHint() const; | 54 | QSize sizeHint() const; |
54 | void setVisibleMode( bool b ) { visibleMode = b;} | 55 | void setVisibleMode( bool b ) { visibleMode = b;} |
55 | 56 | ||
56 | protected slots: | 57 | protected slots: |
57 | void slotSaveTemplate(); | 58 | void slotSaveTemplate(); |
58 | void slotLoadTemplate(); | 59 | void slotLoadTemplate(); |
59 | void toggleShowJournal(); | 60 | void toggleShowJournal(); |
60 | void setVisibleOn(); | 61 | void setVisibleOn(); |
61 | signals: | 62 | signals: |
62 | void deleteJournal(Journal *); | 63 | void deleteJournal(Journal *); |
63 | void newJournal(); | 64 | void newJournal(); |
64 | void showJournalOnly( Journal * ); | 65 | void showJournalOnly( Journal * ); |
65 | 66 | ||
66 | protected: | 67 | protected: |
67 | bool eventFilter( QObject *o, QEvent *e ); | 68 | bool eventFilter( QObject *o, QEvent *e ); |
68 | 69 | ||
69 | void writeJournal(); | 70 | void writeJournal(); |
70 | 71 | ||
71 | private: | 72 | private: |
72 | bool visibleMode; | 73 | bool visibleMode; |
73 | bool showOnlyMode; | 74 | bool showOnlyMode; |
74 | Calendar *mCalendar; | 75 | Calendar *mCalendar; |
75 | Journal *mJournal; | 76 | Journal *mJournal; |
76 | QDate mDate; | 77 | QDate mDate; |
77 | void keyPressEvent ( QKeyEvent * ) ; | 78 | void keyPressEvent ( QKeyEvent * ) ; |
78 | QLabel *mTitleLabel; | 79 | QLabel *mTitleLabel; |
79 | KLineEdit * mTitle; | 80 | KOLocationBox * mTitle; |
80 | KTextEdit *mEditor; | 81 | KTextEdit *mEditor; |
81 | int heiHint; | 82 | int heiHint; |
82 | }; | 83 | }; |
83 | 84 | ||
84 | #endif | 85 | #endif |