Diffstat (limited to 'korganizer/koeventviewerdialog.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/koeventviewerdialog.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/korganizer/koeventviewerdialog.h b/korganizer/koeventviewerdialog.h index 71696f4..947c10b 100644 --- a/korganizer/koeventviewerdialog.h +++ b/korganizer/koeventviewerdialog.h | |||
@@ -1,78 +1,81 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000, 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000, 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 | #ifndef KOEVENTVIEWERDIALOG_H | 19 | #ifndef KOEVENTVIEWERDIALOG_H |
20 | #define KOEVENTVIEWERDIALOG_H | 20 | #define KOEVENTVIEWERDIALOG_H |
21 | // | 21 | // |
22 | // Viewer dialog for events. | 22 | // Viewer dialog for events. |
23 | // | 23 | // |
24 | 24 | ||
25 | #include <qtextview.h> | 25 | #include <q3textview.h> |
26 | //Added by qt3to4: | ||
27 | #include <QKeyEvent> | ||
28 | #include <QHideEvent> | ||
26 | 29 | ||
27 | #include <kdialogbase.h> | 30 | #include <kdialogbase.h> |
28 | 31 | ||
29 | #include <libkcal/event.h> | 32 | #include <libkcal/event.h> |
30 | 33 | ||
31 | using namespace KCal; | 34 | using namespace KCal; |
32 | 35 | ||
33 | class KOEventViewer; | 36 | class KOEventViewer; |
34 | 37 | ||
35 | class KOEventViewerDialog : public KDialogBase { | 38 | class KOEventViewerDialog : public KDialogBase { |
36 | Q_OBJECT | 39 | Q_OBJECT |
37 | public: | 40 | public: |
38 | KOEventViewerDialog(QWidget *parent=0,const char *name=0); | 41 | KOEventViewerDialog(QWidget *parent=0,const char *name=0); |
39 | virtual ~KOEventViewerDialog(); | 42 | virtual ~KOEventViewerDialog(); |
40 | 43 | ||
41 | void setEvent(Event *event); | 44 | void setEvent(Event *event); |
42 | void addEvent(Event *event); | 45 | void addEvent(Event *event); |
43 | void setTodo(Todo *event); | 46 | void setTodo(Todo *event); |
44 | void setJournal(Journal *journal); | 47 | void setJournal(Journal *journal); |
45 | void setIncidence(Incidence *inc); | 48 | void setIncidence(Incidence *inc); |
46 | void addIncidence(Incidence *inc); | 49 | void addIncidence(Incidence *inc); |
47 | void addText(QString text); | 50 | void addText(QString text); |
48 | void showMe(); | 51 | void showMe(); |
49 | void setSyncMode( bool ); | 52 | void setSyncMode( bool ); |
50 | void setColorMode( int m ); | 53 | void setColorMode( int m ); |
51 | int executeS( bool ); | 54 | int executeS( bool ); |
52 | public slots: | 55 | public slots: |
53 | void updateConfig(); | 56 | void updateConfig(); |
54 | void print(); | 57 | void print(); |
55 | void setMyFocus(); | 58 | void setMyFocus(); |
56 | signals: | 59 | signals: |
57 | void showIncidence( QString ); | 60 | void showIncidence( QString ); |
58 | void editIncidence( Incidence* ); | 61 | void editIncidence( Incidence* ); |
59 | void jumpToTime( const QDate &); | 62 | void jumpToTime( const QDate &); |
60 | void showAgendaView( bool ); | 63 | void showAgendaView( bool ); |
61 | void todoCompleted(Todo*); | 64 | void todoCompleted(Todo*); |
62 | void signalViewerClosed(); | 65 | void signalViewerClosed(); |
63 | private slots: | 66 | private slots: |
64 | void slotViewerClosed(); | 67 | void slotViewerClosed(); |
65 | void editIncidence(); | 68 | void editIncidence(); |
66 | void showIncidence(); | 69 | void showIncidence(); |
67 | protected: | 70 | protected: |
68 | void hideEvent ( QHideEvent * e ); | 71 | void hideEvent ( QHideEvent * e ); |
69 | private: | 72 | private: |
70 | bool sendSignalViewerClosed; | 73 | bool sendSignalViewerClosed; |
71 | bool mSyncMode; | 74 | bool mSyncMode; |
72 | int mSyncResult; | 75 | int mSyncResult; |
73 | KOEventViewer *mEventViewer; | 76 | KOEventViewer *mEventViewer; |
74 | Incidence* mIncidence; | 77 | Incidence* mIncidence; |
75 | void keyPressEvent ( QKeyEvent * e ); | 78 | void keyPressEvent ( QKeyEvent * e ); |
76 | }; | 79 | }; |
77 | 80 | ||
78 | #endif | 81 | #endif |