-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 2 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 15 |
2 files changed, 12 insertions, 5 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index f22c177..6ddfc5f 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1051,391 +1051,391 @@ | |||
1051 | { "Januar","Januar" }, | 1051 | { "Januar","Januar" }, |
1052 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1052 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1053 | { "No Filter","Kein Filter" }, | 1053 | { "No Filter","Kein Filter" }, |
1054 | { "Multiple Sync options","Multi Sync Optionen" }, | 1054 | { "Multiple Sync options","Multi Sync Optionen" }, |
1055 | { "Sync algo options","Sync Ablauf Optionen" }, | 1055 | { "Sync algo options","Sync Ablauf Optionen" }, |
1056 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1056 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1057 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1057 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1058 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1058 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1059 | { "Write back options","Optionen zum Zurückschreiben" }, | 1059 | { "Write back options","Optionen zum Zurückschreiben" }, |
1060 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1060 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1061 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1061 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1062 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1062 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1063 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1063 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1064 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1064 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1065 | { "Time period","Zeitspanne" }, | 1065 | { "Time period","Zeitspanne" }, |
1066 | { "From ","Von " }, | 1066 | { "From ","Von " }, |
1067 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1067 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1068 | { " weeks in the future "," Wochen in der Zukunft " }, | 1068 | { " weeks in the future "," Wochen in der Zukunft " }, |
1069 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1069 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1070 | { "Local temp file:","Lokale temp Datei:" }, | 1070 | { "Local temp file:","Lokale temp Datei:" }, |
1071 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1071 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1072 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1072 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1073 | { "Language","Sprache" }, | 1073 | { "Language","Sprache" }, |
1074 | { "Time Format","Zeit Format" }, | 1074 | { "Time Format","Zeit Format" }, |
1075 | { "Time Zone","Zeit Zone" }, | 1075 | { "Time Zone","Zeit Zone" }, |
1076 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1076 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1077 | { "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" }, | 1077 | { "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 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1078 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1079 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1079 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1080 | { "Save settings","Speichere Einstellungen" }, | 1080 | { "Save settings","Speichere Einstellungen" }, |
1081 | { "Save standard","Speichere Standard" }, | 1081 | { "Save standard","Speichere Standard" }, |
1082 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1082 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1083 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1083 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1084 | { "Data storage path","Daten Speicherpfad" }, | 1084 | { "Data storage path","Daten Speicherpfad" }, |
1085 | { "Language","Sprache" }, | 1085 | { "Language","Sprache" }, |
1086 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1086 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1087 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1087 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1088 | { "Show events that are done","Zeige abgelaufene Termine" }, | 1088 | { "Show events that are done","Zeige abgelaufene Termine" }, |
1089 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1089 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1090 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1090 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1091 | { "KO/Pi","KO/Pi" }, | 1091 | { "KO/Pi","KO/Pi" }, |
1092 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1092 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1093 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1093 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1094 | { "Sound.Al.: ","Sound.Al.: " }, | 1094 | { "Sound.Al.: ","Sound.Al.: " }, |
1095 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1095 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1096 | { "Restore","Wiederherstellen" }, | 1096 | { "Restore","Wiederherstellen" }, |
1097 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1097 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1098 | { "% completed","% erledigt" }, | 1098 | { "% completed","% erledigt" }, |
1099 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1099 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1100 | { "Set complete","Setze auf erledigt" }, | 1100 | { "Set complete","Setze auf erledigt" }, |
1101 | { "(cancelled)","(gecancelt)" }, | 1101 | { "(cancelled)","(gecancelt)" }, |
1102 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1102 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1103 | { " Local time "," Locale Zeit " }, | 1103 | { " Local time "," Locale Zeit " }, |
1104 | { "Form2","Form2" }, | 1104 | { "Form2","Form2" }, |
1105 | { "Filter enabled","Filter angeschaltet" }, | 1105 | { "Filter enabled","Filter angeschaltet" }, |
1106 | { "Edit Filters","Ändere Filter" }, | 1106 | { "Edit Filters","Ändere Filter" }, |
1107 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1107 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1108 | { "Agenda","Agenda" }, | 1108 | { "Agenda","Agenda" }, |
1109 | { " ("," (" }, | 1109 | { " ("," (" }, |
1110 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1110 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1111 | { "Print","Print" }, | 1111 | { "Print","Print" }, |
1112 | { "&Setup Printer...","Drucker &Setup..." }, | 1112 | { "&Setup Printer...","Drucker &Setup..." }, |
1113 | { "View Type","Zeige Typ" }, | 1113 | { "View Type","Zeige Typ" }, |
1114 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1114 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1115 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1115 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1116 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1116 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1117 | { "Portrait","Portrait" }, | 1117 | { "Portrait","Portrait" }, |
1118 | { "Landscape","Landschaft" }, | 1118 | { "Landscape","Landschaft" }, |
1119 | { "Print day","Drucke Tag" }, | 1119 | { "Print day","Drucke Tag" }, |
1120 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1120 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1121 | { "Date && Time Range","Datum && Zeitspanne" }, | 1121 | { "Date && Time Range","Datum && Zeitspanne" }, |
1122 | { "&End date:","&Enddatum:" }, | 1122 | { "&End date:","&Enddatum:" }, |
1123 | { "&Start date:","&Startdatum:" }, | 1123 | { "&Start date:","&Startdatum:" }, |
1124 | { "Start &time:","Startzeit:" }, | 1124 | { "Start &time:","Startzeit:" }, |
1125 | { "End ti&me:","Endzeit:" }, | 1125 | { "End ti&me:","Endzeit:" }, |
1126 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1126 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1127 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1127 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1128 | { "Alt+D","Alt+D" }, | 1128 | { "Alt+D","Alt+D" }, |
1129 | { "&Use colors","Nutze Farben" }, | 1129 | { "&Use colors","Nutze Farben" }, |
1130 | { "Alt+U","Alt+U" }, | 1130 | { "Alt+U","Alt+U" }, |
1131 | { "Print week","Drucke Woche" }, | 1131 | { "Print week","Drucke Woche" }, |
1132 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1132 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1133 | { "Use &colors","Nutze Farben" }, | 1133 | { "Use &colors","Nutze Farben" }, |
1134 | { "Type of View","Typ der Ansicht" }, | 1134 | { "Type of View","Typ der Ansicht" }, |
1135 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1135 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1136 | { "Alt+F","Alt+F" }, | 1136 | { "Alt+F","Alt+F" }, |
1137 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1137 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1138 | { "Alt+T","Alt+T" }, | 1138 | { "Alt+T","Alt+T" }, |
1139 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1139 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1140 | { "Print month","Drucke Monat" }, | 1140 | { "Print month","Drucke Monat" }, |
1141 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1141 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1142 | { "&Start month:","&Startmonat:" }, | 1142 | { "&Start month:","&Startmonat:" }, |
1143 | { "&End month:","&Endmonat:" }, | 1143 | { "&End month:","&Endmonat:" }, |
1144 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1144 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1145 | { "Print todos","Drucke Todos" }, | 1145 | { "Print todos","Drucke Todos" }, |
1146 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1146 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1147 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1147 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1148 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1148 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1149 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1149 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1150 | { "Items to Print","Zu druckende Items" }, | 1150 | { "Items to Print","Zu druckende Items" }, |
1151 | { "&From:","Von:" }, | 1151 | { "&From:","Von:" }, |
1152 | { "&To:","Bis:" }, | 1152 | { "&To:","Bis:" }, |
1153 | { "Print &all todo items","Drucke alle Todo Items" }, | 1153 | { "Print &all todo items","Drucke alle Todo Items" }, |
1154 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1154 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1155 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1155 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1156 | { "Todo List","Todo Liste" }, | 1156 | { "Todo List","Todo Liste" }, |
1157 | { "&Title:","&Titel:" }, | 1157 | { "&Title:","&Titel:" }, |
1158 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, | 1158 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, |
1159 | { "Todo list","Todo Liste" }, | 1159 | { "Todo list","Todo Liste" }, |
1160 | { "&Print...","Drucke..." }, | 1160 | { "&Print...","Drucke..." }, |
1161 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1161 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1162 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1162 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1163 | { "OK","OK" }, | 1163 | { "OK","OK" }, |
1164 | { "FilterEditor","FilterEditor" }, | 1164 | { "FilterEditor","FilterEditor" }, |
1165 | { "Include","Inclusive" }, | 1165 | { "Include","Inclusive" }, |
1166 | { "Exclude","Exclusive" }, | 1166 | { "Exclude","Exclusive" }, |
1167 | { "Edit Selection...","Editiere Auswahl" }, | 1167 | { "Edit Selection...","Editiere Auswahl" }, |
1168 | { "recurring events","wiederholende Termine" }, | 1168 | { "recurring events","wiederholende Termine" }, |
1169 | { "recurr. events","wiederh.Termine" }, | 1169 | { "recurr. events","wiederh.Termine" }, |
1170 | { "completed to-dos","erledigte Todos" }, | 1170 | { "completed to-dos","erledigte Todos" }, |
1171 | { "events","Termine" }, | 1171 | { "events","Termine" }, |
1172 | { "todos","Todos" }, | 1172 | { "todos","Todos" }, |
1173 | { "journals","Journale" }, | 1173 | { "journals","Journale" }, |
1174 | { "public","öffentl." }, | 1174 | { "public","öffentl." }, |
1175 | { "private","privat" }, | 1175 | { "private","privat" }, |
1176 | { "confidential","vertraul." }, | 1176 | { "confidential","vertraul." }, |
1177 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, | 1177 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, |
1178 | { "Yesterday","Gestern" }, | 1178 | { "Yesterday","Gestern" }, |
1179 | { "Day after tomorrow","Übermorgen" }, | 1179 | { "Day after tomorrow","Übermorgen" }, |
1180 | { "Tomorrow","Morgen" }, | 1180 | { "Tomorrow","Morgen" }, |
1181 | { "Day before yesterday","Vorgestern" }, | 1181 | { "Day before yesterday","Vorgestern" }, |
1182 | { "Size %1","Größe %1" }, | 1182 | { "Size %1","Größe %1" }, |
1183 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1183 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1184 | { " (%1 y.)"," (%1 J.)" }, | 1184 | { " (%1 y.)"," (%1 J.)" }, |
1185 | { "Allday:","Ganztägig:" }, | 1185 | { "Allday:","Ganztägig:" }, |
1186 | { "compl.todos","erled.Todos" }, | 1186 | { "compl.todos","erled.Todos" }, |
1187 | { "Day view","Tagesansicht" }, | 1187 | { "Day view","Tagesansicht" }, |
1188 | { "Next days","Nächste Tage" }, | 1188 | { "Next days","Nächste Tage" }, |
1189 | { "Next week","Nächste Woche" }, | 1189 | { "Next week","Nächste Woche" }, |
1190 | { "Next two weeks","Nächste zwei Wochen" }, | 1190 | { "Next two weeks","Nächste zwei Wochen" }, |
1191 | { "This month","Dieser Monat" }, | 1191 | { "This month","Dieser Monat" }, |
1192 | { "Journal view","Journal" }, | 1192 | { "Journal view","Journal" }, |
1193 | { "Display all opened","Zeige alle geöffnet" }, | 1193 | { "Display all opened","Zeige alle geöffnet" }, |
1194 | { "Display all closed","Zeige alle geschlossen" }, | 1194 | { "Display all closed","Zeige alle geschlossen" }, |
1195 | { "Display all flat","Zeige alle flach" }, | 1195 | { "Display all flat","Zeige alle flach" }, |
1196 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1196 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1197 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1197 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1198 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1198 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1199 | { "Select Week","Wähle Woche" }, | 1199 | { "Select Week","Wähle Woche" }, |
1200 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1200 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1201 | { "Set Alarm!","Setze Alarm!" }, | 1201 | { "Set Alarm!","Setze Alarm!" }, |
1202 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, | 1202 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, |
1203 | { " and "," und " }, | 1203 | { " and "," und " }, |
1204 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1204 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1205 | { "Mail to selected","Mail an Ausgewählte" }, | 1205 | { "Mail to selected","Mail an Ausgewählte" }, |
1206 | { "Mail to all","Mail an Alle" }, | 1206 | { "Mail to all","Mail an Alle" }, |
1207 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1207 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1208 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1208 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1209 | { " on"," am" }, | 1209 | { " on"," am" }, |
1210 | { " completed on "," erledigt am " }, | 1210 | { " completed on "," erledigt am " }, |
1211 | { "Save as Event template","Speichere als Vorlage" }, | 1211 | { "Save as Event template","Speichere als Vorlage" }, |
1212 | { "Load Event template","Lade Termin Vorlage" }, | 1212 | { "Load Event template","Lade Termin Vorlage" }, |
1213 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1213 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1214 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1214 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1215 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1215 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1216 | { "Parent todo:<br>","Über Todo:<br>" }, | 1216 | { "Parent todo:<br>","Über Todo:<br>" }, |
1217 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1217 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1218 | { " completed"," erledigt" }, | 1218 | { " completed"," erledigt" }, |
1219 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1219 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1220 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1220 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1221 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1221 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1222 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1222 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1223 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, | 1223 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, |
1224 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1224 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1225 | { "Error","Fehler" }, | 1225 | { "Error","Fehler" }, |
1226 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1226 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1227 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1227 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1228 | { "Warning","Warnung" }, | 1228 | { "Warning","Warnung" }, |
1229 | { "Select week number","Wähle Wochen Nummer" }, | 1229 | { "Select week number","Wähle Wochen Nummer" }, |
1230 | { "Februar","Februar" }, | 1230 | { "Februar","Februar" }, |
1231 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1231 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1232 | { "W","W" }, | 1232 | { "W","W" }, |
1233 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1233 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1234 | { "T: %1","T: %1" }, | 1234 | { "T: %1","T: %1" }, |
1235 | { "Start: ","Start: " }, | 1235 | { "Start: ","Start: " }, |
1236 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1236 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1237 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1237 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1238 | { "Remote IP address:","Ferne IP Adresse:" }, | 1238 | { "Remote IP address:","Ferne IP Adresse:" }, |
1239 | { "Remote port number:","Ferne Port Nummer:" }, | 1239 | { "Remote port number:","Ferne Port Nummer:" }, |
1240 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1240 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1241 | { "Remote from: ","Fern von: " }, | 1241 | { "Remote from: ","Fern von: " }, |
1242 | { "Local from: ","Lokal von: " }, | 1242 | { "Local from: ","Lokal von: " }, |
1243 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, | 1243 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, |
1244 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1244 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1245 | { "Write back","Schreibe zurück" }, | 1245 | { "Write back","Schreibe zurück" }, |
1246 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1246 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1247 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1247 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1248 | { "Received sync request","Sync Anfrage erhalten" }, | 1248 | { "Received sync request","Sync Anfrage erhalten" }, |
1249 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, | 1249 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, |
1250 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1250 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1251 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1251 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1252 | { "Sending file...","Sende Datei..." }, | 1252 | { "Sending file...","Sende Datei..." }, |
1253 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1253 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1254 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1254 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1255 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1255 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1256 | { "Writing file to disk...","Speichere Datei..." }, | 1256 | { "Writing file to disk...","Speichere Datei..." }, |
1257 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1257 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1258 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1258 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1259 | { "Synchronize!","Synchronisiere!" }, | 1259 | { "Synchronize!","Synchronisiere!" }, |
1260 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1260 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1261 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1261 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1262 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, | 1262 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, |
1263 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1263 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1264 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1264 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1265 | { "List week view","Listenwochenansicht" }, | 1265 | { "List week view","Listenwochenansicht" }, |
1266 | { "List week","Listenwochenansicht" }, | 1266 | { "List week","Listenwochenansicht" }, |
1267 | { "Next Week","Nächste Woche" }, | 1267 | { "Next Week","Nächste Woche" }, |
1268 | { "Previous Week","Vorherige Woche" }, | 1268 | { "Previous Week","Vorherige Woche" }, |
1269 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, | 1269 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, |
1270 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1270 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1271 | { "Details","Details" }, | 1271 | { "Details","Details" }, |
1272 | { "Created time","Erstellt Zeit" }, | 1272 | { "Created time","Erstellt Zeit" }, |
1273 | { "Last modified time","Geändert Zeit" }, | 1273 | { "Last modified time","Geändert Zeit" }, |
1274 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1274 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1275 | { "View Options","Anzeige Optionen" }, | 1275 | { "View Options","Anzeige Optionen" }, |
1276 | { "<b>Created: ","<b>Erstellt am: " }, | 1276 | { "<b>Created: ","<b>Erstellt am: " }, |
1277 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1277 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1278 | { "Journal: ","Journal: " }, | 1278 | { "Journal: ","Journal: " }, |
1279 | { "yearly","jährlich" }, | 1279 | { "yearly","jährlich" }, |
1280 | { "(%1) ","%1-" }, | 1280 | { "(%1) ","%1-" }, |
1281 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1281 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1282 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1282 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1283 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1283 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1284 | { "Summary/Loc.","Titel/Ort" }, | 1284 | { "Summary/Loc.","Titel/Ort" }, |
1285 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1285 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1286 | { "Week Number","Wochennummer" }, | 1286 | { "Week Number","Wochennummer" }, |
1287 | { "Import","Importiere" }, | 1287 | { "Import","Importiere" }, |
1288 | { "Export","Exportiere" }, | 1288 | { "Export","Exportiere" }, |
1289 | { "Beam","Beame" }, | 1289 | { "Beam","Beame" }, |
1290 | { "Export selected","Exportiere Selektierte" }, | 1290 | { "Export selected","Exportiere Selektierte" }, |
1291 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1291 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1292 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1292 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1293 | { "Journal/Details...","Journale/Details..." }, | 1293 | { "Journal/Details...","Journale/Details..." }, |
1294 | { "Agenda View","Agenda Ansicht" }, | 1294 | { "Agenda View","Agenda Ansicht" }, |
1295 | { "Show current time","Zeige aktuelle Zeit" }, | 1295 | { "Show current time","Zeige aktuelle Zeit" }, |
1296 | { "Edit new item","Bearbeite neuen Eintrag" }, | 1296 | { "Edit new item","Bearbeite neuen Eintrag" }, |
1297 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, | 1297 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, |
1298 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, | 1298 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, |
1299 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, | 1299 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, |
1300 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, | 1300 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, |
1301 | { "%1 days\n","%1 Tagen\n" }, | 1301 | { "%1 days\n","%1 Tagen\n" }, |
1302 | { "1 day\n","1 Tag\n" }, | 1302 | { "1 day\n","1 Tag\n" }, |
1303 | { "%1 hours\n","%1 Stunden\n" }, | 1303 | { "%1 hours\n","%1 Stunden\n" }, |
1304 | { "1 hour\n","1 Stunde\n" }, | 1304 | { "1 hour\n","1 Stunde\n" }, |
1305 | { "%1 minutes\n","%1 Minuten\n" }, | 1305 | { "%1 minutes\n","%1 Minuten\n" }, |
1306 | { "1 minute\n","1 Minute\n" }, | 1306 | { "1 minute\n","1 Minute\n" }, |
1307 | { "Only one toolbar","Nur eine Toolbar" }, | 1307 | { "Only one toolbar","Nur eine Toolbar" }, |
1308 | { "Print","Drucke" }, | 1308 | { "Print","Drucke" }, |
1309 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, | 1309 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, |
1310 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, | 1310 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, |
1311 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, | 1311 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, |
1312 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, | 1312 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, |
1313 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, | 1313 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, |
1314 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1314 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1315 | { "Print unscaled","Drucke unskaliert" }, | 1315 | { "Print unscaled","Drucke unskaliert" }, |
1316 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1316 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1317 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1317 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1318 | { "Printout Mode","Druck Modus" }, | 1318 | { "Printout Mode","Druck Modus" }, |
1319 | { "Filter menu icon","Filtermenu Icon" }, | 1319 | { "Filter menu icon","Filtermenu Icon" }, |
1320 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, | 1320 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, |
1321 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, | 1321 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, |
1322 | { "%1d","%1t" }, | 1322 | { "%1d","%1t" }, |
1323 | { "%1h","%1std" }, | 1323 | { "%1h","%1std" }, |
1324 | { "%1min","%1min" }, | 1324 | { "%1min","%1min" }, |
1325 | { "( %1 before )","( %1 vorher )" }, | 1325 | { "( %1 before )","( %1 vorher )" }, |
1326 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, | 1326 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, |
1327 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, | 1327 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, |
1328 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, | 1328 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, |
1329 | { "Show Sync Events","Zeige Sync-Ereignisse" }, | 1329 | { "Show Sync Events","Zeige Sync-Ereignisse" }, |
1330 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, | 1330 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, |
1331 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, | 1331 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, |
1332 | { " on "," am " }, | 1332 | { " on "," am " }, |
1333 | { "On: ","Am: " }, | 1333 | { "On: ","Am: " }, |
1334 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, | 1334 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, |
1335 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, | 1335 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, |
1336 | { "Color for running todos:","Farbe für laufende Todos:" }, | 1336 | { "Color for running todos:","Farbe für laufende Todos:" }, |
1337 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, | 1337 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, |
1338 | { "Todo is started","Todo ist gestartet" }, | 1338 | { "Todo is started","Todo ist gestartet" }, |
1339 | { "Stop todo","Stoppe Todo" }, | 1339 | { "Stop todo","Stoppe Todo" }, |
1340 | { "Todo is stopped","Todo ist gestoppt" }, | 1340 | { "Todo is stopped","Todo ist gestoppt" }, |
1341 | { "Start todo","Starte Todo" }, | 1341 | { "Start todo","Starte Todo" }, |
1342 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, | 1342 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, |
1343 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, | 1343 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, |
1344 | { "Todo has subtodos","Todo hat Untertodos" }, | 1344 | { "Todo has subtodos","Todo hat Untertodos" }, |
1345 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, | 1345 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, |
1346 | { "Colors","Farben" }, | 1346 | { "Colors","Farben" }, |
1347 | { "Click on new parent item","Klicke auf neues Übertodo" }, | 1347 | { "Click on new parent item","Klicke auf neues Übertodo" }, |
1348 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, | 1348 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, |
1349 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, | 1349 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, |
1350 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, | 1350 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, |
1351 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, | 1351 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, |
1352 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 1352 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
1353 | { "times","Zeiten" }, | 1353 | { "times","Zeiten" }, |
1354 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, | 1354 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, |
1355 | { "Backup enabled","Backup angeschaltet" }, | 1355 | { "Backup enabled","Backup angeschaltet" }, |
1356 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 1356 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
1357 | { "Number of Backups:","Anzahl der Backups" }, | 1357 | { "Number of Backups:","Anzahl der Backups" }, |
1358 | { "Make backup every ","Mache ein Backup alle " }, | 1358 | { "Make backup every ","Mache ein Backup alle " }, |
1359 | { " days"," Tage" }, | 1359 | { " days"," Tage" }, |
1360 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, | 1360 | { "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, |
1361 | { "Backup Failed!","Backup Problem!" }, | 1361 | { "Backup Failed!","Backup Problem!" }, |
1362 | { "Try again now","Versuche jetzt nochmal" }, | 1362 | { "Try again now","Versuche jetzt nochmal" }, |
1363 | { "Try again later","Versuche später nochmal" }, | 1363 | { "Try again later","Versuche später nochmal" }, |
1364 | { "Try again tomorrow","Versuche morgen nochmal" }, | 1364 | { "Try again tomorrow","Versuche morgen nochmal" }, |
1365 | { "Disable backup","Schalte Backup ab" }, | 1365 | { "Disable backup","Schalte Backup ab" }, |
1366 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 1366 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
1367 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 1367 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
1368 | { "Choose action","Wähle Aktion" }, | 1368 | { "Choose action","Wähle Aktion" }, |
1369 | { "Comment for todo:","Kommentar zum Todo:" }, | 1369 | { "Comment for todo:","Kommentar zum Todo:" }, |
1370 | { "Stop+note","Stop+Notiz" }, | 1370 | { "Stop+note","Stop+Notiz" }, |
1371 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, | 1371 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, |
1372 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, | 1372 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, |
1373 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, | 1373 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, |
1374 | { "Print complete list","Drucke komplette Liste" }, | 1374 | { "Print complete list","Drucke komplette Liste" }, |
1375 | { "Hide all selected","Verstecke Selektierte" }, | 1375 | { "Hide all selected","Verstecke Selektierte" }, |
1376 | { "Add items","hinzufügen" }, | 1376 | { "Add items","hinzufügen" }, |
1377 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, | 1377 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, |
1378 | { "Print List View...","Drucke Listenansicht..." }, | 1378 | { "Print List View...","Drucke Listenansicht..." }, |
1379 | { "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, | 1379 | { "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, |
1380 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, | 1380 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, |
1381 | { "Global Settings...","Globale Einstellungen..." }, | 1381 | { "Global Settings...","Globale Einstellungen..." }, |
1382 | { "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, | 1382 | { "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, |
1383 | { "(disabled)","(abgeschaltet)" }, | 1383 | { "(disabled)","(abgeschaltet)" }, |
1384 | { "New Calendar","Neuer Kalender" }, | 1384 | { "New Calendar","Neuer Kalender" }, |
1385 | { "Calendar","Kalender" }, | 1385 | { "Calendar","Kalender" }, |
1386 | { "Filter selector","Filterauswahl" }, | 1386 | { "Filter selector","Filterauswahl" }, |
1387 | { "Filtermenu","Filtermenu" }, | 1387 | { "Filtermenu","Filtermenu" }, |
1388 | { "Toggle Fullscreen","Vollbild umschalten" }, | 1388 | { "Toggle Fullscreen","Vollbild umschalten" }, |
1389 | { "Toggle Resource View","Resourcenansicht umschalten" }, | 1389 | { "Toggle Resource View","Resourcenansicht umschalten" }, |
1390 | { "Storage HowTo...","Speicherort HowTo..." }, | 1390 | { "Storage HowTo...","Speicherort HowTo..." }, |
1391 | { "Timetracking HowTo...","Timetracking HowTo..." }, | 1391 | { "Timetracking HowTo...","Timetracking HowTo..." }, |
1392 | { "Juni","Juni" }, | 1392 | { "Juni","Juni" }, |
1393 | { "Juli","Juli" }, | 1393 | { "Juli","Juli" }, |
1394 | { "ToDo:","ToDo:" }, | 1394 | { "ToDo:","ToDo:" }, |
1395 | { "Set Calendar","Setze Kalender" }, | 1395 | { "Set Calendar","Setze Kalender" }, |
1396 | { "Todo: %1","Todo: %1" }, | 1396 | { "Todo: %1","Todo: %1" }, |
1397 | { ": (Prio ",": (Prio " }, | 1397 | { ": (Prio ",": (Prio " }, |
1398 | { "Todos","Todos" }, | 1398 | { "Todos","Todos" }, |
1399 | { "Todo Viewer","Todo Viewer" }, | 1399 | { "Todo Viewer","Todo Viewer" }, |
1400 | { "Todo ","Todo " }, | 1400 | { "Todo ","Todo " }, |
1401 | { " Calendar \n Resource "," Kalender \n Resource " }, | 1401 | { " Calendar \n Resource "," Kalender \n Resource " }, |
1402 | { " Color "," Farbe " }, | 1402 | { " Color "," Farbe " }, |
1403 | { "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, | 1403 | { "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, |
1404 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, | 1404 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, |
1405 | { "Add new Calendar","Füge Kalender hinzu" }, | 1405 | { "Add new Calendar","Füge Kalender hinzu" }, |
1406 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, | 1406 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, |
1407 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, | 1407 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, |
1408 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, | 1408 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, |
1409 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, | 1409 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, |
1410 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, | 1410 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, |
1411 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, | 1411 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, |
1412 | { "Global application font for all apps:","Globale Schriftart:" }, | 1412 | { "Global application font for all apps:","Globale Schriftart:" }, |
1413 | { "Application Font","Applikationsschriftart" }, | 1413 | { "Application Font","Applikationsschriftart" }, |
1414 | { "Kx/Pi","Kx/Pi" }, | 1414 | { "Kx/Pi","Kx/Pi" }, |
1415 | { "Backup","Backup" }, | 1415 | { "Backup","Backup" }, |
1416 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, | 1416 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, |
1417 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, | 1417 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, |
1418 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, | 1418 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, |
1419 | { "Choose Color","Wähle Farbe" }, | 1419 | { "Choose Color","Wähle Farbe" }, |
1420 | { " OK "," OK " }, | 1420 | { " OK "," OK " }, |
1421 | { " Cancel "," Abbrechen " }, | 1421 | { " Cancel "," Abbrechen " }, |
1422 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, | 1422 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, |
1423 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, | 1423 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, |
1424 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, | 1424 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, |
1425 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, | 1425 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, |
1426 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, | 1426 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, |
1427 | { "%1\nis running!","%1\nist am Laufen!" }, | 1427 | { "%1\nis running!","%1\nist am Laufen!" }, |
1428 | { "Additional Comment:","Zusätzlicher Kommentar:" }, | 1428 | { "Additional Comment:","Zusätzlicher Kommentar:" }, |
1429 | { "Stop and save","Stopp und Speichern" }, | 1429 | { "Stop and save","Stopp und Speichern" }, |
1430 | { "Continue running","Weiter laufen lassen" }, | 1430 | { "Continue running","Weiter laufen lassen" }, |
1431 | { "Stop - do not save","Stopp - nicht Speichern" }, | 1431 | { "Stop - do not save","Stopp - nicht Speichern" }, |
1432 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, | 1432 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, |
1433 | { "Time mismatch!","Zeiten stimmen nicht!" }, | 1433 | { "Time mismatch!","Zeiten stimmen nicht!" }, |
1434 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, | 1434 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, |
1435 | { "","" }, | 1435 | { "Yes, stop todo","Ja, stoppe Todo" }, |
1436 | { "","" }, | 1436 | { "","" }, |
1437 | { "","" }, | 1437 | { "","" }, |
1438 | { "","" }, | 1438 | { "","" }, |
1439 | { "","" }, | 1439 | { "","" }, |
1440 | { "","" }, | 1440 | { "","" }, |
1441 | { "","" }, \ No newline at end of file | 1441 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 926a136..98c9bd9 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -1,514 +1,514 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qlayout.h> | 24 | #include <qlayout.h> |
25 | #include <qheader.h> | 25 | #include <qheader.h> |
26 | #include <qcursor.h> | 26 | #include <qcursor.h> |
27 | #include <qwhatsthis.h> | 27 | #include <qwhatsthis.h> |
28 | #include <qdialog.h> | 28 | #include <qdialog.h> |
29 | #include <qlabel.h> | 29 | #include <qlabel.h> |
30 | #include <qpushbutton.h> | 30 | #include <qpushbutton.h> |
31 | 31 | ||
32 | #include <qinputdialog.h> | 32 | #include <qinputdialog.h> |
33 | 33 | ||
34 | #include <qvbox.h> | 34 | #include <qvbox.h> |
35 | #include <kdebug.h> | 35 | #include <kdebug.h> |
36 | #include "koprefs.h" | 36 | #include "koprefs.h" |
37 | #include <klocale.h> | 37 | #include <klocale.h> |
38 | #include <kglobal.h> | 38 | #include <kglobal.h> |
39 | #include <kdateedit.h> | 39 | #include <kdateedit.h> |
40 | #include "ktimeedit.h" | 40 | #include "ktimeedit.h" |
41 | #include <kiconloader.h> | 41 | #include <kiconloader.h> |
42 | #include <kmessagebox.h> | 42 | #include <kmessagebox.h> |
43 | 43 | ||
44 | #include <libkcal/icaldrag.h> | 44 | #include <libkcal/icaldrag.h> |
45 | #include <libkcal/vcaldrag.h> | 45 | #include <libkcal/vcaldrag.h> |
46 | #include <libkcal/calfilter.h> | 46 | #include <libkcal/calfilter.h> |
47 | #include <libkcal/dndfactory.h> | 47 | #include <libkcal/dndfactory.h> |
48 | #include <libkcal/calendarresources.h> | 48 | #include <libkcal/calendarresources.h> |
49 | #include <libkcal/resourcecalendar.h> | 49 | #include <libkcal/resourcecalendar.h> |
50 | #include <kresources/resourceselectdialog.h> | 50 | #include <kresources/resourceselectdialog.h> |
51 | #include <libkcal/kincidenceformatter.h> | 51 | #include <libkcal/kincidenceformatter.h> |
52 | #ifndef DESKTOP_VERSION | 52 | #ifndef DESKTOP_VERSION |
53 | #include <qpe/qpeapplication.h> | 53 | #include <qpe/qpeapplication.h> |
54 | #else | 54 | #else |
55 | #include <qapplication.h> | 55 | #include <qapplication.h> |
56 | #endif | 56 | #endif |
57 | #ifndef KORG_NOPRINTER | 57 | #ifndef KORG_NOPRINTER |
58 | #include "calprinter.h" | 58 | #include "calprinter.h" |
59 | #endif | 59 | #endif |
60 | #include "docprefs.h" | 60 | #include "docprefs.h" |
61 | 61 | ||
62 | #include "kotodoview.h" | 62 | #include "kotodoview.h" |
63 | using namespace KOrg; | 63 | using namespace KOrg; |
64 | 64 | ||
65 | 65 | ||
66 | KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name ) : | 66 | KOStopTodoPrefs::KOStopTodoPrefs( Todo* todo, QWidget *parent, const char *name ) : |
67 | QDialog( parent, name, true ) | 67 | QDialog( parent, name, true ) |
68 | { | 68 | { |
69 | mTodo = todo; | 69 | mTodo = todo; |
70 | setCaption( i18n("Stop todo") ); | 70 | setCaption( i18n("Stop todo") ); |
71 | QVBoxLayout* lay = new QVBoxLayout( this ); | 71 | QVBoxLayout* lay = new QVBoxLayout( this ); |
72 | lay->setSpacing( 3 ); | 72 | lay->setSpacing( 3 ); |
73 | lay->setMargin( 3 ); | 73 | lay->setMargin( 3 ); |
74 | QLabel * lab = new QLabel( i18n("%1\nis running!").arg( todo->summary() ), this ); | 74 | QLabel * lab = new QLabel( i18n("<b>%1\n</b>").arg( todo->summary() ), this ); |
75 | lay->addWidget( lab ); | 75 | lay->addWidget( lab ); |
76 | lab->setAlignment( AlignHCenter ); | 76 | lab->setAlignment( AlignHCenter ); |
77 | lab = new QLabel( i18n("Additional Comment:"), this ); | 77 | lab = new QLabel( i18n("Additional Comment:"), this ); |
78 | lay->addWidget( lab ); | 78 | lay->addWidget( lab ); |
79 | mComment = new QLineEdit( this ); | 79 | mComment = new QLineEdit( this ); |
80 | lay->addWidget( mComment ); | 80 | lay->addWidget( mComment ); |
81 | QHBox * start = new QHBox ( this ); | 81 | QHBox * start = new QHBox ( this ); |
82 | lay->addWidget( start ); | 82 | lay->addWidget( start ); |
83 | lab = new QLabel( i18n("Start:"), start ); | 83 | lab = new QLabel( i18n("Start:"), start ); |
84 | QHBox * end = new QHBox ( this ); | 84 | QHBox * end = new QHBox ( this ); |
85 | lay->addWidget( end ); | 85 | lay->addWidget( end ); |
86 | lab = new QLabel( i18n("End:"), end ); | 86 | lab = new QLabel( i18n("End:"), end ); |
87 | sde = new KDateEdit( start ); | 87 | sde = new KDateEdit( start ); |
88 | ste = new KOTimeEdit( start ); | 88 | ste = new KOTimeEdit( start ); |
89 | connect ( sde,SIGNAL(setTimeTo( QTime ) ),ste , SLOT ( setTime(QTime ) ) ); | 89 | connect ( sde,SIGNAL(setTimeTo( QTime ) ),ste , SLOT ( setTime(QTime ) ) ); |
90 | ede = new KDateEdit( end ); | 90 | ede = new KDateEdit( end ); |
91 | ete = new KOTimeEdit(end ); | 91 | ete = new KOTimeEdit(end ); |
92 | connect ( ede,SIGNAL(setTimeTo( QTime ) ),ete , SLOT ( setTime(QTime ) ) ); | 92 | connect ( ede,SIGNAL(setTimeTo( QTime ) ),ete , SLOT ( setTime(QTime ) ) ); |
93 | sde->setDate( mTodo->runStart().date() ); | 93 | sde->setDate( mTodo->runStart().date() ); |
94 | ste->setTime( mTodo->runStart().time() ); | 94 | ste->setTime( mTodo->runStart().time() ); |
95 | ede->setDate( QDate::currentDate()); | 95 | ede->setDate( QDate::currentDate()); |
96 | ete->setTime( QTime::currentTime() ); | 96 | ete->setTime( QTime::currentTime() ); |
97 | QPushButton * ok = new QPushButton( i18n("Stop and save"), this ); | 97 | QPushButton * ok = new QPushButton( i18n("Stop and save"), this ); |
98 | lay->addWidget( ok ); | 98 | lay->addWidget( ok ); |
99 | ok->setDefault( true ); | 99 | ok->setDefault( true ); |
100 | QPushButton * cancel = new QPushButton( i18n("Continue running"), this ); | 100 | QPushButton * cancel = new QPushButton( i18n("Continue running"), this ); |
101 | lay->addWidget( cancel ); | 101 | lay->addWidget( cancel ); |
102 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 102 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
103 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 103 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
104 | ok = new QPushButton( i18n("Stop - do not save"), this ); | 104 | ok = new QPushButton( i18n("Stop - do not save"), this ); |
105 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( doNotSave() ) ); | 105 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( doNotSave() ) ); |
106 | lay->addWidget( ok ); | 106 | lay->addWidget( ok ); |
107 | if (QApplication::desktop()->width() < 320 ) | 107 | if (QApplication::desktop()->width() < 320 ) |
108 | resize( 240, 200 ); | 108 | resize( 240, sizeHint().height() ); |
109 | else | 109 | else |
110 | resize( 320, 200 ); | 110 | resize( 320, sizeHint().height() ); |
111 | 111 | ||
112 | } | 112 | } |
113 | 113 | ||
114 | void KOStopTodoPrefs::accept() | 114 | void KOStopTodoPrefs::accept() |
115 | { | 115 | { |
116 | QDateTime start = QDateTime( sde->date(), ste->getTime() ); | 116 | QDateTime start = QDateTime( sde->date(), ste->getTime() ); |
117 | QDateTime stop = QDateTime( ede->date(), ete->getTime() ); | 117 | QDateTime stop = QDateTime( ede->date(), ete->getTime() ); |
118 | if ( start > stop ) { | 118 | if ( start > stop ) { |
119 | KMessageBox::sorry(this, | 119 | KMessageBox::sorry(this, |
120 | i18n("The start time is\nafter the end time!"), | 120 | i18n("The start time is\nafter the end time!"), |
121 | i18n("Time mismatch!")); | 121 | i18n("Time mismatch!")); |
122 | return; | 122 | return; |
123 | } | 123 | } |
124 | mTodo->saveRunningInfo( mComment->text(), start, stop ); | 124 | mTodo->saveRunningInfo( mComment->text(), start, stop ); |
125 | QDialog::accept(); | 125 | QDialog::accept(); |
126 | } | 126 | } |
127 | void KOStopTodoPrefs::doNotSave() | 127 | void KOStopTodoPrefs::doNotSave() |
128 | { | 128 | { |
129 | int result = KMessageBox::warningContinueCancel(this, | 129 | int result = KMessageBox::warningContinueCancel(this, |
130 | i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary() ); | 130 | i18n("Do you really want to set\nthe state to stopped\nwithout saving the data?"),mTodo->summary(),i18n("Yes, stop todo") ); |
131 | if (result != KMessageBox::Continue) return; | 131 | if (result != KMessageBox::Continue) return; |
132 | mTodo->stopRunning(); | 132 | mTodo->stopRunning(); |
133 | QDialog::accept(); | 133 | QDialog::accept(); |
134 | } | 134 | } |
135 | 135 | ||
136 | 136 | ||
137 | class KOTodoViewWhatsThis :public QWhatsThis | 137 | class KOTodoViewWhatsThis :public QWhatsThis |
138 | { | 138 | { |
139 | public: | 139 | public: |
140 | KOTodoViewWhatsThis( QWidget *wid, KOTodoView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; | 140 | KOTodoViewWhatsThis( QWidget *wid, KOTodoView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; |
141 | 141 | ||
142 | protected: | 142 | protected: |
143 | virtual QString text( const QPoint& p) | 143 | virtual QString text( const QPoint& p) |
144 | { | 144 | { |
145 | return _view->getWhatsThisText(p) ; | 145 | return _view->getWhatsThisText(p) ; |
146 | } | 146 | } |
147 | private: | 147 | private: |
148 | QWidget* _wid; | 148 | QWidget* _wid; |
149 | KOTodoView * _view; | 149 | KOTodoView * _view; |
150 | }; | 150 | }; |
151 | 151 | ||
152 | KOTodoListView::KOTodoListView(Calendar *calendar,QWidget *parent, | 152 | KOTodoListView::KOTodoListView(Calendar *calendar,QWidget *parent, |
153 | const char *name) : | 153 | const char *name) : |
154 | KListView(parent,name) | 154 | KListView(parent,name) |
155 | { | 155 | { |
156 | mName = QString ( name ); | 156 | mName = QString ( name ); |
157 | mCalendar = calendar; | 157 | mCalendar = calendar; |
158 | #ifndef DESKTOP_VERSION | 158 | #ifndef DESKTOP_VERSION |
159 | QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold ); | 159 | QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold ); |
160 | #endif | 160 | #endif |
161 | mOldCurrent = 0; | 161 | mOldCurrent = 0; |
162 | mMousePressed = false; | 162 | mMousePressed = false; |
163 | 163 | ||
164 | setAcceptDrops(true); | 164 | setAcceptDrops(true); |
165 | viewport()->setAcceptDrops(true); | 165 | viewport()->setAcceptDrops(true); |
166 | int size = 16; | 166 | int size = 16; |
167 | if (qApp->desktop()->width() < 300 ) | 167 | if (qApp->desktop()->width() < 300 ) |
168 | size = 12; | 168 | size = 12; |
169 | setTreeStepSize( size + 6 ); | 169 | setTreeStepSize( size + 6 ); |
170 | 170 | ||
171 | } | 171 | } |
172 | 172 | ||
173 | void KOTodoListView::contentsDragEnterEvent(QDragEnterEvent *e) | 173 | void KOTodoListView::contentsDragEnterEvent(QDragEnterEvent *e) |
174 | { | 174 | { |
175 | #ifndef KORG_NODND | 175 | #ifndef KORG_NODND |
176 | // kdDebug() << "KOTodoListView::contentsDragEnterEvent" << endl; | 176 | // kdDebug() << "KOTodoListView::contentsDragEnterEvent" << endl; |
177 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && | 177 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && |
178 | !QTextDrag::canDecode( e ) ) { | 178 | !QTextDrag::canDecode( e ) ) { |
179 | e->ignore(); | 179 | e->ignore(); |
180 | return; | 180 | return; |
181 | } | 181 | } |
182 | 182 | ||
183 | mOldCurrent = currentItem(); | 183 | mOldCurrent = currentItem(); |
184 | #endif | 184 | #endif |
185 | } | 185 | } |
186 | 186 | ||
187 | 187 | ||
188 | void KOTodoListView::contentsDragMoveEvent(QDragMoveEvent *e) | 188 | void KOTodoListView::contentsDragMoveEvent(QDragMoveEvent *e) |
189 | { | 189 | { |
190 | #ifndef KORG_NODND | 190 | #ifndef KORG_NODND |
191 | // kdDebug() << "KOTodoListView::contentsDragMoveEvent" << endl; | 191 | // kdDebug() << "KOTodoListView::contentsDragMoveEvent" << endl; |
192 | 192 | ||
193 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && | 193 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && |
194 | !QTextDrag::canDecode( e ) ) { | 194 | !QTextDrag::canDecode( e ) ) { |
195 | e->ignore(); | 195 | e->ignore(); |
196 | return; | 196 | return; |
197 | } | 197 | } |
198 | 198 | ||
199 | e->accept(); | 199 | e->accept(); |
200 | #endif | 200 | #endif |
201 | } | 201 | } |
202 | 202 | ||
203 | void KOTodoListView::contentsDragLeaveEvent(QDragLeaveEvent *) | 203 | void KOTodoListView::contentsDragLeaveEvent(QDragLeaveEvent *) |
204 | { | 204 | { |
205 | #ifndef KORG_NODND | 205 | #ifndef KORG_NODND |
206 | // kdDebug() << "KOTodoListView::contentsDragLeaveEvent" << endl; | 206 | // kdDebug() << "KOTodoListView::contentsDragLeaveEvent" << endl; |
207 | 207 | ||
208 | setCurrentItem(mOldCurrent); | 208 | setCurrentItem(mOldCurrent); |
209 | setSelected(mOldCurrent,true); | 209 | setSelected(mOldCurrent,true); |
210 | #endif | 210 | #endif |
211 | } | 211 | } |
212 | 212 | ||
213 | void KOTodoListView::contentsDropEvent(QDropEvent *e) | 213 | void KOTodoListView::contentsDropEvent(QDropEvent *e) |
214 | { | 214 | { |
215 | #ifndef KORG_NODND | 215 | #ifndef KORG_NODND |
216 | // kdDebug() << "KOTodoListView::contentsDropEvent" << endl; | 216 | // kdDebug() << "KOTodoListView::contentsDropEvent" << endl; |
217 | 217 | ||
218 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && | 218 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && |
219 | !QTextDrag::canDecode( e ) ) { | 219 | !QTextDrag::canDecode( e ) ) { |
220 | e->ignore(); | 220 | e->ignore(); |
221 | return; | 221 | return; |
222 | } | 222 | } |
223 | 223 | ||
224 | DndFactory factory( mCalendar ); | 224 | DndFactory factory( mCalendar ); |
225 | Todo *todo = factory.createDropTodo(e); | 225 | Todo *todo = factory.createDropTodo(e); |
226 | 226 | ||
227 | if (todo) { | 227 | if (todo) { |
228 | e->acceptAction(); | 228 | e->acceptAction(); |
229 | 229 | ||
230 | KOTodoViewItem *destination = | 230 | KOTodoViewItem *destination = |
231 | (KOTodoViewItem *)itemAt(contentsToViewport(e->pos())); | 231 | (KOTodoViewItem *)itemAt(contentsToViewport(e->pos())); |
232 | Todo *destinationEvent = 0; | 232 | Todo *destinationEvent = 0; |
233 | if (destination) destinationEvent = destination->todo(); | 233 | if (destination) destinationEvent = destination->todo(); |
234 | 234 | ||
235 | Todo *existingTodo = mCalendar->todo(todo->uid()); | 235 | Todo *existingTodo = mCalendar->todo(todo->uid()); |
236 | 236 | ||
237 | if(existingTodo) { | 237 | if(existingTodo) { |
238 | Incidence *to = destinationEvent; | 238 | Incidence *to = destinationEvent; |
239 | while(to) { | 239 | while(to) { |
240 | if (to->uid() == todo->uid()) { | 240 | if (to->uid() == todo->uid()) { |
241 | KMessageBox::sorry(this, | 241 | KMessageBox::sorry(this, |
242 | i18n("Cannot move Todo to itself\nor a child of itself"), | 242 | i18n("Cannot move Todo to itself\nor a child of itself"), |
243 | i18n("Drop Todo")); | 243 | i18n("Drop Todo")); |
244 | delete todo; | 244 | delete todo; |
245 | return; | 245 | return; |
246 | } | 246 | } |
247 | to = to->relatedTo(); | 247 | to = to->relatedTo(); |
248 | } | 248 | } |
249 | internalDrop = true; | 249 | internalDrop = true; |
250 | if ( destinationEvent ) | 250 | if ( destinationEvent ) |
251 | reparentTodoSignal( destinationEvent, existingTodo ); | 251 | reparentTodoSignal( destinationEvent, existingTodo ); |
252 | else | 252 | else |
253 | unparentTodoSignal(existingTodo); | 253 | unparentTodoSignal(existingTodo); |
254 | delete todo; | 254 | delete todo; |
255 | } else { | 255 | } else { |
256 | mCalendar->addTodo(todo); | 256 | mCalendar->addTodo(todo); |
257 | emit todoDropped(todo, KOGlobals::EVENTADDED); | 257 | emit todoDropped(todo, KOGlobals::EVENTADDED); |
258 | if ( destinationEvent ) | 258 | if ( destinationEvent ) |
259 | reparentTodoSignal( destinationEvent, todo ); | 259 | reparentTodoSignal( destinationEvent, todo ); |
260 | } | 260 | } |
261 | } | 261 | } |
262 | else { | 262 | else { |
263 | QString text; | 263 | QString text; |
264 | if (QTextDrag::decode(e,text)) { | 264 | if (QTextDrag::decode(e,text)) { |
265 | //QListViewItem *qlvi = itemAt( contentsToViewport(e->pos()) ); | 265 | //QListViewItem *qlvi = itemAt( contentsToViewport(e->pos()) ); |
266 | KOTodoViewItem *todoi = static_cast<KOTodoViewItem *>(itemAt( contentsToViewport(e->pos()) )); | 266 | KOTodoViewItem *todoi = static_cast<KOTodoViewItem *>(itemAt( contentsToViewport(e->pos()) )); |
267 | qDebug("Dropped : " + text); | 267 | qDebug("Dropped : " + text); |
268 | QStringList emails = QStringList::split(",",text); | 268 | QStringList emails = QStringList::split(",",text); |
269 | for(QStringList::ConstIterator it = emails.begin();it!=emails.end();++it) { | 269 | for(QStringList::ConstIterator it = emails.begin();it!=emails.end();++it) { |
270 | int pos = (*it).find("<"); | 270 | int pos = (*it).find("<"); |
271 | QString name = (*it).left(pos); | 271 | QString name = (*it).left(pos); |
272 | QString email = (*it).mid(pos); | 272 | QString email = (*it).mid(pos); |
273 | if (!email.isEmpty() && todoi) { | 273 | if (!email.isEmpty() && todoi) { |
274 | todoi->todo()->addAttendee(new Attendee(name,email)); | 274 | todoi->todo()->addAttendee(new Attendee(name,email)); |
275 | } | 275 | } |
276 | } | 276 | } |
277 | } | 277 | } |
278 | else { | 278 | else { |
279 | qDebug("KOTodoListView::contentsDropEvent(): Todo from drop not decodable "); | 279 | qDebug("KOTodoListView::contentsDropEvent(): Todo from drop not decodable "); |
280 | e->ignore(); | 280 | e->ignore(); |
281 | } | 281 | } |
282 | } | 282 | } |
283 | #endif | 283 | #endif |
284 | } | 284 | } |
285 | void KOTodoListView::wheelEvent (QWheelEvent *e) | 285 | void KOTodoListView::wheelEvent (QWheelEvent *e) |
286 | { | 286 | { |
287 | QListView::wheelEvent (e); | 287 | QListView::wheelEvent (e); |
288 | } | 288 | } |
289 | 289 | ||
290 | void KOTodoListView::contentsMousePressEvent(QMouseEvent* e) | 290 | void KOTodoListView::contentsMousePressEvent(QMouseEvent* e) |
291 | { | 291 | { |
292 | 292 | ||
293 | QPoint p(contentsToViewport(e->pos())); | 293 | QPoint p(contentsToViewport(e->pos())); |
294 | QListViewItem *i = itemAt(p); | 294 | QListViewItem *i = itemAt(p); |
295 | bool rootClicked = true; | 295 | bool rootClicked = true; |
296 | if (i) { | 296 | if (i) { |
297 | // if the user clicked into the root decoration of the item, don't | 297 | // if the user clicked into the root decoration of the item, don't |
298 | // try to start a drag! | 298 | // try to start a drag! |
299 | int X = p.x(); | 299 | int X = p.x(); |
300 | //qDebug("%d %d %d", X, header()->sectionPos(0), treeStepSize() ); | 300 | //qDebug("%d %d %d", X, header()->sectionPos(0), treeStepSize() ); |
301 | if (X > header()->sectionPos(0) + | 301 | if (X > header()->sectionPos(0) + |
302 | treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) + | 302 | treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) + |
303 | itemMargin() +i->height()|| | 303 | itemMargin() +i->height()|| |
304 | X < header()->sectionPos(0)) { | 304 | X < header()->sectionPos(0)) { |
305 | rootClicked = false; | 305 | rootClicked = false; |
306 | } | 306 | } |
307 | } else { | 307 | } else { |
308 | rootClicked = false; | 308 | rootClicked = false; |
309 | } | 309 | } |
310 | #ifndef KORG_NODND | 310 | #ifndef KORG_NODND |
311 | mMousePressed = false; | 311 | mMousePressed = false; |
312 | if (! rootClicked && !( e->button() == RightButton) ) { | 312 | if (! rootClicked && !( e->button() == RightButton) ) { |
313 | mPressPos = e->pos(); | 313 | mPressPos = e->pos(); |
314 | mMousePressed = true; | 314 | mMousePressed = true; |
315 | } else { | 315 | } else { |
316 | mMousePressed = false; | 316 | mMousePressed = false; |
317 | } | 317 | } |
318 | #endif | 318 | #endif |
319 | //qDebug("KOTodoListView::contentsMousePressEvent %d", rootClicked); | 319 | //qDebug("KOTodoListView::contentsMousePressEvent %d", rootClicked); |
320 | #ifndef DESKTOP_VERSION | 320 | #ifndef DESKTOP_VERSION |
321 | if (!( e->button() == RightButton && rootClicked) ) | 321 | if (!( e->button() == RightButton && rootClicked) ) |
322 | QListView::contentsMousePressEvent(e); | 322 | QListView::contentsMousePressEvent(e); |
323 | #else | 323 | #else |
324 | QListView::contentsMousePressEvent(e); | 324 | QListView::contentsMousePressEvent(e); |
325 | #endif | 325 | #endif |
326 | } | 326 | } |
327 | void KOTodoListView::paintEvent(QPaintEvent* e) | 327 | void KOTodoListView::paintEvent(QPaintEvent* e) |
328 | { | 328 | { |
329 | emit paintNeeded(); | 329 | emit paintNeeded(); |
330 | QListView::paintEvent( e); | 330 | QListView::paintEvent( e); |
331 | } | 331 | } |
332 | void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) | 332 | void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) |
333 | { | 333 | { |
334 | 334 | ||
335 | #ifndef KORG_NODND | 335 | #ifndef KORG_NODND |
336 | //QListView::contentsMouseMoveEvent(e); | 336 | //QListView::contentsMouseMoveEvent(e); |
337 | if (mMousePressed && (mPressPos - e->pos()).manhattanLength() > | 337 | if (mMousePressed && (mPressPos - e->pos()).manhattanLength() > |
338 | QApplication::startDragDistance()*3) { | 338 | QApplication::startDragDistance()*3) { |
339 | mMousePressed = false; | 339 | mMousePressed = false; |
340 | QListViewItem *item = itemAt(contentsToViewport(mPressPos)); | 340 | QListViewItem *item = itemAt(contentsToViewport(mPressPos)); |
341 | if (item) { | 341 | if (item) { |
342 | DndFactory factory( mCalendar ); | 342 | DndFactory factory( mCalendar ); |
343 | ICalDrag *vd = factory.createDrag( | 343 | ICalDrag *vd = factory.createDrag( |
344 | ((KOTodoViewItem *)item)->todo(),viewport()); | 344 | ((KOTodoViewItem *)item)->todo(),viewport()); |
345 | internalDrop = false; | 345 | internalDrop = false; |
346 | // we cannot do any senseful here, because the DnD is still broken in Qt | 346 | // we cannot do any senseful here, because the DnD is still broken in Qt |
347 | if (vd->drag()) { | 347 | if (vd->drag()) { |
348 | if ( !internalDrop ) { | 348 | if ( !internalDrop ) { |
349 | //emit deleteTodo( ((KOTodoViewItem *)item)->todo() ); | 349 | //emit deleteTodo( ((KOTodoViewItem *)item)->todo() ); |
350 | qDebug("Dnd: External move: Delete drag source "); | 350 | qDebug("Dnd: External move: Delete drag source "); |
351 | } else | 351 | } else |
352 | qDebug("Dnd: Internal move "); | 352 | qDebug("Dnd: Internal move "); |
353 | 353 | ||
354 | } else { | 354 | } else { |
355 | if ( !internalDrop ) { | 355 | if ( !internalDrop ) { |
356 | qDebug("Dnd: External Copy"); | 356 | qDebug("Dnd: External Copy"); |
357 | } else | 357 | } else |
358 | qDebug("DnD: Internal copy: Copy pending"); | 358 | qDebug("DnD: Internal copy: Copy pending"); |
359 | } | 359 | } |
360 | } | 360 | } |
361 | } | 361 | } |
362 | #endif | 362 | #endif |
363 | } | 363 | } |
364 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) | 364 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) |
365 | { | 365 | { |
366 | if ( !e->isAutoRepeat() ) { | 366 | if ( !e->isAutoRepeat() ) { |
367 | mFlagKeyPressed = false; | 367 | mFlagKeyPressed = false; |
368 | } | 368 | } |
369 | } | 369 | } |
370 | 370 | ||
371 | 371 | ||
372 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) | 372 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) |
373 | { | 373 | { |
374 | qApp->processEvents(); | 374 | qApp->processEvents(); |
375 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 375 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
376 | e->ignore(); | 376 | e->ignore(); |
377 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 377 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
378 | return; | 378 | return; |
379 | } | 379 | } |
380 | if (! e->isAutoRepeat() ) | 380 | if (! e->isAutoRepeat() ) |
381 | mFlagKeyPressed = true; | 381 | mFlagKeyPressed = true; |
382 | QListViewItem* cn; | 382 | QListViewItem* cn; |
383 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { | 383 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { |
384 | cn = currentItem(); | 384 | cn = currentItem(); |
385 | if ( cn ) { | 385 | if ( cn ) { |
386 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); | 386 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); |
387 | if ( ci ){ | 387 | if ( ci ){ |
388 | if ( e->state() == ShiftButton ) | 388 | if ( e->state() == ShiftButton ) |
389 | ci->setOn( false ); | 389 | ci->setOn( false ); |
390 | else | 390 | else |
391 | ci->setOn( true ); | 391 | ci->setOn( true ); |
392 | cn = cn->itemBelow(); | 392 | cn = cn->itemBelow(); |
393 | if ( cn ) { | 393 | if ( cn ) { |
394 | setCurrentItem ( cn ); | 394 | setCurrentItem ( cn ); |
395 | ensureItemVisible ( cn ); | 395 | ensureItemVisible ( cn ); |
396 | } | 396 | } |
397 | 397 | ||
398 | } | 398 | } |
399 | } | 399 | } |
400 | 400 | ||
401 | return; | 401 | return; |
402 | } | 402 | } |
403 | 403 | ||
404 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { | 404 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { |
405 | switch ( e->key() ) { | 405 | switch ( e->key() ) { |
406 | case Qt::Key_Down: | 406 | case Qt::Key_Down: |
407 | case Qt::Key_Up: | 407 | case Qt::Key_Up: |
408 | QListView::keyPressEvent ( e ); | 408 | QListView::keyPressEvent ( e ); |
409 | break; | 409 | break; |
410 | case Qt::Key_Left: | 410 | case Qt::Key_Left: |
411 | case Qt::Key_Right: | 411 | case Qt::Key_Right: |
412 | QListView::keyPressEvent ( e ); | 412 | QListView::keyPressEvent ( e ); |
413 | e->accept(); | 413 | e->accept(); |
414 | return; | 414 | return; |
415 | break; | 415 | break; |
416 | default: | 416 | default: |
417 | e->ignore(); | 417 | e->ignore(); |
418 | break; | 418 | break; |
419 | } | 419 | } |
420 | return; | 420 | return; |
421 | } | 421 | } |
422 | e->ignore(); | 422 | e->ignore(); |
423 | } | 423 | } |
424 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) | 424 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) |
425 | { | 425 | { |
426 | QListView::contentsMouseReleaseEvent(e); | 426 | QListView::contentsMouseReleaseEvent(e); |
427 | mMousePressed = false; | 427 | mMousePressed = false; |
428 | } | 428 | } |
429 | 429 | ||
430 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) | 430 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) |
431 | { | 431 | { |
432 | if (!e) return; | 432 | if (!e) return; |
433 | 433 | ||
434 | QPoint vp = contentsToViewport(e->pos()); | 434 | QPoint vp = contentsToViewport(e->pos()); |
435 | 435 | ||
436 | QListViewItem *item = itemAt(vp); | 436 | QListViewItem *item = itemAt(vp); |
437 | 437 | ||
438 | emit double_Clicked(item); | 438 | emit double_Clicked(item); |
439 | if (!item) return; | 439 | if (!item) return; |
440 | 440 | ||
441 | emit doubleClicked(item,vp,0); | 441 | emit doubleClicked(item,vp,0); |
442 | } | 442 | } |
443 | 443 | ||
444 | ///////////////////////////////////////////////////////////////////////////// | 444 | ///////////////////////////////////////////////////////////////////////////// |
445 | 445 | ||
446 | KOQuickTodo::KOQuickTodo(QWidget *parent) : | 446 | KOQuickTodo::KOQuickTodo(QWidget *parent) : |
447 | QLineEdit(parent) | 447 | QLineEdit(parent) |
448 | { | 448 | { |
449 | setText(i18n("Click to add a new Todo")); | 449 | setText(i18n("Click to add a new Todo")); |
450 | } | 450 | } |
451 | 451 | ||
452 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) | 452 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) |
453 | { | 453 | { |
454 | if ( text()==i18n("Click to add a new Todo") ) | 454 | if ( text()==i18n("Click to add a new Todo") ) |
455 | setText(""); | 455 | setText(""); |
456 | QLineEdit::focusInEvent(ev); | 456 | QLineEdit::focusInEvent(ev); |
457 | } | 457 | } |
458 | 458 | ||
459 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) | 459 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) |
460 | { | 460 | { |
461 | setText(i18n("Click to add a new Todo")); | 461 | setText(i18n("Click to add a new Todo")); |
462 | QLineEdit::focusOutEvent(ev); | 462 | QLineEdit::focusOutEvent(ev); |
463 | } | 463 | } |
464 | 464 | ||
465 | ///////////////////////////////////////////////////////////////////////////// | 465 | ///////////////////////////////////////////////////////////////////////////// |
466 | 466 | ||
467 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | 467 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : |
468 | KOrg::BaseView(calendar,parent,name) | 468 | KOrg::BaseView(calendar,parent,name) |
469 | { | 469 | { |
470 | mPendingUpdateBeforeRepaint = false; | 470 | mPendingUpdateBeforeRepaint = false; |
471 | isFlatDisplay = false; | 471 | isFlatDisplay = false; |
472 | mNavigator = 0; | 472 | mNavigator = 0; |
473 | QBoxLayout *topLayout = new QVBoxLayout(this); | 473 | QBoxLayout *topLayout = new QVBoxLayout(this); |
474 | mName = QString ( name ); | 474 | mName = QString ( name ); |
475 | mBlockUpdate = false; | 475 | mBlockUpdate = false; |
476 | mQuickAdd = new KOQuickTodo(this); | 476 | mQuickAdd = new KOQuickTodo(this); |
477 | topLayout->addWidget(mQuickAdd); | 477 | topLayout->addWidget(mQuickAdd); |
478 | 478 | ||
479 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickAdd->hide(); | 479 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickAdd->hide(); |
480 | 480 | ||
481 | mTodoListView = new KOTodoListView(calendar,this, name ); | 481 | mTodoListView = new KOTodoListView(calendar,this, name ); |
482 | topLayout->addWidget(mTodoListView); | 482 | topLayout->addWidget(mTodoListView); |
483 | //mTodoListView->header()->setMaximumHeight(30); | 483 | //mTodoListView->header()->setMaximumHeight(30); |
484 | mTodoListView->setRootIsDecorated(true); | 484 | mTodoListView->setRootIsDecorated(true); |
485 | mTodoListView->setAllColumnsShowFocus(true); | 485 | mTodoListView->setAllColumnsShowFocus(true); |
486 | 486 | ||
487 | mTodoListView->setShowSortIndicator(true); | 487 | mTodoListView->setShowSortIndicator(true); |
488 | 488 | ||
489 | mTodoListView->addColumn(i18n("Todo")); | 489 | mTodoListView->addColumn(i18n("Todo")); |
490 | mTodoListView->addColumn(i18n("Prio")); | 490 | mTodoListView->addColumn(i18n("Prio")); |
491 | mTodoListView->setColumnAlignment(1,AlignHCenter); | 491 | mTodoListView->setColumnAlignment(1,AlignHCenter); |
492 | mTodoListView->addColumn(i18n("Complete")); | 492 | mTodoListView->addColumn(i18n("Complete")); |
493 | mTodoListView->setColumnAlignment(2,AlignCenter); | 493 | mTodoListView->setColumnAlignment(2,AlignCenter); |
494 | 494 | ||
495 | mTodoListView->addColumn(i18n("Due Date")); | 495 | mTodoListView->addColumn(i18n("Due Date")); |
496 | mTodoListView->setColumnAlignment(3,AlignLeft); | 496 | mTodoListView->setColumnAlignment(3,AlignLeft); |
497 | mTodoListView->addColumn(i18n("Due Time")); | 497 | mTodoListView->addColumn(i18n("Due Time")); |
498 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 498 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
499 | 499 | ||
500 | mTodoListView->addColumn(i18n("Start Date")); | 500 | mTodoListView->addColumn(i18n("Start Date")); |
501 | mTodoListView->setColumnAlignment(5,AlignLeft); | 501 | mTodoListView->setColumnAlignment(5,AlignLeft); |
502 | mTodoListView->addColumn(i18n("Start Time")); | 502 | mTodoListView->addColumn(i18n("Start Time")); |
503 | mTodoListView->setColumnAlignment(6,AlignHCenter); | 503 | mTodoListView->setColumnAlignment(6,AlignHCenter); |
504 | 504 | ||
505 | mTodoListView->addColumn(i18n("Cancelled")); | 505 | mTodoListView->addColumn(i18n("Cancelled")); |
506 | mTodoListView->addColumn(i18n("Categories")); | 506 | mTodoListView->addColumn(i18n("Categories")); |
507 | mTodoListView->addColumn(i18n("Calendar")); | 507 | mTodoListView->addColumn(i18n("Calendar")); |
508 | #if 0 | 508 | #if 0 |
509 | mTodoListView->addColumn(i18n("Sort Id")); | 509 | mTodoListView->addColumn(i18n("Sort Id")); |
510 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 510 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
511 | #endif | 511 | #endif |
512 | 512 | ||
513 | mTodoListView->setMinimumHeight( 60 ); | 513 | mTodoListView->setMinimumHeight( 60 ); |
514 | mTodoListView->setItemsRenameable( true ); | 514 | mTodoListView->setItemsRenameable( true ); |
@@ -823,704 +823,711 @@ void KOTodoView::storeCurrentItem() | |||
823 | mCurItemParent = mCurItemRootParent->relatedTo(); | 823 | mCurItemParent = mCurItemRootParent->relatedTo(); |
824 | while ( mCurItemRootParent->relatedTo() != 0 ) | 824 | while ( mCurItemRootParent->relatedTo() != 0 ) |
825 | mCurItemRootParent = mCurItemRootParent->relatedTo(); | 825 | mCurItemRootParent = mCurItemRootParent->relatedTo(); |
826 | } | 826 | } |
827 | mActiveItem = 0; | 827 | mActiveItem = 0; |
828 | } | 828 | } |
829 | 829 | ||
830 | void KOTodoView::resetCurrentItem() | 830 | void KOTodoView::resetCurrentItem() |
831 | { | 831 | { |
832 | mTodoListView->setFocus(); | 832 | mTodoListView->setFocus(); |
833 | KOTodoViewItem* foundItem = 0; | 833 | KOTodoViewItem* foundItem = 0; |
834 | KOTodoViewItem* foundItemRoot = 0; | 834 | KOTodoViewItem* foundItemRoot = 0; |
835 | KOTodoViewItem* foundItemParent = 0; | 835 | KOTodoViewItem* foundItemParent = 0; |
836 | KOTodoViewItem* foundItemAbove = 0; | 836 | KOTodoViewItem* foundItemAbove = 0; |
837 | if ( mTodoListView->firstChild () ) { | 837 | if ( mTodoListView->firstChild () ) { |
838 | if ( mCurItem ) { | 838 | if ( mCurItem ) { |
839 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); | 839 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); |
840 | while ( item ) { | 840 | while ( item ) { |
841 | if ( item->todo() == mCurItem ) { | 841 | if ( item->todo() == mCurItem ) { |
842 | foundItem = item; | 842 | foundItem = item; |
843 | break; | 843 | break; |
844 | } else if ( item->todo() == mCurItemAbove ) { | 844 | } else if ( item->todo() == mCurItemAbove ) { |
845 | foundItemAbove = item; | 845 | foundItemAbove = item; |
846 | 846 | ||
847 | } | 847 | } |
848 | if ( item->todo() == mCurItemRootParent ) { | 848 | if ( item->todo() == mCurItemRootParent ) { |
849 | foundItemRoot = item; | 849 | foundItemRoot = item; |
850 | } | 850 | } |
851 | if ( item->todo() == mCurItemParent ) { | 851 | if ( item->todo() == mCurItemParent ) { |
852 | foundItemParent = item; | 852 | foundItemParent = item; |
853 | } | 853 | } |
854 | item = (KOTodoViewItem*)item->itemBelow(); | 854 | item = (KOTodoViewItem*)item->itemBelow(); |
855 | } | 855 | } |
856 | if ( ! foundItem ) { | 856 | if ( ! foundItem ) { |
857 | if ( foundItemParent ) { | 857 | if ( foundItemParent ) { |
858 | foundItem = foundItemParent; | 858 | foundItem = foundItemParent; |
859 | } else { | 859 | } else { |
860 | if ( foundItemRoot ) | 860 | if ( foundItemRoot ) |
861 | foundItem = foundItemRoot; | 861 | foundItem = foundItemRoot; |
862 | else | 862 | else |
863 | foundItem = foundItemAbove; | 863 | foundItem = foundItemAbove; |
864 | } | 864 | } |
865 | } | 865 | } |
866 | } | 866 | } |
867 | if ( foundItem ) { | 867 | if ( foundItem ) { |
868 | mTodoListView->setCurrentItem( foundItem ); | 868 | mTodoListView->setCurrentItem( foundItem ); |
869 | mTodoListView->ensureItemVisible( foundItem ); | 869 | mTodoListView->ensureItemVisible( foundItem ); |
870 | } else { | 870 | } else { |
871 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); | 871 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); |
872 | } | 872 | } |
873 | } | 873 | } |
874 | mTodoListView->setFocus(); | 874 | mTodoListView->setFocus(); |
875 | } | 875 | } |
876 | //Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; | 876 | //Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; |
877 | bool KOTodoView::checkTodo( Todo * todo ) | 877 | bool KOTodoView::checkTodo( Todo * todo ) |
878 | { | 878 | { |
879 | 879 | ||
880 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) | 880 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) |
881 | return false; | 881 | return false; |
882 | if ( !todo->isCompleted() ) { | 882 | if ( !todo->isCompleted() ) { |
883 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) | 883 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) |
884 | return true; | 884 | return true; |
885 | } | 885 | } |
886 | if ( KOPrefs::instance()->mHideNonStartedTodos && mNavigator ) { | 886 | if ( KOPrefs::instance()->mHideNonStartedTodos && mNavigator ) { |
887 | if ( todo->hasStartDate() ) | 887 | if ( todo->hasStartDate() ) |
888 | if ( mNavigator->selectedDates().last() < todo->dtStart().date() ) | 888 | if ( mNavigator->selectedDates().last() < todo->dtStart().date() ) |
889 | return false; | 889 | return false; |
890 | if ( todo->hasDueDate() ) | 890 | if ( todo->hasDueDate() ) |
891 | if ( mNavigator->selectedDates().first() > todo->dtDue().date() ) | 891 | if ( mNavigator->selectedDates().first() > todo->dtDue().date() ) |
892 | return false; | 892 | return false; |
893 | } | 893 | } |
894 | return true; | 894 | return true; |
895 | } | 895 | } |
896 | 896 | ||
897 | void KOTodoView::restoreItemState( QListViewItem *item ) | 897 | void KOTodoView::restoreItemState( QListViewItem *item ) |
898 | { | 898 | { |
899 | pendingSubtodo = 0; | 899 | pendingSubtodo = 0; |
900 | while( item ) { | 900 | while( item ) { |
901 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; | 901 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; |
902 | todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) ); | 902 | todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) ); |
903 | if( item->childCount() > 0 ) restoreItemState( item->firstChild() ); | 903 | if( item->childCount() > 0 ) restoreItemState( item->firstChild() ); |
904 | item = item->nextSibling(); | 904 | item = item->nextSibling(); |
905 | } | 905 | } |
906 | } | 906 | } |
907 | 907 | ||
908 | 908 | ||
909 | QMap<Todo *,KOTodoViewItem *>::ConstIterator | 909 | QMap<Todo *,KOTodoViewItem *>::ConstIterator |
910 | KOTodoView::insertTodoItem(Todo *todo) | 910 | KOTodoView::insertTodoItem(Todo *todo) |
911 | { | 911 | { |
912 | 912 | ||
913 | // kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl; | 913 | // kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl; |
914 | // TODO: Check, if dynmaic cast is necessary | 914 | // TODO: Check, if dynmaic cast is necessary |
915 | 915 | ||
916 | pendingSubtodo = 0; | 916 | pendingSubtodo = 0; |
917 | Incidence *incidence = todo->relatedTo(); | 917 | Incidence *incidence = todo->relatedTo(); |
918 | while ( incidence && !incidence->calEnabled() ) | 918 | while ( incidence && !incidence->calEnabled() ) |
919 | incidence = incidence->relatedTo(); | 919 | incidence = incidence->relatedTo(); |
920 | if (incidence && incidence->typeID() == todoID ) { | 920 | if (incidence && incidence->typeID() == todoID ) { |
921 | Todo *relatedTodo = static_cast<Todo *>(incidence); | 921 | Todo *relatedTodo = static_cast<Todo *>(incidence); |
922 | 922 | ||
923 | // kdDebug() << " has Related" << endl; | 923 | // kdDebug() << " has Related" << endl; |
924 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; | 924 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; |
925 | itemIterator = mTodoMap.find(relatedTodo); | 925 | itemIterator = mTodoMap.find(relatedTodo); |
926 | if (itemIterator == mTodoMap.end()) { | 926 | if (itemIterator == mTodoMap.end()) { |
927 | // kdDebug() << " related not yet in list" << endl; | 927 | // kdDebug() << " related not yet in list" << endl; |
928 | itemIterator = insertTodoItem (relatedTodo); | 928 | itemIterator = insertTodoItem (relatedTodo); |
929 | } | 929 | } |
930 | // isn't this pretty stupid? We give one Todo to the KOTodoViewItem | 930 | // isn't this pretty stupid? We give one Todo to the KOTodoViewItem |
931 | // and one into the map. Sure finding is more easy but why? -zecke | 931 | // and one into the map. Sure finding is more easy but why? -zecke |
932 | KOTodoViewItem *todoItem = new KOTodoViewItem(*itemIterator,todo,this); | 932 | KOTodoViewItem *todoItem = new KOTodoViewItem(*itemIterator,todo,this); |
933 | return mTodoMap.insert(todo,todoItem); | 933 | return mTodoMap.insert(todo,todoItem); |
934 | } else { | 934 | } else { |
935 | // kdDebug() << " no Related" << endl; | 935 | // kdDebug() << " no Related" << endl; |
936 | // see above -zecke | 936 | // see above -zecke |
937 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); | 937 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); |
938 | return mTodoMap.insert(todo,todoItem); | 938 | return mTodoMap.insert(todo,todoItem); |
939 | } | 939 | } |
940 | } | 940 | } |
941 | 941 | ||
942 | 942 | ||
943 | void KOTodoView::updateConfig() | 943 | void KOTodoView::updateConfig() |
944 | { | 944 | { |
945 | updateView(); | 945 | updateView(); |
946 | mTodoListView->repaintContents(); | 946 | mTodoListView->repaintContents(); |
947 | } | 947 | } |
948 | 948 | ||
949 | QPtrList<Incidence> KOTodoView::selectedIncidences() | 949 | QPtrList<Incidence> KOTodoView::selectedIncidences() |
950 | { | 950 | { |
951 | QPtrList<Incidence> selected; | 951 | QPtrList<Incidence> selected; |
952 | 952 | ||
953 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 953 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
954 | // if (!item) item = mActiveItem; | 954 | // if (!item) item = mActiveItem; |
955 | if (item) selected.append(item->todo()); | 955 | if (item) selected.append(item->todo()); |
956 | 956 | ||
957 | return selected; | 957 | return selected; |
958 | } | 958 | } |
959 | 959 | ||
960 | QPtrList<Todo> KOTodoView::selectedTodos() | 960 | QPtrList<Todo> KOTodoView::selectedTodos() |
961 | { | 961 | { |
962 | QPtrList<Todo> selected; | 962 | QPtrList<Todo> selected; |
963 | 963 | ||
964 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 964 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
965 | // if (!item) item = mActiveItem; | 965 | // if (!item) item = mActiveItem; |
966 | if (item) selected.append(item->todo()); | 966 | if (item) selected.append(item->todo()); |
967 | 967 | ||
968 | return selected; | 968 | return selected; |
969 | } | 969 | } |
970 | 970 | ||
971 | void KOTodoView::changeEventDisplay(Event *, int) | 971 | void KOTodoView::changeEventDisplay(Event *, int) |
972 | { | 972 | { |
973 | updateView(); | 973 | updateView(); |
974 | } | 974 | } |
975 | 975 | ||
976 | void KOTodoView::showDates(const QDate &, const QDate &) | 976 | void KOTodoView::showDates(const QDate &, const QDate &) |
977 | { | 977 | { |
978 | } | 978 | } |
979 | 979 | ||
980 | void KOTodoView::showEvents(QPtrList<Event>) | 980 | void KOTodoView::showEvents(QPtrList<Event>) |
981 | { | 981 | { |
982 | kdDebug() << "KOTodoView::selectEvents(): not yet implemented" << endl; | 982 | kdDebug() << "KOTodoView::selectEvents(): not yet implemented" << endl; |
983 | } | 983 | } |
984 | 984 | ||
985 | void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd, | 985 | void KOTodoView::printPreview(CalPrinter *calPrinter, const QDate &fd, |
986 | const QDate &td) | 986 | const QDate &td) |
987 | { | 987 | { |
988 | #ifndef KORG_NOPRINTER | 988 | #ifndef KORG_NOPRINTER |
989 | calPrinter->preview(CalPrinter::Todolist, fd, td); | 989 | calPrinter->preview(CalPrinter::Todolist, fd, td); |
990 | #endif | 990 | #endif |
991 | } | 991 | } |
992 | 992 | ||
993 | void KOTodoView::editItem(QListViewItem *item ) | 993 | void KOTodoView::editItem(QListViewItem *item ) |
994 | { | 994 | { |
995 | emit editTodoSignal(((KOTodoViewItem *)item)->todo()); | 995 | emit editTodoSignal(((KOTodoViewItem *)item)->todo()); |
996 | } | 996 | } |
997 | 997 | ||
998 | void KOTodoView::showItem(QListViewItem *item,const QPoint &,int) | 998 | void KOTodoView::showItem(QListViewItem *item,const QPoint &,int) |
999 | { | 999 | { |
1000 | emit showTodoSignal(((KOTodoViewItem *)item)->todo()); | 1000 | emit showTodoSignal(((KOTodoViewItem *)item)->todo()); |
1001 | } | 1001 | } |
1002 | 1002 | ||
1003 | void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) | 1003 | void KOTodoView::popupMenu(QListViewItem *item,const QPoint &p,int column) |
1004 | { | 1004 | { |
1005 | pendingSubtodo = 0; | 1005 | pendingSubtodo = 0; |
1006 | mActiveItem = (KOTodoViewItem *)item; | 1006 | mActiveItem = (KOTodoViewItem *)item; |
1007 | if (item) { | 1007 | if (item) { |
1008 | switch (column){ | 1008 | switch (column){ |
1009 | case 1: | 1009 | case 1: |
1010 | mPriorityPopupMenu->popup(QCursor::pos ()); break; | 1010 | mPriorityPopupMenu->popup(QCursor::pos ()); break; |
1011 | case 2: | 1011 | case 2: |
1012 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; | 1012 | mPercentageCompletedPopupMenu->popup(QCursor::pos ()); break; |
1013 | case 3: | 1013 | case 3: |
1014 | moveTodo(); | 1014 | moveTodo(); |
1015 | break; | 1015 | break; |
1016 | case 8: | 1016 | case 8: |
1017 | getCategoryPopupMenu((KOTodoViewItem *)item)->popup(QCursor::pos ()); break; | 1017 | getCategoryPopupMenu((KOTodoViewItem *)item)->popup(QCursor::pos ()); break; |
1018 | default: | 1018 | default: |
1019 | mItemPopupMenu->popup(QCursor::pos()); | 1019 | mItemPopupMenu->popup(QCursor::pos()); |
1020 | } | 1020 | } |
1021 | } else mPopupMenu->popup(QCursor::pos()); | 1021 | } else mPopupMenu->popup(QCursor::pos()); |
1022 | } | 1022 | } |
1023 | void KOTodoView::newTodo() | 1023 | void KOTodoView::newTodo() |
1024 | { | 1024 | { |
1025 | emit newTodoSignal(); | 1025 | emit newTodoSignal(); |
1026 | } | 1026 | } |
1027 | 1027 | ||
1028 | void KOTodoView::newSubTodo() | 1028 | void KOTodoView::newSubTodo() |
1029 | { | 1029 | { |
1030 | if (mActiveItem) { | 1030 | if (mActiveItem) { |
1031 | emit newSubTodoSignal(mActiveItem->todo()); | 1031 | emit newSubTodoSignal(mActiveItem->todo()); |
1032 | } | 1032 | } |
1033 | } | 1033 | } |
1034 | void KOTodoView::unparentTodo() | 1034 | void KOTodoView::unparentTodo() |
1035 | { | 1035 | { |
1036 | if (mActiveItem) { | 1036 | if (mActiveItem) { |
1037 | emit unparentTodoSignal(mActiveItem->todo()); | 1037 | emit unparentTodoSignal(mActiveItem->todo()); |
1038 | } | 1038 | } |
1039 | } | 1039 | } |
1040 | 1040 | ||
1041 | void KOTodoView::reparentTodo() | 1041 | void KOTodoView::reparentTodo() |
1042 | { | 1042 | { |
1043 | if (mActiveItem) { | 1043 | if (mActiveItem) { |
1044 | topLevelWidget()->setCaption(i18n("Click on new parent item")); | 1044 | topLevelWidget()->setCaption(i18n("Click on new parent item")); |
1045 | pendingSubtodo = mActiveItem; | 1045 | pendingSubtodo = mActiveItem; |
1046 | } | 1046 | } |
1047 | } | 1047 | } |
1048 | void KOTodoView::editTodo() | 1048 | void KOTodoView::editTodo() |
1049 | { | 1049 | { |
1050 | if (mActiveItem) { | 1050 | if (mActiveItem) { |
1051 | emit editTodoSignal(mActiveItem->todo()); | 1051 | emit editTodoSignal(mActiveItem->todo()); |
1052 | } | 1052 | } |
1053 | } | 1053 | } |
1054 | void KOTodoView::cloneTodo() | 1054 | void KOTodoView::cloneTodo() |
1055 | { | 1055 | { |
1056 | if (mActiveItem) { | 1056 | if (mActiveItem) { |
1057 | emit cloneTodoSignal((Incidence*)mActiveItem->todo()); | 1057 | emit cloneTodoSignal((Incidence*)mActiveItem->todo()); |
1058 | } | 1058 | } |
1059 | } | 1059 | } |
1060 | void KOTodoView::cancelTodo() | 1060 | void KOTodoView::cancelTodo() |
1061 | { | 1061 | { |
1062 | if (mActiveItem) { | 1062 | if (mActiveItem) { |
1063 | emit cancelTodoSignal((Incidence*)mActiveItem->todo()); | 1063 | emit cancelTodoSignal((Incidence*)mActiveItem->todo()); |
1064 | } | 1064 | } |
1065 | } | 1065 | } |
1066 | void KOTodoView::moveTodo() | 1066 | void KOTodoView::moveTodo() |
1067 | { | 1067 | { |
1068 | if (mActiveItem) { | 1068 | if (mActiveItem) { |
1069 | emit moveTodoSignal((Incidence*)mActiveItem->todo()); | 1069 | emit moveTodoSignal((Incidence*)mActiveItem->todo()); |
1070 | } | 1070 | } |
1071 | } | 1071 | } |
1072 | void KOTodoView::beamTodo() | 1072 | void KOTodoView::beamTodo() |
1073 | { | 1073 | { |
1074 | if (mActiveItem) { | 1074 | if (mActiveItem) { |
1075 | emit beamTodoSignal((Incidence*)mActiveItem->todo()); | 1075 | emit beamTodoSignal((Incidence*)mActiveItem->todo()); |
1076 | } | 1076 | } |
1077 | } | 1077 | } |
1078 | 1078 | ||
1079 | 1079 | ||
1080 | void KOTodoView::showTodo() | 1080 | void KOTodoView::showTodo() |
1081 | { | 1081 | { |
1082 | if (mActiveItem) { | 1082 | if (mActiveItem) { |
1083 | emit showTodoSignal(mActiveItem->todo()); | 1083 | emit showTodoSignal(mActiveItem->todo()); |
1084 | } | 1084 | } |
1085 | } | 1085 | } |
1086 | 1086 | ||
1087 | void KOTodoView::deleteTodo() | 1087 | void KOTodoView::deleteTodo() |
1088 | { | 1088 | { |
1089 | if (mActiveItem) { | 1089 | if (mActiveItem) { |
1090 | emit deleteTodoSignal(mActiveItem->todo()); | 1090 | emit deleteTodoSignal(mActiveItem->todo()); |
1091 | } | 1091 | } |
1092 | } | 1092 | } |
1093 | 1093 | ||
1094 | void KOTodoView::setNewPriority(int index) | 1094 | void KOTodoView::setNewPriority(int index) |
1095 | { | 1095 | { |
1096 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 1096 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
1097 | mActiveItem->todo()->setPriority(mPriority[index]); | 1097 | mActiveItem->todo()->setPriority(mPriority[index]); |
1098 | mActiveItem->construct(); | 1098 | mActiveItem->construct(); |
1099 | todoModified (mActiveItem->todo(), KOGlobals::PRIORITY_MODIFIED); | 1099 | todoModified (mActiveItem->todo(), KOGlobals::PRIORITY_MODIFIED); |
1100 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); | 1100 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); |
1101 | } | 1101 | } |
1102 | } | 1102 | } |
1103 | 1103 | ||
1104 | void KOTodoView::setNewPercentage(int index) | 1104 | void KOTodoView::setNewPercentage(int index) |
1105 | { | 1105 | { |
1106 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 1106 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
1107 | 1107 | ||
1108 | if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { | 1108 | if ( mPercentage[index] == 100 && !mActiveItem->isOn() ) { |
1109 | mActiveItem->setOn( true ); | 1109 | mActiveItem->setOn( true ); |
1110 | return; | 1110 | return; |
1111 | } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { | 1111 | } else if ( mPercentage[index] != 100 && mActiveItem->isOn() ) { |
1112 | KOTodoViewItem* par = (static_cast<KOTodoViewItem*>(mActiveItem->parent())); | 1112 | KOTodoViewItem* par = (static_cast<KOTodoViewItem*>(mActiveItem->parent())); |
1113 | if ( par && par->isOn() ) | 1113 | if ( par && par->isOn() ) |
1114 | par->setOn( false ); | 1114 | par->setOn( false ); |
1115 | } | 1115 | } |
1116 | if (mPercentage[index] == 100) { | 1116 | if (mPercentage[index] == 100) { |
1117 | mActiveItem->todo()->setCompleted(QDateTime::currentDateTime()); | 1117 | mActiveItem->todo()->setCompleted(QDateTime::currentDateTime()); |
1118 | } else { | 1118 | } else { |
1119 | mActiveItem->todo()->setCompleted(false); | 1119 | mActiveItem->todo()->setCompleted(false); |
1120 | } | 1120 | } |
1121 | mActiveItem->todo()->setPercentComplete(mPercentage[index]); | 1121 | mActiveItem->todo()->setPercentComplete(mPercentage[index]); |
1122 | mActiveItem->construct(); | 1122 | mActiveItem->construct(); |
1123 | todoModified (mActiveItem->todo (), KOGlobals::COMPLETION_MODIFIED); | 1123 | todoModified (mActiveItem->todo (), KOGlobals::COMPLETION_MODIFIED); |
1124 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); | 1124 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); |
1125 | } | 1125 | } |
1126 | } | 1126 | } |
1127 | 1127 | ||
1128 | 1128 | ||
1129 | QPopupMenu * KOTodoView::getCategoryPopupMenu (KOTodoViewItem *todoItem) | 1129 | QPopupMenu * KOTodoView::getCategoryPopupMenu (KOTodoViewItem *todoItem) |
1130 | { | 1130 | { |
1131 | QPopupMenu* tempMenu = new QPopupMenu (this); | 1131 | QPopupMenu* tempMenu = new QPopupMenu (this); |
1132 | QStringList checkedCategories = todoItem->todo()->categories (); | 1132 | QStringList checkedCategories = todoItem->todo()->categories (); |
1133 | 1133 | ||
1134 | tempMenu->setCheckable (true); | 1134 | tempMenu->setCheckable (true); |
1135 | for (QStringList::Iterator it = KOPrefs::instance()->mCustomCategories.begin (); | 1135 | for (QStringList::Iterator it = KOPrefs::instance()->mCustomCategories.begin (); |
1136 | it != KOPrefs::instance()->mCustomCategories.end (); | 1136 | it != KOPrefs::instance()->mCustomCategories.end (); |
1137 | ++it) { | 1137 | ++it) { |
1138 | int index = tempMenu->insertItem (*it); | 1138 | int index = tempMenu->insertItem (*it); |
1139 | mCategory[index] = *it; | 1139 | mCategory[index] = *it; |
1140 | if (checkedCategories.find (*it) != checkedCategories.end ()) tempMenu->setItemChecked (index, true); | 1140 | if (checkedCategories.find (*it) != checkedCategories.end ()) tempMenu->setItemChecked (index, true); |
1141 | } | 1141 | } |
1142 | 1142 | ||
1143 | connect (tempMenu, SIGNAL (activated (int)), SLOT (changedCategories (int))); | 1143 | connect (tempMenu, SIGNAL (activated (int)), SLOT (changedCategories (int))); |
1144 | return tempMenu; | 1144 | return tempMenu; |
1145 | 1145 | ||
1146 | 1146 | ||
1147 | } | 1147 | } |
1148 | void KOTodoView::changedCategories(int index) | 1148 | void KOTodoView::changedCategories(int index) |
1149 | { | 1149 | { |
1150 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { | 1150 | if (mActiveItem && !mActiveItem->todo()->isReadOnly ()) { |
1151 | QStringList categories = mActiveItem->todo()->categories (); | 1151 | QStringList categories = mActiveItem->todo()->categories (); |
1152 | QString colcat = categories.first(); | 1152 | QString colcat = categories.first(); |
1153 | if (categories.find (mCategory[index]) != categories.end ()) | 1153 | if (categories.find (mCategory[index]) != categories.end ()) |
1154 | categories.remove (mCategory[index]); | 1154 | categories.remove (mCategory[index]); |
1155 | else | 1155 | else |
1156 | categories.insert (categories.end(), mCategory[index]); | 1156 | categories.insert (categories.end(), mCategory[index]); |
1157 | categories.sort (); | 1157 | categories.sort (); |
1158 | if ( !colcat.isEmpty() ) { | 1158 | if ( !colcat.isEmpty() ) { |
1159 | if ( categories.find ( colcat ) != categories.end () ) { | 1159 | if ( categories.find ( colcat ) != categories.end () ) { |
1160 | categories.remove( colcat ); | 1160 | categories.remove( colcat ); |
1161 | categories.prepend( colcat ); | 1161 | categories.prepend( colcat ); |
1162 | } | 1162 | } |
1163 | } | 1163 | } |
1164 | mActiveItem->todo()->setCategories (categories); | 1164 | mActiveItem->todo()->setCategories (categories); |
1165 | mActiveItem->construct(); | 1165 | mActiveItem->construct(); |
1166 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); | 1166 | mActiveItem->todo()->setRevision( mActiveItem->todo()->revision()+1 ); |
1167 | todoModified (mActiveItem->todo (), KOGlobals::CATEGORY_MODIFIED); | 1167 | todoModified (mActiveItem->todo (), KOGlobals::CATEGORY_MODIFIED); |
1168 | } | 1168 | } |
1169 | } | 1169 | } |
1170 | void KOTodoView::itemDoubleClicked(QListViewItem *item) | 1170 | void KOTodoView::itemDoubleClicked(QListViewItem *item) |
1171 | { | 1171 | { |
1172 | if ( pendingSubtodo != 0 ) { | 1172 | if ( pendingSubtodo != 0 ) { |
1173 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); | 1173 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); |
1174 | } | 1174 | } |
1175 | pendingSubtodo = 0; | 1175 | pendingSubtodo = 0; |
1176 | //int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); | 1176 | //int row = mTodoListView->header()->sectionAt ( mTodoListView->header()->mapFromGlobal( QCursor::pos()).x() ); |
1177 | int row = mTodoListView->header()->sectionAt ( mTodoListView->viewportToContents(mTodoListView->viewport()->mapFromGlobal( QCursor::pos())) .x() ); | 1177 | int row = mTodoListView->header()->sectionAt ( mTodoListView->viewportToContents(mTodoListView->viewport()->mapFromGlobal( QCursor::pos())) .x() ); |
1178 | //qDebug("ROW %d ", row); | 1178 | //qDebug("ROW %d ", row); |
1179 | if (!item) { | 1179 | if (!item) { |
1180 | newTodo(); | 1180 | newTodo(); |
1181 | return; | 1181 | return; |
1182 | } else { | 1182 | } else { |
1183 | if ( row == 2 || row == 1 ) { | 1183 | if ( row == 2 || row == 1 ) { |
1184 | mActiveItem = (KOTodoViewItem *) item; | 1184 | mActiveItem = (KOTodoViewItem *) item; |
1185 | newSubTodo(); | 1185 | newSubTodo(); |
1186 | return; | 1186 | return; |
1187 | } | 1187 | } |
1188 | if ( row == 5 || row == 6 ) { | 1188 | if ( row == 5 || row == 6 ) { |
1189 | mActiveItem = (KOTodoViewItem *) item; | 1189 | mActiveItem = (KOTodoViewItem *) item; |
1190 | toggleRunningItem(); | 1190 | toggleRunningItem(); |
1191 | return; | 1191 | return; |
1192 | } | 1192 | } |
1193 | } | 1193 | } |
1194 | if ( KOPrefs::instance()->mEditOnDoubleClick ) | 1194 | if ( KOPrefs::instance()->mEditOnDoubleClick ) |
1195 | editItem( item ); | 1195 | editItem( item ); |
1196 | else | 1196 | else |
1197 | showItem( item , QPoint(), 0 ); | 1197 | showItem( item , QPoint(), 0 ); |
1198 | } | 1198 | } |
1199 | void KOTodoView::toggleRunningItem() | 1199 | void KOTodoView::toggleRunningItem() |
1200 | { | 1200 | { |
1201 | // qDebug("KOTodoView::toggleRunning() "); | 1201 | // qDebug("KOTodoView::toggleRunning() "); |
1202 | if ( ! mActiveItem ) | 1202 | if ( ! mActiveItem ) |
1203 | return; | 1203 | return; |
1204 | Todo * t = mActiveItem->todo(); | 1204 | Todo * t = mActiveItem->todo(); |
1205 | if ( t->isRunning() ) { | 1205 | if ( t->isRunning() ) { |
1206 | KOStopTodoPrefs tp ( t, this ); | 1206 | KOStopTodoPrefs tp ( t, this ); |
1207 | if (QApplication::desktop()->width() < 800 ){ | ||
1208 | int wid = tp.width(); | ||
1209 | int hei = tp.height(); | ||
1210 | int xx = (QApplication::desktop()->width()-wid)/2; | ||
1211 | int yy = (QApplication::desktop()->height()-hei)/2; | ||
1212 | tp.setGeometry( xx,yy,wid,hei ); | ||
1213 | } | ||
1207 | tp.exec(); | 1214 | tp.exec(); |
1208 | mActiveItem->construct(); | 1215 | mActiveItem->construct(); |
1209 | } else { | 1216 | } else { |
1210 | int result = KMessageBox::warningContinueCancel(this, | 1217 | int result = KMessageBox::warningContinueCancel(this, |
1211 | i18n("<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>").arg(mActiveItem->text(0).left( 25 ) ),i18n("Start todo"),i18n("Start todo"),i18n("Cancel"), true); | 1218 | i18n("<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>").arg(mActiveItem->text(0).left( 25 ) ),i18n("Start todo"),i18n("Start todo"),i18n("Cancel"), true); |
1212 | if (result != KMessageBox::Continue) return; | 1219 | if (result != KMessageBox::Continue) return; |
1213 | t->setRunning( true ); | 1220 | t->setRunning( true ); |
1214 | mActiveItem->construct(); | 1221 | mActiveItem->construct(); |
1215 | } | 1222 | } |
1216 | } | 1223 | } |
1217 | 1224 | ||
1218 | void KOTodoView::itemClicked(QListViewItem *item) | 1225 | void KOTodoView::itemClicked(QListViewItem *item) |
1219 | { | 1226 | { |
1220 | //qDebug("KOTodoView::itemClicked %d", item); | 1227 | //qDebug("KOTodoView::itemClicked %d", item); |
1221 | if (!item) { | 1228 | if (!item) { |
1222 | if ( pendingSubtodo != 0 ) { | 1229 | if ( pendingSubtodo != 0 ) { |
1223 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); | 1230 | topLevelWidget()->setCaption(i18n("Reparenting aborted!")); |
1224 | } | 1231 | } |
1225 | pendingSubtodo = 0; | 1232 | pendingSubtodo = 0; |
1226 | return; | 1233 | return; |
1227 | } | 1234 | } |
1228 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; | 1235 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; |
1229 | if ( pendingSubtodo != 0 ) { | 1236 | if ( pendingSubtodo != 0 ) { |
1230 | bool allowReparent = true; | 1237 | bool allowReparent = true; |
1231 | QListViewItem *par = item; | 1238 | QListViewItem *par = item; |
1232 | while ( par ) { | 1239 | while ( par ) { |
1233 | if ( par == pendingSubtodo ) { | 1240 | if ( par == pendingSubtodo ) { |
1234 | allowReparent = false; | 1241 | allowReparent = false; |
1235 | break; | 1242 | break; |
1236 | } | 1243 | } |
1237 | par = par->parent(); | 1244 | par = par->parent(); |
1238 | } | 1245 | } |
1239 | if ( !allowReparent ) { | 1246 | if ( !allowReparent ) { |
1240 | topLevelWidget()->setCaption(i18n("Recursive reparenting not possible!")); | 1247 | topLevelWidget()->setCaption(i18n("Recursive reparenting not possible!")); |
1241 | pendingSubtodo = 0; | 1248 | pendingSubtodo = 0; |
1242 | } else { | 1249 | } else { |
1243 | Todo* newParent = todoItem->todo(); | 1250 | Todo* newParent = todoItem->todo(); |
1244 | Todo* newSub = pendingSubtodo->todo(); | 1251 | Todo* newSub = pendingSubtodo->todo(); |
1245 | pendingSubtodo = 0; | 1252 | pendingSubtodo = 0; |
1246 | emit reparentTodoSignal( newParent,newSub ); | 1253 | emit reparentTodoSignal( newParent,newSub ); |
1247 | return; | 1254 | return; |
1248 | } | 1255 | } |
1249 | } | 1256 | } |
1250 | 1257 | ||
1251 | } | 1258 | } |
1252 | 1259 | ||
1253 | void KOTodoView::setDocumentId( const QString &id ) | 1260 | void KOTodoView::setDocumentId( const QString &id ) |
1254 | { | 1261 | { |
1255 | 1262 | ||
1256 | mDocPrefs->setDoc( id ); | 1263 | mDocPrefs->setDoc( id ); |
1257 | } | 1264 | } |
1258 | 1265 | ||
1259 | void KOTodoView::itemStateChanged( QListViewItem *item ) | 1266 | void KOTodoView::itemStateChanged( QListViewItem *item ) |
1260 | { | 1267 | { |
1261 | if (!item) return; | 1268 | if (!item) return; |
1262 | 1269 | ||
1263 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; | 1270 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; |
1264 | 1271 | ||
1265 | // kdDebug() << "KOTodoView::itemStateChanged(): " << todoItem->todo()->summary() << endl; | 1272 | // kdDebug() << "KOTodoView::itemStateChanged(): " << todoItem->todo()->summary() << endl; |
1266 | 1273 | ||
1267 | if( mDocPrefs ) mDocPrefs->writeEntry( todoItem->todo()->uid(), todoItem->isOpen() ); | 1274 | if( mDocPrefs ) mDocPrefs->writeEntry( todoItem->todo()->uid(), todoItem->isOpen() ); |
1268 | } | 1275 | } |
1269 | 1276 | ||
1270 | void KOTodoView::saveLayout(KConfig *config, const QString &group) const | 1277 | void KOTodoView::saveLayout(KConfig *config, const QString &group) const |
1271 | { | 1278 | { |
1272 | mTodoListView->saveLayout(config,group); | 1279 | mTodoListView->saveLayout(config,group); |
1273 | } | 1280 | } |
1274 | 1281 | ||
1275 | void KOTodoView::restoreLayout(KConfig *config, const QString &group) | 1282 | void KOTodoView::restoreLayout(KConfig *config, const QString &group) |
1276 | { | 1283 | { |
1277 | mTodoListView->restoreLayout(config,group); | 1284 | mTodoListView->restoreLayout(config,group); |
1278 | } | 1285 | } |
1279 | 1286 | ||
1280 | void KOTodoView::processSelectionChange() | 1287 | void KOTodoView::processSelectionChange() |
1281 | { | 1288 | { |
1282 | // kdDebug() << "KOTodoView::processSelectionChange()" << endl; | 1289 | // kdDebug() << "KOTodoView::processSelectionChange()" << endl; |
1283 | 1290 | ||
1284 | KOTodoViewItem *item = | 1291 | KOTodoViewItem *item = |
1285 | static_cast<KOTodoViewItem *>( mTodoListView->selectedItem() ); | 1292 | static_cast<KOTodoViewItem *>( mTodoListView->selectedItem() ); |
1286 | 1293 | ||
1287 | if ( !item ) { | 1294 | if ( !item ) { |
1288 | emit incidenceSelected( 0 ); | 1295 | emit incidenceSelected( 0 ); |
1289 | } else { | 1296 | } else { |
1290 | emit incidenceSelected( item->todo() ); | 1297 | emit incidenceSelected( item->todo() ); |
1291 | } | 1298 | } |
1292 | } | 1299 | } |
1293 | 1300 | ||
1294 | void KOTodoView::modified(bool b) | 1301 | void KOTodoView::modified(bool b) |
1295 | { | 1302 | { |
1296 | emit isModified(b); | 1303 | emit isModified(b); |
1297 | } | 1304 | } |
1298 | void KOTodoView::setTodoModified( Todo* todo ) | 1305 | void KOTodoView::setTodoModified( Todo* todo ) |
1299 | { | 1306 | { |
1300 | todoModified( todo, KOGlobals::UNKNOWN_MODIFIED ); | 1307 | todoModified( todo, KOGlobals::UNKNOWN_MODIFIED ); |
1301 | } | 1308 | } |
1302 | void KOTodoView::clearSelection() | 1309 | void KOTodoView::clearSelection() |
1303 | { | 1310 | { |
1304 | mTodoListView->selectAll( false ); | 1311 | mTodoListView->selectAll( false ); |
1305 | } | 1312 | } |
1306 | void KOTodoView::setAllOpen() | 1313 | void KOTodoView::setAllOpen() |
1307 | { | 1314 | { |
1308 | if ( isFlatDisplay ) { | 1315 | if ( isFlatDisplay ) { |
1309 | isFlatDisplay = false; | 1316 | isFlatDisplay = false; |
1310 | mPopupMenu->setItemChecked( 8,false ); | 1317 | mPopupMenu->setItemChecked( 8,false ); |
1311 | updateView(); | 1318 | updateView(); |
1312 | } else { | 1319 | } else { |
1313 | storeCurrentItem(); | 1320 | storeCurrentItem(); |
1314 | } | 1321 | } |
1315 | setOpen(mTodoListView->firstChild(), true); | 1322 | setOpen(mTodoListView->firstChild(), true); |
1316 | resetCurrentItem(); | 1323 | resetCurrentItem(); |
1317 | } | 1324 | } |
1318 | void KOTodoView::setAllClose() | 1325 | void KOTodoView::setAllClose() |
1319 | { | 1326 | { |
1320 | if ( isFlatDisplay ) { | 1327 | if ( isFlatDisplay ) { |
1321 | isFlatDisplay = false; | 1328 | isFlatDisplay = false; |
1322 | mPopupMenu->setItemChecked( 8,false ); | 1329 | mPopupMenu->setItemChecked( 8,false ); |
1323 | updateView(); | 1330 | updateView(); |
1324 | } else { | 1331 | } else { |
1325 | storeCurrentItem(); | 1332 | storeCurrentItem(); |
1326 | } | 1333 | } |
1327 | setOpen(mTodoListView->firstChild(), false); | 1334 | setOpen(mTodoListView->firstChild(), false); |
1328 | resetCurrentItem(); | 1335 | resetCurrentItem(); |
1329 | } | 1336 | } |
1330 | void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) | 1337 | void KOTodoView::setOpen( QListViewItem* item, bool setOpenI) |
1331 | { | 1338 | { |
1332 | 1339 | ||
1333 | while ( item ) { | 1340 | while ( item ) { |
1334 | setOpen( item->firstChild(), setOpenI ); | 1341 | setOpen( item->firstChild(), setOpenI ); |
1335 | item->setOpen( setOpenI ); | 1342 | item->setOpen( setOpenI ); |
1336 | item = item->nextSibling(); | 1343 | item = item->nextSibling(); |
1337 | } | 1344 | } |
1338 | } | 1345 | } |
1339 | 1346 | ||
1340 | void KOTodoView::displayAllFlat() | 1347 | void KOTodoView::displayAllFlat() |
1341 | { | 1348 | { |
1342 | pendingSubtodo = 0; | 1349 | pendingSubtodo = 0; |
1343 | if ( mBlockUpdate ) { | 1350 | if ( mBlockUpdate ) { |
1344 | return; | 1351 | return; |
1345 | } | 1352 | } |
1346 | mPopupMenu->setItemChecked( 8,true ); | 1353 | mPopupMenu->setItemChecked( 8,true ); |
1347 | isFlatDisplay = true; | 1354 | isFlatDisplay = true; |
1348 | QPtrList<Todo> todoList = calendar()->todos(); | 1355 | QPtrList<Todo> todoList = calendar()->todos(); |
1349 | mTodoMap.clear(); | 1356 | mTodoMap.clear(); |
1350 | mTodoListView->clear(); | 1357 | mTodoListView->clear(); |
1351 | Todo *todo; | 1358 | Todo *todo; |
1352 | for(todo = todoList.first(); todo; todo = todoList.next()) { | 1359 | for(todo = todoList.first(); todo; todo = todoList.next()) { |
1353 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); | 1360 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); |
1354 | mTodoMap.insert(todo,todoItem); | 1361 | mTodoMap.insert(todo,todoItem); |
1355 | } | 1362 | } |
1356 | mTodoListView->setFocus(); | 1363 | mTodoListView->setFocus(); |
1357 | processSelectionChange(); | 1364 | processSelectionChange(); |
1358 | } | 1365 | } |
1359 | 1366 | ||
1360 | void KOTodoView::setAllFlat() | 1367 | void KOTodoView::setAllFlat() |
1361 | { | 1368 | { |
1362 | if ( isFlatDisplay ) { | 1369 | if ( isFlatDisplay ) { |
1363 | isFlatDisplay = false; | 1370 | isFlatDisplay = false; |
1364 | mPopupMenu->setItemChecked( 8,false ); | 1371 | mPopupMenu->setItemChecked( 8,false ); |
1365 | updateView(); | 1372 | updateView(); |
1366 | return; | 1373 | return; |
1367 | } | 1374 | } |
1368 | storeCurrentItem(); | 1375 | storeCurrentItem(); |
1369 | displayAllFlat(); | 1376 | displayAllFlat(); |
1370 | resetCurrentItem(); | 1377 | resetCurrentItem(); |
1371 | } | 1378 | } |
1372 | 1379 | ||
1373 | void KOTodoView::purgeCompleted() | 1380 | void KOTodoView::purgeCompleted() |
1374 | { | 1381 | { |
1375 | emit purgeCompletedSignal(); | 1382 | emit purgeCompletedSignal(); |
1376 | 1383 | ||
1377 | } | 1384 | } |
1378 | void KOTodoView::toggleQuickTodo() | 1385 | void KOTodoView::toggleQuickTodo() |
1379 | { | 1386 | { |
1380 | if ( mQuickAdd->isVisible() ) { | 1387 | if ( mQuickAdd->isVisible() ) { |
1381 | mQuickAdd->hide(); | 1388 | mQuickAdd->hide(); |
1382 | KOPrefs::instance()->mEnableQuickTodo = false; | 1389 | KOPrefs::instance()->mEnableQuickTodo = false; |
1383 | } | 1390 | } |
1384 | else { | 1391 | else { |
1385 | mQuickAdd->show(); | 1392 | mQuickAdd->show(); |
1386 | KOPrefs::instance()->mEnableQuickTodo = true; | 1393 | KOPrefs::instance()->mEnableQuickTodo = true; |
1387 | } | 1394 | } |
1388 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); | 1395 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); |
1389 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); | 1396 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); |
1390 | } | 1397 | } |
1391 | 1398 | ||
1392 | void KOTodoView::toggleRunning() | 1399 | void KOTodoView::toggleRunning() |
1393 | { | 1400 | { |
1394 | KOPrefs::instance()->mHideNonStartedTodos = !KOPrefs::instance()->mHideNonStartedTodos; | 1401 | KOPrefs::instance()->mHideNonStartedTodos = !KOPrefs::instance()->mHideNonStartedTodos; |
1395 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); | 1402 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); |
1396 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); | 1403 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); |
1397 | updateView(); | 1404 | updateView(); |
1398 | } | 1405 | } |
1399 | 1406 | ||
1400 | void KOTodoView::toggleCompleted() | 1407 | void KOTodoView::toggleCompleted() |
1401 | { | 1408 | { |
1402 | KOPrefs::instance()->mShowCompletedTodo = !KOPrefs::instance()->mShowCompletedTodo; | 1409 | KOPrefs::instance()->mShowCompletedTodo = !KOPrefs::instance()->mShowCompletedTodo; |
1403 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); | 1410 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); |
1404 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); | 1411 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); |
1405 | updateView(); | 1412 | updateView(); |
1406 | } | 1413 | } |
1407 | 1414 | ||
1408 | void KOTodoView::addQuickTodo() | 1415 | void KOTodoView::addQuickTodo() |
1409 | { | 1416 | { |
1410 | Todo *todo = new Todo(); | 1417 | Todo *todo = new Todo(); |
1411 | todo->setSummary(mQuickAdd->text()); | 1418 | todo->setSummary(mQuickAdd->text()); |
1412 | todo->setOrganizer(KOPrefs::instance()->email()); | 1419 | todo->setOrganizer(KOPrefs::instance()->email()); |
1413 | CalFilter * cf = mCalendar->filter(); | 1420 | CalFilter * cf = mCalendar->filter(); |
1414 | if ( cf ) { | 1421 | if ( cf ) { |
1415 | if ( cf->isEnabled()&& cf->showCategories()) { | 1422 | if ( cf->isEnabled()&& cf->showCategories()) { |
1416 | todo->setCategories(cf->categoryList()); | 1423 | todo->setCategories(cf->categoryList()); |
1417 | } | 1424 | } |
1418 | if ( cf->isEnabled() ) | 1425 | if ( cf->isEnabled() ) |
1419 | todo->setSecrecy( cf->getSecrecy()); | 1426 | todo->setSecrecy( cf->getSecrecy()); |
1420 | } | 1427 | } |
1421 | mCalendar->addTodo(todo); | 1428 | mCalendar->addTodo(todo); |
1422 | mQuickAdd->setText(""); | 1429 | mQuickAdd->setText(""); |
1423 | todoModified (todo, KOGlobals::EVENTADDED ); | 1430 | todoModified (todo, KOGlobals::EVENTADDED ); |
1424 | updateView(); | 1431 | updateView(); |
1425 | } | 1432 | } |
1426 | 1433 | ||
1427 | void KOTodoView::keyPressEvent ( QKeyEvent * e ) | 1434 | void KOTodoView::keyPressEvent ( QKeyEvent * e ) |
1428 | { | 1435 | { |
1429 | // e->ignore(); | 1436 | // e->ignore(); |
1430 | //return; | 1437 | //return; |
1431 | //qDebug("KOTodoView::keyPressEvent "); | 1438 | //qDebug("KOTodoView::keyPressEvent "); |
1432 | switch ( e->key() ) { | 1439 | switch ( e->key() ) { |
1433 | case Qt::Key_Down: | 1440 | case Qt::Key_Down: |
1434 | case Qt::Key_Up: | 1441 | case Qt::Key_Up: |
1435 | QWidget::keyPressEvent ( e ); | 1442 | QWidget::keyPressEvent ( e ); |
1436 | break; | 1443 | break; |
1437 | 1444 | ||
1438 | case Qt::Key_Q: | 1445 | case Qt::Key_Q: |
1439 | toggleQuickTodo(); | 1446 | toggleQuickTodo(); |
1440 | break; | 1447 | break; |
1441 | case Qt::Key_U: | 1448 | case Qt::Key_U: |
1442 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) { | 1449 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) { |
1443 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | 1450 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); |
1444 | unparentTodo(); | 1451 | unparentTodo(); |
1445 | e->accept(); | 1452 | e->accept(); |
1446 | } else | 1453 | } else |
1447 | e->ignore(); | 1454 | e->ignore(); |
1448 | break; | 1455 | break; |
1449 | case Qt::Key_S: | 1456 | case Qt::Key_S: |
1450 | if ( e->state() == Qt::ControlButton ) { | 1457 | if ( e->state() == Qt::ControlButton ) { |
1451 | e->ignore(); | 1458 | e->ignore(); |
1452 | break; | 1459 | break; |
1453 | } | 1460 | } |
1454 | if ( e->state() == Qt::ShiftButton ) { | 1461 | if ( e->state() == Qt::ShiftButton ) { |
1455 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | 1462 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); |
1456 | reparentTodo(); | 1463 | reparentTodo(); |
1457 | e->accept(); | 1464 | e->accept(); |
1458 | } else | 1465 | } else |
1459 | e->ignore(); | 1466 | e->ignore(); |
1460 | break; | 1467 | break; |
1461 | case Qt::Key_P: | 1468 | case Qt::Key_P: |
1462 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) { | 1469 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) { |
1463 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | 1470 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); |
1464 | if ( pendingSubtodo ) | 1471 | if ( pendingSubtodo ) |
1465 | itemClicked(mActiveItem); | 1472 | itemClicked(mActiveItem); |
1466 | e->accept(); | 1473 | e->accept(); |
1467 | } else | 1474 | } else |
1468 | e->ignore(); | 1475 | e->ignore(); |
1469 | break; | 1476 | break; |
1470 | case Qt::Key_Escape: | 1477 | case Qt::Key_Escape: |
1471 | if ( pendingSubtodo ) { | 1478 | if ( pendingSubtodo ) { |
1472 | itemClicked(0); | 1479 | itemClicked(0); |
1473 | e->accept(); | 1480 | e->accept(); |
1474 | } else | 1481 | } else |
1475 | e->ignore(); | 1482 | e->ignore(); |
1476 | break; | 1483 | break; |
1477 | default: | 1484 | default: |
1478 | e->ignore(); | 1485 | e->ignore(); |
1479 | } | 1486 | } |
1480 | 1487 | ||
1481 | if ( true ) { | 1488 | if ( true ) { |
1482 | if ( e->key() == Qt::Key_I ) { | 1489 | if ( e->key() == Qt::Key_I ) { |
1483 | KOTodoViewItem*cn = (KOTodoViewItem*)mTodoListView->currentItem(); | 1490 | KOTodoViewItem*cn = (KOTodoViewItem*)mTodoListView->currentItem(); |
1484 | if ( cn ) { | 1491 | if ( cn ) { |
1485 | mActiveItem = cn; | 1492 | mActiveItem = cn; |
1486 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); | 1493 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); |
1487 | if ( ci ){ | 1494 | if ( ci ){ |
1488 | showTodo(); | 1495 | showTodo(); |
1489 | cn = (KOTodoViewItem*)cn->itemBelow(); | 1496 | cn = (KOTodoViewItem*)cn->itemBelow(); |
1490 | if ( cn ) { | 1497 | if ( cn ) { |
1491 | mTodoListView->setCurrentItem ( cn ); | 1498 | mTodoListView->setCurrentItem ( cn ); |
1492 | mTodoListView->ensureItemVisible ( cn ); | 1499 | mTodoListView->ensureItemVisible ( cn ); |
1493 | } | 1500 | } |
1494 | 1501 | ||
1495 | } | 1502 | } |
1496 | } | 1503 | } |
1497 | e->accept(); | 1504 | e->accept(); |
1498 | 1505 | ||
1499 | } | 1506 | } |
1500 | 1507 | ||
1501 | } | 1508 | } |
1502 | 1509 | ||
1503 | } | 1510 | } |
1504 | void KOTodoView::updateTodo( Todo * t, int type ) | 1511 | void KOTodoView::updateTodo( Todo * t, int type ) |
1505 | { | 1512 | { |
1506 | if ( mBlockUpdate) | 1513 | if ( mBlockUpdate) |
1507 | return; | 1514 | return; |
1508 | 1515 | ||
1509 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; | 1516 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; |
1510 | itemIterator = mTodoMap.find(t); | 1517 | itemIterator = mTodoMap.find(t); |
1511 | if (itemIterator != mTodoMap.end()) { | 1518 | if (itemIterator != mTodoMap.end()) { |
1512 | (*itemIterator)->construct(); | 1519 | (*itemIterator)->construct(); |
1513 | } else { | 1520 | } else { |
1514 | if ( type == KOGlobals::EVENTADDED ) { | 1521 | if ( type == KOGlobals::EVENTADDED ) { |
1515 | insertTodoItem( t ); | 1522 | insertTodoItem( t ); |
1516 | } | 1523 | } |
1517 | } | 1524 | } |
1518 | 1525 | ||
1519 | } | 1526 | } |
1520 | 1527 | ||
1521 | void KOTodoView::todoModified(Todo * t , int p ) | 1528 | void KOTodoView::todoModified(Todo * t , int p ) |
1522 | { | 1529 | { |
1523 | mBlockUpdate = true; | 1530 | mBlockUpdate = true; |
1524 | emit todoModifiedSignal ( t, p ); | 1531 | emit todoModifiedSignal ( t, p ); |
1525 | mBlockUpdate = false; | 1532 | mBlockUpdate = false; |
1526 | } | 1533 | } |