author | zautrix <zautrix> | 2005-06-18 09:21:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-18 09:21:06 (UTC) |
commit | 252c62bffc34f2c71002c71abea480807fa1455a (patch) (unidiff) | |
tree | ed84520d75b534bb6013fc45fdb93f1a39e6e2e0 /korganizer/kolistview.h | |
parent | 39112dfe29d2108d54d37f25dc57dcd9299f1f93 (diff) | |
download | kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.zip kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.tar.gz kdepimpi-252c62bffc34f2c71002c71abea480807fa1455a.tar.bz2 |
fixx
-rw-r--r-- | korganizer/kolistview.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/korganizer/kolistview.h b/korganizer/kolistview.h index d384af0..bcef0f0 100644 --- a/korganizer/kolistview.h +++ b/korganizer/kolistview.h | |||
@@ -234,88 +234,90 @@ class KOListViewListView : public KListView | |||
234 | void contentsMouseMoveEvent(QMouseEvent *e); | 234 | void contentsMouseMoveEvent(QMouseEvent *e); |
235 | bool mMouseDown; | 235 | bool mMouseDown; |
236 | }; | 236 | }; |
237 | 237 | ||
238 | class KOListView : public KOEventView | 238 | class KOListView : public KOEventView |
239 | { | 239 | { |
240 | Q_OBJECT | 240 | Q_OBJECT |
241 | public: | 241 | public: |
242 | KOListView(Calendar *calendar, QWidget *parent = 0, | 242 | KOListView(Calendar *calendar, QWidget *parent = 0, |
243 | const char *name = 0); | 243 | const char *name = 0); |
244 | ~KOListView(); | 244 | ~KOListView(); |
245 | 245 | ||
246 | virtual int maxDatesHint(); | 246 | virtual int maxDatesHint(); |
247 | virtual int currentDateCount(); | 247 | virtual int currentDateCount(); |
248 | virtual QPtrList<Incidence> selectedIncidences(); | 248 | virtual QPtrList<Incidence> selectedIncidences(); |
249 | virtual DateList selectedDates(); | 249 | virtual DateList selectedDates(); |
250 | 250 | ||
251 | void showDates(bool show); | 251 | void showDates(bool show); |
252 | Incidence* currentItem(); | 252 | Incidence* currentItem(); |
253 | void addTodos(QPtrList<Todo> eventList); | 253 | void addTodos(QPtrList<Todo> eventList); |
254 | void addJournals(QPtrList<Journal> eventList); | 254 | void addJournals(QPtrList<Journal> eventList); |
255 | virtual void printPreview(CalPrinter *calPrinter, | 255 | virtual void printPreview(CalPrinter *calPrinter, |
256 | const QDate &, const QDate &); | 256 | const QDate &, const QDate &); |
257 | 257 | ||
258 | void readSettings(KConfig *config, QString setting = "KOListView Layout"); | 258 | void readSettings(KConfig *config, QString setting = "KOListView Layout"); |
259 | void writeSettings(KConfig *config, QString setting = "KOListView Layout"); | 259 | void writeSettings(KConfig *config, QString setting = "KOListView Layout"); |
260 | void updateList(); | 260 | void updateList(); |
261 | void clearList(); | 261 | void clearList(); |
262 | void setStartDate(const QDate &start); | 262 | void setStartDate(const QDate &start); |
263 | int count(); | 263 | int count(); |
264 | QString getWhatsThisText(QPoint p); | 264 | QString getWhatsThisText(QPoint p); |
265 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); | 265 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents = true, bool includeTodos = true , bool includeJournals = true, bool onlyDueTodos = false ); |
266 | void showCompletedTodos(); | ||
266 | signals: | 267 | signals: |
267 | void signalNewEvent(); | 268 | void signalNewEvent(); |
268 | void beamIncidenceList(QPtrList<Incidence>); | 269 | void beamIncidenceList(QPtrList<Incidence>); |
269 | 270 | ||
270 | public slots: | 271 | public slots: |
271 | void hideAll(); | 272 | void hideAll(); |
272 | void printList(); | 273 | void printList(); |
273 | void resetFocus(); | 274 | void resetFocus(); |
274 | virtual void updateView(); | 275 | virtual void updateView(); |
275 | virtual void showDates(const QDate &start, const QDate &end); | 276 | virtual void showDates(const QDate &start, const QDate &end); |
276 | virtual void showEvents(QPtrList<Event> eventList); | 277 | virtual void showEvents(QPtrList<Event> eventList); |
277 | void clearSelection(); | 278 | void clearSelection(); |
278 | void allSelection(); | 279 | void allSelection(); |
279 | 280 | ||
280 | void clear(); | 281 | void clear(); |
281 | void beamDone( Ir *ir ); | 282 | void beamDone( Ir *ir ); |
282 | void showDates(); | 283 | void showDates(); |
283 | void hideDates(); | 284 | void hideDates(); |
284 | void deleteAll(); | 285 | void deleteAll(); |
285 | void saveToFile(); | 286 | void saveToFile(); |
286 | void saveToFileVCS(); | 287 | void saveToFileVCS(); |
287 | void saveDescriptionToFile(); | 288 | void saveDescriptionToFile(); |
288 | void beamSelected(); | 289 | void beamSelected(); |
289 | void updateConfig(); | 290 | void updateConfig(); |
290 | void addCat(); | 291 | void addCat(); |
291 | void setCat(); | 292 | void setCat(); |
292 | void setAlarm(); | 293 | void setAlarm(); |
293 | void setCategories( bool removeOld ); | 294 | void setCategories( bool removeOld ); |
294 | void changeEventDisplay(Event *, int); | 295 | void changeEventDisplay(Event *, int); |
295 | 296 | ||
296 | void defaultItemAction(QListViewItem *item); | 297 | void defaultItemAction(QListViewItem *item); |
297 | void popupMenu(QListViewItem *item,const QPoint &,int); | 298 | void popupMenu(QListViewItem *item,const QPoint &,int); |
298 | void setCalendar( int c ); | 299 | void setCalendar( int c ); |
299 | void populateCalPopup(); | 300 | void populateCalPopup(); |
300 | 301 | ||
301 | protected slots: | 302 | protected slots: |
302 | void processSelectionChange(QListViewItem *); | 303 | void processSelectionChange(QListViewItem *); |
303 | 304 | ||
304 | protected: | 305 | protected: |
305 | void writeToFile( bool iCal ); | 306 | void writeToFile( bool iCal ); |
306 | void addEvents(QPtrList<Event> eventList); | 307 | void addEvents(QPtrList<Event> eventList); |
307 | void addIncidence(Incidence *); | 308 | void addIncidence(Incidence *); |
308 | KOListViewItem *getItemForEvent(Incidence *event); | 309 | KOListViewItem *getItemForEvent(Incidence *event); |
309 | 310 | ||
310 | private: | 311 | private: |
312 | bool mForceShowCompletedTodos; | ||
311 | QPopupMenu* mCalPopup; | 313 | QPopupMenu* mCalPopup; |
312 | KOListViewWhatsThis *mKOListViewWhatsThis; | 314 | KOListViewWhatsThis *mKOListViewWhatsThis; |
313 | KOListViewListView *mListView; | 315 | KOListViewListView *mListView; |
314 | KOEventPopupMenu *mPopupMenu; | 316 | KOEventPopupMenu *mPopupMenu; |
315 | KOListViewItem *mActiveItem; | 317 | KOListViewItem *mActiveItem; |
316 | QDict<Incidence> mUidDict; | 318 | QDict<Incidence> mUidDict; |
317 | QDate mStartDate; | 319 | QDate mStartDate; |
318 | void keyPressEvent ( QKeyEvent * ) ; | 320 | void keyPressEvent ( QKeyEvent * ) ; |
319 | }; | 321 | }; |
320 | 322 | ||
321 | #endif | 323 | #endif |