-rw-r--r-- | korganizer/kotodoview.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index 39976cf..d0788a9 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -164,100 +164,100 @@ class KOTodoView : public KOrg::BaseView | |||
164 | void cloneTodo(); | 164 | void cloneTodo(); |
165 | void cancelTodo(); | 165 | void cancelTodo(); |
166 | void moveTodo(); | 166 | void moveTodo(); |
167 | void beamTodo(); | 167 | void beamTodo(); |
168 | void deleteTodo(); | 168 | void deleteTodo(); |
169 | 169 | ||
170 | void setNewPriority(int); | 170 | void setNewPriority(int); |
171 | void setNewPercentage(int); | 171 | void setNewPercentage(int); |
172 | void changedCategories(int); | 172 | void changedCategories(int); |
173 | 173 | ||
174 | void setAllOpen(); | 174 | void setAllOpen(); |
175 | void setAllClose(); | 175 | void setAllClose(); |
176 | void setAllFlat(); | 176 | void setAllFlat(); |
177 | void displayAllFlat(); | 177 | void displayAllFlat(); |
178 | 178 | ||
179 | void purgeCompleted(); | 179 | void purgeCompleted(); |
180 | void toggleCompleted(); | 180 | void toggleCompleted(); |
181 | void toggleRunning(); | 181 | void toggleRunning(); |
182 | void toggleQuickTodo(); | 182 | void toggleQuickTodo(); |
183 | void updateTodo( Todo *, int ); | 183 | void updateTodo( Todo *, int ); |
184 | 184 | ||
185 | void itemClicked(QListViewItem *); | 185 | void itemClicked(QListViewItem *); |
186 | void itemStateChanged(QListViewItem *); | 186 | void itemStateChanged(QListViewItem *); |
187 | void modified(bool); | 187 | void modified(bool); |
188 | void itemDoubleClicked(QListViewItem *item); | 188 | void itemDoubleClicked(QListViewItem *item); |
189 | 189 | ||
190 | signals: | 190 | signals: |
191 | void newTodoSignal(); | 191 | void newTodoSignal(); |
192 | void newSubTodoSignal(Todo *); | 192 | void newSubTodoSignal(Todo *); |
193 | void unparentTodoSignal(Todo *); | 193 | void unparentTodoSignal(Todo *); |
194 | void reparentTodoSignal( Todo *,Todo * ); | 194 | void reparentTodoSignal( Todo *,Todo * ); |
195 | void showTodoSignal(Todo *); | 195 | void showTodoSignal(Todo *); |
196 | 196 | ||
197 | void editTodoSignal(Todo *); | 197 | void editTodoSignal(Todo *); |
198 | void deleteTodoSignal(Todo *); | 198 | void deleteTodoSignal(Todo *); |
199 | void todoModifiedSignal (Todo *, int); | 199 | void todoModifiedSignal (Todo *, int); |
200 | 200 | ||
201 | void isModified(bool); | 201 | void isModified(bool); |
202 | void cloneTodoSignal( Incidence * ); | 202 | void cloneTodoSignal( Incidence * ); |
203 | void cancelTodoSignal( Incidence * ); | 203 | void cancelTodoSignal( Incidence * ); |
204 | void moveTodoSignal( Incidence * ); | 204 | void moveTodoSignal( Incidence * ); |
205 | void beamTodoSignal( Incidence * ); | 205 | void beamTodoSignal( Incidence * ); |
206 | void purgeCompletedSignal(); | 206 | void purgeCompletedSignal(); |
207 | 207 | ||
208 | protected slots: | 208 | protected slots: |
209 | void paintNeeded(); | 209 | void paintNeeded(); |
210 | void processSelectionChange(); | 210 | void processSelectionChange(); |
211 | void addQuickTodo(); | 211 | void addQuickTodo(); |
212 | void setTodoModified( Todo* ); | 212 | void setTodoModified( Todo* ); |
213 | void todoModified(Todo *, int ); | 213 | void todoModified(Todo *, int ); |
214 | 214 | ||
215 | private: | 215 | private: |
216 | /* | 216 | /* |
217 | * the TodoEditor approach is rather unscaling in the long | 217 | * the TodoEditor approach is rather unscaling in the long |
218 | * run. | 218 | * run. |
219 | * Korganizer keeps it in memory and we need to update | 219 | * Korganizer keeps it in memory and we need to update |
220 | * 1. make KOTodoViewItem a QObject again? | 220 | * 1. make KOTodoViewItem a QObject again? |
221 | * 2. add a public method for setting one todo modified? | 221 | * 2. add a public method for setting one todo modified? |
222 | * 3. add a private method for setting a todo modified + friend here? | 222 | * 3. add a private method for setting a todo modified + friend here? |
223 | * -- zecke 2002-07-08 | 223 | * -- zecke 2002-07-08 |
224 | */ | 224 | */ |
225 | KOTodoViewWhatsThis* mKOTodoViewWhatsThis; | 225 | KOTodoViewWhatsThis* mKOTodoViewWhatsThis; |
226 | friend class KOTodoListView; | 226 | friend class KOTodoListView; |
227 | void paintEvent(QPaintEvent * pevent); | 227 | void paintEvent(QPaintEvent * pevent); |
228 | bool mPendingUpdateBeforeRepaint; | 228 | bool mPendingUpdateBeforeRepaint; |
229 | friend class KOTodoViewItem; | 229 | friend class KOTodoViewItem; |
230 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); | 230 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); |
231 | void restoreItemState( QListViewItem * ); | 231 | void restoreItemState( QListViewItem * ); |
232 | 232 | ||
233 | bool checkTodo( Todo * ); | 233 | bool checkTodo( Todo * ); |
234 | bool isFlatDisplay; | 234 | bool isFlatDisplay; |
235 | void setOpen( QListViewItem*, bool setOpen); | 235 | void setOpen( QListViewItem*, bool setOpen); |
236 | KOTodoListView *mTodoListView; | 236 | KOTodoListView *mTodoListView; |
237 | QPopupMenu *mItemPopupMenu; | 237 | QPopupMenu *mItemPopupMenu; |
238 | QPopupMenu *mPopupMenu; | 238 | QPopupMenu *mPopupMenu; |
239 | QPopupMenu *mPriorityPopupMenu; | 239 | QPopupMenu *mPriorityPopupMenu; |
240 | QPopupMenu *mPercentageCompletedPopupMenu; | 240 | QPopupMenu *mPercentageCompletedPopupMenu; |
241 | QPopupMenu *mCategoryPopupMenu; | 241 | QPopupMenu *mCategoryPopupMenu; |
242 | 242 | ||
243 | QMap<int, int> mPercentage; | 243 | QMap<int, int> mPercentage; |
244 | QMap<int, int> mPriority; | 244 | QMap<int, int> mPriority; |
245 | QMap<int, QString> mCategory; | 245 | QMap<int, QString> mCategory; |
246 | KOTodoViewItem *mActiveItem; | 246 | KOTodoViewItem *mActiveItem; |
247 | 247 | ||
248 | QMap<Todo *,KOTodoViewItem *> mTodoMap; | 248 | QMap<Todo *,KOTodoViewItem *> mTodoMap; |
249 | QString mName; | 249 | QString mName; |
250 | 250 | ||
251 | DocPrefs *mDocPrefs; | 251 | DocPrefs *mDocPrefs; |
252 | QString mCurrentDoc; | 252 | QString mCurrentDoc; |
253 | KOQuickTodo *mQuickAdd; | 253 | KOQuickTodo *mQuickAdd; |
254 | bool mBlockUpdate; | 254 | bool mBlockUpdate; |
255 | void keyPressEvent ( QKeyEvent * ) ; | 255 | void keyPressEvent ( QKeyEvent * ) ; |
256 | KOTodoViewItem * pendingSubtodo; | 256 | KOTodoViewItem * pendingSubtodo; |
257 | DateNavigator* mNavigator; | 257 | DateNavigator* mNavigator; |
258 | void storeCurrentItem(); | 258 | void storeCurrentItem(); |
259 | void resetCurrentItem(); | 259 | void resetCurrentItem(); |
260 | Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; | 260 | Incidence * mCurItem, *mCurItemRootParent, *mCurItemParent,*mCurItemAbove; |
261 | }; | 261 | }; |
262 | 262 | ||
263 | #endif | 263 | #endif |