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