-rw-r--r-- | korganizer/koagenda.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/korganizer/koagenda.h b/korganizer/koagenda.h index f3f1772..3d33ae5 100644 --- a/korganizer/koagenda.h +++ b/korganizer/koagenda.h | |||
@@ -113,32 +113,33 @@ class KOAgenda : public QScrollView | |||
113 | /** Update configuration from preference settings */ | 113 | /** Update configuration from preference settings */ |
114 | void updateConfig(); | 114 | void updateConfig(); |
115 | 115 | ||
116 | void checkScrollBoundaries(); | 116 | void checkScrollBoundaries(); |
117 | 117 | ||
118 | void setHolidayMask(QMemArray<bool> *); | 118 | void setHolidayMask(QMemArray<bool> *); |
119 | void setDateList(const DateList &selectedDates); | 119 | void setDateList(const DateList &selectedDates); |
120 | DateList dateList() const; | 120 | DateList dateList() const; |
121 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); | 121 | void drawContentsToPainter( QPainter* paint = 0, bool backgroundOnly = false); |
122 | void finishUpdate(); | 122 | void finishUpdate(); |
123 | void printSelection(); | 123 | void printSelection(); |
124 | void storePosition(); | 124 | void storePosition(); |
125 | void restorePosition(); | 125 | void restorePosition(); |
126 | 126 | ||
127 | 127 | ||
128 | public slots: | 128 | public slots: |
129 | void popupMenu(); | ||
129 | void newItem( int ); | 130 | void newItem( int ); |
130 | void moveChild( QWidget *, int, int ); | 131 | void moveChild( QWidget *, int, int ); |
131 | void scrollUp(); | 132 | void scrollUp(); |
132 | void scrollDown(); | 133 | void scrollDown(); |
133 | void updateTodo( Todo * t, int , bool ); | 134 | void updateTodo( Todo * t, int , bool ); |
134 | void popupAlarm(); | 135 | void popupAlarm(); |
135 | 136 | ||
136 | void checkScrollBoundaries(int); | 137 | void checkScrollBoundaries(int); |
137 | 138 | ||
138 | /** Deselect selected items. This function does not emit any signals. */ | 139 | /** Deselect selected items. This function does not emit any signals. */ |
139 | void deselectItem(); | 140 | void deselectItem(); |
140 | /** Select item. If the argument is 0, the currently selected item gets | 141 | /** Select item. If the argument is 0, the currently selected item gets |
141 | deselected. This function emits the itemSelected(bool) signal to inform | 142 | deselected. This function emits the itemSelected(bool) signal to inform |
142 | about selection/deseelction of events. */ | 143 | about selection/deseelction of events. */ |
143 | void selectItem(KOAgendaItem *); | 144 | void selectItem(KOAgendaItem *); |
144 | void finishResize(); | 145 | void finishResize(); |
@@ -201,32 +202,37 @@ class KOAgenda : public QScrollView | |||
201 | void placeSubCells(KOAgendaItem *placeItem); | 202 | void placeSubCells(KOAgendaItem *placeItem); |
202 | 203 | ||
203 | /** Process the keyevent, including the ignored keyevents of eventwidgets. | 204 | /** Process the keyevent, including the ignored keyevents of eventwidgets. |
204 | * Implements pgup/pgdn and cursor key navigation in the view. | 205 | * Implements pgup/pgdn and cursor key navigation in the view. |
205 | */ | 206 | */ |
206 | void keyPressEvent( QKeyEvent * ); | 207 | void keyPressEvent( QKeyEvent * ); |
207 | 208 | ||
208 | void calculateWorkingHours(); | 209 | void calculateWorkingHours(); |
209 | 210 | ||
210 | virtual void contentsMousePressEvent ( QMouseEvent * ); | 211 | virtual void contentsMousePressEvent ( QMouseEvent * ); |
211 | 212 | ||
212 | private: | 213 | private: |
213 | void init(); | 214 | void init(); |
214 | void marcus_bains(); | 215 | void marcus_bains(); |
215 | bool mAllDayMode; | 216 | bool mAllDayMode; |
216 | bool blockResize; | 217 | bool blockResize; |
218 | bool mLeftMouseDown; | ||
219 | KOAgendaItem *mPopupItem; | ||
220 | QTimer* mPopupTimer; | ||
221 | int mPopupKind; | ||
222 | QPoint mPopupPos; | ||
217 | QTimer mResizeTimer; | 223 | QTimer mResizeTimer; |
218 | double mContentPosition; | 224 | double mContentPosition; |
219 | 225 | ||
220 | // Width and height of agenda cells | 226 | // Width and height of agenda cells |
221 | int mGridSpacingX; | 227 | int mGridSpacingX; |
222 | int mGridSpacingY; | 228 | int mGridSpacingY; |
223 | 229 | ||
224 | // size of border, where mouse action will resize the KOAgendaItem | 230 | // size of border, where mouse action will resize the KOAgendaItem |
225 | int mResizeBorderWidth; | 231 | int mResizeBorderWidth; |
226 | 232 | ||
227 | // size of border, where mouse mve will cause a scroll of the agenda | 233 | // size of border, where mouse mve will cause a scroll of the agenda |
228 | int mScrollBorderWidth; | 234 | int mScrollBorderWidth; |
229 | int mScrollDelay; | 235 | int mScrollDelay; |
230 | int mScrollOffset; | 236 | int mScrollOffset; |
231 | 237 | ||
232 | QTimer mScrollUpTimer; | 238 | QTimer mScrollUpTimer; |