author | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
---|---|---|
committer | Michael Krelin <hacker@klever.net> | 2007-07-04 11:23:42 (UTC) |
commit | a08aff328d4393031d5ba7d622c2b05705a89d73 (patch) (unidiff) | |
tree | 8ee90d686081c52e7c69b5ce946e9b1a7d690001 /korganizer/koagenda.h | |
parent | 11edc920afe4f274c0964436633aa632c8288a40 (diff) | |
download | kdepimpi-p1.zip kdepimpi-p1.tar.gz kdepimpi-p1.tar.bz2 |
initial public commit of qt4 portp1
-rw-r--r-- | korganizer/koagenda.h | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index 380ce62..0708341 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -1,308 +1,317 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 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 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef KOAGENDA_H | 23 | #ifndef KOAGENDA_H |
24 | #define KOAGENDA_H | 24 | #define KOAGENDA_H |
25 | 25 | ||
26 | #include <qscrollview.h> | 26 | #include <q3scrollview.h> |
27 | #include <qtimer.h> | 27 | #include <qtimer.h> |
28 | #include <qmemarray.h> | 28 | #include <q3memarray.h> |
29 | #include <qpainter.h> | 29 | #include <qpainter.h> |
30 | #include <qpixmap.h> | 30 | #include <qpixmap.h> |
31 | #include <qguardedptr.h> | 31 | #include <qpointer.h> |
32 | //Added by qt3to4: | ||
33 | #include <QResizeEvent> | ||
34 | #include <Q3Frame> | ||
35 | #include <QLabel> | ||
36 | #include <QMouseEvent> | ||
37 | #include <Q3PtrList> | ||
38 | #include <Q3PopupMenu> | ||
39 | #include <QKeyEvent> | ||
40 | #include <QEvent> | ||
32 | 41 | ||
33 | #include "koagendaitem.h" | 42 | #include "koagendaitem.h" |
34 | #include "koeventview.h" | 43 | #include "koeventview.h" |
35 | 44 | ||
36 | class QPopupMenu; | 45 | class Q3PopupMenu; |
37 | class QTime; | 46 | class QTime; |
38 | class KConfig; | 47 | class KConfig; |
39 | class QFrame; | 48 | class Q3Frame; |
40 | class KOAgenda; | 49 | class KOAgenda; |
41 | class KCal::Event; | 50 | class KCal::Event; |
42 | class KCal::Todo; | 51 | class KCal::Todo; |
43 | 52 | ||
44 | using namespace KCal; | 53 | using namespace KCal; |
45 | 54 | ||
46 | class MarcusBains : public QFrame { | 55 | class MarcusBains : public Q3Frame { |
47 | Q_OBJECT | 56 | Q_OBJECT |
48 | public: | 57 | public: |
49 | MarcusBains(KOAgenda *agenda=0,const char *name=0); | 58 | MarcusBains(KOAgenda *agenda=0,const char *name=0); |
50 | virtual ~MarcusBains(); | 59 | virtual ~MarcusBains(); |
51 | void hideMe(); | 60 | void hideMe(); |
52 | public slots: | 61 | public slots: |
53 | void updateLocation(bool recalculate=false); | 62 | void updateLocation(bool recalculate=false); |
54 | void updateLoc(); | 63 | void updateLoc(); |
55 | 64 | ||
56 | private: | 65 | private: |
57 | int todayColumn(); | 66 | int todayColumn(); |
58 | QTimer *minutes; | 67 | QTimer *minutes; |
59 | QLabel *mTimeBox; | 68 | QLabel *mTimeBox; |
60 | KOAgenda *agenda; | 69 | KOAgenda *agenda; |
61 | QTime oldTime; | 70 | QTime oldTime; |
62 | int oldToday; | 71 | int oldToday; |
63 | }; | 72 | }; |
64 | 73 | ||
65 | 74 | ||
66 | class KOAgenda : public QScrollView | 75 | class KOAgenda : public Q3ScrollView |
67 | { | 76 | { |
68 | Q_OBJECT | 77 | Q_OBJECT |
69 | public: | 78 | public: |
70 | enum MouseActionType { NOP, MOVE, SELECT, | 79 | enum MouseActionType { NOP, MOVE, SELECT, |
71 | RESIZETOP, RESIZEBOTTOM, RESIZELEFT, RESIZERIGHT }; | 80 | RESIZETOP, RESIZEBOTTOM, RESIZELEFT, RESIZERIGHT }; |
72 | 81 | ||
73 | KOAgenda ( int columns, int rows, int columnSize, QWidget * parent=0, | 82 | KOAgenda ( int columns, int rows, int columnSize, QWidget * parent=0, |
74 | const char * name=0, WFlags f=0 ); | 83 | const char * name=0, Qt::WFlags f=0 ); |
75 | KOAgenda ( int columns, QWidget * parent=0, | 84 | KOAgenda ( int columns, QWidget * parent=0, |
76 | const char * name=0, WFlags f=0 ); | 85 | const char * name=0, Qt::WFlags f=0 ); |
77 | virtual ~KOAgenda(); | 86 | virtual ~KOAgenda(); |
78 | bool mInvalidPixmap; | 87 | bool mInvalidPixmap; |
79 | 88 | ||
80 | Incidence *selectedIncidence() const; | 89 | Incidence *selectedIncidence() const; |
81 | QDate selectedIncidenceDate() const; | 90 | QDate selectedIncidenceDate() const; |
82 | 91 | ||
83 | virtual bool eventFilter ( QObject *, QEvent * ); | 92 | virtual bool eventFilter ( QObject *, QEvent * ); |
84 | 93 | ||
85 | void contentsToGrid (int x, int y, int& gx, int& gy); | 94 | void contentsToGrid (int x, int y, int& gx, int& gy); |
86 | void gridToContents (int gx, int gy, int& x, int& y); | 95 | void gridToContents (int gx, int gy, int& x, int& y); |
87 | 96 | ||
88 | int timeToY (const QTime &time); | 97 | int timeToY (const QTime &time); |
89 | QTime gyToTime (int y); | 98 | QTime gyToTime (int y); |
90 | 99 | ||
91 | void setStartHour(int startHour); | 100 | void setStartHour(int startHour); |
92 | 101 | ||
93 | KOAgendaItem *insertItem (Incidence *event,QDate qd,int X,int YTop,int YBottom); | 102 | KOAgendaItem *insertItem (Incidence *event,QDate qd,int X,int YTop,int YBottom); |
94 | KOAgendaItem *insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd); | 103 | KOAgendaItem *insertAllDayItem (Incidence *event,QDate qd,int XBegin,int XEnd); |
95 | void insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, | 104 | void insertMultiItem (Event *event,QDate qd,int XBegin,int XEnd, |
96 | int YTop,int YBottom); | 105 | int YTop,int YBottom); |
97 | 106 | ||
98 | void changeColumns(int columns); | 107 | void changeColumns(int columns); |
99 | 108 | ||
100 | int columns() { return mColumns; } | 109 | int columns() { return mColumns; } |
101 | int rows() { return mRows; } | 110 | int rows() { return mRows; } |
102 | 111 | ||
103 | int gridSpacingX() const { return mGridSpacingX; } | 112 | int gridSpacingX() const { return mGridSpacingX; } |
104 | int gridSpacingY() const { return mGridSpacingY; } | 113 | int gridSpacingY() const { return mGridSpacingY; } |
105 | 114 | ||
106 | // virtual QSizePolicy sizePolicy() const; | 115 | // virtual QSizePolicy sizePolicy() const; |
107 | 116 | ||
108 | void clear(); | 117 | void clear(); |
109 | 118 | ||
110 | void clearSelection(); | 119 | void clearSelection(); |
111 | void hideUnused(); | 120 | void hideUnused(); |
112 | 121 | ||
113 | /** Calculates the minimum width */ | 122 | /** Calculates the minimum width */ |
114 | virtual int minimumWidth() const; | 123 | virtual int minimumWidth() const; |
115 | /** Update configuration from preference settings */ | 124 | /** Update configuration from preference settings */ |
116 | void updateConfig(); | 125 | void updateConfig(); |
117 | 126 | ||
118 | void checkScrollBoundaries(); | 127 | void checkScrollBoundaries(); |
119 | 128 | ||
120 | void setHolidayMask(QMemArray<bool> *); | 129 | void setHolidayMask(Q3MemArray<bool> *); |
121 | void setDateList(const DateList &selectedDates); | 130 | void setDateList(const DateList &selectedDates); |
122 | DateList dateList() const; | 131 | DateList dateList() const; |
123 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); | 132 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); |
124 | void finishUpdate(); | 133 | void finishUpdate(); |
125 | void printSelection(); | 134 | void printSelection(); |
126 | void storePosition(); | 135 | void storePosition(); |
127 | void restorePosition(); | 136 | void restorePosition(); |
128 | void setPopup( KOEventPopupMenu * p ) { mAllAgendaPopup = p; } | 137 | void setPopup( KOEventPopupMenu * p ) { mAllAgendaPopup = p; } |
129 | void shrinkPixmap(); | 138 | void shrinkPixmap(); |
130 | QTime getEndTime(); | 139 | QTime getEndTime(); |
131 | bool invalidPixmap(); | 140 | bool invalidPixmap(); |
132 | 141 | ||
133 | public slots: | 142 | public slots: |
134 | void slotContentMove(int,int); | 143 | void slotContentMove(int,int); |
135 | void categoryChanged(Incidence * inc); | 144 | void categoryChanged(Incidence * inc); |
136 | void slotClearSelection(); | 145 | void slotClearSelection(); |
137 | void popupMenu(); | 146 | void popupMenu(); |
138 | void newItem( int ); | 147 | void newItem( int ); |
139 | void moveChild( QWidget *, int, int ); | 148 | void moveChild( QWidget *, int, int ); |
140 | void scrollUp(); | 149 | void scrollUp(); |
141 | void scrollDown(); | 150 | void scrollDown(); |
142 | void updateTodo( Todo * t, int , bool ); | 151 | void updateTodo( Todo * t, int , bool ); |
143 | void popupAlarm(); | 152 | void popupAlarm(); |
144 | 153 | ||
145 | void checkScrollBoundaries(int); | 154 | void checkScrollBoundaries(int); |
146 | 155 | ||
147 | /** Deselect selected items. This function does not emit any signals. */ | 156 | /** Deselect selected items. This function does not emit any signals. */ |
148 | void deselectItem(); | 157 | void deselectItem(); |
149 | /** Select item. If the argument is 0, the currently selected item gets | 158 | /** Select item. If the argument is 0, the currently selected item gets |
150 | deselected. This function emits the itemSelected(bool) signal to inform | 159 | deselected. This function emits the itemSelected(bool) signal to inform |
151 | about selection/deseelction of events. */ | 160 | about selection/deseelction of events. */ |
152 | void selectItem(KOAgendaItem *); | 161 | void selectItem(KOAgendaItem *); |
153 | void finishResize(); | 162 | void finishResize(); |
154 | 163 | ||
155 | signals: | 164 | signals: |
156 | void signalClearSelection(); | 165 | void signalClearSelection(); |
157 | void showDateView( int, int); | 166 | void showDateView( int, int); |
158 | void newEventSignal(); | 167 | void newEventSignal(); |
159 | void newEventSignal(int gx,int gy); | 168 | void newEventSignal(int gx,int gy); |
160 | void newTodoSignal(int gx,int gy); | 169 | void newTodoSignal(int gx,int gy); |
161 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 170 | void newEventSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
162 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); | 171 | void newTimeSpanSignal(int gxStart, int gyStart, int gxEnd, int gyEnd); |
163 | void newStartSelectSignal(); | 172 | void newStartSelectSignal(); |
164 | void showIncidenceSignal(Incidence *); | 173 | void showIncidenceSignal(Incidence *); |
165 | void editIncidenceSignal(Incidence *); | 174 | void editIncidenceSignal(Incidence *); |
166 | void deleteIncidenceSignal(Incidence *); | 175 | void deleteIncidenceSignal(Incidence *); |
167 | void showIncidencePopupSignal(Incidence *); | 176 | void showIncidencePopupSignal(Incidence *); |
168 | 177 | ||
169 | void itemModified(KOAgendaItem *item, int ); | 178 | void itemModified(KOAgendaItem *item, int ); |
170 | void incidenceSelected(Incidence *); | 179 | void incidenceSelected(Incidence *); |
171 | 180 | ||
172 | void lowerYChanged(int); | 181 | void lowerYChanged(int); |
173 | void upperYChanged(int); | 182 | void upperYChanged(int); |
174 | 183 | ||
175 | void startDragSignal(Incidence *); | 184 | void startDragSignal(Incidence *); |
176 | void addToCalSignal(Incidence *, Incidence *); | 185 | void addToCalSignal(Incidence *, Incidence *); |
177 | void resizedSignal(); | 186 | void resizedSignal(); |
178 | void updateViewSignal(); | 187 | void updateViewSignal(); |
179 | void sendPing(); | 188 | void sendPing(); |
180 | 189 | ||
181 | protected: | 190 | protected: |
182 | KOEventPopupMenu * mAllAgendaPopup; | 191 | KOEventPopupMenu * mAllAgendaPopup; |
183 | QPainter mPixPainter; | 192 | QPainter mPixPainter; |
184 | QPixmap mPaintPixmap; | 193 | QPixmap mPaintPixmap; |
185 | QPixmap mHighlightPixmap; | 194 | QPixmap mHighlightPixmap; |
186 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 195 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
187 | virtual void resizeEvent ( QResizeEvent * ); | 196 | virtual void resizeEvent ( QResizeEvent * ); |
188 | 197 | ||
189 | /** Handles mouse events. Called from eventFilter */ | 198 | /** Handles mouse events. Called from eventFilter */ |
190 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); | 199 | virtual bool eventFilter_mouse ( QObject *, QMouseEvent * ); |
191 | 200 | ||
192 | /** Start selecting time span. */ | 201 | /** Start selecting time span. */ |
193 | void startSelectAction(QPoint viewportPos); | 202 | void startSelectAction(QPoint viewportPos); |
194 | 203 | ||
195 | /** Select time span. */ | 204 | /** Select time span. */ |
196 | void performSelectAction(QPoint viewportPos); | 205 | void performSelectAction(QPoint viewportPos); |
197 | 206 | ||
198 | /** Emd selecting time span. */ | 207 | /** Emd selecting time span. */ |
199 | void endSelectAction( bool emitNewEvent = false ); | 208 | void endSelectAction( bool emitNewEvent = false ); |
200 | 209 | ||
201 | /** Start moving/resizing agenda item */ | 210 | /** Start moving/resizing agenda item */ |
202 | void startItemAction(QPoint viewportPos); | 211 | void startItemAction(QPoint viewportPos); |
203 | 212 | ||
204 | /** Move/resize agenda item */ | 213 | /** Move/resize agenda item */ |
205 | void performItemAction(QPoint viewportPos); | 214 | void performItemAction(QPoint viewportPos); |
206 | 215 | ||
207 | /** End moving/resizing agenda item */ | 216 | /** End moving/resizing agenda item */ |
208 | void endItemAction(); | 217 | void endItemAction(); |
209 | 218 | ||
210 | /** Set cursor, when no item action is in progress */ | 219 | /** Set cursor, when no item action is in progress */ |
211 | void setNoActionCursor(KOAgendaItem *moveItem,QPoint viewportPos); | 220 | void setNoActionCursor(KOAgendaItem *moveItem,QPoint viewportPos); |
212 | 221 | ||
213 | /** Place agenda item in agenda and adjust other cells if necessary */ | 222 | /** Place agenda item in agenda and adjust other cells if necessary */ |
214 | void placeSubCells(KOAgendaItem *placeItem); | 223 | void placeSubCells(KOAgendaItem *placeItem); |
215 | 224 | ||
216 | /** Process the keyevent, including the ignored keyevents of eventwidgets. | 225 | /** Process the keyevent, including the ignored keyevents of eventwidgets. |
217 | * Implements pgup/pgdn and cursor key navigation in the view. | 226 | * Implements pgup/pgdn and cursor key navigation in the view. |
218 | */ | 227 | */ |
219 | void keyPressEvent( QKeyEvent * ); | 228 | void keyPressEvent( QKeyEvent * ); |
220 | 229 | ||
221 | void calculateWorkingHours(); | 230 | void calculateWorkingHours(); |
222 | 231 | ||
223 | virtual void contentsMousePressEvent ( QMouseEvent * ); | 232 | virtual void contentsMousePressEvent ( QMouseEvent * ); |
224 | 233 | ||
225 | private: | 234 | private: |
226 | void init(); | 235 | void init(); |
227 | void marcus_bains(); | 236 | void marcus_bains(); |
228 | bool mAllDayMode; | 237 | bool mAllDayMode; |
229 | bool blockResize; | 238 | bool blockResize; |
230 | bool mLeftMouseDown; | 239 | bool mLeftMouseDown; |
231 | KOAgendaItem *mPopupItem; | 240 | KOAgendaItem *mPopupItem; |
232 | QTimer* mPopupTimer; | 241 | QTimer* mPopupTimer; |
233 | int mPopupKind; | 242 | int mPopupKind; |
234 | QPoint mPopupPos; | 243 | QPoint mPopupPos; |
235 | QTimer mResizeTimer; | 244 | QTimer mResizeTimer; |
236 | double mContentPosition; | 245 | double mContentPosition; |
237 | 246 | ||
238 | // Width and height of agenda cells | 247 | // Width and height of agenda cells |
239 | int mGridSpacingX; | 248 | int mGridSpacingX; |
240 | int mGridSpacingY; | 249 | int mGridSpacingY; |
241 | 250 | ||
242 | // size of border, where mouse action will resize the KOAgendaItem | 251 | // size of border, where mouse action will resize the KOAgendaItem |
243 | int mResizeBorderWidth; | 252 | int mResizeBorderWidth; |
244 | 253 | ||
245 | // size of border, where mouse mve will cause a scroll of the agenda | 254 | // size of border, where mouse mve will cause a scroll of the agenda |
246 | int mScrollBorderWidth; | 255 | int mScrollBorderWidth; |
247 | int mScrollDelay; | 256 | int mScrollDelay; |
248 | int mScrollOffset; | 257 | int mScrollOffset; |
249 | 258 | ||
250 | QTimer mScrollUpTimer; | 259 | QTimer mScrollUpTimer; |
251 | QTimer mScrollDownTimer; | 260 | QTimer mScrollDownTimer; |
252 | 261 | ||
253 | // Number of Columns/Rows of agenda grid | 262 | // Number of Columns/Rows of agenda grid |
254 | int mColumns; | 263 | int mColumns; |
255 | int mRows; | 264 | int mRows; |
256 | 265 | ||
257 | // Cells to store Move and Resize coordiantes | 266 | // Cells to store Move and Resize coordiantes |
258 | int mStartCellX; | 267 | int mStartCellX; |
259 | int mStartCellY; | 268 | int mStartCellY; |
260 | int mCurrentCellX; | 269 | int mCurrentCellX; |
261 | int mCurrentCellY; | 270 | int mCurrentCellY; |
262 | 271 | ||
263 | // Working Hour coordiantes | 272 | // Working Hour coordiantes |
264 | bool mWorkingHoursEnable; | 273 | bool mWorkingHoursEnable; |
265 | int mWorkingHoursYTop; | 274 | int mWorkingHoursYTop; |
266 | int mWorkingHoursYBottom; | 275 | int mWorkingHoursYBottom; |
267 | 276 | ||
268 | // Selection | 277 | // Selection |
269 | int mSelectionCellX; | 278 | int mSelectionCellX; |
270 | int mSelectionYTop; | 279 | int mSelectionYTop; |
271 | int mSelectionHeight; | 280 | int mSelectionHeight; |
272 | 281 | ||
273 | // List of dates to be displayed | 282 | // List of dates to be displayed |
274 | DateList mSelectedDates; | 283 | DateList mSelectedDates; |
275 | 284 | ||
276 | // The KOAgendaItem, which has been right-clicked last | 285 | // The KOAgendaItem, which has been right-clicked last |
277 | KOAgendaItem *mClickedItem; | 286 | KOAgendaItem *mClickedItem; |
278 | 287 | ||
279 | // The KOAgendaItem, which is being moved/resized | 288 | // The KOAgendaItem, which is being moved/resized |
280 | QGuardedPtr<KOAgendaItem> mActionItem; | 289 | QPointer<KOAgendaItem> mActionItem; |
281 | 290 | ||
282 | // Currently selected item | 291 | // Currently selected item |
283 | QGuardedPtr<KOAgendaItem> mSelectedItem; | 292 | QPointer<KOAgendaItem> mSelectedItem; |
284 | 293 | ||
285 | // The Marcus Bains Line widget. | 294 | // The Marcus Bains Line widget. |
286 | MarcusBains *mMarcusBains; | 295 | MarcusBains *mMarcusBains; |
287 | void computeSizes(); | 296 | void computeSizes(); |
288 | 297 | ||
289 | MouseActionType mActionType; | 298 | MouseActionType mActionType; |
290 | 299 | ||
291 | bool mItemMoved; | 300 | bool mItemMoved; |
292 | 301 | ||
293 | // List of all Items contained in agenda | 302 | // List of all Items contained in agenda |
294 | QPtrList<KOAgendaItem> mItems; | 303 | Q3PtrList<KOAgendaItem> mItems; |
295 | QPtrList<KOAgendaItem> mUnusedItems; | 304 | Q3PtrList<KOAgendaItem> mUnusedItems; |
296 | KOAgendaItem* getNewItem(Incidence * event,QDate qd, QWidget* viewport); | 305 | KOAgendaItem* getNewItem(Incidence * event,QDate qd, QWidget* viewport); |
297 | QPopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems | 306 | Q3PopupMenu *mItemPopup; // Right mouse button popup menu for KOAgendaItems |
298 | QPopupMenu *mNewItemPopup; | 307 | Q3PopupMenu *mNewItemPopup; |
299 | 308 | ||
300 | int mOldLowerScrollValue; | 309 | int mOldLowerScrollValue; |
301 | int mOldUpperScrollValue; | 310 | int mOldUpperScrollValue; |
302 | KOAgendaItem * getItemForTodo ( Todo * todo ); | 311 | KOAgendaItem * getItemForTodo ( Todo * todo ); |
303 | QMemArray<bool> *mHolidayMask; | 312 | Q3MemArray<bool> *mHolidayMask; |
304 | int mCurPixWid; | 313 | int mCurPixWid; |
305 | int mCurPixHei; | 314 | int mCurPixHei; |
306 | }; | 315 | }; |
307 | 316 | ||
308 | #endif // KOAGENDA_H | 317 | #endif // KOAGENDA_H |