Diffstat (limited to 'korganizer/interfaces/korganizer/calendarviewbase.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/interfaces/korganizer/calendarviewbase.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/korganizer/interfaces/korganizer/calendarviewbase.h b/korganizer/interfaces/korganizer/calendarviewbase.h index 3c715b1..1f49357 100644 --- a/korganizer/interfaces/korganizer/calendarviewbase.h +++ b/korganizer/interfaces/korganizer/calendarviewbase.h | |||
@@ -1,65 +1,67 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of the KOrganizer interfaces. | 2 | This file is part of the KOrganizer interfaces. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library 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 GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | #ifndef KORG_CALENDARVIEWBASE_H | 20 | #ifndef KORG_CALENDARVIEWBASE_H |
21 | #define KORG_CALENDARVIEWBASE_H | 21 | #define KORG_CALENDARVIEWBASE_H |
22 | // $Id$ | 22 | // $Id$ |
23 | 23 | ||
24 | #include <qwidget.h> | 24 | #include <qwidget.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | //Added by qt3to4: | ||
27 | #include <Q3VBoxLayout> | ||
26 | 28 | ||
27 | 29 | ||
28 | #include <libkcal/calendar.h> | 30 | #include <libkcal/calendar.h> |
29 | 31 | ||
30 | #include <korganizer/baseview.h> | 32 | #include <korganizer/baseview.h> |
31 | 33 | ||
32 | namespace KOrg { | 34 | namespace KOrg { |
33 | 35 | ||
34 | /** | 36 | /** |
35 | @short interface for main calendar view widget | 37 | @short interface for main calendar view widget |
36 | @author Cornelius Schumacher | 38 | @author Cornelius Schumacher |
37 | */ | 39 | */ |
38 | class CalendarViewBase : public QWidget | 40 | class CalendarViewBase : public QWidget |
39 | { | 41 | { |
40 | Q_OBJECT | 42 | Q_OBJECT |
41 | public: | 43 | public: |
42 | CalendarViewBase(QWidget *parent, const char *name) : | 44 | CalendarViewBase(QWidget *parent, const char *name) : |
43 | QWidget(parent,name) {new QVBoxLayout(this);} | 45 | QWidget(parent,name) {new Q3VBoxLayout(this);} |
44 | virtual ~CalendarViewBase() {}; | 46 | virtual ~CalendarViewBase() {}; |
45 | 47 | ||
46 | virtual KCal::Calendar *calendar() = 0; | 48 | virtual KCal::Calendar *calendar() = 0; |
47 | 49 | ||
48 | virtual QDate startDate() = 0; | 50 | virtual QDate startDate() = 0; |
49 | virtual QDate endDate() = 0; | 51 | virtual QDate endDate() = 0; |
50 | 52 | ||
51 | virtual Incidence *currentSelection() = 0; | 53 | virtual Incidence *currentSelection() = 0; |
52 | 54 | ||
53 | virtual void addView(KOrg::BaseView *) = 0; | 55 | virtual void addView(KOrg::BaseView *) = 0; |
54 | 56 | ||
55 | /** changes the view to be the currently selected view */ | 57 | /** changes the view to be the currently selected view */ |
56 | virtual void showView(KOrg::BaseView *) = 0; | 58 | virtual void showView(KOrg::BaseView *) = 0; |
57 | 59 | ||
58 | public slots: | 60 | public slots: |
59 | virtual void updateView() = 0; | 61 | virtual void updateView() = 0; |
60 | 62 | ||
61 | }; | 63 | }; |
62 | 64 | ||
63 | } | 65 | } |
64 | 66 | ||
65 | #endif | 67 | #endif |