author | zautrix <zautrix> | 2005-01-29 17:41:47 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-01-29 17:41:47 (UTC) |
commit | 078f8bb7d4eca69b799d79ac39d098e1752778a8 (patch) (unidiff) | |
tree | 1cc29a057b3954149a5c007c2de4ba1eedde9ecc | |
parent | 41baa2e15a1ec5e14750297e0a21020c9e53d953 (diff) | |
download | kdepimpi-078f8bb7d4eca69b799d79ac39d098e1752778a8.zip kdepimpi-078f8bb7d4eca69b799d79ac39d098e1752778a8.tar.gz kdepimpi-078f8bb7d4eca69b799d79ac39d098e1752778a8.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 7 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 2 | ||||
-rw-r--r-- | korganizer/koagenda.cpp | 2 | ||||
-rw-r--r-- | korganizer/kotodoeditor.cpp | 5 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 62 | ||||
-rw-r--r-- | korganizer/kotodoview.h | 7 |
6 files changed, 80 insertions, 5 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 8572bf9..0538511 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1191,15 +1191,22 @@ | |||
1191 | { "Day before yesterday","Vorgestern" }, | 1191 | { "Day before yesterday","Vorgestern" }, |
1192 | { "Size %1","Größe %1" }, | 1192 | { "Size %1","Größe %1" }, |
1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1194 | { " (%1 y.)"," (%1 J.)" }, | 1194 | { " (%1 y.)"," (%1 J.)" }, |
1195 | { "Allday:","Ganztägig:" }, | 1195 | { "Allday:","Ganztägig:" }, |
1196 | { "compl.todos","erled.Todos" }, | 1196 | { "compl.todos","erled.Todos" }, |
1197 | { "Day view","Tagesansicht" }, | 1197 | { "Day view","Tagesansicht" }, |
1198 | { "Next days","Nächste Tage" }, | 1198 | { "Next days","Nächste Tage" }, |
1199 | { "Next week","Nächste Woche" }, | 1199 | { "Next week","Nächste Woche" }, |
1200 | { "Next two weeks","Nächste zwei Wochen" }, | 1200 | { "Next two weeks","Nächste zwei Wochen" }, |
1201 | { "Next month","Nächster Monat" }, | 1201 | { "Next month","Nächster Monat" }, |
1202 | { "Journal view","Journal" }, | 1202 | { "Journal view","Journal" }, |
1203 | { "Display all opened","Zeige alle geöffnet" }, | ||
1204 | { "Display all closed","Zeige alle geschlossen" }, | ||
1205 | { "Display all flat","Zeige alle flach" }, | ||
1206 | { "","" }, | ||
1207 | { "","" }, | ||
1208 | { "","" }, | ||
1209 | { "","" }, | ||
1203 | { "","" }, | 1210 | { "","" }, |
1204 | { "","" }, | 1211 | { "","" }, |
1205 | { "","" }, | 1212 | { "","" }, |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index e7b6755..0c39590 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -2707,25 +2707,25 @@ void CalendarView::newTodo() | |||
2707 | } | 2707 | } |
2708 | 2708 | ||
2709 | void CalendarView::newSubTodo() | 2709 | void CalendarView::newSubTodo() |
2710 | { | 2710 | { |
2711 | Todo *todo = selectedTodo(); | 2711 | Todo *todo = selectedTodo(); |
2712 | if ( todo ) newSubTodo( todo ); | 2712 | if ( todo ) newSubTodo( todo ); |
2713 | } | 2713 | } |
2714 | 2714 | ||
2715 | void CalendarView::newSubTodo(Todo *parentEvent) | 2715 | void CalendarView::newSubTodo(Todo *parentEvent) |
2716 | { | 2716 | { |
2717 | 2717 | ||
2718 | showTodoEditor(); | 2718 | showTodoEditor(); |
2719 | mTodoEditor->newTodo(QDateTime::currentDateTime().addDays(7),parentEvent,true); | 2719 | mTodoEditor->newTodo(QDateTime(),parentEvent,true); |
2720 | } | 2720 | } |
2721 | 2721 | ||
2722 | void CalendarView::newFloatingEvent() | 2722 | void CalendarView::newFloatingEvent() |
2723 | { | 2723 | { |
2724 | DateList tmpList = mNavigator->selectedDates(); | 2724 | DateList tmpList = mNavigator->selectedDates(); |
2725 | QDate date = tmpList.first(); | 2725 | QDate date = tmpList.first(); |
2726 | 2726 | ||
2727 | newEvent( QDateTime( date, QTime( 12, 0, 0 ) ), | 2727 | newEvent( QDateTime( date, QTime( 12, 0, 0 ) ), |
2728 | QDateTime( date, QTime( 12, 0, 0 ) ), true ); | 2728 | QDateTime( date, QTime( 12, 0, 0 ) ), true ); |
2729 | } | 2729 | } |
2730 | 2730 | ||
2731 | 2731 | ||
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index 0eeacb3..002234d 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -429,25 +429,25 @@ bool KOAgenda::eventFilter_mouse(QObject *object, QMouseEvent *me) | |||
429 | startItemAction(viewportPos); | 429 | startItemAction(viewportPos); |
430 | startX = viewportPos.x(); | 430 | startX = viewportPos.x(); |
431 | startY = viewportPos.y(); | 431 | startY = viewportPos.y(); |
432 | block = true; | 432 | block = true; |
433 | } | 433 | } |
434 | } | 434 | } |
435 | } | 435 | } |
436 | } else { | 436 | } else { |
437 | selectItem(0); | 437 | selectItem(0); |
438 | mActionItem = 0; | 438 | mActionItem = 0; |
439 | if (me->button() == RightButton ) { | 439 | if (me->button() == RightButton ) { |
440 | blockNewEvent = true; | 440 | blockNewEvent = true; |
441 | qDebug("right "); | 441 | //qDebug("right "); |
442 | int x,y; | 442 | int x,y; |
443 | viewportToContents(viewportPos.x(),viewportPos.y(),x,y); | 443 | viewportToContents(viewportPos.x(),viewportPos.y(),x,y); |
444 | int gx,gy; | 444 | int gx,gy; |
445 | contentsToGrid(x,y,gx,gy); | 445 | contentsToGrid(x,y,gx,gy); |
446 | mStartCellX = gx; | 446 | mStartCellX = gx; |
447 | mStartCellY = gy; | 447 | mStartCellY = gy; |
448 | mCurrentCellX = gx; | 448 | mCurrentCellX = gx; |
449 | mCurrentCellY = gy; | 449 | mCurrentCellY = gy; |
450 | mNewItemPopup->popup( viewport()->mapToGlobal( me->pos() ) ); | 450 | mNewItemPopup->popup( viewport()->mapToGlobal( me->pos() ) ); |
451 | 451 | ||
452 | } else { | 452 | } else { |
453 | blockNewEvent = false; | 453 | blockNewEvent = false; |
diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp index abeb068..16c19a4 100644 --- a/korganizer/kotodoeditor.cpp +++ b/korganizer/kotodoeditor.cpp | |||
@@ -264,26 +264,29 @@ void KOTodoEditor::deleteTodo() | |||
264 | } else { | 264 | } else { |
265 | reject(); | 265 | reject(); |
266 | } | 266 | } |
267 | } | 267 | } |
268 | 268 | ||
269 | void KOTodoEditor::setDefaults(QDateTime due,Todo *relatedEvent,bool allDay) | 269 | void KOTodoEditor::setDefaults(QDateTime due,Todo *relatedEvent,bool allDay) |
270 | { | 270 | { |
271 | mRelatedTodo = relatedEvent; | 271 | mRelatedTodo = relatedEvent; |
272 | 272 | ||
273 | mGeneral->setDefaults(due,allDay); | 273 | mGeneral->setDefaults(due,allDay); |
274 | mDetails->setDefaults(); | 274 | mDetails->setDefaults(); |
275 | showPage( 0 ); | 275 | showPage( 0 ); |
276 | if ( mRelatedTodo ) | 276 | if ( mRelatedTodo ) { |
277 | mGeneral->setCategories (mRelatedTodo->categoriesStr ()); | 277 | mGeneral->setCategories (mRelatedTodo->categoriesStr ()); |
278 | mGeneral->setSecrecy (mRelatedTodo->secrecy ()); | ||
279 | |||
280 | } | ||
278 | mGeneral->setFocusOn( 2 ); | 281 | mGeneral->setFocusOn( 2 ); |
279 | } | 282 | } |
280 | 283 | ||
281 | void KOTodoEditor::readTodo(Todo *todo) | 284 | void KOTodoEditor::readTodo(Todo *todo) |
282 | { | 285 | { |
283 | mGeneral->readTodo(todo); | 286 | mGeneral->readTodo(todo); |
284 | mDetails->readEvent(todo); | 287 | mDetails->readEvent(todo); |
285 | mRelatedTodo = 0;//todo->relatedTo(); | 288 | mRelatedTodo = 0;//todo->relatedTo(); |
286 | // categories | 289 | // categories |
287 | // mCategoryDialog->setSelected(todo->categories()); | 290 | // mCategoryDialog->setSelected(todo->categories()); |
288 | 291 | ||
289 | // We should handle read-only events here. | 292 | // We should handle read-only events here. |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 30adb06..22486ba 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -420,46 +420,55 @@ KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | |||
420 | SLOT (cancelTodo())); | 420 | SLOT (cancelTodo())); |
421 | mItemPopupMenu->insertSeparator(); | 421 | mItemPopupMenu->insertSeparator(); |
422 | 422 | ||
423 | mItemPopupMenu->insertItem( i18n("New Todo..."), this, | 423 | mItemPopupMenu->insertItem( i18n("New Todo..."), this, |
424 | SLOT (newTodo())); | 424 | SLOT (newTodo())); |
425 | mItemPopupMenu->insertItem(i18n("New Sub-Todo..."), this, | 425 | mItemPopupMenu->insertItem(i18n("New Sub-Todo..."), this, |
426 | SLOT (newSubTodo())); | 426 | SLOT (newSubTodo())); |
427 | mItemPopupMenu->insertItem(i18n("Unparent Todo"), this, | 427 | mItemPopupMenu->insertItem(i18n("Unparent Todo"), this, |
428 | SLOT (unparentTodo()),0,21); | 428 | SLOT (unparentTodo()),0,21); |
429 | mItemPopupMenu->insertItem(i18n("Reparent Todo"), this, | 429 | mItemPopupMenu->insertItem(i18n("Reparent Todo"), this, |
430 | SLOT (reparentTodo()),0,22); | 430 | SLOT (reparentTodo()),0,22); |
431 | mItemPopupMenu->insertSeparator(); | 431 | mItemPopupMenu->insertSeparator(); |
432 | #if 0 | ||
432 | mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed"), | 433 | mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed"), |
433 | this, SLOT( purgeCompleted() ) ); | 434 | this, SLOT( purgeCompleted() ) ); |
434 | mItemPopupMenu->insertItem(i18n("toggle completed To-Dos","Show Completed"), | 435 | mItemPopupMenu->insertItem(i18n("toggle completed To-Dos","Show Completed"), |
435 | this, SLOT( toggleCompleted() ),0, 33 ); | 436 | this, SLOT( toggleCompleted() ),0, 33 ); |
436 | mItemPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), | 437 | mItemPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), |
437 | this, SLOT( toggleQuickTodo() ),0, 34 ); | 438 | this, SLOT( toggleQuickTodo() ),0, 34 ); |
438 | mItemPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), | 439 | mItemPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), |
439 | this, SLOT( toggleRunning() ),0, 35 ); | 440 | this, SLOT( toggleRunning() ),0, 35 ); |
440 | 441 | ||
442 | #endif | ||
441 | mPopupMenu = new QPopupMenu(this); | 443 | mPopupMenu = new QPopupMenu(this); |
442 | mPopupMenu->insertItem(SmallIconSet("todo"), i18n("New Todo..."), this, | 444 | mPopupMenu->insertItem(SmallIconSet("todo"), i18n("New Todo..."), this, |
443 | SLOT (newTodo()),0,1); | 445 | SLOT (newTodo()),0,1); |
444 | mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed"), | 446 | mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed"), |
445 | this, SLOT(purgeCompleted()),0,2); | 447 | this, SLOT(purgeCompleted()),0,2); |
446 | mPopupMenu->insertItem(i18n("Show Completed"), | 448 | mPopupMenu->insertItem(i18n("Show Completed"), |
447 | this, SLOT( toggleCompleted() ),0,3 ); | 449 | this, SLOT( toggleCompleted() ),0,3 ); |
448 | mPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), | 450 | mPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), |
449 | this, SLOT( toggleQuickTodo() ),0,4 ); | 451 | this, SLOT( toggleQuickTodo() ),0,4 ); |
450 | mPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), | 452 | mPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), |
451 | this, SLOT( toggleRunning() ),0,5 ); | 453 | this, SLOT( toggleRunning() ),0,5 ); |
454 | mPopupMenu->insertItem(i18n(" set all open","Display all opened"), | ||
455 | this, SLOT( setAllOpen() ),0,6 ); | ||
456 | mPopupMenu->insertItem(i18n(" set all close","Display all closed"), | ||
457 | this, SLOT( setAllClose() ),0,7 ); | ||
458 | mPopupMenu->insertItem(i18n(" set all flat","Display all flat"), | ||
459 | this, SLOT( setAllFlat() ),0,8 ); | ||
452 | mDocPrefs = new DocPrefs( name ); | 460 | mDocPrefs = new DocPrefs( name ); |
453 | 461 | ||
462 | mItemPopupMenu->insertItem(i18n("Todo View"),mPopupMenu ); | ||
454 | mPopupMenu->setCheckable( true ); | 463 | mPopupMenu->setCheckable( true ); |
455 | mItemPopupMenu->setCheckable( true ); | 464 | mItemPopupMenu->setCheckable( true ); |
456 | 465 | ||
457 | 466 | ||
458 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); | 467 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); |
459 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); | 468 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); |
460 | 469 | ||
461 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); | 470 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); |
462 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); | 471 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); |
463 | 472 | ||
464 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); | 473 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); |
465 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); | 474 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); |
@@ -513,24 +522,28 @@ void KOTodoView::jumpToDate () | |||
513 | // mActiveItem->todo()); | 522 | // mActiveItem->todo()); |
514 | // if ( mActiveItem->todo()->hasDueDate() ) | 523 | // if ( mActiveItem->todo()->hasDueDate() ) |
515 | // emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() ); | 524 | // emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() ); |
516 | } | 525 | } |
517 | 526 | ||
518 | void KOTodoView::updateView() | 527 | void KOTodoView::updateView() |
519 | { | 528 | { |
520 | pendingSubtodo = 0; | 529 | pendingSubtodo = 0; |
521 | if ( mBlockUpdate ) { | 530 | if ( mBlockUpdate ) { |
522 | //qDebug("blocked "); | 531 | //qDebug("blocked "); |
523 | return; | 532 | return; |
524 | } | 533 | } |
534 | if ( isFlatDisplay ) { | ||
535 | setAllFlat(); | ||
536 | return; | ||
537 | } | ||
525 | //qDebug("update "); | 538 | //qDebug("update "); |
526 | // kdDebug() << "KOTodoView::updateView()" << endl; | 539 | // kdDebug() << "KOTodoView::updateView()" << endl; |
527 | QFont fo = KOPrefs::instance()->mTodoViewFont; | 540 | QFont fo = KOPrefs::instance()->mTodoViewFont; |
528 | mTodoListView->clear(); | 541 | mTodoListView->clear(); |
529 | if ( mName == "todolistsmall" ) { | 542 | if ( mName == "todolistsmall" ) { |
530 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { | 543 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { |
531 | int ps = fo.pointSize() -2; | 544 | int ps = fo.pointSize() -2; |
532 | if ( ps > 12 ) | 545 | if ( ps > 12 ) |
533 | ps -= 2; | 546 | ps -= 2; |
534 | fo.setPointSize( ps ); | 547 | fo.setPointSize( ps ); |
535 | } | 548 | } |
536 | } | 549 | } |
@@ -988,24 +1001,71 @@ void KOTodoView::processSelectionChange() | |||
988 | void KOTodoView::modified(bool b) | 1001 | void KOTodoView::modified(bool b) |
989 | { | 1002 | { |
990 | emit isModified(b); | 1003 | emit isModified(b); |
991 | } | 1004 | } |
992 | void KOTodoView::setTodoModified( Todo* todo ) | 1005 | void KOTodoView::setTodoModified( Todo* todo ) |
993 | { | 1006 | { |
994 | todoModified( todo, KOGlobals::UNKNOWN_MODIFIED ); | 1007 | todoModified( todo, KOGlobals::UNKNOWN_MODIFIED ); |
995 | } | 1008 | } |
996 | void KOTodoView::clearSelection() | 1009 | void KOTodoView::clearSelection() |
997 | { | 1010 | { |
998 | mTodoListView->selectAll( false ); | 1011 | mTodoListView->selectAll( false ); |
999 | } | 1012 | } |
1013 | void KOTodoView::setAllOpen() | ||
1014 | { | ||
1015 | if ( isFlatDisplay ) { | ||
1016 | isFlatDisplay = false; | ||
1017 | mPopupMenu->setItemChecked( 8,false ); | ||
1018 | updateView(); | ||
1019 | } | ||
1020 | setOpen(mTodoListView->firstChild(), true); | ||
1021 | } | ||
1022 | void KOTodoView::setAllClose() | ||
1023 | { | ||
1024 | if ( isFlatDisplay ) { | ||
1025 | isFlatDisplay = false; | ||
1026 | mPopupMenu->setItemChecked( 8,false ); | ||
1027 | updateView(); | ||
1028 | } | ||
1029 | setOpen(mTodoListView->firstChild(), false); | ||
1030 | } | ||
1031 | void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) | ||
1032 | { | ||
1033 | |||
1034 | while ( item ) { | ||
1035 | setOpen( item->firstChild(), setOpenI ); | ||
1036 | item->setOpen( setOpenI ); | ||
1037 | item = item->nextSibling(); | ||
1038 | } | ||
1039 | } | ||
1040 | |||
1041 | void KOTodoView::setAllFlat() | ||
1042 | { | ||
1043 | pendingSubtodo = 0; | ||
1044 | if ( mBlockUpdate ) { | ||
1045 | return; | ||
1046 | } | ||
1047 | mPopupMenu->setItemChecked( 8,true ); | ||
1048 | isFlatDisplay = true; | ||
1049 | QPtrList<Todo> todoList = calendar()->todos(); | ||
1050 | mTodoMap.clear(); | ||
1051 | mTodoListView->clear(); | ||
1052 | Todo *todo; | ||
1053 | for(todo = todoList.first(); todo; todo = todoList.next()) { | ||
1054 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); | ||
1055 | mTodoMap.insert(todo,todoItem); | ||
1056 | } | ||
1057 | mTodoListView->setFocus(); | ||
1058 | processSelectionChange(); | ||
1059 | } | ||
1000 | 1060 | ||
1001 | void KOTodoView::purgeCompleted() | 1061 | void KOTodoView::purgeCompleted() |
1002 | { | 1062 | { |
1003 | emit purgeCompletedSignal(); | 1063 | emit purgeCompletedSignal(); |
1004 | } | 1064 | } |
1005 | void KOTodoView::toggleQuickTodo() | 1065 | void KOTodoView::toggleQuickTodo() |
1006 | { | 1066 | { |
1007 | if ( mQuickAdd->isVisible() ) { | 1067 | if ( mQuickAdd->isVisible() ) { |
1008 | mQuickAdd->hide(); | 1068 | mQuickAdd->hide(); |
1009 | KOPrefs::instance()->mEnableQuickTodo = false; | 1069 | KOPrefs::instance()->mEnableQuickTodo = false; |
1010 | } | 1070 | } |
1011 | else { | 1071 | else { |
diff --git a/korganizer/kotodoview.h b/korganizer/kotodoview.h index 5ca0362..f11518d 100644 --- a/korganizer/kotodoview.h +++ b/korganizer/kotodoview.h | |||
@@ -152,24 +152,28 @@ class KOTodoView : public KOrg::BaseView | |||
152 | void showTodo(); | 152 | void showTodo(); |
153 | void editTodo(); | 153 | void editTodo(); |
154 | void cloneTodo(); | 154 | void cloneTodo(); |
155 | void cancelTodo(); | 155 | void cancelTodo(); |
156 | void moveTodo(); | 156 | void moveTodo(); |
157 | void beamTodo(); | 157 | void beamTodo(); |
158 | void deleteTodo(); | 158 | void deleteTodo(); |
159 | 159 | ||
160 | void setNewPriority(int); | 160 | void setNewPriority(int); |
161 | void setNewPercentage(int); | 161 | void setNewPercentage(int); |
162 | void changedCategories(int); | 162 | void changedCategories(int); |
163 | 163 | ||
164 | void setAllOpen(); | ||
165 | void setAllClose(); | ||
166 | void setAllFlat(); | ||
167 | |||
164 | void purgeCompleted(); | 168 | void purgeCompleted(); |
165 | void toggleCompleted(); | 169 | void toggleCompleted(); |
166 | void toggleRunning(); | 170 | void toggleRunning(); |
167 | void toggleQuickTodo(); | 171 | void toggleQuickTodo(); |
168 | void updateTodo( Todo *, int ); | 172 | void updateTodo( Todo *, int ); |
169 | 173 | ||
170 | void itemClicked(QListViewItem *); | 174 | void itemClicked(QListViewItem *); |
171 | void itemStateChanged(QListViewItem *); | 175 | void itemStateChanged(QListViewItem *); |
172 | void modified(bool); | 176 | void modified(bool); |
173 | void itemDoubleClicked(QListViewItem *item); | 177 | void itemDoubleClicked(QListViewItem *item); |
174 | 178 | ||
175 | signals: | 179 | signals: |
@@ -201,25 +205,26 @@ class KOTodoView : public KOrg::BaseView | |||
201 | * Korganizer keeps it in memory and we need to update | 205 | * Korganizer keeps it in memory and we need to update |
202 | * 1. make KOTodoViewItem a QObject again? | 206 | * 1. make KOTodoViewItem a QObject again? |
203 | * 2. add a public method for setting one todo modified? | 207 | * 2. add a public method for setting one todo modified? |
204 | * 3. add a private method for setting a todo modified + friend here? | 208 | * 3. add a private method for setting a todo modified + friend here? |
205 | * -- zecke 2002-07-08 | 209 | * -- zecke 2002-07-08 |
206 | */ | 210 | */ |
207 | friend class KOTodoViewItem; | 211 | friend class KOTodoViewItem; |
208 | void setTodoModified( Todo* ); | 212 | void setTodoModified( Todo* ); |
209 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); | 213 | QMap<Todo *,KOTodoViewItem *>::ConstIterator insertTodoItem(Todo *todo); |
210 | void restoreItemState( QListViewItem * ); | 214 | void restoreItemState( QListViewItem * ); |
211 | 215 | ||
212 | bool checkTodo( Todo * ); | 216 | bool checkTodo( Todo * ); |
213 | 217 | bool isFlatDisplay; | |
218 | void setOpen( QListViewItem*, bool setOpen); | ||
214 | KOTodoListView *mTodoListView; | 219 | KOTodoListView *mTodoListView; |
215 | QPopupMenu *mItemPopupMenu; | 220 | QPopupMenu *mItemPopupMenu; |
216 | QPopupMenu *mPopupMenu; | 221 | QPopupMenu *mPopupMenu; |
217 | QPopupMenu *mPriorityPopupMenu; | 222 | QPopupMenu *mPriorityPopupMenu; |
218 | QPopupMenu *mPercentageCompletedPopupMenu; | 223 | QPopupMenu *mPercentageCompletedPopupMenu; |
219 | QPopupMenu *mCategoryPopupMenu; | 224 | QPopupMenu *mCategoryPopupMenu; |
220 | 225 | ||
221 | QMap<int, int> mPercentage; | 226 | QMap<int, int> mPercentage; |
222 | QMap<int, int> mPriority; | 227 | QMap<int, int> mPriority; |
223 | QMap<int, QString> mCategory; | 228 | QMap<int, QString> mCategory; |
224 | KOTodoViewItem *mActiveItem; | 229 | KOTodoViewItem *mActiveItem; |
225 | 230 | ||