-rw-r--r-- | korganizer/kotodoview.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index ecd0ad9..161ecb0 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -210,96 +210,97 @@ class KOTodoView : public KOrg::BaseView | |||
210 | 210 | ||
211 | void setAllOpen(); | 211 | void setAllOpen(); |
212 | void setAllClose(); | 212 | void setAllClose(); |
213 | void setAllFlat(); | 213 | void setAllFlat(); |
214 | void displayAllFlat(); | 214 | void displayAllFlat(); |
215 | 215 | ||
216 | void purgeCompleted(); | 216 | void purgeCompleted(); |
217 | void toggleCompleted(); | 217 | void toggleCompleted(); |
218 | void toggleRunning(); | 218 | void toggleRunning(); |
219 | void toggleQuickTodo(); | 219 | void toggleQuickTodo(); |
220 | void updateTodo( Todo *, int ); | 220 | void updateTodo( Todo *, int ); |
221 | 221 | ||
222 | void itemClicked(QListViewItem *); | 222 | void itemClicked(QListViewItem *); |
223 | void itemStateChanged(QListViewItem *); | 223 | void itemStateChanged(QListViewItem *); |
224 | void modified(bool); | 224 | void modified(bool); |
225 | void itemDoubleClicked(QListViewItem *item); | 225 | void itemDoubleClicked(QListViewItem *item); |
226 | void resetFocusToList(); | 226 | void resetFocusToList(); |
227 | void fillCategories (); | 227 | void fillCategories (); |
228 | void fillCal (); | 228 | void fillCal (); |
229 | void changedCal (int); | 229 | void changedCal (int); |
230 | 230 | ||
231 | signals: | 231 | signals: |
232 | void newTodoSignal(); | 232 | void newTodoSignal(); |
233 | void newSubTodoSignal(Todo *); | 233 | void newSubTodoSignal(Todo *); |
234 | void unparentTodoSignal(Todo *); | 234 | void unparentTodoSignal(Todo *); |
235 | void reparentTodoSignal( Todo *,Todo * ); | 235 | void reparentTodoSignal( Todo *,Todo * ); |
236 | void showTodoSignal(Todo *); | 236 | void showTodoSignal(Todo *); |
237 | 237 | ||
238 | void editTodoSignal(Todo *); | 238 | void editTodoSignal(Todo *); |
239 | void deleteTodoSignal(Todo *); | 239 | void deleteTodoSignal(Todo *); |
240 | void todoModifiedSignal (Todo *, int); | 240 | void todoModifiedSignal (Todo *, int); |
241 | 241 | ||
242 | void isModified(bool); | 242 | void isModified(bool); |
243 | void cloneTodoSignal( Incidence * ); | 243 | void cloneTodoSignal( Incidence * ); |
244 | void cancelTodoSignal( Incidence * ); | 244 | void cancelTodoSignal( Incidence * ); |
245 | void moveTodoSignal( Incidence * ); | 245 | void moveTodoSignal( Incidence * ); |
246 | void beamTodoSignal( Incidence * ); | 246 | void beamTodoSignal( Incidence * ); |
247 | void purgeCompletedSignal(); | 247 | void purgeCompletedSignal(); |
248 | 248 | ||
249 | protected slots: | 249 | protected slots: |
250 | void toggleRunningItem(); | 250 | void toggleRunningItem(); |
251 | void paintNeeded(); | 251 | void paintNeeded(); |
252 | void processSelectionChange(); | 252 | void processSelectionChange(); |
253 | void addQuickTodo(); | 253 | void addQuickTodo(); |
254 | void setTodoModified( Todo* ); | 254 | void setTodoModified( Todo* ); |
255 | void todoModified(Todo *, int ); | 255 | void todoModified(Todo *, int ); |
256 | 256 | ||
257 | private: | 257 | private: |
258 | bool mIsActiveWindow; | ||
258 | void addQuickTodoPar( Todo * parentTodo); | 259 | void addQuickTodoPar( Todo * parentTodo); |
259 | /* | 260 | /* |
260 | * the TodoEditor approach is rather unscaling in the long | 261 | * the TodoEditor approach is rather unscaling in the long |
261 | * run. | 262 | * run. |
262 | * Korganizer keeps it in memory and we need to update | 263 | * Korganizer keeps it in memory and we need to update |
263 | * 1. make KOTodoViewItem a QObject again? | 264 | * 1. make KOTodoViewItem a QObject again? |
264 | * 2. add a public method for setting one todo modified? | 265 | * 2. add a public method for setting one todo modified? |
265 | * 3. add a private method for setting a todo modified + friend here? | 266 | * 3. add a private method for setting a todo modified + friend here? |
266 | * -- zecke 2002-07-08 | 267 | * -- zecke 2002-07-08 |
267 | */ | 268 | */ |
268 | KOTodoViewWhatsThis* mKOTodoViewWhatsThis; | 269 | KOTodoViewWhatsThis* mKOTodoViewWhatsThis; |
269 | friend class KOTodoListView; | 270 | friend class KOTodoListView; |
270 | void paintEvent(QPaintEvent * pevent); | 271 | void paintEvent(QPaintEvent * pevent); |
271 | bool mPendingUpdateBeforeRepaint; | 272 | bool mPendingUpdateBeforeRepaint; |
272 | friend class KOTodoViewItem; | 273 | friend class KOTodoViewItem; |
273 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); | 274 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); |
274 | void restoreItemState( QListViewItem * ); | 275 | void restoreItemState( QListViewItem * ); |
275 | 276 | ||
276 | bool checkTodo( Todo * ); | 277 | bool checkTodo( Todo * ); |
277 | bool isFlatDisplay; | 278 | bool isFlatDisplay; |
278 | void setOpen( QListViewItem*, bool setOpen); | 279 | void setOpen( QListViewItem*, bool setOpen); |
279 | KOTodoListView *mTodoListView; | 280 | KOTodoListView *mTodoListView; |
280 | QPopupMenu *mItemPopupMenu; | 281 | QPopupMenu *mItemPopupMenu; |
281 | QPopupMenu *mPopupMenu; | 282 | QPopupMenu *mPopupMenu; |
282 | QPopupMenu *mPriorityPopupMenu; | 283 | QPopupMenu *mPriorityPopupMenu; |
283 | QPopupMenu *mPercentageCompletedPopupMenu; | 284 | QPopupMenu *mPercentageCompletedPopupMenu; |
284 | QPopupMenu *mCategoryPopupMenu; | 285 | QPopupMenu *mCategoryPopupMenu; |
285 | QPopupMenu *mCalPopupMenu; | 286 | QPopupMenu *mCalPopupMenu; |
286 | 287 | ||
287 | QMap<int, int> mPercentage; | 288 | QMap<int, int> mPercentage; |
288 | QMap<int, int> mPriority; | 289 | QMap<int, int> mPriority; |
289 | QMap<int, QString> mCategory; | 290 | QMap<int, QString> mCategory; |
290 | KOTodoViewItem *mActiveItem; | 291 | KOTodoViewItem *mActiveItem; |
291 | 292 | ||
292 | QMap<Todo *,KOTodoViewItem *> mTodoMap; | 293 | QMap<Todo *,KOTodoViewItem *> mTodoMap; |
293 | QString mName; | 294 | QString mName; |
294 | QWidget* mQuickBar; | 295 | QWidget* mQuickBar; |
295 | 296 | ||
296 | DocPrefs *mDocPrefs; | 297 | DocPrefs *mDocPrefs; |
297 | QString mCurrentDoc; | 298 | QString mCurrentDoc; |
298 | KOQuickTodo *mQuickAdd; | 299 | KOQuickTodo *mQuickAdd; |
299 | bool mBlockUpdate; | 300 | bool mBlockUpdate; |
300 | void keyPressEvent ( QKeyEvent * ) ; | 301 | void keyPressEvent ( QKeyEvent * ) ; |
301 | KOTodoViewItem * pendingSubtodo; | 302 | KOTodoViewItem * pendingSubtodo; |
302 | DateNavigator* mNavigator; | 303 | DateNavigator* mNavigator; |
303 | void storeCurrentItem(); | 304 | void storeCurrentItem(); |
304 | void resetCurrentItem(); | 305 | void resetCurrentItem(); |
305 | Incidence * mCurItem, *mCurItemRootParent, *mCurItemParent,*mCurItemAbove; | 306 | Incidence * mCurItem, *mCurItemRootParent, *mCurItemParent,*mCurItemAbove; |