-rw-r--r-- | korganizer/koeventview.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/koeventview.h b/korganizer/koeventview.h index 77ec111..f28e68b 100644 --- a/korganizer/koeventview.h +++ b/korganizer/koeventview.h | |||
@@ -1,122 +1,124 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 1999 Preston Brown <pbrown@kde.org> | 3 | Copyright (c) 1999 Preston Brown <pbrown@kde.org> |
4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | #ifndef _KOEVENTVIEW_H | 24 | #ifndef _KOEVENTVIEW_H |
25 | #define _KOEVENTVIEW_H | 25 | #define _KOEVENTVIEW_H |
26 | 26 | ||
27 | #include <libkcal/calendar.h> | 27 | #include <libkcal/calendar.h> |
28 | #include <libkcal/event.h> | 28 | #include <libkcal/event.h> |
29 | 29 | ||
30 | #include <korganizer/baseview.h> | 30 | #include <korganizer/baseview.h> |
31 | 31 | ||
32 | #include "koeventpopupmenu.h" | 32 | #include "koeventpopupmenu.h" |
33 | //Added by qt3to4: | ||
34 | #include <Q3PopupMenu> | ||
33 | 35 | ||
34 | using namespace KCal; | 36 | using namespace KCal; |
35 | 37 | ||
36 | class CalPrinter; | 38 | class CalPrinter; |
37 | 39 | ||
38 | /** | 40 | /** |
39 | KOEventView is the abstract base class from which all other | 41 | KOEventView is the abstract base class from which all other |
40 | calendar views for event data are derived. It provides methods for | 42 | calendar views for event data are derived. It provides methods for |
41 | displaying | 43 | displaying |
42 | appointments and events on one or more days. The actual number of | 44 | appointments and events on one or more days. The actual number of |
43 | days that a view actually supports is not defined by this abstract class; | 45 | days that a view actually supports is not defined by this abstract class; |
44 | that is up to the classes that inherit from it. It also provides | 46 | that is up to the classes that inherit from it. It also provides |
45 | methods for updating the display, retrieving the currently selected | 47 | methods for updating the display, retrieving the currently selected |
46 | event (or events), and the like. | 48 | event (or events), and the like. |
47 | 49 | ||
48 | @short Abstract class from which all event views are derived. | 50 | @short Abstract class from which all event views are derived. |
49 | @author Preston Brown <pbrown@kde.org> | 51 | @author Preston Brown <pbrown@kde.org> |
50 | @see KOListView, KOAgendaView, KOWeekView, KOMonthView | 52 | @see KOListView, KOAgendaView, KOWeekView, KOMonthView |
51 | */ | 53 | */ |
52 | class KOEventView : public KOrg::BaseView | 54 | class KOEventView : public KOrg::BaseView |
53 | { | 55 | { |
54 | Q_OBJECT | 56 | Q_OBJECT |
55 | 57 | ||
56 | public: | 58 | public: |
57 | /** | 59 | /** |
58 | * Constructs a view. | 60 | * Constructs a view. |
59 | * @param cal is a pointer to the calendar object from which events | 61 | * @param cal is a pointer to the calendar object from which events |
60 | * will be retrieved for display. | 62 | * will be retrieved for display. |
61 | */ | 63 | */ |
62 | KOEventView(Calendar *cal,QWidget *parent=0,const char *name=0); | 64 | KOEventView(Calendar *cal,QWidget *parent=0,const char *name=0); |
63 | 65 | ||
64 | /** | 66 | /** |
65 | * Destructor. Views will do view-specific cleanups here. | 67 | * Destructor. Views will do view-specific cleanups here. |
66 | */ | 68 | */ |
67 | virtual ~KOEventView(); | 69 | virtual ~KOEventView(); |
68 | 70 | ||
69 | /** | 71 | /** |
70 | * provides a hint back to the caller on the maximum number of dates | 72 | * provides a hint back to the caller on the maximum number of dates |
71 | * that the view supports. A return value of 0 means no maximum. | 73 | * that the view supports. A return value of 0 means no maximum. |
72 | */ | 74 | */ |
73 | virtual int maxDatesHint() = 0; | 75 | virtual int maxDatesHint() = 0; |
74 | 76 | ||
75 | /** | 77 | /** |
76 | * Construct a standard context menu for an event. | 78 | * Construct a standard context menu for an event. |
77 | */ | 79 | */ |
78 | KOEventPopupMenu *eventPopup(); | 80 | KOEventPopupMenu *eventPopup(); |
79 | 81 | ||
80 | /** This view is an view for displaying events. */ | 82 | /** This view is an view for displaying events. */ |
81 | bool isEventView() { return true; } | 83 | bool isEventView() { return true; } |
82 | 84 | ||
83 | public slots: | 85 | public slots: |
84 | 86 | ||
85 | /** | 87 | /** |
86 | * Show context menu for event. | 88 | * Show context menu for event. |
87 | * @param event event, which is to be manipulated by the menu actions | 89 | * @param event event, which is to be manipulated by the menu actions |
88 | * @param popup a popop menu created with eventPopup() | 90 | * @param popup a popop menu created with eventPopup() |
89 | */ | 91 | */ |
90 | void showIncidencePopup(QPopupMenu *popup, Incidence *event); | 92 | void showIncidencePopup(Q3PopupMenu *popup, Incidence *event); |
91 | 93 | ||
92 | /** | 94 | /** |
93 | Perform the default action for an incidence, e.g. open the event editor, | 95 | Perform the default action for an incidence, e.g. open the event editor, |
94 | when double-clicking an event in the agenda view. | 96 | when double-clicking an event in the agenda view. |
95 | */ | 97 | */ |
96 | void defaultAction( Incidence * ); | 98 | void defaultAction( Incidence * ); |
97 | 99 | ||
98 | signals: | 100 | signals: |
99 | /** | 101 | /** |
100 | * when the view changes the dates that are selected in one way or | 102 | * when the view changes the dates that are selected in one way or |
101 | * another, this signal is emitted. It should be connected back to | 103 | * another, this signal is emitted. It should be connected back to |
102 | * the @see KDateNavigator object so that it changes appropriately, | 104 | * the @see KDateNavigator object so that it changes appropriately, |
103 | * and any other objects that need to be aware that the list of | 105 | * and any other objects that need to be aware that the list of |
104 | * selected dates has changed. | 106 | * selected dates has changed. |
105 | */ | 107 | */ |
106 | void datesSelected(const DateList); | 108 | void datesSelected(const DateList); |
107 | 109 | ||
108 | /** | 110 | /** |
109 | * instructs the receiver to show the incidence in read-only mode. | 111 | * instructs the receiver to show the incidence in read-only mode. |
110 | */ | 112 | */ |
111 | void showIncidenceSignal(Incidence *); | 113 | void showIncidenceSignal(Incidence *); |
112 | 114 | ||
113 | /** | 115 | /** |
114 | * instructs the receiver to begin editing the incidence specified in | 116 | * instructs the receiver to begin editing the incidence specified in |
115 | * some manner. Doesn't make sense to connect to more than one | 117 | * some manner. Doesn't make sense to connect to more than one |
116 | * receiver. | 118 | * receiver. |
117 | */ | 119 | */ |
118 | void editIncidenceSignal(Incidence *); | 120 | void editIncidenceSignal(Incidence *); |
119 | void cloneIncidenceSignal(Incidence *); | 121 | void cloneIncidenceSignal(Incidence *); |
120 | void cancelIncidenceSignal(Incidence *); | 122 | void cancelIncidenceSignal(Incidence *); |
121 | void beamIncidenceSignal(Incidence *); | 123 | void beamIncidenceSignal(Incidence *); |
122 | void moveIncidenceSignal(Incidence *); | 124 | void moveIncidenceSignal(Incidence *); |