author | zautrix <zautrix> | 2005-06-03 12:55:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-03 12:55:27 (UTC) |
commit | f0554322b2f27e1fa60dc79a5d76ef0741bf3423 (patch) (unidiff) | |
tree | fa49feb527b57939d78e5ac786dfcbedd36f26ea | |
parent | dd80f5bb6eee2a924748b7d0acfb4fb892f58b86 (diff) | |
download | kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.zip kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.gz kdepimpi-f0554322b2f27e1fa60dc79a5d76ef0741bf3423.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 12 | ||||
-rw-r--r-- | korganizer/koagenda.cpp | 2 | ||||
-rw-r--r-- | korganizer/koagendaview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kolistview.cpp | 2 | ||||
-rw-r--r-- | korganizer/koprefs.cpp | 1 | ||||
-rw-r--r-- | korganizer/koprefs.h | 1 | ||||
-rw-r--r-- | korganizer/koprefsdialog.cpp | 19 |
8 files changed, 30 insertions, 12 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 05cffbf..3532084 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -5,7 +5,8 @@ Info about the changes in new versions of KDE-Pim/Pi | |||
5 | This is the new stable version. | 5 | This is the new stable version. |
6 | Bugfix: | 6 | Bugfix: |
7 | Fixed a problem with agenda popup on the desktop in KO/Pi. | 7 | Fixed a problem with agenda popup on the desktop in KO/Pi. |
8 | Fixed a crash when reloading file, e.g. after a passive pi-sync operation. | 8 | Fixed a crash when reloading file, e.g. after a passive pi-sync synchronization. |
9 | Added config option to not display completed todos in agenda view. | ||
9 | 10 | ||
10 | ********** VERSION 2.1.4 ************ | 11 | ********** VERSION 2.1.4 ************ |
11 | 12 | ||
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 2cb0132..41868d9 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -668,7 +668,7 @@ | |||
668 | { "short month","kurzen Monat" }, | 668 | { "short month","kurzen Monat" }, |
669 | { "icons","Icons" }, | 669 | { "icons","Icons" }, |
670 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 670 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
671 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, | 671 | { "Category colors are applied to text","Kategorie Farben färben Text" }, |
672 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 672 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
673 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 673 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
674 | { "Day color even months","Tagesfarbe gerade Monate" }, | 674 | { "Day color even months","Tagesfarbe gerade Monate" }, |
@@ -1086,7 +1086,7 @@ | |||
1086 | { "Language","Sprache" }, | 1086 | { "Language","Sprache" }, |
1087 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1087 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1088 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1088 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1089 | { "Show events, that are done","Zeige abgelaufene Termine" }, | 1089 | { "Show events that are done","Zeige abgelaufene Termine" }, |
1090 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1090 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1091 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1091 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1092 | { "KO/Pi","KO/Pi" }, | 1092 | { "KO/Pi","KO/Pi" }, |
@@ -1200,7 +1200,7 @@ | |||
1200 | { "Select Week","Wähle Woche" }, | 1200 | { "Select Week","Wähle Woche" }, |
1201 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1201 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1202 | { "Set Alarm!","Setze Alarm!" }, | 1202 | { "Set Alarm!","Setze Alarm!" }, |
1203 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1203 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, |
1204 | { " and "," und " }, | 1204 | { " and "," und " }, |
1205 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1205 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1206 | { "Mail to selected","Mail an Ausgewählte" }, | 1206 | { "Mail to selected","Mail an Ausgewählte" }, |
@@ -1369,6 +1369,12 @@ | |||
1369 | { "Choose action","Wähle Aktion" }, | 1369 | { "Choose action","Wähle Aktion" }, |
1370 | { "Comment for todo:","Kommentar zum Todo:" }, | 1370 | { "Comment for todo:","Kommentar zum Todo:" }, |
1371 | { "Stop+note","Stop+Notiz" }, | 1371 | { "Stop+note","Stop+Notiz" }, |
1372 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, | ||
1373 | { "","" }, | ||
1374 | { "","" }, | ||
1375 | { "","" }, | ||
1376 | { "","" }, | ||
1377 | { "","" }, | ||
1372 | { "","" }, | 1378 | { "","" }, |
1373 | { "","" }, | 1379 | { "","" }, |
1374 | { "","" }, | 1380 | { "","" }, |
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index cdeeac5..2a2acb1 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -1584,6 +1584,8 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove) | |||
1584 | //qDebug("remove****************************************** "); | 1584 | //qDebug("remove****************************************** "); |
1585 | return; | 1585 | return; |
1586 | } | 1586 | } |
1587 | if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) | ||
1588 | return; | ||
1587 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); | 1589 | //qDebug("updateTodo+++++++++++++++++++++++++++++++++++++ "); |
1588 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < QDate::currentDate())&& ( KOPrefs::instance()->mShowTodoInAgenda ); | 1590 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < QDate::currentDate())&& ( KOPrefs::instance()->mShowTodoInAgenda ); |
1589 | QDate currentDate; | 1591 | QDate currentDate; |
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b5a4199..fd9bf29 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -1236,7 +1236,7 @@ void KOAgendaView::fillAgenda() | |||
1236 | Todo *todo = todos.at(numTodo); | 1236 | Todo *todo = todos.at(numTodo); |
1237 | 1237 | ||
1238 | if ( ! todo->hasDueDate() && !todo->hasCompletedDate()) continue; // todo shall not be displayed if it has no date | 1238 | if ( ! todo->hasDueDate() && !todo->hasCompletedDate()) continue; // todo shall not be displayed if it has no date |
1239 | 1239 | if ( todo->hasCompletedDate() && !KOPrefs::instance()->mShowCompletedTodoInAgenda ) continue; | |
1240 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. | 1240 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. |
1241 | // Already completed items can be displayed on their original due date | 1241 | // Already completed items can be displayed on their original due date |
1242 | //if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda | 1242 | //if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 02247c8..5f32e79 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -435,7 +435,7 @@ void KOListView::setAlarm() | |||
435 | inc->accept(v); | 435 | inc->accept(v); |
436 | item = sel.next(); | 436 | item = sel.next(); |
437 | } | 437 | } |
438 | topLevelWidget()->setCaption( i18n("Canged alarm for %1 items").arg( count ) ); | 438 | topLevelWidget()->setCaption( i18n("Changed alarm for %1 items").arg( count ) ); |
439 | qDebug("KO: Set alarm for %d items", count); | 439 | qDebug("KO: Set alarm for %d items", count); |
440 | calendar()->reInitAlarmSettings(); | 440 | calendar()->reInitAlarmSettings(); |
441 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 441 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 34044ab..8f951ee 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -120,6 +120,7 @@ KOPrefs::KOPrefs() : | |||
120 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); | 120 | addItemInt("Whats Next Prios",&mWhatsNextPrios,1); |
121 | 121 | ||
122 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); | 122 | addItemBool("ShowTodoInAgenda",&mShowTodoInAgenda,true); |
123 | addItemBool("ShowCompletedTodoInAgenda",&mShowCompletedTodoInAgenda,true); | ||
123 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); | 124 | addItemBool("ShowTimeInAgenda",&mShowTimeInAgenda,true); |
124 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); | 125 | addItemBool("HideNonStartedTodos",&mHideNonStartedTodos,false); |
125 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); | 126 | addItemBool("ShowCompletedTodo",&mShowCompletedTodo,true); |
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index e06df1c..864cf1b 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -219,6 +219,7 @@ class KOPrefs : public KPimPrefs | |||
219 | bool mUsePassWd; | 219 | bool mUsePassWd; |
220 | bool mShowSyncEvents; | 220 | bool mShowSyncEvents; |
221 | bool mShowTodoInAgenda; | 221 | bool mShowTodoInAgenda; |
222 | bool mShowCompletedTodoInAgenda; | ||
222 | bool mShowTimeInAgenda; | 223 | bool mShowTimeInAgenda; |
223 | bool mHideNonStartedTodos; | 224 | bool mHideNonStartedTodos; |
224 | 225 | ||
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index e4bee63..c9477e3 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -716,6 +716,17 @@ void KOPrefsDialog::setupViewsTab() | |||
716 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 716 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
717 | 717 | ||
718 | 718 | ||
719 | dummy = | ||
720 | addWidBool(i18n("Allday Agenda view shows todos"), | ||
721 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); | ||
722 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
723 | |||
724 | |||
725 | |||
726 | dummy = | ||
727 | addWidBool(i18n("Agenda view shows completed todos"), | ||
728 | &(KOPrefs::instance()->mShowCompletedTodoInAgenda),topFrame); | ||
729 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
719 | 730 | ||
720 | 731 | ||
721 | 732 | ||
@@ -790,7 +801,7 @@ void KOPrefsDialog::setupViewsTab() | |||
790 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 801 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
791 | 802 | ||
792 | dummy = | 803 | dummy = |
793 | addWidBool(i18n("Categorie colors are applied to text"), | 804 | addWidBool(i18n("Category colors are applied to text"), |
794 | &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame); | 805 | &(KOPrefs::instance()->mMonthViewUsesForegroundColor),topFrame); |
795 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 806 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
796 | coloredCategoriesInMonthView = | 807 | coloredCategoriesInMonthView = |
@@ -843,7 +854,7 @@ void KOPrefsDialog::setupViewsTab() | |||
843 | 854 | ||
844 | KPrefsDialogWidBool *passwdk = | 855 | KPrefsDialogWidBool *passwdk = |
845 | 856 | ||
846 | addWidBool(i18n("Show events, that are done"), | 857 | addWidBool(i18n("Show events that are done"), |
847 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); | 858 | &(KOPrefs::instance()->mWNViewShowsPast),topFrame); |
848 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 859 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
849 | passwdk = | 860 | passwdk = |
@@ -938,10 +949,6 @@ dummy = | |||
938 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); | 949 | &(KOPrefs::instance()->mTodoViewUsesForegroundColor),topFrame); |
939 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 950 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
940 | 951 | ||
941 | dummy = | ||
942 | addWidBool(i18n("Allday Agenda view shows todos"), | ||
943 | &(KOPrefs::instance()->mShowTodoInAgenda),topFrame); | ||
944 | topLayout->addWidget(dummy->checkBox(),ii++,0); | ||
945 | 952 | ||
946 | 953 | ||
947 | topFrame = addPage(i18n("View Options"),0,0); | 954 | topFrame = addPage(i18n("View Options"),0,0); |