summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-06-26 13:45:09 (UTC)
committer zautrix <zautrix>2005-06-26 13:45:09 (UTC)
commitbb565390dd1c31929780df60e2bb06e9259f4d0b (patch) (unidiff)
tree3f9f8b72ba68958553e8b20f5061ab55ec7b50f1
parentd9255cd129d42abf08efc11ff9b29e831e05e803 (diff)
downloadkdepimpi-bb565390dd1c31929780df60e2bb06e9259f4d0b.zip
kdepimpi-bb565390dd1c31929780df60e2bb06e9259f4d0b.tar.gz
kdepimpi-bb565390dd1c31929780df60e2bb06e9259f4d0b.tar.bz2
fixxx
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt8
-rw-r--r--korganizer/mainwindow.cpp113
-rw-r--r--korganizer/mainwindow.h1
3 files changed, 64 insertions, 58 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 90521ec..2ade5bd 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -848,611 +848,617 @@
848{ "4","4" }, 848{ "4","4" },
849{ " 0 %"," 0 %" }, 849{ " 0 %"," 0 %" },
850{ " 20 %"," 20 %" }, 850{ " 20 %"," 20 %" },
851{ " 40 %"," 40 %" }, 851{ " 40 %"," 40 %" },
852{ " 60 %"," 60 %" }, 852{ " 60 %"," 60 %" },
853{ " 80 %"," 80 %" }, 853{ " 80 %"," 80 %" },
854{ "100 %","100 %" }, 854{ "100 %","100 %" },
855{ "Filter","Filter" }, 855{ "Filter","Filter" },
856{ "Configure","Konfiguriere" }, 856{ "Configure","Konfiguriere" },
857{ "What's Next","What's Next" }, 857{ "What's Next","What's Next" },
858{ "Complete calendar...","Kompletten Kalender..." }, 858{ "Complete calendar...","Kompletten Kalender..." },
859{ "Filtered calendar...","Gefilterten Kalender..." }, 859{ "Filtered calendar...","Gefilterten Kalender..." },
860{ "Export to phone","Exportiere zum Handy" }, 860{ "Export to phone","Exportiere zum Handy" },
861{ "Beam receive enabled","Beam Empfang an" }, 861{ "Beam receive enabled","Beam Empfang an" },
862{ "What's new?","Was ist neu?" }, 862{ "What's new?","Was ist neu?" },
863{ "FAQ...","FAQ..." }, 863{ "FAQ...","FAQ..." },
864{ "Licence...","Licence..." }, 864{ "Licence...","Licence..." },
865{ "What's This?","What's This?" }, 865{ "What's This?","What's This?" },
866{ "&Edit...","&Editiere..." }, 866{ "&Edit...","&Editiere..." },
867{ "Oktober","Oktober" }, 867{ "Oktober","Oktober" },
868{ "Title","Titel" }, 868{ "Title","Titel" },
869{ "%1 %","%1 %" }, 869{ "%1 %","%1 %" },
870{ "Enable Pi-Sync","Schalte Pi-Sync an" }, 870{ "Enable Pi-Sync","Schalte Pi-Sync an" },
871{ "Import!","Importiere!" }, 871{ "Import!","Importiere!" },
872{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, 872{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" },
873{ "Export to phone options","Export ans Handy Optionen" }, 873{ "Export to phone options","Export ans Handy Optionen" },
874{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, 874{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." },
875{ "I/O device: ","I/O device: " }, 875{ "I/O device: ","I/O device: " },
876{ "Connection: ","Connection: " }, 876{ "Connection: ","Connection: " },
877{ "Model(opt.): ","Model(opt.): " }, 877{ "Model(opt.): ","Model(opt.): " },
878{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, 878{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" },
879{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, 879{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " },
880{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, 880{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" },
881{ "Export to mobile phone!","Exportiere auf das Handy!" }, 881{ "Export to mobile phone!","Exportiere auf das Handy!" },
882{ "Export complete calendar","Exportiere kompletten Kalender" }, 882{ "Export complete calendar","Exportiere kompletten Kalender" },
883{ "Writing to phone...","Sende Daten ans Handy..." }, 883{ "Writing to phone...","Sende Daten ans Handy..." },
884{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, 884{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" },
885{ "Retry","Nochmal versuchen" }, 885{ "Retry","Nochmal versuchen" },
886{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, 886{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" },
887{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, 887{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" },
888{ "Error exporting to phone!","Fehler beim Export auf das Handy!" }, 888{ "Error exporting to phone!","Fehler beim Export auf das Handy!" },
889{ "Export filtered calendar","Exportiere gefilterten Kalender" }, 889{ "Export filtered calendar","Exportiere gefilterten Kalender" },
890{ "Preferences","Vorlieben" }, 890{ "Preferences","Vorlieben" },
891{ "Global","Global" }, 891{ "Global","Global" },
892{ "Phone","Phone" }, 892{ "Phone","Phone" },
893{ "SMS","SMS" }, 893{ "SMS","SMS" },
894{ "Fax","Fax" }, 894{ "Fax","Fax" },
895{ "Pager","Pager" }, 895{ "Pager","Pager" },
896{ "SIP","SIP" }, 896{ "SIP","SIP" },
897{ "Italian","Italienisch" }, 897{ "Italian","Italienisch" },
898{ "24:00","24:00" }, 898{ "24:00","24:00" },
899{ "12:00am","12:00am" }, 899{ "12:00am","12:00am" },
900{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, 900{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" },
901{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, 901{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" },
902{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, 902{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" },
903{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, 903{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" },
904{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, 904{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" },
905{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, 905{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" },
906{ "Used Mail Client","Benutzter Mail Client" }, 906{ "Used Mail Client","Benutzter Mail Client" },
907{ "Channel:","Channel:" }, 907{ "Channel:","Channel:" },
908{ "Message:","Message:" }, 908{ "Message:","Message:" },
909{ "Parameters:","Parameter:" }, 909{ "Parameters:","Parameter:" },
910{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, 910{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" },
911{ "extra Message:","extra Message:" }, 911{ "extra Message:","extra Message:" },
912{ "extra Parameters:","extra Parameter:" }, 912{ "extra Parameters:","extra Parameter:" },
913{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, 913{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" },
914{ "External Apps.","Externe Appl." }, 914{ "External Apps.","Externe Appl." },
915{ "24 hours","24 Std." }, 915{ "24 hours","24 Std." },
916{ "3 hours","3 Std." }, 916{ "3 hours","3 Std." },
917{ "1 hour","1 Std." }, 917{ "1 hour","1 Std." },
918{ "15 minutes","15 Min." }, 918{ "15 minutes","15 Min." },
919{ "5 minutes","5 Min." }, 919{ "5 minutes","5 Min." },
920{ "1 minute","1 Min." }, 920{ "1 minute","1 Min." },
921{ "23","23" }, 921{ "23","23" },
922{ "Mon 15","Mon 15" }, 922{ "Mon 15","Mon 15" },
923{ "Configure KO","Konfiguriere KO" }, 923{ "Configure KO","Konfiguriere KO" },
924{ "Event text","Termin Text" }, 924{ "Event text","Termin Text" },
925{ "ToDo","Todo" }, 925{ "ToDo","Todo" },
926{ "Today","Heute" }, 926{ "Today","Heute" },
927{ "What's Next View","What's Next Ansicht" }, 927{ "What's Next View","What's Next Ansicht" },
928{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, 928{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" },
929{ "Alarm","Alarm" }, 929{ "Alarm","Alarm" },
930{ "Used %1 Client","Benutzter %1 Client" }, 930{ "Used %1 Client","Benutzter %1 Client" },
931{ "No email client installed","Kein Email Klient installiert" }, 931{ "No email client installed","Kein Email Klient installiert" },
932{ "Userdefined email client","Benutzerdef. Email Klient" }, 932{ "Userdefined email client","Benutzerdef. Email Klient" },
933{ "OM/Pi email client","OM/Pi Email Klient" }, 933{ "OM/Pi email client","OM/Pi Email Klient" },
934{ "Include in multiple ","Beziehe in multiple " }, 934{ "Include in multiple ","Beziehe in multiple " },
935{ "calendar ","Kalender " }, 935{ "calendar ","Kalender " },
936{ "addressbook ","Adressbuch " }, 936{ "addressbook ","Adressbuch " },
937{ "pwmanager","PWmanager" }, 937{ "pwmanager","PWmanager" },
938{ " sync"," Sync ein" }, 938{ " sync"," Sync ein" },
939{ "Write back synced data","Schreibe gesyncte Daten zurück" }, 939{ "Write back synced data","Schreibe gesyncte Daten zurück" },
940{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, 940{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" },
941{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, 941{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" },
942{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, 942{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " },
943{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, 943{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" },
944{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, 944{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" },
945{ "Help...","Hilfe..." }, 945{ "Help...","Hilfe..." },
946{ "Local file Cal:","Lokale Datei Kal:" }, 946{ "Local file Cal:","Lokale Datei Kal:" },
947{ "Local file ABook:","Lokale Datei ABuch:" }, 947{ "Local file ABook:","Lokale Datei ABuch:" },
948{ "Local file PWMgr:","Lokale Datei PWMgr:" }, 948{ "Local file PWMgr:","Lokale Datei PWMgr:" },
949{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, 949{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" },
950{ "Calendar:","Kalender:" }, 950{ "Calendar:","Kalender:" },
951{ "AddressBook:","AdressBuch:" }, 951{ "AddressBook:","AdressBuch:" },
952{ "PWManager:","PWManager:" }, 952{ "PWManager:","PWManager:" },
953{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, 953{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" },
954{ "ssh/scp","ssh/scp" }, 954{ "ssh/scp","ssh/scp" },
955{ "ftp","ftp" }, 955{ "ftp","ftp" },
956{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, 956{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" },
957{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, 957{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" },
958{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, 958{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" },
959{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, 959{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" },
960{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, 960{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" },
961{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, 961{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" },
962{ "KDE-Pim sync config","KDE-Pim sync Konfig" }, 962{ "KDE-Pim sync config","KDE-Pim sync Konfig" },
963{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, 963{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" },
964{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, 964{ "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" },
965{ "Port number (Default: %1)","Port Nummer (Default: %1)" }, 965{ "Port number (Default: %1)","Port Nummer (Default: %1)" },
966{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, 966{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" },
967{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, 967{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" },
968{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, 968{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" },
969{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, 969{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" },
970{ "Disable Pi-Sync","Schalte Pi-Sync aus" }, 970{ "Disable Pi-Sync","Schalte Pi-Sync aus" },
971{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, 971{ "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" },
972{ "KDE-Pim Sync","KDE-Pim Sync" }, 972{ "KDE-Pim Sync","KDE-Pim Sync" },
973{ "Multiple profiles","Multi-Sync Profile" }, 973{ "Multiple profiles","Multi-Sync Profile" },
974{ "Device: ","Gerät: " }, 974{ "Device: ","Gerät: " },
975{ "Multiple sync started.","Multi-Sync gestartet." }, 975{ "Multiple sync started.","Multi-Sync gestartet." },
976{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, 976{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" },
977{ "Turn filter on","Schalte Filter an" }, 977{ "Turn filter on","Schalte Filter an" },
978{ "Turn filter off","Schalte Filter aus" }, 978{ "Turn filter off","Schalte Filter aus" },
979{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, 979{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" },
980{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, 980{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" },
981{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, 981{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" },
982{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, 982{ "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" },
983{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, 983{ "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" },
984{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, 984{ "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" },
985{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, 985{ "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" },
986{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, 986{ "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" },
987{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, 987{ "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" },
988{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, 988{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" },
989{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, 989{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" },
990{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, 990{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" },
991{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, 991{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" },
992{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, 992{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" },
993{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, 993{ "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" },
994{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, 994{ "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" },
995{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, 995{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" },
996{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, 996{ "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" },
997{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, 997{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" },
998{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, 998{ "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" },
999{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, 999{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" },
1000{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, 1000{ "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" },
1001{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, 1001{ "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" },
1002{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, 1002{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" },
1003{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, 1003{ "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" },
1004{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, 1004{ "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" },
1005{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, 1005{ "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" },
1006{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, 1006{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" },
1007{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, 1007{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" },
1008{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, 1008{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" },
1009{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, 1009{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" },
1010{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, 1010{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" },
1011{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, 1011{ "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" },
1012{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, 1012{ "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" },
1013{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, 1013{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" },
1014{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, 1014{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" },
1015{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, 1015{ "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" },
1016{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, 1016{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" },
1017{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, 1017{ "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" },
1018{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, 1018{ "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" },
1019{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, 1019{ "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" },
1020{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, 1020{ "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" },
1021{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, 1021{ "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" },
1022{ "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, 1022{ "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " },
1023{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, 1023{ "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" },
1024{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, 1024{ "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" },
1025{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, 1025{ "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" },
1026{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, 1026{ "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" },
1027{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, 1027{ "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" },
1028{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, 1028{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" },
1029{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, 1029{ "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" },
1030{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, 1030{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" },
1031{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, 1031{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" },
1032{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, 1032{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" },
1033{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, 1033{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" },
1034{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, 1034{ "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" },
1035{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, 1035{ "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" },
1036{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, 1036{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" },
1037{ "KO/Pi FAQ","KO/Pi FAQ" }, 1037{ "KO/Pi FAQ","KO/Pi FAQ" },
1038{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, 1038{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" },
1039{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, 1039{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" },
1040{ "About KOrganizer/Pi","Über KOrganizer/Pi" }, 1040{ "About KOrganizer/Pi","Über KOrganizer/Pi" },
1041{ "From: ","Von: " }, 1041{ "From: ","Von: " },
1042{ "Remove sync info","Entferne Sync Info" }, 1042{ "Remove sync info","Entferne Sync Info" },
1043{ "For all profiles","Für alle Profile" }, 1043{ "For all profiles","Für alle Profile" },
1044{ "Hide not Running","Verstecke nicht Laufende" }, 1044{ "Hide not Running","Verstecke nicht Laufende" },
1045{ "ME","ME" }, 1045{ "ME","ME" },
1046{ "Toolbar","Toolbar" }, 1046{ "Toolbar","Toolbar" },
1047{ "Undo Delete...","Löschen rückgängig machen..." }, 1047{ "Undo Delete...","Löschen rückgängig machen..." },
1048{ "Undo Delete","Löschen rückgängig machen" }, 1048{ "Undo Delete","Löschen rückgängig machen" },
1049{ "KDE Sync HowTo...","KDE Sync HowTo..." }, 1049{ "KDE Sync HowTo...","KDE Sync HowTo..." },
1050{ "Multi Sync HowTo...","Multi Sync HowTo..." }, 1050{ "Multi Sync HowTo...","Multi Sync HowTo..." },
1051{ "Januar","Januar" }, 1051{ "Januar","Januar" },
1052{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, 1052{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" },
1053{ "No Filter","Kein Filter" }, 1053{ "No Filter","Kein Filter" },
1054{ "Multiple Sync options","Multi Sync Optionen" }, 1054{ "Multiple Sync options","Multi Sync Optionen" },
1055{ "Sync algo options","Sync Ablauf Optionen" }, 1055{ "Sync algo options","Sync Ablauf Optionen" },
1056{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, 1056{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" },
1057{ "Incoming calendar filter:","Eingehender Kalender Filter:" }, 1057{ "Incoming calendar filter:","Eingehender Kalender Filter:" },
1058{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, 1058{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" },
1059{ "Write back options","Optionen zum Zurückschreiben" }, 1059{ "Write back options","Optionen zum Zurückschreiben" },
1060{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, 1060{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" },
1061{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, 1061{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" },
1062{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, 1062{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" },
1063{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, 1063{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" },
1064{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, 1064{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" },
1065{ "Time period","Zeitspanne" }, 1065{ "Time period","Zeitspanne" },
1066{ "From ","Von " }, 1066{ "From ","Von " },
1067{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, 1067{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " },
1068{ " weeks in the future "," Wochen in der Zukunft " }, 1068{ " weeks in the future "," Wochen in der Zukunft " },
1069{ "Profile kind specific settings","Profil Art abhängige Einstellungen" }, 1069{ "Profile kind specific settings","Profil Art abhängige Einstellungen" },
1070{ "Local temp file:","Lokale temp Datei:" }, 1070{ "Local temp file:","Lokale temp Datei:" },
1071{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, 1071{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" },
1072{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, 1072{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" },
1073{ "Language","Sprache" }, 1073{ "Language","Sprache" },
1074{ "Time Format","Zeit Format" }, 1074{ "Time Format","Zeit Format" },
1075{ "Time Zone","Zeit Zone" }, 1075{ "Time Zone","Zeit Zone" },
1076{ "%1 groups subscribed","%1 Guppen abboniert" }, 1076{ "%1 groups subscribed","%1 Guppen abboniert" },
1077{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, 1077{ "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" },
1078{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, 1078{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" },
1079{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, 1079{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" },
1080{ "Save settings","Speichere Einstellungen" }, 1080{ "Save settings","Speichere Einstellungen" },
1081{ "Save standard","Speichere Standard" }, 1081{ "Save standard","Speichere Standard" },
1082{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, 1082{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" },
1083{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, 1083{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" },
1084{ "Data storage path","Daten Speicherpfad" }, 1084{ "Data storage path","Daten Speicherpfad" },
1085{ "Language","Sprache" }, 1085{ "Language","Sprache" },
1086{ "Show time in agenda items","Zeige Zeit in Agenda Items" }, 1086{ "Show time in agenda items","Zeige Zeit in Agenda Items" },
1087{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, 1087{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" },
1088{ "Show events that are done","Zeige abgelaufene Termine" }, 1088{ "Show events that are done","Zeige abgelaufene Termine" },
1089{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, 1089{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" },
1090{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, 1090{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" },
1091{ "KO/Pi","KO/Pi" }, 1091{ "KO/Pi","KO/Pi" },
1092{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, 1092{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" },
1093{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, 1093{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." },
1094{ "Sound.Al.: ","Sound.Al.: " }, 1094{ "Sound.Al.: ","Sound.Al.: " },
1095{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, 1095{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" },
1096{ "Restore","Wiederherstellen" }, 1096{ "Restore","Wiederherstellen" },
1097{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, 1097{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" },
1098{ "% completed","% erledigt" }, 1098{ "% completed","% erledigt" },
1099{ "%d item(s) found.","%d Item(s) gefunden." }, 1099{ "%d item(s) found.","%d Item(s) gefunden." },
1100{ "Set complete","Setze auf erledigt" }, 1100{ "Set complete","Setze auf erledigt" },
1101{ "(cancelled)","(gecancelt)" }, 1101{ "(cancelled)","(gecancelt)" },
1102{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, 1102{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" },
1103{ " Local time "," Locale Zeit " }, 1103{ " Local time "," Locale Zeit " },
1104{ "Form2","Form2" }, 1104{ "Form2","Form2" },
1105{ "Filter enabled","Filter angeschaltet" }, 1105{ "Filter enabled","Filter angeschaltet" },
1106{ "Edit Filters","Ändere Filter" }, 1106{ "Edit Filters","Ändere Filter" },
1107{ "Print What's Next View...","Drucke What's Next Ansicht..." }, 1107{ "Print What's Next View...","Drucke What's Next Ansicht..." },
1108{ "Agenda","Agenda" }, 1108{ "Agenda","Agenda" },
1109{ " ("," (" }, 1109{ " ("," (" },
1110{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, 1110{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" },
1111{ "Print","Print" }, 1111{ "Print","Print" },
1112{ "&Setup Printer...","Drucker &Setup..." }, 1112{ "&Setup Printer...","Drucker &Setup..." },
1113{ "View Type","Zeige Typ" }, 1113{ "View Type","Zeige Typ" },
1114{ "Page &orientation:","Seiten Ausrichtung:" }, 1114{ "Page &orientation:","Seiten Ausrichtung:" },
1115{ "Use Default of Selected Style","Default des selektierten Stils" }, 1115{ "Use Default of Selected Style","Default des selektierten Stils" },
1116{ "Use Default Setting of Printer","Default Einstellung des Druckers" }, 1116{ "Use Default Setting of Printer","Default Einstellung des Druckers" },
1117{ "Portrait","Portrait" }, 1117{ "Portrait","Portrait" },
1118{ "Landscape","Landschaft" }, 1118{ "Landscape","Landschaft" },
1119{ "Print day","Drucke Tag" }, 1119{ "Print day","Drucke Tag" },
1120{ "CalPrintDay_Base","CalPrintDay_Base" }, 1120{ "CalPrintDay_Base","CalPrintDay_Base" },
1121{ "Date && Time Range","Datum && Zeitspanne" }, 1121{ "Date && Time Range","Datum && Zeitspanne" },
1122{ "&End date:","&Enddatum:" }, 1122{ "&End date:","&Enddatum:" },
1123{ "&Start date:","&Startdatum:" }, 1123{ "&Start date:","&Startdatum:" },
1124{ "Start &time:","Startzeit:" }, 1124{ "Start &time:","Startzeit:" },
1125{ "End ti&me:","Endzeit:" }, 1125{ "End ti&me:","Endzeit:" },
1126{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, 1126{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" },
1127{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, 1127{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" },
1128{ "Alt+D","Alt+D" }, 1128{ "Alt+D","Alt+D" },
1129{ "&Use colors","Nutze Farben" }, 1129{ "&Use colors","Nutze Farben" },
1130{ "Alt+U","Alt+U" }, 1130{ "Alt+U","Alt+U" },
1131{ "Print week","Drucke Woche" }, 1131{ "Print week","Drucke Woche" },
1132{ "CalPrintWeek_Base","CalPrintWeek_Base" }, 1132{ "CalPrintWeek_Base","CalPrintWeek_Base" },
1133{ "Use &colors","Nutze Farben" }, 1133{ "Use &colors","Nutze Farben" },
1134{ "Type of View","Typ der Ansicht" }, 1134{ "Type of View","Typ der Ansicht" },
1135{ "Print as &Filofax page","Drucke als &Filofax Seite" }, 1135{ "Print as &Filofax page","Drucke als &Filofax Seite" },
1136{ "Alt+F","Alt+F" }, 1136{ "Alt+F","Alt+F" },
1137{ "Print as &timetable view:","Drucke als Zeittabelle:" }, 1137{ "Print as &timetable view:","Drucke als Zeittabelle:" },
1138{ "Alt+T","Alt+T" }, 1138{ "Alt+T","Alt+T" },
1139{ "Print as split week view","Drucke als gesplittete Wochenansicht" }, 1139{ "Print as split week view","Drucke als gesplittete Wochenansicht" },
1140{ "Print month","Drucke Monat" }, 1140{ "Print month","Drucke Monat" },
1141{ "CalPrintMonth_Base","CalPrintMonth_Base" }, 1141{ "CalPrintMonth_Base","CalPrintMonth_Base" },
1142{ "&Start month:","&Startmonat:" }, 1142{ "&Start month:","&Startmonat:" },
1143{ "&End month:","&Endmonat:" }, 1143{ "&End month:","&Endmonat:" },
1144{ "Print week &numbers","Drucke Wochen Nummer(n)" }, 1144{ "Print week &numbers","Drucke Wochen Nummer(n)" },
1145{ "Print todos","Drucke Todos" }, 1145{ "Print todos","Drucke Todos" },
1146{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, 1146{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" },
1147{ "Include &description of the item","Inclusive Itembeschreibung" }, 1147{ "Include &description of the item","Inclusive Itembeschreibung" },
1148{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, 1148{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" },
1149{ "Include &priority of the item","Inclusive Priorität des Items" }, 1149{ "Include &priority of the item","Inclusive Priorität des Items" },
1150{ "Items to Print","Zu druckende Items" }, 1150{ "Items to Print","Zu druckende Items" },
1151{ "&From:","Von:" }, 1151{ "&From:","Von:" },
1152{ "&To:","Bis:" }, 1152{ "&To:","Bis:" },
1153{ "Print &all todo items","Drucke alle Todo Items" }, 1153{ "Print &all todo items","Drucke alle Todo Items" },
1154{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, 1154{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" },
1155{ "Only items due in the &range:","Nur Items in dem Zeitraum:" }, 1155{ "Only items due in the &range:","Nur Items in dem Zeitraum:" },
1156{ "Todo List","Todo Liste" }, 1156{ "Todo List","Todo Liste" },
1157{ "&Title:","&Titel:" }, 1157{ "&Title:","&Titel:" },
1158{ "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, 1158{ "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" },
1159{ "Todo list","Todo Liste" }, 1159{ "Todo list","Todo Liste" },
1160{ "&Print...","Drucke..." }, 1160{ "&Print...","Drucke..." },
1161{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, 1161{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" },
1162{ "[Unconfigured]","[Unkonfiguriert]" }, 1162{ "[Unconfigured]","[Unkonfiguriert]" },
1163{ "OK","OK" }, 1163{ "OK","OK" },
1164{ "FilterEditor","FilterEditor" }, 1164{ "FilterEditor","FilterEditor" },
1165{ "Include","Inclusive" }, 1165{ "Include","Inclusive" },
1166{ "Exclude","Exclusive" }, 1166{ "Exclude","Exclusive" },
1167{ "Edit Selection...","Editiere Auswahl" }, 1167{ "Edit Selection...","Editiere Auswahl" },
1168{ "recurring events","wiederholende Termine" }, 1168{ "recurring events","wiederholende Termine" },
1169{ "recurr. events","wiederh.Termine" }, 1169{ "recurr. events","wiederh.Termine" },
1170{ "completed to-dos","erledigte Todos" }, 1170{ "completed to-dos","erledigte Todos" },
1171{ "events","Termine" }, 1171{ "events","Termine" },
1172{ "todos","Todos" }, 1172{ "todos","Todos" },
1173{ "journals","Journale" }, 1173{ "journals","Journale" },
1174{ "public","öffentl." }, 1174{ "public","öffentl." },
1175{ "private","privat" }, 1175{ "private","privat" },
1176{ "confidential","vertraul." }, 1176{ "confidential","vertraul." },
1177{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, 1177{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" },
1178{ "Yesterday","Gestern" }, 1178{ "Yesterday","Gestern" },
1179{ "Day after tomorrow","Übermorgen" }, 1179{ "Day after tomorrow","Übermorgen" },
1180{ "Tomorrow","Morgen" }, 1180{ "Tomorrow","Morgen" },
1181{ "Day before yesterday","Vorgestern" }, 1181{ "Day before yesterday","Vorgestern" },
1182{ "Size %1","Größe %1" }, 1182{ "Size %1","Größe %1" },
1183{ "New Agendasize: %1","Neue Agendagröße: %1" }, 1183{ "New Agendasize: %1","Neue Agendagröße: %1" },
1184{ " (%1 y.)"," (%1 J.)" }, 1184{ " (%1 y.)"," (%1 J.)" },
1185{ "Allday:","Ganztägig:" }, 1185{ "Allday:","Ganztägig:" },
1186{ "compl.todos","erled.Todos" }, 1186{ "compl.todos","erled.Todos" },
1187{ "Day view","Tagesansicht" }, 1187{ "Day view","Tagesansicht" },
1188{ "Next days","Nächste Tage" }, 1188{ "Next days","Nächste Tage" },
1189{ "Next week","Nächste Woche" }, 1189{ "Next week","Nächste Woche" },
1190{ "Next two weeks","Nächste zwei Wochen" }, 1190{ "Next two weeks","Nächste zwei Wochen" },
1191{ "This month","Dieser Monat" }, 1191{ "This month","Dieser Monat" },
1192{ "Journal view","Journal" }, 1192{ "Journal view","Journal" },
1193{ "Display all opened","Zeige alle geöffnet" }, 1193{ "Display all opened","Zeige alle geöffnet" },
1194{ "Display all closed","Zeige alle geschlossen" }, 1194{ "Display all closed","Zeige alle geschlossen" },
1195{ "Display all flat","Zeige alle flach" }, 1195{ "Display all flat","Zeige alle flach" },
1196{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, 1196{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" },
1197{ "Default todo done color:","Standard Todo erledigt Farbe" }, 1197{ "Default todo done color:","Standard Todo erledigt Farbe" },
1198{ "Select week %1-%2","Wähle Woche %1-%2" }, 1198{ "Select week %1-%2","Wähle Woche %1-%2" },
1199{ "Select Week","Wähle Woche" }, 1199{ "Select Week","Wähle Woche" },
1200{ "Set alarm for selected...","Setze Alarm für Selekt..." }, 1200{ "Set alarm for selected...","Setze Alarm für Selekt..." },
1201{ "Set Alarm!","Setze Alarm!" }, 1201{ "Set Alarm!","Setze Alarm!" },
1202{ "Changed alarm for %1 items","Alarm für %1 Items geändert" }, 1202{ "Changed alarm for %1 items","Alarm für %1 Items geändert" },
1203{ " and "," und " }, 1203{ " and "," und " },
1204{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, 1204{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" },
1205{ "Mail to selected","Mail an Ausgewählte" }, 1205{ "Mail to selected","Mail an Ausgewählte" },
1206{ "Mail to all","Mail an Alle" }, 1206{ "Mail to all","Mail an Alle" },
1207{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, 1207{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" },
1208{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, 1208{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" },
1209{ " on"," am" }, 1209{ " on"," am" },
1210{ " completed on "," erledigt am " }, 1210{ " completed on "," erledigt am " },
1211{ "Save as Event template","Speichere als Vorlage" }, 1211{ "Save as Event template","Speichere als Vorlage" },
1212{ "Load Event template","Lade Termin Vorlage" }, 1212{ "Load Event template","Lade Termin Vorlage" },
1213{ "Save as Journal template","Speichere als Journal Vorlage" }, 1213{ "Save as Journal template","Speichere als Journal Vorlage" },
1214{ "Insert Journal template","Füge Journal Vorlage ein" }, 1214{ "Insert Journal template","Füge Journal Vorlage ein" },
1215{ "Sub todos:<br>","Unter Todos:<br>" }, 1215{ "Sub todos:<br>","Unter Todos:<br>" },
1216{ "Parent todo:<br>","Über Todo:<br>" }, 1216{ "Parent todo:<br>","Über Todo:<br>" },
1217{ "Set current as color category","Setze Gewählte als Farbkategorie" }, 1217{ "Set current as color category","Setze Gewählte als Farbkategorie" },
1218{ " completed"," erledigt" }, 1218{ " completed"," erledigt" },
1219{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, 1219{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" },
1220{ "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, 1220{ "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." },
1221{ "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, 1221{ "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." },
1222{ "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, 1222{ "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." },
1223{ "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, 1223{ "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" },
1224{ "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, 1224{ "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." },
1225{ "Error","Fehler" }, 1225{ "Error","Fehler" },
1226{ ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, 1226{ ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." },
1227{ "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, 1227{ "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." },
1228{ "Warning","Warnung" }, 1228{ "Warning","Warnung" },
1229{ "Select week number","Wähle Wochen Nummer" }, 1229{ "Select week number","Wähle Wochen Nummer" },
1230{ "Februar","Februar" }, 1230{ "Februar","Februar" },
1231{ "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, 1231{ "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" },
1232{ "W","W" }, 1232{ "W","W" },
1233{ "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, 1233{ "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" },
1234{ "T: %1","T: %1" }, 1234{ "T: %1","T: %1" },
1235{ "Start: ","Start: " }, 1235{ "Start: ","Start: " },
1236{ "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, 1236{ "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " },
1237{ "Password for remote access:","Passwort für fernen Zugriff:" }, 1237{ "Password for remote access:","Passwort für fernen Zugriff:" },
1238{ "Remote IP address:","Ferne IP Adresse:" }, 1238{ "Remote IP address:","Ferne IP Adresse:" },
1239{ "Remote port number:","Ferne Port Nummer:" }, 1239{ "Remote port number:","Ferne Port Nummer:" },
1240{ "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, 1240{ "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." },
1241{ "Remote from: ","Fern von: " }, 1241{ "Remote from: ","Fern von: " },
1242{ "Local from: ","Lokal von: " }, 1242{ "Local from: ","Lokal von: " },
1243{ "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, 1243{ "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" },
1244{ "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, 1244{ "Local calendar changed!\n","Lokaler Kalender geändert!\n" },
1245{ "Write back","Schreibe zurück" }, 1245{ "Write back","Schreibe zurück" },
1246{ "KO/Pi Synchronization","KO/Pi Synchronisation" }, 1246{ "KO/Pi Synchronization","KO/Pi Synchronisation" },
1247{ "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, 1247{ "Pi-Sync succesful!","Pi-Sync erfolgreich!" },
1248{ "Received sync request","Sync Anfrage erhalten" }, 1248{ "Received sync request","Sync Anfrage erhalten" },
1249{ "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, 1249{ "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." },
1250{ "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, 1250{ "Saving Data to temp file ...","Speichere Daten in temp Datei..." },
1251{ "Data saved to temp file!","Daten in temp Datei gespeichert!" }, 1251{ "Data saved to temp file!","Daten in temp Datei gespeichert!" },
1252{ "Sending file...","Sende Datei..." }, 1252{ "Sending file...","Sende Datei..." },
1253{ "Waiting for synced file...","Warte auf gesyncte Daten..." }, 1253{ "Waiting for synced file...","Warte auf gesyncte Daten..." },
1254{ "Receiving synced file...","Gesyncte Daten erhalten..." }, 1254{ "Receiving synced file...","Gesyncte Daten erhalten..." },
1255{ "Received %1 bytes","%1 Bytes erhalten" }, 1255{ "Received %1 bytes","%1 Bytes erhalten" },
1256{ "Writing file to disk...","Speichere Datei..." }, 1256{ "Writing file to disk...","Speichere Datei..." },
1257{ "Pi-Sync successful!","Pi-Sync erfolgreich!" }, 1257{ "Pi-Sync successful!","Pi-Sync erfolgreich!" },
1258{ "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, 1258{ "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" },
1259{ "Synchronize!","Synchronisiere!" }, 1259{ "Synchronize!","Synchronisiere!" },
1260{ "High clock skew!","Großer Uhrzeitunterschied!" }, 1260{ "High clock skew!","Großer Uhrzeitunterschied!" },
1261{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, 1261{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" },
1262{ "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, 1262{ "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" },
1263{ "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, 1263{ "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." },
1264{ "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, 1264{ "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" },
1265{ "List week view","Listenwochenansicht" }, 1265{ "List week view","Listenwochenansicht" },
1266{ "List week","Listenwochenansicht" }, 1266{ "List week","Listenwochenansicht" },
1267{ "Next Week","Nächste Woche" }, 1267{ "Next Week","Nächste Woche" },
1268{ "Previous Week","Vorherige Woche" }, 1268{ "Previous Week","Vorherige Woche" },
1269{ "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, 1269{ "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." },
1270{ "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, 1270{ "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" },
1271{ "Details","Details" }, 1271{ "Details","Details" },
1272{ "Created time","Erstellt Zeit" }, 1272{ "Created time","Erstellt Zeit" },
1273{ "Last modified time","Geändert Zeit" }, 1273{ "Last modified time","Geändert Zeit" },
1274{ "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, 1274{ "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" },
1275{ "View Options","Anzeige Optionen" }, 1275{ "View Options","Anzeige Optionen" },
1276{ "<b>Created: ","<b>Erstellt am: " }, 1276{ "<b>Created: ","<b>Erstellt am: " },
1277{ "<b>Last modified: ","<b>Zuletzt geändert am: " }, 1277{ "<b>Last modified: ","<b>Zuletzt geändert am: " },
1278{ "Journal: ","Journal: " }, 1278{ "Journal: ","Journal: " },
1279{ "yearly","jährlich" }, 1279{ "yearly","jährlich" },
1280{ "(%1) ","%1-" }, 1280{ "(%1) ","%1-" },
1281{ "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, 1281{ "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" },
1282{ "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, 1282{ "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" },
1283{ "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, 1283{ "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" },
1284{ "Summary/Loc.","Titel/Ort" }, 1284{ "Summary/Loc.","Titel/Ort" },
1285{ "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, 1285{ "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." },
1286{ "Week Number","Wochennummer" }, 1286{ "Week Number","Wochennummer" },
1287{ "Import","Importiere" }, 1287{ "Import","Importiere" },
1288{ "Export","Exportiere" }, 1288{ "Export","Exportiere" },
1289{ "Beam","Beame" }, 1289{ "Beam","Beame" },
1290{ "Export selected","Exportiere Selektierte" }, 1290{ "Export selected","Exportiere Selektierte" },
1291{ "As iCal (ics) file...","Als iCal (ics) Datei..." }, 1291{ "As iCal (ics) file...","Als iCal (ics) Datei..." },
1292{ "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, 1292{ "As vCal (vcs) file...","Als vCal (vcs) Datei..." },
1293{ "Journal/Details...","Journale/Details..." }, 1293{ "Journal/Details...","Journale/Details..." },
1294{ "Agenda View","Agenda Ansicht" }, 1294{ "Agenda View","Agenda Ansicht" },
1295{ "Show current time","Zeige aktuelle Zeit" }, 1295{ "Show current time","Zeige aktuelle Zeit" },
1296{ "Edit new item","Bearbeite neuen Eintrag" }, 1296{ "Edit new item","Bearbeite neuen Eintrag" },
1297{ "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, 1297{ "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" },
1298{ "There is no next alarm.","Es gibt keinen nächsten Alarm." }, 1298{ "There is no next alarm.","Es gibt keinen nächsten Alarm." },
1299{ "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, 1299{ "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" },
1300{ "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, 1300{ "The next alarm is in:\n","Der nächste Alarm ist in:\n" },
1301{ "%1 days\n","%1 Tagen\n" }, 1301{ "%1 days\n","%1 Tagen\n" },
1302{ "1 day\n","1 Tag\n" }, 1302{ "1 day\n","1 Tag\n" },
1303{ "%1 hours\n","%1 Stunden\n" }, 1303{ "%1 hours\n","%1 Stunden\n" },
1304{ "1 hour\n","1 Stunde\n" }, 1304{ "1 hour\n","1 Stunde\n" },
1305{ "%1 minutes\n","%1 Minuten\n" }, 1305{ "%1 minutes\n","%1 Minuten\n" },
1306{ "1 minute\n","1 Minute\n" }, 1306{ "1 minute\n","1 Minute\n" },
1307{ "Only one toolbar","Nur eine Toolbar" }, 1307{ "Only one toolbar","Nur eine Toolbar" },
1308{ "Print","Drucke" }, 1308{ "Print","Drucke" },
1309{ "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, 1309{ "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." },
1310{ "There is nothing selected!","Es ist nichts ausgewählt!" }, 1310{ "There is nothing selected!","Es ist nichts ausgewählt!" },
1311{ "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, 1311{ "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " },
1312{ "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, 1312{ "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" },
1313{ "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, 1313{ "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" },
1314{ "KO/Pi Printout","KO/Pi Ausdruck" }, 1314{ "KO/Pi Printout","KO/Pi Ausdruck" },
1315{ "Print unscaled","Drucke unskaliert" }, 1315{ "Print unscaled","Drucke unskaliert" },
1316{ "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, 1316{ "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." },
1317{ "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, 1317{ "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." },
1318{ "Printout Mode","Druck Modus" }, 1318{ "Printout Mode","Druck Modus" },
1319{ "Filter menu icon","Filtermenu Icon" }, 1319{ "Filter menu icon","Filtermenu Icon" },
1320{ "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, 1320{ "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" },
1321{ "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, 1321{ "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" },
1322{ "%1d","%1t" }, 1322{ "%1d","%1t" },
1323{ "%1h","%1std" }, 1323{ "%1h","%1std" },
1324{ "%1min","%1min" }, 1324{ "%1min","%1min" },
1325{ "( %1 before )","( %1 vorher )" }, 1325{ "( %1 before )","( %1 vorher )" },
1326{ "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, 1326{ "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" },
1327{ "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, 1327{ "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" },
1328{ "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, 1328{ "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." },
1329{ "Show Sync Events","Zeige Sync-Ereignisse" }, 1329{ "Show Sync Events","Zeige Sync-Ereignisse" },
1330{ "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, 1330{ "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" },
1331{ "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, 1331{ "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" },
1332{ " on "," am " }, 1332{ " on "," am " },
1333{ "On: ","Am: " }, 1333{ "On: ","Am: " },
1334{ "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, 1334{ "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" },
1335{ "Start/Stop todo...","Starte/Stoppe Todo..." }, 1335{ "Start/Stop todo...","Starte/Stoppe Todo..." },
1336{ "Color for running todos:","Farbe für laufende Todos:" }, 1336{ "Color for running todos:","Farbe für laufende Todos:" },
1337{ "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, 1337{ "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" },
1338{ "Todo is started","Todo ist gestartet" }, 1338{ "Todo is started","Todo ist gestartet" },
1339{ "Stop todo","Stoppe Todo" }, 1339{ "Stop todo","Stoppe Todo" },
1340{ "Todo is stopped","Todo ist gestoppt" }, 1340{ "Todo is stopped","Todo ist gestoppt" },
1341{ "Start todo","Starte Todo" }, 1341{ "Start todo","Starte Todo" },
1342{ "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, 1342{ "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" },
1343{ "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, 1343{ "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" },
1344{ "Todo has subtodos","Todo hat Untertodos" }, 1344{ "Todo has subtodos","Todo hat Untertodos" },
1345{ "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, 1345{ "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" },
1346{ "Colors","Farben" }, 1346{ "Colors","Farben" },
1347{ "Click on new parent item","Klicke auf neues Übertodo" }, 1347{ "Click on new parent item","Klicke auf neues Übertodo" },
1348{ "Reparenting aborted!","Übertodo setzen abgebrochen" }, 1348{ "Reparenting aborted!","Übertodo setzen abgebrochen" },
1349{ "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, 1349{ "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" },
1350{ "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, 1350{ "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" },
1351{ "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, 1351{ "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" },
1352{ "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, 1352{ "Alternating background of list views","Abwechselnder Hintergrund für Listen" },
1353{ "times","Zeiten" }, 1353{ "times","Zeiten" },
1354{ "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, 1354{ "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" },
1355{ "Backup enabled","Backup angeschaltet" }, 1355{ "Backup enabled","Backup angeschaltet" },
1356{ "Use standard backup dir","Standard Backupverzeichnis" }, 1356{ "Use standard backup dir","Standard Backupverzeichnis" },
1357{ "Number of Backups:","Anzahl der Backups" }, 1357{ "Number of Backups:","Anzahl der Backups" },
1358{ "Make backup every ","Mache ein Backup alle " }, 1358{ "Make backup every ","Mache ein Backup alle " },
1359{ " days"," Tage" }, 1359{ " days"," Tage" },
1360{ "Creating backup ... please wait ...","Erzeuge Backup ... bitte warten ..." }, 1360{ "Creating backup ... please wait ...","Erstelle Backup ... bitte warten ..." },
1361{ "Backup Failed!","Backup Problem!" }, 1361{ "Backup Failed!","Backup Problem!" },
1362{ "Try again now","Versuche jetzt nochmal" }, 1362{ "Try again now","Versuche jetzt nochmal" },
1363{ "Try again later","Versuche später nochmal" }, 1363{ "Try again later","Versuche später nochmal" },
1364{ "Try again tomorrow","Versuche morgen nochmal" }, 1364{ "Try again tomorrow","Versuche morgen nochmal" },
1365{ "Disable backup","Schalte Backup ab" }, 1365{ "Disable backup","Schalte Backup ab" },
1366{ "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, 1366{ "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" },
1367{ "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, 1367{ "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" },
1368{ "Choose action","Wähle Aktion" }, 1368{ "Choose action","Wähle Aktion" },
1369{ "Comment for todo:","Kommentar zum Todo:" }, 1369{ "Comment for todo:","Kommentar zum Todo:" },
1370{ "Stop+note","Stop+Notiz" }, 1370{ "Stop+note","Stop+Notiz" },
1371{ "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, 1371{ "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" },
1372{ "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, 1372{ "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" },
1373{ "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, 1373{ "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" },
1374{ "Print complete list","Drucke komplette Liste" }, 1374{ "Print complete list","Drucke komplette Liste" },
1375{ "Hide all selected","Verstecke Selektierte" }, 1375{ "Hide all selected","Verstecke Selektierte" },
1376{ "Add items","hinzufügen" }, 1376{ "Add items","hinzufügen" },
1377{ "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, 1377{ "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" },
1378{ "Print List View...","Drucke Listenansicht..." }, 1378{ "Print List View...","Drucke Listenansicht..." },
1379{ "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, 1379{ "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." },
1380{ "Configure KO/Pi...","Konfiguriere KO/Pi..." }, 1380{ "Configure KO/Pi...","Konfiguriere KO/Pi..." },
1381{ "Global Settings...","Globale Einstellungen..." }, 1381{ "Global Settings...","Globale Einstellungen..." },
1382{ "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, 1382{ "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" },
1383{ "(disabled)","(abgeschaltet)" }, 1383{ "(disabled)","(abgeschaltet)" },
1384{ "New Calendar","Neuer Kalender" }, 1384{ "New Calendar","Neuer Kalender" },
1385{ "Calendar","Kalender" }, 1385{ "Calendar","Kalender" },
1386{ "Filter selector","Filterauswahl" }, 1386{ "Filter selector","Filterauswahl" },
1387{ "Filtermenu","Filtermenu" }, 1387{ "Filtermenu","Filtermenu" },
1388{ "Toggle Fullscreen","Vollbild umschalten" }, 1388{ "Toggle Fullscreen","Vollbild umschalten" },
1389{ "Toggle Resource View","Resourcenansicht umschalten" }, 1389{ "Toggle Resource View","Resourcenansicht umschalten" },
1390{ "Storage HowTo...","Speicherort HowTo..." }, 1390{ "Storage HowTo...","Speicherort HowTo..." },
1391{ "Timetracking HowTo...","Timetracking HowTo..." }, 1391{ "Timetracking HowTo...","Timetracking HowTo..." },
1392{ "Juni","Juni" }, 1392{ "Juni","Juni" },
1393{ "Juli","Juli" }, 1393{ "Juli","Juli" },
1394{ "ToDo:","ToDo:" }, 1394{ "ToDo:","ToDo:" },
1395{ "Set Calendar","Setze Kalender" }, 1395{ "Set Calendar","Setze Kalender" },
1396{ "Todo: %1","Todo: %1" }, 1396{ "Todo: %1","Todo: %1" },
1397{ ": (Prio ",": (Prio " }, 1397{ ": (Prio ",": (Prio " },
1398{ "Todos","Todos" }, 1398{ "Todos","Todos" },
1399{ "Todo Viewer","Todo Viewer" }, 1399{ "Todo Viewer","Todo Viewer" },
1400{ "Todo ","Todo " }, 1400{ "Todo ","Todo " },
1401{ " Calendar \n Resource "," Kalender \n Resource " }, 1401{ " Calendar \n Resource "," Kalender \n Resource " },
1402{ " Color "," Farbe " }, 1402{ " Color "," Farbe " },
1403{ "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, 1403{ "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" },
1404{ "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, 1404{ "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" },
1405{ "Add new Calendar","Füge Kalender hinzu" }, 1405{ "Add new Calendar","Füge Kalender hinzu" },
1406{ "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, 1406{ "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" },
1407{ "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, 1407{ "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" },
1408{ "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, 1408{ "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" },
1409{ "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, 1409{ "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" },
1410{ "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, 1410{ "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." },
1411{ "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, 1411{ "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" },
1412{ "Global application font for all apps:","Globale Schriftart:" }, 1412{ "Global application font for all apps:","Globale Schriftart:" },
1413{ "Application Font","Applikationsschriftart" }, 1413{ "Application Font","Applikationsschriftart" },
1414{ "Kx/Pi","Kx/Pi" }, 1414{ "Kx/Pi","Kx/Pi" },
1415{ "Backup","Backup" }, 1415{ "Backup","Backup" },
1416{ "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, 1416{ "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" },
1417{ "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, 1417{ "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" },
1418{ "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, 1418{ "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" },
1419{ "Choose Color","Wähle Farbe" }, 1419{ "Choose Color","Wähle Farbe" },
1420{ " OK "," OK " }, 1420{ " OK "," OK " },
1421{ " Cancel "," Abbrechen " }, 1421{ " Cancel "," Abbrechen " },
1422{ "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, 1422{ "Matching items will be added to list","Passende werden zur Liste hinzugefügt" },
1423{ "Matching items will be removed from list","Passende werden von der Liste entfernt" }, 1423{ "Matching items will be removed from list","Passende werden von der Liste entfernt" },
1424{ "Search on displayed list only","Suche auf der dargestellten Liste" }, 1424{ "Search on displayed list only","Suche auf der dargestellten Liste" },
1425{ "List will be cleared before search","Liste wird vor der Suche gelöscht" }, 1425{ "List will be cleared before search","Liste wird vor der Suche gelöscht" },
1426{ "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, 1426{ "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" },
1427{ "%1\nis running!","%1\nist am Laufen!" }, 1427{ "%1\nis running!","%1\nist am Laufen!" },
1428{ "Additional Comment:","Zusätzlicher Kommentar:" }, 1428{ "Additional Comment:","Zusätzlicher Kommentar:" },
1429{ "Stop and save","Stopp und Speichern" }, 1429{ "Stop and save","Stopp und Speichern" },
1430{ "Continue running","Weiter laufen lassen" }, 1430{ "Continue running","Weiter laufen lassen" },
1431{ "Stop - do not save","Stopp - nicht Speichern" }, 1431{ "Stop - do not save","Stopp - nicht Speichern" },
1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, 1432{ "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" },
1433{ "Time mismatch!","Zeiten stimmen nicht!" }, 1433{ "Time mismatch!","Zeiten stimmen nicht!" },
1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, 1434{ "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" },
1435{ "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" },
1454{ "Backup globally disabled","Backup global abgeschaltet" },
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!)" },
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{ "","" },
1453{ "","" }, 1459{ "","" },
1454{ "","" }, 1460{ "","" },
1455{ "","" }, 1461{ "","" },
1456{ "","" }, 1462{ "","" },
1457{ "","" }, 1463{ "","" },
1458{ "","" }, \ No newline at end of file 1464{ "","" }, \ No newline at end of file
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 48320a5..b9d8742 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -524,2033 +524,2032 @@ void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
524 stream >> fileName; 524 stream >> fileName;
525 //qDebug("filename %s ", fileName.latin1()); 525 //qDebug("filename %s ", fileName.latin1());
526 showMaximized(); 526 showMaximized();
527 raise(); 527 raise();
528 KOPrefs::instance()->mLastSyncedLocalFile = fileName ; 528 KOPrefs::instance()->mLastSyncedLocalFile = fileName ;
529 mSyncManager->slotSyncMenu( 1002 ); 529 mSyncManager->slotSyncMenu( 1002 );
530 return; 530 return;
531 } 531 }
532 532
533 if ( cmsg == "-writeFile" ) { 533 if ( cmsg == "-writeFile" ) {
534 // I made from the "-writeFile" an "-writeAlarm" 534 // I made from the "-writeFile" an "-writeAlarm"
535 mView->viewManager()->showWhatsNextView(); 535 mView->viewManager()->showWhatsNextView();
536 mCalendar->checkAlarmForIncidence( 0, true); 536 mCalendar->checkAlarmForIncidence( 0, true);
537 showMaximized(); 537 showMaximized();
538 raise(); 538 raise();
539 return; 539 return;
540 540
541 } 541 }
542 if ( cmsg == "-writeFileSilent" ) { 542 if ( cmsg == "-writeFileSilent" ) {
543 // I made from the "-writeFile" an "-writeAlarm" 543 // I made from the "-writeFile" an "-writeAlarm"
544 // mView->viewManager()->showWhatsNextView(); 544 // mView->viewManager()->showWhatsNextView();
545 mCalendar->checkAlarmForIncidence( 0, true); 545 mCalendar->checkAlarmForIncidence( 0, true);
546 //showMaximized(); 546 //showMaximized();
547 //raise(); 547 //raise();
548 hide(); 548 hide();
549 return; 549 return;
550 } 550 }
551 if ( cmsg == "-newCountdown" ) { 551 if ( cmsg == "-newCountdown" ) {
552 qDebug("newCountdown "); 552 qDebug("newCountdown ");
553 553
554 } 554 }
555 QString msg ; 555 QString msg ;
556 QString allmsg = cmsg; 556 QString allmsg = cmsg;
557 while ( allmsg.length() > 0 ) { 557 while ( allmsg.length() > 0 ) {
558 int nextC = allmsg.find( "-", 1 ); 558 int nextC = allmsg.find( "-", 1 );
559 if ( nextC == -1 ) { 559 if ( nextC == -1 ) {
560 msg = allmsg; 560 msg = allmsg;
561 allmsg = ""; 561 allmsg = "";
562 } else{ 562 } else{
563 msg = allmsg.left( nextC ); 563 msg = allmsg.left( nextC );
564 allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); 564 allmsg = allmsg.mid( nextC, allmsg.length()-nextC );
565 } 565 }
566 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); 566 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() );
567 if ( msg == "-newEvent" ) { 567 if ( msg == "-newEvent" ) {
568 mView->newEvent(); 568 mView->newEvent();
569 } 569 }
570 if ( msg == "-newTodo" ) { 570 if ( msg == "-newTodo" ) {
571 mView->newTodo(); 571 mView->newTodo();
572 572
573 } 573 }
574 if ( msg == "-showWN" ) { 574 if ( msg == "-showWN" ) {
575 mView->viewManager()->showWhatsNextView(); 575 mView->viewManager()->showWhatsNextView();
576 } 576 }
577 if ( msg == "-showTodo" ) { 577 if ( msg == "-showTodo" ) {
578 mView->viewManager()->showTodoView(); 578 mView->viewManager()->showTodoView();
579 } 579 }
580 if ( msg == "-showList" ) { 580 if ( msg == "-showList" ) {
581 mView->viewManager()->showListView(); 581 mView->viewManager()->showListView();
582 } 582 }
583 else if ( msg == "-showDay" ) { 583 else if ( msg == "-showDay" ) {
584 mView->viewManager()->showDayView(); 584 mView->viewManager()->showDayView();
585 } 585 }
586 else if ( msg == "-showWWeek" ) { 586 else if ( msg == "-showWWeek" ) {
587 mView->viewManager()->showWorkWeekView(); 587 mView->viewManager()->showWorkWeekView();
588 } 588 }
589 else if ( msg == "-ringSync" ) { 589 else if ( msg == "-ringSync" ) {
590 mSyncManager->multiSync( false ); 590 mSyncManager->multiSync( false );
591 } 591 }
592 else if ( msg == "-showWeek" ) { 592 else if ( msg == "-showWeek" ) {
593 mView->viewManager()->showWeekView(); 593 mView->viewManager()->showWeekView();
594 } 594 }
595 else if ( msg == "-showTodo" ) { 595 else if ( msg == "-showTodo" ) {
596 mView->viewManager()->showTodoView(); 596 mView->viewManager()->showTodoView();
597 } 597 }
598 else if ( msg == "-showJournal" ) { 598 else if ( msg == "-showJournal" ) {
599 mView->dateNavigator()->selectDates( 1 ); 599 mView->dateNavigator()->selectDates( 1 );
600 mView->dateNavigator()->selectToday(); 600 mView->dateNavigator()->selectToday();
601 mView->viewManager()->showJournalView(); 601 mView->viewManager()->showJournalView();
602 } 602 }
603 else if ( msg == "-showKO" ) { 603 else if ( msg == "-showKO" ) {
604 mView->viewManager()->showNextXView(); 604 mView->viewManager()->showNextXView();
605 } 605 }
606 else if ( msg == "-showWNext" ) { 606 else if ( msg == "-showWNext" ) {
607 mView->viewManager()->showWhatsNextView(); 607 mView->viewManager()->showWhatsNextView();
608 } 608 }
609 else if ( msg == "nextView()" ) { 609 else if ( msg == "nextView()" ) {
610 mView->viewManager()->showNextView(); 610 mView->viewManager()->showNextView();
611 } 611 }
612 else if ( msg == "-showNextXView" ) { 612 else if ( msg == "-showNextXView" ) {
613 mView->viewManager()->showNextXView(); 613 mView->viewManager()->showNextXView();
614 } 614 }
615 615
616 616
617 } 617 }
618 618
619 showMaximized(); 619 showMaximized();
620 raise(); 620 raise();
621} 621}
622 622
623QPixmap MainWindow::loadPixmap( QString name ) 623QPixmap MainWindow::loadPixmap( QString name )
624{ 624{
625 return SmallIcon( name ); 625 return SmallIcon( name );
626 626
627} 627}
628void MainWindow::setUsesBigPixmaps ( bool b ) 628void MainWindow::setUsesBigPixmaps ( bool b )
629{ 629{
630 qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); 630 qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b);
631 if ( b ) 631 if ( b )
632 qDebug("KO: BigPixmaps are not supported "); 632 qDebug("KO: BigPixmaps are not supported ");
633} 633}
634void MainWindow::initActions() 634void MainWindow::initActions()
635{ 635{
636 //KOPrefs::instance()->mShowFullMenu 636 //KOPrefs::instance()->mShowFullMenu
637 iconToolBar->clear(); 637 iconToolBar->clear();
638 KOPrefs *p = KOPrefs::instance(); 638 KOPrefs *p = KOPrefs::instance();
639 //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); 639 //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar );
640 640
641 QPopupMenu *viewMenu = new QPopupMenu( this ); 641 QPopupMenu *viewMenu = new QPopupMenu( this );
642 QPopupMenu *actionMenu = new QPopupMenu( this ); 642 QPopupMenu *actionMenu = new QPopupMenu( this );
643 QPopupMenu *importMenu = new QPopupMenu( this ); 643 QPopupMenu *importMenu = new QPopupMenu( this );
644 QPopupMenu *importMenu_X = new QPopupMenu( this ); 644 QPopupMenu *importMenu_X = new QPopupMenu( this );
645 QPopupMenu *exportMenu_X = new QPopupMenu( this ); 645 QPopupMenu *exportMenu_X = new QPopupMenu( this );
646 QPopupMenu *beamMenu_X = new QPopupMenu( this ); 646 QPopupMenu *beamMenu_X = new QPopupMenu( this );
647 selectFilterMenu = new QPopupMenu( this ); 647 selectFilterMenu = new QPopupMenu( this );
648 selectFilterMenu->setCheckable( true ); 648 selectFilterMenu->setCheckable( true );
649 syncMenu = new QPopupMenu( this ); 649 syncMenu = new QPopupMenu( this );
650 configureAgendaMenu = new QPopupMenu( this ); 650 configureAgendaMenu = new QPopupMenu( this );
651 configureToolBarMenu = new QPopupMenu( this ); 651 configureToolBarMenu = new QPopupMenu( this );
652 QPopupMenu *helpMenu = new QPopupMenu( this ); 652 QPopupMenu *helpMenu = new QPopupMenu( this );
653 QIconSet icon; 653 QIconSet icon;
654 int pixWid = 22, pixHei = 22; 654 int pixWid = 22, pixHei = 22;
655 QString pathString = ""; 655 QString pathString = "";
656 if ( !p->mToolBarMiniIcons ) { 656 if ( !p->mToolBarMiniIcons ) {
657 if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { 657 if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) {
658 pathString += "icons16/"; 658 pathString += "icons16/";
659 pixWid = 18; pixHei = 16; 659 pixWid = 18; pixHei = 16;
660 } 660 }
661 } else { 661 } else {
662 pathString += "iconsmini/"; 662 pathString += "iconsmini/";
663 pixWid = 18; pixHei = 16; 663 pixWid = 18; pixHei = 16;
664 } 664 }
665 if ( KOPrefs::instance()->mShowFullMenu ) { 665 if ( KOPrefs::instance()->mShowFullMenu ) {
666 QMenuBar *menuBar1; 666 QMenuBar *menuBar1;
667 menuBar1 = menuBar(); 667 menuBar1 = menuBar();
668 menuBar1->insertItem( i18n("File"), importMenu ); 668 menuBar1->insertItem( i18n("File"), importMenu );
669 menuBar1->insertItem( i18n("View"), viewMenu ); 669 menuBar1->insertItem( i18n("View"), viewMenu );
670 menuBar1->insertItem( i18n("Actions"), actionMenu ); 670 menuBar1->insertItem( i18n("Actions"), actionMenu );
671#ifdef DESKTOP_VERSION 671#ifdef DESKTOP_VERSION
672 menuBar1->insertItem( i18n("Synchronize"), syncMenu ); 672 menuBar1->insertItem( i18n("Synchronize"), syncMenu );
673 menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); 673 menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu );
674#else 674#else
675 menuBar1->insertItem( i18n("Sync"), syncMenu ); 675 menuBar1->insertItem( i18n("Sync"), syncMenu );
676 menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); 676 menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu );
677#endif 677#endif
678 //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); 678 //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu );
679 menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); 679 menuBar1->insertItem( i18n("Filter"),selectFilterMenu );
680 menuBar1->insertItem( i18n("Help"), helpMenu ); 680 menuBar1->insertItem( i18n("Help"), helpMenu );
681 } else { 681 } else {
682 QPEMenuBar *menuBar1; 682 QPEMenuBar *menuBar1;
683 menuBar1 = new QPEMenuBar( iconToolBar ); 683 menuBar1 = new QPEMenuBar( iconToolBar );
684 QPopupMenu *menuBar = new QPopupMenu( this ); 684 QPopupMenu *menuBar = new QPopupMenu( this );
685 icon = loadPixmap( pathString + "z_menu" ); 685 icon = loadPixmap( pathString + "z_menu" );
686 menuBar1->insertItem( icon.pixmap(), menuBar); 686 menuBar1->insertItem( icon.pixmap(), menuBar);
687 //menuBar1->insertItem( i18n("ME"), menuBar); 687 //menuBar1->insertItem( i18n("ME"), menuBar);
688 menuBar->insertItem( i18n("File"), importMenu ); 688 menuBar->insertItem( i18n("File"), importMenu );
689 menuBar->insertItem( i18n("View"), viewMenu ); 689 menuBar->insertItem( i18n("View"), viewMenu );
690 menuBar->insertItem( i18n("Actions"), actionMenu ); 690 menuBar->insertItem( i18n("Actions"), actionMenu );
691 menuBar->insertItem( i18n("Synchronize"), syncMenu ); 691 menuBar->insertItem( i18n("Synchronize"), syncMenu );
692 menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); 692 menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu );
693 menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); 693 menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu );
694 menuBar->insertItem( i18n("Filter"),selectFilterMenu ); 694 menuBar->insertItem( i18n("Filter"),selectFilterMenu );
695 menuBar->insertItem( i18n("Help"), helpMenu ); 695 menuBar->insertItem( i18n("Help"), helpMenu );
696 //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); 696 //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() );
697 menuBar1->setMaximumSize( menuBar1->sizeHint( )); 697 menuBar1->setMaximumSize( menuBar1->sizeHint( ));
698 } 698 }
699 connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); 699 connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) );
700 connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); 700 connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) );
701 701
702 702
703 mWeekBgColor = iconToolBar->backgroundColor(); 703 mWeekBgColor = iconToolBar->backgroundColor();
704 mWeekPixmap.resize( pixWid , pixHei ); 704 mWeekPixmap.resize( pixWid , pixHei );
705 mWeekPixmap.fill( mWeekBgColor ); 705 mWeekPixmap.fill( mWeekBgColor );
706 icon = mWeekPixmap; 706 icon = mWeekPixmap;
707 mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); 707 mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this );
708 if ( p-> mShowIconWeekNum ) 708 if ( p-> mShowIconWeekNum )
709 mWeekAction->addTo( iconToolBar ); 709 mWeekAction->addTo( iconToolBar );
710 mWeekFont = font(); 710 mWeekFont = font();
711 711
712 int fontPoint = mWeekFont.pointSize(); 712 int fontPoint = mWeekFont.pointSize();
713 QFontMetrics f( mWeekFont ); 713 QFontMetrics f( mWeekFont );
714 int fontWid = f.width( "30" ); 714 int fontWid = f.width( "30" );
715 while ( fontWid > pixWid ) { 715 while ( fontWid > pixWid ) {
716 --fontPoint; 716 --fontPoint;
717 mWeekFont.setPointSize( fontPoint ); 717 mWeekFont.setPointSize( fontPoint );
718 QFontMetrics f( mWeekFont ); 718 QFontMetrics f( mWeekFont );
719 fontWid = f.width( "30" ); 719 fontWid = f.width( "30" );
720 //qDebug("dec-- "); 720 //qDebug("dec-- ");
721 } 721 }
722 722
723 connect( mWeekAction, SIGNAL( activated() ), 723 connect( mWeekAction, SIGNAL( activated() ),
724 this, SLOT( weekAction() ) ); 724 this, SLOT( weekAction() ) );
725 725
726 connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); 726 connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) );
727 if ( p->mShowIconFilterview ) { 727 if ( p->mShowIconFilterview ) {
728 icon = loadPixmap( pathString + "filter" ); 728 icon = loadPixmap( pathString + "filter" );
729 actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); 729 actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this );
730 connect( actionFilterMenuTB, SIGNAL( activated() ), 730 connect( actionFilterMenuTB, SIGNAL( activated() ),
731 this, SLOT( fillFilterMenuTB() ) ); 731 this, SLOT( fillFilterMenuTB() ) );
732 actionFilterMenuTB->addTo( iconToolBar ); 732 actionFilterMenuTB->addTo( iconToolBar );
733 selectFilterMenuTB = new QPopupMenu( this ); 733 selectFilterMenuTB = new QPopupMenu( this );
734 selectFilterMenuTB->setCheckable( true ); 734 selectFilterMenuTB->setCheckable( true );
735 connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); 735 connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) );
736 } 736 }
737 737
738 //#endif 738 //#endif
739 // ****************** 739 // ******************
740 QAction *action; 740 QAction *action;
741 // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); 741 // QPopupMenu *configureMenu= new QPopupMenu( menuBar );
742 configureToolBarMenu->setCheckable( true ); 742 configureToolBarMenu->setCheckable( true );
743 743
744 744
745 configureAgendaMenu->setCheckable( true ); 745 configureAgendaMenu->setCheckable( true );
746 int iii ; 746 int iii ;
747 for ( iii = 1;iii<= 10 ;++iii ){ 747 for ( iii = 1;iii<= 10 ;++iii ){
748 configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); 748 configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 );
749 } 749 }
750 //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); 750 //configureMenu->insertItem( "AgendaSize",configureAgendaMenu );
751 751
752 connect( configureAgendaMenu, SIGNAL( aboutToShow()), 752 connect( configureAgendaMenu, SIGNAL( aboutToShow()),
753 this, SLOT( showConfigureAgenda( ) ) ); 753 this, SLOT( showConfigureAgenda( ) ) );
754 754
755 icon = loadPixmap( pathString + "configure" ); 755 icon = loadPixmap( pathString + "configure" );
756 action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); 756 action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this );
757 action->addTo( actionMenu ); 757 action->addTo( actionMenu );
758 connect( action, SIGNAL( activated() ), 758 connect( action, SIGNAL( activated() ),
759 mView, SLOT( edit_options() ) ); 759 mView, SLOT( edit_options() ) );
760 icon = loadPixmap( pathString + "configure" ); 760 icon = loadPixmap( pathString + "configure" );
761 action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); 761 action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this );
762 action->addTo( actionMenu ); 762 action->addTo( actionMenu );
763 connect( action, SIGNAL( activated() ), 763 connect( action, SIGNAL( activated() ),
764 mView, SLOT( edit_global_options() ) ); 764 mView, SLOT( edit_global_options() ) );
765 actionMenu->insertSeparator(); 765 actionMenu->insertSeparator();
766 766
767 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); 767 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
768 action->addTo( actionMenu ); 768 action->addTo( actionMenu );
769 connect( action, SIGNAL( activated() ), 769 connect( action, SIGNAL( activated() ),
770 mView, SLOT( undo_delete() ) ); 770 mView, SLOT( undo_delete() ) );
771 actionMenu->insertSeparator(); 771 actionMenu->insertSeparator();
772 772
773 icon = loadPixmap( pathString + "newevent" ); 773 icon = loadPixmap( pathString + "newevent" );
774 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); 774 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 );
775 configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); 775 configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 );
776 configureToolBarMenu->insertSeparator(); 776 configureToolBarMenu->insertSeparator();
777 configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); 777 configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 );
778 configureToolBarMenu->insertSeparator(); 778 configureToolBarMenu->insertSeparator();
779 configureToolBarMenu->insertItem(i18n("Week Number"), 400); 779 configureToolBarMenu->insertItem(i18n("Week Number"), 400);
780 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); 780 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 );
781 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); 781 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
782 ne_action->addTo( actionMenu ); 782 ne_action->addTo( actionMenu );
783 connect( ne_action, SIGNAL( activated() ), 783 connect( ne_action, SIGNAL( activated() ),
784 mView, SLOT( newEvent() ) ); 784 mView, SLOT( newEvent() ) );
785 icon = loadPixmap( pathString + "newtodo" ); 785 icon = loadPixmap( pathString + "newtodo" );
786 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); 786 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 );
787 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); 787 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this );
788 nt_action->addTo( actionMenu ); 788 nt_action->addTo( actionMenu );
789 connect( nt_action, SIGNAL( activated() ), 789 connect( nt_action, SIGNAL( activated() ),
790 mView, SLOT( newTodo() ) ); 790 mView, SLOT( newTodo() ) );
791 791
792 icon = loadPixmap( pathString + "today" ); 792 icon = loadPixmap( pathString + "today" );
793 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); 793 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
794 today_action->addTo( viewMenu ); 794 today_action->addTo( viewMenu );
795 connect( today_action, SIGNAL( activated() ), 795 connect( today_action, SIGNAL( activated() ),
796 mView, SLOT( goToday() ) ); 796 mView, SLOT( goToday() ) );
797 viewMenu->insertSeparator(); 797 viewMenu->insertSeparator();
798 798
799 // *********************** 799 // ***********************
800 if ( KOPrefs::instance()->mVerticalScreen ) { 800 if ( KOPrefs::instance()->mVerticalScreen ) {
801 icon = SmallIcon( "1updownarrow" ); 801 icon = SmallIcon( "1updownarrow" );
802 } else { 802 } else {
803 icon = SmallIcon("1leftrightarrow" ); 803 icon = SmallIcon("1leftrightarrow" );
804 } 804 }
805 configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); 805 configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 );
806 QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); 806 QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this );
807 FSaction->addTo( viewMenu ); 807 FSaction->addTo( viewMenu );
808 connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); 808 connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() ));
809 809
810 810
811 icon = loadPixmap( pathString + "filter" ); 811 icon = loadPixmap( pathString + "filter" );
812 configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); 812 configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 );
813 icon = loadPixmap( pathString + "configure" ); 813 icon = loadPixmap( pathString + "configure" );
814 action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); 814 action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this );
815 action->addTo( viewMenu ); 815 action->addTo( viewMenu );
816 connect( action, SIGNAL( activated() ), 816 connect( action, SIGNAL( activated() ),
817 mView, SLOT( toggleFilter() ) ); 817 mView, SLOT( toggleFilter() ) );
818 mToggleFilter = action; 818 mToggleFilter = action;
819 icon = loadPixmap( pathString + "navi" ); 819 icon = loadPixmap( pathString + "navi" );
820 configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); 820 configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 );
821 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); 821 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
822 action->addTo( viewMenu ); 822 action->addTo( viewMenu );
823 connect( action, SIGNAL( activated() ), 823 connect( action, SIGNAL( activated() ),
824 mView, SLOT( toggleDateNavigatorWidget() ) ); 824 mView, SLOT( toggleDateNavigatorWidget() ) );
825 mToggleNav = action ; 825 mToggleNav = action ;
826 icon = loadPixmap( pathString + "allday" ); 826 icon = loadPixmap( pathString + "allday" );
827 configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); 827 configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 );
828 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); 828 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
829 action->addTo( viewMenu ); 829 action->addTo( viewMenu );
830 connect( action, SIGNAL( activated() ), 830 connect( action, SIGNAL( activated() ),
831 mView, SLOT( toggleAllDaySize() ) ); 831 mView, SLOT( toggleAllDaySize() ) );
832 mToggleAllday = action; 832 mToggleAllday = action;
833 833
834 834
835 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 835 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
836 mToggleNav, SLOT( setEnabled ( bool ) ) ); 836 mToggleNav, SLOT( setEnabled ( bool ) ) );
837 //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 837 //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
838 // mToggleFilter, SLOT( setEnabled ( bool ) ) ); 838 // mToggleFilter, SLOT( setEnabled ( bool ) ) );
839 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), 839 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ),
840 mToggleAllday, SLOT( setEnabled ( bool ) ) ); 840 mToggleAllday, SLOT( setEnabled ( bool ) ) );
841 // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), 841 // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ),
842 // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); 842 // configureAgendaMenu, SLOT( setEnabled ( bool ) ) );
843 843
844 viewMenu->insertSeparator(); 844 viewMenu->insertSeparator();
845 icon = loadPixmap( pathString + "picker" ); 845 icon = loadPixmap( pathString + "picker" );
846 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); 846 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this );
847 action->addTo( viewMenu ); 847 action->addTo( viewMenu );
848 connect( action, SIGNAL( activated() ), 848 connect( action, SIGNAL( activated() ),
849 mView, SLOT( showDatePicker() ) ); 849 mView, SLOT( showDatePicker() ) );
850 action->addTo( iconToolBar ); 850 action->addTo( iconToolBar );
851 viewMenu->insertSeparator(); 851 viewMenu->insertSeparator();
852 852
853 if ( p-> mShowIconToggleFull ) 853 if ( p-> mShowIconToggleFull )
854 FSaction->addTo( iconToolBar ); 854 FSaction->addTo( iconToolBar );
855 if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); 855 if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar );
856 856
857 //******************** 857 //********************
858 if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); 858 if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar );
859 859
860 860
861 icon = loadPixmap( pathString + "whatsnext" ); 861 icon = loadPixmap( pathString + "whatsnext" );
862 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); 862 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 );
863 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); 863 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
864 whatsnext_action->addTo( viewMenu ); 864 whatsnext_action->addTo( viewMenu );
865 connect( whatsnext_action, SIGNAL( activated() ), 865 connect( whatsnext_action, SIGNAL( activated() ),
866 mView->viewManager(), SLOT( showWhatsNextView() ) ); 866 mView->viewManager(), SLOT( showWhatsNextView() ) );
867 867
868 icon = loadPixmap( pathString + "xdays" ); 868 icon = loadPixmap( pathString + "xdays" );
869 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); 869 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 );
870 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); 870 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this );
871 xdays_action->addTo( viewMenu ); 871 xdays_action->addTo( viewMenu );
872 connect( xdays_action, SIGNAL( activated() ), 872 connect( xdays_action, SIGNAL( activated() ),
873 mView->viewManager(), SLOT( showNextXView() ) ); 873 mView->viewManager(), SLOT( showNextXView() ) );
874 874
875 875
876 icon = loadPixmap( pathString + "journal" ); 876 icon = loadPixmap( pathString + "journal" );
877 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); 877 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 );
878 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); 878 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this );
879 viewjournal_action->addTo( viewMenu ); 879 viewjournal_action->addTo( viewMenu );
880 connect( viewjournal_action, SIGNAL( activated() ), 880 connect( viewjournal_action, SIGNAL( activated() ),
881 mView->viewManager(), SLOT( showJournalView() ) ); 881 mView->viewManager(), SLOT( showJournalView() ) );
882 882
883 883
884 icon = loadPixmap( pathString + "day" ); 884 icon = loadPixmap( pathString + "day" );
885 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); 885 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 );
886 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); 886 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this );
887 day1_action->addTo( viewMenu ); 887 day1_action->addTo( viewMenu );
888 // action->addTo( toolBar ); 888 // action->addTo( toolBar );
889 connect( day1_action, SIGNAL( activated() ), 889 connect( day1_action, SIGNAL( activated() ),
890 mView->viewManager(), SLOT( showDayView() ) ); 890 mView->viewManager(), SLOT( showDayView() ) );
891 891
892 icon = loadPixmap( pathString + "workweek" ); 892 icon = loadPixmap( pathString + "workweek" );
893 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); 893 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 );
894 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); 894 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this );
895 day5_action->addTo( viewMenu ); 895 day5_action->addTo( viewMenu );
896 connect( day5_action, SIGNAL( activated() ), 896 connect( day5_action, SIGNAL( activated() ),
897 mView->viewManager(), SLOT( showWorkWeekView() ) ); 897 mView->viewManager(), SLOT( showWorkWeekView() ) );
898 898
899 icon = loadPixmap( pathString + "week" ); 899 icon = loadPixmap( pathString + "week" );
900 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); 900 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 );
901 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); 901 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this );
902 day7_action->addTo( viewMenu ); 902 day7_action->addTo( viewMenu );
903 connect( day7_action, SIGNAL( activated() ), 903 connect( day7_action, SIGNAL( activated() ),
904 mView->viewManager(), SLOT( showWeekView() ) ); 904 mView->viewManager(), SLOT( showWeekView() ) );
905 905
906 icon = loadPixmap( pathString + "workweek2" ); 906 icon = loadPixmap( pathString + "workweek2" );
907 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); 907 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
908 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); 908 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
909 day6_action->addTo( viewMenu ); 909 day6_action->addTo( viewMenu );
910 connect( day6_action, SIGNAL( activated() ), 910 connect( day6_action, SIGNAL( activated() ),
911 mView->viewManager(), SLOT( showMonthViewWeek() ) ); 911 mView->viewManager(), SLOT( showMonthViewWeek() ) );
912 912
913 icon = loadPixmap( pathString + "month" ); 913 icon = loadPixmap( pathString + "month" );
914 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); 914 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 );
915 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); 915 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this );
916 month_action->addTo( viewMenu ); 916 month_action->addTo( viewMenu );
917 connect( month_action, SIGNAL( activated() ), 917 connect( month_action, SIGNAL( activated() ),
918 mView->viewManager(), SLOT( showMonthView() ) ); 918 mView->viewManager(), SLOT( showMonthView() ) );
919 919
920 icon = loadPixmap( pathString + "list" ); 920 icon = loadPixmap( pathString + "list" );
921 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); 921 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 );
922 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); 922 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this );
923 showlist_action->addTo( viewMenu ); 923 showlist_action->addTo( viewMenu );
924 connect( showlist_action, SIGNAL( activated() ), 924 connect( showlist_action, SIGNAL( activated() ),
925 mView->viewManager(), SLOT( showListView() ) ); 925 mView->viewManager(), SLOT( showListView() ) );
926 926
927 icon = loadPixmap( pathString + "todo" ); 927 icon = loadPixmap( pathString + "todo" );
928 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); 928 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 );
929 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); 929 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
930 todoview_action->addTo( viewMenu ); 930 todoview_action->addTo( viewMenu );
931 connect( todoview_action, SIGNAL( activated() ), 931 connect( todoview_action, SIGNAL( activated() ),
932 mView->viewManager(), SLOT( showTodoView() ) ); 932 mView->viewManager(), SLOT( showTodoView() ) );
933 933
934 934
935 935
936#if 0 936#if 0
937 action = new QAction( "view_timespan", "Time Span", 0, this ); 937 action = new QAction( "view_timespan", "Time Span", 0, this );
938 action->addTo( viewMenu ); 938 action->addTo( viewMenu );
939 connect( action, SIGNAL( activated() ), 939 connect( action, SIGNAL( activated() ),
940 mView->viewManager(), SLOT( showTimeSpanView() ) ); 940 mView->viewManager(), SLOT( showTimeSpanView() ) );
941#endif 941#endif
942 942
943 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, 943 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0,
944 this ); 944 this );
945 mNewSubTodoAction->addTo( actionMenu ); 945 mNewSubTodoAction->addTo( actionMenu );
946 connect( mNewSubTodoAction, SIGNAL( activated() ), 946 connect( mNewSubTodoAction, SIGNAL( activated() ),
947 mView, SLOT( newSubTodo() ) ); 947 mView, SLOT( newSubTodo() ) );
948 948
949 actionMenu->insertSeparator(); 949 actionMenu->insertSeparator();
950 950
951 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); 951 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this );
952 mShowAction->addTo( actionMenu ); 952 mShowAction->addTo( actionMenu );
953 connect( mShowAction, SIGNAL( activated() ), 953 connect( mShowAction, SIGNAL( activated() ),
954 mView, SLOT( showIncidence() ) ); 954 mView, SLOT( showIncidence() ) );
955 955
956 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); 956 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
957 mEditAction->addTo( actionMenu ); 957 mEditAction->addTo( actionMenu );
958 connect( mEditAction, SIGNAL( activated() ), 958 connect( mEditAction, SIGNAL( activated() ),
959 mView, SLOT( editIncidence() ) ); 959 mView, SLOT( editIncidence() ) );
960 960
961 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); 961 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
962 mDeleteAction->addTo( actionMenu ); 962 mDeleteAction->addTo( actionMenu );
963 connect( mDeleteAction, SIGNAL( activated() ), 963 connect( mDeleteAction, SIGNAL( activated() ),
964 mView, SLOT( deleteIncidence() ) ); 964 mView, SLOT( deleteIncidence() ) );
965 965
966 966
967 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); 967 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
968 mCloneAction->addTo( actionMenu ); 968 mCloneAction->addTo( actionMenu );
969 connect( mCloneAction, SIGNAL( activated() ), 969 connect( mCloneAction, SIGNAL( activated() ),
970 mView, SLOT( cloneIncidence() ) ); 970 mView, SLOT( cloneIncidence() ) );
971 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); 971 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
972 mMoveAction->addTo( actionMenu ); 972 mMoveAction->addTo( actionMenu );
973 connect( mMoveAction, SIGNAL( activated() ), 973 connect( mMoveAction, SIGNAL( activated() ),
974 mView, SLOT( moveIncidence() ) ); 974 mView, SLOT( moveIncidence() ) );
975 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); 975 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
976 mBeamAction->addTo( actionMenu ); 976 mBeamAction->addTo( actionMenu );
977 connect( mBeamAction, SIGNAL( activated() ), 977 connect( mBeamAction, SIGNAL( activated() ),
978 mView, SLOT( beamIncidence() ) ); 978 mView, SLOT( beamIncidence() ) );
979 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); 979 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
980 mCancelAction->addTo( actionMenu ); 980 mCancelAction->addTo( actionMenu );
981 connect( mCancelAction, SIGNAL( activated() ), 981 connect( mCancelAction, SIGNAL( activated() ),
982 mView, SLOT( toggleCancelIncidence() ) ); 982 mView, SLOT( toggleCancelIncidence() ) );
983 983
984 actionMenu->insertSeparator(); 984 actionMenu->insertSeparator();
985 985
986 action = new QAction( "purge_completed", i18n("Purge Completed"), 0, 986 action = new QAction( "purge_completed", i18n("Purge Completed"), 0,
987 this ); 987 this );
988 action->addTo( actionMenu ); 988 action->addTo( actionMenu );
989 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); 989 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) );
990 990
991 icon = loadPixmap( pathString + "search" ); 991 icon = loadPixmap( pathString + "search" );
992 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); 992 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
993 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); 993 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5);
994 search_action->addTo( actionMenu ); 994 search_action->addTo( actionMenu );
995 connect( search_action, SIGNAL( activated() ), 995 connect( search_action, SIGNAL( activated() ),
996 mView->dialogManager(), SLOT( showSearchDialog() ) ); 996 mView->dialogManager(), SLOT( showSearchDialog() ) );
997 997
998 998
999 999
1000 if ( KOPrefs::instance()->mShowFullMenu ) { 1000 if ( KOPrefs::instance()->mShowFullMenu ) {
1001 actionMenu->insertSeparator(); 1001 actionMenu->insertSeparator();
1002 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); 1002 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu );
1003 1003
1004 } 1004 }
1005 // actionMenu->insertSeparator(); 1005 // actionMenu->insertSeparator();
1006 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, 1006 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0,
1007 this ); 1007 this );
1008 action->addTo( importMenu_X ); 1008 action->addTo( importMenu_X );
1009 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); 1009 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) );
1010 action = new QAction( "import_quick", i18n("Import last file"), 0, 1010 action = new QAction( "import_quick", i18n("Import last file"), 0,
1011 this ); 1011 this );
1012 action->addTo( importMenu_X ); 1012 action->addTo( importMenu_X );
1013 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); 1013 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) );
1014 importMenu_X->insertSeparator(); 1014 importMenu_X->insertSeparator();
1015 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, 1015 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
1016 this ); 1016 this );
1017 action->addTo( importMenu_X ); 1017 action->addTo( importMenu_X );
1018 connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); 1018 connect( action, SIGNAL( activated() ), SLOT( importBday() ) );
1019 //#ifndef DESKTOP_VERSION 1019 //#ifndef DESKTOP_VERSION
1020 importMenu_X->insertSeparator(); 1020 importMenu_X->insertSeparator();
1021 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, 1021 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
1022 this ); 1022 this );
1023 action->addTo( importMenu_X ); 1023 action->addTo( importMenu_X );
1024 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); 1024 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) );
1025 //#else 1025 //#else
1026#ifdef _OL_IMPORT_ 1026#ifdef _OL_IMPORT_
1027 importMenu_X->insertSeparator(); 1027 importMenu_X->insertSeparator();
1028 action = new QAction( "import_ol", i18n("Import from OL"), 0, 1028 action = new QAction( "import_ol", i18n("Import from OL"), 0,
1029 this ); 1029 this );
1030 action->addTo( importMenu_X ); 1030 action->addTo( importMenu_X );
1031 connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); 1031 connect( action, SIGNAL( activated() ), SLOT( importOL() ) );
1032#endif 1032#endif
1033 //#endif 1033 //#endif
1034 1034
1035 //importMenu->insertSeparator(); 1035 //importMenu->insertSeparator();
1036#if 0
1036 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, 1037 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0,
1037 this ); 1038 this );
1038 action->addTo( importMenu ); 1039 action->addTo( importMenu );
1039 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); 1040 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) );
1040 1041#endif
1041 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, 1042 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0,
1042 this ); 1043 this );
1043 action->addTo( importMenu ); 1044 action->addTo( importMenu );
1044 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); 1045 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) );
1045 importMenu->insertSeparator(); 1046 importMenu->insertSeparator();
1046 importMenu->insertItem( i18n("Import"), importMenu_X ); 1047 importMenu->insertItem( i18n("Import"), importMenu_X );
1047 //importMenu->insertSeparator(); 1048 //importMenu->insertSeparator();
1048 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, 1049 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0,
1049 this ); 1050 this );
1050 action->addTo( exportMenu_X ); 1051 action->addTo( exportMenu_X );
1051 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); 1052 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) );
1052 1053
1053 1054
1054 //LR 1055 //LR
1055 QPopupMenu *ex2phone = new QPopupMenu( this ); 1056 QPopupMenu *ex2phone = new QPopupMenu( this );
1056 ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 1057 ex2phone->insertItem(i18n("Complete calendar..."), 1 );
1057 ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 1058 ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
1058 connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); 1059 connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) );
1059 exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); 1060 exportMenu_X->insertItem( i18n("Export to phone"), ex2phone );
1060 1061
1061 importMenu->insertItem( i18n("Export"), exportMenu_X ); 1062 importMenu->insertItem( i18n("Export"), exportMenu_X );
1062#ifndef DESKTOP_VERSION 1063#ifndef DESKTOP_VERSION
1063 //importMenu->insertSeparator(); 1064 //importMenu->insertSeparator();
1064 brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, 1065 brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0,
1065 this ); 1066 this );
1066 brAction->addTo( beamMenu_X ); 1067 brAction->addTo( beamMenu_X );
1067 brAction->setToggleAction (true ) ; 1068 brAction->setToggleAction (true ) ;
1068 connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); 1069 connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) );
1069 1070
1070 action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, 1071 action = new QAction( "beam all", i18n("Beam complete calendar..."), 0,
1071 this ); 1072 this );
1072 action->addTo( beamMenu_X ); 1073 action->addTo( beamMenu_X );
1073 connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); 1074 connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) );
1074 1075
1075 action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, 1076 action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0,
1076 this ); 1077 this );
1077 action->addTo( beamMenu_X ); 1078 action->addTo( beamMenu_X );
1078 connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); 1079 connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) );
1079 importMenu->insertItem( i18n("Beam"), beamMenu_X ); 1080 importMenu->insertItem( i18n("Beam"), beamMenu_X );
1080#else 1081#else
1081 //importMenu->insertSeparator(); 1082 //importMenu->insertSeparator();
1082 icon = loadPixmap( pathString + "print" ); 1083 icon = loadPixmap( pathString + "print" );
1083 action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); 1084 action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this );
1084 action->addTo( beamMenu_X ); 1085 action->addTo( beamMenu_X );
1085 connect( action, SIGNAL( activated() ), 1086 connect( action, SIGNAL( activated() ),
1086 this, SLOT( printCal() ) ); 1087 this, SLOT( printCal() ) );
1087 1088
1088 icon = loadPixmap( pathString + "print" ); 1089 icon = loadPixmap( pathString + "print" );
1089 action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); 1090 action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this );
1090 action->addTo( beamMenu_X ); 1091 action->addTo( beamMenu_X );
1091 connect( action, SIGNAL( activated() ), 1092 connect( action, SIGNAL( activated() ),
1092 this, SLOT( printSel() ) ); 1093 this, SLOT( printSel() ) );
1093 action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); 1094 action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this );
1094 action->addTo( beamMenu_X ); 1095 action->addTo( beamMenu_X );
1095 connect( action, SIGNAL( activated() ), 1096 connect( action, SIGNAL( activated() ),
1096 mView->viewManager(), SLOT( slotprintWNV() ) ); 1097 mView->viewManager(), SLOT( slotprintWNV() ) );
1097 1098
1098 1099
1099 icon = loadPixmap( pathString + "print" ); 1100 icon = loadPixmap( pathString + "print" );
1100 action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); 1101 action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this );
1101 action->addTo( beamMenu_X ); 1102 action->addTo( beamMenu_X );
1102 connect( action, SIGNAL( activated() ), 1103 connect( action, SIGNAL( activated() ),
1103 this, SLOT( printListView() ) ); 1104 this, SLOT( printListView() ) );
1104 1105
1105 action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); 1106 action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this );
1106 action->addTo( beamMenu_X ); 1107 action->addTo( beamMenu_X );
1107 connect( action, SIGNAL( activated() ), 1108 connect( action, SIGNAL( activated() ),
1108 mView, SLOT( slotprintSelInc() ) ); 1109 mView, SLOT( slotprintSelInc() ) );
1109 1110
1110 importMenu->insertItem( i18n("Print"), beamMenu_X ); 1111 importMenu->insertItem( i18n("Print"), beamMenu_X );
1111#endif 1112#endif
1112 importMenu->insertSeparator(); 1113 importMenu->insertSeparator();
1113 action = new QAction( "manage cat", i18n("Manage new categories..."), 0, 1114 action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
1114 this ); 1115 this );
1115 action->addTo( importMenu ); 1116 action->addTo( importMenu );
1116 connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); 1117 connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) );
1117 importMenu->insertSeparator(); 1118 importMenu->insertSeparator();
1118 action = new QAction( "beam all", i18n("Save"), 0, 1119 action = new QAction( "beam all", i18n("Save"), 0,
1119 this ); 1120 this );
1120 action->addTo( importMenu ); 1121 action->addTo( importMenu );
1121 connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); 1122 connect( action, SIGNAL( activated() ), this, SLOT( save() ) );
1122 action = new QAction( "beam all", i18n("Exit (+save)"), 0, 1123 action = new QAction( "beam all", i18n("Exit (+save)"), 0,
1123 this ); 1124 this );
1124 action->addTo( importMenu ); 1125 action->addTo( importMenu );
1125 connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); 1126 connect( action, SIGNAL( activated() ), this, SLOT( close() ) );
1126 1127
1127 //menuBar->insertItem( "Configure",configureMenu ); 1128 //menuBar->insertItem( "Configure",configureMenu );
1128 //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); 1129 //configureMenu->insertItem( "Toolbar",configureToolBarMenu );
1129 icon = loadPixmap( "korganizer/korganizer" ); 1130 icon = loadPixmap( "korganizer/korganizer" );
1130 1131
1131 action = new QAction( "Whats New", i18n("What's new?"), 0,this ); 1132 action = new QAction( "Whats New", i18n("What's new?"), 0,this );
1132 action->addTo( helpMenu ); 1133 action->addTo( helpMenu );
1133 connect( action, SIGNAL( activated() ), 1134 connect( action, SIGNAL( activated() ),
1134 SLOT( whatsNew() ) ); 1135 SLOT( whatsNew() ) );
1135 action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); 1136 action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this );
1136 action->addTo( helpMenu ); 1137 action->addTo( helpMenu );
1137 connect( action, SIGNAL( activated() ), 1138 connect( action, SIGNAL( activated() ),
1138 SLOT( features() ) ); 1139 SLOT( features() ) );
1139 action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); 1140 action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this );
1140 action->addTo( helpMenu ); 1141 action->addTo( helpMenu );
1141 connect( action, SIGNAL( activated() ), 1142 connect( action, SIGNAL( activated() ),
1142 SLOT( keyBindings() ) ); 1143 SLOT( keyBindings() ) );
1143 action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); 1144 action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this );
1144 action->addTo( helpMenu ); 1145 action->addTo( helpMenu );
1145 connect( action, SIGNAL( activated() ), 1146 connect( action, SIGNAL( activated() ),
1146 SLOT( storagehowto() ) ); 1147 SLOT( storagehowto() ) );
1147 action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); 1148 action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this );
1148 action->addTo( helpMenu ); 1149 action->addTo( helpMenu );
1149 connect( action, SIGNAL( activated() ), 1150 connect( action, SIGNAL( activated() ),
1150 SLOT( timetrackinghowto() ) ); 1151 SLOT( timetrackinghowto() ) );
1151 action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); 1152 action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this );
1152 action->addTo( helpMenu ); 1153 action->addTo( helpMenu );
1153 connect( action, SIGNAL( activated() ), 1154 connect( action, SIGNAL( activated() ),
1154 SLOT( synchowto() ) ); 1155 SLOT( synchowto() ) );
1155 action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); 1156 action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this );
1156 action->addTo( helpMenu ); 1157 action->addTo( helpMenu );
1157 connect( action, SIGNAL( activated() ), 1158 connect( action, SIGNAL( activated() ),
1158 SLOT( kdesynchowto() ) ); 1159 SLOT( kdesynchowto() ) );
1159 action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); 1160 action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this );
1160 action->addTo( helpMenu ); 1161 action->addTo( helpMenu );
1161 connect( action, SIGNAL( activated() ), 1162 connect( action, SIGNAL( activated() ),
1162 SLOT( multisynchowto() ) ); 1163 SLOT( multisynchowto() ) );
1163 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); 1164 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this );
1164 action->addTo( helpMenu ); 1165 action->addTo( helpMenu );
1165 connect( action, SIGNAL( activated() ), 1166 connect( action, SIGNAL( activated() ),
1166 SLOT( aboutAutoSaving() ) ); 1167 SLOT( aboutAutoSaving() ) );
1167 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); 1168 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this );
1168 action->addTo( helpMenu ); 1169 action->addTo( helpMenu );
1169 connect( action, SIGNAL( activated() ), 1170 connect( action, SIGNAL( activated() ),
1170 SLOT( aboutKnownBugs() ) ); 1171 SLOT( aboutKnownBugs() ) );
1171 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); 1172 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this );
1172 action->addTo( helpMenu ); 1173 action->addTo( helpMenu );
1173 connect( action, SIGNAL( activated() ), 1174 connect( action, SIGNAL( activated() ),
1174 SLOT( usertrans() ) ); 1175 SLOT( usertrans() ) );
1175 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); 1176 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this );
1176 action->addTo( helpMenu ); 1177 action->addTo( helpMenu );
1177 connect( action, SIGNAL( activated() ), 1178 connect( action, SIGNAL( activated() ),
1178 SLOT( faq() ) ); 1179 SLOT( faq() ) );
1179 action = new QAction( "licence", i18n("Licence..."), 0, this ); 1180 action = new QAction( "licence", i18n("Licence..."), 0, this );
1180 action->addTo( helpMenu ); 1181 action->addTo( helpMenu );
1181 connect( action, SIGNAL( activated() ), 1182 connect( action, SIGNAL( activated() ),
1182 SLOT( licence() ) ); 1183 SLOT( licence() ) );
1183 action = new QAction( "about", i18n("About..."), 0, this ); 1184 action = new QAction( "about", i18n("About..."), 0, this );
1184 action->addTo( helpMenu ); 1185 action->addTo( helpMenu );
1185 connect( action, SIGNAL( activated() ), 1186 connect( action, SIGNAL( activated() ),
1186 SLOT( about() ) ); 1187 SLOT( about() ) );
1187 //menuBar->insertSeparator(); 1188 //menuBar->insertSeparator();
1188 1189
1189 // ****************************************************** 1190 // ******************************************************
1190 // menubar icons 1191 // menubar icons
1191 1192
1192 1193
1193 1194
1194 //menuBar->insertItem( iconToolBar ); 1195 //menuBar->insertItem( iconToolBar );
1195 //xdays_action 1196 //xdays_action
1196 if (p-> mShowIconNewEvent) 1197 if (p-> mShowIconNewEvent)
1197 ne_action->addTo( iconToolBar ); 1198 ne_action->addTo( iconToolBar );
1198 if (p->mShowIconNewTodo ) 1199 if (p->mShowIconNewTodo )
1199 nt_action->addTo( iconToolBar ); 1200 nt_action->addTo( iconToolBar );
1200 if (p-> mShowIconSearch) 1201 if (p-> mShowIconSearch)
1201 search_action->addTo( iconToolBar ); 1202 search_action->addTo( iconToolBar );
1202 if (p-> mShowIconWhatsThis) 1203 if (p-> mShowIconWhatsThis)
1203 QWhatsThis::whatsThisButton ( iconToolBar ); 1204 QWhatsThis::whatsThisButton ( iconToolBar );
1204 if (p-> mShowIconNext) 1205 if (p-> mShowIconNext)
1205 whatsnext_action->addTo( viewToolBar ); 1206 whatsnext_action->addTo( viewToolBar );
1206 if (p-> mShowIconNextDays) 1207 if (p-> mShowIconNextDays)
1207 xdays_action->addTo( viewToolBar ); 1208 xdays_action->addTo( viewToolBar );
1208 if (p-> mShowIconJournal) 1209 if (p-> mShowIconJournal)
1209 viewjournal_action->addTo( viewToolBar ); 1210 viewjournal_action->addTo( viewToolBar );
1210 if (p-> mShowIconDay1) 1211 if (p-> mShowIconDay1)
1211 day1_action->addTo( viewToolBar ); 1212 day1_action->addTo( viewToolBar );
1212 if (p-> mShowIconDay5) 1213 if (p-> mShowIconDay5)
1213 day5_action->addTo( viewToolBar ); 1214 day5_action->addTo( viewToolBar );
1214 if (p-> mShowIconDay7) 1215 if (p-> mShowIconDay7)
1215 day7_action->addTo( viewToolBar ); 1216 day7_action->addTo( viewToolBar );
1216 if (p-> mShowIconDay6) 1217 if (p-> mShowIconDay6)
1217 day6_action->addTo( viewToolBar ); 1218 day6_action->addTo( viewToolBar );
1218 if (p-> mShowIconMonth) 1219 if (p-> mShowIconMonth)
1219 month_action->addTo( viewToolBar ); 1220 month_action->addTo( viewToolBar );
1220 if (p-> mShowIconList) 1221 if (p-> mShowIconList)
1221 showlist_action->addTo( viewToolBar ); 1222 showlist_action->addTo( viewToolBar );
1222 if (p-> mShowIconTodoview) 1223 if (p-> mShowIconTodoview)
1223 todoview_action->addTo( viewToolBar ); 1224 todoview_action->addTo( viewToolBar );
1224 1225
1225 icon = loadPixmap( pathString + "2leftarrowB" ); 1226 icon = loadPixmap( pathString + "2leftarrowB" );
1226 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); 1227 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200);
1227 if (p-> mShowIconBackFast) { 1228 if (p-> mShowIconBackFast) {
1228 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); 1229 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this );
1229 connect( action, SIGNAL( activated() ), 1230 connect( action, SIGNAL( activated() ),
1230 mView, SLOT( goPreviousMonth() ) ); 1231 mView, SLOT( goPreviousMonth() ) );
1231 action->addTo( navigatorToolBar ); 1232 action->addTo( navigatorToolBar );
1232 } 1233 }
1233 icon = loadPixmap( pathString + "1leftarrowB" ); 1234 icon = loadPixmap( pathString + "1leftarrowB" );
1234 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); 1235 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210);
1235 if (p-> mShowIconBack) { 1236 if (p-> mShowIconBack) {
1236 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); 1237 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this );
1237 connect( action, SIGNAL( activated() ), 1238 connect( action, SIGNAL( activated() ),
1238 mView, SLOT( goPrevious() ) ); 1239 mView, SLOT( goPrevious() ) );
1239 action->addTo( navigatorToolBar ); 1240 action->addTo( navigatorToolBar );
1240 } 1241 }
1241 icon = loadPixmap( pathString + "today" ); 1242 icon = loadPixmap( pathString + "today" );
1242 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); 1243 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130);
1243 if (p-> mShowIconToday) 1244 if (p-> mShowIconToday)
1244 today_action->addTo( navigatorToolBar ); 1245 today_action->addTo( navigatorToolBar );
1245 icon = loadPixmap( pathString + "1rightarrowB" ); 1246 icon = loadPixmap( pathString + "1rightarrowB" );
1246 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); 1247 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220);
1247 if (p-> mShowIconForward) { 1248 if (p-> mShowIconForward) {
1248 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); 1249 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this );
1249 connect( action, SIGNAL( activated() ), 1250 connect( action, SIGNAL( activated() ),
1250 mView, SLOT( goNext() ) ); 1251 mView, SLOT( goNext() ) );
1251 action->addTo( navigatorToolBar ); 1252 action->addTo( navigatorToolBar );
1252 } 1253 }
1253 icon = loadPixmap( pathString + "2rightarrowB" ); 1254 icon = loadPixmap( pathString + "2rightarrowB" );
1254 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); 1255 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230);
1255 if (p-> mShowIconForwardFast) { 1256 if (p-> mShowIconForwardFast) {
1256 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); 1257 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this );
1257 connect( action, SIGNAL( activated() ), 1258 connect( action, SIGNAL( activated() ),
1258 mView, SLOT( goNextMonth() ) ); 1259 mView, SLOT( goNextMonth() ) );
1259 action->addTo( navigatorToolBar ); 1260 action->addTo( navigatorToolBar );
1260 } 1261 }
1261 1262
1262 1263
1263 configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); 1264 configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6);
1264 1265
1265 1266
1266 if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); 1267 if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true);
1267 if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); 1268 if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true);
1268 if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); 1269 if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true);
1269 if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); 1270 if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true);
1270 1271
1271 if (p-> mShowIconNewEvent) 1272 if (p-> mShowIconNewEvent)
1272 configureToolBarMenu->setItemChecked( 10, true ); 1273 configureToolBarMenu->setItemChecked( 10, true );
1273 if (p->mShowIconNewTodo ) 1274 if (p->mShowIconNewTodo )
1274 configureToolBarMenu->setItemChecked( 20, true ); 1275 configureToolBarMenu->setItemChecked( 20, true );
1275 if (p-> mShowIconSearch) 1276 if (p-> mShowIconSearch)
1276 configureToolBarMenu->setItemChecked( 120, true ); 1277 configureToolBarMenu->setItemChecked( 120, true );
1277 if (p-> mShowIconList) 1278 if (p-> mShowIconList)
1278 configureToolBarMenu->setItemChecked( 30, true ); 1279 configureToolBarMenu->setItemChecked( 30, true );
1279 if (p-> mShowIconDay1) 1280 if (p-> mShowIconDay1)
1280 configureToolBarMenu->setItemChecked( 40, true ); 1281 configureToolBarMenu->setItemChecked( 40, true );
1281 if (p-> mShowIconDay5) 1282 if (p-> mShowIconDay5)
1282 configureToolBarMenu->setItemChecked( 50, true ); 1283 configureToolBarMenu->setItemChecked( 50, true );
1283 if (p-> mShowIconDay6) 1284 if (p-> mShowIconDay6)
1284 configureToolBarMenu->setItemChecked( 75, true ); 1285 configureToolBarMenu->setItemChecked( 75, true );
1285 if (p-> mShowIconDay7) 1286 if (p-> mShowIconDay7)
1286 configureToolBarMenu->setItemChecked( 60, true ); 1287 configureToolBarMenu->setItemChecked( 60, true );
1287 if (p-> mShowIconMonth) 1288 if (p-> mShowIconMonth)
1288 configureToolBarMenu->setItemChecked( 70, true ); 1289 configureToolBarMenu->setItemChecked( 70, true );
1289 if (p-> mShowIconTodoview) 1290 if (p-> mShowIconTodoview)
1290 configureToolBarMenu->setItemChecked( 80, true ); 1291 configureToolBarMenu->setItemChecked( 80, true );
1291 if (p-> mShowIconBackFast) 1292 if (p-> mShowIconBackFast)
1292 configureToolBarMenu->setItemChecked( 200, true ); 1293 configureToolBarMenu->setItemChecked( 200, true );
1293 if (p-> mShowIconBack) 1294 if (p-> mShowIconBack)
1294 configureToolBarMenu->setItemChecked( 210, true ); 1295 configureToolBarMenu->setItemChecked( 210, true );
1295 if (p-> mShowIconToday) 1296 if (p-> mShowIconToday)
1296 configureToolBarMenu->setItemChecked( 130, true ); 1297 configureToolBarMenu->setItemChecked( 130, true );
1297 if (p-> mShowIconForward) 1298 if (p-> mShowIconForward)
1298 configureToolBarMenu->setItemChecked( 220, true ); 1299 configureToolBarMenu->setItemChecked( 220, true );
1299 if (p-> mShowIconForwardFast) 1300 if (p-> mShowIconForwardFast)
1300 configureToolBarMenu->setItemChecked( 230, true ); 1301 configureToolBarMenu->setItemChecked( 230, true );
1301 if (p-> mShowIconNextDays) 1302 if (p-> mShowIconNextDays)
1302 configureToolBarMenu->setItemChecked( 100, true ); 1303 configureToolBarMenu->setItemChecked( 100, true );
1303 if (p-> mShowIconNext) 1304 if (p-> mShowIconNext)
1304 configureToolBarMenu->setItemChecked( 110, true ); 1305 configureToolBarMenu->setItemChecked( 110, true );
1305 if (p-> mShowIconJournal) 1306 if (p-> mShowIconJournal)
1306 configureToolBarMenu->setItemChecked( 90, true ); 1307 configureToolBarMenu->setItemChecked( 90, true );
1307 if (p-> mShowIconWhatsThis) 1308 if (p-> mShowIconWhatsThis)
1308 configureToolBarMenu->setItemChecked( 300, true ); 1309 configureToolBarMenu->setItemChecked( 300, true );
1309 if (p-> mShowIconWeekNum) 1310 if (p-> mShowIconWeekNum)
1310 configureToolBarMenu->setItemChecked( 400, true ); 1311 configureToolBarMenu->setItemChecked( 400, true );
1311 if (!p-> mShowIconStretch) { 1312 if (!p-> mShowIconStretch) {
1312 QLabel* dummy = new QLabel( iconToolBar ); 1313 QLabel* dummy = new QLabel( iconToolBar );
1313 dummy->setBackgroundColor( iconToolBar->backgroundColor() ); 1314 dummy->setBackgroundColor( iconToolBar->backgroundColor() );
1314 dummy->setMinimumWidth( 0 ); 1315 dummy->setMinimumWidth( 0 );
1315 iconToolBar->setStretchableWidget ( dummy ) ; 1316 iconToolBar->setStretchableWidget ( dummy ) ;
1316 } 1317 }
1317 else { 1318 else {
1318 iconToolBar->setHorizontalStretchable (true ); 1319 iconToolBar->setHorizontalStretchable (true );
1319 viewToolBar->setHorizontalStretchable (true ); 1320 viewToolBar->setHorizontalStretchable (true );
1320 navigatorToolBar->setHorizontalStretchable (true ); 1321 navigatorToolBar->setHorizontalStretchable (true );
1321 iconToolBar->setVerticalStretchable (true ); 1322 iconToolBar->setVerticalStretchable (true );
1322 viewToolBar->setVerticalStretchable (true ); 1323 viewToolBar->setVerticalStretchable (true );
1323 navigatorToolBar->setVerticalStretchable (true ); 1324 navigatorToolBar->setVerticalStretchable (true );
1324 configureToolBarMenu->setItemChecked( 5, true ); 1325 configureToolBarMenu->setItemChecked( 5, true );
1325 } 1326 }
1326 if (p-> mShowIconFilter) 1327 if (p-> mShowIconFilter)
1327 configureToolBarMenu->setItemChecked( 7, true ); 1328 configureToolBarMenu->setItemChecked( 7, true );
1328 if (p-> mShowIconOnetoolbar) 1329 if (p-> mShowIconOnetoolbar)
1329 configureToolBarMenu->setItemChecked( 6, true ); 1330 configureToolBarMenu->setItemChecked( 6, true );
1330 1331
1331 1332
1332 if ( filterMenubar ) { 1333 if ( filterMenubar ) {
1333 filterMenubar->reparent(filterToolBar,0,QPoint(0,0) ); 1334 filterMenubar->reparent(filterToolBar,0,QPoint(0,0) );
1334 connect( mView, SIGNAL( filtersUpdated() ), SLOT( updateFilterToolbar() ) ); 1335 connect( mView, SIGNAL( filtersUpdated() ), SLOT( updateFilterToolbar() ) );
1335 } 1336 }
1336 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); 1337 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) );
1337 configureAgenda( p->mHourSize ); 1338 configureAgenda( p->mHourSize );
1338 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); 1339 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) );
1339} 1340}
1340 1341
1341void MainWindow::exportToPhone( int mode ) 1342void MainWindow::exportToPhone( int mode )
1342{ 1343{
1343 1344
1344 //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 1345 //ex2phone->insertItem(i18n("Complete calendar..."), 1 );
1345 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 1346 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
1346 KOex2phonePrefs ex2phone; 1347 KOex2phonePrefs ex2phone;
1347 1348
1348 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); 1349 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection );
1349 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); 1350 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice );
1350 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1351 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel );
1351 if ( mode == 1 ) 1352 if ( mode == 1 )
1352 ex2phone.setCaption(i18n("Export complete calendar")); 1353 ex2phone.setCaption(i18n("Export complete calendar"));
1353 if ( mode == 2 ) 1354 if ( mode == 2 )
1354 ex2phone.setCaption(i18n("Export filtered calendar")); 1355 ex2phone.setCaption(i18n("Export filtered calendar"));
1355 1356
1356 if ( !ex2phone.exec() ) { 1357 if ( !ex2phone.exec() ) {
1357 return; 1358 return;
1358 } 1359 }
1359 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); 1360 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text();
1360 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); 1361 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text();
1361 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); 1362 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text();
1362 1363
1363 int inFuture = 0; 1364 int inFuture = 0;
1364 if ( ex2phone.mWriteBackFuture->isChecked() ) 1365 if ( ex2phone.mWriteBackFuture->isChecked() )
1365 inFuture = ex2phone.mWriteBackFutureWeeks->value(); 1366 inFuture = ex2phone.mWriteBackFutureWeeks->value();
1366 QPtrList<Incidence> delSel; 1367 QPtrList<Incidence> delSel;
1367 if ( mode == 1 ) 1368 if ( mode == 1 )
1368 delSel = mCalendar->rawIncidences(); 1369 delSel = mCalendar->rawIncidences();
1369 if ( mode == 2 ) 1370 if ( mode == 2 )
1370 delSel = mCalendar->incidences(); 1371 delSel = mCalendar->incidences();
1371 CalendarLocal* cal = new CalendarLocal(); 1372 CalendarLocal* cal = new CalendarLocal();
1372 cal->setLocalTime(); 1373 cal->setLocalTime();
1373 Incidence *incidence = delSel.first(); 1374 Incidence *incidence = delSel.first();
1374 QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); 1375 QDateTime cur = QDateTime::currentDateTime().addDays( -7 );
1375 QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); 1376 QDateTime end = cur.addDays( ( inFuture +1 ) *7 );
1376 while ( incidence ) { 1377 while ( incidence ) {
1377 if ( incidence->typeID() != journalID ) { 1378 if ( incidence->typeID() != journalID ) {
1378 bool add = true; 1379 bool add = true;
1379 if ( inFuture ) { 1380 if ( inFuture ) {
1380 QDateTime dt; 1381 QDateTime dt;
1381 if ( incidence->typeID() == todoID ) { 1382 if ( incidence->typeID() == todoID ) {
1382 Todo * t = (Todo*)incidence; 1383 Todo * t = (Todo*)incidence;
1383 if ( t->hasDueDate() ) 1384 if ( t->hasDueDate() )
1384 dt = t->dtDue(); 1385 dt = t->dtDue();
1385 else 1386 else
1386 dt = cur.addSecs( 62 ); 1387 dt = cur.addSecs( 62 );
1387 } 1388 }
1388 else { 1389 else {
1389 bool ok; 1390 bool ok;
1390 dt = incidence->getNextOccurence( cur, &ok ); 1391 dt = incidence->getNextOccurence( cur, &ok );
1391 if ( !ok ) 1392 if ( !ok )
1392 dt = cur.addSecs( -62 ); 1393 dt = cur.addSecs( -62 );
1393 } 1394 }
1394 if ( dt < cur || dt > end ) { 1395 if ( dt < cur || dt > end ) {
1395 add = false; 1396 add = false;
1396 } 1397 }
1397 } 1398 }
1398 if ( add ) { 1399 if ( add ) {
1399 Incidence *in = incidence->clone(); 1400 Incidence *in = incidence->clone();
1400 cal->addIncidence( in ); 1401 cal->addIncidence( in );
1401 } 1402 }
1402 } 1403 }
1403 incidence = delSel.next(); 1404 incidence = delSel.next();
1404 } 1405 }
1405 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, 1406 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice,
1406 KPimGlobalPrefs::instance()->mEx2PhoneConnection, 1407 KPimGlobalPrefs::instance()->mEx2PhoneConnection,
1407 KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1408 KPimGlobalPrefs::instance()->mEx2PhoneModel );
1408 1409
1409 setCaption( i18n("Writing to phone...")); 1410 setCaption( i18n("Writing to phone..."));
1410 if ( PhoneFormat::writeToPhone( cal ) ) 1411 if ( PhoneFormat::writeToPhone( cal ) )
1411 setCaption( i18n("Export to phone successful!")); 1412 setCaption( i18n("Export to phone successful!"));
1412 else 1413 else
1413 setCaption( i18n("Error exporting to phone!")); 1414 setCaption( i18n("Error exporting to phone!"));
1414 delete cal; 1415 delete cal;
1415} 1416}
1416 1417
1417 1418
1418void MainWindow::setDefaultPreferences() 1419void MainWindow::setDefaultPreferences()
1419{ 1420{
1420 KOPrefs *p = KOPrefs::instance(); 1421 KOPrefs *p = KOPrefs::instance();
1421 1422
1422 p->mCompactDialogs = true; 1423 p->mCompactDialogs = true;
1423 p->mConfirm = true; 1424 p->mConfirm = true;
1424 // p->mEnableQuickTodo = false; 1425 // p->mEnableQuickTodo = false;
1425 1426
1426} 1427}
1427 1428
1428QString MainWindow::resourcePath() 1429QString MainWindow::resourcePath()
1429{ 1430{
1430 return KGlobal::iconLoader()->iconPath(); 1431 return KGlobal::iconLoader()->iconPath();
1431} 1432}
1432 1433
1433void MainWindow::displayText( QString text ,QString cap ) 1434void MainWindow::displayText( QString text ,QString cap )
1434{ 1435{
1435 QDialog dia( this, "name", true ); ; 1436 QDialog dia( this, "name", true ); ;
1436 dia.setCaption( cap ); 1437 dia.setCaption( cap );
1437 QVBoxLayout* lay = new QVBoxLayout( &dia ); 1438 QVBoxLayout* lay = new QVBoxLayout( &dia );
1438 lay->setSpacing( 3 ); 1439 lay->setSpacing( 3 );
1439 lay->setMargin( 3 ); 1440 lay->setMargin( 3 );
1440 QTextBrowser tb ( &dia ); 1441 QTextBrowser tb ( &dia );
1441 lay->addWidget( &tb ); 1442 lay->addWidget( &tb );
1442 tb.setText( text ); 1443 tb.setText( text );
1443#ifdef DESKTOP_VERSION 1444#ifdef DESKTOP_VERSION
1444 dia.resize( 640, 480); 1445 dia.resize( 640, 480);
1445#else 1446#else
1446 dia.showMaximized(); 1447 dia.showMaximized();
1447#endif 1448#endif
1448 dia.exec(); 1449 dia.exec();
1449} 1450}
1450 1451
1451void MainWindow::features() 1452void MainWindow::features()
1452{ 1453{
1453 1454
1454 KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); 1455 KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" );
1455} 1456}
1456 1457
1457void MainWindow::usertrans() 1458void MainWindow::usertrans()
1458{ 1459{
1459 1460
1460 KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); 1461 KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" );
1461} 1462}
1462 1463
1463void MainWindow::storagehowto() 1464void MainWindow::storagehowto()
1464{ 1465{
1465 KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); 1466 KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" );
1466} 1467}
1467void MainWindow::timetrackinghowto() 1468void MainWindow::timetrackinghowto()
1468{ 1469{
1469 KApplication::showFile( "KO/Pi Timetracking HowTo", "kdepim/timetrackerhowto.txt" ); 1470 KApplication::showFile( "KO/Pi Timetracking HowTo", "kdepim/timetrackerhowto.txt" );
1470} 1471}
1471void MainWindow::kdesynchowto() 1472void MainWindow::kdesynchowto()
1472{ 1473{
1473 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); 1474 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" );
1474} 1475}
1475void MainWindow::multisynchowto() 1476void MainWindow::multisynchowto()
1476{ 1477{
1477 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); 1478 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" );
1478} 1479}
1479void MainWindow::synchowto() 1480void MainWindow::synchowto()
1480{ 1481{
1481 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); 1482 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" );
1482} 1483}
1483void MainWindow::faq() 1484void MainWindow::faq()
1484{ 1485{
1485 KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); 1486 KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" );
1486 1487
1487} 1488}
1488void MainWindow::whatsNew() 1489void MainWindow::whatsNew()
1489{ 1490{
1490 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); 1491 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" );
1491 1492
1492} 1493}
1493void MainWindow::licence() 1494void MainWindow::licence()
1494{ 1495{
1495 KApplication::showLicence(); 1496 KApplication::showLicence();
1496 1497
1497} 1498}
1498void MainWindow::about() 1499void MainWindow::about()
1499{ 1500{
1500 QString version; 1501 QString version;
1501#include <../version> 1502#include <../version>
1502 QMessageBox::about( this, i18n("About KOrganizer/Pi"), 1503 QMessageBox::about( this, i18n("About KOrganizer/Pi"),
1503 i18n("KOrganizer/Platform-independent\n") + 1504 i18n("KOrganizer/Platform-independent\n") +
1504 "(KO/Pi) " + version + " - " + 1505 "(KO/Pi) " + version + " - " +
1505 1506
1506#ifdef DESKTOP_VERSION 1507#ifdef DESKTOP_VERSION
1507 i18n("Desktop Edition\n") + 1508 i18n("Desktop Edition\n") +
1508#else 1509#else
1509 i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + 1510 i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") +
1510#endif 1511#endif
1511 i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); 1512 i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") );
1512} 1513}
1513void MainWindow::keyBindings() 1514void MainWindow::keyBindings()
1514{ 1515{
1515 QString cap = i18n("KO/Pi Keys + Colors"); 1516 QString cap = i18n("KO/Pi Keys + Colors");
1516 QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + 1517 QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") +
1517 i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ 1518 i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+
1518 i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + 1519 i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") +
1519 i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + 1520 i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") +
1520 i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + 1521 i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") +
1521 i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ 1522 i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+
1522 i18n("<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n")+ 1523 i18n("<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n")+
1523 i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ 1524 i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+
1524 i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ 1525 i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+
1525 i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ 1526 i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+
1526 i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ 1527 i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+
1527 i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ 1528 i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+
1528 i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ 1529 i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+
1529 i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ 1530 i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+
1530 i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ 1531 i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+
1531 i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ 1532 i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+
1532 i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ 1533 i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+
1533 i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ 1534 i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+
1534 i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ 1535 i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+
1535 i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ 1536 i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+
1536 i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ 1537 i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+
1537 i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ 1538 i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+
1538 i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ 1539 i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+
1539 i18n("<p><h3>In agenda view:</h3></p>\n") + 1540 i18n("<p><h3>In agenda view:</h3></p>\n") +
1540 i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ 1541 i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+
1541 i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ 1542 i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+
1542 i18n("<p><h3>In todo view:</h3></p>\n") + 1543 i18n("<p><h3>In todo view:</h3></p>\n") +
1543 i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ 1544 i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+
1544 i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ 1545 i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+
1545 i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ 1546 i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+
1546 i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ 1547 i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+
1547 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ 1548 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+
1548 i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ 1549 i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+
1549 i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ 1550 i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+
1550 i18n("<p><h3>In list view:</h3></p>\n") + 1551 i18n("<p><h3>In list view:</h3></p>\n") +
1551 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ 1552 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+
1552 i18n("<p><b>return</b>: Select item+one step down</p>\n")+ 1553 i18n("<p><b>return</b>: Select item+one step down</p>\n")+
1553 i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ 1554 i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+
1554 i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ 1555 i18n("<p><b>up/down</b>: Next/prev item</p>\n")+
1555 i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ 1556 i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+
1556 i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ 1557 i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+
1557 i18n("<p><h3>In event/todo viewer:</h3></p>\n") + 1558 i18n("<p><h3>In event/todo viewer:</h3></p>\n") +
1558 i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ 1559 i18n("<p><b>I,C</b>: Close dialog.</p>\n")+
1559 i18n("<p><b>A</b>: Show agenda view.</p>\n")+ 1560 i18n("<p><b>A</b>: Show agenda view.</p>\n")+
1560 i18n("<p><b>E</b>: Edit item</p>\n") + 1561 i18n("<p><b>E</b>: Edit item</p>\n") +
1561 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + 1562 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") +
1562 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + 1563 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") +
1563 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ 1564 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+
1564 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ 1565 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+
1565 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ 1566 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+
1566 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ 1567 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+
1567 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ 1568 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+
1568 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + 1569 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") +
1569 i18n("<p><b>White</b>: Item readonly</p>\n"); 1570 i18n("<p><b>White</b>: Item readonly</p>\n");
1570 displayText( text, cap); 1571 displayText( text, cap);
1571} 1572}
1572void MainWindow::aboutAutoSaving() 1573void MainWindow::aboutAutoSaving()
1573{ 1574{
1574 QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); 1575 QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n");
1575 1576
1576 KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); 1577 KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text);
1577 1578
1578} 1579}
1579void MainWindow::aboutKnownBugs() 1580void MainWindow::aboutKnownBugs()
1580{ 1581{
1581 QMessageBox* msg; 1582 QMessageBox* msg;
1582 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), 1583 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"),
1583 i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ 1584 i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+
1584 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ 1585 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+
1585 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + 1586 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") +
1586 i18n("\nor report them in the bugtracker on\n") + 1587 i18n("\nor report them in the bugtracker on\n") +
1587 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), 1588 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"),
1588 QMessageBox::NoIcon, 1589 QMessageBox::NoIcon,
1589 QMessageBox::Ok, 1590 QMessageBox::Ok,
1590 QMessageBox::NoButton, 1591 QMessageBox::NoButton,
1591 QMessageBox::NoButton); 1592 QMessageBox::NoButton);
1592 msg->exec(); 1593 msg->exec();
1593 delete msg; 1594 delete msg;
1594 1595
1595} 1596}
1596 1597
1597QString MainWindow::defaultFileName() 1598QString MainWindow::defaultFileName()
1598{ 1599{
1599 return locateLocal( "data", "korganizer/mycalendar.ics" ); 1600 return locateLocal( "data", "korganizer/mycalendar.ics" );
1600} 1601}
1601QString MainWindow::syncFileName() 1602QString MainWindow::syncFileName()
1602{ 1603{
1603#ifdef DESKTOP_VERSION 1604#ifdef DESKTOP_VERSION
1604 return locateLocal( "tmp", "synccalendar.ics" ); 1605 return locateLocal( "tmp", "synccalendar.ics" );
1605#else 1606#else
1606 return QString( "/tmp/synccalendar.ics" ); 1607 return QString( "/tmp/synccalendar.ics" );
1607#endif 1608#endif
1608} 1609}
1609#include "koglobals.h" 1610#include "koglobals.h"
1610#include <kcalendarsystem.h> 1611#include <kcalendarsystem.h>
1611void MainWindow::updateWeek(QDate seda) 1612void MainWindow::updateWeek(QDate seda)
1612{ 1613{
1613 int weekNum = KGlobal::locale()->weekNum ( seda ); 1614 int weekNum = KGlobal::locale()->weekNum ( seda );
1614 mWeekPixmap.fill( mWeekBgColor ); 1615 mWeekPixmap.fill( mWeekBgColor );
1615 QPainter p ( &mWeekPixmap ); 1616 QPainter p ( &mWeekPixmap );
1616 p.setFont( mWeekFont ); 1617 p.setFont( mWeekFont );
1617 p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); 1618 p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) );
1618 p.end(); 1619 p.end();
1619 QIconSet icon3 ( mWeekPixmap ); 1620 QIconSet icon3 ( mWeekPixmap );
1620 mWeekAction->setIconSet ( icon3 ); 1621 mWeekAction->setIconSet ( icon3 );
1621 1622
1622} 1623}
1623void MainWindow::updateWeekNum(const DateList &selectedDates) 1624void MainWindow::updateWeekNum(const DateList &selectedDates)
1624{ 1625{
1625 updateWeek( selectedDates.first() ); 1626 updateWeek( selectedDates.first() );
1626} 1627}
1627void MainWindow::processIncidenceSelection( Incidence *incidence ) 1628void MainWindow::processIncidenceSelection( Incidence *incidence )
1628{ 1629{
1629 1630
1630 if ( !incidence ) { 1631 if ( !incidence ) {
1631 enableIncidenceActions( false ); 1632 enableIncidenceActions( false );
1632 1633
1633 mNewSubTodoAction->setEnabled( false ); 1634 mNewSubTodoAction->setEnabled( false );
1634 setCaptionToDates(); 1635 setCaptionToDates();
1635 return; 1636 return;
1636 1637
1637 } 1638 }
1638 1639
1639 //KGlobal::locale()->formatDateTime(nextA, true); 1640 //KGlobal::locale()->formatDateTime(nextA, true);
1640 QString startString = ""; 1641 QString startString = "";
1641 if ( incidence->typeID() != todoID ) { 1642 if ( incidence->typeID() != todoID ) {
1642 if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { 1643 if ( incidence->dtStart().date() < incidence->dtEnd().date() ) {
1643 if ( incidence->doesFloat() ) { 1644 if ( incidence->doesFloat() ) {
1644 startString += ": "+incidence->dtStartDateStr( true ); 1645 startString += ": "+incidence->dtStartDateStr( true );
1645 startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); 1646 startString += " --- "+((Event*)incidence)->dtEndDateStr( true );
1646 1647
1647 } else { 1648 } else {
1648 startString = ": "+incidence->dtStartStr(true); 1649 startString = ": "+incidence->dtStartStr(true);
1649 startString += " --- "+((Event*)incidence)->dtEndStr(true); 1650 startString += " --- "+((Event*)incidence)->dtEndStr(true);
1650 1651
1651 } 1652 }
1652 1653
1653 } else { 1654 } else {
1654 if ( incidence->dtStart().time() != incidence->dtEnd().time() ) 1655 if ( incidence->dtStart().time() != incidence->dtEnd().time() )
1655 startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ 1656 startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+
1656 "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); 1657 "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time());
1657 1658
1658 if ( incidence->isBirthday() || incidence->isAnniversary() ) { 1659 if ( incidence->isBirthday() || incidence->isAnniversary() ) {
1659 bool ok; 1660 bool ok;
1660 QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); 1661 QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok );
1661 if ( ok ) { 1662 if ( ok ) {
1662 int years = noc.date().year() - incidence->dtStart().date().year(); 1663 int years = noc.date().year() - incidence->dtStart().date().year();
1663 startString += i18n(" (%1 y.)"). arg( years ); 1664 startString += i18n(" (%1 y.)"). arg( years );
1664 } 1665 }
1665 } 1666 }
1666 else 1667 else
1667 startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); 1668 startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true);
1668 } 1669 }
1669 1670
1670 } 1671 }
1671 else 1672 else
1672 startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); 1673 startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed");
1673 if ( !incidence->location().isEmpty() ) 1674 if ( !incidence->location().isEmpty() )
1674 startString += " (" +incidence->location()+")"; 1675 startString += " (" +incidence->location()+")";
1675 setCaption( incidence->summary()+startString); 1676 setCaption( incidence->summary()+startString);
1676 1677
1677 enableIncidenceActions( true ); 1678 enableIncidenceActions( true );
1678 1679
1679 if ( incidence->typeID() == eventID ) { 1680 if ( incidence->typeID() == eventID ) {
1680 mShowAction->setText( i18n("Show Event...") ); 1681 mShowAction->setText( i18n("Show Event...") );
1681 mEditAction->setText( i18n("Edit Event...") ); 1682 mEditAction->setText( i18n("Edit Event...") );
1682 mDeleteAction->setText( i18n("Delete Event...") ); 1683 mDeleteAction->setText( i18n("Delete Event...") );
1683 1684
1684 mNewSubTodoAction->setEnabled( false ); 1685 mNewSubTodoAction->setEnabled( false );
1685 } else if ( incidence->typeID() == todoID ) { 1686 } else if ( incidence->typeID() == todoID ) {
1686 mShowAction->setText( i18n("Show Todo...") ); 1687 mShowAction->setText( i18n("Show Todo...") );
1687 mEditAction->setText( i18n("Edit Todo...") ); 1688 mEditAction->setText( i18n("Edit Todo...") );
1688 mDeleteAction->setText( i18n("Delete Todo...") ); 1689 mDeleteAction->setText( i18n("Delete Todo...") );
1689 1690
1690 mNewSubTodoAction->setEnabled( true ); 1691 mNewSubTodoAction->setEnabled( true );
1691 } else { 1692 } else {
1692 mShowAction->setText( i18n("Show...") ); 1693 mShowAction->setText( i18n("Show...") );
1693 mShowAction->setText( i18n("Edit...") ); 1694 mShowAction->setText( i18n("Edit...") );
1694 mShowAction->setText( i18n("Delete...") ); 1695 mShowAction->setText( i18n("Delete...") );
1695 1696
1696 mNewSubTodoAction->setEnabled( false ); 1697 mNewSubTodoAction->setEnabled( false );
1697 } 1698 }
1698} 1699}
1699 1700
1700void MainWindow::enableIncidenceActions( bool enabled ) 1701void MainWindow::enableIncidenceActions( bool enabled )
1701{ 1702{
1702 mShowAction->setEnabled( enabled ); 1703 mShowAction->setEnabled( enabled );
1703 mEditAction->setEnabled( enabled ); 1704 mEditAction->setEnabled( enabled );
1704 mDeleteAction->setEnabled( enabled ); 1705 mDeleteAction->setEnabled( enabled );
1705 1706
1706 mCloneAction->setEnabled( enabled ); 1707 mCloneAction->setEnabled( enabled );
1707 mMoveAction->setEnabled( enabled ); 1708 mMoveAction->setEnabled( enabled );
1708 mBeamAction->setEnabled( enabled ); 1709 mBeamAction->setEnabled( enabled );
1709 mCancelAction->setEnabled( enabled ); 1710 mCancelAction->setEnabled( enabled );
1710} 1711}
1711 1712
1712void MainWindow::importOL() 1713void MainWindow::importOL()
1713{ 1714{
1714#ifdef _OL_IMPORT_ 1715#ifdef _OL_IMPORT_
1715 mView->clearAllViews(); 1716 mView->clearAllViews();
1716 KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); 1717 KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this );
1717 id->exec(); 1718 id->exec();
1718 delete id; 1719 delete id;
1719 mView->calendar()->checkAlarmForIncidence( 0, true ); 1720 mView->calendar()->checkAlarmForIncidence( 0, true );
1720 mView->updateView(); 1721 mView->updateView();
1721#endif 1722#endif
1722} 1723}
1723void MainWindow::importBday() 1724void MainWindow::importBday()
1724{ 1725{
1725 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 1726 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
1726 i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), 1727 i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"),
1727 i18n("Import!"), i18n("Cancel"), 0, 1728 i18n("Import!"), i18n("Cancel"), 0,
1728 0, 1 ); 1729 0, 1 );
1729 if ( result == 0 ) { 1730 if ( result == 0 ) {
1730 mView->importBday(); 1731 mView->importBday();
1731 1732
1732 } 1733 }
1733 1734
1734 1735
1735} 1736}
1736void MainWindow::importQtopia() 1737void MainWindow::importQtopia()
1737{ 1738{
1738 //#ifndef DESKTOP_VERSION 1739 //#ifndef DESKTOP_VERSION
1739 QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"); 1740 QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing");
1740#ifdef DESKTOP_VERSION 1741#ifdef DESKTOP_VERSION
1741 mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml"); 1742 mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml");
1742#endif 1743#endif
1743 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, 1744 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess,
1744 i18n("Import!"), i18n("Cancel"), 0, 1745 i18n("Import!"), i18n("Cancel"), 0,
1745 0, 1 ); 1746 0, 1 );
1746 if ( result == 0 ) { 1747 if ( result == 0 ) {
1747#ifndef DESKTOP_VERSION 1748#ifndef DESKTOP_VERSION
1748 QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); 1749 QString datebook = Global::applicationFileName( "datebook", "datebook.xml");
1749 QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); 1750 QString todolist = Global::applicationFileName( "todolist", "todolist.xml");
1750 QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; 1751 QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml";
1751#else 1752#else
1752 QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; 1753 QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml";
1753 QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; 1754 QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml";
1754 QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; 1755 QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml";
1755#endif 1756#endif
1756 mView->importQtopia( categories, datebook, todolist ); 1757 mView->importQtopia( categories, datebook, todolist );
1757 } 1758 }
1758 mView->calendar()->reInitAlarmSettings(); 1759 mView->calendar()->reInitAlarmSettings();
1759#if 0 1760#if 0
1760 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 1761 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
1761 i18n("Not supported \non desktop!\n"), 1762 i18n("Not supported \non desktop!\n"),
1762 i18n("Ok"), i18n("Cancel"), 0, 1763 i18n("Ok"), i18n("Cancel"), 0,
1763 0, 1 ); 1764 0, 1 );
1764 1765
1765#endif 1766#endif
1766} 1767}
1767 1768
1768void MainWindow::saveOnClose() 1769void MainWindow::saveOnClose()
1769{ 1770{
1770 KOPrefs *p = KOPrefs::instance(); 1771 KOPrefs *p = KOPrefs::instance();
1771 p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); 1772 p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal );
1772 p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); 1773 p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal );
1773 p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); 1774 p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal );
1774 if ( filterToolBar ) { 1775 if ( filterToolBar ) {
1775 p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); 1776 p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal );
1776 } 1777 }
1777#ifdef DESKTOP_VERSION 1778#ifdef DESKTOP_VERSION
1778 1779
1779 QPoint myP; 1780 QPoint myP;
1780 myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); 1781 myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) );
1781 if ( p->mToolBarHor ) 1782 if ( p->mToolBarHor )
1782 p->mToolBarUp = myP.y() > height()/2; 1783 p->mToolBarUp = myP.y() > height()/2;
1783 else 1784 else
1784 p->mToolBarUp = myP.x() > width()/2; 1785 p->mToolBarUp = myP.x() > width()/2;
1785 myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); 1786 myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) );
1786 if ( p->mToolBarHorV ) 1787 if ( p->mToolBarHorV )
1787 p->mToolBarUpV = myP.y() > height()/2; 1788 p->mToolBarUpV = myP.y() > height()/2;
1788 else 1789 else
1789 p->mToolBarUpV = myP.x() > width()/2 ; 1790 p->mToolBarUpV = myP.x() > width()/2 ;
1790 myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); 1791 myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) );
1791 if ( p->mToolBarHorN ) 1792 if ( p->mToolBarHorN )
1792 p->mToolBarUpN = myP.y() > height()/2; 1793 p->mToolBarUpN = myP.y() > height()/2;
1793 else 1794 else
1794 p->mToolBarUpN = myP.x() > width()/2 ; 1795 p->mToolBarUpN = myP.x() > width()/2 ;
1795 if ( filterToolBar ) { 1796 if ( filterToolBar ) {
1796 myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); 1797 myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) );
1797 if ( p->mToolBarHorF ) 1798 if ( p->mToolBarHorF )
1798 p->mToolBarUpF = myP.y() > height()/2; 1799 p->mToolBarUpF = myP.y() > height()/2;
1799 else 1800 else
1800 p->mToolBarUpF = myP.x() > width()/2 ; 1801 p->mToolBarUpF = myP.x() > width()/2 ;
1801 } 1802 }
1802#else 1803#else
1803 if ( p->mToolBarHor ) 1804 if ( p->mToolBarHor )
1804 p->mToolBarUp = iconToolBar->y() > height()/2; 1805 p->mToolBarUp = iconToolBar->y() > height()/2;
1805 else 1806 else
1806 p->mToolBarUp = iconToolBar->x() > width()/2; 1807 p->mToolBarUp = iconToolBar->x() > width()/2;
1807 if ( p->mToolBarHorV ) 1808 if ( p->mToolBarHorV )
1808 p->mToolBarUpV = viewToolBar->y() > height()/2; 1809 p->mToolBarUpV = viewToolBar->y() > height()/2;
1809 else 1810 else
1810 p->mToolBarUpV = viewToolBar->x() > width()/2 ; 1811 p->mToolBarUpV = viewToolBar->x() > width()/2 ;
1811 1812
1812 if ( p->mToolBarHorN ) 1813 if ( p->mToolBarHorN )
1813 p->mToolBarUpN = navigatorToolBar->y() > height()/2; 1814 p->mToolBarUpN = navigatorToolBar->y() > height()/2;
1814 else 1815 else
1815 p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; 1816 p->mToolBarUpN = navigatorToolBar->x() > width()/2 ;
1816 if ( filterToolBar ) { 1817 if ( filterToolBar ) {
1817 if ( p->mToolBarHorF ) 1818 if ( p->mToolBarHorF )
1818 p->mToolBarUpF = filterToolBar->y() > height()/2; 1819 p->mToolBarUpF = filterToolBar->y() > height()/2;
1819 else 1820 else
1820 p->mToolBarUpF = filterToolBar->x() > width()/2 ; 1821 p->mToolBarUpF = filterToolBar->x() > width()/2 ;
1821 } 1822 }
1822#endif 1823#endif
1823 1824
1824 if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) 1825 if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName()))
1825 save(); 1826 save();
1826 mView->writeSettings(); 1827 mView->writeSettings();
1827} 1828}
1828void MainWindow::slotModifiedChanged( bool changed ) 1829void MainWindow::slotModifiedChanged( bool changed )
1829{ 1830{
1830 if ( mBlockAtStartup ) 1831 if ( mBlockAtStartup )
1831 return; 1832 return;
1832 1833
1833 int msec; 1834 int msec;
1834 // we store the changes after 1 minute, 1835 // we store the changes after 1 minute,
1835 // and for safety reasons after 10 minutes again 1836 // and for safety reasons after 10 minutes again
1836 if ( !mSyncManager->blockSave() ) 1837 if ( !mSyncManager->blockSave() )
1837 msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; 1838 msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000;
1838 else 1839 else
1839 msec = 1000 * 600; 1840 msec = 1000 * 600;
1840 mSaveTimer.start( msec, true ); // 1 minute 1841 mSaveTimer.start( msec, true ); // 1 minute
1841 qDebug("KO: Saving File in %d secs!", msec/1000); 1842 qDebug("KO: Saving File in %d secs!", msec/1000);
1842 mCalendarModifiedFlag = true; 1843 mCalendarModifiedFlag = true;
1843} 1844}
1844void MainWindow::saveStopTimer() 1845void MainWindow::saveStopTimer()
1845{ 1846{
1846 mSaveTimer.stop(); 1847 mSaveTimer.stop();
1847} 1848}
1849void MainWindow::backupAllFiles()
1850{
1851 QDate reference ( 2000,1,1);
1852 int daysTo = reference.daysTo ( QDate::currentDate() );
1853 setCaption(i18n("Creating backup ... please wait ..." ));
1854 qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate);
1855 // we need the file path, the backup dir and the number of bups as param
1856 QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir;
1857 if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir)
1858 bupDir = KGlobalSettings::backupDataDir();
1859 int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );
1860 if ( retval == 0 ) {
1861 setCaption(i18n("Backup cancelled" ));
1862 qDebug("KO: Backup cancelled. Will try again tomorrow ");
1863 // retval == 0 : backup skipped for today, try again tomorrow
1864 KOPrefs::instance()->mLastBackupDate = daysTo- KPimGlobalPrefs::instance()->mBackupDayCount+1;
1865 } else if ( retval == 1 ){
1866 qDebug("KO: Backup created.");
1867 // backup ok
1868 QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
1869 KopiCalendarFile * cal = calendars.first();
1870 cal = calendars.next();
1871 while ( cal ) {
1872 if ( !cal->mErrorOnLoad ) {
1873 int retval = KApplication::createBackup( cal->mFileName, bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );
1874 }
1875 cal = calendars.next();
1876 }
1877 KOPrefs::instance()->mLastBackupDate = daysTo;
1878 setCaption(i18n("Backup succesfully finished" ));
1879 } else if ( retval == 2 ){
1880 setCaption(i18n("Backup globally disabled" ));
1881 qDebug("KO: Backup globally cancelled.");
1882 // backup globally cancelled
1883 KPimGlobalPrefs::instance()->mBackupEnabled = false;
1884 }
1885 // retval == 3: do nothing, try again later
1886}
1848void MainWindow::save() 1887void MainWindow::save()
1849{ 1888{
1850 if ( !mCalendarModifiedFlag ) { 1889 if ( !mCalendarModifiedFlag ) {
1851 qDebug("KO: Calendar not modified. Nothing saved."); 1890 qDebug("KO: Calendar not modified. Nothing saved.");
1852 return; 1891 return;
1853 } 1892 }
1854 if ( mSyncManager->blockSave() ) 1893 if ( mSyncManager->blockSave() )
1855 return; 1894 return;
1856 mSyncManager->setBlockSave(true); 1895 mSyncManager->setBlockSave(true);
1857 if ( mView->checkAllFileVersions() ) { 1896 if ( mView->checkAllFileVersions() ) {
1858 if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ 1897 if ( KPimGlobalPrefs::instance()->mBackupEnabled ){
1859 QDate reference ( 2000,1,1); 1898 QDate reference ( 2000,1,1);
1860 int daysTo = reference.daysTo ( QDate::currentDate() ); 1899 int daysTo = reference.daysTo ( QDate::currentDate() );
1861 if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { 1900 if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) {
1862 setCaption(i18n("Creating backup ... please wait ..." )); 1901 backupAllFiles();
1863 qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate);
1864 // we need the file path, the backup dir and the number of bups as param
1865 QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir;
1866 if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir)
1867 bupDir = KGlobalSettings::backupDataDir();
1868 int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );
1869 if ( retval == 0 ) {
1870 qDebug("KO: Backup cancelled. Will try again tomorrow ");
1871 // retval == 0 : backup skipped for today, try again tomorrow
1872 KOPrefs::instance()->mLastBackupDate = daysTo- KPimGlobalPrefs::instance()->mBackupDayCount+1;
1873 } else if ( retval == 1 ){
1874 qDebug("KO: Backup created.");
1875 // backup ok
1876 QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars;
1877 KopiCalendarFile * cal = calendars.first();
1878 cal = calendars.next();
1879 while ( cal ) {
1880 if ( !cal->mErrorOnLoad ) {
1881 int retval = KApplication::createBackup( cal->mFileName, bupDir, KPimGlobalPrefs::instance()->mBackupNumbers );
1882 }
1883 cal = calendars.next();
1884 }
1885 KOPrefs::instance()->mLastBackupDate = daysTo;
1886 } else if ( retval == 2 ){
1887 qDebug("KO: Backup globally cancelled.");
1888 // backup globally cancelled
1889 KPimGlobalPrefs::instance()->mBackupEnabled = false;
1890 }
1891 // retval == 3: do nothing, try again later
1892 } 1902 }
1893 ; // KPimGlobalPrefs::instance()->mLastBackupDate 1903 ; // KPimGlobalPrefs::instance()->mLastBackupDate
1894 } 1904 }
1895 QTime neededSaveTime = QDateTime::currentDateTime().time(); 1905 QTime neededSaveTime = QDateTime::currentDateTime().time();
1896 setCaption(i18n("KO/Pi:Saving Data to File ..." )); 1906 setCaption(i18n("KO/Pi:Saving Data to File ..." ));
1897 qDebug("KO: Start saving data to file!"); 1907 qDebug("KO: Start saving data to file!");
1898 mView->saveCalendars(); 1908 mView->saveCalendars();
1899 mCalendarModifiedFlag = false; 1909 mCalendarModifiedFlag = false;
1900 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); 1910 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() );
1901 qDebug("KO: Needed %d ms for saving.",msNeeded ); 1911 qDebug("KO: Needed %d ms for saving.",msNeeded );
1902 QString savemes; 1912 QString savemes;
1903 savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); 1913 savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 );
1904 setCaption(savemes); 1914 setCaption(savemes);
1905 } else 1915 } else
1906 setCaption(i18n("Saving cancelled!")); 1916 setCaption(i18n("Saving cancelled!"));
1907 mSyncManager->setBlockSave( false ); 1917 mSyncManager->setBlockSave( false );
1908} 1918}
1909 1919
1910void MainWindow::keyReleaseEvent ( QKeyEvent * e) 1920void MainWindow::keyReleaseEvent ( QKeyEvent * e)
1911{ 1921{
1912 if ( !e->isAutoRepeat() ) { 1922 if ( !e->isAutoRepeat() ) {
1913 mFlagKeyPressed = false; 1923 mFlagKeyPressed = false;
1914 } 1924 }
1915} 1925}
1916void MainWindow::keyPressEvent ( QKeyEvent * e ) 1926void MainWindow::keyPressEvent ( QKeyEvent * e )
1917{ 1927{
1918 qApp->processEvents(); 1928 qApp->processEvents();
1919 if ( e->isAutoRepeat() && !mFlagKeyPressed ) { 1929 if ( e->isAutoRepeat() && !mFlagKeyPressed ) {
1920 e->ignore(); 1930 e->ignore();
1921 // qDebug(" ignore %d",e->isAutoRepeat() ); 1931 // qDebug(" ignore %d",e->isAutoRepeat() );
1922 return; 1932 return;
1923 } 1933 }
1924 if (! e->isAutoRepeat() ) 1934 if (! e->isAutoRepeat() )
1925 mFlagKeyPressed = true; 1935 mFlagKeyPressed = true;
1926 KOPrefs *p = KOPrefs::instance(); 1936 KOPrefs *p = KOPrefs::instance();
1927 bool showSelectedDates = false; 1937 bool showSelectedDates = false;
1928 int size; 1938 int size;
1929 int pro = 0; 1939 int pro = 0;
1930 //qDebug("MainWindow::keyPressEvent "); 1940 //qDebug("MainWindow::keyPressEvent ");
1931 switch ( e->key() ) { 1941 switch ( e->key() ) {
1932 case Qt::Key_Right: 1942 case Qt::Key_Right:
1933 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) 1943 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton)
1934 mView->goNextMonth(); 1944 mView->goNextMonth();
1935 else 1945 else
1936 mView->goNext(); 1946 mView->goNext();
1937 showSelectedDates = true; 1947 showSelectedDates = true;
1938 break; 1948 break;
1939 case Qt::Key_Left: 1949 case Qt::Key_Left:
1940 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 1950 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
1941 mView->goPreviousMonth(); 1951 mView->goPreviousMonth();
1942 else 1952 else
1943 mView->goPrevious(); 1953 mView->goPrevious();
1944 showSelectedDates = true; 1954 showSelectedDates = true;
1945 break; 1955 break;
1946 case Qt::Key_Down: 1956 case Qt::Key_Down:
1947 mView->viewManager()->agendaView()->scrollOneHourDown(); 1957 mView->viewManager()->agendaView()->scrollOneHourDown();
1948 break; 1958 break;
1949 case Qt::Key_Up: 1959 case Qt::Key_Up:
1950 mView->viewManager()->agendaView()->scrollOneHourUp(); 1960 mView->viewManager()->agendaView()->scrollOneHourUp();
1951 break; 1961 break;
1952 case Qt::Key_K: 1962 case Qt::Key_K:
1953 mView->viewManager()->showMonthViewWeek(); 1963 mView->viewManager()->showMonthViewWeek();
1954 break; 1964 break;
1955 case Qt::Key_I: 1965 case Qt::Key_I:
1956 mView->showIncidence(); 1966 mView->showIncidence();
1957 break; 1967 break;
1958 case Qt::Key_Delete: 1968 case Qt::Key_Delete:
1959 case Qt::Key_Backspace: 1969 case Qt::Key_Backspace:
1960 mView->deleteIncidence(); 1970 mView->deleteIncidence();
1961 break; 1971 break;
1962 case Qt::Key_D: 1972 case Qt::Key_D:
1963 mView->viewManager()->showDayView(); 1973 mView->viewManager()->showDayView();
1964 showSelectedDates = true; 1974 showSelectedDates = true;
1965 break; 1975 break;
1966 case Qt::Key_O: 1976 case Qt::Key_O:
1967 mView->toggleFilerEnabled( ); 1977 mView->toggleFilerEnabled( );
1968 break; 1978 break;
1969 case Qt::Key_0: 1979 case Qt::Key_0:
1970 case Qt::Key_1: 1980 case Qt::Key_1:
1971 case Qt::Key_2: 1981 case Qt::Key_2:
1972 case Qt::Key_3: 1982 case Qt::Key_3:
1973 case Qt::Key_4: 1983 case Qt::Key_4:
1974 case Qt::Key_5: 1984 case Qt::Key_5:
1975 case Qt::Key_6: 1985 case Qt::Key_6:
1976 case Qt::Key_7: 1986 case Qt::Key_7:
1977 case Qt::Key_8: 1987 case Qt::Key_8:
1978 case Qt::Key_9: 1988 case Qt::Key_9:
1979 pro = e->key()-48; 1989 pro = e->key()-48;
1980 if ( pro == 0 ) 1990 if ( pro == 0 )
1981 pro = 10; 1991 pro = 10;
1982 if ( e->state() == Qt::ControlButton) 1992 if ( e->state() == Qt::ControlButton)
1983 pro += 10; 1993 pro += 10;
1984 break; 1994 break;
1985 case Qt::Key_M: 1995 case Qt::Key_M:
1986 mView->viewManager()->showMonthView(); 1996 mView->viewManager()->showMonthView();
1987 showSelectedDates = true; 1997 showSelectedDates = true;
1988 break; 1998 break;
1989 case Qt::Key_Insert: 1999 case Qt::Key_Insert:
1990 mView->newEvent(); 2000 mView->newEvent();
1991 break; 2001 break;
1992 case Qt::Key_S : 2002 case Qt::Key_S :
1993 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) 2003 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton)
1994 mView->newSubTodo(); 2004 mView->newSubTodo();
1995 else 2005 else
1996 mView->dialogManager()->showSearchDialog(); 2006 mView->dialogManager()->showSearchDialog();
1997 break; 2007 break;
1998 case Qt::Key_Y : 2008 case Qt::Key_Y :
1999 case Qt::Key_Z : 2009 case Qt::Key_Z :
2000 mView->viewManager()->showWorkWeekView(); 2010 mView->viewManager()->showWorkWeekView();
2001 showSelectedDates = true; 2011 showSelectedDates = true;
2002 break; 2012 break;
2003 case Qt::Key_U : 2013 case Qt::Key_U :
2004 mView->viewManager()->showWeekView(); 2014 mView->viewManager()->showWeekView();
2005 showSelectedDates = true; 2015 showSelectedDates = true;
2006 break; 2016 break;
2007 case Qt::Key_H : 2017 case Qt::Key_H :
2008 keyBindings(); 2018 keyBindings();
2009 break; 2019 break;
2010 case Qt::Key_W: 2020 case Qt::Key_W:
2011 mView->viewManager()->showWhatsNextView(); 2021 mView->viewManager()->showWhatsNextView();
2012 break; 2022 break;
2013 case Qt::Key_L: 2023 case Qt::Key_L:
2014 mView->viewManager()->showListView(); 2024 mView->viewManager()->showListView();
2015 break; 2025 break;
2016 case Qt::Key_N: 2026 case Qt::Key_N:
2017 mView->viewManager()->showNextView(); 2027 mView->viewManager()->showNextView();
2018 break; 2028 break;
2019 case Qt::Key_V: 2029 case Qt::Key_V:
2020 mView->viewManager()->showTodoView(); 2030 mView->viewManager()->showTodoView();
2021 break; 2031 break;
2022 case Qt::Key_C: 2032 case Qt::Key_C:
2023 mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); 2033 mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() );
2024 break; 2034 break;
2025 case Qt::Key_P: 2035 case Qt::Key_P:
2026 mView->showDatePicker( ); 2036 mView->showDatePicker( );
2027 break; 2037 break;
2028 case Qt::Key_F: 2038 case Qt::Key_F:
2029 mView->editFilters(); 2039 mView->editFilters();
2030 break; 2040 break;
2031 case Qt::Key_R: 2041 case Qt::Key_R:
2032 mView->toggleFilter(); 2042 mView->toggleFilter();
2033 break; 2043 break;
2034 case Qt::Key_X: 2044 case Qt::Key_X:
2035 if ( e->state() == Qt::ControlButton ) 2045 if ( e->state() == Qt::ControlButton )
2036 mView->toggleDateNavigatorWidget(); 2046 mView->toggleDateNavigatorWidget();
2037 else { 2047 else {
2038 mView->viewManager()->showNextXView(); 2048 mView->viewManager()->showNextXView();
2039 showSelectedDates = true; 2049 showSelectedDates = true;
2040 } 2050 }
2041 break; 2051 break;
2042 case Qt::Key_Space: 2052 case Qt::Key_Space:
2043 mView->toggleExpand(); 2053 mView->toggleExpand();
2044 break; 2054 break;
2045 case Qt::Key_A: 2055 case Qt::Key_A:
2046 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) 2056 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton )
2047 mView->showNextAlarms(); 2057 mView->showNextAlarms();
2048 else 2058 else
2049 mView->toggleAllDaySize(); 2059 mView->toggleAllDaySize();
2050 break; 2060 break;
2051 case Qt::Key_T: 2061 case Qt::Key_T:
2052 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 2062 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
2053 mView->newTodo(); 2063 mView->newTodo();
2054 else { 2064 else {
2055 mView->goToday(); 2065 mView->goToday();
2056 showSelectedDates = true; 2066 showSelectedDates = true;
2057 } 2067 }
2058 break; 2068 break;
2059 case Qt::Key_J: 2069 case Qt::Key_J:
2060 mView->viewManager()->showJournalView(); 2070 mView->viewManager()->showJournalView();
2061 break; 2071 break;
2062 case Qt::Key_B: 2072 case Qt::Key_B:
2063 mView->editIncidenceDescription();; 2073 mView->editIncidenceDescription();;
2064 break; 2074 break;
2065 // case Qt::Key_Return: 2075 // case Qt::Key_Return:
2066 case Qt::Key_E: 2076 case Qt::Key_E:
2067 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 2077 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
2068 mView->newEvent(); 2078 mView->newEvent();
2069 else 2079 else
2070 mView->editIncidence(); 2080 mView->editIncidence();
2071 break; 2081 break;
2072 case Qt::Key_Plus: 2082 case Qt::Key_Plus:
2073 size = p->mHourSize +2; 2083 size = p->mHourSize +2;
2074 if ( size <= 22 ) 2084 if ( size <= 22 )
2075 configureAgenda( size ); 2085 configureAgenda( size );
2076 break; 2086 break;
2077 case Qt::Key_Minus: 2087 case Qt::Key_Minus:
2078 size = p->mHourSize - 2; 2088 size = p->mHourSize - 2;
2079 if ( size >= 4 ) 2089 if ( size >= 4 )
2080 configureAgenda( size ); 2090 configureAgenda( size );
2081 break; 2091 break;
2082 2092
2083 2093
2084 default: 2094 default:
2085 e->ignore(); 2095 e->ignore();
2086 } 2096 }
2087 if ( pro > 0 ) { 2097 if ( pro > 0 ) {
2088 selectFilter( pro+1 ); 2098 selectFilter( pro+1 );
2089 } 2099 }
2090 if ( showSelectedDates ) { 2100 if ( showSelectedDates ) {
2091 ;// setCaptionToDates(); 2101 ;// setCaptionToDates();
2092 } 2102 }
2093 2103
2094} 2104}
2095void MainWindow::fillFilterMenuTB() 2105void MainWindow::fillFilterMenuTB()
2096{ 2106{
2097 selectFilterMenuTB->clear(); 2107 selectFilterMenuTB->clear();
2098 selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); 2108 selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 );
2099 selectFilterMenuTB->insertSeparator(); 2109 selectFilterMenuTB->insertSeparator();
2100 selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); 2110 selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 );
2101 2111
2102 selectFilterMenuTB->insertSeparator(); 2112 selectFilterMenuTB->insertSeparator();
2103 QPtrList<CalFilter> fili = mView->filters(); 2113 QPtrList<CalFilter> fili = mView->filters();
2104 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2114 CalFilter *curfilter = mView->filterView()->selectedFilter();
2105 CalFilter *filter = fili.first(); 2115 CalFilter *filter = fili.first();
2106 int iii = 2; 2116 int iii = 2;
2107 bool checkitem = mView->filterView()->filtersEnabled(); 2117 bool checkitem = mView->filterView()->filtersEnabled();
2108 while(filter) { 2118 while(filter) {
2109 selectFilterMenuTB->insertItem( filter->name(), iii ); 2119 selectFilterMenuTB->insertItem( filter->name(), iii );
2110 if ( filter == curfilter) 2120 if ( filter == curfilter)
2111 selectFilterMenuTB->setItemChecked( iii, checkitem ); 2121 selectFilterMenuTB->setItemChecked( iii, checkitem );
2112 filter = fili.next(); 2122 filter = fili.next();
2113 ++iii; 2123 ++iii;
2114 } 2124 }
2115 if ( !checkitem ) 2125 if ( !checkitem )
2116 selectFilterMenuTB->setItemChecked( 1, true ); 2126 selectFilterMenuTB->setItemChecked( 1, true );
2117 2127
2118 int x = 0; 2128 int x = 0;
2119 int y = iconToolBar->height(); 2129 int y = iconToolBar->height();
2120 int dX = 0; 2130 int dX = 0;
2121 int dY = 0; 2131 int dY = 0;
2122 if ( iconToolBar->orientation () == Qt:: Horizontal ) { 2132 if ( iconToolBar->orientation () == Qt:: Horizontal ) {
2123 if ( iconToolBar->y() > height()/2 ) { 2133 if ( iconToolBar->y() > height()/2 ) {
2124 dY = selectFilterMenuTB->sizeHint().height()+8; 2134 dY = selectFilterMenuTB->sizeHint().height()+8;
2125 y = 0; 2135 y = 0;
2126 } 2136 }
2127 } else { 2137 } else {
2128 if ( iconToolBar->x() > width()/2 ) { // right side 2138 if ( iconToolBar->x() > width()/2 ) { // right side
2129 x=0; 2139 x=0;
2130 dX= selectFilterMenuTB->sizeHint().width()+8; 2140 dX= selectFilterMenuTB->sizeHint().width()+8;
2131 y = 0; 2141 y = 0;
2132 } else { 2142 } else {
2133 x= iconToolBar->width(); 2143 x= iconToolBar->width();
2134 y = 0; 2144 y = 0;
2135 } 2145 }
2136 } 2146 }
2137 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); 2147 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
2138 selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); 2148 selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)));
2139} 2149}
2140void MainWindow::fillFilterMenu() 2150void MainWindow::fillFilterMenu()
2141{ 2151{
2142 selectFilterMenu->clear(); 2152 selectFilterMenu->clear();
2143 selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); 2153 selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 );
2144 selectFilterMenu->insertSeparator(); 2154 selectFilterMenu->insertSeparator();
2145 selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); 2155 selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 );
2146 2156
2147 selectFilterMenu->insertSeparator(); 2157 selectFilterMenu->insertSeparator();
2148 QPtrList<CalFilter> fili = mView->filters(); 2158 QPtrList<CalFilter> fili = mView->filters();
2149 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2159 CalFilter *curfilter = mView->filterView()->selectedFilter();
2150 CalFilter *filter = fili.first(); 2160 CalFilter *filter = fili.first();
2151 int iii = 2; 2161 int iii = 2;
2152 bool checkitem = mView->filterView()->filtersEnabled(); 2162 bool checkitem = mView->filterView()->filtersEnabled();
2153 while(filter) { 2163 while(filter) {
2154 selectFilterMenu->insertItem( filter->name(), iii ); 2164 selectFilterMenu->insertItem( filter->name(), iii );
2155 if ( filter == curfilter) 2165 if ( filter == curfilter)
2156 selectFilterMenu->setItemChecked( iii, checkitem ); 2166 selectFilterMenu->setItemChecked( iii, checkitem );
2157 filter = fili.next(); 2167 filter = fili.next();
2158 ++iii; 2168 ++iii;
2159 } 2169 }
2160 if ( !checkitem ) 2170 if ( !checkitem )
2161 selectFilterMenu->setItemChecked( 1, true ); 2171 selectFilterMenu->setItemChecked( 1, true );
2162} 2172}
2163void MainWindow::fillFilterMenuPopup() 2173void MainWindow::fillFilterMenuPopup()
2164{ 2174{
2165 filterPopupMenu->clear(); 2175 filterPopupMenu->clear();
2166 filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); 2176 filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 );
2167 2177
2168 filterPopupMenu->insertSeparator(); 2178 filterPopupMenu->insertSeparator();
2169 QPtrList<CalFilter> fili = mView->filters(); 2179 QPtrList<CalFilter> fili = mView->filters();
2170 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2180 CalFilter *curfilter = mView->filterView()->selectedFilter();
2171 CalFilter *filter = fili.first(); 2181 CalFilter *filter = fili.first();
2172 int iii = 1; 2182 int iii = 1;
2173 bool checkitem = mView->filterView()->filtersEnabled(); 2183 bool checkitem = mView->filterView()->filtersEnabled();
2174 while(filter) { 2184 while(filter) {
2175 filterPopupMenu->insertItem( filter->name(), iii ); 2185 filterPopupMenu->insertItem( filter->name(), iii );
2176 if ( filter == curfilter) 2186 if ( filter == curfilter)
2177 filterPopupMenu->setItemChecked( iii, checkitem ); 2187 filterPopupMenu->setItemChecked( iii, checkitem );
2178 filter = fili.next(); 2188 filter = fili.next();
2179 ++iii; 2189 ++iii;
2180 } 2190 }
2181 if ( !checkitem ) 2191 if ( !checkitem )
2182 filterPopupMenu->setItemChecked( 0, true ); 2192 filterPopupMenu->setItemChecked( 0, true );
2183} 2193}
2184void MainWindow::selectFilter( int fil ) 2194void MainWindow::selectFilter( int fil )
2185{ 2195{
2186 2196
2187 if ( fil == 0 ) { 2197 if ( fil == 0 ) {
2188 mView->editFilters( ); 2198 mView->editFilters( );
2189 } else if ( fil == 1 ){ 2199 } else if ( fil == 1 ){
2190 if ( mView->filterView()->filtersEnabled() ) 2200 if ( mView->filterView()->filtersEnabled() )
2191 mView->toggleFilerEnabled( ); 2201 mView->toggleFilerEnabled( );
2192 } else { 2202 } else {
2193 if ( !mView->filterView()->filtersEnabled() ) { 2203 if ( !mView->filterView()->filtersEnabled() ) {
2194 mView->filterView()->blockSignals( true ); 2204 mView->filterView()->blockSignals( true );
2195 mView->toggleFilerEnabled( ); 2205 mView->toggleFilerEnabled( );
2196 mView->filterView()->blockSignals( false ); 2206 mView->filterView()->blockSignals( false );
2197 } 2207 }
2198 mView->selectFilter( fil-2 ); 2208 mView->selectFilter( fil-2 );
2199 } 2209 }
2200} 2210}
2201void MainWindow::updateFilterToolbar() 2211void MainWindow::updateFilterToolbar()
2202{ 2212{
2203 if ( filterMenubar ) { 2213 if ( filterMenubar ) {
2204 if ( !mView->filterView()->filtersEnabled() ) { 2214 if ( !mView->filterView()->filtersEnabled() ) {
2205 filterMenubar->changeItem( 0, i18n("No Filter") ); 2215 filterMenubar->changeItem( 0, i18n("No Filter") );
2206 } else { 2216 } else {
2207 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2217 CalFilter *curfilter = mView->filterView()->selectedFilter();
2208 if ( curfilter ) { 2218 if ( curfilter ) {
2209 filterMenubar->changeItem( 0, curfilter->name() ); 2219 filterMenubar->changeItem( 0, curfilter->name() );
2210 } 2220 }
2211 } 2221 }
2212 } 2222 }
2213} 2223}
2214void MainWindow::selectFilterPopup( int fil ) 2224void MainWindow::selectFilterPopup( int fil )
2215{ 2225{
2216 selectFilter( fil + 1 ); 2226 selectFilter( fil + 1 );
2217 2227
2218} 2228}
2219void MainWindow::configureToolBar( int item ) 2229void MainWindow::configureToolBar( int item )
2220{ 2230{
2221 2231
2222 configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); 2232 configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) );
2223 KOPrefs *p = KOPrefs::instance(); 2233 KOPrefs *p = KOPrefs::instance();
2224 p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); 2234 p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 );
2225 p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); 2235 p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 );
2226 p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); 2236 p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 );
2227 p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); 2237 p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 );
2228 p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); 2238 p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 );
2229 p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); 2239 p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 );
2230 p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); 2240 p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 );
2231 p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); 2241 p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 );
2232 p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); 2242 p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 );
2233 p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); 2243 p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 );
2234 p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); 2244 p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 );
2235 p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); 2245 p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 );
2236 p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); 2246 p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 );
2237 p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); 2247 p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 );
2238 p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); 2248 p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 );
2239 p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); 2249 p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 );
2240 p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); 2250 p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 );
2241 p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); 2251 p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 );
2242 p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); 2252 p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 );
2243 p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); 2253 p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 );
2244 p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); 2254 p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 );
2245 p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); 2255 p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 );
2246 p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); 2256 p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 );
2247 p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); 2257 p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 );
2248 p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); 2258 p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 );
2249 p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); 2259 p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 );
2250 p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); 2260 p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 );
2251 // initActions(); 2261 // initActions();
2252} 2262}
2253void MainWindow::setCaption ( const QString & c ) 2263void MainWindow::setCaption ( const QString & c )
2254{ 2264{
2255 QString cap = c; 2265 QString cap = c;
2256 cap.replace( QRegExp("\n"), " " ); 2266 cap.replace( QRegExp("\n"), " " );
2257 cap = cap.stripWhiteSpace(); 2267 cap = cap.stripWhiteSpace();
2258 if ( cap.isEmpty() ) 2268 if ( cap.isEmpty() )
2259 cap = "KO/Pi"; 2269 cap = "KO/Pi";
2260 QWidget::setCaption( cap ); 2270 QWidget::setCaption( cap );
2261} 2271}
2262void MainWindow::setCaptionToDates() 2272void MainWindow::setCaptionToDates()
2263{ 2273{
2264 QString selDates; 2274 QString selDates;
2265 QDate date = mView->startDate(); 2275 QDate date = mView->startDate();
2266 if ( ! date.isValid() ) { 2276 if ( ! date.isValid() ) {
2267 setCaption(""); 2277 setCaption("");
2268 return; 2278 return;
2269 } 2279 }
2270 selDates = KGlobal::locale()->formatDate( date, true); 2280 selDates = KGlobal::locale()->formatDate( date, true);
2271 if (mView->startDate() < mView->endDate() ) 2281 if (mView->startDate() < mView->endDate() )
2272 selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); 2282 selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true);
2273 else { 2283 else {
2274 QString addString; 2284 QString addString;
2275 if ( date == QDateTime::currentDateTime().date() ) 2285 if ( date == QDateTime::currentDateTime().date() )
2276 addString = i18n("Today"); 2286 addString = i18n("Today");
2277 else if ( date == QDateTime::currentDateTime().date().addDays(1) ) 2287 else if ( date == QDateTime::currentDateTime().date().addDays(1) )
2278 addString = i18n("Tomorrow"); 2288 addString = i18n("Tomorrow");
2279 if ( !addString.isEmpty() ) 2289 if ( !addString.isEmpty() )
2280 selDates = addString+", "+selDates ; 2290 selDates = addString+", "+selDates ;
2281 } 2291 }
2282 setCaption( i18n("Dates: ") + selDates ); 2292 setCaption( i18n("Dates: ") + selDates );
2283 2293
2284} 2294}
2285void MainWindow::showConfigureAgenda( ) 2295void MainWindow::showConfigureAgenda( )
2286{ 2296{
2287 int iii; 2297 int iii;
2288 for ( iii = 1;iii<= 10 ;++iii ){ 2298 for ( iii = 1;iii<= 10 ;++iii ){
2289 configureAgendaMenu->setItemChecked( (iii+1)*2, false ); 2299 configureAgendaMenu->setItemChecked( (iii+1)*2, false );
2290 } 2300 }
2291 configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); 2301 configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true );
2292} 2302}
2293void MainWindow::configureAgenda( int item ) 2303void MainWindow::configureAgenda( int item )
2294{ 2304{
2295 if ( KOPrefs::instance()->mHourSize == item ) 2305 if ( KOPrefs::instance()->mHourSize == item )
2296 return; 2306 return;
2297 KOPrefs::instance()->mHourSize=item; 2307 KOPrefs::instance()->mHourSize=item;
2298 mView->viewManager()->agendaView()->updateConfig(); 2308 mView->viewManager()->agendaView()->updateConfig();
2299} 2309}
2300 2310
2301void MainWindow::saveCalendar() 2311void MainWindow::saveCalendar()
2302{ 2312{
2303 QString fn = KOPrefs::instance()->mLastSaveFile; 2313
2304 fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); 2314 QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir;
2305 2315 if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir)
2306 if ( fn == "" ) 2316 bupDir = KGlobalSettings::backupDataDir();
2307 return; 2317 bupDir = KGlobal::formatMessage ( bupDir, 0 );
2308 QFileInfo info; 2318 QString bupHint;
2309 info.setFile( fn ); 2319 if ( !KPimGlobalPrefs::instance()->mBackupEnabled )
2310 QString mes; 2320 bupHint = i18n("(Hint: You can enable automatic backup in the global settings!)");
2311 bool createbup = true; 2321 if ( KMessageBox::warningContinueCancel( this, i18n("This will <b>backup all calendar files</b> to the directory %1 %2").arg(bupDir).arg(bupHint),i18n("Information") ) != KMessageBox::Continue ) return;
2312 if ( info. exists() ) { 2322 backupAllFiles();
2313 mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ;
2314 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes,
2315 i18n("Overwrite!"), i18n("Cancel"), 0,
2316 0, 1 );
2317 if ( result != 0 ) {
2318 createbup = false;
2319 }
2320 }
2321 if ( createbup ) {
2322 mView->saveCalendar( fn );
2323 mes = i18n("KO/Pi:Saved %1").arg(fn);
2324 KOPrefs::instance()->mLastSaveFile = fn;
2325 setCaption(mes);
2326 }
2327} 2323}
2328void MainWindow::loadCalendar() 2324void MainWindow::loadCalendar()
2329{ 2325{
2330 2326
2331 QString fn = KOPrefs::instance()->mLastLoadFile; 2327
2328#if 0
2329 QString fn = KOPrefs::instance()->mLastLoadFile;
2332 fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); 2330 fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this );
2333 2331
2334 if ( fn == "" ) 2332 if ( fn == "" )
2335 return; 2333 return;
2336 QFileInfo info; 2334 QFileInfo info;
2337 info.setFile( fn ); 2335 info.setFile( fn );
2338 QString mess; 2336 QString mess;
2339 bool loadbup = true; 2337 bool loadbup = true;
2340 if ( info. exists() ) { 2338 if ( info. exists() ) {
2341 mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); 2339 mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false ));
2342 int result = QMessageBox::warning( this, "KO/Pi: Warning!", 2340 int result = QMessageBox::warning( this, "KO/Pi: Warning!",
2343 mess, 2341 mess,
2344 i18n("Load!"), i18n("Cancel"), 0, 2342 i18n("Load!"), i18n("Cancel"), 0,
2345 0, 1 ); 2343 0, 1 );
2346 if ( result != 0 ) { 2344 if ( result != 0 ) {
2347 loadbup = false; 2345 loadbup = false;
2348 } 2346 }
2349 } else { 2347 } else {
2350 QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 2348 QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
2351 i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, 2349 i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0,
2352 0, 1 ); 2350 0, 1 );
2353 2351
2354 return; 2352 return;
2355 } 2353 }
2356 if ( loadbup ) { 2354 if ( loadbup ) {
2357 mView->openCalendar( fn ); 2355 mView->openCalendar( fn );
2358 KOPrefs::instance()->mLastLoadFile = fn; 2356 KOPrefs::instance()->mLastLoadFile = fn;
2359 mess = i18n("KO/Pi:Loaded %1").arg(fn) ; 2357 mess = i18n("KO/Pi:Loaded %1").arg(fn) ;
2360 setCaption(mess); 2358 setCaption(mess);
2361 } 2359 }
2360#endif
2362 2361
2363} 2362}
2364void MainWindow::quickImportIcal() 2363void MainWindow::quickImportIcal()
2365{ 2364{
2366 importFile( KOPrefs::instance()->mLastImportFile, false ); 2365 importFile( KOPrefs::instance()->mLastImportFile, false );
2367} 2366}
2368void MainWindow::importFile( QString fn, bool quick ) 2367void MainWindow::importFile( QString fn, bool quick )
2369{ 2368{
2370 QFileInfo info; 2369 QFileInfo info;
2371 info.setFile( fn ); 2370 info.setFile( fn );
2372 QString mess; 2371 QString mess;
2373 bool loadbup = true; 2372 bool loadbup = true;
2374 if ( !info. exists() ) { 2373 if ( !info. exists() ) {
2375 mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); 2374 mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30));
2376 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 2375 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
2377 mess ); 2376 mess );
2378 return; 2377 return;
2379 } 2378 }
2380 int result = 0; 2379 int result = 0;
2381 if ( !quick ) { 2380 if ( !quick ) {
2382 mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); 2381 mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false ));
2383 result = QMessageBox::warning( this, "KO/Pi: Warning!", 2382 result = QMessageBox::warning( this, "KO/Pi: Warning!",
2384 mess, 2383 mess,
2385 "Import", "Cancel", 0, 2384 "Import", "Cancel", 0,
2386 0, 1 ); 2385 0, 1 );
2387 } 2386 }
2388 if ( result == 0 ) { 2387 if ( result == 0 ) {
2389 if ( mView->openCalendar( fn, true )) { 2388 if ( mView->openCalendar( fn, true )) {
2390 KOPrefs::instance()->mLastImportFile = fn; 2389 KOPrefs::instance()->mLastImportFile = fn;
2391 setCaption(i18n("Imported file successfully")); 2390 setCaption(i18n("Imported file successfully"));
2392 } else { 2391 } else {
2393 setCaption(i18n("Error importing file")); 2392 setCaption(i18n("Error importing file"));
2394 } 2393 }
2395 } 2394 }
2396} 2395}
2397 2396
2398void MainWindow::importIcal() 2397void MainWindow::importIcal()
2399{ 2398{
2400 2399
2401 QString fn =KOPrefs::instance()->mLastImportFile; 2400 QString fn =KOPrefs::instance()->mLastImportFile;
2402 2401
2403 fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); 2402 fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this );
2404 if ( fn == "" ) 2403 if ( fn == "" )
2405 return; 2404 return;
2406 importFile( fn, true ); 2405 importFile( fn, true );
2407 2406
2408} 2407}
2409 2408
2410void MainWindow::exportVCalendar() 2409void MainWindow::exportVCalendar()
2411{ 2410{
2412 QString fn = KOPrefs::instance()->mLastVcalFile; 2411 QString fn = KOPrefs::instance()->mLastVcalFile;
2413 fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); 2412 fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this );
2414 if ( fn == "" ) 2413 if ( fn == "" )
2415 return; 2414 return;
2416 QFileInfo info; 2415 QFileInfo info;
2417 info.setFile( fn ); 2416 info.setFile( fn );
2418 QString mes; 2417 QString mes;
2419 bool createbup = true; 2418 bool createbup = true;
2420 if ( info. exists() ) { 2419 if ( info. exists() ) {
2421 mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); 2420 mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) );
2422 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, 2421 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes,
2423 i18n("Overwrite!"), i18n("Cancel"), 0, 2422 i18n("Overwrite!"), i18n("Cancel"), 0,
2424 0, 1 ); 2423 0, 1 );
2425 if ( result != 0 ) { 2424 if ( result != 0 ) {
2426 createbup = false; 2425 createbup = false;
2427 } 2426 }
2428 } 2427 }
2429 if ( createbup ) { 2428 if ( createbup ) {
2430 if ( mView->exportVCalendar( fn ) ) { 2429 if ( mView->exportVCalendar( fn ) ) {
2431 KOPrefs::instance()->mLastVcalFile = fn; 2430 KOPrefs::instance()->mLastVcalFile = fn;
2432 if ( fn.length() > 20 ) 2431 if ( fn.length() > 20 )
2433 mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; 2432 mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ;
2434 else 2433 else
2435 mes = i18n("KO/Pi:Exported to %1").arg(fn ); 2434 mes = i18n("KO/Pi:Exported to %1").arg(fn );
2436 setCaption(mes); 2435 setCaption(mes);
2437 } 2436 }
2438 } 2437 }
2439 2438
2440} 2439}
2441QString MainWindow::sentSyncFile() 2440QString MainWindow::sentSyncFile()
2442{ 2441{
2443#ifdef DESKTOP_VERSION 2442#ifdef DESKTOP_VERSION
2444 return locateLocal( "tmp", "copysynccal.ics" ); 2443 return locateLocal( "tmp", "copysynccal.ics" );
2445#else 2444#else
2446 return QString( "/tmp/copysynccal.ics" ); 2445 return QString( "/tmp/copysynccal.ics" );
2447#endif 2446#endif
2448} 2447}
2449 2448
2450void MainWindow::syncFileRequest() 2449void MainWindow::syncFileRequest()
2451{ 2450{
2452 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { 2451 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) {
2453 mSyncManager->slotSyncMenu( 999 ); 2452 mSyncManager->slotSyncMenu( 999 );
2454 } 2453 }
2455 2454
2456 setCaption(i18n("Saving Data to temp file ..." )); 2455 setCaption(i18n("Saving Data to temp file ..." ));
2457 mView->saveCalendar( sentSyncFile() ); 2456 mView->saveCalendar( sentSyncFile() );
2458 setCaption(i18n("Data saved to temp file!" )); 2457 setCaption(i18n("Data saved to temp file!" ));
2459 2458
2460} 2459}
2461void MainWindow::getFile( bool success ) 2460void MainWindow::getFile( bool success )
2462{ 2461{
2463 if ( ! success ) { 2462 if ( ! success ) {
2464 setCaption( i18n("Error receiving file. Nothing changed!") ); 2463 setCaption( i18n("Error receiving file. Nothing changed!") );
2465 return; 2464 return;
2466 } 2465 }
2467 mView->openCalendar( sentSyncFile() ); 2466 mView->openCalendar( sentSyncFile() );
2468 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { 2467 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) {
2469 mSyncManager->slotSyncMenu( 999 ); 2468 mSyncManager->slotSyncMenu( 999 );
2470 } 2469 }
2471 setCaption( i18n("Pi-Sync successful!") ); 2470 setCaption( i18n("Pi-Sync successful!") );
2472} 2471}
2473void MainWindow::printListView() 2472void MainWindow::printListView()
2474{ 2473{
2475 2474
2476 QString message = i18n("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."); 2475 QString message = i18n("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.");
2477 2476
2478 KMessageBox::information( this, message); 2477 KMessageBox::information( this, message);
2479} 2478}
2480void MainWindow::printSel( ) 2479void MainWindow::printSel( )
2481{ 2480{
2482 mView->viewManager()->agendaView()->agenda()->printSelection(); 2481 mView->viewManager()->agendaView()->agenda()->printSelection();
2483} 2482}
2484 2483
2485void MainWindow::printCal() 2484void MainWindow::printCal()
2486{ 2485{
2487 mView->print();//mCp->showDialog(); 2486 mView->print();//mCp->showDialog();
2488} 2487}
2489 2488
2490 2489
2491#include "libkdepim/kdatepicker.h" 2490#include "libkdepim/kdatepicker.h"
2492#include <kdatetbl.h> 2491#include <kdatetbl.h>
2493 2492
2494void MainWindow::weekAction() 2493void MainWindow::weekAction()
2495{ 2494{
2496 int month; 2495 int month;
2497 KPopupFrame* popup = new KPopupFrame(this); 2496 KPopupFrame* popup = new KPopupFrame(this);
2498 KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); 2497 KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup);
2499 // ----- 2498 // -----
2500 picker->resize(picker->sizeHint()); 2499 picker->resize(picker->sizeHint());
2501 popup->setMainWidget(picker); 2500 popup->setMainWidget(picker);
2502 picker->setFocus(); 2501 picker->setFocus();
2503 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); 2502 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int)));
2504 int x = 0; 2503 int x = 0;
2505 int y = iconToolBar->height(); 2504 int y = iconToolBar->height();
2506 int dX = 0; 2505 int dX = 0;
2507 int dY = 0; 2506 int dY = 0;
2508 if ( iconToolBar->orientation () == Qt:: Horizontal ) { 2507 if ( iconToolBar->orientation () == Qt:: Horizontal ) {
2509 if ( iconToolBar->y() > height()/2 ) { 2508 if ( iconToolBar->y() > height()/2 ) {
2510 dY = picker->sizeHint().height()+8; 2509 dY = picker->sizeHint().height()+8;
2511 y = 0; 2510 y = 0;
2512 } 2511 }
2513 } else { 2512 } else {
2514 if ( iconToolBar->x() > width()/2 ) { // right side 2513 if ( iconToolBar->x() > width()/2 ) { // right side
2515 x=0; 2514 x=0;
2516 dX= picker->sizeHint().width()+8; 2515 dX= picker->sizeHint().width()+8;
2517 y = 0; 2516 y = 0;
2518 } else { 2517 } else {
2519 x= iconToolBar->width(); 2518 x= iconToolBar->width();
2520 y = 0; 2519 y = 0;
2521 } 2520 }
2522 } 2521 }
2523 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); 2522 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
2524 if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) 2523 if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))))
2525 { 2524 {
2526 month = picker->getResult(); 2525 month = picker->getResult();
2527 emit selectWeek ( month ); 2526 emit selectWeek ( month );
2528 //qDebug("weekSelected %d ", month); 2527 //qDebug("weekSelected %d ", month);
2529 } 2528 }
2530 delete popup; 2529 delete popup;
2531} 2530}
2532 2531
2533void MainWindow::hideEvent ( QHideEvent * ) 2532void MainWindow::hideEvent ( QHideEvent * )
2534{ 2533{
2535 QString message; 2534 QString message;
2536 QDateTime nextA = mCalendar->nextAlarmEventDateTime(); 2535 QDateTime nextA = mCalendar->nextAlarmEventDateTime();
2537 if ( nextA.isValid() ) { 2536 if ( nextA.isValid() ) {
2538 QString sum = mCalendar->nextSummary(); 2537 QString sum = mCalendar->nextSummary();
2539 2538
2540 message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false)); 2539 message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false));
2541 setCaption( message ); 2540 setCaption( message );
2542 } 2541 }
2543} 2542}
2544 2543
2545void MainWindow::resizeEvent( QResizeEvent* e) 2544void MainWindow::resizeEvent( QResizeEvent* e)
2546{ 2545{
2547#ifndef DESKTOP_VERSION 2546#ifndef DESKTOP_VERSION
2548 if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar && QApplication::desktop()->width() > 320) { 2547 if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar && QApplication::desktop()->width() > 320) {
2549 if (QApplication::desktop()->width() > QApplication::desktop()->height() ) 2548 if (QApplication::desktop()->width() > QApplication::desktop()->height() )
2550 filterToolBar->hide(); 2549 filterToolBar->hide();
2551 else 2550 else
2552 filterToolBar->show(); 2551 filterToolBar->show();
2553 } 2552 }
2554#endif 2553#endif
2555 QMainWindow::resizeEvent( e); 2554 QMainWindow::resizeEvent( e);
2556} 2555}
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h
index 9a8bc7f..c9817c3 100644
--- a/korganizer/mainwindow.h
+++ b/korganizer/mainwindow.h
@@ -1,169 +1,170 @@
1#ifndef KORGE_MAINWINDOW_H 1#ifndef KORGE_MAINWINDOW_H
2#define KORGE_MAINWINDOW_H 2#define KORGE_MAINWINDOW_H
3 3
4#include <qmainwindow.h> 4#include <qmainwindow.h>
5#include <qtimer.h> 5#include <qtimer.h>
6#include <qdict.h> 6#include <qdict.h>
7#include <qfile.h> 7#include <qfile.h>
8#include <qmenubar.h> 8#include <qmenubar.h>
9#include <qtextstream.h> 9#include <qtextstream.h>
10#include <qregexp.h> 10#include <qregexp.h>
11 11
12#include <libkcal/incidence.h> 12#include <libkcal/incidence.h>
13#include <ksyncmanager.h> 13#include <ksyncmanager.h>
14#ifndef DESKTOP_VERSION 14#ifndef DESKTOP_VERSION
15#include <qcopchannel_qws.h> 15#include <qcopchannel_qws.h>
16#endif 16#endif
17class QAction; 17class QAction;
18class CalendarView; 18class CalendarView;
19class KSyncProfile; 19class KSyncProfile;
20#ifdef DESKTOP_VERSION 20#ifdef DESKTOP_VERSION
21 21
22#define QPEToolBar QToolBar 22#define QPEToolBar QToolBar
23#define QPEMenuBar QMenuBar 23#define QPEMenuBar QMenuBar
24#endif 24#endif
25class QPEToolBar; 25class QPEToolBar;
26class QPEMenuBar; 26class QPEMenuBar;
27 27
28 28
29namespace KCal { 29namespace KCal {
30class CalendarLocal; 30class CalendarLocal;
31} 31}
32 32
33using namespace KCal; 33using namespace KCal;
34 34
35class MainWindow : public QMainWindow 35class MainWindow : public QMainWindow
36{ 36{
37 Q_OBJECT 37 Q_OBJECT
38 public: 38 public:
39 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); 39 MainWindow( QWidget *parent = 0, const char *name = 0, QString command = "");
40 ~MainWindow(); 40 ~MainWindow();
41 bool beamReceiveEnabled(); 41 bool beamReceiveEnabled();
42 static QString defaultFileName(); 42 static QString defaultFileName();
43 static QString syncFileName(); 43 static QString syncFileName();
44 static QString resourcePath(); 44 static QString resourcePath();
45 public slots: 45 public slots:
46 void setUsesBigPixmaps ( bool ); 46 void setUsesBigPixmaps ( bool );
47 void setCaption ( const QString & ); 47 void setCaption ( const QString & );
48 void updateWeekNum(const KCal::DateList &); 48 void updateWeekNum(const KCal::DateList &);
49 void updateWeek(QDate); 49 void updateWeek(QDate);
50 void updateFilterToolbar(); 50 void updateFilterToolbar();
51 virtual void showMaximized (); 51 virtual void showMaximized ();
52 void configureAgenda( int ); 52 void configureAgenda( int );
53 void recieve( const QCString& msg, const QByteArray& data ); 53 void recieve( const QCString& msg, const QByteArray& data );
54 protected slots: 54 protected slots:
55 void setCaptionToDates(); 55 void setCaptionToDates();
56 void weekAction(); 56 void weekAction();
57 void about(); 57 void about();
58 void licence(); 58 void licence();
59 void faq(); 59 void faq();
60 void usertrans(); 60 void usertrans();
61 void features(); 61 void features();
62 void synchowto(); 62 void synchowto();
63 void storagehowto(); 63 void storagehowto();
64 void timetrackinghowto(); 64 void timetrackinghowto();
65 void kdesynchowto(); 65 void kdesynchowto();
66 void multisynchowto(); 66 void multisynchowto();
67 void whatsNew(); 67 void whatsNew();
68 void keyBindings(); 68 void keyBindings();
69 void aboutAutoSaving();; 69 void aboutAutoSaving();;
70 void aboutKnownBugs(); 70 void aboutKnownBugs();
71 71
72 void processIncidenceSelection( Incidence * ); 72 void processIncidenceSelection( Incidence * );
73 73
74 void importQtopia(); 74 void importQtopia();
75 void importBday(); 75 void importBday();
76 void importOL(); 76 void importOL();
77 void importIcal(); 77 void importIcal();
78 void importFile( QString, bool ); 78 void importFile( QString, bool );
79 void quickImportIcal(); 79 void quickImportIcal();
80 80
81 void slotModifiedChanged( bool ); 81 void slotModifiedChanged( bool );
82 82
83 void save(); 83 void save();
84 void backupAllFiles();
84 void saveStopTimer(); 85 void saveStopTimer();
85 void configureToolBar( int ); 86 void configureToolBar( int );
86 void printSel(); 87 void printSel();
87 void printCal(); 88 void printCal();
88 void printListView(); 89 void printListView();
89 void saveCalendar(); 90 void saveCalendar();
90 void loadCalendar(); 91 void loadCalendar();
91 void exportVCalendar(); 92 void exportVCalendar();
92 void fillFilterMenu(); 93 void fillFilterMenu();
93 void fillFilterMenuTB(); 94 void fillFilterMenuTB();
94 void selectFilter( int ); 95 void selectFilter( int );
95 void fillFilterMenuPopup(); 96 void fillFilterMenuPopup();
96 void selectFilterPopup( int ); 97 void selectFilterPopup( int );
97 void exportToPhone( int ); 98 void exportToPhone( int );
98 void toggleBeamReceive(); 99 void toggleBeamReceive();
99 void disableBR(bool); 100 void disableBR(bool);
100 signals: 101 signals:
101 void selectWeek ( int ); 102 void selectWeek ( int );
102 private slots: 103 private slots:
103 void showConfigureAgenda(); 104 void showConfigureAgenda();
104 void getFile( bool ); 105 void getFile( bool );
105 void syncFileRequest(); 106 void syncFileRequest();
106 107
107 protected: 108 protected:
108 void hideEvent ( QHideEvent * ); 109 void hideEvent ( QHideEvent * );
109 QString sentSyncFile(); 110 QString sentSyncFile();
110 void displayText( QString, QString); 111 void displayText( QString, QString);
111 void enableIncidenceActions( bool ); 112 void enableIncidenceActions( bool );
112 113
113 private: 114 private:
114 bool mBRdisabled; 115 bool mBRdisabled;
115#ifndef DESKTOP_VERSION 116#ifndef DESKTOP_VERSION
116 QCopChannel* infrared; 117 QCopChannel* infrared;
117#endif 118#endif
118 QAction* brAction; 119 QAction* brAction;
119 KSyncManager* mSyncManager; 120 KSyncManager* mSyncManager;
120 bool mClosed; 121 bool mClosed;
121 void saveOnClose(); 122 void saveOnClose();
122 bool mFlagKeyPressed; 123 bool mFlagKeyPressed;
123 bool mBlockAtStartup; 124 bool mBlockAtStartup;
124 QPEToolBar *iconToolBar; 125 QPEToolBar *iconToolBar;
125 QPEToolBar *viewToolBar; 126 QPEToolBar *viewToolBar;
126 QPEToolBar *navigatorToolBar; 127 QPEToolBar *navigatorToolBar;
127 QPEToolBar *filterToolBar; 128 QPEToolBar *filterToolBar;
128 QMenuBar *filterMenubar; 129 QMenuBar *filterMenubar;
129 QPopupMenu * filterPopupMenu; 130 QPopupMenu * filterPopupMenu;
130 void initActions(); 131 void initActions();
131 void setDefaultPreferences(); 132 void setDefaultPreferences();
132 void resizeEvent( QResizeEvent* e); 133 void resizeEvent( QResizeEvent* e);
133 void keyPressEvent ( QKeyEvent * ) ; 134 void keyPressEvent ( QKeyEvent * ) ;
134 void keyReleaseEvent ( QKeyEvent * ) ; 135 void keyReleaseEvent ( QKeyEvent * ) ;
135 QPopupMenu *configureToolBarMenu; 136 QPopupMenu *configureToolBarMenu;
136 QPopupMenu *selectFilterMenu; 137 QPopupMenu *selectFilterMenu;
137 QPopupMenu *selectFilterMenuTB; 138 QPopupMenu *selectFilterMenuTB;
138 QPopupMenu *configureAgendaMenu, *syncMenu; 139 QPopupMenu *configureAgendaMenu, *syncMenu;
139 CalendarLocal *mCalendar; 140 CalendarLocal *mCalendar;
140 CalendarView *mView; 141 CalendarView *mView;
141 QAction *mNewSubTodoAction; 142 QAction *mNewSubTodoAction;
142 QAction *mWeekAction; 143 QAction *mWeekAction;
143 QFont mWeekFont; 144 QFont mWeekFont;
144 QPixmap mWeekPixmap; 145 QPixmap mWeekPixmap;
145 QColor mWeekBgColor; 146 QColor mWeekBgColor;
146 147
147 QAction *mShowAction; 148 QAction *mShowAction;
148 QAction *mEditAction; 149 QAction *mEditAction;
149 QAction *mDeleteAction; 150 QAction *mDeleteAction;
150 QAction *mCloneAction; 151 QAction *mCloneAction;
151 QAction *mMoveAction; 152 QAction *mMoveAction;
152 QAction *mBeamAction; 153 QAction *mBeamAction;
153 QAction *mCancelAction; 154 QAction *mCancelAction;
154 155
155 QAction *mToggleNav; 156 QAction *mToggleNav;
156 QAction *mToggleFilter; 157 QAction *mToggleFilter;
157 QAction *mToggleAllday; 158 QAction *mToggleAllday;
158 QAction *actionFilterMenuTB; 159 QAction *actionFilterMenuTB;
159 160
160 void closeEvent( QCloseEvent* ce ); 161 void closeEvent( QCloseEvent* ce );
161 QTimer mSaveTimer; 162 QTimer mSaveTimer;
162 //bool mBlockSaveFlag; 163 //bool mBlockSaveFlag;
163 bool mCalendarModifiedFlag; 164 bool mCalendarModifiedFlag;
164 QPixmap loadPixmap( QString ); 165 QPixmap loadPixmap( QString );
165 QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80; 166 QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80;
166}; 167};
167 168
168 169
169#endif 170#endif