summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt6
-rw-r--r--korganizer/calendarview.cpp4
2 files changed, 5 insertions, 5 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 6ac79ad..4df2005 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -1366,102 +1366,102 @@
1366{ "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, 1366{ "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" },
1367{ "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, 1367{ "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" },
1368{ "Choose action","Wähle Aktion" }, 1368{ "Choose action","Wähle Aktion" },
1369{ "Comment for todo:","Kommentar zum Todo:" }, 1369{ "Comment for todo:","Kommentar zum Todo:" },
1370{ "Stop+note","Stop+Notiz" }, 1370{ "Stop+note","Stop+Notiz" },
1371{ "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, 1371{ "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" },
1372{ "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, 1372{ "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" },
1373{ "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, 1373{ "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" },
1374{ "Print complete list","Drucke komplette Liste" }, 1374{ "Print complete list","Drucke komplette Liste" },
1375{ "Hide all selected","Verstecke Selektierte" }, 1375{ "Hide all selected","Verstecke Selektierte" },
1376{ "Add items","hinzufügen" }, 1376{ "Add items","hinzufügen" },
1377{ "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, 1377{ "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" },
1378{ "Print List View...","Drucke Listenansicht..." }, 1378{ "Print List View...","Drucke Listenansicht..." },
1379{ "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, 1379{ "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." },
1380{ "Configure KO/Pi...","Konfiguriere KO/Pi..." }, 1380{ "Configure KO/Pi...","Konfiguriere KO/Pi..." },
1381{ "Global Settings...","Globale Einstellungen..." }, 1381{ "Global Settings...","Globale Einstellungen..." },
1382{ "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, 1382{ "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" },
1383{ "(disabled)","(abgeschaltet)" }, 1383{ "(disabled)","(abgeschaltet)" },
1384{ "New Calendar","Neuer Kalender" }, 1384{ "New Calendar","Neuer Kalender" },
1385{ "Calendar","Kalender" }, 1385{ "Calendar","Kalender" },
1386{ "Filter selector","Filterauswahl" }, 1386{ "Filter selector","Filterauswahl" },
1387{ "Filtermenu","Filtermenu" }, 1387{ "Filtermenu","Filtermenu" },
1388{ "Toggle Fullscreen","Vollbild umschalten" }, 1388{ "Toggle Fullscreen","Vollbild umschalten" },
1389{ "Toggle Resource View","Resourcenansicht umschalten" }, 1389{ "Toggle Resource View","Resourcenansicht umschalten" },
1390{ "Storage HowTo...","Speicherort HowTo..." }, 1390{ "Storage HowTo...","Speicherort HowTo..." },
1391{ "Timetracking HowTo...","Timetracking HowTo..." }, 1391{ "Timetracking HowTo...","Timetracking HowTo..." },
1392{ "Juni","Juni" }, 1392{ "Juni","Juni" },
1393{ "Juli","Juli" }, 1393{ "Juli","Juli" },
1394{ "ToDo:","ToDo:" }, 1394{ "ToDo:","ToDo:" },
1395{ "Set Calendar","Setze Kalender" }, 1395{ "Set Calendar","Setze Kalender" },
1396{ "Todo: %1","Todo: %1" }, 1396{ "Todo: %1","Todo: %1" },
1397{ ": (Prio ",": (Prio " }, 1397{ ": (Prio ",": (Prio " },
1398{ "Todos","Todos" }, 1398{ "Todos","Todos" },
1399{ "Todo Viewer","Todo Viewer" }, 1399{ "Todo Viewer","Todo Viewer" },
1400{ "Todo ","Todo " }, 1400{ "Todo ","Todo " },
1401{ " Calendar \n Resource "," Kalender \n Resource " }, 1401{ " Calendar \n Resource "," Kalender \n Resource " },
1402{ " Color "," Farbe " }, 1402{ " Color "," Farbe " },
1403{ "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, 1403{ "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" },
1404{ "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, 1404{ "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" },
1405{ "Add new Calendar","Füge Kalender hinzu" }, 1405{ "Add new Calendar","Füge Kalender hinzu" },
1406{ "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, 1406{ "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" },
1407{ "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, 1407{ "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" },
1408{ "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, 1408{ "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" },
1409{ "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, 1409{ "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" },
1410{ "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, 1410{ "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." },
1411{ "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, 1411{ "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" },
1412{ "Global application font for all apps:","Globale Schriftart:" }, 1412{ "Global application font for all apps:","Globale Schriftart:" },
1413{ "Application Font","Applikationsschriftart" }, 1413{ "Application Font","Applikationsschriftart" },
1414{ "Kx/Pi","Kx/Pi" }, 1414{ "Kx/Pi","Kx/Pi" },
1415{ "Backup","Backup" }, 1415{ "Backup","Backup" },
1416{ "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, 1416{ "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" },
1417{ "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, 1417{ "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" },
1418{ "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, 1418{ "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" },
1419{ "Choose Color","Wähle Farbe" }, 1419{ "Choose Color","Wähle Farbe" },
1420{ " OK "," OK " }, 1420{ " OK "," OK " },
1421{ " Cancel "," Abbrechen " }, 1421{ " Cancel "," Abbrechen " },
1422{ "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, 1422{ "Matching items will be added to list","Passende werden zur Liste hinzugefügt" },
1423{ "Matching items will be removed from list","Passende werden von der Liste entfernt" }, 1423{ "Matching items will be removed from list","Passende werden von der Liste entfernt" },
1424{ "Search on displayed list only","Suche auf der dargestellten Liste" }, 1424{ "Search on displayed list only","Suche auf der dargestellten Liste" },
1425{ "List will be cleared before search","Liste wird vor der Suche gelöscht" }, 1425{ "List will be cleared before search","Liste wird vor der Suche gelöscht" },
1426{ "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, 1426{ "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" },
1427{ "%1\nis running!","%1\nist am Laufen!" }, 1427{ "%1\nis running!","%1\nist am Laufen!" },
1428{ "Additional Comment:","Zusätzlicher Kommentar:" }, 1428{ "Additional Comment:","Zusätzlicher Kommentar:" },
1429{ "Stop and save","Stopp und Speichern" }, 1429{ "Stop and save","Stopp und Speichern" },
1430{ "Continue running","Weiter laufen lassen" }, 1430{ "Continue running","Weiter laufen lassen" },
1431{ "Stop - do not save","Stopp - nicht Speichern" }, 1431{ "Stop - do not save","Stopp - nicht Speichern" },
1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, 1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" },
1433{ "Time mismatch!","Zeiten stimmen nicht!" }, 1433{ "Time mismatch!","Zeiten stimmen nicht!" },
1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, 1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" },
1435{ "Yes, stop todo","Ja, stoppe Todo" }, 1435{ "Yes, stop todo","Ja, stoppe Todo" },
1436{ "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, 1436{ "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" },
1437{ "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, 1437{ "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" },
1438{ "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." }, 1438{ "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." },
1439{ "Spouse","Ehegatte" }, 1439{ "Spouse","Ehegatte" },
1440{ "Notes","Notizen" }, 1440{ "Notes","Notizen" },
1441{ "Messanger","Messanger" }, 1441{ "Messanger","Messanger" },
1442{ "Assistant","Assistent" }, 1442{ "Assistant","Assistent" },
1443{ "Manager","Manager" }, 1443{ "Manager","Manager" },
1444{ "Secrecy","Sichtbar" }, 1444{ "Secrecy","Sichtbar" },
1445{ "male","männlich" }, 1445{ "male","männlich" },
1446{ "female","weiblich" }, 1446{ "female","weiblich" },
1447{ "Hide!","Verbergen!" }, 1447{ "Hide!","Verbergen!" },
1448{ "Show!","Anzeigen!" }, 1448{ "Show!","Anzeigen!" },
1449{ "Details","Details" }, 1449{ "Details","Details" },
1450{ "Profession","Beruf" }, 1450{ "Profession","Beruf" },
1451{ "Children","Kinder" }, 1451{ "Children","Kinder" },
1452{ "Department","Abteilung" }, 1452{ "Department","Abteilung" },
1453{ "Backup cancelled","Backup abgebrochen" }, 1453{ "Backup cancelled","Backup abgebrochen" },
1454{ "Backup globally disabled","Backup global abgeschaltet" }, 1454{ "Backup globally disabled","Backup global abgeschaltet" },
1455{ "Backup succesfully finished","Backup erfolgreich beendet" }, 1455{ "Backup succesfully finished","Backup erfolgreich beendet" },
1456{ "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, 1456{ "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" },
1457{ "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" }, 1457{ "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" },
1458{ "Birthdays","Geburtstage" }, 1458{ "Birthdays","Geburtstage" },
1459{ "KO/Pi import information!","KO/Pi Import Information!" }, 1459{ "KO/Pi import information!","KO/Pi Import Information!" },
1460{ "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, 1460{ "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" },
1461{ "Cancel - do not start"," Abbrechen - Todo nicht starten" }, 1461{ "Cancel - do not start"," Abbrechen - Todo nicht starten" },
1462{ "","" }, 1462{ "The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n"How do I change the timezone?"\nas well!","Die Zeitzone wurde geändert!\nSollen die Kalender neu geladen\nwerden num die Zeiten\nder Termine zu ändern?\nBitte lesen Sie auch\nMenu: Help->FAQ:\n"How do I change the timezone?"" },
1463{ "","" }, 1463{ "Reload","Neu laden" },
1464{ "","" }, 1464{ "Timezone settings","Zeitzoneneinstellung" },
1465{ "","" }, 1465{ "","" },
1466{ "","" }, 1466{ "","" },
1467{ "","" }, \ No newline at end of file 1467{ "","" }, \ No newline at end of file
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp
index f179c58..13cf69b 100644
--- a/korganizer/calendarview.cpp
+++ b/korganizer/calendarview.cpp
@@ -2580,200 +2580,200 @@ void CalendarView::updateView(const QDate &start, const QDate &end)
2580 mViewManager->updateView(start, end); 2580 mViewManager->updateView(start, end);
2581 //mDateNavigator->updateView(); 2581 //mDateNavigator->updateView();
2582} 2582}
2583 2583
2584void CalendarView::clearAllViews() 2584void CalendarView::clearAllViews()
2585{ 2585{
2586 mTodoList->clearList(); 2586 mTodoList->clearList();
2587 mViewManager->clearAllViews(); 2587 mViewManager->clearAllViews();
2588 SearchDialog * sd = mDialogManager->getSearchDialog(); 2588 SearchDialog * sd = mDialogManager->getSearchDialog();
2589 if ( sd ) { 2589 if ( sd ) {
2590 KOListView* kol = sd->listview(); 2590 KOListView* kol = sd->listview();
2591 if ( kol ) 2591 if ( kol )
2592 kol->clearList(); 2592 kol->clearList();
2593 } 2593 }
2594} 2594}
2595void CalendarView::updateView() 2595void CalendarView::updateView()
2596{ 2596{
2597 DateList tmpList = mNavigator->selectedDates(); 2597 DateList tmpList = mNavigator->selectedDates();
2598 2598
2599 if ( KOPrefs::instance()->mHideNonStartedTodos ) 2599 if ( KOPrefs::instance()->mHideNonStartedTodos )
2600 mTodoList->updateView(); 2600 mTodoList->updateView();
2601 // We assume that the navigator only selects consecutive days. 2601 // We assume that the navigator only selects consecutive days.
2602 updateView( tmpList.first(), tmpList.last() ); 2602 updateView( tmpList.first(), tmpList.last() );
2603} 2603}
2604 2604
2605void CalendarView::updateUnmanagedViews() 2605void CalendarView::updateUnmanagedViews()
2606{ 2606{
2607 mDateNavigator->updateDayMatrix(); 2607 mDateNavigator->updateDayMatrix();
2608} 2608}
2609 2609
2610int CalendarView::msgItemDelete(const QString name) 2610int CalendarView::msgItemDelete(const QString name)
2611{ 2611{
2612 return KMessageBox::warningContinueCancel(this,name +"\n\n"+ 2612 return KMessageBox::warningContinueCancel(this,name +"\n\n"+
2613 i18n("This item will be\npermanently deleted."), 2613 i18n("This item will be\npermanently deleted."),
2614 i18n("KO/Pi Confirmation"),i18n("Delete")); 2614 i18n("KO/Pi Confirmation"),i18n("Delete"));
2615} 2615}
2616 2616
2617 2617
2618void CalendarView::edit_cut() 2618void CalendarView::edit_cut()
2619{ 2619{
2620 Event *anEvent=0; 2620 Event *anEvent=0;
2621 2621
2622 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); 2622 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first();
2623 2623
2624 if (mViewManager->currentView()->isEventView()) { 2624 if (mViewManager->currentView()->isEventView()) {
2625 if ( incidence && incidence->typeID() == eventID ) { 2625 if ( incidence && incidence->typeID() == eventID ) {
2626 anEvent = static_cast<Event *>(incidence); 2626 anEvent = static_cast<Event *>(incidence);
2627 } 2627 }
2628 } 2628 }
2629 2629
2630 if (!anEvent) { 2630 if (!anEvent) {
2631 KNotifyClient::beep(); 2631 KNotifyClient::beep();
2632 return; 2632 return;
2633 } 2633 }
2634 DndFactory factory( mCalendar ); 2634 DndFactory factory( mCalendar );
2635 factory.cutIncidence(anEvent); 2635 factory.cutIncidence(anEvent);
2636 changeEventDisplay(anEvent, KOGlobals::EVENTDELETED); 2636 changeEventDisplay(anEvent, KOGlobals::EVENTDELETED);
2637} 2637}
2638 2638
2639void CalendarView::edit_copy() 2639void CalendarView::edit_copy()
2640{ 2640{
2641 Event *anEvent=0; 2641 Event *anEvent=0;
2642 2642
2643 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); 2643 Incidence *incidence = mViewManager->currentView()->selectedIncidences().first();
2644 2644
2645 if (mViewManager->currentView()->isEventView()) { 2645 if (mViewManager->currentView()->isEventView()) {
2646 if ( incidence && incidence->typeID() == eventID ) { 2646 if ( incidence && incidence->typeID() == eventID ) {
2647 anEvent = static_cast<Event *>(incidence); 2647 anEvent = static_cast<Event *>(incidence);
2648 } 2648 }
2649 } 2649 }
2650 2650
2651 if (!anEvent) { 2651 if (!anEvent) {
2652 KNotifyClient::beep(); 2652 KNotifyClient::beep();
2653 return; 2653 return;
2654 } 2654 }
2655 DndFactory factory( mCalendar ); 2655 DndFactory factory( mCalendar );
2656 factory.copyIncidence(anEvent); 2656 factory.copyIncidence(anEvent);
2657} 2657}
2658 2658
2659void CalendarView::edit_paste() 2659void CalendarView::edit_paste()
2660{ 2660{
2661 QDate date = mNavigator->selectedDates().first(); 2661 QDate date = mNavigator->selectedDates().first();
2662 2662
2663 DndFactory factory( mCalendar ); 2663 DndFactory factory( mCalendar );
2664 Event *pastedEvent = (Event *)factory.pasteIncidence( date ); 2664 Event *pastedEvent = (Event *)factory.pasteIncidence( date );
2665 2665
2666 changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED ); 2666 changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED );
2667} 2667}
2668void CalendarView::edit_global_options() 2668void CalendarView::edit_global_options()
2669{ 2669{
2670 QString tz = KPimGlobalPrefs::instance()->mTimeZoneId; 2670 QString tz = KPimGlobalPrefs::instance()->mTimeZoneId;
2671 emit save(); 2671 emit save();
2672 emit saveStopTimer(); 2672 emit saveStopTimer();
2673 mDialogManager->showGlobalOptionsDialog(); 2673 mDialogManager->showGlobalOptionsDialog();
2674 if ( tz != KPimGlobalPrefs::instance()->mTimeZoneId) { 2674 if ( tz != KPimGlobalPrefs::instance()->mTimeZoneId) {
2675 emit saveStopTimer(); 2675 emit saveStopTimer();
2676 if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, i18n("The timezone has changed!\nShould the calendar be reloaded\nto apply timezone changes?\nPlease read Menu: Help->FAQ:\n\"How do I change the timezone?\"\nas well!"), 2676 if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, i18n("The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n\"How do I change the timezone?\"\nas well!"),
2677 i18n("Timezone settings"),i18n("Reload"))) { 2677 i18n("Timezone settings"),i18n("Reload"))) {
2678 qDebug("KO: TZ reload cancelled "); 2678 qDebug("KO: TZ reload cancelled ");
2679 mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); 2679 mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId);
2680 return; 2680 return;
2681 } 2681 }
2682 qDebug("KO: Timezone change "); 2682 qDebug("KO: Timezone change ");
2683 openCalendar( MainWindow::defaultFileName() ); 2683 loadCalendars();
2684 setModified(true); 2684 setModified(true);
2685 } 2685 }
2686 else 2686 else
2687 qDebug("KO: No tz change "); 2687 qDebug("KO: No tz change ");
2688} 2688}
2689void CalendarView::edit_options() 2689void CalendarView::edit_options()
2690{ 2690{
2691 mDialogManager->showOptionsDialog(); 2691 mDialogManager->showOptionsDialog();
2692} 2692}
2693 2693
2694 2694
2695void CalendarView::slotSelectPickerDate( QDate d) 2695void CalendarView::slotSelectPickerDate( QDate d)
2696{ 2696{
2697 mDateFrame->hide(); 2697 mDateFrame->hide();
2698 if ( mDatePickerMode == 1 ) { 2698 if ( mDatePickerMode == 1 ) {
2699 mNavigator->slotDaySelect( d ); 2699 mNavigator->slotDaySelect( d );
2700 } else if ( mDatePickerMode == 2 ) { 2700 } else if ( mDatePickerMode == 2 ) {
2701 if ( mMoveIncidence->typeID() == todoID ) { 2701 if ( mMoveIncidence->typeID() == todoID ) {
2702 Todo * to = (Todo *) mMoveIncidence; 2702 Todo * to = (Todo *) mMoveIncidence;
2703 QTime tim; 2703 QTime tim;
2704 int len = 0; 2704 int len = 0;
2705 if ( to->hasStartDate() && to->hasDueDate() ) 2705 if ( to->hasStartDate() && to->hasDueDate() )
2706 len = to->dtStart().secsTo( to->dtDue()); 2706 len = to->dtStart().secsTo( to->dtDue());
2707 if ( to->hasDueDate() ) 2707 if ( to->hasDueDate() )
2708 tim = to->dtDue().time(); 2708 tim = to->dtDue().time();
2709 else { 2709 else {
2710 tim = QTime ( 0,0,0 ); 2710 tim = QTime ( 0,0,0 );
2711 to->setFloats( true ); 2711 to->setFloats( true );
2712 to->setHasDueDate( true ); 2712 to->setHasDueDate( true );
2713 } 2713 }
2714 QDateTime dt ( d,tim ); 2714 QDateTime dt ( d,tim );
2715 to->setDtDue( dt ); 2715 to->setDtDue( dt );
2716 2716
2717 if ( to->hasStartDate() ) { 2717 if ( to->hasStartDate() ) {
2718 if ( len>0 ) 2718 if ( len>0 )
2719 to->setDtStart(to->dtDue().addSecs( -len )); 2719 to->setDtStart(to->dtDue().addSecs( -len ));
2720 else 2720 else
2721 if (to->dtStart() > to->dtDue() ) 2721 if (to->dtStart() > to->dtDue() )
2722 to->setDtStart(to->dtDue().addDays( -3 )); 2722 to->setDtStart(to->dtDue().addDays( -3 ));
2723 } 2723 }
2724 2724
2725 todoChanged( to ); 2725 todoChanged( to );
2726 } else { 2726 } else {
2727 if ( mMoveIncidence->doesRecur() ) { 2727 if ( mMoveIncidence->doesRecur() ) {
2728#if 0 2728#if 0
2729 // PENDING implement this 2729 // PENDING implement this
2730 Incidence* newInc = mMoveIncidence->recreateCloneException( mMoveIncidenceOldDate ); 2730 Incidence* newInc = mMoveIncidence->recreateCloneException( mMoveIncidenceOldDate );
2731 mCalendar()->addIncidence( newInc ); 2731 mCalendar()->addIncidence( newInc );
2732 if ( mMoveIncidence->typeID() == todoID ) 2732 if ( mMoveIncidence->typeID() == todoID )
2733 emit todoMoved((Todo*)mMoveIncidence, KOGlobals::EVENTEDITED ); 2733 emit todoMoved((Todo*)mMoveIncidence, KOGlobals::EVENTEDITED );
2734 else 2734 else
2735 emit incidenceChanged(mMoveIncidence, KOGlobals::EVENTEDITED); 2735 emit incidenceChanged(mMoveIncidence, KOGlobals::EVENTEDITED);
2736 mMoveIncidence = newInc; 2736 mMoveIncidence = newInc;
2737 2737
2738#endif 2738#endif
2739 } 2739 }
2740 QTime tim = mMoveIncidence->dtStart().time(); 2740 QTime tim = mMoveIncidence->dtStart().time();
2741 int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd()); 2741 int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd());
2742 QDateTime dt ( d,tim ); 2742 QDateTime dt ( d,tim );
2743 mMoveIncidence->setDtStart( dt ); 2743 mMoveIncidence->setDtStart( dt );
2744 ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) ); 2744 ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) );
2745 changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED); 2745 changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED);
2746 } 2746 }
2747 2747
2748 mMoveIncidence->setRevision( mMoveIncidence->revision()+1 ); 2748 mMoveIncidence->setRevision( mMoveIncidence->revision()+1 );
2749 } 2749 }
2750} 2750}
2751 2751
2752void CalendarView::removeCategories() 2752void CalendarView::removeCategories()
2753{ 2753{
2754 QPtrList<Incidence> incList = mCalendar->rawIncidences(); 2754 QPtrList<Incidence> incList = mCalendar->rawIncidences();
2755 QStringList catList = KOPrefs::instance()->mCustomCategories; 2755 QStringList catList = KOPrefs::instance()->mCustomCategories;
2756 QStringList catIncList; 2756 QStringList catIncList;
2757 QStringList newCatList; 2757 QStringList newCatList;
2758 Incidence* inc = incList.first(); 2758 Incidence* inc = incList.first();
2759 int i; 2759 int i;
2760 int count = 0; 2760 int count = 0;
2761 while ( inc ) { 2761 while ( inc ) {
2762 newCatList.clear(); 2762 newCatList.clear();
2763 catIncList = inc->categories() ; 2763 catIncList = inc->categories() ;
2764 for( i = 0; i< catIncList.count(); ++i ) { 2764 for( i = 0; i< catIncList.count(); ++i ) {
2765 if ( catList.contains (catIncList[i])) 2765 if ( catList.contains (catIncList[i]))
2766 newCatList.append( catIncList[i] ); 2766 newCatList.append( catIncList[i] );
2767 } 2767 }
2768 newCatList.sort(); 2768 newCatList.sort();
2769 inc->setCategories( newCatList.join(",") ); 2769 inc->setCategories( newCatList.join(",") );
2770 inc = incList.next(); 2770 inc = incList.next();
2771 } 2771 }
2772} 2772}
2773 2773
2774int CalendarView::addCategories() 2774int CalendarView::addCategories()
2775{ 2775{
2776 QPtrList<Incidence> incList = mCalendar->rawIncidences(); 2776 QPtrList<Incidence> incList = mCalendar->rawIncidences();
2777 QStringList catList = KOPrefs::instance()->mCustomCategories; 2777 QStringList catList = KOPrefs::instance()->mCustomCategories;
2778 QStringList catIncList; 2778 QStringList catIncList;
2779 Incidence* inc = incList.first(); 2779 Incidence* inc = incList.first();