-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 | |||
@@ -1,20 +1,21 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.1.5 ************ | 3 | ********** VERSION 2.1.5 ************ |
4 | 4 | ||
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 | ||
12 | Fixed two more bugs in the KA/Pi CSV import dialog: | 13 | Fixed two more bugs in the KA/Pi CSV import dialog: |
13 | Made it possible to read multi-line fields and import it to the "Note" field. | 14 | Made it possible to read multi-line fields and import it to the "Note" field. |
14 | Fixed a problem in mapping custom fields, whatever a custem field is... | 15 | Fixed a problem in mapping custom fields, whatever a custem field is... |
15 | 16 | ||
16 | ********** VERSION 2.1.3 ************ | 17 | ********** VERSION 2.1.3 ************ |
17 | 18 | ||
18 | Changed the menu structure of the alarm applet: | 19 | Changed the menu structure of the alarm applet: |
19 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". | 20 | Moved "Simulate" to " Play Beeps" submenu and re-added "Todo List". |
20 | 21 | ||
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 | |||
@@ -659,25 +659,25 @@ | |||
659 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 659 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
660 | { "Choose...","Wähle..." }, | 660 | { "Choose...","Wähle..." }, |
661 | { "Use colors for application:","Setze Farben für Programm:" }, | 661 | { "Use colors for application:","Setze Farben für Programm:" }, |
662 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 662 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
663 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 663 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
664 | { "Show parent To-Do's","Zeige Ober-Todos" }, | 664 | { "Show parent To-Do's","Zeige Ober-Todos" }, |
665 | { "Show location","Zeige Orte" }, | 665 | { "Show location","Zeige Orte" }, |
666 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 666 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
667 | { "Show in every cell ","Zeige in jeder Zelle " }, | 667 | { "Show in every cell ","Zeige in jeder Zelle " }, |
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" }, |
675 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 675 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
676 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 676 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
677 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, | 677 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, |
678 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 678 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
679 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, | 679 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, |
680 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, | 680 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, |
681 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, | 681 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, |
682 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, | 682 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, |
683 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, | 683 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, |
@@ -1077,25 +1077,25 @@ | |||
1077 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1077 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1078 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, | 1078 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, |
1079 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1079 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1080 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1080 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1081 | { "Save settings","Speichere Einstellungen" }, | 1081 | { "Save settings","Speichere Einstellungen" }, |
1082 | { "Save standard","Speichere Standard" }, | 1082 | { "Save standard","Speichere Standard" }, |
1083 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1083 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1084 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1084 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1085 | { "Data storage path","Daten Speicherpfad" }, | 1085 | { "Data storage path","Daten Speicherpfad" }, |
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" }, |
1093 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1093 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1094 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1094 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1095 | { "Sound.Al.: ","Sound.Al.: " }, | 1095 | { "Sound.Al.: ","Sound.Al.: " }, |
1096 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1096 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1097 | { "Restore","Wiederherstellen" }, | 1097 | { "Restore","Wiederherstellen" }, |
1098 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1098 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1099 | { "% completed","% erledigt" }, | 1099 | { "% completed","% erledigt" }, |
1100 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1100 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1101 | { "Set complete","Setze auf erledigt" }, | 1101 | { "Set complete","Setze auf erledigt" }, |
@@ -1191,25 +1191,25 @@ | |||
1191 | { "Next two weeks","Nächste zwei Wochen" }, | 1191 | { "Next two weeks","Nächste zwei Wochen" }, |
1192 | { "This month","Dieser Monat" }, | 1192 | { "This month","Dieser Monat" }, |
1193 | { "Journal view","Journal" }, | 1193 | { "Journal view","Journal" }, |
1194 | { "Display all opened","Zeige alle geöffnet" }, | 1194 | { "Display all opened","Zeige alle geöffnet" }, |
1195 | { "Display all closed","Zeige alle geschlossen" }, | 1195 | { "Display all closed","Zeige alle geschlossen" }, |
1196 | { "Display all flat","Zeige alle flach" }, | 1196 | { "Display all flat","Zeige alle flach" }, |
1197 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1197 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1198 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1198 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1199 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1199 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
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" }, |
1207 | { "Mail to all","Mail an Alle" }, | 1207 | { "Mail to all","Mail an Alle" }, |
1208 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1208 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1209 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1209 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1210 | { " on"," am" }, | 1210 | { " on"," am" }, |
1211 | { " completed on "," erledigt am " }, | 1211 | { " completed on "," erledigt am " }, |
1212 | { "Save as Event template","Speichere als Vorlage" }, | 1212 | { "Save as Event template","Speichere als Vorlage" }, |
1213 | { "Load Event template","Lade Termin Vorlage" }, | 1213 | { "Load Event template","Lade Termin Vorlage" }, |
1214 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1214 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1215 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1215 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
@@ -1360,16 +1360,22 @@ | |||
1360 | { " days"," Tage" }, | 1360 | { " days"," Tage" }, |
1361 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, | 1361 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, |
1362 | { "Backup Failed!","Backup Problem!" }, | 1362 | { "Backup Failed!","Backup Problem!" }, |
1363 | { "Try again now","Versuche jetzt nochmal" }, | 1363 | { "Try again now","Versuche jetzt nochmal" }, |
1364 | { "Try again later","Versuche später nochmal" }, | 1364 | { "Try again later","Versuche später nochmal" }, |
1365 | { "Try again tomorrow","Versuche morgen nochmal" }, | 1365 | { "Try again tomorrow","Versuche morgen nochmal" }, |
1366 | { "Disable backup","Schalte Backup ab" }, | 1366 | { "Disable backup","Schalte Backup ab" }, |
1367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 1367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
1368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 1368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
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 | { "","" }, |
1375 | { "","" }, \ No newline at end of file | 1381 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/koagenda.cpp b/korganizer/koagenda.cpp index cdeeac5..2a2acb1 100644 --- a/korganizer/koagenda.cpp +++ b/korganizer/koagenda.cpp | |||
@@ -1575,24 +1575,26 @@ void KOAgenda::updateTodo( Todo * todo, int days, bool remove) | |||
1575 | globalFlagBlockAgendaItemUpdate = 0; | 1575 | globalFlagBlockAgendaItemUpdate = 0; |
1576 | if ( itemit != item ) | 1576 | if ( itemit != item ) |
1577 | itemit->repaintMe(); | 1577 | itemit->repaintMe(); |
1578 | globalFlagBlockAgendaItemUpdate = 1; | 1578 | globalFlagBlockAgendaItemUpdate = 1; |
1579 | itemit->repaint(); | 1579 | itemit->repaint(); |
1580 | } | 1580 | } |
1581 | blockSignals( false ); | 1581 | blockSignals( false ); |
1582 | } | 1582 | } |
1583 | if ( remove ) { | 1583 | if ( 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; |
1590 | QDateTime dt; | 1592 | QDateTime dt; |
1591 | if ( todo->hasCompletedDate() ) | 1593 | if ( todo->hasCompletedDate() ) |
1592 | dt = todo->completed(); | 1594 | dt = todo->completed(); |
1593 | else | 1595 | else |
1594 | dt = todo->dtDue(); | 1596 | dt = todo->dtDue(); |
1595 | if ( overdue ) { | 1597 | if ( overdue ) { |
1596 | currentDate = QDate::currentDate(); | 1598 | currentDate = QDate::currentDate(); |
1597 | days += todo->dtDue().date().daysTo( currentDate ); | 1599 | days += todo->dtDue().date().daysTo( currentDate ); |
1598 | } | 1600 | } |
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index b5a4199..fd9bf29 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -1227,25 +1227,25 @@ void KOAgendaView::fillAgenda() | |||
1227 | if (endY < startY) endY = startY; | 1227 | if (endY < startY) endY = startY; |
1228 | mAgenda->insertItem(event,currentDate,curCol,startY,endY); | 1228 | mAgenda->insertItem(event,currentDate,curCol,startY,endY); |
1229 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; | 1229 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; |
1230 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; | 1230 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; |
1231 | } | 1231 | } |
1232 | } | 1232 | } |
1233 | // ---------- [display Todos -------------- | 1233 | // ---------- [display Todos -------------- |
1234 | unsigned int numTodo; | 1234 | unsigned int numTodo; |
1235 | for (numTodo = 0; numTodo < todos.count(); ++numTodo) { | 1235 | for (numTodo = 0; numTodo < todos.count(); ++numTodo) { |
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 |
1243 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda; | 1243 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda; |
1244 | bool fillIn = false; | 1244 | bool fillIn = false; |
1245 | if ( todo->hasCompletedDate() && todo->completed().date() == currentDate ) | 1245 | if ( todo->hasCompletedDate() && todo->completed().date() == currentDate ) |
1246 | fillIn = true; | 1246 | fillIn = true; |
1247 | if ( ! fillIn && !todo->hasCompletedDate() ) | 1247 | if ( ! fillIn && !todo->hasCompletedDate() ) |
1248 | fillIn = ((todo->dtDue().date() == currentDate) && !overdue) || ((currentDate == today) && overdue); | 1248 | fillIn = ((todo->dtDue().date() == currentDate) && !overdue) || ((currentDate == today) && overdue); |
1249 | if ( fillIn ) { | 1249 | if ( fillIn ) { |
1250 | if ( (todo->doesFloat() || overdue ) && !todo->hasCompletedDate() ) { // Todo has no due-time set or is already overdue | 1250 | if ( (todo->doesFloat() || overdue ) && !todo->hasCompletedDate() ) { // Todo has no due-time set or is already overdue |
1251 | if ( KOPrefs::instance()->mShowTodoInAgenda ) | 1251 | if ( KOPrefs::instance()->mShowTodoInAgenda ) |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 02247c8..5f32e79 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -426,25 +426,25 @@ void KOListView::setAlarm() | |||
426 | } | 426 | } |
427 | } else { | 427 | } else { |
428 | Alarm* alarm = inc->alarms().first(); | 428 | Alarm* alarm = inc->alarms().first(); |
429 | if ( alarm ) { | 429 | if ( alarm ) { |
430 | alarm->setEnabled(false); | 430 | alarm->setEnabled(false); |
431 | alarm->setType(Alarm::Invalid); | 431 | alarm->setType(Alarm::Invalid); |
432 | } | 432 | } |
433 | } | 433 | } |
434 | ListItemVisitor v(item, mStartDate ); | 434 | ListItemVisitor v(item, mStartDate ); |
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() ) ); |
442 | } | 442 | } |
443 | void KOListView::setCategories( bool removeOld ) | 443 | void KOListView::setCategories( bool removeOld ) |
444 | { | 444 | { |
445 | 445 | ||
446 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); | 446 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); |
447 | csd->setColorEnabled(); | 447 | csd->setColorEnabled(); |
448 | if (! csd->exec()) { | 448 | if (! csd->exec()) { |
449 | delete csd; | 449 | delete csd; |
450 | return; | 450 | return; |
diff --git a/korganizer/koprefs.cpp b/korganizer/koprefs.cpp index 34044ab..8f951ee 100644 --- a/korganizer/koprefs.cpp +++ b/korganizer/koprefs.cpp | |||
@@ -111,24 +111,25 @@ KOPrefs::KOPrefs() : | |||
111 | addItemBool("ToolBarUp",&mToolBarUp, false ); | 111 | addItemBool("ToolBarUp",&mToolBarUp, false ); |
112 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); | 112 | addItemBool("ToolBarHorV",&mToolBarHorV, true ); |
113 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); | 113 | addItemBool("ToolBarUpV",&mToolBarUpV, false ); |
114 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); | 114 | addItemBool("ToolBarHorN",&mToolBarHorN, true ); |
115 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); | 115 | addItemBool("ToolBarUpN",&mToolBarUpN, false ); |
116 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); | 116 | addItemBool("ToolBarHorF",&mToolBarHorF, true ); |
117 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); | 117 | addItemBool("ToolBarUpF",&mToolBarUpF, false ); |
118 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); | 118 | addItemBool("ToolBarMiniIcons",&mToolBarMiniIcons, false ); |
119 | addItemInt("Whats Next Days",&mWhatsNextDays,3); | 119 | addItemInt("Whats Next Days",&mWhatsNextDays,3); |
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); |
126 | addItemInt("AllDay Size",&mAllDaySize,28); | 127 | addItemInt("AllDay Size",&mAllDaySize,28); |
127 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; | 128 | QString defAlarm = KGlobal::iconLoader()->iconPath()+"koalarm.wav"; |
128 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); | 129 | addItemString("DefaultAlarmFile",&mDefaultAlarmFile,defAlarm ); |
129 | 130 | ||
130 | addItemStringList("LocationDefaults",&mLocationDefaults ); | 131 | addItemStringList("LocationDefaults",&mLocationDefaults ); |
131 | addItemStringList("EventSummary User",&mEventSummaryUser); | 132 | addItemStringList("EventSummary User",&mEventSummaryUser); |
132 | addItemStringList("TodoSummary User",&mTodoSummaryUser); | 133 | addItemStringList("TodoSummary User",&mTodoSummaryUser); |
133 | 134 | ||
134 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); | 135 | addItemBool("Enable Group Scheduling",&mEnableGroupScheduling,false); |
diff --git a/korganizer/koprefs.h b/korganizer/koprefs.h index e06df1c..864cf1b 100644 --- a/korganizer/koprefs.h +++ b/korganizer/koprefs.h | |||
@@ -210,24 +210,25 @@ class KOPrefs : public KPimPrefs | |||
210 | bool mToolBarHorV; | 210 | bool mToolBarHorV; |
211 | bool mToolBarUpV; | 211 | bool mToolBarUpV; |
212 | bool mToolBarHorN; | 212 | bool mToolBarHorN; |
213 | bool mToolBarUpN; | 213 | bool mToolBarUpN; |
214 | bool mToolBarHorF; | 214 | bool mToolBarHorF; |
215 | bool mToolBarUpF; | 215 | bool mToolBarUpF; |
216 | bool mToolBarMiniIcons; | 216 | bool mToolBarMiniIcons; |
217 | 217 | ||
218 | bool mAskForQuit; | 218 | bool mAskForQuit; |
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 | ||
225 | bool mBlockPopupMenu; | 226 | bool mBlockPopupMenu; |
226 | 227 | ||
227 | int mLastSyncTime; | 228 | int mLastSyncTime; |
228 | void setCategoryColor(QString cat,const QColor & color); | 229 | void setCategoryColor(QString cat,const QColor & color); |
229 | QColor *categoryColor(QString cat); | 230 | QColor *categoryColor(QString cat); |
230 | 231 | ||
231 | QString mArchiveFile; | 232 | QString mArchiveFile; |
232 | QString mHtmlExportFile; | 233 | QString mHtmlExportFile; |
233 | bool mHtmlWithSave; | 234 | bool mHtmlWithSave; |
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index e4bee63..c9477e3 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp | |||
@@ -707,24 +707,35 @@ void KOPrefsDialog::setupViewsTab() | |||
707 | 707 | ||
708 | dummy = | 708 | dummy = |
709 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), | 709 | addWidBool(i18n("Set agenda to DayBeginsAt on change"), |
710 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); | 710 | &(KOPrefs::instance()->mSetTimeToDayStartAt),topFrame); |
711 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 711 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
712 | 712 | ||
713 | dummy = | 713 | dummy = |
714 | addWidBool(i18n("Set agenda to current time on change"), | 714 | addWidBool(i18n("Set agenda to current time on change"), |
715 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); | 715 | &(KOPrefs::instance()->mCenterOnCurrentTime),topFrame); |
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 | ||
722 | 733 | ||
723 | 734 | ||
724 | topFrame = addPage(i18n("Month View"),0,0); | 735 | topFrame = addPage(i18n("Month View"),0,0); |
725 | // DesktopIcon("viewmag",KIcon::SizeMedium)); | 736 | // DesktopIcon("viewmag",KIcon::SizeMedium)); |
726 | 737 | ||
727 | topLayout = new QGridLayout(topFrame,5,1); | 738 | topLayout = new QGridLayout(topFrame,5,1); |
728 | topLayout->setSpacing(mSpacingHint); | 739 | topLayout->setSpacing(mSpacingHint); |
729 | topLayout->setMargin(mMarginHint); | 740 | topLayout->setMargin(mMarginHint); |
730 | ii = 0; | 741 | ii = 0; |
@@ -781,25 +792,25 @@ void KOPrefsDialog::setupViewsTab() | |||
781 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 792 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
782 | dummy = | 793 | dummy = |
783 | addWidBool(i18n("Show Sat/Sun together"), | 794 | addWidBool(i18n("Show Sat/Sun together"), |
784 | &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame); | 795 | &(KOPrefs::instance()->mMonthViewSatSunTog),topFrame); |
785 | topLayout->addWidget(dummy->checkBox(),ii++,0); | 796 | topLayout->addWidget(dummy->checkBox(),ii++,0); |
786 | 797 | ||
787 | KPrefsDialogWidBool *coloredCategoriesInMonthView = | 798 | KPrefsDialogWidBool *coloredCategoriesInMonthView = |
788 | addWidBool(i18n("Month view uses category colors"), | 799 | addWidBool(i18n("Month view uses category colors"), |
789 | &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame); | 800 | &(KOPrefs::instance()->mMonthViewUsesCategoryColor),topFrame); |
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 = |
797 | addWidBool(i18n("Month view uses day colors"), | 808 | addWidBool(i18n("Month view uses day colors"), |
798 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); | 809 | &(KOPrefs::instance()->mMonthViewUsesDayColors),topFrame); |
799 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); | 810 | topLayout->addWidget(coloredCategoriesInMonthView->checkBox(),ii++,0); |
800 | 811 | ||
801 | KPrefsDialogWidColor *holidayColor = | 812 | KPrefsDialogWidColor *holidayColor = |
802 | addWidColor(i18n("Day color odd months"), | 813 | addWidColor(i18n("Day color odd months"), |
803 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); | 814 | &(KOPrefs::instance()->mMonthViewOddColor),topFrame); |
804 | topLayout->addWidget(holidayColor->label(),ii,0); | 815 | topLayout->addWidget(holidayColor->label(),ii,0); |
805 | topLayout->addWidget(holidayColor->button(),ii++,1); | 816 | topLayout->addWidget(holidayColor->button(),ii++,1); |
@@ -834,25 +845,25 @@ void KOPrefsDialog::setupViewsTab() | |||
834 | 845 | ||
835 | QHBox *prioBox = new QHBox(topFrame); | 846 | QHBox *prioBox = new QHBox(topFrame); |
836 | // intervalBox->setSpacing(mSpacingHint); | 847 | // intervalBox->setSpacing(mSpacingHint); |
837 | topLayout->addWidget(prioBox,ii++,0); | 848 | topLayout->addWidget(prioBox,ii++,0); |
838 | 849 | ||
839 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); | 850 | QLabel *prioLabel = new QLabel(i18n("Number of max.displayed todo prios:"), prioBox); |
840 | mPrioSpin = new QSpinBox(0,5,1,prioBox); | 851 | mPrioSpin = new QSpinBox(0,5,1,prioBox); |
841 | if ( QApplication::desktop()->width() < 300 ) | 852 | if ( QApplication::desktop()->width() < 300 ) |
842 | mPrioSpin->setFixedWidth( 40 ); | 853 | mPrioSpin->setFixedWidth( 40 ); |
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 = |
850 | addWidBool(i18n("Show parent To-Do's"), | 861 | addWidBool(i18n("Show parent To-Do's"), |
851 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); | 862 | &(KOPrefs::instance()->mWNViewShowsParents),topFrame); |
852 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 863 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
853 | 864 | ||
854 | passwdk = | 865 | passwdk = |
855 | addWidBool(i18n("Show location"), | 866 | addWidBool(i18n("Show location"), |
856 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); | 867 | &(KOPrefs::instance()->mWNViewShowLocation),topFrame); |
857 | topLayout->addWidget(passwdk->checkBox(), ii++,0); | 868 | topLayout->addWidget(passwdk->checkBox(), ii++,0); |
858 | 869 | ||
@@ -929,28 +940,24 @@ dummy = | |||
929 | KPrefsDialogWidColor *todoOverdueColor = | 940 | KPrefsDialogWidColor *todoOverdueColor = |
930 | addWidColor(i18n("Todo overdue color:"), | 941 | addWidColor(i18n("Todo overdue color:"), |
931 | &(KOPrefs::instance()->mTodoOverdueColor),wid); | 942 | &(KOPrefs::instance()->mTodoOverdueColor),wid); |
932 | widLayout->addWidget(todoOverdueColor->label()); | 943 | widLayout->addWidget(todoOverdueColor->label()); |
933 | widLayout->addWidget(todoOverdueColor->button()); | 944 | widLayout->addWidget(todoOverdueColor->button()); |
934 | topLayout->addWidget(wid,ii++,0); | 945 | topLayout->addWidget(wid,ii++,0); |
935 | 946 | ||
936 | dummy = | 947 | dummy = |
937 | addWidBool(i18n("Colors are applied to text"), | 948 | addWidBool(i18n("Colors are applied to text"), |
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); |
948 | 955 | ||
949 | topLayout = new QGridLayout(topFrame,4,1); | 956 | topLayout = new QGridLayout(topFrame,4,1); |
950 | topLayout->setSpacing(mSpacingHint); | 957 | topLayout->setSpacing(mSpacingHint); |
951 | topLayout->setMargin(mMarginHint); | 958 | topLayout->setMargin(mMarginHint); |
952 | ii = 0; | 959 | ii = 0; |
953 | 960 | ||
954 | dummy = | 961 | dummy = |
955 | addWidBool(i18n("Show Sync Events"), | 962 | addWidBool(i18n("Show Sync Events"), |
956 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); | 963 | &(KOPrefs::instance()->mShowSyncEvents),topFrame); |