author | zautrix <zautrix> | 2005-06-29 11:08:57 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-29 11:08:57 (UTC) |
commit | 435e68d6ace30fb2121b718226e00be44971c617 (patch) (unidiff) | |
tree | 2b7d2793f0244db82a9cddbfab8957d13989ed20 /korganizer/journalentry.h | |
parent | b7044dfc9516d546683973985555c481d59fc677 (diff) | |
download | kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.zip kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.tar.gz kdepimpi-435e68d6ace30fb2121b718226e00be44971c617.tar.bz2 |
fixx
-rw-r--r-- | korganizer/journalentry.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/journalentry.h b/korganizer/journalentry.h index 85ad5df..b0e9cc7 100644 --- a/korganizer/journalentry.h +++ b/korganizer/journalentry.h | |||
@@ -1,80 +1,82 @@ | |||
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 | 34 | ||
35 | using namespace KCal; | 35 | using namespace KCal; |
36 | 36 | ||
37 | class JournalEntry : public QFrame { | 37 | class JournalEntry : public QFrame { |
38 | Q_OBJECT | 38 | Q_OBJECT |
39 | public: | 39 | public: |
40 | JournalEntry(Calendar *,QWidget *parent); | 40 | JournalEntry(Calendar *,QWidget *parent); |
41 | virtual ~JournalEntry(); | 41 | virtual ~JournalEntry(); |
42 | 42 | ||
43 | void setJournal(Journal *); | 43 | void setJournal(Journal *); |
44 | Journal *journal() const; | 44 | Journal *journal() const; |
45 | 45 | ||
46 | void setDate(const QDate &); | 46 | void setDate(const QDate &); |
47 | 47 | ||
48 | void clear(); | 48 | void clear(); |
49 | 49 | ||
50 | void flushEntry(); | 50 | void flushEntry(); |
51 | void setShowOnly() {showOnlyMode = true;} | 51 | void setShowOnly() {showOnlyMode = true;} |
52 | QSize sizeHint() const; | ||
52 | 53 | ||
53 | protected slots: | 54 | protected slots: |
54 | void slotSaveTemplate(); | 55 | void slotSaveTemplate(); |
55 | void slotLoadTemplate(); | 56 | void slotLoadTemplate(); |
56 | void setDirty(); | 57 | void setDirty(); |
57 | void toggleShowJournal(); | 58 | void toggleShowJournal(); |
58 | signals: | 59 | signals: |
59 | void deleteJournal(Journal *); | 60 | void deleteJournal(Journal *); |
60 | void newJournal(); | 61 | void newJournal(); |
61 | void showJournalOnly( Journal * ); | 62 | void showJournalOnly( Journal * ); |
62 | 63 | ||
63 | protected: | 64 | protected: |
64 | bool eventFilter( QObject *o, QEvent *e ); | 65 | bool eventFilter( QObject *o, QEvent *e ); |
65 | 66 | ||
66 | void writeJournal(); | 67 | void writeJournal(); |
67 | 68 | ||
68 | private: | 69 | private: |
69 | bool showOnlyMode; | 70 | bool showOnlyMode; |
70 | Calendar *mCalendar; | 71 | Calendar *mCalendar; |
71 | Journal *mJournal; | 72 | Journal *mJournal; |
72 | QDate mDate; | 73 | QDate mDate; |
73 | void keyPressEvent ( QKeyEvent * ) ; | 74 | void keyPressEvent ( QKeyEvent * ) ; |
74 | QLabel *mTitleLabel; | 75 | QLabel *mTitleLabel; |
75 | KTextEdit *mEditor; | 76 | KTextEdit *mEditor; |
77 | int heiHint; | ||
76 | 78 | ||
77 | bool mDirty; | 79 | bool mDirty; |
78 | }; | 80 | }; |
79 | 81 | ||
80 | #endif | 82 | #endif |