Diffstat (limited to 'korganizer/datenavigatorcontainer.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | korganizer/datenavigatorcontainer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/korganizer/datenavigatorcontainer.h b/korganizer/datenavigatorcontainer.h index 87cc59f..75d387c 100644 --- a/korganizer/datenavigatorcontainer.h +++ b/korganizer/datenavigatorcontainer.h | |||
@@ -1,48 +1,51 @@ | |||
1 | //Added by qt3to4: | ||
2 | #include <QResizeEvent> | ||
3 | #include <Q3PtrList> | ||
1 | /* | 4 | /* |
2 | This file is part of KOrganizer. | 5 | This file is part of KOrganizer. |
3 | 6 | ||
4 | Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> | 7 | Copyright (c) 2004 Cornelius Schumacher <schumacher@kde.org> |
5 | Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> | 8 | Copyright (C) 2004 Reinhold Kainhofer <reinhold@kainhofer.com> |
6 | 9 | ||
7 | This program is free software; you can redistribute it and/or modify | 10 | This program is free software; you can redistribute it and/or modify |
8 | it under the terms of the GNU General Public License as published by | 11 | it under the terms of the GNU General Public License as published by |
9 | the Free Software Foundation; either version 2 of the License, or | 12 | the Free Software Foundation; either version 2 of the License, or |
10 | (at your option) any later version. | 13 | (at your option) any later version. |
11 | 14 | ||
12 | This program is distributed in the hope that it will be useful, | 15 | This program is distributed in the hope that it will be useful, |
13 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
15 | GNU General Public License for more details. | 18 | GNU General Public License for more details. |
16 | 19 | ||
17 | You should have received a copy of the GNU General Public License | 20 | You should have received a copy of the GNU General Public License |
18 | along with this program; if not, write to the Free Software | 21 | along with this program; if not, write to the Free Software |
19 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 22 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
20 | 23 | ||
21 | As a special exception, permission is given to link this program | 24 | As a special exception, permission is given to link this program |
22 | with any edition of Qt, and distribute the resulting executable, | 25 | with any edition of Qt, and distribute the resulting executable, |
23 | without including the source code for Qt in the source distribution. | 26 | without including the source code for Qt in the source distribution. |
24 | */ | 27 | */ |
25 | #ifndef DATENAVIGATORCONTAINER_H | 28 | #ifndef DATENAVIGATORCONTAINER_H |
26 | #define DATENAVIGATORCONTAINER_H | 29 | #define DATENAVIGATORCONTAINER_H |
27 | 30 | ||
28 | class KDateNavigator; | 31 | class KDateNavigator; |
29 | 32 | ||
30 | #include <qwidget.h> | 33 | #include <qwidget.h> |
31 | #include <qtimer.h> | 34 | #include <qtimer.h> |
32 | #include <libkcal/calendar.h> | 35 | #include <libkcal/calendar.h> |
33 | using namespace KCal; | 36 | using namespace KCal; |
34 | 37 | ||
35 | class DateNavigatorContainer: public QWidget | 38 | class DateNavigatorContainer: public QWidget |
36 | { | 39 | { |
37 | Q_OBJECT | 40 | Q_OBJECT |
38 | public: | 41 | public: |
39 | DateNavigatorContainer( QWidget *parent = 0, const char *name = 0 ); | 42 | DateNavigatorContainer( QWidget *parent = 0, const char *name = 0 ); |
40 | ~DateNavigatorContainer(); | 43 | ~DateNavigatorContainer(); |
41 | 44 | ||
42 | /** | 45 | /** |
43 | Associate date navigator with a calendar. It is used by KODayMatrix. | 46 | Associate date navigator with a calendar. It is used by KODayMatrix. |
44 | */ | 47 | */ |
45 | void setCalendar( Calendar * ); | 48 | void setCalendar( Calendar * ); |
46 | 49 | ||
47 | QSize minimumSizeHint() const; | 50 | QSize minimumSizeHint() const; |
48 | QSize sizeHint() const; | 51 | QSize sizeHint() const; |
@@ -55,55 +58,55 @@ class DateNavigatorContainer: public QWidget | |||
55 | void updateView(); | 58 | void updateView(); |
56 | void updateConfig(); | 59 | void updateConfig(); |
57 | void updateDayMatrix(); | 60 | void updateDayMatrix(); |
58 | void updateDayMatrixDates(); | 61 | void updateDayMatrixDates(); |
59 | void checkUpdateDayMatrixDates(); | 62 | void checkUpdateDayMatrixDates(); |
60 | void updateToday(); | 63 | void updateToday(); |
61 | void slotMonthSelected( int month ); | 64 | void slotMonthSelected( int month ); |
62 | void slotgoNextMonth(); | 65 | void slotgoNextMonth(); |
63 | void slotgoPrevMonth(); | 66 | void slotgoPrevMonth(); |
64 | void slotgoNextYear(); | 67 | void slotgoNextYear(); |
65 | void slotgoPrevYear(); | 68 | void slotgoPrevYear(); |
66 | void setResizeEnabled(); | 69 | void setResizeEnabled(); |
67 | 70 | ||
68 | signals: | 71 | signals: |
69 | void datesSelected( const KCal::DateList & ); | 72 | void datesSelected( const KCal::DateList & ); |
70 | void incidenceDropped( Incidence *, const QDate & ); | 73 | void incidenceDropped( Incidence *, const QDate & ); |
71 | void incidenceDroppedMove( Incidence *, const QDate & ); | 74 | void incidenceDroppedMove( Incidence *, const QDate & ); |
72 | void weekClicked( const QDate &); | 75 | void weekClicked( const QDate &); |
73 | 76 | ||
74 | void goPrevious(); | 77 | void goPrevious(); |
75 | void goNext(); | 78 | void goNext(); |
76 | 79 | ||
77 | void goNextMonth(); | 80 | void goNextMonth(); |
78 | void goPrevMonth(); | 81 | void goPrevMonth(); |
79 | void goNextYear(); | 82 | void goNextYear(); |
80 | void goPrevYear(); | 83 | void goPrevYear(); |
81 | void showMonth( const QDate & ); | 84 | void showMonth( const QDate & ); |
82 | 85 | ||
83 | void monthSelected( int month ); | 86 | void monthSelected( int month ); |
84 | 87 | ||
85 | protected: | 88 | protected: |
86 | void computeMonthSelected( int month , bool forceEmit ); | 89 | void computeMonthSelected( int month , bool forceEmit ); |
87 | void jumpMonth( int month ); | 90 | void jumpMonth( int month ); |
88 | void resizeEvent( QResizeEvent * ); | 91 | void resizeEvent( QResizeEvent * ); |
89 | 92 | ||
90 | void setBaseDates(); | 93 | void setBaseDates(); |
91 | void connectNavigatorView( KDateNavigator *v ); | 94 | void connectNavigatorView( KDateNavigator *v ); |
92 | 95 | ||
93 | private: | 96 | private: |
94 | bool mResizeEnabled; | 97 | bool mResizeEnabled; |
95 | QTimer* mUpdateTimer; | 98 | QTimer* mUpdateTimer; |
96 | int mLastDisplayedDN; | 99 | int mLastDisplayedDN; |
97 | QDate mFirstSelectedDate; | 100 | QDate mFirstSelectedDate; |
98 | int mSelectedDateCount; | 101 | int mSelectedDateCount; |
99 | KDateNavigator *mNavigatorView; | 102 | KDateNavigator *mNavigatorView; |
100 | 103 | ||
101 | KCal::Calendar *mCalendar; | 104 | KCal::Calendar *mCalendar; |
102 | 105 | ||
103 | QPtrList<KDateNavigator> mExtraViews; | 106 | Q3PtrList<KDateNavigator> mExtraViews; |
104 | 107 | ||
105 | int mHorizontalCount; | 108 | int mHorizontalCount; |
106 | int mVerticalCount; | 109 | int mVerticalCount; |
107 | }; | 110 | }; |
108 | 111 | ||
109 | #endif | 112 | #endif |