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,32 +1,35 @@ | |||
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> |
@@ -71,39 +74,39 @@ class DateNavigatorContainer: public QWidget | |||
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 |