summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-04-14 18:10:19 (UTC)
committer zautrix <zautrix>2005-04-14 18:10:19 (UTC)
commitd334d77ab00b91b9527bb5992b476c656c88b2fa (patch) (unidiff)
tree59679cec875179b5b469830e43303cb9480ab1ac
parentbbdca90c599aaea557d31552c6bc33fc15e397cd (diff)
downloadkdepimpi-d334d77ab00b91b9527bb5992b476c656c88b2fa.zip
kdepimpi-d334d77ab00b91b9527bb5992b476c656c88b2fa.tar.gz
kdepimpi-d334d77ab00b91b9527bb5992b476c656c88b2fa.tar.bz2
transl fix
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt16
-rw-r--r--korganizer/kotodoview.cpp7
2 files changed, 13 insertions, 10 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index ca73f9b..4d44e32 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -112,33 +112,33 @@
112{ "DateNavigator:(nr)","Datums Navigator" }, 112{ "DateNavigator:(nr)","Datums Navigator" },
113{ "Dates: ","Datum: " }, 113{ "Dates: ","Datum: " },
114{ "Date && Time","Datum && Zeit" }, 114{ "Date && Time","Datum && Zeit" },
115{ "Day begins at:","Der Tag beginnt um:" }, 115{ "Day begins at:","Der Tag beginnt um:" },
116{ "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, 116{ "Days in Next-X-Days:","Tage in Nächste-X-Tage:" },
117{ "Days in What's Next:","Tage in What's Next:" }, 117{ "Days in What's Next:","Tage in What's Next:" },
118{ "day(s)","Tag(e)" }, 118{ "day(s)","Tag(e)" },
119{ "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, 119{ "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" },
120{ "day","Tag" }, 120{ "day","Tag" },
121{ "Dec","Dez" }, 121{ "Dec","Dez" },
122{ "December","Dezember" }, 122{ "December","Dezember" },
123{ "Default alarm time:","Standard Alarmzeit:" }, 123{ "Default alarm time:","Standard Alarmzeit:" },
124{ "Default appointment time:","Standard Termin Startzeit:" }, 124{ "Default appointment time:","Standard Termin Startzeit:" },
125{ "Default event color:","Standard Terminfarbe:" }, 125{ "Default event color:","Standard Terminfarbe:" },
126{ "Default","Standard" }, 126{ "Default","Standard" },
127{ "Def. duration of new app.:","Standard Termin Länge:" }, 127{ "Def. duration of new app.:","Standard Termin Länge:" },
128{ "Delete all completed To-Dos?","Alle bereits erledigten Todos löschen?" }, 128{ "Delete all completed ToDos?","Alle bereits erledigten Todos löschen?" },
129{ "Delete All","Lösche alles" }, 129{ "Delete All","Lösche alles" },
130{ "Delete all selected","Lösche alle Selektierten" }, 130{ "Delete all selected","Lösche alle Selektierten" },
131{ "Delete Current","Aktuellen löschen" }, 131{ "Delete Current","Aktuellen löschen" },
132{ "Delete Event...","Lösche Termin..." }, 132{ "Delete Event...","Lösche Termin..." },
133{ "Delete Event","Lösche Termin" }, 133{ "Delete Event","Lösche Termin" },
134{ "&Delete","Löschen" }, 134{ "&Delete","Löschen" },
135{ "Delete...","Löschen..." }, 135{ "Delete...","Löschen..." },
136{ "Delete","Löschen" }, 136{ "Delete","Löschen" },
137{ "Delete Todo...","Lösche Todo..." }, 137{ "Delete Todo...","Lösche Todo..." },
138{ "Delete To-Do","Lösche Todo" }, 138{ "Delete To-Do","Lösche Todo" },
139{ "Deleting item %d ...","Lösche Eintrag %d..." }, 139{ "Deleting item %d ...","Lösche Eintrag %d..." },
140{ "Descriptions","Beschreibungen" }, 140{ "Descriptions","Beschreibungen" },
141{ "Deselect all","Deselektiere Alle" }, 141{ "Deselect all","Deselektiere Alle" },
142{ "Details","Details" }, 142{ "Details","Details" },
143{ "Dinner","Abendessen" }, 143{ "Dinner","Abendessen" },
144{ "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, 144{ "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" },
@@ -297,33 +297,33 @@
297{ "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, 297{ "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." },
298{ "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, 298{ "Please specify a valid start time.","Bitte gültige Startzeit angeben."},
299{ "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, 299{ "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." },
300{ "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, 300{ "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" },
301{ "&Previous Day","Vorheriger Tag" }, 301{ "&Previous Day","Vorheriger Tag" },
302{ "Previous month","Vorheriger Monat" }, 302{ "Previous month","Vorheriger Monat" },
303{ "Previous Month","Vorheriger Monat" }, 303{ "Previous Month","Vorheriger Monat" },
304{ "&Previous Week","Vorherige Woche" }, 304{ "&Previous Week","Vorherige Woche" },
305{ "Previous year","Vorheriges Jahr" }, 305{ "Previous year","Vorheriges Jahr" },
306{ "Previous Year","Vorheriges Jahr" }, 306{ "Previous Year","Vorheriges Jahr" },
307{ "Printing","Drucken" }, 307{ "Printing","Drucken" },
308{ "Priority:","Priorität:" }, 308{ "Priority:","Priorität:" },
309{ "Private","Privat" }, 309{ "Private","Privat" },
310{ "Proceed","Weiter" }, 310{ "Proceed","Weiter" },
311{ "Public","Öffentlich" }, 311{ "Public","Öffentlich" },
312{ "Purge","Entferne" }, 312{ "Purge","Entferne" },
313{ "Purge Completed","Entferne erledigte ToDos" }, 313{ "Purge Completed","Entferne erledigte Todos" },
314{ "Purge To-Dos","Todos bereinigen" }, 314{ "Purge To-Dos","Todos bereinigen" },
315{ "read-only","schreibgeschützt" }, 315{ "read-only","schreibgeschützt" },
316{ "Recur every","Wiederh. alle" }, 316{ "Recur every","Wiederh. alle" },
317{ "Recur in the month of","Wiederh. im Monat" }, 317{ "Recur in the month of","Wiederh. im Monat" },
318{ "Recur on the","Wiederh. am" }, 318{ "Recur on the","Wiederh. am" },
319{ "Recur on this day","Wiederh. am diesen Tag" }, 319{ "Recur on this day","Wiederh. am diesen Tag" },
320{ "Recurrence Range...","Wiederholungs Zeitraum..." }, 320{ "Recurrence Range...","Wiederholungs Zeitraum..." },
321{ "Recurrence Range","Wiederholungs Zeitraum" }, 321{ "Recurrence Range","Wiederholungs Zeitraum" },
322{ "Recurrence Rule","Wiederholungs Regel" }, 322{ "Recurrence Rule","Wiederholungs Regel" },
323{ "Recurrence","Wiederholung" }, 323{ "Recurrence","Wiederholung" },
324{ "Recurs","Wiederholung" }, 324{ "Recurs","Wiederholung" },
325{"&Reject","Abweisen"}, 325{"&Reject","Abweisen"},
326{ "Reminder:","Alarm:" }, 326{ "Reminder:","Alarm:" },
327{ "Rem.:","Alarm:" }, 327{ "Rem.:","Alarm:" },
328{ "Rem.","Alarm:" }, 328{ "Rem.","Alarm:" },
329{ "Remote file:","Remote Datei:"}, 329{ "Remote file:","Remote Datei:"},
@@ -866,33 +866,33 @@
866{ "Licence...","Licence..." }, 866{ "Licence...","Licence..." },
867{ "What's This?","What's This?" }, 867{ "What's This?","What's This?" },
868{ "&Edit...","&Editiere..." }, 868{ "&Edit...","&Editiere..." },
869{ "Oktober","Oktober" }, 869{ "Oktober","Oktober" },
870{ "Title","Titel" }, 870{ "Title","Titel" },
871{ "%1 %","%1 %" }, 871{ "%1 %","%1 %" },
872{ "Enable Pi-Sync","Schalte Pi-Sync an" }, 872{ "Enable Pi-Sync","Schalte Pi-Sync an" },
873{ "Import!","Importiere!" }, 873{ "Import!","Importiere!" },
874{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, 874{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" },
875{ "Export to phone options","Export ans Handy Optionen" }, 875{ "Export to phone options","Export ans Handy Optionen" },
876{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, 876{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." },
877{ "I/O device: ","I/O device: " }, 877{ "I/O device: ","I/O device: " },
878{ "Connection: ","Connection: " }, 878{ "Connection: ","Connection: " },
879{ "Model(opt.): ","Model(opt.): " }, 879{ "Model(opt.): ","Model(opt.): " },
880{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, 880{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" },
881{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, 881{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " },
882{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, 882{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" },
883{ "Export to mobile phone!","Exportiere auf das Handy!" }, 883{ "Export to mobile phone!","Exportiere auf das Handy!" },
884{ "Export complete calendar","Exportiere kompletten Kalender" }, 884{ "Export complete calendar","Exportiere kompletten Kalender" },
885{ "Writing to phone...","Sende Daten ans Handy..." }, 885{ "Writing to phone...","Sende Daten ans Handy..." },
886{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, 886{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" },
887{ "Retry","Nochmal versuchen" }, 887{ "Retry","Nochmal versuchen" },
888{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, 888{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" },
889{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, 889{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" },
890{ "Error exporting to phone!","Fehler beim Export auf das Handy!" }, 890{ "Error exporting to phone!","Fehler beim Export auf das Handy!" },
891{ "Export filtered calendar","Exportiere gefilterten Kalender" }, 891{ "Export filtered calendar","Exportiere gefilterten Kalender" },
892{ "Preferences","Vorlieben" }, 892{ "Preferences","Vorlieben" },
893{ "Global","Global" }, 893{ "Global","Global" },
894{ "Phone","Phone" }, 894{ "Phone","Phone" },
895{ "SMS","SMS" }, 895{ "SMS","SMS" },
896{ "Fax","Fax" }, 896{ "Fax","Fax" },
897{ "Pager","Pager" }, 897{ "Pager","Pager" },
898{ "SIP","SIP" }, 898{ "SIP","SIP" },
@@ -911,33 +911,33 @@
911{ "Parameters:","Parameter:" }, 911{ "Parameters:","Parameter:" },
912{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, 912{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" },
913{ "extra Message:","extra Message:" }, 913{ "extra Message:","extra Message:" },
914{ "extra Parameters:","extra Parameter:" }, 914{ "extra Parameters:","extra Parameter:" },
915{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, 915{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" },
916{ "External Apps.","Externe Appl." }, 916{ "External Apps.","Externe Appl." },
917{ "24 hours","24 Std." }, 917{ "24 hours","24 Std." },
918{ "3 hours","3 Std." }, 918{ "3 hours","3 Std." },
919{ "1 hour","1 Std." }, 919{ "1 hour","1 Std." },
920{ "15 minutes","15 Min." }, 920{ "15 minutes","15 Min." },
921{ "5 minutes","5 Min." }, 921{ "5 minutes","5 Min." },
922{ "1 minute","1 Min." }, 922{ "1 minute","1 Min." },
923{ "23","23" }, 923{ "23","23" },
924{ "Mon 15","Mon 15" }, 924{ "Mon 15","Mon 15" },
925{ "Configure KO","Konfiguriere KO" }, 925{ "Configure KO","Konfiguriere KO" },
926{ "Event text","Termin Text" }, 926{ "Event text","Termin Text" },
927{ "ToDo","ToDo" }, 927{ "ToDo","Todo" },
928{ "Today","Heute" }, 928{ "Today","Heute" },
929{ "What's Next View","What's Next Ansicht" }, 929{ "What's Next View","What's Next Ansicht" },
930{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, 930{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" },
931{ "Alarm","Alarm" }, 931{ "Alarm","Alarm" },
932{ "Used %1 Client","Benutzter %1 Client" }, 932{ "Used %1 Client","Benutzter %1 Client" },
933{ "No email client installed","Kein Email Klient installiert" }, 933{ "No email client installed","Kein Email Klient installiert" },
934{ "Userdefined email client","Benutzerdef. Email Klient" }, 934{ "Userdefined email client","Benutzerdef. Email Klient" },
935{ "OM/Pi email client","OM/Pi Email Klient" }, 935{ "OM/Pi email client","OM/Pi Email Klient" },
936{ "Include in multiple ","Beziehe in multiple " }, 936{ "Include in multiple ","Beziehe in multiple " },
937{ "calendar ","Kalender " }, 937{ "calendar ","Kalender " },
938{ "addressbook ","Adressbuch " }, 938{ "addressbook ","Adressbuch " },
939{ "pwmanager","PWmanager" }, 939{ "pwmanager","PWmanager" },
940{ " sync"," Sync ein" }, 940{ " sync"," Sync ein" },
941{ "Write back synced data","Schreibe gesyncte Daten zurück" }, 941{ "Write back synced data","Schreibe gesyncte Daten zurück" },
942{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, 942{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" },
943{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, 943{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" },
@@ -1330,28 +1330,34 @@
1330{ "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, 1330{ "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" },
1331{ "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, 1331{ "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." },
1332{ "Show Sync Events in WN+Agenda","Zeige Sync-Ereignisse in WN+Agenda" }, 1332{ "Show Sync Events in WN+Agenda","Zeige Sync-Ereignisse in WN+Agenda" },
1333{ "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, 1333{ "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" },
1334{ "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, 1334{ "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" },
1335{ " on "," am " }, 1335{ " on "," am " },
1336{ "On: ","Am: " }, 1336{ "On: ","Am: " },
1337{ "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, 1337{ "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" },
1338{ "Start/Stop todo...","Starte/Stoppe Todo..." }, 1338{ "Start/Stop todo...","Starte/Stoppe Todo..." },
1339{ "Color for running todos:","Farbe für laufende Todos:" }, 1339{ "Color for running todos:","Farbe für laufende Todos:" },
1340{ "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?" }, 1340{ "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?" },
1341{ "Todo is started","Todo is gestarted" }, 1341{ "Todo is started","Todo is gestarted" },
1342{ "Stop todo","Stoppe Todo" }, 1342{ "Stop todo","Stoppe Todo" },
1343{ "Todo is stopped","Todo ist gestoppt" }, 1343{ "Todo is stopped","Todo ist gestoppt" },
1344{ "Start todo","Starte Todo" }, 1344{ "Start todo","Starte Todo" },
1345{ "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?" }, 1345{ "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?" },
1346{ "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\nalle Untertodos auch klonen?" }, 1346{ "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?" },
1347{ "Todo has subtodos","Todo hat Untertodos" }, 1347{ "Todo has subtodos","Todo hat Untertodos" },
1348{ "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, 1348{ "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" },
1349{ "Alternate background","Abwechselnder Hintergrund" }, 1349{ "Alternate background","Abwechselnder Hintergrund" },
1350{ "Colors","Farben" }, 1350{ "Colors","Farben" },
1351{ "Click on new parent item","Klicke auf neues Übertodo" },
1352{ "Reparenting aborted!","Übertodo setzen abgebrochen" },
1353{ "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" },
1354{ "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" },
1355{ "","" },
1356{ "","" },
1351{ "","" }, 1357{ "","" },
1352{ "","" }, 1358{ "","" },
1353{ "","" }, 1359{ "","" },
1354{ "","" }, 1360{ "","" },
1355{ "","" }, 1361{ "","" },
1356{ "","" }, 1362{ "","" },
1357{ "","" }, 1363{ "","" },
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp
index 7817a75..dd2c081 100644
--- a/korganizer/kotodoview.cpp
+++ b/korganizer/kotodoview.cpp
@@ -148,34 +148,34 @@ void KOTodoListView::contentsDropEvent(QDropEvent *e)
148 148
149 if (todo) { 149 if (todo) {
150 e->acceptAction(); 150 e->acceptAction();
151 151
152 KOTodoViewItem *destination = 152 KOTodoViewItem *destination =
153 (KOTodoViewItem *)itemAt(contentsToViewport(e->pos())); 153 (KOTodoViewItem *)itemAt(contentsToViewport(e->pos()));
154 Todo *destinationEvent = 0; 154 Todo *destinationEvent = 0;
155 if (destination) destinationEvent = destination->todo(); 155 if (destination) destinationEvent = destination->todo();
156 156
157 Todo *existingTodo = mCalendar->todo(todo->uid()); 157 Todo *existingTodo = mCalendar->todo(todo->uid());
158 158
159 if(existingTodo) { 159 if(existingTodo) {
160 Incidence *to = destinationEvent; 160 Incidence *to = destinationEvent;
161 while(to) { 161 while(to) {
162 if (to->uid() == todo->uid()) { 162 if (to->uid() == todo->uid()) {
163 KMessageBox::sorry(this, 163 KMessageBox::sorry(this,
164 i18n("Cannot move To-Do to itself\nor a child of itself"), 164 i18n("Cannot move Todo to itself\nor a child of itself"),
165 i18n("Drop To-Do")); 165 i18n("Drop Todo"));
166 delete todo; 166 delete todo;
167 return; 167 return;
168 } 168 }
169 to = to->relatedTo(); 169 to = to->relatedTo();
170 } 170 }
171 internalDrop = true; 171 internalDrop = true;
172 if ( destinationEvent ) 172 if ( destinationEvent )
173 reparentTodoSignal( destinationEvent, existingTodo ); 173 reparentTodoSignal( destinationEvent, existingTodo );
174 else 174 else
175 unparentTodoSignal(existingTodo); 175 unparentTodoSignal(existingTodo);
176 delete todo; 176 delete todo;
177 } else { 177 } else {
178 mCalendar->addTodo(todo); 178 mCalendar->addTodo(todo);
179 emit todoDropped(todo, KOGlobals::EVENTADDED); 179 emit todoDropped(todo, KOGlobals::EVENTADDED);
180 if ( destinationEvent ) 180 if ( destinationEvent )
181 reparentTodoSignal( destinationEvent, todo ); 181 reparentTodoSignal( destinationEvent, todo );
@@ -949,33 +949,32 @@ void KOTodoView::newTodo()
949void KOTodoView::newSubTodo() 949void KOTodoView::newSubTodo()
950{ 950{
951 if (mActiveItem) { 951 if (mActiveItem) {
952 emit newSubTodoSignal(mActiveItem->todo()); 952 emit newSubTodoSignal(mActiveItem->todo());
953 } 953 }
954} 954}
955void KOTodoView::unparentTodo() 955void KOTodoView::unparentTodo()
956{ 956{
957 if (mActiveItem) { 957 if (mActiveItem) {
958 emit unparentTodoSignal(mActiveItem->todo()); 958 emit unparentTodoSignal(mActiveItem->todo());
959 } 959 }
960} 960}
961 961
962void KOTodoView::reparentTodo() 962void KOTodoView::reparentTodo()
963{ 963{
964 if (mActiveItem) { 964 if (mActiveItem) {
965 qDebug("KOTodoView::reparentTodo() ");
966 topLevelWidget()->setCaption(i18n("Click on new parent item")); 965 topLevelWidget()->setCaption(i18n("Click on new parent item"));
967 pendingSubtodo = mActiveItem; 966 pendingSubtodo = mActiveItem;
968 } 967 }
969} 968}
970void KOTodoView::editTodo() 969void KOTodoView::editTodo()
971{ 970{
972 if (mActiveItem) { 971 if (mActiveItem) {
973 emit editTodoSignal(mActiveItem->todo()); 972 emit editTodoSignal(mActiveItem->todo());
974 } 973 }
975} 974}
976void KOTodoView::cloneTodo() 975void KOTodoView::cloneTodo()
977{ 976{
978 if (mActiveItem) { 977 if (mActiveItem) {
979 emit cloneTodoSignal((Incidence*)mActiveItem->todo()); 978 emit cloneTodoSignal((Incidence*)mActiveItem->todo());
980 } 979 }
981} 980}
@@ -1149,66 +1148,64 @@ void KOTodoView::itemClicked(QListViewItem *item)
1149 pendingSubtodo = 0; 1148 pendingSubtodo = 0;
1150 return; 1149 return;
1151 } 1150 }
1152 KOTodoViewItem *todoItem = (KOTodoViewItem *)item; 1151 KOTodoViewItem *todoItem = (KOTodoViewItem *)item;
1153 if ( pendingSubtodo != 0 ) { 1152 if ( pendingSubtodo != 0 ) {
1154 bool allowReparent = true; 1153 bool allowReparent = true;
1155 QListViewItem *par = item; 1154 QListViewItem *par = item;
1156 while ( par ) { 1155 while ( par ) {
1157 if ( par == pendingSubtodo ) { 1156 if ( par == pendingSubtodo ) {
1158 allowReparent = false; 1157 allowReparent = false;
1159 break; 1158 break;
1160 } 1159 }
1161 par = par->parent(); 1160 par = par->parent();
1162 } 1161 }
1163 if ( !allowReparent ) { 1162 if ( !allowReparent ) {
1164 topLevelWidget()->setCaption(i18n("Recursive reparenting not possible!")); 1163 topLevelWidget()->setCaption(i18n("Recursive reparenting not possible!"));
1165 qDebug("Recursive reparenting not possible ");
1166 pendingSubtodo = 0; 1164 pendingSubtodo = 0;
1167 } else { 1165 } else {
1168 Todo* newParent = todoItem->todo(); 1166 Todo* newParent = todoItem->todo();
1169 Todo* newSub = pendingSubtodo->todo(); 1167 Todo* newSub = pendingSubtodo->todo();
1170 pendingSubtodo = 0; 1168 pendingSubtodo = 0;
1171 emit reparentTodoSignal( newParent,newSub ); 1169 emit reparentTodoSignal( newParent,newSub );
1172 return; 1170 return;
1173 } 1171 }
1174 } 1172 }
1175#if 0 1173#if 0
1176 // handled by the item itself 1174 // handled by the item itself
1177 bool completed = todoItem->todo()->isCompleted(); // Completed or not? 1175 bool completed = todoItem->todo()->isCompleted(); // Completed or not?
1178 qDebug("com %d ",completed ); 1176 qDebug("com %d ",completed );
1179 qDebug("itemclicked "); 1177 qDebug("itemclicked ");
1180 if (todoItem->isOn()) { 1178 if (todoItem->isOn()) {
1181 qDebug("on "); 1179 qDebug("on ");
1182 if (!completed) { 1180 if (!completed) {
1183 qDebug("set true "); 1181 qDebug("set true ");
1184 todoItem->todo()->setCompleted(QDateTime::currentDateTime()); 1182 todoItem->todo()->setCompleted(QDateTime::currentDateTime());
1185 } 1183 }
1186 } else { 1184 } else {
1187 qDebug("not on "); 1185 qDebug("not on ");
1188 if (completed) { 1186 if (completed) {
1189 qDebug("set false "); 1187 qDebug("set false ");
1190 todoItem->todo()->setCompleted(false); 1188 todoItem->todo()->setCompleted(false);
1191 } 1189 }
1192 } 1190 }
1193#endif 1191#endif
1194} 1192}
1195 1193
1196void KOTodoView::setDocumentId( const QString &id ) 1194void KOTodoView::setDocumentId( const QString &id )
1197{ 1195{
1198 kdDebug() << "KOTodoView::setDocumentId()" << endl;
1199 1196
1200 mDocPrefs->setDoc( id ); 1197 mDocPrefs->setDoc( id );
1201} 1198}
1202 1199
1203void KOTodoView::itemStateChanged( QListViewItem *item ) 1200void KOTodoView::itemStateChanged( QListViewItem *item )
1204{ 1201{
1205 if (!item) return; 1202 if (!item) return;
1206 1203
1207 KOTodoViewItem *todoItem = (KOTodoViewItem *)item; 1204 KOTodoViewItem *todoItem = (KOTodoViewItem *)item;
1208 1205
1209// kdDebug() << "KOTodoView::itemStateChanged(): " << todoItem->todo()->summary() << endl; 1206// kdDebug() << "KOTodoView::itemStateChanged(): " << todoItem->todo()->summary() << endl;
1210 1207
1211 if( mDocPrefs ) mDocPrefs->writeEntry( todoItem->todo()->uid(), todoItem->isOpen() ); 1208 if( mDocPrefs ) mDocPrefs->writeEntry( todoItem->todo()->uid(), todoItem->isOpen() );
1212} 1209}
1213 1210
1214void KOTodoView::saveLayout(KConfig *config, const QString &group) const 1211void KOTodoView::saveLayout(KConfig *config, const QString &group) const