author | zautrix <zautrix> | 2005-02-09 13:22:06 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-09 13:22:06 (UTC) |
commit | c3dd5bfd446b893a8b39ddec425a6cf8deff2261 (patch) (unidiff) | |
tree | d0dd74c17fd6101da1d6c403c85924c58bc1ac9b | |
parent | 940cdd0fd1349e7f8e53adff0595c1d946322ef1 (diff) | |
download | kdepimpi-c3dd5bfd446b893a8b39ddec425a6cf8deff2261.zip kdepimpi-c3dd5bfd446b893a8b39ddec425a6cf8deff2261.tar.gz kdepimpi-c3dd5bfd446b893a8b39ddec425a6cf8deff2261.tar.bz2 |
fixes
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 12 | ||||
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 8 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 10 | ||||
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 6 | ||||
-rw-r--r-- | libkdepim/kdateedit.cpp | 9 |
6 files changed, 26 insertions, 21 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 4f29ca3..6587eaa 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -199,197 +199,197 @@ | |||
199 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, | 199 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, |
200 | { "Information","Information" }, | 200 | { "Information","Information" }, |
201 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, | 201 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, |
202 | { "Jan","Jan" }, | 202 | { "Jan","Jan" }, |
203 | { "January","Januar" }, | 203 | { "January","Januar" }, |
204 | { "JournalView:","Journal Ansicht:" }, | 204 | { "JournalView:","Journal Ansicht:" }, |
205 | { "Journals","Journale" }, | 205 | { "Journals","Journale" }, |
206 | { "Jul","Jul" }, | 206 | { "Jul","Jul" }, |
207 | { "July","Juli" }, | 207 | { "July","Juli" }, |
208 | { "Jump to date","Springe zum Datum" }, | 208 | { "Jump to date","Springe zum Datum" }, |
209 | { "June","Juni" }, | 209 | { "June","Juni" }, |
210 | { "Jun","Jun" }, | 210 | { "Jun","Jun" }, |
211 | { "Key Bindings...","Tastenzuordnung..." }, | 211 | { "Key Bindings...","Tastenzuordnung..." }, |
212 | { "Kids","Kinder" }, | 212 | { "Kids","Kinder" }, |
213 | { "Known Problems...","Bekannte Probleme..." }, | 213 | { "Known Problems...","Bekannte Probleme..." }, |
214 | { "KO/Pi Find ","KO/Pi Suchdialog " }, | 214 | { "KO/Pi Find ","KO/Pi Suchdialog " }, |
215 | { "KO/Pi Find: ","KO/Pi Suchen: " }, | 215 | { "KO/Pi Find: ","KO/Pi Suchen: " }, |
216 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, | 216 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, |
217 | { "Language:(needs restart)","Sprache (Neustart!)" }, | 217 | { "Language:(needs restart)","Sprache (Neustart!)" }, |
218 | { "Language:","Sprache" }, | 218 | { "Language:","Sprache" }, |
219 | { "Large","Etwas mehr" }, | 219 | { "Large","Etwas mehr" }, |
220 | { "List View:","Listenansicht:" }, | 220 | { "List View:","Listenansicht:" }, |
221 | { "List View","Listenansicht" }, | 221 | { "List View","Listenansicht" }, |
222 | { "Load/Save","Laden/Speichern" }, | 222 | { "Load/Save","Laden/Speichern" }, |
223 | { "Load Template","Lade Vorlage" }, | 223 | { "Load Template","Lade Vorlage" }, |
224 | { "Locale","Localisation" }, | 224 | { "Locale","Localisation" }, |
225 | { "Local temp file:","Lokale temp. Datei:" }, | 225 | { "Local temp file:","Lokale temp. Datei:" }, |
226 | { "Location: ","Ort: " }, | 226 | { "Location: ","Ort: " }, |
227 | { "Location:","Ort:" }, | 227 | { "Location:","Ort:" }, |
228 | { "Mail client","Mail Programm" }, | 228 | { "Mail client","Mail Programm" }, |
229 | { "Mail Client","Mail Programm" }, | 229 | { "Mail Client","Mail Programm" }, |
230 | { "March","März" }, | 230 | { "March","März" }, |
231 | { "Mar","Mär" }, | 231 | { "Mar","Mär" }, |
232 | { "May","Mai" }, | 232 | { "May","Mai" }, |
233 | { "M. Bains line:","M. Bains Linie:" }, | 233 | { "M. Bains line:","M. Bains Linie:" }, |
234 | { "Medium","Medium" }, | 234 | { "Medium","Medium" }, |
235 | { "Method","Methode" }, | 235 | { "Method","Methode" }, |
236 | { "minute(s)","Minute(n)" }, | 236 | { "minute(s)","Minute(n)" }, |
237 | { "Monday","Montag" }, | 237 | { "Monday","Montag" }, |
238 | { "Mon","Mo" }, | 238 | { "Mon","Mo" }, |
239 | { "Monthly","Monatlich" }, | 239 | { "Monthly","Monatlich" }, |
240 | { "Month not long enough","Monat ist nicht lang genug" }, | 240 | { "Month not long enough","Monat ist nicht lang genug" }, |
241 | { "month(s)","Monat(e)" }, | 241 | { "month(s)","Monat(e)" }, |
242 | { "Month view:","Monatsansicht:" }, | 242 | { "Month view:","Monatsansicht:" }, |
243 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, | 243 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, |
244 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, | 244 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, |
245 | { "Move &Down","Nach unten verschieben" }, | 245 | { "Move &Down","Nach unten verschieben" }, |
246 | { "Move &Up","Nach oben verschieben" }, | 246 | { "Move &Up","Nach oben verschieben" }, |
247 | { "Name:","Name:" }, | 247 | { "Name:","Name:" }, |
248 | { "Name","Name" }, | 248 | { "Name","Name" }, |
249 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, | 249 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, |
250 | { "%n Days","%n Tage" }, | 250 | { "%n Days","%n Tage" }, |
251 | { "Never","Nie" }, | 251 | { "Never","Nie" }, |
252 | { "New event...","Neuer Termin..." }, | 252 | { "New event...","Neuer Termin..." }, |
253 | { "New event","Neuer Termin" }, | 253 | { "New event","Neuer Termin" }, |
254 | { "New Event...","Neuer Termin..." }, | 254 | { "New Event...","Neuer Termin..." }, |
255 | { "New Events/Todos should","Neue Termine/Todos sollten" }, | 255 | { "New Events/Todos should","Neue Termine/Todos sollten" }, |
256 | { "&New","&Neu" }, | 256 | { "&New","&Neu" }, |
257 | { "New","Neu", }, | 257 | { "New","Neu", }, |
258 | { "New Sub-Todo...","Neues Sub-Todo..." }, | 258 | { "New Sub-Todo...","Neues Sub-Todo..." }, |
259 | { "New Todo...","Neues Todo..." }, | 259 | { "New Todo...","Neues Todo..." }, |
260 | { "Next Alarm: ","Nächster Alarm: ", }, | 260 | { "Next Alarm: ","Nächster Alarm: ", }, |
261 | { "&Next Day","&Nächster Tag", }, | 261 | { "&Next Day","&Nächster Tag", }, |
262 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, | 262 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, |
263 | { "Next month","Nächster Monat" }, | 263 | { "Next month","Nächster Monat" }, |
264 | { "&Next Week","&Nächste Woche" }, | 264 | { "&Next Week","&Nächste Woche" }, |
265 | { "Next year","Nächstes Jahr" }, | 265 | { "Next year","Nächstes Jahr" }, |
266 | { "Next Year","Nächstes Jahr" }, | 266 | { "Next Year","Nächstes Jahr" }, |
267 | { "%n h","%n Std" }, | 267 | { "%n h","%n Std" }, |
268 | { "No ending date","Kein End-Datum", }, | 268 | { "No ending date","Kein End-Datum", }, |
269 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, | 269 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, |
270 | { "No event selected.","Kein Termin selektiert" }, | 270 | { "No event selected.","Kein Termin selektiert" }, |
271 | { "No","Nein" }, | 271 | { "No","Nein" }, |
272 | { "No program set","Kein Programm ausgewählt", }, | 272 | { "No program set","Kein Programm ausgewählt", }, |
273 | { "Normal","Normal" }, | 273 | { "Normal","Normal" }, |
274 | { "[No selection]","Keine Selektion", }, | 274 | { "[No selection]","Keine Selektion", }, |
275 | { "No sound set","Kein Sound ausgewählt", }, | 275 | { "No sound set","Kein Sound ausgewählt", }, |
276 | { "no time ","keine Zeit ", }, | 276 | { "no time ","keine Zeit ", }, |
277 | { "no time","keine Zeit", }, | 277 | { "no time","keine Zeit", }, |
278 | { "No Time","Keine Zeit" }, | 278 | { "No Time","Keine Zeit" }, |
279 | { "November","November" }, | 279 | { "November","November" }, |
280 | { "Nov","Nov", }, | 280 | { "Nov","Nov", }, |
281 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, | 281 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, |
282 | { "occurrence(s)","Vorkommen" }, | 282 | { "occurrence(s)","Vorkommen" }, |
283 | { "October","Oktober" }, | 283 | { "October","Oktober" }, |
284 | { "Oct","Okt", }, | 284 | { "Oct","Okt", }, |
285 | { "O-due!","Ü-fällig! " }, | 285 | { "O-due!","Ü-fällig! " }, |
286 | { "&OK","&OK" }, | 286 | { "&OK","&OK" }, |
287 | { "Ok+Show!","Ok+Anzeigen" }, | 287 | { "Ok+Show!","Ok+Anzeigen" }, |
288 | { "Organizer: %1","Organisator %1" }, | 288 | { "Organizer: %1","Organisator %1" }, |
289 | { "Organizer","Organisator" }, | 289 | { "Organizer","Organisator" }, |
290 | { "Owner: ","Besitzer: " }, | 290 | { "Owner: ","Besitzer: " }, |
291 | { "Owner:","Besitzer:" }, | 291 | { "Owner:","Besitzer:" }, |
292 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 292 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
293 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, | 293 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, |
294 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, | 294 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, |
295 | { "Please specify a valid end date, for example '%1'.","Bitte gültiges Enddatum angeben, z.B.'%1'." }, | 295 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, |
296 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, | 296 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, |
297 | { "Please specify a valid start date, for example '%1'.","Bitte gültiges Startdatum angeben, z.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, for example '%1'.","Bitte gültige Startzeit angeben, z.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:"}, |
330 | { "Remote IP:","Remote (ferne) IP:" }, | 330 | { "Remote IP:","Remote (ferne) IP:" }, |
331 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, | 331 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, |
332 | { "Remote user:","Remote Benutzer"}, | 332 | { "Remote user:","Remote Benutzer"}, |
333 | { "&Remove","Entfe&rnen" }, | 333 | { "&Remove","Entfe&rnen" }, |
334 | { "Remove","Entfernen" }, | 334 | { "Remove","Entfernen" }, |
335 | { "Request response","Bemerkung anfordern" }, | 335 | { "Request response","Bemerkung anfordern" }, |
336 | { "Role:","Rolle:" }, | 336 | { "Role:","Rolle:" }, |
337 | { "Role","Rolle" }, | 337 | { "Role","Rolle" }, |
338 | { "Sat","Sa" }, | 338 | { "Sat","Sa" }, |
339 | { "Saturday","Samstag" }, | 339 | { "Saturday","Samstag" }, |
340 | { "Search for:","Suche nach:" }, | 340 | { "Search for:","Suche nach:" }, |
341 | { "Search In","Suche in" }, | 341 | { "Search In","Suche in" }, |
342 | { "Search...","Suche..." }, | 342 | { "Search...","Suche..." }, |
343 | { "Search","Suche" }, | 343 | { "Search","Suche" }, |
344 | { "Select Addresses","Wähle Adressen" }, | 344 | { "Select Addresses","Wähle Adressen" }, |
345 | { "Select all","Selektiere Alle" }, | 345 | { "Select all","Selektiere Alle" }, |
346 | { "Select a month","Wähle Monat" }, | 346 | { "Select a month","Wähle Monat" }, |
347 | { "Select a week","Wähle Woche" }, | 347 | { "Select a week","Wähle Woche" }, |
348 | { "Select a year","Wähle Jahr" }, | 348 | { "Select a year","Wähle Jahr" }, |
349 | { "Send directly","Sende direkt" }, | 349 | { "Send directly","Sende direkt" }, |
350 | { "&Send Messages","&Sende Nachrichten", }, | 350 | { "&Send Messages","&Sende Nachrichten", }, |
351 | { "Sep","Sep" }, | 351 | { "Sep","Sep" }, |
352 | { "September","September" }, | 352 | { "September","September" }, |
353 | { "Shopping","Einkaufen" }, | 353 | { "Shopping","Einkaufen" }, |
354 | { "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" }, | 354 | { "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" }, |
355 | { "Show Dates","Zeige Daten" }, | 355 | { "Show Dates","Zeige Daten" }, |
356 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, | 356 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, |
357 | { "Show Event...","Zeige Termin..." }, | 357 | { "Show Event...","Zeige Termin..." }, |
358 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, | 358 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, |
359 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, | 359 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, |
360 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, | 360 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, |
361 | { "Show time as:","Zeige Zeit als" }, | 361 | { "Show time as:","Zeige Zeit als" }, |
362 | { "Show Todo...","Zeige To-Do" }, | 362 | { "Show Todo...","Zeige To-Do" }, |
363 | { "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"}, | 363 | { "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"}, |
364 | { "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"}, | 364 | { "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"}, |
365 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, | 365 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, |
366 | { "&Show","Zeige" }, | 366 | { "&Show","Zeige" }, |
367 | { "Show...","Zeige..." }, | 367 | { "Show...","Zeige..." }, |
368 | { "Show","Zeige" }, | 368 | { "Show","Zeige" }, |
369 | { "Small","Klein" }, | 369 | { "Small","Klein" }, |
370 | { "Sorry","Entschuldigung" }, | 370 | { "Sorry","Entschuldigung" }, |
371 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, | 371 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, |
372 | { "Start:","Start:" }, | 372 | { "Start:","Start:" }, |
373 | { "Start Date","Start Datum" }, | 373 | { "Start Date","Start Datum" }, |
374 | { "Start date: %1","Start Datum: %1" }, | 374 | { "Start date: %1","Start Datum: %1" }, |
375 | { "Start Time","Start Zeit" }, | 375 | { "Start Time","Start Zeit" }, |
376 | { "Status:","Status:" }, | 376 | { "Status:","Status:" }, |
377 | { "Status","Status:" }, | 377 | { "Status","Status:" }, |
378 | { "Summaries","Titel" }, | 378 | { "Summaries","Titel" }, |
379 | { "Summary:","Titel:" }, | 379 | { "Summary:","Titel:" }, |
380 | { "Summary","Titel" }, | 380 | { "Summary","Titel" }, |
381 | { "Sunday","Sonntag" }, | 381 | { "Sunday","Sonntag" }, |
382 | { "Sun","So" }, | 382 | { "Sun","So" }, |
383 | { "Sync preferences:","Sync Einstellungen" }, | 383 | { "Sync preferences:","Sync Einstellungen" }, |
384 | { "Sync Prefs","Sync Einstellungen" }, | 384 | { "Sync Prefs","Sync Einstellungen" }, |
385 | { "Syncronize","Daten abgleich" }, | 385 | { "Syncronize","Daten abgleich" }, |
386 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 386 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
387 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 387 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
388 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 388 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
389 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, | 389 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, |
390 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, | 390 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, |
391 | { "Template...","Vorlage..." }, | 391 | { "Template...","Vorlage..." }, |
392 | { "This day","Dieser Tag" }, | 392 | { "This day","Dieser Tag" }, |
393 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, | 393 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, |
394 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, | 394 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, |
395 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, | 395 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, |
@@ -1139,106 +1139,106 @@ | |||
1139 | { "Alt+U","Alt+U" }, | 1139 | { "Alt+U","Alt+U" }, |
1140 | { "Print week","Drucke Woche" }, | 1140 | { "Print week","Drucke Woche" }, |
1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1142 | { "Use &colors","Nutze Farben" }, | 1142 | { "Use &colors","Nutze Farben" }, |
1143 | { "Type of View","Typ der Ansicht" }, | 1143 | { "Type of View","Typ der Ansicht" }, |
1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1145 | { "Alt+F","Alt+F" }, | 1145 | { "Alt+F","Alt+F" }, |
1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1147 | { "Alt+T","Alt+T" }, | 1147 | { "Alt+T","Alt+T" }, |
1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1149 | { "Print month","Drucke Monat" }, | 1149 | { "Print month","Drucke Monat" }, |
1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1151 | { "&Start month:","&Startmonat:" }, | 1151 | { "&Start month:","&Startmonat:" }, |
1152 | { "&End month:","&Endmonat:" }, | 1152 | { "&End month:","&Endmonat:" }, |
1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1154 | { "Print todos","Drucke Todos" }, | 1154 | { "Print todos","Drucke Todos" }, |
1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1159 | { "Items to Print","Zu druckende Items" }, | 1159 | { "Items to Print","Zu druckende Items" }, |
1160 | { "&From:","Von:" }, | 1160 | { "&From:","Von:" }, |
1161 | { "&To:","Bis:" }, | 1161 | { "&To:","Bis:" }, |
1162 | { "Print &all todo items","Drucke alle Todo Items" }, | 1162 | { "Print &all todo items","Drucke alle Todo Items" }, |
1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1165 | { "Todo List","Todo Liste" }, | 1165 | { "Todo List","Todo Liste" }, |
1166 | { "&Title:","&Titel:" }, | 1166 | { "&Title:","&Titel:" }, |
1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, | 1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, |
1168 | { "Todo list","Todo Liste" }, | 1168 | { "Todo list","Todo Liste" }, |
1169 | { "&Print...","Drucke..." }, | 1169 | { "&Print...","Drucke..." }, |
1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1171 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1171 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1172 | { "OK","OK" }, | 1172 | { "OK","OK" }, |
1173 | { "FilterEditor","FilterEditor" }, | 1173 | { "FilterEditor","FilterEditor" }, |
1174 | { "Include","Inclusive" }, | 1174 | { "Include","Inclusive" }, |
1175 | { "Exclude","Exclusive" }, | 1175 | { "Exclude","Exclusive" }, |
1176 | { "Edit Selection...","Editiere Auswahl" }, | 1176 | { "Edit Selection...","Editiere Auswahl" }, |
1177 | { "recurring events","wiederholende Termine" }, | 1177 | { "recurring events","wiederholende Termine" }, |
1178 | { "recurr. events","wiederh.Termine" }, | 1178 | { "recurr. events","wiederh.Termine" }, |
1179 | { "completed to-dos","erledigte Todos" }, | 1179 | { "completed to-dos","erledigte Todos" }, |
1180 | { "events","Termine" }, | 1180 | { "events","Termine" }, |
1181 | { "todos","Todos" }, | 1181 | { "todos","Todos" }, |
1182 | { "journals","Journale" }, | 1182 | { "journals","Journale" }, |
1183 | { "public","öffentl." }, | 1183 | { "public","öffentl." }, |
1184 | { "private","privat" }, | 1184 | { "private","privat" }, |
1185 | { "confidential","vertraul." }, | 1185 | { "confidential","vertraul." }, |
1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1187 | { "Yesterday","Gestern" }, | 1187 | { "Yesterday","Gestern" }, |
1188 | { "Day after tomorrow","Übermorgen" }, | 1188 | { "Day after tomorrow","Übermorgen" }, |
1189 | { "Tomorrow","Morgen" }, | 1189 | { "Tomorrow","Morgen" }, |
1190 | { "Day before yesterday","Vorgestern" }, | 1190 | { "Day before yesterday","Vorgestern" }, |
1191 | { "Size %1","Größe %1" }, | 1191 | { "Size %1","Größe %1" }, |
1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1193 | { " (%1 y.)"," (%1 J.)" }, | 1193 | { " (%1 y.)"," (%1 J.)" }, |
1194 | { "Allday:","Ganztägig:" }, | 1194 | { "Allday:","Ganztägig:" }, |
1195 | { "compl.todos","erled.Todos" }, | 1195 | { "compl.todos","erled.Todos" }, |
1196 | { "Day view","Tagesansicht" }, | 1196 | { "Day view","Tagesansicht" }, |
1197 | { "Next days","Nächste Tage" }, | 1197 | { "Next days","Nächste Tage" }, |
1198 | { "Next week","Nächste Woche" }, | 1198 | { "Next week","Nächste Woche" }, |
1199 | { "Next two weeks","Nächste zwei Wochen" }, | 1199 | { "Next two weeks","Nächste zwei Wochen" }, |
1200 | { "Next month","Nächster Monat" }, | 1200 | { "Next month","Nächster Monat" }, |
1201 | { "Journal view","Journal" }, | 1201 | { "Journal view","Journal" }, |
1202 | { "Display all opened","Zeige alle geöffnet" }, | 1202 | { "Display all opened","Zeige alle geöffnet" }, |
1203 | { "Display all closed","Zeige alle geschlossen" }, | 1203 | { "Display all closed","Zeige alle geschlossen" }, |
1204 | { "Display all flat","Zeige alle flach" }, | 1204 | { "Display all flat","Zeige alle flach" }, |
1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1208 | { "Select Week","Wähle Woche" }, | 1208 | { "Select Week","Wähle Woche" }, |
1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1210 | { "Set Alarm!","Setze Alarm!" }, | 1210 | { "Set Alarm!","Setze Alarm!" }, |
1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1212 | { " and "," und " }, | 1212 | { " and "," und " }, |
1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1214 | { "Mail to selected","Mail an Ausgewählte" }, | 1214 | { "Mail to selected","Mail an Ausgewählte" }, |
1215 | { "Mail to all","Mail an Alle" }, | 1215 | { "Mail to all","Mail an Alle" }, |
1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1218 | { " on"," am" }, | 1218 | { " on"," am" }, |
1219 | { " completed on "," erledigt am " }, | 1219 | { " completed on "," erledigt am " }, |
1220 | { "Save as Event template","Speichere als Vorlage" }, | 1220 | { "Save as Event template","Speichere als Vorlage" }, |
1221 | { "Load Event template","Lade Termin Vorlage" }, | 1221 | { "Load Event template","Lade Termin Vorlage" }, |
1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1224 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1224 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1225 | { "Parent todo:<br>","Über Todo:<br>" }, | 1225 | { "Parent todo:<br>","Über Todo:<br>" }, |
1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1227 | { " completed"," erledigt" }, | 1227 | { " completed"," erledigt" }, |
1228 | { "(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.net --- 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.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1228 | { "(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.net --- 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.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1232 | { "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?" }, | 1232 | { "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?" }, |
1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1234 | { "Error","Fehler" }, | 1234 | { "Error","Fehler" }, |
1235 | { "","" }, | 1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1236 | { "","" }, | 1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1237 | { "","" }, | 1237 | { "Warning","Warnung" }, |
1238 | { "","" }, | 1238 | { "","" }, |
1239 | { "","" }, | 1239 | { "","" }, |
1240 | { "","" }, | 1240 | { "","" }, |
1241 | { "","" }, | 1241 | { "","" }, |
1242 | { "","" }, | 1242 | { "","" }, |
1243 | { "","" }, | 1243 | { "","" }, |
1244 | { "","" }, \ No newline at end of file | 1244 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index adc733b..2a49528 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp | |||
@@ -304,124 +304,124 @@ void KOEditorGeneralEvent::writeEvent(Event *event) | |||
304 | tmpDate = mStartDateEdit->date(); | 304 | tmpDate = mStartDateEdit->date(); |
305 | tmpTime.setHMS(0,0,0); | 305 | tmpTime.setHMS(0,0,0); |
306 | tmpDT.setDate(tmpDate); | 306 | tmpDT.setDate(tmpDate); |
307 | tmpDT.setTime(tmpTime); | 307 | tmpDT.setTime(tmpTime); |
308 | event->setDtStart(tmpDT); | 308 | event->setDtStart(tmpDT); |
309 | 309 | ||
310 | tmpDate = mEndDateEdit->date(); | 310 | tmpDate = mEndDateEdit->date(); |
311 | tmpTime.setHMS(0,0,0); | 311 | tmpTime.setHMS(0,0,0); |
312 | tmpDT.setDate(tmpDate); | 312 | tmpDT.setDate(tmpDate); |
313 | tmpDT.setTime(tmpTime); | 313 | tmpDT.setTime(tmpTime); |
314 | event->setDtEnd(tmpDT); | 314 | event->setDtEnd(tmpDT); |
315 | } else { | 315 | } else { |
316 | event->setFloats(false); | 316 | event->setFloats(false); |
317 | 317 | ||
318 | // set date/time end | 318 | // set date/time end |
319 | tmpDate = mEndDateEdit->date(); | 319 | tmpDate = mEndDateEdit->date(); |
320 | tmpTime = mEndTimeEdit->getTime(); | 320 | tmpTime = mEndTimeEdit->getTime(); |
321 | tmpDT.setDate(tmpDate); | 321 | tmpDT.setDate(tmpDate); |
322 | tmpDT.setTime(tmpTime); | 322 | tmpDT.setTime(tmpTime); |
323 | event->setDtEnd(tmpDT); | 323 | event->setDtEnd(tmpDT); |
324 | 324 | ||
325 | // set date/time start | 325 | // set date/time start |
326 | tmpDate = mStartDateEdit->date(); | 326 | tmpDate = mStartDateEdit->date(); |
327 | tmpTime = mStartTimeEdit->getTime(); | 327 | tmpTime = mStartTimeEdit->getTime(); |
328 | tmpDT.setDate(tmpDate); | 328 | tmpDT.setDate(tmpDate); |
329 | tmpDT.setTime(tmpTime); | 329 | tmpDT.setTime(tmpTime); |
330 | event->setDtStart(tmpDT); | 330 | event->setDtStart(tmpDT); |
331 | } // check for float | 331 | } // check for float |
332 | mSummaryEdit->save(KOLocationBox::SUMMARYEVENT); | 332 | mSummaryEdit->save(KOLocationBox::SUMMARYEVENT); |
333 | 333 | ||
334 | event->setTransparency(mFreeTimeCombo->currentItem() > 0 | 334 | event->setTransparency(mFreeTimeCombo->currentItem() > 0 |
335 | ? KCal::Event::Transparent | 335 | ? KCal::Event::Transparent |
336 | : KCal::Event::Opaque); | 336 | : KCal::Event::Opaque); |
337 | 337 | ||
338 | // kdDebug() << "KOEditorGeneralEvent::writeEvent() done" << endl; | 338 | // kdDebug() << "KOEditorGeneralEvent::writeEvent() done" << endl; |
339 | } | 339 | } |
340 | 340 | ||
341 | void KOEditorGeneralEvent::setDuration() | 341 | void KOEditorGeneralEvent::setDuration() |
342 | { | 342 | { |
343 | QString tmpStr = "", catStr; | 343 | QString tmpStr = "", catStr; |
344 | int hourdiff, minutediff; | 344 | int hourdiff, minutediff; |
345 | // end<date is an accepted temporary state while typing, but don't show | 345 | // end<date is an accepted temporary state while typing, but don't show |
346 | // any duration if this happens | 346 | // any duration if this happens |
347 | if(mCurrEndDateTime >= mCurrStartDateTime) { | 347 | if(mCurrEndDateTime >= mCurrStartDateTime) { |
348 | 348 | ||
349 | if (mNoTimeButton->isChecked()) { | 349 | if (mNoTimeButton->isChecked()) { |
350 | int daydiff = mCurrStartDateTime.date().daysTo(mCurrEndDateTime.date()) + 1; | 350 | int daydiff = mCurrStartDateTime.date().daysTo(mCurrEndDateTime.date()) + 1; |
351 | tmpStr = i18n("Duration: "); | 351 | tmpStr = i18n("Duration: "); |
352 | tmpStr.append(i18n("1 Day","%n Days",daydiff)); | 352 | tmpStr.append(i18n("1 Day","%n Days",daydiff)); |
353 | } else { | 353 | } else { |
354 | int secto = mCurrStartDateTime.secsTo( mCurrEndDateTime ); | 354 | int secto = mCurrStartDateTime.secsTo( mCurrEndDateTime ); |
355 | hourdiff = secto / 3600; | 355 | hourdiff = secto / 3600; |
356 | minutediff = (secto/60 ) % 60; | 356 | minutediff = (secto/60 ) % 60; |
357 | if (hourdiff || minutediff){ | 357 | if (hourdiff || minutediff){ |
358 | tmpStr = i18n("Duration: "); | 358 | tmpStr = i18n("Duration: "); |
359 | if (hourdiff){ | 359 | if (hourdiff){ |
360 | catStr = i18n("1 h","%n h",hourdiff); | 360 | catStr = i18n("1 h","%n h",hourdiff); |
361 | tmpStr.append(catStr); | 361 | tmpStr.append(catStr); |
362 | } | 362 | } |
363 | if (hourdiff && minutediff){ | 363 | if (hourdiff && minutediff){ |
364 | tmpStr += i18n(", "); | 364 | tmpStr += i18n(", "); |
365 | } | 365 | } |
366 | if (minutediff){ | 366 | if (minutediff){ |
367 | catStr = i18n("1 min","%n min",minutediff); | 367 | catStr = i18n("1 min","%n min",minutediff); |
368 | tmpStr += catStr; | 368 | tmpStr += catStr; |
369 | } | 369 | } |
370 | } else tmpStr = ""; | 370 | } else tmpStr = ""; |
371 | } | 371 | } |
372 | } | 372 | } |
373 | mDurationLabel->setText(tmpStr); | 373 | mDurationLabel->setText(tmpStr); |
374 | } | 374 | } |
375 | 375 | ||
376 | void KOEditorGeneralEvent::emitDateTimeStr() | 376 | void KOEditorGeneralEvent::emitDateTimeStr() |
377 | { | 377 | { |
378 | KLocale *l = KGlobal::locale(); | 378 | KLocale *l = KGlobal::locale(); |
379 | 379 | ||
380 | QString from,to; | 380 | QString from,to; |
381 | if (mNoTimeButton->isChecked()) { | 381 | if (mNoTimeButton->isChecked()) { |
382 | from = l->formatDate(mCurrStartDateTime.date()); | 382 | from = l->formatDate(mCurrStartDateTime.date()); |
383 | to = l->formatDate(mCurrEndDateTime.date()); | 383 | to = l->formatDate(mCurrEndDateTime.date()); |
384 | } else { | 384 | } else { |
385 | from = l->formatDateTime(mCurrStartDateTime); | 385 | from = l->formatDateTime(mCurrStartDateTime); |
386 | to = l->formatDateTime(mCurrEndDateTime); | 386 | to = l->formatDateTime(mCurrEndDateTime); |
387 | } | 387 | } |
388 | 388 | ||
389 | QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to) | 389 | QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to) |
390 | .arg(mDurationLabel->text()); | 390 | .arg(mDurationLabel->text()); |
391 | 391 | ||
392 | emit dateTimeStrChanged(str); | 392 | emit dateTimeStrChanged(str); |
393 | } | 393 | } |
394 | 394 | ||
395 | bool KOEditorGeneralEvent::validateInput() | 395 | bool KOEditorGeneralEvent::validateInput() |
396 | { | 396 | { |
397 | 397 | ||
398 | if (!mStartDateEdit->inputIsValid()) { | 398 | if (!mStartDateEdit->inputIsValid()) { |
399 | KMessageBox::sorry( 0, | 399 | KMessageBox::sorry( 0, |
400 | i18n("Please specify a valid start date, for example '%1'.") | 400 | i18n("Please specify a valid start date,\nfor example '%1'.") |
401 | .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) ); | 401 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
402 | return false; | 402 | return false; |
403 | } | 403 | } |
404 | 404 | ||
405 | if (!mEndDateEdit->inputIsValid()) { | 405 | if (!mEndDateEdit->inputIsValid()) { |
406 | KMessageBox::sorry( 0, | 406 | KMessageBox::sorry( 0, |
407 | i18n("Please specify a valid end date, for example '%1'.") | 407 | i18n("Please specify a valid end date,\nfor example '%1'.") |
408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) ); | 408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
409 | return false; | 409 | return false; |
410 | } | 410 | } |
411 | 411 | ||
412 | QDateTime startDt,endDt; | 412 | QDateTime startDt,endDt; |
413 | startDt.setDate(mStartDateEdit->date()); | 413 | startDt.setDate(mStartDateEdit->date()); |
414 | endDt.setDate(mEndDateEdit->date()); | 414 | endDt.setDate(mEndDateEdit->date()); |
415 | if (!mNoTimeButton->isChecked()) { | 415 | if (!mNoTimeButton->isChecked()) { |
416 | startDt.setTime(mStartTimeEdit->getTime()); | 416 | startDt.setTime(mStartTimeEdit->getTime()); |
417 | endDt.setTime(mEndTimeEdit->getTime()); | 417 | endDt.setTime(mEndTimeEdit->getTime()); |
418 | } | 418 | } |
419 | 419 | ||
420 | if (startDt > endDt) { | 420 | if (startDt > endDt) { |
421 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" | 421 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" |
422 | "Please correct dates and times.")); | 422 | "Please correct dates and times.")); |
423 | return false; | 423 | return false; |
424 | } | 424 | } |
425 | 425 | ||
426 | return KOEditorGeneral::validateInput(); | 426 | return KOEditorGeneral::validateInput(); |
427 | } | 427 | } |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index da81586..f595d35 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -460,193 +460,193 @@ void MonthViewCell::insertEvent(Event *event) | |||
460 | setHoliday( true ); | 460 | setHoliday( true ); |
461 | if ( mDate.dayOfWeek() == 7 ) | 461 | if ( mDate.dayOfWeek() == 7 ) |
462 | mItemList->setLineWidth( 3 ); | 462 | mItemList->setLineWidth( 3 ); |
463 | } | 463 | } |
464 | QString text; | 464 | QString text; |
465 | if (event->isMultiDay()) { | 465 | if (event->isMultiDay()) { |
466 | QString prefix = "<->"; | 466 | QString prefix = "<->"; |
467 | if ( event->doesRecur() ) { | 467 | if ( event->doesRecur() ) { |
468 | if ( event->recursOn( mDate) ) | 468 | if ( event->recursOn( mDate) ) |
469 | prefix ="->" ; | 469 | prefix ="->" ; |
470 | else { | 470 | else { |
471 | int days = event->dtStart().date().daysTo ( event->dtEnd().date() ); | 471 | int days = event->dtStart().date().daysTo ( event->dtEnd().date() ); |
472 | if ( event->recursOn( mDate.addDays( -days)) ) | 472 | if ( event->recursOn( mDate.addDays( -days)) ) |
473 | prefix ="<-" ; | 473 | prefix ="<-" ; |
474 | } | 474 | } |
475 | 475 | ||
476 | } else { | 476 | } else { |
477 | if (mDate == event->dtStart().date()) { | 477 | if (mDate == event->dtStart().date()) { |
478 | prefix ="->" ; | 478 | prefix ="->" ; |
479 | } else if (mDate == event->dtEnd().date()) { | 479 | } else if (mDate == event->dtEnd().date()) { |
480 | prefix ="<-" ; | 480 | prefix ="<-" ; |
481 | } | 481 | } |
482 | } | 482 | } |
483 | if ( !event->doesFloat() ) { | 483 | if ( !event->doesFloat() ) { |
484 | if ( mDate == event->dtStart().date () ) | 484 | if ( mDate == event->dtStart().date () ) |
485 | prefix += KGlobal::locale()->formatTime(event->dtStart().time())+" "; | 485 | prefix += KGlobal::locale()->formatTime(event->dtStart().time())+" "; |
486 | else if ( mDate == event->dtEnd().date () ) | 486 | else if ( mDate == event->dtEnd().date () ) |
487 | prefix += KGlobal::locale()->formatTime(event->dtEnd().time())+" "; | 487 | prefix += KGlobal::locale()->formatTime(event->dtEnd().time())+" "; |
488 | 488 | ||
489 | } | 489 | } |
490 | text = prefix + event->summary(); | 490 | text = prefix + event->summary(); |
491 | mToolTip += text; | 491 | mToolTip += text; |
492 | } else { | 492 | } else { |
493 | if (event->doesFloat()) { | 493 | if (event->doesFloat()) { |
494 | text = event->summary(); | 494 | text = event->summary(); |
495 | mToolTip += text; | 495 | mToolTip += text; |
496 | } | 496 | } |
497 | else { | 497 | else { |
498 | text = KGlobal::locale()->formatTime(event->dtStart().time()); | 498 | text = KGlobal::locale()->formatTime(event->dtStart().time()); |
499 | text += " " + event->summary(); | 499 | text += " " + event->summary(); |
500 | mToolTip += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); | 500 | mToolTip += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); |
501 | } | 501 | } |
502 | } | 502 | } |
503 | 503 | ||
504 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); | 504 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); |
505 | QPalette pal; | 505 | QPalette pal; |
506 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { | 506 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { |
507 | QStringList categories = event->categories(); | 507 | QStringList categories = event->categories(); |
508 | QString cat = categories.first(); | 508 | QString cat = categories.first(); |
509 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { | 509 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { |
510 | pal = getPalette(); | 510 | pal = getPalette(); |
511 | if (cat.isEmpty()) { | 511 | if (cat.isEmpty()) { |
512 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); | 512 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); |
513 | } else { | 513 | } else { |
514 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); | 514 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); |
515 | } | 515 | } |
516 | 516 | ||
517 | } else { | 517 | } else { |
518 | if (cat.isEmpty()) { | 518 | if (cat.isEmpty()) { |
519 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); | 519 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); |
520 | } else { | 520 | } else { |
521 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); | 521 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); |
522 | } | 522 | } |
523 | } | 523 | } |
524 | 524 | ||
525 | } else { | 525 | } else { |
526 | pal = mStandardPalette ; | 526 | pal = mStandardPalette ; |
527 | } | 527 | } |
528 | item->setPalette( pal ); | 528 | item->setPalette( pal ); |
529 | item->setRecur( event->recurrence()->doesRecur() ); | 529 | item->setRecur( event->recurrence()->doesRecur() ); |
530 | item->setAlarm( event->isAlarmEnabled() ); | 530 | item->setAlarm( event->isAlarmEnabled() ); |
531 | item->setMoreInfo( event->description().length() > 0 ); | 531 | item->setMoreInfo( event->description().length() > 0 ); |
532 | #ifdef DESKTOP_VERSION | 532 | #ifdef DESKTOP_VERSION |
533 | Attendee *me = event->attendeeByMails(KOPrefs::instance()->mAdditionalMails, | 533 | Attendee *me = event->attendeeByMails(KOPrefs::instance()->mAdditionalMails, |
534 | KOPrefs::instance()->email()); | 534 | KOPrefs::instance()->email()); |
535 | if ( me != 0 ) { | 535 | if ( me != 0 ) { |
536 | if ( me->status() == Attendee::NeedsAction && me->RSVP()) | 536 | if ( me->status() == Attendee::NeedsAction && me->RSVP()) |
537 | item->setReply(true); | 537 | item->setReply(true); |
538 | else | 538 | else |
539 | item->setReply(false); | 539 | item->setReply(false); |
540 | } else | 540 | } else |
541 | item->setReply(false); | 541 | item->setReply(false); |
542 | #endif | 542 | #endif |
543 | mItemList->insertItem( item ); | 543 | mItemList->insertItem( item ); |
544 | mToolTip += "\n"; | 544 | mToolTip += "\n"; |
545 | } | 545 | } |
546 | void MonthViewCell::insertTodo(Todo *todo) | 546 | void MonthViewCell::insertTodo(Todo *todo) |
547 | { | 547 | { |
548 | mItemList->setFocusPolicy(WheelFocus); | 548 | mItemList->setFocusPolicy(WheelFocus); |
549 | QString text; | 549 | QString text; |
550 | if (todo->hasDueDate()) { | 550 | if (todo->hasDueDate()) { |
551 | if (!todo->doesFloat()) { | 551 | if (!todo->doesFloat()) { |
552 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); | 552 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); |
553 | text += " "; | 553 | text += " "; |
554 | } | 554 | } |
555 | } | 555 | } |
556 | text += i18n("Td: %1").arg(todo->summary()); | 556 | text += i18n("T: %1").arg(todo->summary()); |
557 | 557 | ||
558 | MonthViewItem *item = new MonthViewItem( todo, mDate, text ); | 558 | MonthViewItem *item = new MonthViewItem( todo, mDate, text ); |
559 | //item->setPalette( mStandardPalette ); | 559 | //item->setPalette( mStandardPalette ); |
560 | QPalette pal; | 560 | QPalette pal; |
561 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { | 561 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { |
562 | QStringList categories = todo->categories(); | 562 | QStringList categories = todo->categories(); |
563 | QString cat = categories.first(); | 563 | QString cat = categories.first(); |
564 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { | 564 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { |
565 | pal = getPalette(); | 565 | pal = getPalette(); |
566 | if (cat.isEmpty()) { | 566 | if (cat.isEmpty()) { |
567 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); | 567 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); |
568 | } else { | 568 | } else { |
569 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); | 569 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); |
570 | } | 570 | } |
571 | 571 | ||
572 | } else { | 572 | } else { |
573 | if (cat.isEmpty()) { | 573 | if (cat.isEmpty()) { |
574 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); | 574 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); |
575 | } else { | 575 | } else { |
576 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); | 576 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); |
577 | } | 577 | } |
578 | } | 578 | } |
579 | 579 | ||
580 | } else { | 580 | } else { |
581 | pal = mStandardPalette ; | 581 | pal = mStandardPalette ; |
582 | } | 582 | } |
583 | item->setPalette( pal ); | 583 | item->setPalette( pal ); |
584 | mItemList->insertItem( item ); | 584 | mItemList->insertItem( item ); |
585 | mToolTip += text+"\n"; | 585 | mToolTip += text+"\n"; |
586 | } | 586 | } |
587 | void MonthViewCell::finishUpdateCell() | 587 | void MonthViewCell::finishUpdateCell() |
588 | { | 588 | { |
589 | #ifdef DESKTOP_VERSION | 589 | #ifdef DESKTOP_VERSION |
590 | if (mToolTip != "") | 590 | if (mToolTip != "") |
591 | QToolTip::add(this,mToolTip,toolTipGroup(),""); | 591 | QToolTip::add(this,mToolTip,toolTipGroup(),""); |
592 | #endif | 592 | #endif |
593 | mItemList->sort(); | 593 | mItemList->sort(); |
594 | //setMyPalette(); | 594 | //setMyPalette(); |
595 | setMyPalette(); | 595 | setMyPalette(); |
596 | QString text; | 596 | QString text; |
597 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; | 597 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; |
598 | if ( KOPrefs::instance()->mMonthViewWeek || KOGlobals::self()->calendarSystem()->day( mDate ) == 1 || (mDate.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { | 598 | if ( KOPrefs::instance()->mMonthViewWeek || KOGlobals::self()->calendarSystem()->day( mDate ) == 1 || (mDate.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { |
599 | text = KOGlobals::self()->calendarSystem()->monthName( mDate, true ) + " "; | 599 | text = KOGlobals::self()->calendarSystem()->monthName( mDate, true ) + " "; |
600 | mLabel->resize( mLabelBigSize ); | 600 | mLabel->resize( mLabelBigSize ); |
601 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); | 601 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); |
602 | } else { | 602 | } else { |
603 | mLabel->resize( mLabelSize ); | 603 | mLabel->resize( mLabelSize ); |
604 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); | 604 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); |
605 | } | 605 | } |
606 | 606 | ||
607 | mLabel->setText( text ); | 607 | mLabel->setText( text ); |
608 | resizeEvent( 0 ); | 608 | resizeEvent( 0 ); |
609 | } | 609 | } |
610 | void MonthViewCell::updateCell() | 610 | void MonthViewCell::updateCell() |
611 | { | 611 | { |
612 | qDebug("MonthViewCell::updateCell() "); | 612 | qDebug("MonthViewCell::updateCell() "); |
613 | if ( !mMonthView->isUpdatePossible() ) | 613 | if ( !mMonthView->isUpdatePossible() ) |
614 | return; | 614 | return; |
615 | startUpdateCell(); | 615 | startUpdateCell(); |
616 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 616 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
617 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); | 617 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); |
618 | Event *event; | 618 | Event *event; |
619 | for( event = events.first(); event; event = events.next() ) { // for event | 619 | for( event = events.first(); event; event = events.next() ) { // for event |
620 | insertEvent(event); | 620 | insertEvent(event); |
621 | } | 621 | } |
622 | // insert due todos | 622 | // insert due todos |
623 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); | 623 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); |
624 | Todo *todo; | 624 | Todo *todo; |
625 | for(todo = todos.first(); todo; todo = todos.next()) { | 625 | for(todo = todos.first(); todo; todo = todos.next()) { |
626 | insertTodo( todo ); | 626 | insertTodo( todo ); |
627 | } | 627 | } |
628 | finishUpdateCell(); | 628 | finishUpdateCell(); |
629 | // if ( isVisible()) | 629 | // if ( isVisible()) |
630 | //qApp->processEvents(); | 630 | //qApp->processEvents(); |
631 | } | 631 | } |
632 | 632 | ||
633 | void MonthViewCell::updateConfig( bool bigFont ) // = false | 633 | void MonthViewCell::updateConfig( bool bigFont ) // = false |
634 | { | 634 | { |
635 | 635 | ||
636 | if ( bigFont ) { | 636 | if ( bigFont ) { |
637 | QFont fo = KOPrefs::instance()->mMonthViewFont; | 637 | QFont fo = KOPrefs::instance()->mMonthViewFont; |
638 | int ps = fo.pointSize() + 2; | 638 | int ps = fo.pointSize() + 2; |
639 | if ( ps < 18 ) | 639 | if ( ps < 18 ) |
640 | ps += 2; | 640 | ps += 2; |
641 | fo.setPointSize( ps ); | 641 | fo.setPointSize( ps ); |
642 | setFont( fo ); | 642 | setFont( fo ); |
643 | } else | 643 | } else |
644 | setFont( KOPrefs::instance()->mMonthViewFont ); | 644 | setFont( KOPrefs::instance()->mMonthViewFont ); |
645 | 645 | ||
646 | QFontMetrics fm( font() ); | 646 | QFontMetrics fm( font() ); |
647 | mLabelSize = fm.size( 0, "30" ) + QSize( 4, 2 ); | 647 | mLabelSize = fm.size( 0, "30" ) + QSize( 4, 2 ); |
648 | mLabelBigSize = fm.size( 0, "Mag 30" ) + QSize( 2, 2 ); | 648 | mLabelBigSize = fm.size( 0, "Mag 30" ) + QSize( 2, 2 ); |
649 | mHolidayPalette = mStandardPalette; | 649 | mHolidayPalette = mStandardPalette; |
650 | mPrimaryPalette = mStandardPalette; | 650 | mPrimaryPalette = mStandardPalette; |
651 | mNonPrimaryPalette = mStandardPalette; | 651 | mNonPrimaryPalette = mStandardPalette; |
652 | if ( KOPrefs::instance()->mMonthViewUsesDayColors ) { | 652 | if ( KOPrefs::instance()->mMonthViewUsesDayColors ) { |
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 44db209..0e847c2 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp | |||
@@ -178,219 +178,219 @@ void KOTodoViewItem::setMyPixmap() | |||
178 | if ( mTodo->description().length() > 0 ) { | 178 | if ( mTodo->description().length() > 0 ) { |
179 | pixi.resize(size, pixSize+size); | 179 | pixi.resize(size, pixSize+size); |
180 | pPix.fill( Qt::darkGreen ); | 180 | pPix.fill( Qt::darkGreen ); |
181 | p.begin( &pixi ); | 181 | p.begin( &pixi ); |
182 | p. drawPixmap ( 0, pixSize, pPix); | 182 | p. drawPixmap ( 0, pixSize, pPix); |
183 | p.end(); | 183 | p.end(); |
184 | pixSize += size; | 184 | pixSize += size; |
185 | } | 185 | } |
186 | if ( mTodo->isAlarmEnabled() ) { | 186 | if ( mTodo->isAlarmEnabled() ) { |
187 | pixi.resize(size, pixSize+size); | 187 | pixi.resize(size, pixSize+size); |
188 | pPix.fill( Qt::red ); | 188 | pPix.fill( Qt::red ); |
189 | p.begin( &pixi ); | 189 | p.begin( &pixi ); |
190 | p. drawPixmap ( 0, pixSize, pPix); | 190 | p. drawPixmap ( 0, pixSize, pPix); |
191 | p.end(); | 191 | p.end(); |
192 | pixSize += size; | 192 | pixSize += size; |
193 | } | 193 | } |
194 | // } | 194 | // } |
195 | if ( pixi.width() > 1 ) { | 195 | if ( pixi.width() > 1 ) { |
196 | setPixmap ( 0,pixi ) ; | 196 | setPixmap ( 0,pixi ) ; |
197 | } else { | 197 | } else { |
198 | setPixmap ( 0,QPixmap() ) ; | 198 | setPixmap ( 0,QPixmap() ) ; |
199 | } | 199 | } |
200 | } | 200 | } |
201 | void KOTodoViewItem::stateChange(bool state) | 201 | void KOTodoViewItem::stateChange(bool state) |
202 | { | 202 | { |
203 | // qDebug("KOTodoViewItem::stateChange "); | 203 | // qDebug("KOTodoViewItem::stateChange "); |
204 | // do not change setting on startup | 204 | // do not change setting on startup |
205 | if ( m_init ) return; | 205 | if ( m_init ) return; |
206 | if (isOn()!=state) { | 206 | if (isOn()!=state) { |
207 | setOn(state); | 207 | setOn(state); |
208 | //qDebug("SETON "); | 208 | //qDebug("SETON "); |
209 | return; | 209 | return; |
210 | } | 210 | } |
211 | if ( mTodo->isCompleted() == state ) { | 211 | if ( mTodo->isCompleted() == state ) { |
212 | //qDebug("STATECHANGE:nothing to do "); | 212 | //qDebug("STATECHANGE:nothing to do "); |
213 | return; | 213 | return; |
214 | } | 214 | } |
215 | QString keyd = "=="; | 215 | QString keyd = "=="; |
216 | QString keyt = "=="; | 216 | QString keyt = "=="; |
217 | //qDebug("KOTodoViewItem::stateChange %s ", text(0).latin1()); | 217 | //qDebug("KOTodoViewItem::stateChange %s ", text(0).latin1()); |
218 | mTodo->setCompleted(state); | 218 | mTodo->setCompleted(state); |
219 | if (state) mTodo->setCompleted(QDateTime::currentDateTime()); | 219 | if (state) mTodo->setCompleted(QDateTime::currentDateTime()); |
220 | 220 | ||
221 | if (mTodo->hasDueDate()) { | 221 | if (mTodo->hasDueDate()) { |
222 | setText(3, mTodo->dtDueDateStr()); | 222 | setText(3, mTodo->dtDueDateStr()); |
223 | QDate d = mTodo->dtDue().date(); | 223 | QDate d = mTodo->dtDue().date(); |
224 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 224 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
225 | setSortKey(3,keyd); | 225 | setSortKey(3,keyd); |
226 | if (mTodo->doesFloat()) { | 226 | if (mTodo->doesFloat()) { |
227 | setText(4,""); | 227 | setText(4,""); |
228 | } | 228 | } |
229 | else { | 229 | else { |
230 | setText(4,mTodo->dtDueTimeStr()); | 230 | setText(4,mTodo->dtDueTimeStr()); |
231 | QTime t = mTodo->dtDue().time(); | 231 | QTime t = mTodo->dtDue().time(); |
232 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); | 232 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); |
233 | setSortKey(4,keyt); | 233 | setSortKey(4,keyt); |
234 | } | 234 | } |
235 | } | 235 | } |
236 | if (mTodo->isCompleted()) setSortKey(1,QString::number(9)+keyd+keyt); | 236 | if (mTodo->isCompleted()) setSortKey(1,QString::number(9)+keyd+keyt); |
237 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); | 237 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); |
238 | 238 | ||
239 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); | 239 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); |
240 | if (mTodo->percentComplete()<100) { | 240 | if (mTodo->percentComplete()<100) { |
241 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 241 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
242 | else setSortKey(2,QString::number(mTodo->percentComplete())); | 242 | else setSortKey(2,QString::number(mTodo->percentComplete())); |
243 | } | 243 | } |
244 | else { | 244 | else { |
245 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 245 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
246 | else setSortKey(2,QString::number(99)); | 246 | else setSortKey(2,QString::number(99)); |
247 | } | 247 | } |
248 | if ( state ) { | 248 | if ( state ) { |
249 | QListViewItem * myChild = firstChild(); | 249 | QListViewItem * myChild = firstChild(); |
250 | KOTodoViewItem *item; | 250 | KOTodoViewItem *item; |
251 | while( myChild ) { | 251 | while( myChild ) { |
252 | //qDebug("stateCH "); | 252 | //qDebug("stateCH "); |
253 | item = static_cast<KOTodoViewItem*>(myChild); | 253 | item = static_cast<KOTodoViewItem*>(myChild); |
254 | item->stateChange(state); | 254 | item->stateChange(state); |
255 | myChild = myChild->nextSibling(); | 255 | myChild = myChild->nextSibling(); |
256 | } | 256 | } |
257 | } else { | 257 | } else { |
258 | QListViewItem * myChild = parent(); | 258 | QListViewItem * myChild = parent(); |
259 | if ( myChild ) | 259 | if ( myChild ) |
260 | (static_cast<KOTodoViewItem*>(myChild))->stateChange(state); | 260 | (static_cast<KOTodoViewItem*>(myChild))->stateChange(state); |
261 | } | 261 | } |
262 | mTodoView->modified(true); | 262 | mTodoView->modified(true); |
263 | setMyPixmap(); | 263 | setMyPixmap(); |
264 | mTodoView->setTodoModified( mTodo ); | 264 | mTodoView->setTodoModified( mTodo ); |
265 | } | 265 | } |
266 | 266 | ||
267 | bool KOTodoViewItem::isAlternate() | 267 | bool KOTodoViewItem::isAlternate() |
268 | { | 268 | { |
269 | 269 | ||
270 | KOTodoListView *lv = static_cast<KOTodoListView *>(listView()); | 270 | KOTodoListView *lv = static_cast<KOTodoListView *>(listView()); |
271 | if (lv && lv->alternateBackground().isValid()) | 271 | if (lv && lv->alternateBackground().isValid()) |
272 | { | 272 | { |
273 | KOTodoViewItem *above = 0; | 273 | KOTodoViewItem *above = 0; |
274 | above = dynamic_cast<KOTodoViewItem *>(itemAbove()); | 274 | above = static_cast<KOTodoViewItem *>(itemAbove()); |
275 | m_known = above ? above->m_known : true; | 275 | m_known = above ? above->m_known : true; |
276 | if (m_known) | 276 | if (m_known) |
277 | { | 277 | { |
278 | m_odd = above ? !above->m_odd : false; | 278 | m_odd = above ? !above->m_odd : false; |
279 | } | 279 | } |
280 | else | 280 | else |
281 | { | 281 | { |
282 | KOTodoViewItem *item; | 282 | KOTodoViewItem *item; |
283 | bool previous = true; | 283 | bool previous = true; |
284 | if (QListViewItem::parent()) | 284 | if (QListViewItem::parent()) |
285 | { | 285 | { |
286 | item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent()); | 286 | item = static_cast<KOTodoViewItem *>(QListViewItem::parent()); |
287 | if (item) | 287 | if (item) |
288 | previous = item->m_odd; | 288 | previous = item->m_odd; |
289 | item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild()); | 289 | item = static_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild()); |
290 | } | 290 | } |
291 | else | 291 | else |
292 | { | 292 | { |
293 | item = dynamic_cast<KOTodoViewItem *>(lv->firstChild()); | 293 | item = static_cast<KOTodoViewItem *>(lv->firstChild()); |
294 | } | 294 | } |
295 | 295 | ||
296 | while(item) | 296 | while(item) |
297 | { | 297 | { |
298 | item->m_odd = previous = !previous; | 298 | item->m_odd = previous = !previous; |
299 | item->m_known = true; | 299 | item->m_known = true; |
300 | item = dynamic_cast<KOTodoViewItem *>(item->nextSibling()); | 300 | item = static_cast<KOTodoViewItem *>(item->nextSibling()); |
301 | } | 301 | } |
302 | } | 302 | } |
303 | return m_odd; | 303 | return m_odd; |
304 | } | 304 | } |
305 | return false; | 305 | return false; |
306 | } | 306 | } |
307 | 307 | ||
308 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) | 308 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
309 | { | 309 | { |
310 | QColorGroup _cg = cg; | 310 | QColorGroup _cg = cg; |
311 | QColorGroup::ColorRole role; | 311 | QColorGroup::ColorRole role; |
312 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor ) | 312 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor ) |
313 | role = QColorGroup::Text; | 313 | role = QColorGroup::Text; |
314 | else | 314 | else |
315 | role = QColorGroup::Base; | 315 | role = QColorGroup::Base; |
316 | //#ifndef KORG_NOLVALTERNATION | 316 | //#ifndef KORG_NOLVALTERNATION |
317 | if (isAlternate()) | 317 | if (isAlternate()) |
318 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); | 318 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); |
319 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; | 319 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; |
320 | QColor colorToSet; | 320 | QColor colorToSet; |
321 | if ( setColor ) { | 321 | if ( setColor ) { |
322 | QStringList categories = mTodo->categories(); | 322 | QStringList categories = mTodo->categories(); |
323 | QString cat = categories.first(); | 323 | QString cat = categories.first(); |
324 | if ( !cat.isEmpty()) { | 324 | if ( !cat.isEmpty()) { |
325 | colorToSet = *(KOPrefs::instance()->categoryColor(cat) ); | 325 | colorToSet = *(KOPrefs::instance()->categoryColor(cat) ); |
326 | } else | 326 | } else |
327 | setColor = false; | 327 | setColor = false; |
328 | } | 328 | } |
329 | 329 | ||
330 | int odue = mTodo->hasDueSubTodo( !isOpen()); | 330 | int odue = mTodo->hasDueSubTodo( !isOpen()); |
331 | if (odue == 2) { | 331 | if (odue == 2) { |
332 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; | 332 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; |
333 | setColor = true; | 333 | setColor = true; |
334 | } else if ( odue == 1 ) { | 334 | } else if ( odue == 1 ) { |
335 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; | 335 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; |
336 | setColor = true; | 336 | setColor = true; |
337 | } | 337 | } |
338 | 338 | ||
339 | 339 | ||
340 | if ( setColor ) { | 340 | if ( setColor ) { |
341 | _cg.setColor(role,colorToSet ); | 341 | _cg.setColor(role,colorToSet ); |
342 | if ( role == QColorGroup::Base) { | 342 | if ( role == QColorGroup::Base) { |
343 | int rgb = colorToSet.red(); | 343 | int rgb = colorToSet.red(); |
344 | rgb += colorToSet.blue()/2; | 344 | rgb += colorToSet.blue()/2; |
345 | rgb += colorToSet.green(); | 345 | rgb += colorToSet.green(); |
346 | if ( rgb < 200 ) | 346 | if ( rgb < 200 ) |
347 | _cg.setColor(QColorGroup::Text,Qt::white ); | 347 | _cg.setColor(QColorGroup::Text,Qt::white ); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | //#endif | 350 | //#endif |
351 | if ( column > 0 ){ | 351 | if ( column > 0 ){ |
352 | if ( column == 2 && !KOPrefs::instance()->mTodoViewShowsPercentage ) { | 352 | if ( column == 2 && !KOPrefs::instance()->mTodoViewShowsPercentage ) { |
353 | p->save(); | 353 | p->save(); |
354 | int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5); | 354 | int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5); |
355 | 355 | ||
356 | p->fillRect( 0, 0, width, height(), _cg.base() ); // background | 356 | p->fillRect( 0, 0, width, height(), _cg.base() ); // background |
357 | // p->setPen(Qt::black ); //border | 357 | // p->setPen(Qt::black ); //border |
358 | // p->setBrush( KOPrefs::instance()->mHighlightColorKGlobalSettings::baseColor() ); //filling | 358 | // p->setBrush( KOPrefs::instance()->mHighlightColorKGlobalSettings::baseColor() ); //filling |
359 | QColor fc = KOPrefs::instance()->mHighlightColor; | 359 | QColor fc = KOPrefs::instance()->mHighlightColor; |
360 | if ( mTodo->percentComplete() == 100 ) | 360 | if ( mTodo->percentComplete() == 100 ) |
361 | fc = darkGreen; | 361 | fc = darkGreen; |
362 | p->drawRect( 2, 2, width-4, height()-4); | 362 | p->drawRect( 2, 2, width-4, height()-4); |
363 | p->fillRect( 3, 3, progress, height()-6, | 363 | p->fillRect( 3, 3, progress, height()-6, |
364 | fc ); | 364 | fc ); |
365 | p->restore(); | 365 | p->restore(); |
366 | } else { | 366 | } else { |
367 | QCheckListItem::paintCell(p, _cg, column, width, alignment); | 367 | QCheckListItem::paintCell(p, _cg, column, width, alignment); |
368 | } | 368 | } |
369 | return; | 369 | return; |
370 | } | 370 | } |
371 | 371 | ||
372 | int align = alignment; | 372 | int align = alignment; |
373 | 373 | ||
374 | if ( !p ) | 374 | if ( !p ) |
375 | return; | 375 | return; |
376 | 376 | ||
377 | p->fillRect( 0, 0, width, height(), _cg.brush( QColorGroup::Base ) ); | 377 | p->fillRect( 0, 0, width, height(), _cg.brush( QColorGroup::Base ) ); |
378 | 378 | ||
379 | QListView *lv = listView(); | 379 | QListView *lv = listView(); |
380 | if ( !lv ) | 380 | if ( !lv ) |
381 | return; | 381 | return; |
382 | int marg = 2;//lv->itemMargin(); | 382 | int marg = 2;//lv->itemMargin(); |
383 | int r = 0; | 383 | int r = 0; |
384 | QCheckListItem::Type myType = QCheckListItem::CheckBox; | 384 | QCheckListItem::Type myType = QCheckListItem::CheckBox; |
385 | int BoxSize = 20; | 385 | int BoxSize = 20; |
386 | int boxOffset = 2; | 386 | int boxOffset = 2; |
387 | int xOffset = 2; | 387 | int xOffset = 2; |
388 | if (qApp->desktop()->width() < 300 ) { | 388 | if (qApp->desktop()->width() < 300 ) { |
389 | BoxSize = 14; | 389 | BoxSize = 14; |
390 | boxOffset = -1; | 390 | boxOffset = -1; |
391 | xOffset = 1; | 391 | xOffset = 1; |
392 | // marg = 0; | 392 | // marg = 0; |
393 | } | 393 | } |
394 | if ( height() < BoxSize ) { | 394 | if ( height() < BoxSize ) { |
395 | boxOffset = boxOffset - ((BoxSize - height())/2) ; | 395 | boxOffset = boxOffset - ((BoxSize - height())/2) ; |
396 | // qDebug("boxOffset %d height %d", boxOffset, height() ); | 396 | // qDebug("boxOffset %d height %d", boxOffset, height() ); |
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 10665f4..391b3bb 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -522,193 +522,197 @@ bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool a | |||
522 | tempText += dateText; | 522 | tempText += dateText; |
523 | else { | 523 | else { |
524 | if ( end < cdt ) { | 524 | if ( end < cdt ) { |
525 | if ( !KOPrefs::instance()->mWNViewShowsPast ) | 525 | if ( !KOPrefs::instance()->mWNViewShowsPast ) |
526 | return false; | 526 | return false; |
527 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; | 527 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; |
528 | } | 528 | } |
529 | else if ( st < cdt ) | 529 | else if ( st < cdt ) |
530 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; | 530 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; |
531 | else | 531 | else |
532 | tempText += dateText; | 532 | tempText += dateText; |
533 | 533 | ||
534 | } | 534 | } |
535 | 535 | ||
536 | } else { | 536 | } else { |
537 | if ( bDay ) { | 537 | if ( bDay ) { |
538 | 538 | ||
539 | if ( ev->categories().contains( i18n("Birthday") )) | 539 | if ( ev->categories().contains( i18n("Birthday") )) |
540 | tempText += "<font color=\"#F00000\">" + i18n("Birthday") +":</font>"; | 540 | tempText += "<font color=\"#F00000\">" + i18n("Birthday") +":</font>"; |
541 | else | 541 | else |
542 | tempText += "<font color=\"#F00000\">" + i18n("Anniversary")+":</font>"; | 542 | tempText += "<font color=\"#F00000\">" + i18n("Anniversary")+":</font>"; |
543 | } else { | 543 | } else { |
544 | tempText += i18n("Allday:"); | 544 | tempText += i18n("Allday:"); |
545 | } | 545 | } |
546 | 546 | ||
547 | } | 547 | } |
548 | } | 548 | } |
549 | } else { | 549 | } else { |
550 | mTodos.append( ev ); | 550 | mTodos.append( ev ); |
551 | tempText += i18n("ToDo:"); | 551 | tempText += i18n("ToDo:"); |
552 | if (reply) { | 552 | if (reply) { |
553 | tempText += " "; | 553 | tempText += " "; |
554 | if ( noc != cdt ) { | 554 | if ( noc != cdt ) { |
555 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 555 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
556 | } | 556 | } |
557 | } else { | 557 | } else { |
558 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { | 558 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { |
559 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; | 559 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; |
560 | QString dfs = KGlobal::locale()->dateFormatShort(); | 560 | QString dfs = KGlobal::locale()->dateFormatShort(); |
561 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 561 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
562 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; | 562 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; |
563 | KGlobal::locale()->setDateFormatShort(dfs); | 563 | KGlobal::locale()->setDateFormatShort(dfs); |
564 | } else { | 564 | } else { |
565 | if (!ev->doesFloat() ) | 565 | if (!ev->doesFloat() ) |
566 | if( ( (Todo*)ev)->dtDue() < cdt ) { | 566 | if( ( (Todo*)ev)->dtDue() < cdt ) { |
567 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; | 567 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; |
568 | 568 | ||
569 | 569 | ||
570 | } else | 570 | } else |
571 | tempText +=((Todo*)ev)->dtDueTimeStr(); | 571 | tempText +=((Todo*)ev)->dtDueTimeStr(); |
572 | mTodos.append( ev ); | 572 | mTodos.append( ev ); |
573 | } | 573 | } |
574 | } | 574 | } |
575 | } | 575 | } |
576 | tempText += "</b></td><td>"; | 576 | tempText += "</b></td><td>"; |
577 | bool needClose = false; | 577 | bool needClose = false; |
578 | if ( ev->cancelled() ) { | 578 | if ( ev->cancelled() ) { |
579 | tempText += "<font color=\"#F00000\">[c"; | 579 | tempText += "<font color=\"#F00000\">[c"; |
580 | needClose =true; | 580 | needClose =true; |
581 | 581 | ||
582 | } | 582 | } |
583 | if ( ev->isAlarmEnabled() ) { | 583 | if ( ev->isAlarmEnabled() ) { |
584 | if ( !needClose) | 584 | if ( !needClose) |
585 | tempText +="["; | 585 | tempText +="["; |
586 | tempText += "a"; | 586 | tempText += "a"; |
587 | needClose =true; | 587 | needClose =true; |
588 | 588 | ||
589 | } | 589 | } |
590 | if ( ev->description().length() > 0 ) { | 590 | if ( ev->description().length() > 0 ) { |
591 | if ( !needClose) | 591 | if ( !needClose) |
592 | tempText +="["; | 592 | tempText +="["; |
593 | tempText += "i"; | 593 | tempText += "i"; |
594 | needClose =true; | 594 | needClose =true; |
595 | } | 595 | } |
596 | if ( ev->recurrence()->doesRecur() ) { | 596 | if ( ev->recurrence()->doesRecur() ) { |
597 | if ( !needClose) | 597 | if ( !needClose) |
598 | tempText +="["; | 598 | tempText +="["; |
599 | tempText += "r"; | 599 | tempText += "r"; |
600 | needClose =true; | 600 | needClose =true; |
601 | } | 601 | } |
602 | if ( needClose ) { | 602 | if ( needClose ) { |
603 | tempText += "] "; | 603 | tempText += "] "; |
604 | } | 604 | } |
605 | if ( ev->cancelled() ) | 605 | if ( ev->cancelled() ) |
606 | tempText += "</font>"; | 606 | tempText += "</font>"; |
607 | tempText += "<a "; | 607 | tempText += "<a "; |
608 | if (ev->type()=="Event") tempText += "href=\"event:"; | 608 | if (ev->type()=="Event") tempText += "href=\"event:"; |
609 | if (ev->type()=="Todo") tempText += "href=\"todo:"; | 609 | if (ev->type()=="Todo") tempText += "href=\"todo:"; |
610 | tempText += ev->uid() + "\">"; | 610 | tempText += ev->uid() + "\">"; |
611 | if ( ev->summary().length() > 0 ) | 611 | if ( ev->summary().length() > 0 ) |
612 | tempText += ev->summary(); | 612 | tempText += ev->summary(); |
613 | else | 613 | else |
614 | tempText += i18n("-no summary-"); | 614 | tempText += i18n("-no summary-"); |
615 | if ( bDay ) { | 615 | if ( bDay ) { |
616 | noc = ev->getNextOccurence( cdt.addDays(-1), &ok ); | 616 | noc = ev->getNextOccurence( cdt.addDays(-1), &ok ); |
617 | if ( ok ) { | 617 | if ( ok ) { |
618 | int years = noc.date().year() - ev->dtStart().date().year(); | 618 | int years = 0; |
619 | if ( ev->type() =="Todo" ) { | ||
620 | years = noc.date().year() -((Todo*)ev)->dtDue().date().year(); | ||
621 | } else | ||
622 | years = noc.date().year() - ev->dtStart().date().year(); | ||
619 | tempText += i18n(" (%1 y.)"). arg( years ); | 623 | tempText += i18n(" (%1 y.)"). arg( years ); |
620 | } | 624 | } |
621 | } | 625 | } |
622 | 626 | ||
623 | tempText += "</a>"; | 627 | tempText += "</a>"; |
624 | if ( KOPrefs::instance()->mWNViewShowLocation ) | 628 | if ( KOPrefs::instance()->mWNViewShowLocation ) |
625 | if ( !ev->location().isEmpty() ) | 629 | if ( !ev->location().isEmpty() ) |
626 | tempText += " ("+ev->location() +")"; | 630 | tempText += " ("+ev->location() +")"; |
627 | if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents) | 631 | if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents) |
628 | tempText += " ["+ev->relatedTo()->summary() +"]"; | 632 | tempText += " ["+ev->relatedTo()->summary() +"]"; |
629 | tempText += "</td></tr>\n"; | 633 | tempText += "</td></tr>\n"; |
630 | mText += tempText; | 634 | mText += tempText; |
631 | return true; | 635 | return true; |
632 | } | 636 | } |
633 | 637 | ||
634 | bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) | 638 | bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) |
635 | { | 639 | { |
636 | if ( mTodos.find( ev ) != mTodos.end() ) return false; | 640 | if ( mTodos.find( ev ) != mTodos.end() ) return false; |
637 | 641 | ||
638 | mTodos.append( ev ); | 642 | mTodos.append( ev ); |
639 | if ( !isSub ) | 643 | if ( !isSub ) |
640 | mText += "<p>"; | 644 | mText += "<p>"; |
641 | else | 645 | else |
642 | mText += "<li>"; | 646 | mText += "<li>"; |
643 | mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] "; | 647 | mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] "; |
644 | 648 | ||
645 | 649 | ||
646 | mText += ind; | 650 | mText += ind; |
647 | bool needClose = false; | 651 | bool needClose = false; |
648 | if ( ev->cancelled() ) { | 652 | if ( ev->cancelled() ) { |
649 | mText += "<font color=\"#F00000\">[c"; | 653 | mText += "<font color=\"#F00000\">[c"; |
650 | needClose =true; | 654 | needClose =true; |
651 | 655 | ||
652 | } | 656 | } |
653 | if ( ev->isAlarmEnabled() ) { | 657 | if ( ev->isAlarmEnabled() ) { |
654 | if ( !needClose) | 658 | if ( !needClose) |
655 | mText +="["; | 659 | mText +="["; |
656 | mText += "a"; | 660 | mText += "a"; |
657 | needClose =true; | 661 | needClose =true; |
658 | 662 | ||
659 | } | 663 | } |
660 | 664 | ||
661 | if ( ev->description().length() > 0 ) { | 665 | if ( ev->description().length() > 0 ) { |
662 | if ( !needClose) | 666 | if ( !needClose) |
663 | mText +="["; | 667 | mText +="["; |
664 | mText += "i"; | 668 | mText += "i"; |
665 | needClose =true; | 669 | needClose =true; |
666 | } | 670 | } |
667 | // if ( ev->recurrence()->doesRecur() ) { | 671 | // if ( ev->recurrence()->doesRecur() ) { |
668 | // if ( !needClose) | 672 | // if ( !needClose) |
669 | // mText +="("; | 673 | // mText +="("; |
670 | // mText += "r"; | 674 | // mText += "r"; |
671 | // needClose =true; | 675 | // needClose =true; |
672 | // } | 676 | // } |
673 | if ( needClose ) | 677 | if ( needClose ) |
674 | mText += "] "; | 678 | mText += "] "; |
675 | if ( ev->cancelled() ) | 679 | if ( ev->cancelled() ) |
676 | mText += "</font>"; | 680 | mText += "</font>"; |
677 | mText += "<a href=\"todo:" + ev->uid() + "\">"; | 681 | mText += "<a href=\"todo:" + ev->uid() + "\">"; |
678 | if ( ev->summary().length() > 0 ) | 682 | if ( ev->summary().length() > 0 ) |
679 | mText += ev->summary(); | 683 | mText += ev->summary(); |
680 | else | 684 | else |
681 | mText += i18n("-no summary-"); | 685 | mText += i18n("-no summary-"); |
682 | mText += "</a>"; | 686 | mText += "</a>"; |
683 | if ( ((Todo*)ev)->hasDueDate () ) { | 687 | if ( ((Todo*)ev)->hasDueDate () ) { |
684 | QString year = ""; | 688 | QString year = ""; |
685 | int ye = ((Todo*)ev)->dtDue().date().year(); | 689 | int ye = ((Todo*)ev)->dtDue().date().year(); |
686 | if ( QDateTime::currentDateTime().date().year() != ye ) | 690 | if ( QDateTime::currentDateTime().date().year() != ye ) |
687 | year = QString::number( ye ); | 691 | year = QString::number( ye ); |
688 | QString dfs = KGlobal::locale()->dateFormatShort(); | 692 | QString dfs = KGlobal::locale()->dateFormatShort(); |
689 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 693 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
690 | mText +="<font color=\"#00A000\"> [" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "."+ year +"]</font>"; | 694 | mText +="<font color=\"#00A000\"> [" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "."+ year +"]</font>"; |
691 | KGlobal::locale()->setDateFormatShort(dfs); | 695 | KGlobal::locale()->setDateFormatShort(dfs); |
692 | } | 696 | } |
693 | if ( KOPrefs::instance()->mWNViewShowLocation ) | 697 | if ( KOPrefs::instance()->mWNViewShowLocation ) |
694 | if ( !ev->location().isEmpty() ) | 698 | if ( !ev->location().isEmpty() ) |
695 | mText += " ("+ev->location() +")"; | 699 | mText += " ("+ev->location() +")"; |
696 | if ( !isSub ) { | 700 | if ( !isSub ) { |
697 | if ( ((Todo*)ev)->relatedTo()&& KOPrefs::instance()->mWNViewShowsParents) | 701 | if ( ((Todo*)ev)->relatedTo()&& KOPrefs::instance()->mWNViewShowsParents) |
698 | mText += " ["+ev->relatedTo()->summary() +"]"; | 702 | mText += " ["+ev->relatedTo()->summary() +"]"; |
699 | mText += "</p>\n"; | 703 | mText += "</p>\n"; |
700 | } | 704 | } |
701 | else { | 705 | else { |
702 | ind += "-"; | 706 | ind += "-"; |
703 | mText += "</li>\n"; | 707 | mText += "</li>\n"; |
704 | } | 708 | } |
705 | QPtrList<Incidence> Relations = ev->relations(); | 709 | QPtrList<Incidence> Relations = ev->relations(); |
706 | Incidence *to; | 710 | Incidence *to; |
707 | for (to=Relations.first();to;to=Relations.next()) { | 711 | for (to=Relations.first();to;to=Relations.next()) { |
708 | if (!((Todo*)to)->isCompleted()) | 712 | if (!((Todo*)to)->isCompleted()) |
709 | appendTodo( to, ind , true ); | 713 | appendTodo( to, ind , true ); |
710 | } | 714 | } |
711 | 715 | ||
712 | return true; | 716 | return true; |
713 | } | 717 | } |
714 | 718 | ||
diff --git a/libkdepim/kdateedit.cpp b/libkdepim/kdateedit.cpp index c4c0081..2c78ea3 100644 --- a/libkdepim/kdateedit.cpp +++ b/libkdepim/kdateedit.cpp | |||
@@ -333,165 +333,166 @@ void KDateEdit::keyPressEvent(QKeyEvent *e) | |||
333 | int cpos = mDateEdit->cursorPosition(); | 333 | int cpos = mDateEdit->cursorPosition(); |
334 | 334 | ||
335 | switch(e->key()) | 335 | switch(e->key()) |
336 | { | 336 | { |
337 | case Key_Escape: | 337 | case Key_Escape: |
338 | mDateEdit->deselect(); | 338 | mDateEdit->deselect(); |
339 | case Key_Tab: | 339 | case Key_Tab: |
340 | QHBox::keyPressEvent(e); | 340 | QHBox::keyPressEvent(e); |
341 | break; | 341 | break; |
342 | case Key_Up: | 342 | case Key_Up: |
343 | // when date invalid then set to currend and return | 343 | // when date invalid then set to currend and return |
344 | if(!date.isValid()) { | 344 | if(!date.isValid()) { |
345 | date = QDate::currentDate(); | 345 | date = QDate::currentDate(); |
346 | setDate(date); | 346 | setDate(date); |
347 | mDateEdit->setCursorPosition(cpos); | 347 | mDateEdit->setCursorPosition(cpos); |
348 | emit(dateChanged(date)); | 348 | emit(dateChanged(date)); |
349 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); | 349 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); |
350 | KMessageBox::information( 0, text ); | 350 | KMessageBox::information( 0, text ); |
351 | return; | 351 | return; |
352 | } | 352 | } |
353 | setDate(date, &cpos, Key_Up, dateFormShort); | 353 | setDate(date, &cpos, Key_Up, dateFormShort); |
354 | break; | 354 | break; |
355 | case Key_Down: | 355 | case Key_Down: |
356 | // when date invalid then set to current and return | 356 | // when date invalid then set to current and return |
357 | if(!date.isValid()) { | 357 | if(!date.isValid()) { |
358 | date = QDate::currentDate(); | 358 | date = QDate::currentDate(); |
359 | setDate(date); | 359 | setDate(date); |
360 | mDateEdit->setCursorPosition(cpos); | 360 | mDateEdit->setCursorPosition(cpos); |
361 | emit(dateChanged(date)); | 361 | emit(dateChanged(date)); |
362 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); | 362 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); |
363 | KMessageBox::information( 0, text ); | 363 | KMessageBox::information( 0, text ); |
364 | return; | 364 | return; |
365 | } | 365 | } |
366 | setDate(date, &cpos, Key_Down, dateFormShort); | 366 | setDate(date, &cpos, Key_Down, dateFormShort); |
367 | break; | 367 | break; |
368 | default: | 368 | default: |
369 | QHBox::keyPressEvent(e); | 369 | QHBox::keyPressEvent(e); |
370 | break; | 370 | break; |
371 | } // switch | 371 | } // switch |
372 | mDateEdit->setCursorPosition(cpos); | 372 | mDateEdit->setCursorPosition(cpos); |
373 | } | 373 | } |
374 | 374 | ||
375 | void KDateEdit::setSelect( int from, int to ) | 375 | void KDateEdit::setSelect( int from, int to ) |
376 | { | 376 | { |
377 | // return; | 377 | // return; |
378 | mDateEdit->setSelection( from , to ); | 378 | mDateEdit->setSelection( from , to ); |
379 | } | 379 | } |
380 | 380 | ||
381 | void KDateEdit::toggleDatePicker() | 381 | void KDateEdit::toggleDatePicker() |
382 | { | 382 | { |
383 | if( mDateFrame->isVisible() ) { | 383 | if( mDateFrame->isVisible() ) { |
384 | mDateFrame->hide(); | 384 | mDateFrame->hide(); |
385 | } else { | 385 | } else { |
386 | QPoint tmpPoint = mapToGlobal(mDateButton->geometry().bottomRight()); | 386 | QPoint tmpPoint = mapToGlobal(mDateButton->geometry().bottomRight()); |
387 | QSize datepickersize = mDatePicker->sizeHint(); | 387 | QSize datepickersize = mDatePicker->sizeHint(); |
388 | 388 | ||
389 | if ( tmpPoint.x() < 7+datepickersize.width() ) tmpPoint.setX( 7+datepickersize.width() ); | 389 | if ( tmpPoint.x() < 7+datepickersize.width() ) tmpPoint.setX( 7+datepickersize.width() ); |
390 | 390 | ||
391 | int h = QApplication::desktop()->height(); | 391 | int h = QApplication::desktop()->height(); |
392 | 392 | ||
393 | if ( tmpPoint.y() + datepickersize.height() > h ) tmpPoint.setY( h - datepickersize.height() ); | 393 | if ( tmpPoint.y() + datepickersize.height() > h ) tmpPoint.setY( h - datepickersize.height() ); |
394 | 394 | ||
395 | mDateFrame->setGeometry(tmpPoint.x()-datepickersize.width()-7, tmpPoint.y(), | 395 | mDateFrame->setGeometry(tmpPoint.x()-datepickersize.width()-7, tmpPoint.y(), |
396 | datepickersize.width()+2*mDateFrame->lineWidth(), datepickersize.height()+2*mDateFrame->lineWidth()); | 396 | datepickersize.width()+2*mDateFrame->lineWidth(), datepickersize.height()+2*mDateFrame->lineWidth()); |
397 | 397 | ||
398 | QDate date = readDate(); | 398 | QDate date = readDate(); |
399 | if(date.isValid()) { | 399 | if(date.isValid()) { |
400 | mDatePicker->setDate(date); | 400 | mDatePicker->setDate(date); |
401 | } else { | 401 | } else { |
402 | mDatePicker->setDate(QDate::currentDate()); | 402 | mDatePicker->setDate(QDate::currentDate()); |
403 | } | 403 | } |
404 | mDateFrame->show(); | 404 | mDateFrame->show(); |
405 | } | 405 | } |
406 | } | 406 | } |
407 | 407 | ||
408 | 408 | ||
409 | void KDateEdit::lineEnterPressed() | 409 | void KDateEdit::lineEnterPressed() |
410 | { | 410 | { |
411 | QDate date = readDate(); | 411 | QDate date = readDate(); |
412 | 412 | ||
413 | if(date.isValid()) | 413 | if(date.isValid()) |
414 | { | 414 | { |
415 | // Update the edit. This is needed if the user has entered a | 415 | // Update the edit. This is needed if the user has entered a |
416 | // word rather than the actual date. | 416 | // word rather than the actual date. |
417 | setDate(date); | 417 | setDate(date); |
418 | emit(dateChanged(date)); | 418 | emit(dateChanged(date)); |
419 | emit returnPressed(); | 419 | emit returnPressed(); |
420 | } | 420 | } |
421 | else | 421 | else |
422 | { | 422 | { |
423 | if ( withoutDp ) { | 423 | if ( withoutDp ) { |
424 | KNotifyClient::beep(); | 424 | KNotifyClient::beep(); |
425 | } else { | 425 | } else { |
426 | if ( !mDateEdit->text().isEmpty() ) { | 426 | if ( !mDateEdit->text().isEmpty() ) { |
427 | mTextChanged = false; | 427 | mTextChanged = false; |
428 | QString text = i18n( "You entered an invalid date!\n Will use current date instead." ); | 428 | QString text = i18n( "You entered an invalid date!\n Will use current date instead." ); |
429 | if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { | 429 | if ( isVisible() ) |
430 | setDate( QDate::currentDate() ); | 430 | if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { |
431 | emit dateChanged( QDate::currentDate() ); | 431 | setDate( QDate::currentDate() ); |
432 | } | 432 | emit dateChanged( QDate::currentDate() ); |
433 | } | ||
433 | } | 434 | } |
434 | } | 435 | } |
435 | } | 436 | } |
436 | } | 437 | } |
437 | 438 | ||
438 | bool KDateEdit::inputIsValid() | 439 | bool KDateEdit::inputIsValid() |
439 | { | 440 | { |
440 | return readDate().isValid(); | 441 | return readDate().isValid(); |
441 | } | 442 | } |
442 | 443 | ||
443 | QDate KDateEdit::readDate() const | 444 | QDate KDateEdit::readDate() const |
444 | { | 445 | { |
445 | QString text = mDateEdit->text(); | 446 | QString text = mDateEdit->text(); |
446 | QDate date; | 447 | QDate date; |
447 | 448 | ||
448 | if (mKeywordMap.contains(text.lower())) | 449 | if (mKeywordMap.contains(text.lower())) |
449 | { | 450 | { |
450 | date = QDate::currentDate().addDays(mKeywordMap[text.lower()]); | 451 | date = QDate::currentDate().addDays(mKeywordMap[text.lower()]); |
451 | } | 452 | } |
452 | else | 453 | else |
453 | { | 454 | { |
454 | date = KGlobal::locale()->readDate(text); | 455 | date = KGlobal::locale()->readDate(text); |
455 | } | 456 | } |
456 | 457 | ||
457 | return date; | 458 | return date; |
458 | } | 459 | } |
459 | 460 | ||
460 | bool KDateEdit::eventFilter(QObject *, QEvent *e) | 461 | bool KDateEdit::eventFilter(QObject *, QEvent *e) |
461 | { | 462 | { |
462 | // We only process the focus out event if the text has changed | 463 | // We only process the focus out event if the text has changed |
463 | // since we got focus | 464 | // since we got focus |
464 | if ((e->type() == QEvent::FocusOut) && mTextChanged) | 465 | if ((e->type() == QEvent::FocusOut) && mTextChanged) |
465 | { | 466 | { |
466 | lineEnterPressed(); | 467 | lineEnterPressed(); |
467 | mTextChanged = false; | 468 | mTextChanged = false; |
468 | } | 469 | } |
469 | // switch dateFormShort by double klick with mouse | 470 | // switch dateFormShort by double klick with mouse |
470 | else if (e->type() == QEvent::MouseButtonDblClick) | 471 | else if (e->type() == QEvent::MouseButtonDblClick) |
471 | { | 472 | { |
472 | toggleDateFormat(); | 473 | toggleDateFormat(); |
473 | } | 474 | } |
474 | else if (e->type() == QEvent::FocusIn) | 475 | else if (e->type() == QEvent::FocusIn) |
475 | { | 476 | { |
476 | maxDay = readDate().day(); | 477 | maxDay = readDate().day(); |
477 | } | 478 | } |
478 | 479 | ||
479 | return false; | 480 | return false; |
480 | } | 481 | } |
481 | void KDateEdit::toggleDateFormat() | 482 | void KDateEdit::toggleDateFormat() |
482 | { | 483 | { |
483 | dateFormShort = ! dateFormShort; | 484 | dateFormShort = ! dateFormShort; |
484 | mDateEdit->setText(KGlobal::locale()->formatDate(readDate(),dateFormShort)); | 485 | mDateEdit->setText(KGlobal::locale()->formatDate(readDate(),dateFormShort)); |
485 | 486 | ||
486 | } | 487 | } |
487 | 488 | ||
488 | void KDateEdit::textChanged(const QString &) | 489 | void KDateEdit::textChanged(const QString &) |
489 | { | 490 | { |
490 | if(mHandleInvalid && mDateEdit->text().stripWhiteSpace().isEmpty()) { | 491 | if(mHandleInvalid && mDateEdit->text().stripWhiteSpace().isEmpty()) { |
491 | QDate date; //invalid date | 492 | QDate date; //invalid date |
492 | emit(dateChanged(date)); | 493 | emit(dateChanged(date)); |
493 | } else { | 494 | } else { |
494 | mTextChanged = true; | 495 | mTextChanged = true; |
495 | } | 496 | } |
496 | maxDay = readDate().day(); | 497 | maxDay = readDate().day(); |
497 | } | 498 | } |