summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-31 11:26:51 (UTC)
committer zautrix <zautrix>2005-03-31 11:26:51 (UTC)
commitc0fa26aa3b33c293853bdd7d028ddb0545e33c85 (patch) (unidiff)
tree12bbb65fb6d235415bd7a7007c1e019ccfcf97ac
parentf39d5000ed2f9a436ee94cbd42f840651afa89d6 (diff)
downloadkdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.zip
kdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.tar.gz
kdepimpi-c0fa26aa3b33c293853bdd7d028ddb0545e33c85.tar.bz2
many fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/korganizer/germantranslation.txt16
-rw-r--r--kabc/phonenumber.cpp34
-rw-r--r--kaddressbook/emaileditwidget.cpp2
-rw-r--r--kaddressbook/phoneeditwidget.cpp37
-rw-r--r--korganizer/mainwindow.cpp22
5 files changed, 73 insertions, 38 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt
index 1a045f3..f8f8b96 100644
--- a/bin/kdepim/korganizer/germantranslation.txt
+++ b/bin/kdepim/korganizer/germantranslation.txt
@@ -1,1331 +1,1343 @@
1{ "10 minutes","10 Minuten" }, 1{ "10 minutes","10 Minuten" },
2{ "10th","10." }, 2{ "10th","10." },
3{ "11th","11." }, 3{ "11th","11." },
4{ "12 pm Format","12 AM/PM Format" }, 4{ "12 pm Format","12 AM/PM Format" },
5{ "12th","12." }, 5{ "12th","12." },
6{ "13th","13." }, 6{ "13th","13." },
7{ "14th","14." }, 7{ "14th","14." },
8{ "15th","15." }, 8{ "15th","15." },
9{ "16th","16." }, 9{ "16th","16." },
10{ "17th","17." }, 10{ "17th","17." },
11{ "18th","18." }, 11{ "18th","18." },
12{ "19th","19." }, 12{ "19th","19." },
13{ "1 Day","1 Tag" }, 13{ "1 Day","1 Tag" },
14{ "1 h","1 Std" }, 14{ "1 h","1 Std" },
15{ "1 (high)","1 (hoch)" }, 15{ "1 (high)","1 (hoch)" },
16{ "5 (low)","5" }, 16{ "5 (low)","5" },
17{ "1st","1." }, 17{ "1st","1." },
18{ "20th","20." }, 18{ "20th","20." },
19{ "21st","21." }, 19{ "21st","21." },
20{ "22nd","22." }, 20{ "22nd","22." },
21{ "23rd","23." }, 21{ "23rd","23." },
22{ "24:00 Hour Format","24:00 Stunden Format" }, 22{ "24:00 Hour Format","24:00 Stunden Format" },
23{ "24th","24." }, 23{ "24th","24." },
24{ "25th","25." }, 24{ "25th","25." },
25{ "26th","26." }, 25{ "26th","26." },
26{ "27th","27." }, 26{ "27th","27." },
27{ "28th","28." }, 27{ "28th","28." },
28{ "29th","29." }, 28{ "29th","29." },
29{ "2nd","2." }, 29{ "2nd","2." },
30{ "30 minutes","30 Minuten" }, 30{ "30 minutes","30 Minuten" },
31{ "30th","30." }, 31{ "30th","30." },
32{ "31st","31." }, 32{ "31st","31." },
33{ "3rd","3." }, 33{ "3rd","3." },
34{ "4th","4." }, 34{ "4th","4." },
35{ "5 (lowest)","5 (Niedrigster)" }, 35{ "5 (lowest)","5 (Niedrigster)" },
36{ "5th","5." }, 36{ "5th","5." },
37{ "6th","6." }, 37{ "6th","6." },
38{ "7th","7." }, 38{ "7th","7." },
39{ "8th","8." }, 39{ "8th","8." },
40{ "9th","9." }, 40{ "9th","9." },
41{ "About...","Über..." }, 41{ "About...","Über..." },
42{ "&Accept","&Akzeptieren" }, 42{ "&Accept","&Akzeptieren" },
43{ "Accept","Akzeptieren" }, 43{ "Accept","Akzeptieren" },
44{ "Accept A&ll","A&lles Akzepieren" }, 44{ "Accept A&ll","A&lles Akzepieren" },
45{ "Access:","Zugriff:" }, 45{ "Access:","Zugriff:" },
46{ "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, 46{ "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" },
47{ "Actions","Aktionen" }, 47{ "Actions","Aktionen" },
48{ "Add Filter","Filter Hinzufügen" }, 48{ "Add Filter","Filter Hinzufügen" },
49{ "&Add","Hinzufügen" }, 49{ "&Add","Hinzufügen" },
50{ "Add","Hinzufügen" }, 50{ "Add","Hinzufügen" },
51{ "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, 51{ "Additional email addresses:","Zusätzliche E-Mail Adressen:" },
52{ "Additional email address:","Zusätzliche E-Mail Adresse:" }, 52{ "Additional email address:","Zusätzliche E-Mail Adresse:" },
53{ "&Addressbook","&Adressbuch" }, 53{ "&Addressbook","&Adressbuch" },
54{ "Address &Book...","Adress&buch..." }, 54{ "Address &Book...","Adress&buch..." },
55{ "Agenda Size","Agende Größe" }, 55{ "Agenda Size","Agende Größe" },
56{ "Agenda Size:","Größe der Agenda:" }, 56{ "Agenda Size:","Größe der Agenda:" },
57{ "Agenda view:","Agenda Ansicht:" }, 57{ "Agenda view:","Agenda Ansicht:" },
58{ "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, 58{ "Agenda view background color:","Hintergrund der Agenda Ansicht:" },
59{ "All attendees","Alle Teilnehmer" }, 59{ "All attendees","Alle Teilnehmer" },
60{ "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, 60{ "AllDayAgenda Height:","Höhe Ganztages Agenda:" },
61{ "All day event","Ganztägig" }, 61{ "All day event","Ganztägig" },
62{ "Anonymous","Anonym" }, 62{ "Anonymous","Anonym" },
63{ "Apply","Anwenden" }, 63{ "Apply","Anwenden" },
64{ "Apr","Apr" }, 64{ "Apr","Apr" },
65{ "April","April" }, 65{ "April","April" },
66{"Ask for every entry on conflict","Frage bei Konflikten nach"}, 66{"Ask for every entry on conflict","Frage bei Konflikten nach"},
67{ "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, 67{ "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" },
68{ "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, 68{ "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" },
69{ "Attendees","Teilnehmer" }, 69{ "Attendees","Teilnehmer" },
70{ "Aug","Aug" }, 70{ "Aug","Aug" },
71{ "August","August" }, 71{ "August","August" },
72{ "Auto-Save","Automatisches Abspeichern" }, 72{ "Auto-Save","Automatisches Abspeichern" },
73{ "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, 73{ "Auto save delay in minutes:","Verzög.autom.Speichern in Min" },
74{ "Auto saving...","Automatische Sicherung..." }, 74{ "Auto saving...","Automatische Sicherung..." },
75{ "Begin on:","Starte mit:" }, 75{ "Begin on:","Starte mit:" },
76{ "Begins on: %1","Starte mit: %1" }, 76{ "Begins on: %1","Starte mit: %1" },
77{ "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, 77{ "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" },
78{ "<b>On:</b> %1","<b>Am:</b> %1" }, 78{ "<b>On:</b> %1","<b>Am:</b> %1" },
79{ "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, 79{ "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" },
80{ "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, 80{ "<b>Original event:</b><p>","<b>Original Termin:</b><p>" },
81{ " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, 81{ " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" },
82{ "Busy","Belegt" }, 82{ "Busy","Belegt" },
83{ "&Cancel","Abbre&chen" }, 83{ "&Cancel","Abbre&chen" },
84{ "Cancel","Abbrechen" }, 84{ "Cancel","Abbrechen" },
85{ "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, 85{ "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" },
86{ "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, 86{ "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." },
87{ "Categories...","Kategorien..." }, 87{ "Categories...","Kategorien..." },
88{ "Categories","Kategorien" }, 88{ "Categories","Kategorien" },
89{ "Category","Kategorie" }, 89{ "Category","Kategorie" },
90{ "Center View","Zentriere Ansicht" }, 90{ "Center View","Zentriere Ansicht" },
91{ "Change","Ändere" }, 91{ "Change","Ändere" },
92{ "Cinema","Kino" }, 92{ "Cinema","Kino" },
93{ "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, 93{ "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" },
94{ "Clone Item","Klone Eintrag" }, 94{ "Clone Item","Klone Eintrag" },
95{ "&Close","S&chließen" }, 95{ "&Close","S&chließen" },
96{ "Close","Schließen" }, 96{ "Close","Schließen" },
97{ "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, 97{ "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" },
98{ "Colors","Farben" }, 98{ "Colors","Farben" },
99{ "completed","erledigt" }, 99{ "completed","erledigt" },
100{ "completed on %1","erledigt am %1" }, 100{ "completed on %1","erledigt am %1" },
101{ "Complete","Erledigt" }, 101{ "Complete","Erledigt" },
102{ "Confidential","Vertraulich" }, 102{ "Confidential","Vertraulich" },
103{ "Configure...","Einstellungen..." }, 103{ "Configure...","Einstellungen..." },
104{ "Confirm &deletes","Löschvogang bestätigen" }, 104{ "Confirm &deletes","Löschvogang bestätigen" },
105{ "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, 105{ "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." },
106{ "Counter-event Viewer","Terminzähler Ansicht" }, 106{ "Counter-event Viewer","Terminzähler Ansicht" },
107{ "Daily ending hour:","Feierabend:" }, 107{ "Daily ending hour:","Feierabend:" },
108{ "Daily starting hour:","Anfangszeit:" }, 108{ "Daily starting hour:","Anfangszeit:" },
109{ "Daily","Täglich" }, 109{ "Daily","Täglich" },
110{ "Date Format","Datums Format" }, 110{ "Date Format","Datums Format" },
111{ "Date Format:","Datums Format:" }, 111{ "Date Format:","Datums Format:" },
112{ "DateNavigator:(nr)","Datums Navigator" }, 112{ "DateNavigator:(nr)","Datums Navigator" },
113{ "Dates: ","Datum: " }, 113{ "Dates: ","Datum: " },
114{ "Date && Time","Datum && Zeit" }, 114{ "Date && Time","Datum && Zeit" },
115{ "Day begins at:","Der Tag beginnt um:" }, 115{ "Day begins at:","Der Tag beginnt um:" },
116{ "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, 116{ "Days in Next-X-Days:","Tage in Nächste-X-Tage:" },
117{ "Days in What's Next:","Tage in What's Next:" }, 117{ "Days in What's Next:","Tage in What's Next:" },
118{ "day(s)","Tag(e)" }, 118{ "day(s)","Tag(e)" },
119{ "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, 119{ "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" },
120{ "day","Tag" }, 120{ "day","Tag" },
121{ "Dec","Dez" }, 121{ "Dec","Dez" },
122{ "December","Dezember" }, 122{ "December","Dezember" },
123{ "Default alarm time:","Standard Alarmzeit:" }, 123{ "Default alarm time:","Standard Alarmzeit:" },
124{ "Default appointment time:","Standard Termin Startzeit:" }, 124{ "Default appointment time:","Standard Termin Startzeit:" },
125{ "Default event color:","Standard Terminfarbe:" }, 125{ "Default event color:","Standard Terminfarbe:" },
126{ "Default","Standard" }, 126{ "Default","Standard" },
127{ "Def. duration of new app.:","Standard Termin Länge:" }, 127{ "Def. duration of new app.:","Standard Termin Länge:" },
128{ "Delete all completed To-Dos?","Alle bereits erledigten Todos löschen?" }, 128{ "Delete all completed To-Dos?","Alle bereits erledigten Todos löschen?" },
129{ "Delete All","Lösche alles" }, 129{ "Delete All","Lösche alles" },
130{ "Delete all selected","Lösche alle Selektierten" }, 130{ "Delete all selected","Lösche alle Selektierten" },
131{ "Delete Current","Aktuellen löschen" }, 131{ "Delete Current","Aktuellen löschen" },
132{ "Delete Event...","Lösche Termin..." }, 132{ "Delete Event...","Lösche Termin..." },
133{ "Delete Event","Lösche Termin" }, 133{ "Delete Event","Lösche Termin" },
134{ "&Delete","Löschen" }, 134{ "&Delete","Löschen" },
135{ "Delete...","Löschen..." }, 135{ "Delete...","Löschen..." },
136{ "Delete","Löschen" }, 136{ "Delete","Löschen" },
137{ "Delete Todo...","Lösche Todo..." }, 137{ "Delete Todo...","Lösche Todo..." },
138{ "Delete To-Do","Lösche Todo" }, 138{ "Delete To-Do","Lösche Todo" },
139{ "Deleting item %d ...","Lösche Eintrag %d..." }, 139{ "Deleting item %d ...","Lösche Eintrag %d..." },
140{ "Descriptions","Beschreibungen" }, 140{ "Descriptions","Beschreibungen" },
141{ "Deselect all","Deselektiere Alle" }, 141{ "Deselect all","Deselektiere Alle" },
142{ "Details","Details" }, 142{ "Details","Details" },
143{ "Dinner","Abendessen" }, 143{ "Dinner","Abendessen" },
144{ "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, 144{ "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" },
145{ "Due Date","Fällig am" }, 145{ "Due Date","Fällig am" },
146{ "Due: ","Fällig: "}, 146{ "Due: ","Fällig: "},
147{ "Due Time","Fällig um" }, 147{ "Due Time","Fällig um" },
148{ "Due:","Fällig:"}, 148{ "Due:","Fällig:"},
149{ "Duration: ","Dauer: " }, 149{ "Duration: ","Dauer: " },
150{ "Edit...","Bearbeite..." }, 150{ "Edit...","Bearbeite..." },
151{ "Edit","Bearbeite" }, 151{ "Edit","Bearbeite" },
152{ "Edit Event...","Bearbeite Termin..." }, 152{ "Edit Event...","Bearbeite Termin..." },
153{ "Edit Event","Bearbeite Termin" }, 153{ "Edit Event","Bearbeite Termin" },
154{ "Edit exceptions","Bearbeite Ausnahmen" }, 154{ "Edit exceptions","Bearbeite Ausnahmen" },
155{ "EditorBox:","Editor Fenster:" }, 155{ "EditorBox:","Editor Fenster:" },
156{ "Edit Recurrence Range","Bearbeite Wiederholung" }, 156{ "Edit Recurrence Range","Bearbeite Wiederholung" },
157{ "Edit Todo...","Berabeite Todo..." }, 157{ "Edit Todo...","Berabeite Todo..." },
158{ "Edit To-Do","Todo bearbeiten" }, 158{ "Edit To-Do","Todo bearbeiten" },
159{ "E&mail address:","E&mail Adresse:" }, 159{ "E&mail address:","E&mail Adresse:" },
160{ "(EmptyEmail)","(KeineEmail)" }, 160{ "(EmptyEmail)","(KeineEmail)" },
161{ "(EmptyName)","(KeinName)" }, 161{ "(EmptyName)","(KeinName)" },
162{ "Enable Recurrence","Wiederholender Termin" }, 162{ "Enable Recurrence","Wiederholender Termin" },
163{ "End after","Endet nach"}, 163{ "End after","Endet nach"},
164{ "End by:","Endet am"}, 164{ "End by:","Endet am"},
165{ "End Date","End Datum" }, 165{ "End Date","End Datum" },
166{ "End:","Ende:" }, 166{ "End:","Ende:" },
167{ "End Time","End Zeit" }, 167{ "End Time","End Zeit" },
168{ "English","Englisch" }, 168{ "English","Englisch" },
169{ "Event","Termin" }, 169{ "Event","Termin" },
170{ "Event list","Termin Liste" }, 170{ "Event list","Termin Liste" },
171{ "Events","Termine" }, 171{ "Events","Termine" },
172{ "Event Viewer:","Termin Übersicht:" }, 172{ "Event Viewer:","Termin Übersicht:" },
173{ "every","jede" }, 173{ "every","jede" },
174{ "Exceptions...","Ausnahmen..." }, 174{ "Exceptions...","Ausnahmen..." },
175{ "Exceptions","Ausnahmen" }, 175{ "Exceptions","Ausnahmen" },
176{ "Exclude holidays","Ohne freie Tage" }, 176{ "Exclude holidays","Ohne freie Tage" },
177{ "Exclude Saturdays","Ohne Samstage" }, 177{ "Exclude Saturdays","Ohne Samstage" },
178{ "Feb","Feb" }, 178{ "Feb","Feb" },
179{ "February","Februar" }, 179{ "February","Februar" },
180{ "&Find","Suche!" }, 180{ "&Find","Suche!" },
181{ "Fonts","Schriftart" }, 181{ "Fonts","Schriftart" },
182{ "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, 182{ "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" },
183{ "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, 183{ "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"},
184{ "Free","Frei" }, 184{ "Free","Frei" },
185{ "Friday","Freitag" }, 185{ "Friday","Freitag" },
186{ "Fri","Fr" }, 186{ "Fri","Fr" },
187{ "From:","Vom:" }, 187{ "From:","Vom:" },
188{ "Full &name:","Vor- und &Nachname:" }, 188{ "Full &name:","Vor- und &Nachname:" },
189{ "General","Allgemein" }, 189{ "General","Allgemein" },
190{ "German","Deutsch" }, 190{ "German","Deutsch" },
191{ "Gifts","Geschenke" }, 191{ "Gifts","Geschenke" },
192{ "Go to Today","Heute anzeigen" }, 192{ "Go to Today","Heute anzeigen" },
193{ "Help","Hilfe" }, 193{ "Help","Hilfe" },
194{ "Hide Dates","Daten ausblenden" }, 194{ "Hide Dates","Daten ausblenden" },
195{ "Highlight color:","Markierungen:" }, 195{ "Highlight color:","Markierungen:" },
196{ "Holiday color:","Freie Tage:" }, 196{ "Holiday color:","Freie Tage:" },
197{ "hour(s)","Stunde(n)" }, 197{ "hour(s)","Stunde(n)" },
198{ "In %1 days: ","In %1 Tagen: " }, 198{ "In %1 days: ","In %1 Tagen: " },
199{ "Incomplete Todo:","Unerledigte Aufgaben:" }, 199{ "Incomplete Todo:","Unerledigte Aufgaben:" },
200{ "Information","Information" }, 200{ "Information","Information" },
201{ "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, 201{ "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" },
202{ "Jan","Jan" }, 202{ "Jan","Jan" },
203{ "January","Januar" }, 203{ "January","Januar" },
204{ "JournalView:","Journal Ansicht:" }, 204{ "JournalView:","Journal Ansicht:" },
205{ "Journals","Journale" }, 205{ "Journals","Journale" },
206{ "Jul","Jul" }, 206{ "Jul","Jul" },
207{ "July","Juli" }, 207{ "July","Juli" },
208{ "Jump to date","Springe zum Datum" }, 208{ "Jump to date","Springe zum Datum" },
209{ "June","Juni" }, 209{ "June","Juni" },
210{ "Jun","Jun" }, 210{ "Jun","Jun" },
211{ "Key Bindings...","Tastenzuordnung..." }, 211{ "Key Bindings...","Tastenzuordnung..." },
212{ "Kids","Kinder" }, 212{ "Kids","Kinder" },
213{ "Known Problems...","Bekannte Probleme..." }, 213{ "Known Problems...","Bekannte Probleme..." },
214{ "KO/Pi Find ","KO/Pi Suchdialog " }, 214{ "KO/Pi Find ","KO/Pi Suchdialog " },
215{ "KO/Pi Find: ","KO/Pi Suchen: " }, 215{ "KO/Pi Find: ","KO/Pi Suchen: " },
216{ "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, 216{ "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." },
217{ "Language:(needs restart)","Sprache (Neustart!)" }, 217{ "Language:(needs restart)","Sprache (Neustart!)" },
218{ "Language:","Sprache" }, 218{ "Language:","Sprache" },
219{ "Large","Etwas mehr" }, 219{ "Large","Etwas mehr" },
220{ "List View:","Listenansicht:" }, 220{ "List View:","Listenansicht:" },
221{ "List View","Listenansicht" }, 221{ "List View","Listenansicht" },
222{ "Load/Save","Laden/Speichern" }, 222{ "Load/Save","Laden/Speichern" },
223{ "Load Template","Lade Vorlage" }, 223{ "Load Template","Lade Vorlage" },
224{ "Locale","Localisation" }, 224{ "Locale","Localisation" },
225{ "Local temp file:","Lokale temp. Datei:" }, 225{ "Local temp file:","Lokale temp. Datei:" },
226{ "Location: ","Ort: " }, 226{ "Location: ","Ort: " },
227{ "Location:","Ort:" }, 227{ "Location:","Ort:" },
228{ "Mail client","Mail Programm" }, 228{ "Mail client","Mail Programm" },
229{ "Mail Client","Mail Programm" }, 229{ "Mail Client","Mail Programm" },
230{ "March","März" }, 230{ "March","März" },
231{ "Mar","Mär" }, 231{ "Mar","Mär" },
232{ "May","Mai" }, 232{ "May","Mai" },
233{ "M. Bains line:","M. Bains Linie:" }, 233{ "M. Bains line:","M. Bains Linie:" },
234{ "Medium","Medium" }, 234{ "Medium","Medium" },
235{ "Method","Methode" }, 235{ "Method","Methode" },
236{ "minute(s)","Minute(n)" }, 236{ "minute(s)","Minute(n)" },
237{ "Monday","Montag" }, 237{ "Monday","Montag" },
238{ "Mon","Mo" }, 238{ "Mon","Mo" },
239{ "Monthly","Monatlich" }, 239{ "Monthly","Monatlich" },
240{ "Month not long enough","Monat ist nicht lang genug" }, 240{ "Month not long enough","Monat ist nicht lang genug" },
241{ "month(s)","Monat(e)" }, 241{ "month(s)","Monat(e)" },
242{ "Month view:","Monatsansicht:" }, 242{ "Month view:","Monatsansicht:" },
243{ "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, 243{ "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" },
244{ "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, 244{ "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" },
245{ "Move &Down","Nach unten verschieben" }, 245{ "Move &Down","Nach unten verschieben" },
246{ "Move &Up","Nach oben verschieben" }, 246{ "Move &Up","Nach oben verschieben" },
247{ "Name:","Name:" }, 247{ "Name:","Name:" },
248{ "Name","Name" }, 248{ "Name","Name" },
249{ "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, 249{ "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" },
250{ "%n Days","%n Tage" }, 250{ "%n Days","%n Tage" },
251{ "Never","Nie" }, 251{ "Never","Nie" },
252{ "New event...","Neuer Termin..." }, 252{ "New event...","Neuer Termin..." },
253{ "New event","Neuer Termin" }, 253{ "New event","Neuer Termin" },
254{ "New Event...","Neuer Termin..." }, 254{ "New Event...","Neuer Termin..." },
255{ "New Events/Todos should","Neue Termine/Todos sollten" }, 255{ "New Events/Todos should","Neue Termine/Todos sollten" },
256{ "&New","&Neu" }, 256{ "&New","&Neu" },
257{ "New","Neu", }, 257{ "New","Neu", },
258{ "New Sub-Todo...","Neues Sub-Todo..." }, 258{ "New Sub-Todo...","Neues Sub-Todo..." },
259{ "New Todo...","Neues Todo..." }, 259{ "New Todo...","Neues Todo..." },
260{ "Next Alarm: ","Nächster Alarm: ", }, 260{ "Next Alarm: ","Nächster Alarm: ", },
261{ "&Next Day","&Nächster Tag", }, 261{ "&Next Day","&Nächster Tag", },
262{ "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, 262{ "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" },
263{ "Next month","Nächster Monat" }, 263{ "Next month","Nächster Monat" },
264{ "&Next Week","&Nächste Woche" }, 264{ "&Next Week","&Nächste Woche" },
265{ "Next year","Nächstes Jahr" }, 265{ "Next year","Nächstes Jahr" },
266{ "Next Year","Nächstes Jahr" }, 266{ "Next Year","Nächstes Jahr" },
267{ "%n h","%n Std" }, 267{ "%n h","%n Std" },
268{ "No ending date","Kein End-Datum", }, 268{ "No ending date","Kein End-Datum", },
269{ "No event, nothing to do.","Kein Termin, nichts zu tun.", }, 269{ "No event, nothing to do.","Kein Termin, nichts zu tun.", },
270{ "No event selected.","Kein Termin selektiert" }, 270{ "No event selected.","Kein Termin selektiert" },
271{ "No","Nein" }, 271{ "No","Nein" },
272{ "No program set","Kein Programm ausgewählt", }, 272{ "No program set","Kein Programm ausgewählt", },
273{ "Normal","Normal" }, 273{ "Normal","Normal" },
274{ "[No selection]","Keine Selektion", }, 274{ "[No selection]","Keine Selektion", },
275{ "No sound set","Kein Sound ausgewählt", }, 275{ "No sound set","Kein Sound ausgewählt", },
276{ "no time ","keine Zeit ", }, 276{ "no time ","keine Zeit ", },
277{ "no time","keine Zeit", }, 277{ "no time","keine Zeit", },
278{ "No Time","Keine Zeit" }, 278{ "No Time","Keine Zeit" },
279{ "November","November" }, 279{ "November","November" },
280{ "Nov","Nov", }, 280{ "Nov","Nov", },
281{ "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, 281{ "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" },
282{ "occurrence(s)","Vorkommen" }, 282{ "occurrence(s)","Vorkommen" },
283{ "October","Oktober" }, 283{ "October","Oktober" },
284{ "Oct","Okt", }, 284{ "Oct","Okt", },
285{ "O-due!","Ü-fällig! " }, 285{ "O-due!","Ü-fällig! " },
286{ "&OK","&OK" }, 286{ "&OK","&OK" },
287{ "Ok+Show!","Ok+Anzeigen" }, 287{ "Ok+Show!","Ok+Anzeigen" },
288{ "Organizer: %1","Organisator %1" }, 288{ "Organizer: %1","Organisator %1" },
289{ "Organizer","Organisator" }, 289{ "Organizer","Organisator" },
290{ "Owner: ","Besitzer: " }, 290{ "Owner: ","Besitzer: " },
291{ "Owner:","Besitzer:" }, 291{ "Owner:","Besitzer:" },
292{ "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, 292{ "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" },
293{ "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, 293{ "Pick a date to display","Wähle einen Tag zum anzeigen aus" },
294{ "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, 294{ "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."},
295{ "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, 295{ "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." },
296{ "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, 296{ "Please specify a valid start date.","Bitte gültiges Startdatum angeben." },
297{ "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, 297{ "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." },
298{ "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, 298{ "Please specify a valid start time.","Bitte gültige Startzeit angeben."},
299{ "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, 299{ "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." },
300{ "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, 300{ "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" },
301{ "&Previous Day","Vorheriger Tag" }, 301{ "&Previous Day","Vorheriger Tag" },
302{ "Previous month","Vorheriger Monat" }, 302{ "Previous month","Vorheriger Monat" },
303{ "Previous Month","Vorheriger Monat" }, 303{ "Previous Month","Vorheriger Monat" },
304{ "&Previous Week","Vorherige Woche" }, 304{ "&Previous Week","Vorherige Woche" },
305{ "Previous year","Vorheriges Jahr" }, 305{ "Previous year","Vorheriges Jahr" },
306{ "Previous Year","Vorheriges Jahr" }, 306{ "Previous Year","Vorheriges Jahr" },
307{ "Printing","Drucken" }, 307{ "Printing","Drucken" },
308{ "Priority:","Priorität:" }, 308{ "Priority:","Priorität:" },
309{ "Private","Privat" }, 309{ "Private","Privat" },
310{ "Proceed","Weiter" }, 310{ "Proceed","Weiter" },
311{ "Public","Öffentlich" }, 311{ "Public","Öffentlich" },
312{ "Purge","Entferne" }, 312{ "Purge","Entferne" },
313{ "Purge Completed","Entferne erledigte ToDos" }, 313{ "Purge Completed","Entferne erledigte ToDos" },
314{ "Purge To-Dos","Todos bereinigen" }, 314{ "Purge To-Dos","Todos bereinigen" },
315{ "read-only","schreibgeschützt" }, 315{ "read-only","schreibgeschützt" },
316{ "Recur every","Wiederh. alle" }, 316{ "Recur every","Wiederh. alle" },
317{ "Recur in the month of","Wiederh. im Monat" }, 317{ "Recur in the month of","Wiederh. im Monat" },
318{ "Recur on the","Wiederh. am" }, 318{ "Recur on the","Wiederh. am" },
319{ "Recur on this day","Wiederh. am diesen Tag" }, 319{ "Recur on this day","Wiederh. am diesen Tag" },
320{ "Recurrence Range...","Wiederholungs Zeitraum..." }, 320{ "Recurrence Range...","Wiederholungs Zeitraum..." },
321{ "Recurrence Range","Wiederholungs Zeitraum" }, 321{ "Recurrence Range","Wiederholungs Zeitraum" },
322{ "Recurrence Rule","Wiederholungs Regel" }, 322{ "Recurrence Rule","Wiederholungs Regel" },
323{ "Recurrence","Wiederholung" }, 323{ "Recurrence","Wiederholung" },
324{ "Recurs","Wiederholung" }, 324{ "Recurs","Wiederholung" },
325{"&Reject","Abweisen"}, 325{"&Reject","Abweisen"},
326{ "Reminder:","Alarm:" }, 326{ "Reminder:","Alarm:" },
327{ "Rem.:","Alarm:" }, 327{ "Rem.:","Alarm:" },
328{ "Rem.","Alarm:" }, 328{ "Rem.","Alarm:" },
329{ "Remote file:","Remote Datei:"}, 329{ "Remote file:","Remote Datei:"},
330{ "Remote IP:","Remote (ferne) IP:" }, 330{ "Remote IP:","Remote (ferne) IP:" },
331{ "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, 331{ "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " },
332{ "Remote user:","Remote Benutzer"}, 332{ "Remote user:","Remote Benutzer"},
333{ "&Remove","Entfe&rnen" }, 333{ "&Remove","Entfe&rnen" },
334{ "Remove","Entfernen" }, 334{ "Remove","Entfernen" },
335{ "Request response","Bemerkung anfordern" }, 335{ "Request response","Bemerkung anfordern" },
336{ "Role:","Rolle:" }, 336{ "Role:","Rolle:" },
337{ "Role","Rolle" }, 337{ "Role","Rolle" },
338{ "Sat","Sa" }, 338{ "Sat","Sa" },
339{ "Saturday","Samstag" }, 339{ "Saturday","Samstag" },
340{ "Search for:","Suche nach:" }, 340{ "Search for:","Suche nach:" },
341{ "Search In","Suche in" }, 341{ "Search In","Suche in" },
342{ "Search...","Suche..." }, 342{ "Search...","Suche..." },
343{ "Search","Suche" }, 343{ "Search","Suche" },
344{ "Select Addresses","Wähle Adressen" }, 344{ "Select Addresses","Wähle Adressen" },
345{ "Select all","Selektiere Alle" }, 345{ "Select all","Selektiere Alle" },
346{ "Select a month","Wähle Monat" }, 346{ "Select a month","Wähle Monat" },
347{ "Select a week","Wähle Woche" }, 347{ "Select a week","Wähle Woche" },
348{ "Select a year","Wähle Jahr" }, 348{ "Select a year","Wähle Jahr" },
349{ "Send directly","Sende direkt" }, 349{ "Send directly","Sende direkt" },
350{ "&Send Messages","&Sende Nachrichten", }, 350{ "&Send Messages","&Sende Nachrichten", },
351{ "Sep","Sep" }, 351{ "Sep","Sep" },
352{ "September","September" }, 352{ "September","September" },
353{ "Shopping","Einkaufen" }, 353{ "Shopping","Einkaufen" },
354{ "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" }, 354{ "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" },
355{ "Show Dates","Zeige Daten" }, 355{ "Show Dates","Zeige Daten" },
356{ "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, 356{ "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." },
357{ "Show Event...","Zeige Termin..." }, 357{ "Show Event...","Zeige Termin..." },
358{ "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, 358{ "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." },
359{ "Show Marcus Bains line","Zeige Marcus Bains Linie" }, 359{ "Show Marcus Bains line","Zeige Marcus Bains Linie" },
360{ "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, 360{ "Show summary after syncing","Zeige Zusammenfassung nach Sync." },
361{ "Show time as:","Zeige Zeit als" }, 361{ "Show time as:","Zeige Zeit als" },
362{ "Show Todo...","Zeige To-Do" }, 362{ "Show Todo...","Zeige To-Do" },
363{ "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"}, 363{ "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"},
364{ "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"}, 364{ "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"},
365{ "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, 365{ "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" },
366{ "&Show","Zeige" }, 366{ "&Show","Zeige" },
367{ "Show...","Zeige..." }, 367{ "Show...","Zeige..." },
368{ "Show","Zeige" }, 368{ "Show","Zeige" },
369{ "Small","Klein" }, 369{ "Small","Klein" },
370{ "Sorry","Entschuldigung" }, 370{ "Sorry","Entschuldigung" },
371{"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, 371{"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"},
372{ "Start:","Start:" }, 372{ "Start:","Start:" },
373{ "Start Date","Start Datum" }, 373{ "Start Date","Start Datum" },
374{ "Start date: %1","Start Datum: %1" }, 374{ "Start date: %1","Start Datum: %1" },
375{ "Start Time","Start Zeit" }, 375{ "Start Time","Start Zeit" },
376{ "Status:","Status:" }, 376{ "Status:","Status:" },
377{ "Status","Status:" }, 377{ "Status","Status:" },
378{ "Summaries","Titel" }, 378{ "Summaries","Titel" },
379{ "Summary:","Titel:" }, 379{ "Summary:","Titel:" },
380{ "Summary","Titel" }, 380{ "Summary","Titel" },
381{ "Sunday","Sonntag" }, 381{ "Sunday","Sonntag" },
382{ "Sun","So" }, 382{ "Sun","So" },
383{ "Sync preferences:","Sync Einstellungen" }, 383{ "Sync preferences:","Sync Einstellungen" },
384{ "Sync Prefs","Sync Einstellungen" }, 384{ "Sync Prefs","Sync Einstellungen" },
385{ "Syncronize","Daten abgleich" }, 385{ "Syncronize","Daten abgleich" },
386{ "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, 386{ "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" },
387{ "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, 387{ "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" },
388{ "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, 388{ "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" },
389{ "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, 389{ "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" },
390{ "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, 390{ "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" },
391{ "Template...","Vorlage..." }, 391{ "Template...","Vorlage..." },
392{ "This day","Dieser Tag" }, 392{ "This day","Dieser Tag" },
393{ "This is an experimental feature. ","Dieses Feature ist experimentel" }, 393{ "This is an experimental feature. ","Dieses Feature ist experimentel" },
394{ "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, 394{ "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." },
395{ "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, 395{ "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." },
396{ "Thu","Do" }, 396{ "Thu","Do" },
397{ "Thursday","Donnerstag" }, 397{ "Thursday","Donnerstag" },
398{ "Time associated","Mit Zeit" }, 398{ "Time associated","Mit Zeit" },
399{ "Time bar:","Uhrzeit Zeile:" }, 399{ "Time bar:","Uhrzeit Zeile:" },
400{ "Time && Date","Zeit und Datum" }, 400{ "Time && Date","Zeit und Datum" },
401{ "Time Format","Zeit Format" }, 401{ "Time Format","Zeit Format" },
402{ "Time Format(nr):","Zeit Format(Neustart!)" }, 402{ "Time Format(nr):","Zeit Format(Neustart!)" },
403{ "Date Labels:","Datumsleiste:" }, 403{ "Date Labels:","Datumsleiste:" },
404{ "Time: ","Zeit: " }, 404{ "Time: ","Zeit: " },
405{ "Timezone:","Zeitzone:" }, 405{ "Timezone:","Zeitzone:" },
406{ "To: ","Bis: " }, 406{ "To: ","Bis: " },
407{ "To:","Bis:" }, 407{ "To:","Bis:" },
408{ "Today: ","Heute: " }, 408{ "Today: ","Heute: " },
409{ "Todo due today color:","Heute fällige To-Do's" }, 409{ "Todo due today color:","Heute fällige To-Do's" },
410{ "To-do items:","To-Do items:" }, 410{ "To-do items:","To-Do items:" },
411{ "Todo overdue color:","Überfällige To-Do's" }, 411{ "Todo overdue color:","Überfällige To-Do's" },
412{ "Todo","Todo" }, 412{ "Todo","Todo" },
413{ "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, 413{ "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" },
414{ "ToDoView:","Todo Ansicht:" }, 414{ "ToDoView:","Todo Ansicht:" },
415{ "Toggle Alarm","Wechsle Alarm" }, 415{ "Toggle Alarm","Wechsle Alarm" },
416{ "Toggle Allday","Umschalten Ganztag" }, 416{ "Toggle Allday","Umschalten Ganztag" },
417{ "Tomorrow: ","Morgen: " }, 417{ "Tomorrow: ","Morgen: " },
418{ "Tue","Di" }, 418{ "Tue","Di" },
419{ "Tuesday","Dienstag" }, 419{ "Tuesday","Dienstag" },
420{ "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, 420{ "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" },
421{ "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, 421{ "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." },
422{ "Unknown","Unbekannt" }, 422{ "Unknown","Unbekannt" },
423{ "Up","Hinauf" }, 423{ "Up","Hinauf" },
424{ "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, 424{ "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" },
425{ "User defined","Benutzerdefiniert" }, 425{ "User defined","Benutzerdefiniert" },
426{ "User long date:","Format langes Datum:" }, 426{ "User long date:","Format langes Datum:" },
427{ "User short date:","Forma kurzes Datum:" }, 427{ "User short date:","Forma kurzes Datum:" },
428{ "View","Ansicht" }, 428{ "View","Ansicht" },
429{ "View Fonts","Schriftarten Ansichten" }, 429{ "View Fonts","Schriftarten Ansichten" },
430{ "Views","Ansichten" }, 430{ "Views","Ansichten" },
431{ "Wed","Mi" }, 431{ "Wed","Mi" },
432{ "Wednesday","Mittwoch" }, 432{ "Wednesday","Mittwoch" },
433{ "Week %1","Woche %1" }, 433{ "Week %1","Woche %1" },
434{ "Weekly","Wöchentlich" }, 434{ "Weekly","Wöchentlich" },
435{ "Week starts on Sunday","Woche beginnt Sonntags" }, 435{ "Week starts on Sunday","Woche beginnt Sonntags" },
436{ "What's Next View:","What's Next Anz." }, 436{ "What's Next View:","What's Next Anz." },
437{ "What's next ?","Was kommt als nächstes?(What's Next)" }, 437{ "What's next ?","Was kommt als nächstes?(What's Next)" },
438{ "Working Hours","Tägliche Arbeitszeit" }, 438{ "Working Hours","Tägliche Arbeitszeit" },
439{ "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, 439{ "Working hours color:","Arbeitszeit in der Agenda Ansicht:" },
440{ "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, 440{ "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" },
441{ "Write back synced file","Syncronisierte Datei zurückschreiben" }, 441{ "Write back synced file","Syncronisierte Datei zurückschreiben" },
442{ "Yearly","Jährlich" }, 442{ "Yearly","Jährlich" },
443{ "year(s)","Jahr(e)" }, 443{ "year(s)","Jahr(e)" },
444{ "Yes","Ja" }, 444{ "Yes","Ja" },
445{ "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, 445{ "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" },
446{ "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, 446{ "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." },
447{ "week(s) on:","Woche(n) am: " }, 447{ "week(s) on:","Woche(n) am: " },
448{ "Full menu bar(nr)","Volle Menuleiste(bn)" }, 448{ "Full menu bar(nr)","Volle Menuleiste(bn)" },
449{ "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, 449{ "Timezone has daylight saving","Zeitzone hat Sommerzeit" },
450{ "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, 450{ "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" },
451{ "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, 451{ "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." },
452{ "Daylight start:","Sommerzeit Beginn:" }, 452{ "Daylight start:","Sommerzeit Beginn:" },
453{ "Daylight end:","Sommerzeit Ende:" }, 453{ "Daylight end:","Sommerzeit Ende:" },
454{ "Time Zone","Zeitzone" }, 454{ "Time Zone","Zeitzone" },
455{ "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, 455{ "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" },
456{ "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, 456{ "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" },
457{ "minutely","minütlich" }, 457{ "minutely","minütlich" },
458{ "hourly","stündlich" }, 458{ "hourly","stündlich" },
459{ "daily","täglich" }, 459{ "daily","täglich" },
460{ "weekly","wöchentlich" }, 460{ "weekly","wöchentlich" },
461{ "monthly","monatlich" }, 461{ "monthly","monatlich" },
462{ "day-monthly","tag-monatlich" }, 462{ "day-monthly","tag-monatlich" },
463{ "month-yearly","monat-jährlich" }, 463{ "month-yearly","monat-jährlich" },
464{ "day-yearly","tag-jährlich" }, 464{ "day-yearly","tag-jährlich" },
465{ "position-yearly","pos-jährlich" }, 465{ "position-yearly","pos-jährlich" },
466{ "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, 466{ "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" },
467{ "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, 467{ "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" },
468{ "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, 468{ "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" },
469{ "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, 469{ "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" },
470{ "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, 470{ "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" },
471{ "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, 471{ "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." },
472{ "Event list view uses full window","Listenansicht nutzt Vollbild" }, 472{ "Event list view uses full window","Listenansicht nutzt Vollbild" },
473{ "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, 473{ "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" },
474{ "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, 474{ "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" },
475{ "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, 475{ "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" },
476{ "ViewChange","Ansichtswechsel" }, 476{ "ViewChange","Ansichtswechsel" },
477{ "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, 477{ "Default alarm *.wav file:","Standard Alarm *.wav Datei:" },
478{ "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, 478{ "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" },
479{ "File","Datei" }, 479{ "File","Datei" },
480{ "Clone...","Dupliziere.." }, 480{ "Clone...","Dupliziere.." },
481{ "Move...","Bewege..." }, 481{ "Move...","Bewege..." },
482{ "Beam...","Sende via IR..." }, 482{ "Beam...","Sende via IR..." },
483{ "&Clone...","Dupliziere.." }, 483{ "&Clone...","Dupliziere.." },
484{ "&Move...","Bewege..." }, 484{ "&Move...","Bewege..." },
485{ "&Beam...","Sende via IR..." }, 485{ "&Beam...","Sende via IR..." },
486{ "Show Completed","Zeige erledigte Todos" }, 486{ "Show Completed","Zeige erledigte Todos" },
487{ "Show Quick Todo","Zeige Quick Todo" }, 487{ "Show Quick Todo","Zeige Quick Todo" },
488{ "Unparent Todo","Un-sub Todo" }, 488{ "Unparent Todo","Un-sub Todo" },
489{ "Save selected to file...","Speichere Selektierte..." }, 489{ "Save selected to file...","Speichere Selektierte..." },
490{ "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, 490{ "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." },
491{ "Set Categ. for selected...","Setze Kateg. für Selekt." }, 491{ "Set Categ. for selected...","Setze Kateg. für Selekt." },
492{ "Beam selected via IR","Sende Selekt. via IR..." }, 492{ "Beam selected via IR","Sende Selekt. via IR..." },
493{ "Search","Suchen" }, 493{ "Search","Suchen" },
494{ "Date Picker","Datum auswählen" }, 494{ "Date Picker","Datum auswählen" },
495{ "Day View","Tagesansicht" }, 495{ "Day View","Tagesansicht" },
496{ "Work Week","Arbeitswoche" }, 496{ "Work Week","Arbeitswoche" },
497{ "Week","Wochenansicht" }, 497{ "Week","Wochenansicht" },
498{ "Month","Monatsansicht" }, 498{ "Month","Monatsansicht" },
499{ "Todo View","Todo Liste" }, 499{ "Todo View","Todo Liste" },
500{ "Journal","Journal Ansicht" }, 500{ "Journal","Journal Ansicht" },
501{ "Next days","Nächste Tage" }, 501{ "Next days","Nächste Tage" },
502{ "Print agenda selection...","Drucke Agendaselektion..." }, 502{ "Print agenda selection...","Drucke Agendaselektion..." },
503{ "Toggle DateNavigator","Navigator umschalten" }, 503{ "Toggle DateNavigator","Navigator umschalten" },
504{ "Toggle FilterView","Filteransicht umschalten" }, 504{ "Toggle FilterView","Filteransicht umschalten" },
505{ "Prev. month","Vorheriger Monat" }, 505{ "Prev. month","Vorheriger Monat" },
506{ "Go backward","Gehe zurück" }, 506{ "Go backward","Gehe zurück" },
507{ "Go forward","Gehe weiter" }, 507{ "Go forward","Gehe weiter" },
508{ "Synchronize","Synchronisieren" }, 508{ "Synchronize","Synchronisieren" },
509{ "AgendaSize","Agendagröße" }, 509{ "AgendaSize","Agendagröße" },
510{ "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, 510{ "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" },
511{ "Import last file","Importiere letzte Datei" }, 511{ "Import last file","Importiere letzte Datei" },
512{ "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, 512{ "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." },
513{ "Load Calendar Backup","Lade Kalender Backup" }, 513{ "Load Calendar Backup","Lade Kalender Backup" },
514{ "Save Calendar Backup","Speichere Kalender Backup" }, 514{ "Save Calendar Backup","Speichere Kalender Backup" },
515{ "Export VCalendar","Exportiere VCalendar" }, 515{ "Export VCalendar","Exportiere VCalendar" },
516{ "Manage new categories...","Verwalte neue Kategorien..." }, 516{ "Manage new categories...","Verwalte neue Kategorien..." },
517{ "Beam complete calendar...","Sende kompletten Kalender via IR" }, 517{ "Beam complete calendar...","Sende kompletten Kalender via IR" },
518{ "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, 518{ "Beam filtered calendar...","Sende gefilterten Kalender via IR" },
519{ "Remote via ssh","Über Netzwerk via ssh" }, 519{ "Remote via ssh","Über Netzwerk via ssh" },
520{ "With local file","Mit lokaler Datei" }, 520{ "With local file","Mit lokaler Datei" },
521{ "With last file","Mit letzter Datei" }, 521{ "With last file","Mit letzter Datei" },
522{ "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, 522{ "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" },
523{ "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, 523{ "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" },
524{ "Save filename","Speichern: Dateinamen wählen" }, 524{ "Save filename","Speichern: Dateinamen wählen" },
525{ "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, 525{ "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" },
526{ "KO/Pi: Warning!","KO/Pi: Warnung!" }, 526{ "KO/Pi: Warning!","KO/Pi: Warnung!" },
527{ "Overwrite!","Überschreibe!" }, 527{ "Overwrite!","Überschreibe!" },
528{ "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, 528{ "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" },
529{ "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, 529{ "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" },
530{ "KO/Pi Confirmation","KO/Pi Bestätigung" }, 530{ "KO/Pi Confirmation","KO/Pi Bestätigung" },
531{ "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, 531{ "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" },
532{ "Deleting item %d ...","Lösche Eintrag %d ..." }, 532{ "Deleting item %d ...","Lösche Eintrag %d ..." },
533{ "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, 533{ "%d items remaining in list.","%d Einträge sind in der Liste verblieben." },
534{ "Size","Größe" }, 534{ "Size","Größe" },
535{ "Date","Datum" }, 535{ "Date","Datum" },
536{ "Mime Type","Datei Typ" }, 536{ "Mime Type","Datei Typ" },
537{ "All Files","Alle Dateien" }, 537{ "All Files","Alle Dateien" },
538{ "Files","Dateien" }, 538{ "Files","Dateien" },
539{ "Documents","DoKumente" }, 539{ "Documents","DoKumente" },
540{ "Select Categories","Selektiere Kategorien" }, 540{ "Select Categories","Selektiere Kategorien" },
541{ " &Deselect All "," Auswahl aufheben " }, 541{ " &Deselect All "," Auswahl aufheben " },
542{ "A&dd","Hinzu" }, 542{ "A&dd","Hinzu" },
543{ "&Modify","Ändern" }, 543{ "&Modify","Ändern" },
544{ "Edit Categories","Editiere Kategorien" }, 544{ "Edit Categories","Editiere Kategorien" },
545{ " &Edit Categories "," &Editiere Kategorien " }, 545{ " &Edit Categories "," &Editiere Kategorien " },
546{ "Beam Options","Beam Einstellungen" }, 546{ "Beam Options","Beam Einstellungen" },
547{ " With timezone "," Mit Zeitzone " }, 547{ " With timezone "," Mit Zeitzone " },
548{ " Local time ", " Lokale Zeit " }, 548{ " Local time ", " Lokale Zeit " },
549{ "Manage new Categories","Verwalte neue Kategorien" }, 549{ "Manage new Categories","Verwalte neue Kategorien" },
550{ "Add to category list","Füge zur Kategorieliste hinzu" }, 550{ "Add to category list","Füge zur Kategorieliste hinzu" },
551{ "Remove from Events/Todos","Entferne von Terminen/Todos" }, 551{ "Remove from Events/Todos","Entferne von Terminen/Todos" },
552{ "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, 552{ "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " },
553{ "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, 553{ "New categories not in list:","Kategorien, die nicht in der Liste sind:" },
554{ "File format","Datei Format" }, 554{ "File format","Datei Format" },
555{ "Time format","Zeit Format" }, 555{ "Time format","Zeit Format" },
556{ "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" }, 556{ "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" },
557{ "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, 557{ "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." },
558{ "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, 558{ "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" },
559{ "h","Std" }, 559{ "h","Std" },
560{ "min","Min" }, 560{ "min","Min" },
561{ "hou","Std" }, 561{ "hou","Std" },
562{ "day","Tag" }, 562{ "day","Tag" },
563{ "French","Französich" }, 563{ "French","Französich" },
564{ "Time","Zeit" }, 564{ "Time","Zeit" },
565{ "Event Viewer","Termin Ansicht" }, 565{ "Event Viewer","Termin Ansicht" },
566{ "Cancel Sync","Sync Abbrechen" }, 566{ "Cancel Sync","Sync Abbrechen" },
567{ "Remote","Fern" }, 567{ "Remote","Fern" },
568{ "Local","Lokal" }, 568{ "Local","Lokal" },
569{ "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, 569{ "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" },
570{ "Local: ","Lokal: " }, 570{ "Local: ","Lokal: " },
571{ "Remote: ","Fern: " }, 571{ "Remote: ","Fern: " },
572{ "Last modified: ","Zuletzt geändert: " }, 572{ "Last modified: ","Zuletzt geändert: " },
573{ "Location: ","Ort: " }, 573{ "Location: ","Ort: " },
574{ "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, 574{ "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" },
575{ "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, 575{ "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" },
576{ "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, 576{ "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " },
577{ "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, 577{ "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" },
578{ "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, 578{ "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " },
579{ "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, 579{ "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" },
580{ "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, 580{ "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." },
581{ "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, 581{ "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" },
582{ "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, 582{ "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" },
583{ "( %1 min before )","( %1 min vorher )" }, 583{ "( %1 min before )","( %1 min vorher )" },
584{ "<b>Alarm on: ","<b>Alarm am: " }, 584{ "<b>Alarm on: ","<b>Alarm am: " },
585{ "<b>Details: </b>","<b>Details: </b>" }, 585{ "<b>Details: </b>","<b>Details: </b>" },
586{ "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, 586{ "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" },
587{ "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, 587{ "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" },
588{ "Organizer","Organisator" }, 588{ "Organizer","Organisator" },
589{ "Save","Speichern" }, 589{ "Save","Speichern" },
590{ "Exit (+save)","Beenden (+ speichern)" }, 590{ "Exit (+save)","Beenden (+ speichern)" },
591{ "Home","Zuhause" }, 591{ "Home","Zuhause" },
592{ "Office","Büro" }, 592{ "Office","Büro" },
593{ "Libary","Bücherei" }, 593{ "Libary","Bücherei" },
594{ "Doctor","Arzt" }, 594{ "Doctor","Arzt" },
595{ "Beach","Strand" }, 595{ "Beach","Strand" },
596{ "Conference room","Konferenzraum" }, 596{ "Conference room","Konferenzraum" },
597{ "Drive Home","Heimfahrt" }, 597{ "Drive Home","Heimfahrt" },
598{ "Watch TV","Tv gucken" }, 598{ "Watch TV","Tv gucken" },
599{ "Phone call","Telefonanruf" }, 599{ "Phone call","Telefonanruf" },
600{ "Pay bill","Rechnung bezahlen" }, 600{ "Pay bill","Rechnung bezahlen" },
601{ "Read book","Buch lesen" }, 601{ "Read book","Buch lesen" },
602{ "Watering plants","Pflanzen giessen" }, 602{ "Watering plants","Pflanzen giessen" },
603{"Appointment","Verabredung" }, 603{"Appointment","Verabredung" },
604{"Birthday","Geburtstag" }, 604{"Birthday","Geburtstag" },
605{"Business","Geschäft" }, 605{"Business","Geschäft" },
606{"Business Travel","Geschäftsreise" }, 606{"Business Travel","Geschäftsreise" },
607{"Cinema","Kino" }, 607{"Cinema","Kino" },
608{"Customer","Kunde" }, 608{"Customer","Kunde" },
609{"Break","Pause" }, 609{"Break","Pause" },
610{"Breakfast","Frühstück" }, 610{"Breakfast","Frühstück" },
611{"Competition","Wettkampf" }, 611{"Competition","Wettkampf" },
612{"Dinner","Abendessen" }, 612{"Dinner","Abendessen" },
613{"Education","Erziehung" }, 613{"Education","Erziehung" },
614{"Family","Familie" }, 614{"Family","Familie" },
615{"Favorites","Favoriten" }, 615{"Favorites","Favoriten" },
616{"Festival","Festival" }, 616{"Festival","Festival" },
617{"Fishing","Angeln" }, 617{"Fishing","Angeln" },
618{"Flight","Flug" }, 618{"Flight","Flug" },
619{"Gifts","Geschenk" }, 619{"Gifts","Geschenk" },
620{"Holiday","Feiertag" }, 620{"Holiday","Feiertag" },
621{"Holiday Cards","Ansichtskarten" }, 621{"Holiday Cards","Ansichtskarten" },
622{"Hot Contacts","Heisse Kontakte" }, 622{"Hot Contacts","Heisse Kontakte" },
623{"Hiking","Wandern" }, 623{"Hiking","Wandern" },
624{"Hunting","Jagen" }, 624{"Hunting","Jagen" },
625{"Key Customer","Wichtiger Kunde" }, 625{"Key Customer","Wichtiger Kunde" },
626{"Kids","Kinder" }, 626{"Kids","Kinder" },
627{"Lunch","Mittagessen" }, 627{"Lunch","Mittagessen" },
628{"Meeting","Treffen" }, 628{"Meeting","Treffen" },
629{"Miscellaneous","Verschiedenes" }, 629{"Miscellaneous","Verschiedenes" },
630{"Partner","Partner" }, 630{"Partner","Partner" },
631{"Party","Partie" }, 631{"Party","Partie" },
632{"Personal","Privat" }, 632{"Personal","Privat" },
633{"Personal Travel","Privatreise"}, 633{"Personal Travel","Privatreise"},
634{"PHB","PHB" }, 634{"PHB","PHB" },
635{"Phone Calls","Telefonanruf" }, 635{"Phone Calls","Telefonanruf" },
636{"Projects","Projekt" }, 636{"Projects","Projekt" },
637{"Recurring","Wiederholend" }, 637{"Recurring","Wiederholend" },
638{"School","Schule" }, 638{"School","Schule" },
639{"Shopping","Einkaufen" }, 639{"Shopping","Einkaufen" },
640{"Speach","Rede" }, 640{"Speach","Rede" },
641{"Special Occasion","Spez.Gelegenheit" }, 641{"Special Occasion","Spez.Gelegenheit" },
642{"Sports","Sport" }, 642{"Sports","Sport" },
643{"Talk","Vortrag" }, 643{"Talk","Vortrag" },
644{"Travel","Reise" }, 644{"Travel","Reise" },
645{"TV","TV" }, 645{"TV","TV" },
646{"Germany","Deutschland" }, 646{"Germany","Deutschland" },
647{"Sweden","Schweden" }, 647{"Sweden","Schweden" },
648{"Forest","Wald" }, 648{"Forest","Wald" },
649{ "Desert","Wüste" }, 649{ "Desert","Wüste" },
650{ "Kitchen","Küche" }, 650{ "Kitchen","Küche" },
651{ "Lake","See" }, 651{ "Lake","See" },
652{"University","Universität"}, 652{"University","Universität"},
653{"Vacation","Urlaub" }, 653{"Vacation","Urlaub" },
654{"VIP","VIP" }, 654{"VIP","VIP" },
655{ "Import Sharp Calendar","Importiere Sharp Kalender" }, 655{ "Import Sharp Calendar","Importiere Sharp Kalender" },
656{ "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, 656{ "This todo has been cancelled!","Dieses Todo wurde gecancelt!" },
657{ "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, 657{ "This event has been cancelled!","Dieser Termin wurde gecancelt!" },
658{ "Cancelled","Gecancelt" }, 658{ "Cancelled","Gecancelt" },
659{ "Multiple sync","Mehrfach Sync" }, 659{ "Multiple sync","Mehrfach Sync" },
660{ "Local file","Lokale Datei" }, 660{ "Local file","Lokale Datei" },
661{ "Last file","Letzte Datei" }, 661{ "Last file","Letzte Datei" },
662{ "Keys + Colors...","Tasten + Farben..." }, 662{ "Keys + Colors...","Tasten + Farben..." },
663{ "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, 663{ "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" },
664{ "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, 664{ "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" },
665{ "Choose...","Wähle..." }, 665{ "Choose...","Wähle..." },
666{ "Use colors for application:","Setze Farben für Programm:" }, 666{ "Use colors for application:","Setze Farben für Programm:" },
667{ "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, 667{ "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" },
668{ "Frames, labels, etc.:","Rahmen, Label, etc.:" }, 668{ "Frames, labels, etc.:","Rahmen, Label, etc.:" },
669{ "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, 669{ "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." },
670{ "Show location in What's Next view","Zeige Ort in What's Next Anz." }, 670{ "Show location in What's Next view","Zeige Ort in What's Next Anz." },
671{ "Show events that recur ","Zeige Termine, die sich wiederholen:" }, 671{ "Show events that recur ","Zeige Termine, die sich wiederholen:" },
672{ "Show in every cell ","Zeige in jeder Zelle " }, 672{ "Show in every cell ","Zeige in jeder Zelle " },
673{ "short month","kurzen Monat" }, 673{ "short month","kurzen Monat" },
674{ "icons","Icons" }, 674{ "icons","Icons" },
675{ "Show Sat/Sun together","Zeige Sam/Son zusammen" }, 675{ "Show Sat/Sun together","Zeige Sam/Son zusammen" },
676{ "Categorie colors are applied to text","Kategorie Farben färben Text" }, 676{ "Categorie colors are applied to text","Kategorie Farben färben Text" },
677{ "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, 677{ "Month view uses day colors","Monatsansicht zeigt Tagesfarben" },
678{ "Day color odd months","Tagesfarbe ungerade Monate" }, 678{ "Day color odd months","Tagesfarbe ungerade Monate" },
679{ "Day color even months","Tagesfarbe gerade Monate" }, 679{ "Day color even months","Tagesfarbe gerade Monate" },
680{ "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, 680{ "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" },
681{ "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, 681{ "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" },
682{ "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, 682{ "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" },
683{ "Colors are applied to text","Farben werden auf Text angewendet" }, 683{ "Colors are applied to text","Farben werden auf Text angewendet" },
684{ "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, 684{ "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" },
685{ "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, 685{ "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" },
686{ "Play beeps count:","Anzahl der Alarmpiepse: " }, 686{ "Play beeps count:","Anzahl der Alarmpiepse: " },
687{ "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, 687{ "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " },
688{ "Default suspend time in min:","Standard Supendierungs Zeit: " }, 688{ "Default suspend time in min:","Standard Supendierungs Zeit: " },
689{ "Auto suspend count:","Anzahl der auto Suspendierungen" }, 689{ "Auto suspend count:","Anzahl der auto Suspendierungen" },
690{ "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, 690{ "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" },
691{ "New profile","Neues Profil" }, 691{ "New profile","Neues Profil" },
692{ "Clone profile","Klone Profil" }, 692{ "Clone profile","Klone Profil" },
693{ "Delete profile","Lösche Profil" }, 693{ "Delete profile","Lösche Profil" },
694{ "Profile:","Profil:" }, 694{ "Profile:","Profil:" },
695{ "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, 695{ "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" },
696{ "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, 696{ "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" },
697{ "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, 697{ "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" },
698{ "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, 698{ "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" },
699{ "Write back file","Schreibe Datei zurück" }, 699{ "Write back file","Schreibe Datei zurück" },
700{ "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, 700{ "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" },
701{ "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, 701{ "Pre sync (download) command:","Bevor Sync (download) Kommando:" },
702{ "Local device name:","Name dieses Gerätes:" }, 702{ "Local device name:","Name dieses Gerätes:" },
703{ "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, 703{ "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" },
704{ "Sync preferences","Synchronisations Einstellungen" }, 704{ "Sync preferences","Synchronisations Einstellungen" },
705{ "Profile kind","Profil Art" }, 705{ "Profile kind","Profil Art" },
706{ "Local file","Lokale Datei" }, 706{ "Local file","Lokale Datei" },
707{ "Local file:","Lokale Datei:" }, 707{ "Local file:","Lokale Datei:" },
708{ "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, 708{ "Post sync (upload) command:","Nach Sync (upload) Kommando:" },
709{ "Fill in default values for:","Setze Beispiel Werte ein für:" }, 709{ "Fill in default values for:","Setze Beispiel Werte ein für:" },
710{ "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, 710{ "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" },
711{ "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, 711{ "Synchronization Preferences","Einstellungen der Synchronisationsprofile"},
712{ "Device","Gerät:" }, 712{ "Device","Gerät:" },
713{ "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, 713{ "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" },
714{ "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","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, 714{ "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","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" },
715{ "Synchronization successful","Synchronisation erfolgreich" }, 715{ "Synchronization successful","Synchronisation erfolgreich" },
716{ "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, 716{ "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." },
717{ "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, 717{ "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" },
718{ "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, 718{ "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" },
719{ "Enter password","Passwort eingeben" }, 719{ "Enter password","Passwort eingeben" },
720{ "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, 720{ "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" },
721{ "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, 721{ "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." },
722{ "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, 722{ "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" },
723{ "Writing back file result: ","Resultat des Dateizurückschreibens: " }, 723{ "Writing back file result: ","Resultat des Dateizurückschreibens: " },
724{ "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, 724{ "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" },
725{ "Edit Calendar Filters","Editiere Kalendar Filter" }, 725{ "Edit Calendar Filters","Editiere Kalendar Filter" },
726{ "Enter filter name:","Neuer Filter Name:" }, 726{ "Enter filter name:","Neuer Filter Name:" },
727{ "Add Filter","Filter hinzufügen" }, 727{ "Add Filter","Filter hinzufügen" },
728{ "Question","Frage" }, 728{ "Question","Frage" },
729{ "Filter position: ","Filter Position: " }, 729{ "Filter position: ","Filter Position: " },
730{ "Month View","Monatsansicht" }, 730{ "Month View","Monatsansicht" },
731{ "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, 731{ "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" },
732{ "KO/Pi config error","KO/Pi Konfig. Fehler" }, 732{ "KO/Pi config error","KO/Pi Konfig. Fehler" },
733{ "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, 733{ "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" },
734{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, 734{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" },
735{ "Access: ","Zugriff: " }, 735{ "Access: ","Zugriff: " },
736{ "Needs Action","Aktion notwendig" }, 736{ "Needs Action","Aktion notwendig" },
737{ "Accepted","Akzeptiert" }, 737{ "Accepted","Akzeptiert" },
738{ "Declined","Abgelehnt" }, 738{ "Declined","Abgelehnt" },
739{ "Tentative","Vorläufig" }, 739{ "Tentative","Vorläufig" },
740{ "Delegated","Beauftragt" }, 740{ "Delegated","Beauftragt" },
741{ "Completed","Vollständig" }, 741{ "Completed","Vollständig" },
742{ "In Process","In Bearbeitung" }, 742{ "In Process","In Bearbeitung" },
743{ "Participant","Teilnehmer" }, 743{ "Participant","Teilnehmer" },
744{ "Optional Participant","Möglicher Teilnehmer" }, 744{ "Optional Participant","Möglicher Teilnehmer" },
745{ "Observer","Beobachter" }, 745{ "Observer","Beobachter" },
746{ "Chair","Vorsitzender" }, 746{ "Chair","Vorsitzender" },
747{ "Not supported \non desktop!\n","" }, 747{ "Not supported \non desktop!\n","" },
748{ "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, 748{ "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " },
749{ "Date range: ","Datums Zeitspanne: " }, 749{ "Date range: ","Datums Zeitspanne: " },
750{ "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, 750{ "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " },
751{ "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, 751{ "Syncing - close to abort!","Syncing-schließe um abzubrechen." },
752{ "Add / remove events","Add./entferne Termine" }, 752{ "Add / remove events","Add./entferne Termine" },
753{ "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, 753{ "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." },
754{ "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, 754{ "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." },
755{ "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, 755{ "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" },
756{ "Overwrite","Überschreiben" }, 756{ "Overwrite","Überschreiben" },
757{ "Sync+save","Syncen+speichern" }, 757{ "Sync+save","Syncen+speichern" },
758{ "Default","Standard" }, 758{ "Default","Standard" },
759{ " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, 759{ " Categories added to list! "," Kategorien zur Liste hinzugefügt! " },
760{ " %d items?"," %d Einträge?" }, 760{ " %d items?"," %d Einträge?" },
761{ "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, 761{ "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" },
762{ " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, 762{ " ?\n\nDelete:\n"," ?\n\nLösche:\n" },
763{ "Current","Aktuelle" }, 763{ "Current","Aktuelle" },
764{ "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, 764{ "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" },
765{ "All","Alle" }, 765{ "All","Alle" },
766{ "Data Loss Warning","Datenverlust Warnung" }, 766{ "Data Loss Warning","Datenverlust Warnung" },
767{ "Proceed","Weitermachen" }, 767{ "Proceed","Weitermachen" },
768{ "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, 768{ "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" },
769{ "Filter disabled ","Filter abgeschaltet" }, 769{ "Filter disabled ","Filter abgeschaltet" },
770{ "Filter selected: ","Gewählter Filter: " }, 770{ "Filter selected: ","Gewählter Filter: " },
771{ "Toggle Cancel","Gecancelt ändern" }, 771{ "Toggle Cancel","Gecancelt ändern" },
772{ "&Toggle Cancel","Gecancel&t ändern" }, 772{ "&Toggle Cancel","Gecancel&t ändern" },
773{ "Configure Toolbar","Konfiguriere Toolbar" }, 773{ "Configure Toolbar","Konfiguriere Toolbar" },
774{ "Stretched TB","Gedehnte TB" }, 774{ "Stretched TB","Gedehnte TB" },
775{ "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, 775{ "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" },
776{ "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, 776{ "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" },
777{ "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, 777{ "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" },
778{ "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, 778{ "Not supported \non desktop!\n","Nur verfügbar auf PDA!" },
779{ "Imported file successfully","Datei erfolgreich importiert" }, 779{ "Imported file successfully","Datei erfolgreich importiert" },
780{ "Error importing file","Fehler beim Importieren der Datei" }, 780{ "Error importing file","Fehler beim Importieren der Datei" },
781{ "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, 781{ "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" },
782{ "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, 782{ "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" },
783{ "Overwrite!","Überschreiben!" }, 783{ "Overwrite!","Überschreiben!" },
784{ "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, 784{ "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" },
785{ "Load backup filename","Lade Backup Dateiname" }, 785{ "Load backup filename","Lade Backup Dateiname" },
786{ "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, 786{ "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" },
787{ "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, 787{ "KO/Pi:Loaded %1","KO/Pi:Geladen %1" },
788{ "Save backup filename","Speichere Backup Dateiname" }, 788{ "Save backup filename","Speichere Backup Dateiname" },
789{ "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, 789{ "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" },
790{ "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, 790{ "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" },
791{ "Details of attendee","Teilnehmerdetails" }, 791{ "Details of attendee","Teilnehmerdetails" },
792{ "Work phone:\n","Telefon Arbeit:\n" }, 792{ "Work phone:\n","Telefon Arbeit:\n" },
793{ "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, 793{ "Work mobile phone:\n","Mobiltelefon Arbeit:\n" },
794{ "Home phone:\n","Telefon privat:\n" }, 794{ "Home phone:\n","Telefon privat:\n" },
795{ "Mobile home phone:\n","Mobiltelefon privat:\n" }, 795{ "Mobile home phone:\n","Mobiltelefon privat:\n" },
796{ "Email:\n","Email:\n" }, 796{ "Email:\n","Email:\n" },
797{ "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, 797{ "Alarm disabled for this item","Alarm deaktiviert für dieses Item" },
798{ "Audio Al.: ","Audio Al.: " }, 798{ "Audio Al.: ","Audio Al.: " },
799{ "Proc.Al.: ","Proz.Al.: " }, 799{ "Proc.Al.: ","Proz.Al.: " },
800{ "No sound set","Kein Sound definiert" }, 800{ "No sound set","Kein Sound definiert" },
801{ "*.wav|Wav Files","*.wav|Wav Dateien" }, 801{ "*.wav|Wav Files","*.wav|Wav Dateien" },
802{ "No program set","Kein Programm definiert" }, 802{ "No program set","Kein Programm definiert" },
803{ "Running '%1'","Ausführen '%1'" }, 803{ "Running '%1'","Ausführen '%1'" },
804{ "Playing '%1'","Abspielen '%1'" }, 804{ "Playing '%1'","Abspielen '%1'" },
805{ "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, 805{ "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" },
806{ "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, 806{ "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" },
807{ "Load!","Laden!" }, 807{ "Load!","Laden!" },
808{ "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, 808{ "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" },
809{ "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, 809{ "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" },
810{ "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, 810{ "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" },
811{ "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, 811{ "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" },
812{ "Features + hints...","Eigenschaften + Tipps..." }, 812{ "Features + hints...","Eigenschaften + Tipps..." },
813{ "User translation...","Benutzer Übersetzung..." }, 813{ "User translation...","Benutzer Übersetzung..." },
814{ "Sync HowTo...","Synchronisation HowTo..." }, 814{ "Sync HowTo...","Synchronisation HowTo..." },
815{ "Print calendar...","Drucke Kalender..." }, 815{ "Print calendar...","Drucke Kalender..." },
816{ "Anniversary","Jahrestag" }, 816{ "Anniversary","Jahrestag" },
817{ "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, 817{ "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" },
818{ "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, 818{ "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" },
819{ "Next recurrence is on: ","Nächste Wiederholung ist am:" }, 819{ "Next recurrence is on: ","Nächste Wiederholung ist am:" },
820{ "<b>Alarm on: </b>","<b>Alarm am: </b>" }, 820{ "<b>Alarm on: </b>","<b>Alarm am: </b>" },
821{ "<b>Access: </b>","<b>Zugriff: </b>" }, 821{ "<b>Access: </b>","<b>Zugriff: </b>" },
822{ "(%1 min before)","(%1 min vorher)" }, 822{ "(%1 min before)","(%1 min vorher)" },
823{ "<b>Categories: </b>","<b>Kategorien: </b>" }, 823{ "<b>Categories: </b>","<b>Kategorien: </b>" },
824{ "Save Journal/Description...","Speichere Journal/Details..." }, 824{ "Save Journal/Description...","Speichere Journal/Details..." },
825{ "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, 825{ "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." },
826{ "Continue","Weitermachen" }, 826{ "Continue","Weitermachen" },
827{ " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, 827{ " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" },
828{ "Attendee:","Teilnehmer:" }, 828{ "Attendee:","Teilnehmer:" },
829{ "Click OK to search ->","Klicke zum Suchen auf OK ->" }, 829{ "Click OK to search ->","Klicke zum Suchen auf OK ->" },
830{ "On day ","Am Tag " }, 830{ "On day ","Am Tag " },
831{ "%1 of ","%1 des Monats" }, 831{ "%1 of ","%1 des Monats" },
832{ "%1 of the year","%1 des Jahres" }, 832{ "%1 of the year","%1 des Jahres" },
833{ "Anonymous","Anonymo" }, 833{ "Anonymous","Anonymo" },
834{ "nobody@nowhere","niemand@nirgendwo" }, 834{ "nobody@nowhere","niemand@nirgendwo" },
835{ "calendar.html","calendar.html" }, 835{ "calendar.html","calendar.html" },
836{ " Local Time"," Locale Zeit" }, 836{ " Local Time"," Locale Zeit" },
837{ "Unknown Name","Unbekannter Name" }, 837{ "Unknown Name","Unbekannter Name" },
838{ "unknown@nowhere","unbekannt@nirgendwo" }, 838{ "unknown@nowhere","unbekannt@nirgendwo" },
839{ "Beam via IR!","Beam via IR!" }, 839{ "Beam via IR!","Beam via IR!" },
840{ "Next Month","Nächster Monat" }, 840{ "Next Month","Nächster Monat" },
841{ "Prio","Prio" }, 841{ "Prio","Prio" },
842{ "Reparent Todo","Mache Sub-Todo" }, 842{ "Reparent Todo","Mache Sub-Todo" },
843{ "tomorrow","morgen" }, 843{ "tomorrow","morgen" },
844{ "today","heute" }, 844{ "today","heute" },
845{ "yesterday","gestern" }, 845{ "yesterday","gestern" },
846{ "Ok","Ok" }, 846{ "Ok","Ok" },
847{ "Ok+Agenda","Ok+Agenda" }, 847{ "Ok+Agenda","Ok+Agenda" },
848{ "Email","Email" }, 848{ "Email","Email" },
849{ "RSVP","RSVP" }, 849{ "RSVP","RSVP" },
850{ "Email:","Email:" }, 850{ "Email:","Email:" },
851{ "Appointment Time ","Termin Zeit " }, 851{ "Appointment Time ","Termin Zeit " },
852{ "2","2" }, 852{ "2","2" },
853{ "3","3" }, 853{ "3","3" },
854{ "4","4" }, 854{ "4","4" },
855{ " 0 %"," 0 %" }, 855{ " 0 %"," 0 %" },
856{ " 20 %"," 20 %" }, 856{ " 20 %"," 20 %" },
857{ " 40 %"," 40 %" }, 857{ " 40 %"," 40 %" },
858{ " 60 %"," 60 %" }, 858{ " 60 %"," 60 %" },
859{ " 80 %"," 80 %" }, 859{ " 80 %"," 80 %" },
860{ "100 %","100 %" }, 860{ "100 %","100 %" },
861{ "Filter","Filter" }, 861{ "Filter","Filter" },
862{ "Configure","Konfiguriere" }, 862{ "Configure","Konfiguriere" },
863{ "What's Next","What's Next" }, 863{ "What's Next","What's Next" },
864{ "Complete calendar...","Kompletten Kalender..." }, 864{ "Complete calendar...","Kompletten Kalender..." },
865{ "Filtered calendar...","Gefilterten Kalender..." }, 865{ "Filtered calendar...","Gefilterten Kalender..." },
866{ "Export to phone","Exportiere zum Handy" }, 866{ "Export to phone","Exportiere zum Handy" },
867{ "Beam receive enabled","Beam Empfang an" }, 867{ "Beam receive enabled","Beam Empfang an" },
868{ "What's new?","Was ist neu?" }, 868{ "What's new?","Was ist neu?" },
869{ "FAQ...","FAQ..." }, 869{ "FAQ...","FAQ..." },
870{ "Licence...","Licence..." }, 870{ "Licence...","Licence..." },
871{ "What's This?","What's This?" }, 871{ "What's This?","What's This?" },
872{ "&Edit...","&Editiere..." }, 872{ "&Edit...","&Editiere..." },
873{ "Oktober","Oktober" }, 873{ "Oktober","Oktober" },
874{ "Title","Titel" }, 874{ "Title","Titel" },
875{ "%1 %","%1 %" }, 875{ "%1 %","%1 %" },
876{ "Enable Pi-Sync","Schalte Pi-Sync an" }, 876{ "Enable Pi-Sync","Schalte Pi-Sync an" },
877{ "Import!","Importiere!" }, 877{ "Import!","Importiere!" },
878{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, 878{ "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" },
879{ "Export to phone options","Export ans Handy Optionen" }, 879{ "Export to phone options","Export ans Handy Optionen" },
880{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, 880{ "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." },
881{ "I/O device: ","I/O device: " }, 881{ "I/O device: ","I/O device: " },
882{ "Connection: ","Connection: " }, 882{ "Connection: ","Connection: " },
883{ "Model(opt.): ","Model(opt.): " }, 883{ "Model(opt.): ","Model(opt.): " },
884{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, 884{ "Write back events in future only","Schreibe nur zukünftige Termine zurück" },
885{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, 885{ "Max. weeks in future: ","Max. Wochen in der Zukunft: " },
886{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, 886{ "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" },
887{ "Export to mobile phone!","Exportiere auf das Handy!" }, 887{ "Export to mobile phone!","Exportiere auf das Handy!" },
888{ "Export complete calendar","Exportiere kompletten Kalender" }, 888{ "Export complete calendar","Exportiere kompletten Kalender" },
889{ "Writing to phone...","Sende Daten ans Handy..." }, 889{ "Writing to phone...","Sende Daten ans Handy..." },
890{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, 890{ " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" },
891{ "Retry","Nochmal versuchen" }, 891{ "Retry","Nochmal versuchen" },
892{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, 892{ "KDE/Pim phone access","KDE/Pim Handy Zugriff" },
893{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, 893{ "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" },
894{ "Error exporting to phone!","Fehler beim Export auf das Handy!" }, 894{ "Error exporting to phone!","Fehler beim Export auf das Handy!" },
895{ "Export filtered calendar","Exportiere gefilterten Kalender" }, 895{ "Export filtered calendar","Exportiere gefilterten Kalender" },
896{ "Preferences","Vorlieben" }, 896{ "Preferences","Vorlieben" },
897{ "Global","Global" }, 897{ "Global","Global" },
898{ "Phone","Phone" }, 898{ "Phone","Phone" },
899{ "SMS","SMS" }, 899{ "SMS","SMS" },
900{ "Fax","Fax" }, 900{ "Fax","Fax" },
901{ "Pager","Pager" }, 901{ "Pager","Pager" },
902{ "SIP","SIP" }, 902{ "SIP","SIP" },
903{ "Italian","Italienisch" }, 903{ "Italian","Italienisch" },
904{ "24:00","24:00" }, 904{ "24:00","24:00" },
905{ "12:00am","12:00am" }, 905{ "12:00am","12:00am" },
906{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, 906{ "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" },
907{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, 907{ "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" },
908{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, 908{ "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" },
909{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, 909{ "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" },
910{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, 910{ "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" },
911{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, 911{ "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" },
912{ "Used Mail Client","Benutzter Mail Client" }, 912{ "Used Mail Client","Benutzter Mail Client" },
913{ "Channel:","Channel:" }, 913{ "Channel:","Channel:" },
914{ "Message:","Message:" }, 914{ "Message:","Message:" },
915{ "Parameters:","Parameter:" }, 915{ "Parameters:","Parameter:" },
916{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, 916{ "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" },
917{ "extra Message:","extra Message:" }, 917{ "extra Message:","extra Message:" },
918{ "extra Parameters:","extra Parameter:" }, 918{ "extra Parameters:","extra Parameter:" },
919{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, 919{ "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" },
920{ "External Apps.","Externe Appl." }, 920{ "External Apps.","Externe Appl." },
921{ "24 hours","24 Std." }, 921{ "24 hours","24 Std." },
922{ "3 hours","3 Std." }, 922{ "3 hours","3 Std." },
923{ "1 hour","1 Std." }, 923{ "1 hour","1 Std." },
924{ "15 minutes","15 Min." }, 924{ "15 minutes","15 Min." },
925{ "5 minutes","5 Min." }, 925{ "5 minutes","5 Min." },
926{ "1 minute","1 Min." }, 926{ "1 minute","1 Min." },
927{ "23","23" }, 927{ "23","23" },
928{ "Mon 15","Mon 15" }, 928{ "Mon 15","Mon 15" },
929{ "Configure KO","Konfiguriere KO" }, 929{ "Configure KO","Konfiguriere KO" },
930{ "Event text","Termin Text" }, 930{ "Event text","Termin Text" },
931{ "ToDo","ToDo" }, 931{ "ToDo","ToDo" },
932{ "Today","Heute" }, 932{ "Today","Heute" },
933{ "What's Next View","What's Next Ansicht" }, 933{ "What's Next View","What's Next Ansicht" },
934{ "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, 934{ "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" },
935{ "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, 935{ "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" },
936{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, 936{ "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" },
937{ "Alarm","Alarm" }, 937{ "Alarm","Alarm" },
938{ "Used %1 Client","Benutzter %1 Client" }, 938{ "Used %1 Client","Benutzter %1 Client" },
939{ "No email client installed","Kein Email Klient installiert" }, 939{ "No email client installed","Kein Email Klient installiert" },
940{ "Userdefined email client","Benutzerdef. Email Klient" }, 940{ "Userdefined email client","Benutzerdef. Email Klient" },
941{ "OM/Pi email client","OM/Pi Email Klient" }, 941{ "OM/Pi email client","OM/Pi Email Klient" },
942{ "Include in multiple ","Beziehe in multiple " }, 942{ "Include in multiple ","Beziehe in multiple " },
943{ "calendar ","Kalender " }, 943{ "calendar ","Kalender " },
944{ "addressbook ","Adressbuch " }, 944{ "addressbook ","Adressbuch " },
945{ "pwmanager","PWmanager" }, 945{ "pwmanager","PWmanager" },
946{ " sync"," Sync ein" }, 946{ " sync"," Sync ein" },
947{ "Write back synced data","Schreibe gesyncte Daten zurück" }, 947{ "Write back synced data","Schreibe gesyncte Daten zurück" },
948{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, 948{ "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" },
949{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, 949{ "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" },
950{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, 950{ "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " },
951{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, 951{ "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" },
952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, 952{ "Mobile device (cell phone)","Mobiles Gerät (Handy)" },
953{ "Help...","Hilfe..." }, 953{ "Help...","Hilfe..." },
954{ "Local file Cal:","Lokale Datei Kal:" }, 954{ "Local file Cal:","Lokale Datei Kal:" },
955{ "Local file ABook:","Lokale Datei ABuch:" }, 955{ "Local file ABook:","Lokale Datei ABuch:" },
956{ "Local file PWMgr:","Lokale Datei PWMgr:" }, 956{ "Local file PWMgr:","Lokale Datei PWMgr:" },
957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, 957{ "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" },
958{ "Calendar:","Kalender:" }, 958{ "Calendar:","Kalender:" },
959{ "AddressBook:","AdressBuch:" }, 959{ "AddressBook:","AdressBuch:" },
960{ "PWManager:","PWManager:" }, 960{ "PWManager:","PWManager:" },
961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, 961{ "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" },
962{ "ssh/scp","ssh/scp" }, 962{ "ssh/scp","ssh/scp" },
963{ "ftp","ftp" }, 963{ "ftp","ftp" },
964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, 964{ "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" },
965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, 965{ "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" },
966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, 966{ "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" },
967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, 967{ "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" },
968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, 968{ "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" },
969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, 969{ "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" },
970{ "KDE-Pim sync config","KDE-Pim sync Konfig" }, 970{ "KDE-Pim sync config","KDE-Pim sync Konfig" },
971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, 971{ "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" },
972{ "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" }, 972{ "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" },
973{ "Port number (Default: %1)","Port Nummer (Default: %1)" }, 973{ "Port number (Default: %1)","Port Nummer (Default: %1)" },
974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, 974{ "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" },
975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, 975{ "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" },
976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, 976{ "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" },
977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, 977{ "Enter port for Pi-Sync","Port Nummer für Pi-Sync" },
978{ "Disable Pi-Sync","Schalte Pi-Sync aus" }, 978{ "Disable Pi-Sync","Schalte Pi-Sync aus" },
979{ "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!" }, 979{ "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!" },
980{ "KDE-Pim Sync","KDE-Pim Sync" }, 980{ "KDE-Pim Sync","KDE-Pim Sync" },
981{ "Multiple profiles","Multi-Sync Profile" }, 981{ "Multiple profiles","Multi-Sync Profile" },
982{ "Device: ","Gerät: " }, 982{ "Device: ","Gerät: " },
983{ "Multiple sync started.","Multi-Sync gestartet." }, 983{ "Multiple sync started.","Multi-Sync gestartet." },
984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, 984{ "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" },
985{ "Turn filter on","Schalte Filter an" }, 985{ "Turn filter on","Schalte Filter an" },
986{ "Turn filter off","Schalte Filter aus" }, 986{ "Turn filter off","Schalte Filter aus" },
987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, 987{ "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" },
988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, 988{ "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" },
989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, 989{ "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" },
990{ "<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" }, 990{ "<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" },
991{ "<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" }, 991{ "<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" },
992{ "<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" }, 992{ "<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" },
993{ "<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" }, 993{ "<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" },
994{ "<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" }, 994{ "<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" },
995{ "<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" }, 995{ "<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" },
996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, 996{ "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" },
997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, 997{ "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" },
998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, 998{ "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" },
999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, 999{ "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" },
1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, 1000{ "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" },
1001{ "<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" }, 1001{ "<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" },
1002{ "<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" }, 1002{ "<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" },
1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, 1003{ "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" },
1004{ "<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" }, 1004{ "<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" },
1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, 1005{ "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" },
1006{ "<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" }, 1006{ "<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" },
1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, 1007{ "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" },
1008{ "<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" }, 1008{ "<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" },
1009{ "<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" }, 1009{ "<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" },
1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, 1010{ "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" },
1011{ "<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" }, 1011{ "<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" },
1012{ "<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" }, 1012{ "<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" },
1013{ "<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" }, 1013{ "<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" },
1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, 1014{ "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" },
1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, 1015{ "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" },
1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, 1016{ "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" },
1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, 1017{ "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" },
1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, 1018{ "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" },
1019{ "<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" }, 1019{ "<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" },
1020{ "<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" }, 1020{ "<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" },
1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, 1021{ "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" },
1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, 1022{ "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" },
1023{ "<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" }, 1023{ "<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" },
1024{ "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datumsnavigator</p>\n" }, 1024{ "<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" },
1025{ "<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" }, 1025{ "<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" },
1026{ "<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" }, 1026{ "<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" },
1027{ "<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" }, 1027{ "<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" },
1028{ "<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" }, 1028{ "<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" },
1029{ "<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" }, 1029{ "<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" },
1030{ "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, 1030{ "<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 " },
1031{ "<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" }, 1031{ "<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" },
1032{ "<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" }, 1032{ "<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" },
1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, 1033{ "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" },
1034{ "<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" }, 1034{ "<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" },
1035{ "<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" }, 1035{ "<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" },
1036{ "<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" }, 1036{ "<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" },
1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, 1037{ "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" },
1038{ "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" }, 1038{ "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" },
1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, 1039{ "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" },
1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, 1040{ "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" },
1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, 1041{ "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" },
1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, 1042{ "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" },
1043{ "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" }, 1043{ "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" },
1044{ "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" }, 1044{ "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" },
1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, 1045{ "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" },
1046{ "KO/Pi FAQ","KO/Pi FAQ" }, 1046{ "KO/Pi FAQ","KO/Pi FAQ" },
1047{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, 1047{ "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" },
1048{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, 1048{ "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" },
1049{ "About KOrganizer/Pi","Über KOrganizer/Pi" }, 1049{ "About KOrganizer/Pi","Über KOrganizer/Pi" },
1050{ "From: ","Von: " }, 1050{ "From: ","Von: " },
1051{ "Remove sync info","Entferne Sync Info" }, 1051{ "Remove sync info","Entferne Sync Info" },
1052{ "For all profiles","Für alle Profile" }, 1052{ "For all profiles","Für alle Profile" },
1053{ "Hide not Running","Verstecke nicht Laufende" }, 1053{ "Hide not Running","Verstecke nicht Laufende" },
1054{ "ME","ME" }, 1054{ "ME","ME" },
1055{ "Toolbar","Toolbar" }, 1055{ "Toolbar","Toolbar" },
1056{ "Undo Delete...","Löschen rückgängig machen..." }, 1056{ "Undo Delete...","Löschen rückgängig machen..." },
1057{ "Undo Delete","Löschen rückgängig machen" }, 1057{ "Undo Delete","Löschen rückgängig machen" },
1058{ "KDE Sync HowTo...","KDE Sync HowTo..." }, 1058{ "KDE Sync HowTo...","KDE Sync HowTo..." },
1059{ "Multi Sync HowTo...","Multi Sync HowTo..." }, 1059{ "Multi Sync HowTo...","Multi Sync HowTo..." },
1060{ "Januar","Januar" }, 1060{ "Januar","Januar" },
1061{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, 1061{ "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" },
1062{ "No Filter","Kein Filter" }, 1062{ "No Filter","Kein Filter" },
1063{ "Multiple Sync options","Multi Sync Optionen" }, 1063{ "Multiple Sync options","Multi Sync Optionen" },
1064{ "Sync algo options","Sync Ablauf Optionen" }, 1064{ "Sync algo options","Sync Ablauf Optionen" },
1065{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, 1065{ "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" },
1066{ "Incoming calendar filter:","Eingehender Kalender Filter:" }, 1066{ "Incoming calendar filter:","Eingehender Kalender Filter:" },
1067{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, 1067{ "Incoming addressbook filter:","Eingehender Adressbuch Filter:" },
1068{ "Write back options","Optionen zum Zurückschreiben" }, 1068{ "Write back options","Optionen zum Zurückschreiben" },
1069{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, 1069{ "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" },
1070{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, 1070{ "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" },
1071{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, 1071{ "Outgoing calendar filter:","Ausgehender Kalender Filter:" },
1072{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, 1072{ "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" },
1073{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, 1073{ "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" },
1074{ "Time period","Zeitspanne" }, 1074{ "Time period","Zeitspanne" },
1075{ "From ","Von " }, 1075{ "From ","Von " },
1076{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, 1076{ " weeks in the past to "," Wochen in der Vergangenheit bis zu " },
1077{ " weeks in the future "," Wochen in der Zukunft " }, 1077{ " weeks in the future "," Wochen in der Zukunft " },
1078{ "Profile kind specific settings","Profil Art abhängige Einstellungen" }, 1078{ "Profile kind specific settings","Profil Art abhängige Einstellungen" },
1079{ "Local temp file:","Lokale temp Datei:" }, 1079{ "Local temp file:","Lokale temp Datei:" },
1080{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, 1080{ "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" },
1081{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, 1081{ "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" },
1082{ "Language","Sprache" }, 1082{ "Language","Sprache" },
1083{ "Time Format","Zeit Format" }, 1083{ "Time Format","Zeit Format" },
1084{ "Time Zone","Zeit Zone" }, 1084{ "Time Zone","Zeit Zone" },
1085{ "%1 groups subscribed","%1 Guppen abboniert" }, 1085{ "%1 groups subscribed","%1 Guppen abboniert" },
1086{ "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" }, 1086{ "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" },
1087{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, 1087{ "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" },
1088{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, 1088{ "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" },
1089{ "Save settings","Speichere Einstellungen" }, 1089{ "Save settings","Speichere Einstellungen" },
1090{ "Save standard","Speichere Standard" }, 1090{ "Save standard","Speichere Standard" },
1091{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, 1091{ "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" },
1092{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, 1092{ "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" },
1093{ "Data storage path","Daten Speicherpfad" }, 1093{ "Data storage path","Daten Speicherpfad" },
1094{ "Language","Sprache" }, 1094{ "Language","Sprache" },
1095{ "Show time in agenda items","Zeige Zeit in Agenda Items" }, 1095{ "Show time in agenda items","Zeige Zeit in Agenda Items" },
1096{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, 1096{ "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" },
1097{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, 1097{ "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" },
1098{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, 1098{ "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" },
1099{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, 1099{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" },
1100{ "KO/Pi","KO/Pi" }, 1100{ "KO/Pi","KO/Pi" },
1101{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, 1101{ "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" },
1102{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, 1102{ "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." },
1103{ "Sound.Al.: ","Sound.Al.: " }, 1103{ "Sound.Al.: ","Sound.Al.: " },
1104{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, 1104{ "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" },
1105{ "Restore","Wiederherstellen" }, 1105{ "Restore","Wiederherstellen" },
1106{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, 1106{ "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" },
1107{ "% completed","% erledigt" }, 1107{ "% completed","% erledigt" },
1108{ "%d item(s) found.","%d Item(s) gefunden." }, 1108{ "%d item(s) found.","%d Item(s) gefunden." },
1109{ "Set complete","Setze auf erledigt" }, 1109{ "Set complete","Setze auf erledigt" },
1110{ "(cancelled)","(gecancelt)" }, 1110{ "(cancelled)","(gecancelt)" },
1111{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, 1111{ "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" },
1112{ " Local time "," Locale Zeit " }, 1112{ " Local time "," Locale Zeit " },
1113{ "Form2","Form2" }, 1113{ "Form2","Form2" },
1114{ "Filter enabled","Filter angeschaltet" }, 1114{ "Filter enabled","Filter angeschaltet" },
1115{ "Edit Filters","Ändere Filter" }, 1115{ "Edit Filters","Ändere Filter" },
1116{ "Print What's Next View...","Drucke What's Next Ansicht..." }, 1116{ "Print What's Next View...","Drucke What's Next Ansicht..." },
1117{ "Agenda","Agenda" }, 1117{ "Agenda","Agenda" },
1118{ " ("," (" }, 1118{ " ("," (" },
1119{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, 1119{ "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" },
1120{ "Print","Print" }, 1120{ "Print","Print" },
1121{ "&Setup Printer...","Drucker &Setup..." }, 1121{ "&Setup Printer...","Drucker &Setup..." },
1122{ "View Type","Zeige Typ" }, 1122{ "View Type","Zeige Typ" },
1123{ "Page &orientation:","Seiten Ausrichtung:" }, 1123{ "Page &orientation:","Seiten Ausrichtung:" },
1124{ "Use Default of Selected Style","Default des selektierten Stils" }, 1124{ "Use Default of Selected Style","Default des selektierten Stils" },
1125{ "Use Default Setting of Printer","Default Einstellung des Druckers" }, 1125{ "Use Default Setting of Printer","Default Einstellung des Druckers" },
1126{ "Portrait","Portrait" }, 1126{ "Portrait","Portrait" },
1127{ "Landscape","Landschaft" }, 1127{ "Landscape","Landschaft" },
1128{ "Print day","Drucke Tag" }, 1128{ "Print day","Drucke Tag" },
1129{ "CalPrintDay_Base","CalPrintDay_Base" }, 1129{ "CalPrintDay_Base","CalPrintDay_Base" },
1130{ "Date && Time Range","Datum && Zeitspanne" }, 1130{ "Date && Time Range","Datum && Zeitspanne" },
1131{ "&End date:","&Enddatum:" }, 1131{ "&End date:","&Enddatum:" },
1132{ "&Start date:","&Startdatum:" }, 1132{ "&Start date:","&Startdatum:" },
1133{ "Start &time:","Startzeit:" }, 1133{ "Start &time:","Startzeit:" },
1134{ "End ti&me:","Endzeit:" }, 1134{ "End ti&me:","Endzeit:" },
1135{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, 1135{ "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" },
1136{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, 1136{ "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" },
1137{ "Alt+D","Alt+D" }, 1137{ "Alt+D","Alt+D" },
1138{ "&Use colors","Nutze Farben" }, 1138{ "&Use colors","Nutze Farben" },
1139{ "Alt+U","Alt+U" }, 1139{ "Alt+U","Alt+U" },
1140{ "Print week","Drucke Woche" }, 1140{ "Print week","Drucke Woche" },
1141{ "CalPrintWeek_Base","CalPrintWeek_Base" }, 1141{ "CalPrintWeek_Base","CalPrintWeek_Base" },
1142{ "Use &colors","Nutze Farben" }, 1142{ "Use &colors","Nutze Farben" },
1143{ "Type of View","Typ der Ansicht" }, 1143{ "Type of View","Typ der Ansicht" },
1144{ "Print as &Filofax page","Drucke als &Filofax Seite" }, 1144{ "Print as &Filofax page","Drucke als &Filofax Seite" },
1145{ "Alt+F","Alt+F" }, 1145{ "Alt+F","Alt+F" },
1146{ "Print as &timetable view:","Drucke als Zeittabelle:" }, 1146{ "Print as &timetable view:","Drucke als Zeittabelle:" },
1147{ "Alt+T","Alt+T" }, 1147{ "Alt+T","Alt+T" },
1148{ "Print as split week view","Drucke als gesplittete Wochenansicht" }, 1148{ "Print as split week view","Drucke als gesplittete Wochenansicht" },
1149{ "Print month","Drucke Monat" }, 1149{ "Print month","Drucke Monat" },
1150{ "CalPrintMonth_Base","CalPrintMonth_Base" }, 1150{ "CalPrintMonth_Base","CalPrintMonth_Base" },
1151{ "&Start month:","&Startmonat:" }, 1151{ "&Start month:","&Startmonat:" },
1152{ "&End month:","&Endmonat:" }, 1152{ "&End month:","&Endmonat:" },
1153{ "Print week &numbers","Drucke Wochen Nummer(n)" }, 1153{ "Print week &numbers","Drucke Wochen Nummer(n)" },
1154{ "Print todos","Drucke Todos" }, 1154{ "Print todos","Drucke Todos" },
1155{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, 1155{ "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" },
1156{ "Include &description of the item","Inclusive Itembeschreibung" }, 1156{ "Include &description of the item","Inclusive Itembeschreibung" },
1157{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, 1157{ "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" },
1158{ "Include &priority of the item","Inclusive Priorität des Items" }, 1158{ "Include &priority of the item","Inclusive Priorität des Items" },
1159{ "Items to Print","Zu druckende Items" }, 1159{ "Items to Print","Zu druckende Items" },
1160{ "&From:","Von:" }, 1160{ "&From:","Von:" },
1161{ "&To:","Bis:" }, 1161{ "&To:","Bis:" },
1162{ "Print &all todo items","Drucke alle Todo Items" }, 1162{ "Print &all todo items","Drucke alle Todo Items" },
1163{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, 1163{ "Print only &uncompleted items","Drucke nur nicht erledigte Todos" },
1164{ "Only items due in the &range:","Nur Items in dem Zeitraum:" }, 1164{ "Only items due in the &range:","Nur Items in dem Zeitraum:" },
1165{ "Todo List","Todo Liste" }, 1165{ "Todo List","Todo Liste" },
1166{ "&Title:","&Titel:" }, 1166{ "&Title:","&Titel:" },
1167{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, 1167{ "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" },
1168{ "Todo list","Todo Liste" }, 1168{ "Todo list","Todo Liste" },
1169{ "&Print...","Drucke..." }, 1169{ "&Print...","Drucke..." },
1170{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, 1170{ "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" },
1171{ "[Unconfigured]","[Unkonfiguriert]" }, 1171{ "[Unconfigured]","[Unkonfiguriert]" },
1172{ "OK","OK" }, 1172{ "OK","OK" },
1173{ "FilterEditor","FilterEditor" }, 1173{ "FilterEditor","FilterEditor" },
1174{ "Include","Inclusive" }, 1174{ "Include","Inclusive" },
1175{ "Exclude","Exclusive" }, 1175{ "Exclude","Exclusive" },
1176{ "Edit Selection...","Editiere Auswahl" }, 1176{ "Edit Selection...","Editiere Auswahl" },
1177{ "recurring events","wiederholende Termine" }, 1177{ "recurring events","wiederholende Termine" },
1178{ "recurr. events","wiederh.Termine" }, 1178{ "recurr. events","wiederh.Termine" },
1179{ "completed to-dos","erledigte Todos" }, 1179{ "completed to-dos","erledigte Todos" },
1180{ "events","Termine" }, 1180{ "events","Termine" },
1181{ "todos","Todos" }, 1181{ "todos","Todos" },
1182{ "journals","Journale" }, 1182{ "journals","Journale" },
1183{ "public","öffentl." }, 1183{ "public","öffentl." },
1184{ "private","privat" }, 1184{ "private","privat" },
1185{ "confidential","vertraul." }, 1185{ "confidential","vertraul." },
1186{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, 1186{ "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" },
1187{ "Yesterday","Gestern" }, 1187{ "Yesterday","Gestern" },
1188{ "Day after tomorrow","Übermorgen" }, 1188{ "Day after tomorrow","Übermorgen" },
1189{ "Tomorrow","Morgen" }, 1189{ "Tomorrow","Morgen" },
1190{ "Day before yesterday","Vorgestern" }, 1190{ "Day before yesterday","Vorgestern" },
1191{ "Size %1","Größe %1" }, 1191{ "Size %1","Größe %1" },
1192{ "New Agendasize: %1","Neue Agendagröße: %1" }, 1192{ "New Agendasize: %1","Neue Agendagröße: %1" },
1193{ " (%1 y.)"," (%1 J.)" }, 1193{ " (%1 y.)"," (%1 J.)" },
1194{ "Allday:","Ganztägig:" }, 1194{ "Allday:","Ganztägig:" },
1195{ "compl.todos","erled.Todos" }, 1195{ "compl.todos","erled.Todos" },
1196{ "Day view","Tagesansicht" }, 1196{ "Day view","Tagesansicht" },
1197{ "Next days","Nächste Tage" }, 1197{ "Next days","Nächste Tage" },
1198{ "Next week","Nächste Woche" }, 1198{ "Next week","Nächste Woche" },
1199{ "Next two weeks","Nächste zwei Wochen" }, 1199{ "Next two weeks","Nächste zwei Wochen" },
1200{ "Next month","Nächster Monat" }, 1200{ "Next month","Nächster Monat" },
1201{ "Journal view","Journal" }, 1201{ "Journal view","Journal" },
1202{ "Display all opened","Zeige alle geöffnet" }, 1202{ "Display all opened","Zeige alle geöffnet" },
1203{ "Display all closed","Zeige alle geschlossen" }, 1203{ "Display all closed","Zeige alle geschlossen" },
1204{ "Display all flat","Zeige alle flach" }, 1204{ "Display all flat","Zeige alle flach" },
1205{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, 1205{ "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" },
1206{ "Default todo done color:","Standard Todo erledigt Farbe" }, 1206{ "Default todo done color:","Standard Todo erledigt Farbe" },
1207{ "Select week %1-%2","Wähle Woche %1-%2" }, 1207{ "Select week %1-%2","Wähle Woche %1-%2" },
1208{ "Select Week","Wähle Woche" }, 1208{ "Select Week","Wähle Woche" },
1209{ "Set alarm for selected...","Setze Alarm für Selekt..." }, 1209{ "Set alarm for selected...","Setze Alarm für Selekt..." },
1210{ "Set Alarm!","Setze Alarm!" }, 1210{ "Set Alarm!","Setze Alarm!" },
1211{ "Canged alarm for %1 items","Alarm für %1 Items geändert" }, 1211{ "Canged alarm for %1 items","Alarm für %1 Items geändert" },
1212{ " and "," und " }, 1212{ " and "," und " },
1213{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, 1213{ "<IMG src="%1"> only )","nur <IMG src="%1"> )" },
1214{ "Mail to selected","Mail an Ausgewählte" }, 1214{ "Mail to selected","Mail an Ausgewählte" },
1215{ "Mail to all","Mail an Alle" }, 1215{ "Mail to all","Mail an Alle" },
1216{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, 1216{ "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" },
1217{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, 1217{ "Set reminder ON with offset to:","Alarm AN mit Offset auf:" },
1218{ " on"," am" }, 1218{ " on"," am" },
1219{ " completed on "," erledigt am " }, 1219{ " completed on "," erledigt am " },
1220{ "Save as Event template","Speichere als Vorlage" }, 1220{ "Save as Event template","Speichere als Vorlage" },
1221{ "Load Event template","Lade Termin Vorlage" }, 1221{ "Load Event template","Lade Termin Vorlage" },
1222{ "Save as Journal template","Speichere als Journal Vorlage" }, 1222{ "Save as Journal template","Speichere als Journal Vorlage" },
1223{ "Insert Journal template","Füge Journal Vorlage ein" }, 1223{ "Insert Journal template","Füge Journal Vorlage ein" },
1224{ "Sub todos:<br>","Unter Todos:<br>" }, 1224{ "Sub todos:<br>","Unter Todos:<br>" },
1225{ "Parent todo:<br>","Über Todo:<br>" }, 1225{ "Parent todo:<br>","Über Todo:<br>" },
1226{ "Set current as color category","Setze Gewählte als Farbkategorie" }, 1226{ "Set current as color category","Setze Gewählte als Farbkategorie" },
1227{ " completed"," erledigt" }, 1227{ " completed"," erledigt" },
1228{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.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!" }, 1228{ "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.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!" },
1229{ "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, 1229{ "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." },
1230{ "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, 1230{ "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." },
1231{ "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, 1231{ "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." },
1232{ "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, 1232{ "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" },
1233{ "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, 1233{ "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." },
1234{ "Error","Fehler" }, 1234{ "Error","Fehler" },
1235{ ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, 1235{ ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." },
1236{ "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, 1236{ "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." },
1237{ "Warning","Warnung" }, 1237{ "Warning","Warnung" },
1238{ "Select week number","Wähle Wochen Nummer" }, 1238{ "Select week number","Wähle Wochen Nummer" },
1239{ "Februar","Februar" }, 1239{ "Februar","Februar" },
1240{ "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, 1240{ "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" },
1241{ "W","W" }, 1241{ "W","W" },
1242{ "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, 1242{ "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" },
1243{ "T: %1","T: %1" }, 1243{ "T: %1","T: %1" },
1244{ "Start: ","Start: " }, 1244{ "Start: ","Start: " },
1245{ "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, 1245{ "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " },
1246{ "Password for remote access:","Passwort für fernen Zugriff:" }, 1246{ "Password for remote access:","Passwort für fernen Zugriff:" },
1247{ "Remote IP address:","Ferne IP Adresse:" }, 1247{ "Remote IP address:","Ferne IP Adresse:" },
1248{ "Remote port number:","Ferne Port Nummer:" }, 1248{ "Remote port number:","Ferne Port Nummer:" },
1249{ "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, 1249{ "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." },
1250{ "Remote from: ","Fern von: " }, 1250{ "Remote from: ","Fern von: " },
1251{ "Local from: ","Lokal von: " }, 1251{ "Local from: ","Lokal von: " },
1252{ "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" }, 1252{ "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" },
1253{ "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, 1253{ "Local calendar changed!\n","Lokaler Kalender geändert!\n" },
1254{ "Write back","Schreibe zurück" }, 1254{ "Write back","Schreibe zurück" },
1255{ "KO/Pi Synchronization","KO/Pi Synchronisation" }, 1255{ "KO/Pi Synchronization","KO/Pi Synchronisation" },
1256{ "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, 1256{ "Pi-Sync succesful!","Pi-Sync erfolgreich!" },
1257{ "Received sync request","Sync Anfrage erhalten" }, 1257{ "Received sync request","Sync Anfrage erhalten" },
1258{ "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." }, 1258{ "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." },
1259{ "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, 1259{ "Saving Data to temp file ...","Speichere Daten in temp Datei..." },
1260{ "Data saved to temp file!","Daten in temp Datei gespeichert!" }, 1260{ "Data saved to temp file!","Daten in temp Datei gespeichert!" },
1261{ "Sending file...","Sende Datei..." }, 1261{ "Sending file...","Sende Datei..." },
1262{ "Waiting for synced file...","Warte auf gesyncte Daten..." }, 1262{ "Waiting for synced file...","Warte auf gesyncte Daten..." },
1263{ "Receiving synced file...","Gesyncte Daten erhalten..." }, 1263{ "Receiving synced file...","Gesyncte Daten erhalten..." },
1264{ "Received %1 bytes","%1 Bytes erhalten" }, 1264{ "Received %1 bytes","%1 Bytes erhalten" },
1265{ "Writing file to disk...","Speichere Datei..." }, 1265{ "Writing file to disk...","Speichere Datei..." },
1266{ "Pi-Sync successful!","Pi-Sync erfolgreich!" }, 1266{ "Pi-Sync successful!","Pi-Sync erfolgreich!" },
1267{ "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, 1267{ "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" },
1268{ "Synchronize!","Synchronisiere!" }, 1268{ "Synchronize!","Synchronisiere!" },
1269{ "High clock skew!","Großer Uhrzeitunterschied!" }, 1269{ "High clock skew!","Großer Uhrzeitunterschied!" },
1270{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, 1270{ "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" },
1271{ "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!" }, 1271{ "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!" },
1272{ "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, 1272{ "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." },
1273{ "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, 1273{ "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" },
1274{ "List week view","Listenwochenansicht" }, 1274{ "List week view","Listenwochenansicht" },
1275{ "List week","Listenwochenansicht" }, 1275{ "List week","Listenwochenansicht" },
1276{ "Next Week","Nächste Woche" }, 1276{ "Next Week","Nächste Woche" },
1277{ "Previous Week","Vorherige Woche" }, 1277{ "Previous Week","Vorherige Woche" },
1278{ "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." }, 1278{ "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." },
1279{ "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, 1279{ "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" },
1280{ "Details","Details" }, 1280{ "Details","Details" },
1281{ "Created time","Erstellt Zeit" }, 1281{ "Created time","Erstellt Zeit" },
1282{ "Last modified time","Geändert Zeit" }, 1282{ "Last modified time","Geändert Zeit" },
1283{ "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, 1283{ "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" },
1284{ "View Options","Anzeige Optionen" }, 1284{ "View Options","Anzeige Optionen" },
1285{ "<b>Created: ","<b>Erstellt am: " }, 1285{ "<b>Created: ","<b>Erstellt am: " },
1286{ "<b>Last modified: ","<b>Zuletzt geändert am: " }, 1286{ "<b>Last modified: ","<b>Zuletzt geändert am: " },
1287{ "Journal: ","Journal: " }, 1287{ "Journal: ","Journal: " },
1288{ "yearly","jährlich" }, 1288{ "yearly","jährlich" },
1289{ "(%1) ","%1-" }, 1289{ "(%1) ","%1-" },
1290{ "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, 1290{ "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" },
1291{ "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, 1291{ "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" },
1292{ "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, 1292{ "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" },
1293{ "Summary/Loc.","Titel/Ort" }, 1293{ "Summary/Loc.","Titel/Ort" },
1294{ "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, 1294{ "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." },
1295{ "Week Number","Wochennummer" }, 1295{ "Week Number","Wochennummer" },
1296{ "Import","Importiere" }, 1296{ "Import","Importiere" },
1297{ "Export","Exportiere" }, 1297{ "Export","Exportiere" },
1298{ "Beam","Beame" }, 1298{ "Beam","Beame" },
1299{ "Export selected","Exportiere Selektierte" }, 1299{ "Export selected","Exportiere Selektierte" },
1300{ "As iCal (ics) file...","Als iCal (ics) Datei..." }, 1300{ "As iCal (ics) file...","Als iCal (ics) Datei..." },
1301{ "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, 1301{ "As vCal (vcs) file...","Als vCal (vcs) Datei..." },
1302{ "Journal/Details...","Journale/Details..." }, 1302{ "Journal/Details...","Journale/Details..." },
1303{ "Agenda View","Agenda Ansicht" }, 1303{ "Agenda View","Agenda Ansicht" },
1304{ "Show current time","Zeige aktuelle Zeit" }, 1304{ "Show current time","Zeige aktuelle Zeit" },
1305{ "Edit new item","Bearbeite neuen Eintrag" }, 1305{ "Edit new item","Bearbeite neuen Eintrag" },
1306{ "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" }, 1306{ "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" },
1307{ "There is no next alarm.","Es gibt keinen nächsten Alarm." }, 1307{ "There is no next alarm.","Es gibt keinen nächsten Alarm." },
1308{ "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, 1308{ "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" },
1309{ "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, 1309{ "The next alarm is in:\n","Der nächste Alarm ist in:\n" },
1310{ "%1 days\n","%1 Tagen\n" }, 1310{ "%1 days\n","%1 Tagen\n" },
1311{ "1 day\n","1 Tag\n" }, 1311{ "1 day\n","1 Tag\n" },
1312{ "%1 hours\n","%1 Stunden\n" }, 1312{ "%1 hours\n","%1 Stunden\n" },
1313{ "1 hour\n","1 Stunde\n" }, 1313{ "1 hour\n","1 Stunde\n" },
1314{ "%1 minutes\n","%1 Minuten\n" }, 1314{ "%1 minutes\n","%1 Minuten\n" },
1315{ "1 minute\n","1 Minute\n" }, 1315{ "1 minute\n","1 Minute\n" },
1316{ "Only one toolbar","Nur eine Toolbar" }, 1316{ "Only one toolbar","Nur eine Toolbar" },
1317{ "Print","Drucke" }, 1317{ "Print","Drucke" },
1318{ "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, 1318{ "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." },
1319{ "There is nothing selected!","Es ist nichts ausgewählt!" }, 1319{ "There is nothing selected!","Es ist nichts ausgewählt!" },
1320{ "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, 1320{ "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " },
1321{ "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, 1321{ "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" },
1322{ "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" }, 1322{ "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" },
1323{ "KO/Pi Printout","KO/Pi Ausdruck" }, 1323{ "KO/Pi Printout","KO/Pi Ausdruck" },
1324{ "Print unscaled","Drucke unskaliert" }, 1324{ "Print unscaled","Drucke unskaliert" },
1325{ "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, 1325{ "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." },
1326{ "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, 1326{ "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." },
1327{ "Printout Mode","Druck Modus" }, 1327{ "Printout Mode","Druck Modus" },
1328{ "Filter menu icon","Filtermenu Icon" }, 1328{ "Filter menu icon","Filtermenu Icon" },
1329{ "<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" },
1330{ "<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" },
1331{ "","" },
1332{ "","" },
1333{ "","" },
1334{ "","" },
1335{ "","" },
1336{ "","" },
1337{ "","" },
1338{ "","" },
1339{ "","" },
1340{ "","" },
1329{ "","" }, 1341{ "","" },
1330{ "","" }, 1342{ "","" },
1331{ "","" }, \ No newline at end of file 1343{ "","" }, \ No newline at end of file
diff --git a/kabc/phonenumber.cpp b/kabc/phonenumber.cpp
index abb3b3b..041effc 100644
--- a/kabc/phonenumber.cpp
+++ b/kabc/phonenumber.cpp
@@ -1,240 +1,236 @@
1/* 1/*
2 This file is part of libkabc. 2 This file is part of libkabc.
3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> 3 Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org>
4 4
5 This library is free software; you can redistribute it and/or 5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public 6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either 7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version. 8 version 2 of the License, or (at your option) any later version.
9 9
10 This library is distributed in the hope that it will be useful, 10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details. 13 Library General Public License for more details.
14 14
15 You should have received a copy of the GNU Library General Public License 15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to 16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330, 17 the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
18 Boston, MA 02111-1307, USA. 18 Boston, MA 02111-1307, USA.
19*/ 19*/
20 20
21/* 21/*
22Enhanced Version of the file for platform independent KDE tools. 22Enhanced Version of the file for platform independent KDE tools.
23Copyright (c) 2004 Ulf Schenk 23Copyright (c) 2004 Ulf Schenk
24 24
25$Id$ 25$Id$
26*/ 26*/
27 27
28#include <kapplication.h> 28#include <kapplication.h>
29#include <klocale.h> 29#include <klocale.h>
30 30
31#include "phonenumber.h" 31#include "phonenumber.h"
32 32
33using namespace KABC; 33using namespace KABC;
34 34
35PhoneNumber::PhoneNumber() : 35PhoneNumber::PhoneNumber() :
36 mType( Home ) 36 mType( Home )
37{ 37{
38 init(); 38 init();
39} 39}
40 40
41PhoneNumber::PhoneNumber( const QString &number, int type ) : 41PhoneNumber::PhoneNumber( const QString &number, int type ) :
42 mType( type ), mNumber( number ) 42 mType( type ), mNumber( number )
43{ 43{
44 init(); 44 init();
45} 45}
46 46
47PhoneNumber::~PhoneNumber() 47PhoneNumber::~PhoneNumber()
48{ 48{
49} 49}
50 50
51void PhoneNumber::init() 51void PhoneNumber::init()
52{ 52{
53 mId = KApplication::randomString( 8 ); 53 mId = KApplication::randomString( 8 );
54} 54}
55 55
56bool PhoneNumber::operator==( const PhoneNumber &p ) const 56bool PhoneNumber::operator==( const PhoneNumber &p ) const
57{ 57{
58 if ( mNumber != p.mNumber ) return false; 58 if ( mNumber != p.mNumber ) return false;
59 if ( mType != p.mType ) return false; 59 if ( mType != p.mType ) return false;
60 60
61 return true; 61 return true;
62} 62}
63 63
64bool PhoneNumber::operator!=( const PhoneNumber &p ) const 64bool PhoneNumber::operator!=( const PhoneNumber &p ) const
65{ 65{
66 return !( p == *this ); 66 return !( p == *this );
67} 67}
68 68
69bool PhoneNumber::simplifyNumber() 69bool PhoneNumber::simplifyNumber()
70{ 70{
71 QString Number; 71 QString Number;
72 int i; 72 int i;
73 Number = mNumber.stripWhiteSpace (); 73 Number = mNumber.stripWhiteSpace ();
74 mNumber = ""; 74 mNumber = "";
75 for ( i = 0; i < Number.length(); ++i) { 75 for ( i = 0; i < Number.length(); ++i) {
76 if ( Number.at(i).isDigit() || Number.at(i) == '+'|| Number.at(i) == '*'|| Number.at(i) == '#' ) 76 if ( Number.at(i).isDigit() || Number.at(i) == '+'|| Number.at(i) == '*'|| Number.at(i) == '#' )
77 mNumber += Number.at(i); 77 mNumber += Number.at(i);
78 } 78 }
79 return ( mNumber.length() > 0 ); 79 return ( mNumber.length() > 0 );
80} 80}
81// make cellphone compatible 81// make cellphone compatible
82void PhoneNumber::simplifyType() 82void PhoneNumber::simplifyType()
83{ 83{
84 if ( mType & Fax ) mType = Fax; 84 if ( mType & Fax ) mType = Fax;
85 else if ( mType & Cell ) mType = Cell; 85 else if ( mType & Cell ) mType = Cell;
86 else if ( mType & Work ) mType = Work ; 86 else if ( mType & Work ) mType = Work ;
87 else if ( mType & Home ) mType = Home; 87 else if ( mType & Home ) mType = Home;
88 else mType = Pref; 88 else mType = Pref;
89} 89}
90bool PhoneNumber::contains( const PhoneNumber &p ) 90bool PhoneNumber::contains( const PhoneNumber &p )
91{ 91{
92 PhoneNumber myself; 92 PhoneNumber myself;
93 PhoneNumber other; 93 PhoneNumber other;
94 myself = *this; 94 myself = *this;
95 other = p; 95 other = p;
96 myself.simplifyNumber(); 96 myself.simplifyNumber();
97 other.simplifyNumber(); 97 other.simplifyNumber();
98 if ( myself.number() != other.number ()) 98 if ( myself.number() != other.number ())
99 return false; 99 return false;
100 myself.simplifyType(); 100 myself.simplifyType();
101 other.simplifyType(); 101 other.simplifyType();
102 if ( myself.type() == other.type()) 102 if ( myself.type() == other.type())
103 return true; 103 return true;
104 return false; 104 return false;
105} 105}
106 106
107void PhoneNumber::setId( const QString &id ) 107void PhoneNumber::setId( const QString &id )
108{ 108{
109 mId = id; 109 mId = id;
110} 110}
111 111
112QString PhoneNumber::id() const 112QString PhoneNumber::id() const
113{ 113{
114 return mId; 114 return mId;
115} 115}
116 116
117void PhoneNumber::setNumber( const QString &number ) 117void PhoneNumber::setNumber( const QString &number )
118{ 118{
119 mNumber = number; 119 mNumber = number;
120} 120}
121 121
122QString PhoneNumber::number() const 122QString PhoneNumber::number() const
123{ 123{
124 return mNumber; 124 return mNumber;
125} 125}
126 126
127void PhoneNumber::setType( int type ) 127void PhoneNumber::setType( int type )
128{ 128{
129 mType = type; 129 mType = type;
130} 130}
131 131
132int PhoneNumber::type() const 132int PhoneNumber::type() const
133{ 133{
134 return mType; 134 return mType;
135} 135}
136 136
137QString PhoneNumber::typeLabel() const 137QString PhoneNumber::typeLabel() const
138{ 138{
139 QString label; 139 QString label;
140 bool first = true; 140 bool first = true;
141 141
142 TypeList list = typeList(); 142 TypeList list = typeList();
143 143
144 TypeList::Iterator it; 144 TypeList::Iterator it;
145 for ( it = list.begin(); it != list.end(); ++it ) { 145 for ( it = list.begin(); it != list.end(); ++it ) {
146 if ( ( type() & (*it) ) && ( (*it) != Pref ) ) { 146 if ( ( type() & (*it) ) && ( (*it) != Pref ) ) {
147 label.append( ( first ? "" : "/" ) + typeLabel( *it ) ); 147 label.append( ( first ? "" : "/" ) + typeLabel( *it ) );
148 if ( first ) 148 if ( first )
149 first = false; 149 first = false;
150 } 150 }
151 } 151 }
152 152
153 return label; 153 return label;
154} 154}
155 155
156QString PhoneNumber::label() const 156QString PhoneNumber::label() const
157{ 157{
158 return typeLabel( type() ); 158 return typeLabel( type() );
159} 159}
160 160
161PhoneNumber::TypeList PhoneNumber::typeList() 161PhoneNumber::TypeList PhoneNumber::typeList()
162{ 162{
163 TypeList list; 163 TypeList list;
164 164
165 list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video 165 list << Home << Work << Msg << Pref << Voice << Fax << Cell << Video
166 << Bbs << Modem << Car << Isdn << Pcs << Pager << Sip; 166 << Bbs << Modem << Car << Isdn << Pcs << Pager << Sip;
167 167
168 return list; 168 return list;
169} 169}
170 170
171QString PhoneNumber::label( int type ) 171QString PhoneNumber::label( int type )
172{ 172{
173 return typeLabel( type ); 173 return typeLabel( type );
174} 174}
175 175
176QString PhoneNumber::typeLabel( int type ) 176QString PhoneNumber::typeLabel( int type )
177{ 177{
178 QString typeString; 178 QString typeString;
179 179
180 if ((type & Home) == Home) 180 if ((type & Home) == Home)
181 typeString += i18n("Home"); 181 typeString += i18n("Home");
182 else if ((type & Work) == Work) 182 else if ((type & Work) == Work)
183 typeString += i18n("Work"); 183 typeString += i18n("Work");
184 184
185 if (!typeString.isEmpty()) 185 if (!typeString.isEmpty())
186 typeString += " "; 186 typeString += " ";
187
188 if ((type & Cell) == Cell) 187 if ((type & Cell) == Cell)
189 typeString += i18n("Mobile"); 188 typeString += i18n("Mobile") +" ";
190 else if ((type & Fax) == Fax) 189 if ((type & Sip) == Sip)
190 typeString += i18n("SIP")+" ";
191 if ((type & Car) == Car)
192 typeString += i18n("Car")+" ";
193
194 if ((type & Fax) == Fax)
191 typeString += i18n("Fax"); 195 typeString += i18n("Fax");
192 else if ((type & Msg) == Msg) 196 else if ((type & Msg) == Msg)
193 typeString += i18n("Messenger"); 197 typeString += i18n("Messenger");
194 else if ((type & Voice) == Voice) {
195// add nothing in case of the Voice flag
196// typeString += i18n("Voice");
197 }
198 else if ((type & Video) == Video) 198 else if ((type & Video) == Video)
199 typeString += i18n("Video"); 199 typeString += i18n("Video");
200 else if ((type & Bbs) == Bbs) 200 else if ((type & Bbs) == Bbs)
201 typeString += i18n("Mailbox"); 201 typeString += i18n("Mailbox");
202 else if ((type & Modem) == Modem) 202 else if ((type & Modem) == Modem)
203 typeString += i18n("Modem"); 203 typeString += i18n("Modem");
204 else if ((type & Car) == Car)
205 typeString += i18n("Car");
206 else if ((type & Isdn) == Isdn) 204 else if ((type & Isdn) == Isdn)
207 typeString += i18n("ISDN"); 205 typeString += i18n("ISDN");
208 else if ((type & Pcs) == Pcs) 206 else if ((type & Pcs) == Pcs)
209 typeString += i18n("PCS"); 207 typeString += i18n("PCS");
210 else if ((type & Pager) == Pager) 208 else if ((type & Pager) == Pager)
211 typeString += i18n("Pager"); 209 typeString += i18n("Pager");
212 else if ((type & Sip) == Sip)
213 typeString += i18n("SIP");
214
215 // add the prefered flag 210 // add the prefered flag
216 if (!typeString.isEmpty())
217 typeString += " ";
218 /* 211 /*
219 if ((type & Pref) == Pref) 212 if ((type & Pref) == Pref)
220 typeString += i18n("(p)"); 213 typeString += i18n("(p)");
221 */ 214 */
222 //if we still have no match, return "other" 215 //if we still have no match, return "other"
223 if (typeString.isEmpty()) 216 if (typeString.isEmpty()) {
224 return i18n("Other"); 217 if ((type & Voice) == Voice)
225 218 return i18n("Voice");
226 219 else
227 return typeString; 220 return i18n("Other");
221 }
222
223 return typeString.stripWhiteSpace();
228} 224}
229 225
230QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone ) 226QDataStream &KABC::operator<<( QDataStream &s, const PhoneNumber &phone )
231{ 227{
232 return s << phone.mId << phone.mType << phone.mNumber; 228 return s << phone.mId << phone.mType << phone.mNumber;
233} 229}
234 230
235QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone ) 231QDataStream &KABC::operator>>( QDataStream &s, PhoneNumber &phone )
236{ 232{
237 s >> phone.mId >> phone.mType >> phone.mNumber; 233 s >> phone.mId >> phone.mType >> phone.mNumber;
238 234
239 return s; 235 return s;
240} 236}
diff --git a/kaddressbook/emaileditwidget.cpp b/kaddressbook/emaileditwidget.cpp
index 0e01b02..e72face 100644
--- a/kaddressbook/emaileditwidget.cpp
+++ b/kaddressbook/emaileditwidget.cpp
@@ -1,275 +1,277 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#include <qcheckbox.h> 24#include <qcheckbox.h>
25#include <qlabel.h> 25#include <qlabel.h>
26#include <qlayout.h> 26#include <qlayout.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28#include <qstring.h> 28#include <qstring.h>
29#include <qtoolbutton.h> 29#include <qtoolbutton.h>
30#include <qtooltip.h> 30#include <qtooltip.h>
31#include <qlistbox.h> 31#include <qlistbox.h>
32 32
33#ifndef KAB_EMBEDDED 33#ifndef KAB_EMBEDDED
34#include <kaccelmanager.h> 34#include <kaccelmanager.h>
35#endif //KAB_EMBEDDED 35#endif //KAB_EMBEDDED
36#include <kconfig.h> 36#include <kconfig.h>
37#include <kcombobox.h> 37#include <kcombobox.h>
38#include <kdebug.h> 38#include <kdebug.h>
39#include <kglobal.h> 39#include <kglobal.h>
40#include <kdialog.h> 40#include <kdialog.h>
41#include <kiconloader.h> 41#include <kiconloader.h>
42#include <klineedit.h> 42#include <klineedit.h>
43#include <klocale.h> 43#include <klocale.h>
44#include <kmessagebox.h> 44#include <kmessagebox.h>
45 45
46#include "emaileditwidget.h" 46#include "emaileditwidget.h"
47 47
48EmailEditWidget::EmailEditWidget( QWidget *parent, const char *name ) 48EmailEditWidget::EmailEditWidget( QWidget *parent, const char *name )
49 : QWidget( parent, name ) 49 : QWidget( parent, name )
50{ 50{
51 QGridLayout *topLayout = new QGridLayout( this, 2, 2 ); 51 QGridLayout *topLayout = new QGridLayout( this, 2, 2 );
52 topLayout->setSpacing( KDialog::spacingHint() ); 52 topLayout->setSpacing( KDialog::spacingHint() );
53 QLabel* label = new QLabel( this ); 53 QLabel* label = new QLabel( this );
54 54
55 label->setPixmap( KGlobal::iconLoader()->loadIcon( "mail_send", KIcon::Desktop, 0) ); 55 label->setPixmap( KGlobal::iconLoader()->loadIcon( "mail_send", KIcon::Desktop, 0) );
56 56
57 topLayout->addWidget( label, 0, 0 ); 57 topLayout->addWidget( label, 0, 0 );
58 label->setAlignment( AlignCenter ); 58 label->setAlignment( AlignCenter );
59 QPushButton *editButton = new QPushButton( i18n( "Edit Email Addresses..." ), this); 59 QPushButton *editButton = new QPushButton( i18n( "Edit Email Addresses..." ), this);
60 topLayout->addWidget( editButton, 0, 1 ); 60 topLayout->addWidget( editButton, 0, 1 );
61 label = new QLabel( i18n( "Email:" ), this ); 61 label = new QLabel( i18n( "Email:" ), this );
62 topLayout->addWidget( label, 1, 0 ); 62 topLayout->addWidget( label, 1, 0 );
63 63
64 mEmailEdit = new KLineEdit( this ); 64 mEmailEdit = new KLineEdit( this );
65 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), 65 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ),
66 SLOT( textChanged( const QString& ) ) ); 66 SLOT( textChanged( const QString& ) ) );
67 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), 67 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ),
68 SIGNAL( modified() ) ); 68 SIGNAL( modified() ) );
69 label->setBuddy( mEmailEdit ); 69 label->setBuddy( mEmailEdit );
70 topLayout->addWidget( mEmailEdit, 1, 1 ); 70 topLayout->addWidget( mEmailEdit, 1, 1 );
71 71
72 72
73 connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); 73 connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) );
74 74
75 topLayout->activate(); 75 topLayout->activate();
76} 76}
77 77
78EmailEditWidget::~EmailEditWidget() 78EmailEditWidget::~EmailEditWidget()
79{ 79{
80} 80}
81 81
82void EmailEditWidget::setEmails( const QStringList &list ) 82void EmailEditWidget::setEmails( const QStringList &list )
83{ 83{
84 mEmailList = list; 84 mEmailList = list;
85 85
86 bool blocked = mEmailEdit->signalsBlocked(); 86 bool blocked = mEmailEdit->signalsBlocked();
87 mEmailEdit->blockSignals( true ); 87 mEmailEdit->blockSignals( true );
88 if ( list.count() > 0 ) 88 if ( list.count() > 0 )
89 mEmailEdit->setText( list[ 0 ] ); 89 mEmailEdit->setText( list[ 0 ] );
90 else 90 else
91 mEmailEdit->setText( "" ); 91 mEmailEdit->setText( "" );
92 mEmailEdit->blockSignals( blocked ); 92 mEmailEdit->blockSignals( blocked );
93} 93}
94 94
95QStringList EmailEditWidget::emails() 95QStringList EmailEditWidget::emails()
96{ 96{
97 if ( mEmailEdit->text().isEmpty() ) { 97 if ( mEmailEdit->text().isEmpty() ) {
98 if ( mEmailList.count() > 0 ) 98 if ( mEmailList.count() > 0 )
99 mEmailList.remove( mEmailList.begin() ); 99 mEmailList.remove( mEmailList.begin() );
100 } else { 100 } else {
101 if ( mEmailList.count() > 0 ) 101 if ( mEmailList.count() > 0 )
102 mEmailList.remove( mEmailList.begin() ); 102 mEmailList.remove( mEmailList.begin() );
103 103
104 mEmailList.prepend( mEmailEdit->text() ); 104 mEmailList.prepend( mEmailEdit->text() );
105 } 105 }
106 106
107 return mEmailList; 107 return mEmailList;
108} 108}
109 109
110void EmailEditWidget::edit() 110void EmailEditWidget::edit()
111{ 111{
112 EmailEditDialog dlg( mEmailList, this ); 112 EmailEditDialog dlg( mEmailList, this );
113 113
114 if ( dlg.exec() ) { 114 if ( dlg.exec() ) {
115 if ( dlg.changed() ) { 115 if ( dlg.changed() ) {
116 mEmailList = dlg.emails(); 116 mEmailList = dlg.emails();
117 mEmailEdit->setText( mEmailList[ 0 ] ); 117 mEmailEdit->setText( mEmailList[ 0 ] );
118 emit modified(); 118 emit modified();
119 } 119 }
120 } 120 }
121} 121}
122 122
123void EmailEditWidget::textChanged( const QString &text ) 123void EmailEditWidget::textChanged( const QString &text )
124{ 124{
125 if ( mEmailList.count() > 0 ) 125 if ( mEmailList.count() > 0 )
126 mEmailList.remove( mEmailList.begin() ); 126 mEmailList.remove( mEmailList.begin() );
127 127
128 mEmailList.prepend( text ); 128 mEmailList.prepend( text );
129} 129}
130 130
131 131
132EmailEditDialog::EmailEditDialog( const QStringList &list, QWidget *parent, 132EmailEditDialog::EmailEditDialog( const QStringList &list, QWidget *parent,
133 const char *name ) 133 const char *name )
134 : KDialogBase( KDialogBase::Plain, i18n( "Edit Email Addresses" ), 134 : KDialogBase( KDialogBase::Plain, i18n( "Edit Email Addresses" ),
135 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, 135 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok,
136 parent, name, true ) 136 parent, name, true )
137{ 137{
138 QWidget *page = plainPage(); 138 QWidget *page = plainPage();
139 139
140 QGridLayout *topLayout = new QGridLayout( page, 4, 3 ); 140 QGridLayout *topLayout = new QGridLayout( page, 4, 3 );
141 141
142 QLabel *label = new QLabel( i18n( "Email address:" ), page ); 142 QLabel *label = new QLabel( i18n( "Email address:" ), page );
143 topLayout->addWidget( label, 0, 0 ); 143 topLayout->addWidget( label, 0, 0 );
144 144
145 mEmailEdit = new KLineEdit( page ); 145 mEmailEdit = new KLineEdit( page );
146 label->setBuddy( mEmailEdit ); 146 label->setBuddy( mEmailEdit );
147 topLayout->addWidget( mEmailEdit, 0, 1 ); 147 topLayout->addWidget( mEmailEdit, 0, 1 );
148 connect( mEmailEdit, SIGNAL( returnPressed() ), SLOT( add() ) ); 148 connect( mEmailEdit, SIGNAL( returnPressed() ), SLOT( add() ) );
149 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ), 149 connect( mEmailEdit, SIGNAL( textChanged( const QString& ) ),
150 SLOT( emailChanged() ) ); 150 SLOT( emailChanged() ) );
151 151
152 mAddButton = new QPushButton( i18n( "Add" ), page ); 152 mAddButton = new QPushButton( i18n( "Add" ), page );
153 mAddButton->setEnabled( false ); 153 mAddButton->setEnabled( false );
154 connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) ); 154 connect( mAddButton, SIGNAL( clicked() ), SLOT( add() ) );
155 topLayout->addWidget( mAddButton, 0, 2 ); 155 topLayout->addWidget( mAddButton, 0, 2 );
156 156
157 mEmailListBox = new QListBox( page ); 157 mEmailListBox = new QListBox( page );
158 158
159 // Make sure there is room for the scrollbar 159 // Make sure there is room for the scrollbar
160 mEmailListBox->setMinimumHeight( mEmailListBox->sizeHint().height() + 30 ); 160 mEmailListBox->setMinimumHeight( mEmailListBox->sizeHint().height() + 30 );
161 connect( mEmailListBox, SIGNAL( highlighted( int ) ), 161 connect( mEmailListBox, SIGNAL( highlighted( int ) ),
162 SLOT( selectionChanged( int ) ) ); 162 SLOT( selectionChanged( int ) ) );
163 topLayout->addMultiCellWidget( mEmailListBox, 1, 3, 0, 1 ); 163 topLayout->addMultiCellWidget( mEmailListBox, 1, 3, 0, 1 );
164 164
165 mEditButton = new QPushButton( i18n( "Change" ), page ); 165 mEditButton = new QPushButton( i18n( "Change" ), page );
166 connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) ); 166 connect( mEditButton, SIGNAL( clicked() ), SLOT( edit() ) );
167 topLayout->addWidget( mEditButton, 1, 2 ); 167 topLayout->addWidget( mEditButton, 1, 2 );
168 168
169 mRemoveButton = new QPushButton( i18n( "Remove" ), page ); 169 mRemoveButton = new QPushButton( i18n( "Remove" ), page );
170 connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) ); 170 connect( mRemoveButton, SIGNAL( clicked() ), SLOT( remove() ) );
171 topLayout->addWidget( mRemoveButton, 2, 2 ); 171 topLayout->addWidget( mRemoveButton, 2, 2 );
172 172
173 mStandardButton = new QPushButton( i18n( "Set Standard" ), page ); 173 mStandardButton = new QPushButton( i18n( "Set Standard" ), page );
174 connect( mStandardButton, SIGNAL( clicked() ), SLOT( standard() ) ); 174 connect( mStandardButton, SIGNAL( clicked() ), SLOT( standard() ) );
175 topLayout->addWidget( mStandardButton, 3, 2 ); 175 topLayout->addWidget( mStandardButton, 3, 2 );
176 176
177 topLayout->activate(); 177 topLayout->activate();
178 QStringList items = list; 178 QStringList items = list;
179 179
180qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)"); 180qDebug("EmailEditDialog::EmailEditDialog has to be changed (lowPrio)");
181//US must be fixed !!! 181//US must be fixed !!!
182/* 182/*
183 if ( items.remove( "" ) > 0 ) 183 if ( items.remove( "" ) > 0 )
184 mChanged = true; 184 mChanged = true;
185 else 185 else
186 mChanged = false; 186 mChanged = false;
187*/ 187*/
188 188
189 mEmailListBox->insertStringList( items ); 189 mEmailListBox->insertStringList( items );
190 // set default state 190 // set default state
191 selectionChanged( -1 ); 191 selectionChanged( -1 );
192 mEmailEdit->setFocus();
192 193
193#ifndef KAB_EMBEDDED 194#ifndef KAB_EMBEDDED
194 KAcceleratorManager::manage( this ); 195 KAcceleratorManager::manage( this );
195#else //KAB_EMBEDDED 196#else //KAB_EMBEDDED
196//US qDebug("EmailEditDialog::EmailEditDialog has to be changed"); 197//US qDebug("EmailEditDialog::EmailEditDialog has to be changed");
197#endif //KAB_EMBEDDED 198#endif //KAB_EMBEDDED
198 199
199} 200}
200 201
201EmailEditDialog::~EmailEditDialog() 202EmailEditDialog::~EmailEditDialog()
202{ 203{
203} 204}
204 205
205QStringList EmailEditDialog::emails() const 206QStringList EmailEditDialog::emails() const
206{ 207{
207 QStringList emails; 208 QStringList emails;
208 209
209 for ( uint i = 0; i < mEmailListBox->count(); ++i ) 210 for ( uint i = 0; i < mEmailListBox->count(); ++i )
210 emails << mEmailListBox->text( i ); 211 emails << mEmailListBox->text( i );
211 212
212 return emails; 213 return emails;
213} 214}
214 215
215void EmailEditDialog::add() 216void EmailEditDialog::add()
216{ 217{
217 mEmailListBox->insertItem( mEmailEdit->text() ); 218 mEmailListBox->insertItem( mEmailEdit->text() );
218 219
219 mEmailEdit->clear(); 220 mEmailEdit->clear();
220 mEmailEdit->setFocus(); 221 mEmailEdit->setFocus();
221 222
222 mChanged = true; 223 mChanged = true;
223} 224}
224 225
225void EmailEditDialog::edit() 226void EmailEditDialog::edit()
226{ 227{
227 mEmailEdit->setText( mEmailListBox->currentText() ); 228 mEmailEdit->setText( mEmailListBox->currentText() );
229 mEmailListBox->removeItem( mEmailListBox->currentItem() );
228 mEmailEdit->setFocus(); 230 mEmailEdit->setFocus();
229} 231}
230 232
231void EmailEditDialog::remove() 233void EmailEditDialog::remove()
232{ 234{
233 QString address = mEmailListBox->currentText(); 235 QString address = mEmailListBox->currentText();
234 236
235 QString text = i18n( "<qt>Are you sure that you want to remove the email address <b>%1</b>?</qt>" ).arg( address ); 237 QString text = i18n( "<qt>Are you sure that you want to remove the email address <b>%1</b>?</qt>" ).arg( address );
236 QString caption = i18n( "Confirm Remove" ); 238 QString caption = i18n( "Confirm Remove" );
237 239
238 if ( KMessageBox::questionYesNo( this, text, caption ) == KMessageBox::Yes ) { 240 if ( KMessageBox::questionYesNo( this, text, caption ) == KMessageBox::Yes ) {
239 mEmailListBox->removeItem( mEmailListBox->currentItem() ); 241 mEmailListBox->removeItem( mEmailListBox->currentItem() );
240 mChanged = true; 242 mChanged = true;
241 } 243 }
242} 244}
243 245
244bool EmailEditDialog::changed() const 246bool EmailEditDialog::changed() const
245{ 247{
246 return mChanged; 248 return mChanged;
247} 249}
248 250
249void EmailEditDialog::standard() 251void EmailEditDialog::standard()
250{ 252{
251 QString text = mEmailListBox->currentText(); 253 QString text = mEmailListBox->currentText();
252 mEmailListBox->removeItem( mEmailListBox->currentItem() ); 254 mEmailListBox->removeItem( mEmailListBox->currentItem() );
253 mEmailListBox->insertItem( text, 0 ); 255 mEmailListBox->insertItem( text, 0 );
254 mEmailListBox->setSelected( 0, true ); 256 mEmailListBox->setSelected( 0, true );
255 257
256 mChanged = true; 258 mChanged = true;
257} 259}
258 260
259void EmailEditDialog::selectionChanged( int index ) 261void EmailEditDialog::selectionChanged( int index )
260{ 262{
261 bool value = ( index >= 0 ); // An item is selected 263 bool value = ( index >= 0 ); // An item is selected
262 264
263 mRemoveButton->setEnabled( value ); 265 mRemoveButton->setEnabled( value );
264 mEditButton->setEnabled( value ); 266 mEditButton->setEnabled( value );
265 mStandardButton->setEnabled( value ); 267 mStandardButton->setEnabled( value );
266} 268}
267 269
268void EmailEditDialog::emailChanged() 270void EmailEditDialog::emailChanged()
269{ 271{
270 mAddButton->setEnabled( !mEmailEdit->text().isEmpty() ); 272 mAddButton->setEnabled( !mEmailEdit->text().isEmpty() );
271} 273}
272 274
273#ifndef KAB_EMBEDDED 275#ifndef KAB_EMBEDDED
274#include "emaileditwidget.moc" 276#include "emaileditwidget.moc"
275#endif //KAB_EMBEDDED 277#endif //KAB_EMBEDDED
diff --git a/kaddressbook/phoneeditwidget.cpp b/kaddressbook/phoneeditwidget.cpp
index 19bb676..a435959 100644
--- a/kaddressbook/phoneeditwidget.cpp
+++ b/kaddressbook/phoneeditwidget.cpp
@@ -1,530 +1,553 @@
1/* 1/*
2 This file is part of KAddressBook. 2 This file is part of KAddressBook.
3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com> 3 Copyright (c) 2002 Mike Pilone <mpilone@slac.com>
4 4
5 This program is free software; you can redistribute it and/or modify 5 This program is free software; you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by 6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation; either version 2 of the License, or 7 the Free Software Foundation; either version 2 of the License, or
8 (at your option) any later version. 8 (at your option) any later version.
9 9
10 This program is distributed in the hope that it will be useful, 10 This program is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 GNU General Public License for more details. 13 GNU General Public License for more details.
14 14
15 You should have received a copy of the GNU General Public License 15 You should have received a copy of the GNU General Public License
16 along with this program; if not, write to the Free Software 16 along with this program; if not, write to the Free Software
17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
18 18
19 As a special exception, permission is given to link this program 19 As a special exception, permission is given to link this program
20 with any edition of Qt, and distribute the resulting executable, 20 with any edition of Qt, and distribute the resulting executable,
21 without including the source code for Qt in the source distribution. 21 without including the source code for Qt in the source distribution.
22*/ 22*/
23 23
24#include <qlayout.h> 24#include <qlayout.h>
25#include <qlabel.h> 25#include <qlabel.h>
26#include <qtooltip.h> 26#include <qtooltip.h>
27#include <qpushbutton.h> 27#include <qpushbutton.h>
28#include <qcheckbox.h> 28#include <qcheckbox.h>
29#include <qstring.h> 29#include <qstring.h>
30#include <qlistbox.h> 30#include <qlistbox.h>
31#include <qlistview.h> 31#include <qlistview.h>
32#include <qbuttongroup.h> 32#include <qbuttongroup.h>
33 33
34#include <kbuttonbox.h> 34#include <kbuttonbox.h>
35#include <klistview.h> 35#include <klistview.h>
36#include <kapplication.h> 36#include <kapplication.h>
37#include <qapplication.h> 37#include <qapplication.h>
38#include <kconfig.h> 38#include <kconfig.h>
39#include <klineedit.h> 39#include <klineedit.h>
40#include <kcombobox.h> 40#include <kcombobox.h>
41#include <klocale.h> 41#include <klocale.h>
42#include <kdebug.h> 42#include <kdebug.h>
43#include <kglobal.h> 43#include <kglobal.h>
44#include <kiconloader.h> 44#include <kiconloader.h>
45 45
46#include <kabc/phonenumber.h> 46#include <kabc/phonenumber.h>
47 47
48#include "typecombo.h" 48#include "typecombo.h"
49 49
50#include "phoneeditwidget.h" 50#include "phoneeditwidget.h"
51 51
52PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name ) 52PhoneEditWidget::PhoneEditWidget( QWidget *parent, const char *name )
53 : QWidget( parent, name ) 53 : QWidget( parent, name )
54{ 54{
55 QGridLayout *layout = new QGridLayout( this, 4, 1 ); 55 QGridLayout *layout = new QGridLayout( this, 4, 1 );
56//US layout->setSpacing( KDialog::spacingHint() ); 56//US layout->setSpacing( KDialog::spacingHint() );
57 layout->setSpacing( KDialogBase::spacingHintSmall() ); 57 layout->setSpacing( KDialogBase::spacingHintSmall() );
58 58
59 59
60 60
61 QLabel* label = new QLabel( this ); 61 QLabel* label = new QLabel( this );
62//US loadIcon call is ambiguous. Add one more parameter 62//US loadIcon call is ambiguous. Add one more parameter
63//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) ); 63//US label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop ) );
64 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) ); 64 label->setPixmap( KGlobal::iconLoader()->loadIcon( "kaddressbook", KIcon::Desktop, 0 ) );
65 label->setAlignment( AlignCenter ); 65 label->setAlignment( AlignCenter );
66//US layout->addMultiCellWidget( label, 0, 1, 3, 3 ); 66//US layout->addMultiCellWidget( label, 0, 1, 3, 3 );
67 layout->addWidget( label, 0, 0 ); 67 layout->addWidget( label, 0, 0 );
68 68
69 QPushButton *editButton = new QPushButton( i18n( "Edit Phone Numbers..." ), 69 QPushButton *editButton = new QPushButton( i18n( "Edit Phone Numbers..." ),
70 this ); 70 this );
71 if ( QApplication::desktop()->width() < 640 ) 71 if ( QApplication::desktop()->width() < 640 )
72 layout->addWidget( editButton, 0, 1 ); 72 layout->addWidget( editButton, 0, 1 );
73 else 73 else
74 layout->addMultiCellWidget( editButton, 0, 0, 1, 3); 74 layout->addMultiCellWidget( editButton, 0, 0, 1, 3);
75 75
76 mPrefCombo = new PhoneTypeCombo( mPhoneList, this ); 76 mPrefCombo = new PhoneTypeCombo( mPhoneList, this );
77 mPrefEdit = new KLineEdit( this ); 77 mPrefEdit = new KLineEdit( this );
78 //mPrefEdit->setMinimumWidth( int(mPrefEdit->sizeHint().width() * 1.5) ); 78 //mPrefEdit->setMinimumWidth( int(mPrefEdit->sizeHint().width() * 1.5) );
79 mPrefCombo->setLineEdit( mPrefEdit ); 79 mPrefCombo->setLineEdit( mPrefEdit );
80 layout->addWidget( mPrefCombo, 1, 0 ); 80 layout->addWidget( mPrefCombo, 1, 0 );
81 layout->addWidget( mPrefEdit, 1, 1 ); 81 layout->addWidget( mPrefEdit, 1, 1 );
82 int x = 1, y = 2; 82 int x = 1, y = 2;
83 if ( QApplication::desktop()->width() < 640 ) { 83 if ( QApplication::desktop()->width() < 640 ) {
84 ++x; 84 ++x;
85 y = 0; 85 y = 0;
86 } 86 }
87 mSecondCombo = new PhoneTypeCombo( mPhoneList, this ); 87 mSecondCombo = new PhoneTypeCombo( mPhoneList, this );
88 mSecondEdit = new KLineEdit( this ); 88 mSecondEdit = new KLineEdit( this );
89 mSecondCombo->setLineEdit( mSecondEdit ); 89 mSecondCombo->setLineEdit( mSecondEdit );
90 layout->addWidget( mSecondCombo, x, y++ ); 90 layout->addWidget( mSecondCombo, x, y++ );
91 layout->addWidget( mSecondEdit, x, y++ ); 91 layout->addWidget( mSecondEdit, x, y++ );
92 92
93 y = 0; 93 y = 0;
94 ++x; 94 ++x;
95 mThirdCombo = new PhoneTypeCombo( mPhoneList, this ); 95 mThirdCombo = new PhoneTypeCombo( mPhoneList, this );
96 mThirdEdit = new KLineEdit( this ); 96 mThirdEdit = new KLineEdit( this );
97 mThirdCombo->setLineEdit( mThirdEdit ); 97 mThirdCombo->setLineEdit( mThirdEdit );
98 layout->addWidget( mThirdCombo, x, y++ ); 98 layout->addWidget( mThirdCombo, x, y++ );
99 layout->addWidget( mThirdEdit, x, y++ ); 99 layout->addWidget( mThirdEdit, x, y++ );
100 if ( QApplication::desktop()->width() < 640 ) { 100 if ( QApplication::desktop()->width() < 640 ) {
101 ++x; 101 ++x;
102 y = 0; 102 y = 0;
103 } 103 }
104 mFourthCombo = new PhoneTypeCombo( mPhoneList, this ); 104 mFourthCombo = new PhoneTypeCombo( mPhoneList, this );
105 mFourthEdit = new KLineEdit( this ); 105 mFourthEdit = new KLineEdit( this );
106 mFourthCombo->setLineEdit( mFourthEdit ); 106 mFourthCombo->setLineEdit( mFourthEdit );
107 layout->addWidget( mFourthCombo, x, y++ ); 107 layout->addWidget( mFourthCombo, x, y++ );
108 layout->addWidget( mFourthEdit, x, y++ ); 108 layout->addWidget( mFourthEdit, x, y++ );
109 109
110 // Four numbers don't fit in the current dialog 110 // Four numbers don't fit in the current dialog
111 if ( QApplication::desktop()->width() < 640 ) { 111 if ( QApplication::desktop()->width() < 640 ) {
112 mFourthCombo->hide(); 112 mFourthCombo->hide();
113 mFourthEdit->hide(); 113 mFourthEdit->hide();
114 } else { 114 } else {
115 QFontMetrics fm ( font () ) ; 115 QFontMetrics fm ( font () ) ;
116 int wid = fm.width( "Messenger" ) +60; 116 int wid = fm.width( "Messenger" ) +60;
117 mPrefCombo->setMaximumWidth( wid ); 117 mPrefCombo->setMaximumWidth( wid );
118 mSecondCombo->setMaximumWidth( wid ); 118 mSecondCombo->setMaximumWidth( wid );
119 mThirdCombo->setMaximumWidth( wid ); 119 mThirdCombo->setMaximumWidth( wid );
120 mFourthCombo->setMaximumWidth( wid ); 120 mFourthCombo->setMaximumWidth( wid );
121 } 121 }
122 122
123 123
124 connect( mPrefEdit, SIGNAL( textChanged( const QString& ) ), 124 connect( mPrefEdit, SIGNAL( textChanged( const QString& ) ),
125 SLOT( slotPrefEditChanged() ) ); 125 SLOT( slotPrefEditChanged() ) );
126 connect( mSecondEdit, SIGNAL( textChanged( const QString& ) ), 126 connect( mSecondEdit, SIGNAL( textChanged( const QString& ) ),
127 SLOT( slotSecondEditChanged() ) ); 127 SLOT( slotSecondEditChanged() ) );
128 connect( mThirdEdit, SIGNAL( textChanged( const QString& ) ), 128 connect( mThirdEdit, SIGNAL( textChanged( const QString& ) ),
129 SLOT( slotThirdEditChanged() ) ); 129 SLOT( slotThirdEditChanged() ) );
130 connect( mFourthEdit, SIGNAL( textChanged( const QString& ) ), 130 connect( mFourthEdit, SIGNAL( textChanged( const QString& ) ),
131 SLOT( slotFourthEditChanged() ) ); 131 SLOT( slotFourthEditChanged() ) );
132 132
133 connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) ); 133 connect( editButton, SIGNAL( clicked() ), SLOT( edit() ) );
134 134
135 connect( mPrefCombo, SIGNAL( activated( int ) ), 135 connect( mPrefCombo, SIGNAL( activated( int ) ),
136 SLOT( updatePrefEdit() ) ); 136 SLOT( updatePrefEdit() ) );
137 connect( mSecondCombo, SIGNAL( activated( int ) ), 137 connect( mSecondCombo, SIGNAL( activated( int ) ),
138 SLOT( updateSecondEdit() ) ); 138 SLOT( updateSecondEdit() ) );
139 connect( mThirdCombo, SIGNAL( activated( int ) ), 139 connect( mThirdCombo, SIGNAL( activated( int ) ),
140 SLOT( updateThirdEdit() ) ); 140 SLOT( updateThirdEdit() ) );
141 connect( mFourthCombo, SIGNAL( activated( int ) ), 141 connect( mFourthCombo, SIGNAL( activated( int ) ),
142 SLOT( updateFourthEdit() ) ); 142 SLOT( updateFourthEdit() ) );
143} 143}
144 144
145PhoneEditWidget::~PhoneEditWidget() 145PhoneEditWidget::~PhoneEditWidget()
146{ 146{
147} 147}
148 148
149void PhoneEditWidget::setPhoneNumbers( const KABC::PhoneNumber::List &list ) 149void PhoneEditWidget::setPhoneNumbers( const KABC::PhoneNumber::List &list )
150{ 150{
151 mPhoneList.clear(); 151 mPhoneList.clear();
152 152
153 // Insert types for existing numbers. 153 // Insert types for existing numbers.
154 mPrefCombo->insertTypeList( list ); 154 mPrefCombo->insertTypeList( list );
155 155
156 QValueList<int> defaultTypes; 156 QValueList<int> defaultTypes;
157 defaultTypes << KABC::PhoneNumber::Home; 157 defaultTypes << KABC::PhoneNumber::Home;
158 defaultTypes << KABC::PhoneNumber::Work; 158 defaultTypes << KABC::PhoneNumber::Work;
159 defaultTypes << KABC::PhoneNumber::Cell; 159 defaultTypes << KABC::PhoneNumber::Cell;
160 defaultTypes << ( KABC::PhoneNumber::Work | KABC::PhoneNumber::Fax ); 160 defaultTypes << ( KABC::PhoneNumber::Work | KABC::PhoneNumber::Fax );
161 defaultTypes << ( KABC::PhoneNumber::Home | KABC::PhoneNumber::Fax ); 161 defaultTypes << ( KABC::PhoneNumber::Home | KABC::PhoneNumber::Fax );
162 162
163 // Insert default types. 163 // Insert default types.
164 // Doing this for mPrefCombo is enough because the list is shared by all 164 // Doing this for mPrefCombo is enough because the list is shared by all
165 // combos. 165 // combos.
166 QValueList<int>::ConstIterator it; 166 QValueList<int>::ConstIterator it;
167 for( it = defaultTypes.begin(); it != defaultTypes.end(); ++it ) { 167 for( it = defaultTypes.begin(); it != defaultTypes.end(); ++it ) {
168 if ( !mPrefCombo->hasType( *it ) ) 168 if ( !mPrefCombo->hasType( *it ) )
169 mPrefCombo->insertType( list, *it, PhoneNumber( "", *it ) ); 169 mPrefCombo->insertType( list, *it, PhoneNumber( "", *it ) );
170 } 170 }
171 171
172 updateCombos(); 172 updateCombos();
173 173
174 mPrefCombo->selectType( defaultTypes[ 0 ] ); 174 mPrefCombo->selectType( defaultTypes[ 0 ] );
175 mSecondCombo->selectType( defaultTypes[ 1 ] ); 175 mSecondCombo->selectType( defaultTypes[ 1 ] );
176 mThirdCombo->selectType( defaultTypes[ 2 ] ); 176 mThirdCombo->selectType( defaultTypes[ 2 ] );
177 mFourthCombo->selectType( defaultTypes[ 3 ] ); 177 mFourthCombo->selectType( defaultTypes[ 3 ] );
178 178
179 updateLineEdits(); 179 updateLineEdits();
180} 180}
181 181
182void PhoneEditWidget::updateLineEdits() 182void PhoneEditWidget::updateLineEdits()
183{ 183{
184 updatePrefEdit(); 184 updatePrefEdit();
185 updateSecondEdit(); 185 updateSecondEdit();
186 updateThirdEdit(); 186 updateThirdEdit();
187 updateFourthEdit(); 187 updateFourthEdit();
188} 188}
189 189
190void PhoneEditWidget::updateCombos() 190void PhoneEditWidget::updateCombos()
191{ 191{
192 mPrefCombo->updateTypes(); 192 mPrefCombo->updateTypes();
193 mSecondCombo->updateTypes(); 193 mSecondCombo->updateTypes();
194 mThirdCombo->updateTypes(); 194 mThirdCombo->updateTypes();
195 mFourthCombo->updateTypes(); 195 mFourthCombo->updateTypes();
196} 196}
197 197
198KABC::PhoneNumber::List PhoneEditWidget::phoneNumbers() 198KABC::PhoneNumber::List PhoneEditWidget::phoneNumbers()
199{ 199{
200 KABC::PhoneNumber::List retList; 200 KABC::PhoneNumber::List retList;
201 201
202 KABC::PhoneNumber::List::Iterator it; 202 KABC::PhoneNumber::List::Iterator it;
203 for ( it = mPhoneList.begin(); it != mPhoneList.end(); ++it ) 203 for ( it = mPhoneList.begin(); it != mPhoneList.end(); ++it )
204 if ( !(*it).number().isEmpty() ) 204 if ( !(*it).number().isEmpty() )
205 retList.append( *it ); 205 retList.append( *it );
206 206
207 return retList; 207 return retList;
208} 208}
209 209
210void PhoneEditWidget::edit() 210void PhoneEditWidget::edit()
211{ 211{
212 PhoneEditDialog dlg( mPhoneList, this ); 212 PhoneEditDialog dlg( mPhoneList, this );
213 213
214 if ( dlg.exec() ) { 214 if ( dlg.exec() ) {
215 if ( dlg.changed() ) { 215 if ( dlg.changed() ) {
216 mPhoneList = dlg.phoneNumbers(); 216 KABC::PhoneNumber::List list = dlg.phoneNumbers();
217 setPhoneNumbers( list );
217 updateCombos(); 218 updateCombos();
218 updateLineEdits(); 219 updateLineEdits();
219 emit modified(); 220 emit modified();
220 } 221 }
221 } 222 }
222} 223}
223 224
224void PhoneEditWidget::updatePrefEdit() 225void PhoneEditWidget::updatePrefEdit()
225{ 226{
226 updateEdit( mPrefCombo ); 227 updateEdit( mPrefCombo );
227} 228}
228 229
229void PhoneEditWidget::updateSecondEdit() 230void PhoneEditWidget::updateSecondEdit()
230{ 231{
231 updateEdit( mSecondCombo ); 232 updateEdit( mSecondCombo );
232} 233}
233 234
234void PhoneEditWidget::updateThirdEdit() 235void PhoneEditWidget::updateThirdEdit()
235{ 236{
236 updateEdit( mThirdCombo ); 237 updateEdit( mThirdCombo );
237} 238}
238 239
239void PhoneEditWidget::updateFourthEdit() 240void PhoneEditWidget::updateFourthEdit()
240{ 241{
241 updateEdit( mFourthCombo ); 242 updateEdit( mFourthCombo );
242} 243}
243 244
244void PhoneEditWidget::updateEdit( PhoneTypeCombo *combo ) 245void PhoneEditWidget::updateEdit( PhoneTypeCombo *combo )
245{ 246{
246 QLineEdit *edit = combo->lineEdit(); 247 QLineEdit *edit = combo->lineEdit();
247 if ( !edit ) 248 if ( !edit )
248 return; 249 return;
249 250
250#if 0 251#if 0
251 if ( edit == mPrefEdit ) kdDebug(5720) << " prefEdit" << endl; 252 if ( edit == mPrefEdit ) kdDebug(5720) << " prefEdit" << endl;
252 if ( edit == mSecondEdit ) kdDebug(5720) << " secondEdit" << endl; 253 if ( edit == mSecondEdit ) kdDebug(5720) << " secondEdit" << endl;
253 if ( edit == mThirdEdit ) kdDebug(5720) << " thirdEdit" << endl; 254 if ( edit == mThirdEdit ) kdDebug(5720) << " thirdEdit" << endl;
254 if ( edit == mFourthEdit ) kdDebug(5720) << " fourthEdit" << endl; 255 if ( edit == mFourthEdit ) kdDebug(5720) << " fourthEdit" << endl;
255#endif 256#endif
256 257
257 PhoneNumber::List::Iterator it = combo->selectedElement(); 258 PhoneNumber::List::Iterator it = combo->selectedElement();
258 if ( it != mPhoneList.end() ) { 259 if ( it != mPhoneList.end() ) {
259 edit->setText( (*it).number() ); 260 edit->setText( (*it).number() );
260 } else { 261 } else {
261 kdDebug(5720) << "PhoneEditWidget::updateEdit(): no selected element" << endl; 262 kdDebug(5720) << "PhoneEditWidget::updateEdit(): no selected element" << endl;
262 } 263 }
263} 264}
264 265
265void PhoneEditWidget::slotPrefEditChanged() 266void PhoneEditWidget::slotPrefEditChanged()
266{ 267{
267 updatePhoneNumber( mPrefCombo ); 268 updatePhoneNumber( mPrefCombo );
268} 269}
269 270
270void PhoneEditWidget::slotSecondEditChanged() 271void PhoneEditWidget::slotSecondEditChanged()
271{ 272{
272 updatePhoneNumber( mSecondCombo ); 273 updatePhoneNumber( mSecondCombo );
273} 274}
274 275
275void PhoneEditWidget::slotThirdEditChanged() 276void PhoneEditWidget::slotThirdEditChanged()
276{ 277{
277 updatePhoneNumber( mThirdCombo ); 278 updatePhoneNumber( mThirdCombo );
278} 279}
279 280
280void PhoneEditWidget::slotFourthEditChanged() 281void PhoneEditWidget::slotFourthEditChanged()
281{ 282{
282 updatePhoneNumber( mFourthCombo ); 283 updatePhoneNumber( mFourthCombo );
283} 284}
284 285
285void PhoneEditWidget::updatePhoneNumber( PhoneTypeCombo *combo ) 286void PhoneEditWidget::updatePhoneNumber( PhoneTypeCombo *combo )
286{ 287{
287 QLineEdit *edit = combo->lineEdit(); 288 QLineEdit *edit = combo->lineEdit();
288 if ( !edit ) return; 289 if ( !edit ) return;
289 290
290 PhoneNumber::List::Iterator it = combo->selectedElement(); 291 PhoneNumber::List::Iterator it = combo->selectedElement();
291 if ( it != mPhoneList.end() ) { 292 if ( it != mPhoneList.end() ) {
292 (*it).setNumber( edit->text() ); 293 (*it).setNumber( edit->text() );
293 } 294 }
294 295
295 updateOtherEdit( combo, mPrefCombo ); 296 updateOtherEdit( combo, mPrefCombo );
296 updateOtherEdit( combo, mSecondCombo ); 297 updateOtherEdit( combo, mSecondCombo );
297 updateOtherEdit( combo, mThirdCombo ); 298 updateOtherEdit( combo, mThirdCombo );
298 updateOtherEdit( combo, mFourthCombo ); 299 updateOtherEdit( combo, mFourthCombo );
299 300
300 emit modified(); 301 emit modified();
301} 302}
302 303
303void PhoneEditWidget::updateOtherEdit( PhoneTypeCombo *combo, PhoneTypeCombo *otherCombo ) 304void PhoneEditWidget::updateOtherEdit( PhoneTypeCombo *combo, PhoneTypeCombo *otherCombo )
304{ 305{
305 if ( combo == otherCombo ) return; 306 if ( combo == otherCombo ) return;
306 307
307 if ( combo->currentItem() == otherCombo->currentItem() ) { 308 if ( combo->currentItem() == otherCombo->currentItem() ) {
308 updateEdit( otherCombo ); 309 updateEdit( otherCombo );
309 } 310 }
310} 311}
311 312
312/////////////////////////////////////////// 313///////////////////////////////////////////
313// PhoneEditDialog 314// PhoneEditDialog
314 315
315class PhoneViewItem : public QListViewItem 316class PhoneViewItem : public QListViewItem
316{ 317{
317public: 318public:
318 PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ); 319 PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number );
319 320
320 void setPhoneNumber( const KABC::PhoneNumber &number ) 321 void setPhoneNumber( const KABC::PhoneNumber &number )
321 { 322 {
322 mPhoneNumber = number; 323 mPhoneNumber = number;
323 makeText(); 324 makeText();
324 } 325 }
325 326
326 QString key() { return mPhoneNumber.id(); } 327 QString key() { return mPhoneNumber.id(); }
327 QString country() { return ""; } 328 QString country() { return ""; }
328 QString region() { return ""; } 329 QString region() { return ""; }
329 QString number() { return ""; } 330 QString number() { return ""; }
330 331
331 KABC::PhoneNumber phoneNumber() { return mPhoneNumber; } 332 KABC::PhoneNumber phoneNumber() { return mPhoneNumber; }
332 333
333private: 334private:
334 void makeText(); 335 void makeText();
335 336
336 KABC::PhoneNumber mPhoneNumber; 337 KABC::PhoneNumber mPhoneNumber;
337}; 338};
338 339
339PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number ) 340PhoneViewItem::PhoneViewItem( QListView *parent, const KABC::PhoneNumber &number )
340 : QListViewItem( parent ), mPhoneNumber( number ) 341 : QListViewItem( parent ), mPhoneNumber( number )
341{ 342{
343#ifdef DESKTOP_VERSION
344 setRenameEnabled ( 0, true );
345#endif
342 makeText(); 346 makeText();
343} 347}
344 348
345void PhoneViewItem::makeText() 349void PhoneViewItem::makeText()
346{ 350{
347 /** 351 /**
348 * Will be used in future versions of kaddressbook/libkabc 352 * Will be used in future versions of kaddressbook/libkabc
349 353
350 setText( 0, mPhoneNumber.country() ); 354 setText( 0, mPhoneNumber.country() );
351 setText( 1, mPhoneNumber.region() ); 355 setText( 1, mPhoneNumber.region() );
352 setText( 2, mPhoneNumber.number() ); 356 setText( 2, mPhoneNumber.number() );
353 setText( 3, mPhoneNumber.typeLabel() ); 357 setText( 3, mPhoneNumber.typeLabel() );
354 */ 358 */
355 359
356 setText( 0, mPhoneNumber.number() ); 360 setText( 0, mPhoneNumber.number() );
357 setText( 1, mPhoneNumber.typeLabel() ); 361 setText( 1, mPhoneNumber.typeLabel() );
358} 362}
359 363
360PhoneEditDialog::PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *parent, const char *name ) 364PhoneEditDialog::PhoneEditDialog( const KABC::PhoneNumber::List &list, QWidget *parent, const char *name )
361 : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Numbers" ), 365 : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Numbers" ),
362 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, 366 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok,
363 parent, name, true) 367 parent, name, true)
364{ 368{
365 mPhoneNumberList = list; 369 mPhoneNumberList = list;
366 370
367 QWidget *page = plainPage(); 371 QWidget *page = plainPage();
368 372
369 QGridLayout *layout = new QGridLayout( page, 1, 2 ); 373 QGridLayout *layout = new QGridLayout( page, 1, 2 );
370 layout->setSpacing( spacingHint() ); 374 layout->setSpacing( spacingHint() );
371 375
372 mListView = new KListView( page ); 376 mListView = new KListView( page );
373 mListView->setAllColumnsShowFocus( true ); 377 mListView->setAllColumnsShowFocus( true );
374 mListView->addColumn( i18n( "Number" ) ); 378 mListView->addColumn( i18n( "Number" ) );
375 mListView->addColumn( i18n( "Type" ) ); 379 mListView->addColumn( i18n( "Type" ) );
376 380
377 KButtonBox *buttonBox = new KButtonBox( page, Vertical ); 381 KButtonBox *buttonBox = new KButtonBox( page, Vertical );
378 382
379 buttonBox->addButton( i18n( "&Add..." ), this, SLOT( slotAddPhoneNumber() ) ); 383 buttonBox->addButton( i18n( "&Add..." ), this, SLOT( slotAddPhoneNumber() ) );
380 mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT( slotEditPhoneNumber() ) ); 384 mEditButton = buttonBox->addButton( i18n( "&Edit..." ), this, SLOT( slotEditPhoneNumber() ) );
381 mEditButton->setEnabled( false ); 385 mEditButton->setEnabled( false );
382 mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT( slotRemovePhoneNumber() ) ); 386 mRemoveButton = buttonBox->addButton( i18n( "&Remove" ), this, SLOT( slotRemovePhoneNumber() ) );
383 mRemoveButton->setEnabled( false ); 387 mRemoveButton->setEnabled( false );
384 buttonBox->layout(); 388 buttonBox->layout();
385 389
386 layout->addWidget( mListView, 0, 0 ); 390 layout->addWidget( mListView, 0, 0 );
387 layout->addWidget( buttonBox, 0, 1 ); 391 layout->addWidget( buttonBox, 0, 1 );
388 392
389 connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) ); 393 connect( mListView, SIGNAL(selectionChanged()), SLOT(slotSelectionChanged()) );
390 connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber())); 394 connect( mListView, SIGNAL(doubleClicked( QListViewItem *, const QPoint &, int )), this, SLOT( slotEditPhoneNumber()));
391 395
392 KABC::PhoneNumber::List::Iterator it; 396 KABC::PhoneNumber::List::Iterator it;
393 for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it ) 397 for ( it = mPhoneNumberList.begin(); it != mPhoneNumberList.end(); ++it )
394 new PhoneViewItem( mListView, *it ); 398 new PhoneViewItem( mListView, *it );
395 399
396 mChanged = false; 400 mChanged = false;
397} 401}
398 402
399PhoneEditDialog::~PhoneEditDialog() 403PhoneEditDialog::~PhoneEditDialog()
400{ 404{
401} 405}
402 406
403void PhoneEditDialog::slotAddPhoneNumber() 407void PhoneEditDialog::slotAddPhoneNumber()
404{ 408{
405 KABC::PhoneNumber tmp( "", 0 ); 409 KABC::PhoneNumber tmp( "", 0 );
406 PhoneTypeDialog dlg( tmp, this ); 410 PhoneTypeDialog dlg( tmp, this );
407 411
408 if ( dlg.exec() ) { 412 if ( dlg.exec() ) {
409 KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); 413 QListViewItem* i = mListView->firstChild();
410 mPhoneNumberList.append( phoneNumber ); 414 KABC::PhoneNumber phoneNumber = dlg.phoneNumber();
411 new PhoneViewItem( mListView, phoneNumber ); 415 bool insert = true;
412 416 while ( i ) {
413 mChanged = true; 417 PhoneViewItem* p = ( PhoneViewItem* ) i;
418 KABC::PhoneNumber pn = p->phoneNumber();
419 if ( (pn.type() | KABC::PhoneNumber::Pref) == (phoneNumber.type() | KABC::PhoneNumber::Pref) ) {
420 if ( p->text(0).isEmpty()) {
421 p->setPhoneNumber( phoneNumber );
422 mPhoneNumberList.remove( pn );
423 mPhoneNumberList.append( phoneNumber );
424 insert = false;
425 break;
426 }
427 }
428 i = i->nextSibling();
429 }
430 if ( insert ) {
431 mPhoneNumberList.append( phoneNumber );
432 new PhoneViewItem( mListView, phoneNumber );
433 }
434 mChanged = true;
414 } 435 }
415} 436}
416 437
417void PhoneEditDialog::slotRemovePhoneNumber() 438void PhoneEditDialog::slotRemovePhoneNumber()
418{ 439{
419 PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); 440 PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() );
420 if ( !item ) 441 if ( !item )
421 return; 442 return;
422 443
423 mPhoneNumberList.remove( item->phoneNumber() ); 444 mPhoneNumberList.remove( item->phoneNumber() );
424 QListViewItem *currItem = mListView->currentItem(); 445 QListViewItem *currItem = mListView->currentItem();
425 mListView->takeItem( currItem ); 446 mListView->takeItem( currItem );
426 delete currItem; 447 delete currItem;
427 448
428 mChanged = true; 449 mChanged = true;
429} 450}
430 451
431void PhoneEditDialog::slotEditPhoneNumber() 452void PhoneEditDialog::slotEditPhoneNumber()
432{ 453{
433 PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() ); 454 PhoneViewItem *item = static_cast<PhoneViewItem*>( mListView->currentItem() );
434 if ( !item ) 455 if ( !item )
435 return; 456 return;
436 457
437 PhoneTypeDialog dlg( item->phoneNumber(), this ); 458 PhoneTypeDialog dlg( item->phoneNumber(), this );
438 459
439 if ( dlg.exec() ) { 460 if ( dlg.exec() ) {
440 slotRemovePhoneNumber(); 461 slotRemovePhoneNumber();
441 KABC::PhoneNumber phoneNumber = dlg.phoneNumber(); 462 KABC::PhoneNumber phoneNumber = dlg.phoneNumber();
442 mPhoneNumberList.append( phoneNumber ); 463 mPhoneNumberList.append( phoneNumber );
443 new PhoneViewItem( mListView, phoneNumber ); 464 new PhoneViewItem( mListView, phoneNumber );
444 465
445 mChanged = true; 466 mChanged = true;
446 } 467 }
447} 468}
448 469
449void PhoneEditDialog::slotSelectionChanged() 470void PhoneEditDialog::slotSelectionChanged()
450{ 471{
451 bool state = ( mListView->currentItem() != 0 ); 472 bool state = ( mListView->currentItem() != 0 );
452 473
453 mRemoveButton->setEnabled( state ); 474 mRemoveButton->setEnabled( state );
454 mEditButton->setEnabled( state ); 475 mEditButton->setEnabled( state );
455} 476}
456 477
457const KABC::PhoneNumber::List &PhoneEditDialog::phoneNumbers() 478const KABC::PhoneNumber::List &PhoneEditDialog::phoneNumbers()
458{ 479{
459 return mPhoneNumberList; 480 return mPhoneNumberList;
460} 481}
461 482
462bool PhoneEditDialog::changed() const 483bool PhoneEditDialog::changed() const
463{ 484{
464 return mChanged; 485 return mChanged;
465} 486}
466 487
467/////////////////////////////////////////// 488///////////////////////////////////////////
468// PhoneTypeDialog 489// PhoneTypeDialog
469PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber, 490PhoneTypeDialog::PhoneTypeDialog( const KABC::PhoneNumber &phoneNumber,
470 QWidget *parent, const char *name) 491 QWidget *parent, const char *name)
471 : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Number" ), 492 : KDialogBase( KDialogBase::Plain, i18n( "Edit Phone Number" ),
472 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok, 493 KDialogBase::Ok | KDialogBase::Cancel, KDialogBase::Ok,
473 parent, name, true), mPhoneNumber( phoneNumber ) 494 parent, name, true), mPhoneNumber( phoneNumber )
474{ 495{
475 QWidget *page = plainPage(); 496 QWidget *page = plainPage();
476 QLabel *label = 0; 497 QLabel *label = 0;
477 QGridLayout *layout = new QGridLayout( page, 3, 2, marginHint(), spacingHint() ); 498 QGridLayout *layout = new QGridLayout( page, 3, 2, marginHint(), spacingHint() );
478 499
479 label = new QLabel( i18n( "Number:" ), page ); 500 label = new QLabel( i18n( "Number:" ), page );
480 layout->addWidget( label, 0, 0 ); 501 layout->addWidget( label, 0, 0 );
481 mNumber = new KLineEdit( page ); 502 mNumber = new KLineEdit( page );
482 layout->addWidget( mNumber, 0, 1 ); 503 layout->addWidget( mNumber, 0, 1 );
483 504
484 mPreferredBox = new QCheckBox( i18n( "This is the preferred phone number" ), page ); 505 mPreferredBox = new QCheckBox( i18n( "This is the preferred phone number" ), page );
485 layout->addMultiCellWidget( mPreferredBox, 1, 1, 0, 1 ); 506 layout->addMultiCellWidget( mPreferredBox, 1, 1, 0, 1 );
486 507
487 mGroup = new QButtonGroup( 2, Horizontal, i18n( "Types" ), page ); 508 mGroup = new QButtonGroup( 2, Horizontal, i18n( "Types" ), page );
488 layout->addMultiCellWidget( mGroup, 2, 2, 0, 1 ); 509 layout->addMultiCellWidget( mGroup, 2, 2, 0, 1 );
489 510
490 // fill widgets 511 // fill widgets
491 mNumber->setText( mPhoneNumber.number() ); 512 mNumber->setText( mPhoneNumber.number() );
492 513
493 mTypeList = KABC::PhoneNumber::typeList(); 514 mTypeList = KABC::PhoneNumber::typeList();
494 mTypeList.remove( KABC::PhoneNumber::Pref ); 515 mTypeList.remove( KABC::PhoneNumber::Pref );
495 516
496 KABC::PhoneNumber::TypeList::Iterator it; 517 KABC::PhoneNumber::TypeList::Iterator it;
497 for ( it = mTypeList.begin(); it != mTypeList.end(); ++it ) 518 for ( it = mTypeList.begin(); it != mTypeList.end(); ++it )
498 new QCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup ); 519 new QCheckBox( KABC::PhoneNumber::typeLabel( *it ), mGroup );
499 520
500 for ( int i = 0; i < mGroup->count(); ++i ) { 521 for ( int i = 0; i < mGroup->count(); ++i ) {
501 int type = mPhoneNumber.type(); 522 int type = mPhoneNumber.type();
502 QCheckBox *box = (QCheckBox*)mGroup->find( i ); 523 QCheckBox *box = (QCheckBox*)mGroup->find( i );
503 box->setChecked( type & mTypeList[ i ] ); 524 box->setChecked( type & mTypeList[ i ] );
504 } 525 }
505 526
506 mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref ); 527 mPreferredBox->setChecked( mPhoneNumber.type() & KABC::PhoneNumber::Pref );
528 mNumber->setFocus();
529 mNumber->setSelection( 0, 1024);
507} 530}
508 531
509KABC::PhoneNumber PhoneTypeDialog::phoneNumber() 532KABC::PhoneNumber PhoneTypeDialog::phoneNumber()
510{ 533{
511 mPhoneNumber.setNumber( mNumber->text() ); 534 mPhoneNumber.setNumber( mNumber->text() );
512 535
513 int type = 0; 536 int type = 0;
514 for ( int i = 0; i < mGroup->count(); ++i ) { 537 for ( int i = 0; i < mGroup->count(); ++i ) {
515 QCheckBox *box = (QCheckBox*)mGroup->find( i ); 538 QCheckBox *box = (QCheckBox*)mGroup->find( i );
516 if ( box->isChecked() ) 539 if ( box->isChecked() )
517 type += mTypeList[ i ]; 540 type += mTypeList[ i ];
518 } 541 }
519 542
520 if ( mPreferredBox->isChecked() ) 543 if ( mPreferredBox->isChecked() )
521 mPhoneNumber.setType( type | KABC::PhoneNumber::Pref ); 544 mPhoneNumber.setType( type | KABC::PhoneNumber::Pref );
522 else 545 else
523 mPhoneNumber.setType( type & ~KABC::PhoneNumber::Pref ); 546 mPhoneNumber.setType( type & ~KABC::PhoneNumber::Pref );
524 547
525 return mPhoneNumber; 548 return mPhoneNumber;
526} 549}
527 550
528#ifndef KAB_EMBEDDED 551#ifndef KAB_EMBEDDED
529#include "phoneeditwidget.moc" 552#include "phoneeditwidget.moc"
530#endif //KAB_EMBEDDED 553#endif //KAB_EMBEDDED
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp
index 09a0880..d98915b 100644
--- a/korganizer/mainwindow.cpp
+++ b/korganizer/mainwindow.cpp
@@ -1,2436 +1,2438 @@
1#include <stdlib.h> 1#include <stdlib.h>
2 2
3#include <qaction.h> 3#include <qaction.h>
4#include <qpopupmenu.h> 4#include <qpopupmenu.h>
5#include <qpainter.h> 5#include <qpainter.h>
6#include <qwhatsthis.h> 6#include <qwhatsthis.h>
7#include <qpushbutton.h> 7#include <qpushbutton.h>
8#include <qmessagebox.h> 8#include <qmessagebox.h>
9#include <qlineedit.h> 9#include <qlineedit.h>
10#include <qtextcodec.h> 10#include <qtextcodec.h>
11#include <qfile.h> 11#include <qfile.h>
12#include <qdir.h> 12#include <qdir.h>
13#include <qapp.h> 13#include <qapp.h>
14#include <qfileinfo.h> 14#include <qfileinfo.h>
15#include <qlabel.h> 15#include <qlabel.h>
16#include <qspinbox.h> 16#include <qspinbox.h>
17#include <qcheckbox.h> 17#include <qcheckbox.h>
18#include <qmap.h> 18#include <qmap.h>
19#include <qwmatrix.h> 19#include <qwmatrix.h>
20#include <qtextbrowser.h> 20#include <qtextbrowser.h>
21#include <qtextstream.h> 21#include <qtextstream.h>
22#ifndef DESKTOP_VERSION 22#ifndef DESKTOP_VERSION
23#include <qpe/global.h> 23#include <qpe/global.h>
24#include <qpe/qpemenubar.h> 24#include <qpe/qpemenubar.h>
25#include <qpe/qpetoolbar.h> 25#include <qpe/qpetoolbar.h>
26#include <qpe/resource.h> 26#include <qpe/resource.h>
27#include <qpe/qpeapplication.h> 27#include <qpe/qpeapplication.h>
28#include <qtopia/alarmserver.h> 28#include <qtopia/alarmserver.h>
29#include <qtopia/qcopenvelope_qws.h> 29#include <qtopia/qcopenvelope_qws.h>
30#include <unistd.h> // for sleep 30#include <unistd.h> // for sleep
31#else 31#else
32#include <qmenubar.h> 32#include <qmenubar.h>
33#include <qtoolbar.h> 33#include <qtoolbar.h>
34#include <qapplication.h> 34#include <qapplication.h>
35//#include <resource.h> 35//#include <resource.h>
36 36
37#endif 37#endif
38#include <libkcal/calendarlocal.h> 38#include <libkcal/calendarlocal.h>
39#include <libkcal/todo.h> 39#include <libkcal/todo.h>
40#include <libkcal/phoneformat.h> 40#include <libkcal/phoneformat.h>
41#include <libkdepim/ksyncprofile.h> 41#include <libkdepim/ksyncprofile.h>
42#include <libkdepim/phoneaccess.h> 42#include <libkdepim/phoneaccess.h>
43#include <libkcal/kincidenceformatter.h> 43#include <libkcal/kincidenceformatter.h>
44#include <libkdepim/kpimglobalprefs.h> 44#include <libkdepim/kpimglobalprefs.h>
45 45
46#include "calendarview.h" 46#include "calendarview.h"
47#include "koviewmanager.h" 47#include "koviewmanager.h"
48#include "datenavigator.h" 48#include "datenavigator.h"
49#include "koagendaview.h" 49#include "koagendaview.h"
50#include "koagenda.h" 50#include "koagenda.h"
51#include "kodialogmanager.h" 51#include "kodialogmanager.h"
52#include "kdialogbase.h" 52#include "kdialogbase.h"
53#include "kapplication.h" 53#include "kapplication.h"
54#include "kofilterview.h" 54#include "kofilterview.h"
55#include "kstandarddirs.h" 55#include "kstandarddirs.h"
56#include "koprefs.h" 56#include "koprefs.h"
57#include "kfiledialog.h" 57#include "kfiledialog.h"
58#include "koglobals.h" 58#include "koglobals.h"
59#include "kglobal.h" 59#include "kglobal.h"
60#include "ktoolbar.h" 60#include "ktoolbar.h"
61#include "klocale.h" 61#include "klocale.h"
62#include "kconfig.h" 62#include "kconfig.h"
63#include "simplealarmclient.h" 63#include "simplealarmclient.h"
64#include "externalapphandler.h" 64#include "externalapphandler.h"
65 65
66using namespace KCal; 66using namespace KCal;
67#ifndef _WIN32_ 67#ifndef _WIN32_
68#include <unistd.h> 68#include <unistd.h>
69#else 69#else
70#ifdef _OL_IMPORT_ 70#ifdef _OL_IMPORT_
71#include "koimportoldialog.h" 71#include "koimportoldialog.h"
72#endif 72#endif
73#endif 73#endif
74#include "mainwindow.h" 74#include "mainwindow.h"
75 75
76 76
77class KOex2phonePrefs : public QDialog 77class KOex2phonePrefs : public QDialog
78{ 78{
79 public: 79 public:
80 KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) : 80 KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) :
81 QDialog( parent, name, true ) 81 QDialog( parent, name, true )
82 { 82 {
83 setCaption( i18n("Export to phone options") ); 83 setCaption( i18n("Export to phone options") );
84 QVBoxLayout* lay = new QVBoxLayout( this ); 84 QVBoxLayout* lay = new QVBoxLayout( this );
85 lay->setSpacing( 3 ); 85 lay->setSpacing( 3 );
86 lay->setMargin( 3 ); 86 lay->setMargin( 3 );
87 QLabel *lab; 87 QLabel *lab;
88 lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); 88 lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) );
89 lab->setAlignment (AlignHCenter ); 89 lab->setAlignment (AlignHCenter );
90 QHBox* temphb; 90 QHBox* temphb;
91 temphb = new QHBox( this ); 91 temphb = new QHBox( this );
92 new QLabel( i18n("I/O device: "), temphb ); 92 new QLabel( i18n("I/O device: "), temphb );
93 mPhoneDevice = new QLineEdit( temphb); 93 mPhoneDevice = new QLineEdit( temphb);
94 lay->addWidget( temphb ); 94 lay->addWidget( temphb );
95 temphb = new QHBox( this ); 95 temphb = new QHBox( this );
96 new QLabel( i18n("Connection: "), temphb ); 96 new QLabel( i18n("Connection: "), temphb );
97 mPhoneConnection = new QLineEdit( temphb); 97 mPhoneConnection = new QLineEdit( temphb);
98 lay->addWidget( temphb ); 98 lay->addWidget( temphb );
99 temphb = new QHBox( this ); 99 temphb = new QHBox( this );
100 new QLabel( i18n("Model(opt.): "), temphb ); 100 new QLabel( i18n("Model(opt.): "), temphb );
101 mPhoneModel = new QLineEdit( temphb); 101 mPhoneModel = new QLineEdit( temphb);
102 lay->addWidget( temphb ); 102 lay->addWidget( temphb );
103 mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); 103 mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this );
104 mWriteBackFuture->setChecked( true ); 104 mWriteBackFuture->setChecked( true );
105 lay->addWidget( mWriteBackFuture ); 105 lay->addWidget( mWriteBackFuture );
106 temphb = new QHBox( this ); 106 temphb = new QHBox( this );
107 new QLabel( i18n("Max. weeks in future: ") , temphb ); 107 new QLabel( i18n("Max. weeks in future: ") , temphb );
108 mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); 108 mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb);
109 mWriteBackFutureWeeks->setValue( 8 ); 109 mWriteBackFutureWeeks->setValue( 8 );
110 lay->addWidget( temphb ); 110 lay->addWidget( temphb );
111 lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); 111 lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) );
112 lab->setAlignment (AlignHCenter ); 112 lab->setAlignment (AlignHCenter );
113 QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); 113 QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this );
114 lay->addWidget( ok ); 114 lay->addWidget( ok );
115 QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); 115 QPushButton * cancel = new QPushButton( i18n("Cancel"), this );
116 lay->addWidget( cancel ); 116 lay->addWidget( cancel );
117 connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); 117 connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) );
118 connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); 118 connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) );
119 resize( 220, 240 ); 119 resize( 220, 240 );
120 qApp->processEvents(); 120 qApp->processEvents();
121 int dw = QApplication::desktop()->width(); 121 int dw = QApplication::desktop()->width();
122 int dh = QApplication::desktop()->height(); 122 int dh = QApplication::desktop()->height();
123 move( (dw-width())/2, (dh - height() )/2 ); 123 move( (dw-width())/2, (dh - height() )/2 );
124 } 124 }
125 125
126public: 126public:
127 QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; 127 QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel;
128 QCheckBox* mWriteBackFuture; 128 QCheckBox* mWriteBackFuture;
129 QSpinBox* mWriteBackFutureWeeks; 129 QSpinBox* mWriteBackFutureWeeks;
130}; 130};
131 131
132int globalFlagBlockStartup; 132int globalFlagBlockStartup;
133MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : 133MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) :
134 QMainWindow( parent, name ) 134 QMainWindow( parent, name )
135{ 135{
136 136
137 mClosed = false; 137 mClosed = false;
138 //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; 138 //QString confFile = KStandardDirs::appDir() + "config/korganizerrc";
139 QString confFile = locateLocal("config","korganizerrc"); 139 QString confFile = locateLocal("config","korganizerrc");
140 QFileInfo finf ( confFile ); 140 QFileInfo finf ( confFile );
141 bool showWarning = !finf.exists(); 141 bool showWarning = !finf.exists();
142 setIcon(SmallIcon( "ko24" ) ); 142 setIcon(SmallIcon( "ko24" ) );
143 mBlockAtStartup = true; 143 mBlockAtStartup = true;
144 mFlagKeyPressed = false; 144 mFlagKeyPressed = false;
145 setCaption("KO/Pi"); 145 setCaption("KO/Pi");
146 KOPrefs *p = KOPrefs::instance(); 146 KOPrefs *p = KOPrefs::instance();
147 KPimGlobalPrefs::instance()->setGlobalConfig(); 147 KPimGlobalPrefs::instance()->setGlobalConfig();
148 if ( p->mHourSize > 22 ) 148 if ( p->mHourSize > 22 )
149 p->mHourSize = 22; 149 p->mHourSize = 22;
150 QMainWindow::ToolBarDock tbd; 150 QMainWindow::ToolBarDock tbd;
151 if ( p->mToolBarHor ) { 151 if ( p->mToolBarHor ) {
152 if ( p->mToolBarUp ) 152 if ( p->mToolBarUp )
153 tbd = Bottom; 153 tbd = Bottom;
154 else 154 else
155 tbd = Top; 155 tbd = Top;
156 } 156 }
157 else { 157 else {
158 if ( p->mToolBarUp ) 158 if ( p->mToolBarUp )
159 tbd = Right; 159 tbd = Right;
160 else 160 else
161 tbd = Left; 161 tbd = Left;
162 } 162 }
163 if ( KOPrefs::instance()->mUseAppColors ) 163 if ( KOPrefs::instance()->mUseAppColors )
164 QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); 164 QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true );
165 globalFlagBlockStartup = 1; 165 globalFlagBlockStartup = 1;
166 iconToolBar = new QPEToolBar( this ); 166 iconToolBar = new QPEToolBar( this );
167 addToolBar (iconToolBar , tbd ); 167 addToolBar (iconToolBar , tbd );
168 168
169#ifdef DESKTOP_VERSION 169#ifdef DESKTOP_VERSION
170 if ( KOPrefs::instance()->mShowIconFilter ) 170 if ( KOPrefs::instance()->mShowIconFilter )
171#else 171#else
172 if ( KOPrefs::instance()->mShowIconFilter || !p->mShowIconOnetoolbar ) 172 if ( KOPrefs::instance()->mShowIconFilter || !p->mShowIconOnetoolbar )
173#endif 173#endif
174 174
175{ 175{
176 if ( p->mToolBarHorF ) { 176 if ( p->mToolBarHorF ) {
177 if ( p->mToolBarUpF ) 177 if ( p->mToolBarUpF )
178 tbd = Bottom; 178 tbd = Bottom;
179 else 179 else
180 tbd = Top; 180 tbd = Top;
181 } 181 }
182 else { 182 else {
183 if ( p->mToolBarUpF ) 183 if ( p->mToolBarUpF )
184 tbd = Right; 184 tbd = Right;
185 else 185 else
186 tbd = Left; 186 tbd = Left;
187 } 187 }
188 filterToolBar = new QPEToolBar ( this ); 188 filterToolBar = new QPEToolBar ( this );
189 filterMenubar = new QPEMenuBar( filterToolBar ); 189 filterMenubar = new QPEMenuBar( filterToolBar );
190 QFontMetrics fm ( filterMenubar->font() ); 190 QFontMetrics fm ( filterMenubar->font() );
191 191
192 filterPopupMenu = new QPopupMenu( this ); 192 filterPopupMenu = new QPopupMenu( this );
193 filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 ); 193 filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 );
194 QString addTest = "Ax"; 194 QString addTest = "Ax";
195#ifdef DESKTOP_VERSION 195#ifdef DESKTOP_VERSION
196 addTest = "AAAx"; 196 addTest = "AAAx";
197#endif 197#endif
198 filterMenubar->setFixedWidth( fm.width( i18n("No Filter")+addTest ) ); 198 filterMenubar->setFixedWidth( fm.width( i18n("No Filter")+addTest ) );
199 addToolBar (filterToolBar , tbd ); 199 addToolBar (filterToolBar , tbd );
200 connect ( filterPopupMenu , SIGNAL( activated ( int ) ), this, SLOT (selectFilterPopup( int ) ) ); 200 connect ( filterPopupMenu , SIGNAL( activated ( int ) ), this, SLOT (selectFilterPopup( int ) ) );
201 connect ( filterPopupMenu , SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenuPopup() ) ); 201 connect ( filterPopupMenu , SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenuPopup() ) );
202 if ( !KOPrefs::instance()->mShowIconFilter && !p->mShowIconOnetoolbar ) 202 if ( !KOPrefs::instance()->mShowIconFilter && !p->mShowIconOnetoolbar )
203 filterToolBar->hide(); 203 filterToolBar->hide();
204 } else { 204 } else {
205 filterToolBar = 0; 205 filterToolBar = 0;
206 filterMenubar = 0; 206 filterMenubar = 0;
207 filterPopupMenu = 0; 207 filterPopupMenu = 0;
208 } 208 }
209 if ( p->mShowIconOnetoolbar ) { 209 if ( p->mShowIconOnetoolbar ) {
210 viewToolBar = iconToolBar ; 210 viewToolBar = iconToolBar ;
211 navigatorToolBar = iconToolBar ; 211 navigatorToolBar = iconToolBar ;
212 } else { 212 } else {
213#ifndef DESKTOP_VERSION 213#ifndef DESKTOP_VERSION
214 setToolBarsMovable( false ); 214 setToolBarsMovable( false );
215#endif 215#endif
216 if ( p->mToolBarHorV ) { 216 if ( p->mToolBarHorV ) {
217 if ( p->mToolBarUpV ) 217 if ( p->mToolBarUpV )
218 tbd = Bottom; 218 tbd = Bottom;
219 else 219 else
220 tbd = Top; 220 tbd = Top;
221 } 221 }
222 else { 222 else {
223 if ( p->mToolBarUpV ) 223 if ( p->mToolBarUpV )
224 tbd = Right; 224 tbd = Right;
225 else 225 else
226 tbd = Left; 226 tbd = Left;
227 } 227 }
228 viewToolBar = new QPEToolBar( this ); 228 viewToolBar = new QPEToolBar( this );
229 addToolBar (viewToolBar , tbd ); 229 addToolBar (viewToolBar , tbd );
230 if ( p->mToolBarHorN ) { 230 if ( p->mToolBarHorN ) {
231 if ( p->mToolBarUpN ) 231 if ( p->mToolBarUpN )
232 tbd = Bottom; 232 tbd = Bottom;
233 else 233 else
234 tbd = Top; 234 tbd = Top;
235 } 235 }
236 else { 236 else {
237 if ( p->mToolBarUpN ) 237 if ( p->mToolBarUpN )
238 tbd = Right; 238 tbd = Right;
239 else 239 else
240 tbd = Left; 240 tbd = Left;
241 } 241 }
242 navigatorToolBar = new QPEToolBar( this ); 242 navigatorToolBar = new QPEToolBar( this );
243 addToolBar (navigatorToolBar , tbd ); 243 addToolBar (navigatorToolBar , tbd );
244 } 244 }
245 245
246 246
247 247
248 mCalendarModifiedFlag = false; 248 mCalendarModifiedFlag = false;
249 QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); 249 QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this );
250 splash->setAlignment ( AlignCenter ); 250 splash->setAlignment ( AlignCenter );
251 setCentralWidget( splash ); 251 setCentralWidget( splash );
252#ifndef DESKTOP_VERSION 252#ifndef DESKTOP_VERSION
253 showMaximized(); 253 showMaximized();
254#endif 254#endif
255 255
256 //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); 256 //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ());
257 setDefaultPreferences(); 257 setDefaultPreferences();
258 mCalendar = new CalendarLocal(); 258 mCalendar = new CalendarLocal();
259 mView = new CalendarView( mCalendar, this,"mCalendar " ); 259 mView = new CalendarView( mCalendar, this,"mCalendar " );
260 mView->hide(); 260 mView->hide();
261 //mView->resize(splash->size() ); 261 //mView->resize(splash->size() );
262 initActions(); 262 initActions();
263 mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); 263 mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu);
264 mSyncManager->setBlockSave(false); 264 mSyncManager->setBlockSave(false);
265 mView->setSyncManager(mSyncManager); 265 mView->setSyncManager(mSyncManager);
266#ifndef DESKTOP_VERSION 266#ifndef DESKTOP_VERSION
267 iconToolBar->show(); 267 iconToolBar->show();
268 qApp->processEvents(); 268 qApp->processEvents();
269#endif 269#endif
270 //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); 270 //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ());
271 int vh = height() ; 271 int vh = height() ;
272 int vw = width(); 272 int vw = width();
273 //qDebug("Toolbar hei %d ",iconToolBar->height() ); 273 //qDebug("Toolbar hei %d ",iconToolBar->height() );
274 if ( iconToolBar->orientation () == Qt:: Horizontal ) { 274 if ( iconToolBar->orientation () == Qt:: Horizontal ) {
275 vh -= iconToolBar->height(); 275 vh -= iconToolBar->height();
276 } else { 276 } else {
277 vw -= iconToolBar->height(); 277 vw -= iconToolBar->height();
278 } 278 }
279 //mView->setMaximumSize( splash->size() ); 279 //mView->setMaximumSize( splash->size() );
280 //mView->resize( splash->size() ); 280 //mView->resize( splash->size() );
281 //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); 281 //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ());
282 mView->readSettings(); 282 mView->readSettings();
283 bool newFile = false; 283 bool newFile = false;
284 if( !QFile::exists( defaultFileName() ) ) { 284 if( !QFile::exists( defaultFileName() ) ) {
285 QFileInfo finfo ( defaultFileName() ); 285 QFileInfo finfo ( defaultFileName() );
286 QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); 286 QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics");
287 qDebug("oldfile %s ", oldFile.latin1()); 287 qDebug("oldfile %s ", oldFile.latin1());
288 QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n"; 288 QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n";
289 finfo.setFile( oldFile ); 289 finfo.setFile( oldFile );
290 if (finfo.exists() ) { 290 if (finfo.exists() ) {
291 KMessageBox::information( this, message); 291 KMessageBox::information( this, message);
292 mView->openCalendar( oldFile ); 292 mView->openCalendar( oldFile );
293 qApp->processEvents(); 293 qApp->processEvents();
294 } else { 294 } else {
295 oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); 295 oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics");
296 finfo.setFile( oldFile ); 296 finfo.setFile( oldFile );
297 if (finfo.exists() ) { 297 if (finfo.exists() ) {
298 KMessageBox::information( this, message); 298 KMessageBox::information( this, message);
299 mView->openCalendar( oldFile ); 299 mView->openCalendar( oldFile );
300 qApp->processEvents(); 300 qApp->processEvents();
301 } 301 }
302 } 302 }
303 mView->saveCalendar( defaultFileName() ); 303 mView->saveCalendar( defaultFileName() );
304 newFile = true; 304 newFile = true;
305 } 305 }
306 306
307 QTime neededSaveTime = QDateTime::currentDateTime().time(); 307 QTime neededSaveTime = QDateTime::currentDateTime().time();
308 mView->openCalendar( defaultFileName() ); 308 mView->openCalendar( defaultFileName() );
309 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); 309 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() );
310 qDebug("KO: Calendar loading time: %d ms",msNeeded ); 310 qDebug("KO: Calendar loading time: %d ms",msNeeded );
311 311
312 if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { 312 if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) {
313 KOPrefs::instance()->setAllDefaults(); 313 KOPrefs::instance()->setAllDefaults();
314 int count = mView->addCategories(); 314 int count = mView->addCategories();
315 } 315 }
316 processIncidenceSelection( 0 ); 316 processIncidenceSelection( 0 );
317 connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), 317 connect( mView, SIGNAL( incidenceSelected( Incidence * ) ),
318 SLOT( processIncidenceSelection( Incidence * ) ) ); 318 SLOT( processIncidenceSelection( Incidence * ) ) );
319 connect( mView, SIGNAL( modifiedChanged( bool ) ), 319 connect( mView, SIGNAL( modifiedChanged( bool ) ),
320 SLOT( slotModifiedChanged( bool ) ) ); 320 SLOT( slotModifiedChanged( bool ) ) );
321 321
322 322
323 connect( mView, SIGNAL( tempDisableBR(bool) ), 323 connect( mView, SIGNAL( tempDisableBR(bool) ),
324 SLOT( disableBR(bool) ) ); 324 SLOT( disableBR(bool) ) );
325 connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); 325 connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) );
326 mView->setModified( false ); 326 mView->setModified( false );
327 mBlockAtStartup = false; 327 mBlockAtStartup = false;
328 mView->setModified( false ); 328 mView->setModified( false );
329 setCentralWidget( mView ); 329 setCentralWidget( mView );
330 globalFlagBlockStartup = 0; 330 globalFlagBlockStartup = 0;
331 mView->show(); 331 mView->show();
332 delete splash; 332 delete splash;
333 if ( newFile ) 333 if ( newFile )
334 mView->updateConfig(); 334 mView->updateConfig();
335 // qApp->processEvents(); 335 // qApp->processEvents();
336 //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); 336 //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ());
337 //fillSyncMenu(); 337 //fillSyncMenu();
338 338
339 339
340 connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); 340 connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) );
341 connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); 341 connect(mView , SIGNAL( save() ), this, SLOT( save() ) );
342 connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); 342 connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) );
343 connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); 343 connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) );
344 connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); 344 connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) );
345 mSyncManager->setDefaultFileName( sentSyncFile()); 345 mSyncManager->setDefaultFileName( sentSyncFile());
346 connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); 346 connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) );
347 mSyncManager->fillSyncMenu(); 347 mSyncManager->fillSyncMenu();
348 348
349 349
350 350
351 mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); 351 mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins );
352 if ( showWarning ) { 352 if ( showWarning ) {
353 KMessageBox::information( this, 353 KMessageBox::information( this,
354 "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); 354 "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information");
355 qApp->processEvents(); 355 qApp->processEvents();
356 mView->dialogManager()->showSyncOptions(); 356 mView->dialogManager()->showSyncOptions();
357 } 357 }
358 358
359 //US listen for result adressed from Ka/Pi 359 //US listen for result adressed from Ka/Pi
360#ifndef DESKTOP_VERSION 360#ifndef DESKTOP_VERSION
361 connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); 361 connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & )));
362#endif 362#endif
363#ifndef DESKTOP_VERSION 363#ifndef DESKTOP_VERSION
364 infrared = 0; 364 infrared = 0;
365#endif 365#endif
366 updateFilterToolbar(); 366 updateFilterToolbar();
367 updateWeek( mView->startDate() ); 367 updateWeek( mView->startDate() );
368 connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), 368 connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ),
369 SLOT( updateWeekNum( const KCal::DateList & ) ) ); 369 SLOT( updateWeekNum( const KCal::DateList & ) ) );
370 mBRdisabled = false; 370 mBRdisabled = false;
371 //toggleBeamReceive(); 371 //toggleBeamReceive();
372} 372}
373MainWindow::~MainWindow() 373MainWindow::~MainWindow()
374{ 374{
375 //qDebug("MainWindow::~MainWindow() "); 375 //qDebug("MainWindow::~MainWindow() ");
376 //save toolbar location 376 //save toolbar location
377 delete mCalendar; 377 delete mCalendar;
378 delete mSyncManager; 378 delete mSyncManager;
379#ifndef DESKTOP_VERSION 379#ifndef DESKTOP_VERSION
380 if ( infrared ) 380 if ( infrared )
381 delete infrared; 381 delete infrared;
382#endif 382#endif
383 383
384 384
385} 385}
386 386
387void MainWindow::disableBR(bool b) 387void MainWindow::disableBR(bool b)
388{ 388{
389#ifndef DESKTOP_VERSION 389#ifndef DESKTOP_VERSION
390 if ( b ) { 390 if ( b ) {
391 if ( infrared ) { 391 if ( infrared ) {
392 toggleBeamReceive(); 392 toggleBeamReceive();
393 mBRdisabled = true; 393 mBRdisabled = true;
394 } 394 }
395 mBRdisabled = true; 395 mBRdisabled = true;
396 } else { 396 } else {
397 if ( mBRdisabled ) { 397 if ( mBRdisabled ) {
398 mBRdisabled = false; 398 mBRdisabled = false;
399 //makes no sense,because other cal ap is probably running 399 //makes no sense,because other cal ap is probably running
400 // toggleBeamReceive(); 400 // toggleBeamReceive();
401 } 401 }
402 } 402 }
403#endif 403#endif
404 404
405} 405}
406bool MainWindow::beamReceiveEnabled() 406bool MainWindow::beamReceiveEnabled()
407{ 407{
408#ifndef DESKTOP_VERSION 408#ifndef DESKTOP_VERSION
409 return ( infrared != 0 ); 409 return ( infrared != 0 );
410#endif 410#endif
411 return false; 411 return false;
412} 412}
413 413
414void MainWindow::toggleBeamReceive() 414void MainWindow::toggleBeamReceive()
415{ 415{
416 if ( mBRdisabled ) 416 if ( mBRdisabled )
417 return; 417 return;
418#ifndef DESKTOP_VERSION 418#ifndef DESKTOP_VERSION
419 if ( infrared ) { 419 if ( infrared ) {
420 qDebug("disable BeamReceive "); 420 qDebug("disable BeamReceive ");
421 delete infrared; 421 delete infrared;
422 infrared = 0; 422 infrared = 0;
423 brAction->setOn(false); 423 brAction->setOn(false);
424 return; 424 return;
425 } 425 }
426 qDebug("enable BeamReceive "); 426 qDebug("enable BeamReceive ");
427 brAction->setOn(true); 427 brAction->setOn(true);
428 infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; 428 infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ;
429 QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); 429 QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& )));
430#endif 430#endif
431} 431}
432void MainWindow::showMaximized () 432void MainWindow::showMaximized ()
433{ 433{
434#ifndef DESKTOP_VERSION 434#ifndef DESKTOP_VERSION
435 if ( ! globalFlagBlockStartup ) 435 if ( ! globalFlagBlockStartup )
436 if ( mClosed ) 436 if ( mClosed )
437 mView->goToday(); 437 mView->goToday();
438#endif 438#endif
439 QWidget::showMaximized () ; 439 QWidget::showMaximized () ;
440 mClosed = false; 440 mClosed = false;
441} 441}
442void MainWindow::closeEvent( QCloseEvent* ce ) 442void MainWindow::closeEvent( QCloseEvent* ce )
443{ 443{
444 444
445 445
446 446
447 if ( ! KOPrefs::instance()->mAskForQuit ) { 447 if ( ! KOPrefs::instance()->mAskForQuit ) {
448 saveOnClose(); 448 saveOnClose();
449 mClosed = true; 449 mClosed = true;
450 ce->accept(); 450 ce->accept();
451 return; 451 return;
452 452
453 } 453 }
454 454
455 switch( QMessageBox::information( this, "KO/Pi", 455 switch( QMessageBox::information( this, "KO/Pi",
456 i18n("Do you really want\nto close KO/Pi?"), 456 i18n("Do you really want\nto close KO/Pi?"),
457 i18n("Close"), i18n("No"), 457 i18n("Close"), i18n("No"),
458 0, 0 ) ) { 458 0, 0 ) ) {
459 case 0: 459 case 0:
460 saveOnClose(); 460 saveOnClose();
461 mClosed = true; 461 mClosed = true;
462 ce->accept(); 462 ce->accept();
463 break; 463 break;
464 case 1: 464 case 1:
465 ce->ignore(); 465 ce->ignore();
466 break; 466 break;
467 case 2: 467 case 2:
468 468
469 default: 469 default:
470 break; 470 break;
471 } 471 }
472 472
473 473
474} 474}
475 475
476void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) 476void MainWindow::recieve( const QCString& cmsg, const QByteArray& data )
477{ 477{
478 QDataStream stream( data, IO_ReadOnly ); 478 QDataStream stream( data, IO_ReadOnly );
479 // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); 479 // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" );
480 //QString datamess; 480 //QString datamess;
481 //qDebug("message "); 481 //qDebug("message ");
482 qDebug("KO: QCOP message received: %s ", cmsg.data() ); 482 qDebug("KO: QCOP message received: %s ", cmsg.data() );
483 483
484 if ( cmsg == "setDocument(QString)" ) { 484 if ( cmsg == "setDocument(QString)" ) {
485 QDataStream stream( data, IO_ReadOnly ); 485 QDataStream stream( data, IO_ReadOnly );
486 QString fileName; 486 QString fileName;
487 stream >> fileName; 487 stream >> fileName;
488 //qDebug("filename %s ", fileName.latin1()); 488 //qDebug("filename %s ", fileName.latin1());
489 showMaximized(); 489 showMaximized();
490 raise(); 490 raise();
491 KOPrefs::instance()->mLastSyncedLocalFile = fileName ; 491 KOPrefs::instance()->mLastSyncedLocalFile = fileName ;
492 mSyncManager->slotSyncMenu( 1002 ); 492 mSyncManager->slotSyncMenu( 1002 );
493 return; 493 return;
494 } 494 }
495 495
496 if ( cmsg == "-writeFile" ) { 496 if ( cmsg == "-writeFile" ) {
497 // I made from the "-writeFile" an "-writeAlarm" 497 // I made from the "-writeFile" an "-writeAlarm"
498 mView->viewManager()->showWhatsNextView(); 498 mView->viewManager()->showWhatsNextView();
499 mCalendar->checkAlarmForIncidence( 0, true); 499 mCalendar->checkAlarmForIncidence( 0, true);
500 showMaximized(); 500 showMaximized();
501 raise(); 501 raise();
502 return; 502 return;
503 503
504 } 504 }
505 if ( cmsg == "-writeFileSilent" ) { 505 if ( cmsg == "-writeFileSilent" ) {
506 // I made from the "-writeFile" an "-writeAlarm" 506 // I made from the "-writeFile" an "-writeAlarm"
507 // mView->viewManager()->showWhatsNextView(); 507 // mView->viewManager()->showWhatsNextView();
508 mCalendar->checkAlarmForIncidence( 0, true); 508 mCalendar->checkAlarmForIncidence( 0, true);
509 //showMaximized(); 509 //showMaximized();
510 //raise(); 510 //raise();
511 hide(); 511 hide();
512 return; 512 return;
513 } 513 }
514 if ( cmsg == "-newCountdown" ) { 514 if ( cmsg == "-newCountdown" ) {
515 qDebug("newCountdown "); 515 qDebug("newCountdown ");
516 516
517 } 517 }
518 QString msg ; 518 QString msg ;
519 QString allmsg = cmsg; 519 QString allmsg = cmsg;
520 while ( allmsg.length() > 0 ) { 520 while ( allmsg.length() > 0 ) {
521 int nextC = allmsg.find( "-", 1 ); 521 int nextC = allmsg.find( "-", 1 );
522 if ( nextC == -1 ) { 522 if ( nextC == -1 ) {
523 msg = allmsg; 523 msg = allmsg;
524 allmsg = ""; 524 allmsg = "";
525 } else{ 525 } else{
526 msg = allmsg.left( nextC ); 526 msg = allmsg.left( nextC );
527 allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); 527 allmsg = allmsg.mid( nextC, allmsg.length()-nextC );
528 } 528 }
529 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); 529 //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() );
530 if ( msg == "-newEvent" ) { 530 if ( msg == "-newEvent" ) {
531 mView->newEvent(); 531 mView->newEvent();
532 } 532 }
533 if ( msg == "-newTodo" ) { 533 if ( msg == "-newTodo" ) {
534 mView->newTodo(); 534 mView->newTodo();
535 535
536 } 536 }
537 if ( msg == "-showWN" ) { 537 if ( msg == "-showWN" ) {
538 mView->viewManager()->showWhatsNextView(); 538 mView->viewManager()->showWhatsNextView();
539 } 539 }
540 if ( msg == "-showTodo" ) { 540 if ( msg == "-showTodo" ) {
541 mView->viewManager()->showTodoView(); 541 mView->viewManager()->showTodoView();
542 } 542 }
543 if ( msg == "-showList" ) { 543 if ( msg == "-showList" ) {
544 mView->viewManager()->showListView(); 544 mView->viewManager()->showListView();
545 } 545 }
546 else if ( msg == "-showDay" ) { 546 else if ( msg == "-showDay" ) {
547 mView->viewManager()->showDayView(); 547 mView->viewManager()->showDayView();
548 } 548 }
549 else if ( msg == "-showWWeek" ) { 549 else if ( msg == "-showWWeek" ) {
550 mView->viewManager()->showWorkWeekView(); 550 mView->viewManager()->showWorkWeekView();
551 } 551 }
552 else if ( msg == "-ringSync" ) { 552 else if ( msg == "-ringSync" ) {
553 mSyncManager->multiSync( false ); 553 mSyncManager->multiSync( false );
554 } 554 }
555 else if ( msg == "-showWeek" ) { 555 else if ( msg == "-showWeek" ) {
556 mView->viewManager()->showWeekView(); 556 mView->viewManager()->showWeekView();
557 } 557 }
558 else if ( msg == "-showTodo" ) { 558 else if ( msg == "-showTodo" ) {
559 mView->viewManager()->showTodoView(); 559 mView->viewManager()->showTodoView();
560 } 560 }
561 else if ( msg == "-showJournal" ) { 561 else if ( msg == "-showJournal" ) {
562 mView->dateNavigator()->selectDates( 1 ); 562 mView->dateNavigator()->selectDates( 1 );
563 mView->dateNavigator()->selectToday(); 563 mView->dateNavigator()->selectToday();
564 mView->viewManager()->showJournalView(); 564 mView->viewManager()->showJournalView();
565 } 565 }
566 else if ( msg == "-showKO" ) { 566 else if ( msg == "-showKO" ) {
567 mView->viewManager()->showNextXView(); 567 mView->viewManager()->showNextXView();
568 } 568 }
569 else if ( msg == "-showWNext" ) { 569 else if ( msg == "-showWNext" ) {
570 mView->viewManager()->showWhatsNextView(); 570 mView->viewManager()->showWhatsNextView();
571 } 571 }
572 else if ( msg == "nextView()" ) { 572 else if ( msg == "nextView()" ) {
573 mView->viewManager()->showNextView(); 573 mView->viewManager()->showNextView();
574 } 574 }
575 else if ( msg == "-showNextXView" ) { 575 else if ( msg == "-showNextXView" ) {
576 mView->viewManager()->showNextXView(); 576 mView->viewManager()->showNextXView();
577 } 577 }
578 578
579 579
580 } 580 }
581 581
582 showMaximized(); 582 showMaximized();
583 raise(); 583 raise();
584} 584}
585 585
586QPixmap MainWindow::loadPixmap( QString name ) 586QPixmap MainWindow::loadPixmap( QString name )
587{ 587{
588 return SmallIcon( name ); 588 return SmallIcon( name );
589 589
590} 590}
591void MainWindow::initActions() 591void MainWindow::initActions()
592{ 592{
593 //KOPrefs::instance()->mShowFullMenu 593 //KOPrefs::instance()->mShowFullMenu
594 iconToolBar->clear(); 594 iconToolBar->clear();
595 KOPrefs *p = KOPrefs::instance(); 595 KOPrefs *p = KOPrefs::instance();
596 //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); 596 //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar );
597 597
598 QPopupMenu *viewMenu = new QPopupMenu( this ); 598 QPopupMenu *viewMenu = new QPopupMenu( this );
599 QPopupMenu *actionMenu = new QPopupMenu( this ); 599 QPopupMenu *actionMenu = new QPopupMenu( this );
600 QPopupMenu *importMenu = new QPopupMenu( this ); 600 QPopupMenu *importMenu = new QPopupMenu( this );
601 QPopupMenu *importMenu_X = new QPopupMenu( this ); 601 QPopupMenu *importMenu_X = new QPopupMenu( this );
602 QPopupMenu *exportMenu_X = new QPopupMenu( this ); 602 QPopupMenu *exportMenu_X = new QPopupMenu( this );
603 QPopupMenu *beamMenu_X = new QPopupMenu( this ); 603 QPopupMenu *beamMenu_X = new QPopupMenu( this );
604 selectFilterMenu = new QPopupMenu( this ); 604 selectFilterMenu = new QPopupMenu( this );
605 selectFilterMenu->setCheckable( true ); 605 selectFilterMenu->setCheckable( true );
606 syncMenu = new QPopupMenu( this ); 606 syncMenu = new QPopupMenu( this );
607 configureAgendaMenu = new QPopupMenu( this ); 607 configureAgendaMenu = new QPopupMenu( this );
608 configureToolBarMenu = new QPopupMenu( this ); 608 configureToolBarMenu = new QPopupMenu( this );
609 QPopupMenu *helpMenu = new QPopupMenu( this ); 609 QPopupMenu *helpMenu = new QPopupMenu( this );
610 QIconSet icon; 610 QIconSet icon;
611 int pixWid = 22, pixHei = 22; 611 int pixWid = 22, pixHei = 22;
612 QString pathString = ""; 612 QString pathString = "";
613 if ( !p->mToolBarMiniIcons ) { 613 if ( !p->mToolBarMiniIcons ) {
614 if ( QApplication::desktop()->width() < 480 ) { 614 if ( QApplication::desktop()->width() < 480 ) {
615 pathString += "icons16/"; 615 pathString += "icons16/";
616 pixWid = 18; pixHei = 16; 616 pixWid = 18; pixHei = 16;
617 } 617 }
618 } else { 618 } else {
619 pathString += "iconsmini/"; 619 pathString += "iconsmini/";
620 pixWid = 18; pixHei = 16; 620 pixWid = 18; pixHei = 16;
621 } 621 }
622 if ( KOPrefs::instance()->mShowFullMenu ) { 622 if ( KOPrefs::instance()->mShowFullMenu ) {
623 QMenuBar *menuBar1; 623 QMenuBar *menuBar1;
624 menuBar1 = menuBar(); 624 menuBar1 = menuBar();
625 menuBar1->insertItem( i18n("File"), importMenu ); 625 menuBar1->insertItem( i18n("File"), importMenu );
626 menuBar1->insertItem( i18n("View"), viewMenu ); 626 menuBar1->insertItem( i18n("View"), viewMenu );
627 menuBar1->insertItem( i18n("Actions"), actionMenu ); 627 menuBar1->insertItem( i18n("Actions"), actionMenu );
628#ifdef DESKTOP_VERSION 628#ifdef DESKTOP_VERSION
629 menuBar1->insertItem( i18n("Synchronize"), syncMenu ); 629 menuBar1->insertItem( i18n("Synchronize"), syncMenu );
630 menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); 630 menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu );
631#else 631#else
632 menuBar1->insertItem( i18n("Sync"), syncMenu ); 632 menuBar1->insertItem( i18n("Sync"), syncMenu );
633 menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); 633 menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu );
634#endif 634#endif
635 //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); 635 //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu );
636 menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); 636 menuBar1->insertItem( i18n("Filter"),selectFilterMenu );
637 menuBar1->insertItem( i18n("Help"), helpMenu ); 637 menuBar1->insertItem( i18n("Help"), helpMenu );
638 } else { 638 } else {
639 QPEMenuBar *menuBar1; 639 QPEMenuBar *menuBar1;
640 menuBar1 = new QPEMenuBar( iconToolBar ); 640 menuBar1 = new QPEMenuBar( iconToolBar );
641 QPopupMenu *menuBar = new QPopupMenu( this ); 641 QPopupMenu *menuBar = new QPopupMenu( this );
642 icon = loadPixmap( pathString + "z_menu" ); 642 icon = loadPixmap( pathString + "z_menu" );
643 menuBar1->insertItem( icon.pixmap(), menuBar); 643 menuBar1->insertItem( icon.pixmap(), menuBar);
644 //menuBar1->insertItem( i18n("ME"), menuBar); 644 //menuBar1->insertItem( i18n("ME"), menuBar);
645 menuBar->insertItem( i18n("File"), importMenu ); 645 menuBar->insertItem( i18n("File"), importMenu );
646 menuBar->insertItem( i18n("View"), viewMenu ); 646 menuBar->insertItem( i18n("View"), viewMenu );
647 menuBar->insertItem( i18n("Actions"), actionMenu ); 647 menuBar->insertItem( i18n("Actions"), actionMenu );
648 menuBar->insertItem( i18n("Synchronize"), syncMenu ); 648 menuBar->insertItem( i18n("Synchronize"), syncMenu );
649 menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); 649 menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu );
650 menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); 650 menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu );
651 menuBar->insertItem( i18n("Filter"),selectFilterMenu ); 651 menuBar->insertItem( i18n("Filter"),selectFilterMenu );
652 menuBar->insertItem( i18n("Help"), helpMenu ); 652 menuBar->insertItem( i18n("Help"), helpMenu );
653 //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); 653 //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() );
654 menuBar1->setMaximumSize( menuBar1->sizeHint( )); 654 menuBar1->setMaximumSize( menuBar1->sizeHint( ));
655 } 655 }
656 connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); 656 connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) );
657 connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); 657 connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) );
658 658
659 659
660 mWeekBgColor = iconToolBar->backgroundColor(); 660 mWeekBgColor = iconToolBar->backgroundColor();
661 mWeekPixmap.resize( pixWid , pixHei ); 661 mWeekPixmap.resize( pixWid , pixHei );
662 mWeekPixmap.fill( mWeekBgColor ); 662 mWeekPixmap.fill( mWeekBgColor );
663 icon = mWeekPixmap; 663 icon = mWeekPixmap;
664 mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); 664 mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this );
665 if ( p-> mShowIconWeekNum ) 665 if ( p-> mShowIconWeekNum )
666 mWeekAction->addTo( iconToolBar ); 666 mWeekAction->addTo( iconToolBar );
667 mWeekFont = font(); 667 mWeekFont = font();
668 668
669 int fontPoint = mWeekFont.pointSize(); 669 int fontPoint = mWeekFont.pointSize();
670 QFontMetrics f( mWeekFont ); 670 QFontMetrics f( mWeekFont );
671 int fontWid = f.width( "30" ); 671 int fontWid = f.width( "30" );
672 while ( fontWid > pixWid ) { 672 while ( fontWid > pixWid ) {
673 --fontPoint; 673 --fontPoint;
674 mWeekFont.setPointSize( fontPoint ); 674 mWeekFont.setPointSize( fontPoint );
675 QFontMetrics f( mWeekFont ); 675 QFontMetrics f( mWeekFont );
676 fontWid = f.width( "30" ); 676 fontWid = f.width( "30" );
677 //qDebug("dec-- "); 677 //qDebug("dec-- ");
678 } 678 }
679 679
680 connect( mWeekAction, SIGNAL( activated() ), 680 connect( mWeekAction, SIGNAL( activated() ),
681 this, SLOT( weekAction() ) ); 681 this, SLOT( weekAction() ) );
682 682
683 connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); 683 connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) );
684 if ( p->mShowIconFilterview ) { 684 if ( p->mShowIconFilterview ) {
685 icon = loadPixmap( pathString + "filter" ); 685 icon = loadPixmap( pathString + "filter" );
686 actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); 686 actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this );
687 connect( actionFilterMenuTB, SIGNAL( activated() ), 687 connect( actionFilterMenuTB, SIGNAL( activated() ),
688 this, SLOT( fillFilterMenuTB() ) ); 688 this, SLOT( fillFilterMenuTB() ) );
689 actionFilterMenuTB->addTo( iconToolBar ); 689 actionFilterMenuTB->addTo( iconToolBar );
690 selectFilterMenuTB = new QPopupMenu( this ); 690 selectFilterMenuTB = new QPopupMenu( this );
691 selectFilterMenuTB->setCheckable( true ); 691 selectFilterMenuTB->setCheckable( true );
692 connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); 692 connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) );
693 } 693 }
694 694
695 //#endif 695 //#endif
696 // ****************** 696 // ******************
697 QAction *action; 697 QAction *action;
698 // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); 698 // QPopupMenu *configureMenu= new QPopupMenu( menuBar );
699 configureToolBarMenu->setCheckable( true ); 699 configureToolBarMenu->setCheckable( true );
700 700
701 701
702 configureAgendaMenu->setCheckable( true ); 702 configureAgendaMenu->setCheckable( true );
703 int iii ; 703 int iii ;
704 for ( iii = 1;iii<= 10 ;++iii ){ 704 for ( iii = 1;iii<= 10 ;++iii ){
705 configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); 705 configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 );
706 } 706 }
707 //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); 707 //configureMenu->insertItem( "AgendaSize",configureAgendaMenu );
708 708
709 connect( configureAgendaMenu, SIGNAL( aboutToShow()), 709 connect( configureAgendaMenu, SIGNAL( aboutToShow()),
710 this, SLOT( showConfigureAgenda( ) ) ); 710 this, SLOT( showConfigureAgenda( ) ) );
711 711
712 icon = loadPixmap( pathString + "configure" ); 712 icon = loadPixmap( pathString + "configure" );
713 action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this ); 713 action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this );
714 action->addTo( actionMenu ); 714 action->addTo( actionMenu );
715 connect( action, SIGNAL( activated() ), 715 connect( action, SIGNAL( activated() ),
716 mView, SLOT( edit_options() ) ); 716 mView, SLOT( edit_options() ) );
717 actionMenu->insertSeparator(); 717 actionMenu->insertSeparator();
718 718
719 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); 719 action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this );
720 action->addTo( actionMenu ); 720 action->addTo( actionMenu );
721 connect( action, SIGNAL( activated() ), 721 connect( action, SIGNAL( activated() ),
722 mView, SLOT( undo_delete() ) ); 722 mView, SLOT( undo_delete() ) );
723 actionMenu->insertSeparator(); 723 actionMenu->insertSeparator();
724 724
725 icon = loadPixmap( pathString + "newevent" ); 725 icon = loadPixmap( pathString + "newevent" );
726 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); 726 configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 );
727 configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); 727 configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 );
728 configureToolBarMenu->insertSeparator(); 728 configureToolBarMenu->insertSeparator();
729 configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); 729 configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 );
730 configureToolBarMenu->insertSeparator(); 730 configureToolBarMenu->insertSeparator();
731 configureToolBarMenu->insertItem(i18n("Week Number"), 400); 731 configureToolBarMenu->insertItem(i18n("Week Number"), 400);
732 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); 732 configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 );
733 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); 733 QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this );
734 ne_action->addTo( actionMenu ); 734 ne_action->addTo( actionMenu );
735 connect( ne_action, SIGNAL( activated() ), 735 connect( ne_action, SIGNAL( activated() ),
736 mView, SLOT( newEvent() ) ); 736 mView, SLOT( newEvent() ) );
737 icon = loadPixmap( pathString + "newtodo" ); 737 icon = loadPixmap( pathString + "newtodo" );
738 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); 738 configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 );
739 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); 739 QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this );
740 nt_action->addTo( actionMenu ); 740 nt_action->addTo( actionMenu );
741 connect( nt_action, SIGNAL( activated() ), 741 connect( nt_action, SIGNAL( activated() ),
742 mView, SLOT( newTodo() ) ); 742 mView, SLOT( newTodo() ) );
743 743
744 icon = loadPixmap( pathString + "today" ); 744 icon = loadPixmap( pathString + "today" );
745 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); 745 QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this );
746 today_action->addTo( viewMenu ); 746 today_action->addTo( viewMenu );
747 connect( today_action, SIGNAL( activated() ), 747 connect( today_action, SIGNAL( activated() ),
748 mView, SLOT( goToday() ) ); 748 mView, SLOT( goToday() ) );
749 viewMenu->insertSeparator(); 749 viewMenu->insertSeparator();
750 750
751 // *********************** 751 // ***********************
752 if ( KOPrefs::instance()->mVerticalScreen ) { 752 if ( KOPrefs::instance()->mVerticalScreen ) {
753 icon = SmallIcon( "1updownarrow" ); 753 icon = SmallIcon( "1updownarrow" );
754 } else { 754 } else {
755 icon = SmallIcon("1leftrightarrow" ); 755 icon = SmallIcon("1leftrightarrow" );
756 } 756 }
757 configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); 757 configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 );
758 QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); 758 QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this );
759 FSaction->addTo( viewMenu ); 759 FSaction->addTo( viewMenu );
760 connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); 760 connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() ));
761 761
762 icon = loadPixmap( pathString + "navi" ); 762 icon = loadPixmap( pathString + "navi" );
763 configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); 763 configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 );
764 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); 764 action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this );
765 action->addTo( viewMenu ); 765 action->addTo( viewMenu );
766 connect( action, SIGNAL( activated() ), 766 connect( action, SIGNAL( activated() ),
767 mView, SLOT( toggleDateNavigatorWidget() ) ); 767 mView, SLOT( toggleDateNavigatorWidget() ) );
768 mToggleNav = action ; 768 mToggleNav = action ;
769 icon = loadPixmap( pathString + "filter" ); 769 icon = loadPixmap( pathString + "filter" );
770 configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); 770 configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 );
771 action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); 771 action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this );
772 action->addTo( viewMenu ); 772 action->addTo( viewMenu );
773 connect( action, SIGNAL( activated() ), 773 connect( action, SIGNAL( activated() ),
774 mView, SLOT( toggleFilter() ) ); 774 mView, SLOT( toggleFilter() ) );
775 mToggleFilter = action; 775 mToggleFilter = action;
776 icon = loadPixmap( pathString + "allday" ); 776 icon = loadPixmap( pathString + "allday" );
777 configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); 777 configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 );
778 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); 778 action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this );
779 action->addTo( viewMenu ); 779 action->addTo( viewMenu );
780 connect( action, SIGNAL( activated() ), 780 connect( action, SIGNAL( activated() ),
781 mView, SLOT( toggleAllDaySize() ) ); 781 mView, SLOT( toggleAllDaySize() ) );
782 mToggleAllday = action; 782 mToggleAllday = action;
783 783
784 784
785 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 785 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
786 mToggleNav, SLOT( setEnabled ( bool ) ) ); 786 mToggleNav, SLOT( setEnabled ( bool ) ) );
787 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), 787 connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ),
788 mToggleFilter, SLOT( setEnabled ( bool ) ) ); 788 mToggleFilter, SLOT( setEnabled ( bool ) ) );
789 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), 789 connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ),
790 mToggleAllday, SLOT( setEnabled ( bool ) ) ); 790 mToggleAllday, SLOT( setEnabled ( bool ) ) );
791 791
792 viewMenu->insertSeparator(); 792 viewMenu->insertSeparator();
793 icon = loadPixmap( pathString + "picker" ); 793 icon = loadPixmap( pathString + "picker" );
794 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); 794 action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this );
795 action->addTo( viewMenu ); 795 action->addTo( viewMenu );
796 connect( action, SIGNAL( activated() ), 796 connect( action, SIGNAL( activated() ),
797 mView, SLOT( showDatePicker() ) ); 797 mView, SLOT( showDatePicker() ) );
798 action->addTo( iconToolBar ); 798 action->addTo( iconToolBar );
799 viewMenu->insertSeparator(); 799 viewMenu->insertSeparator();
800 800
801 if ( p-> mShowIconToggleFull ) 801 if ( p-> mShowIconToggleFull )
802 FSaction->addTo( iconToolBar ); 802 FSaction->addTo( iconToolBar );
803 if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); 803 if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar );
804 804
805 //******************** 805 //********************
806 if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); 806 if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar );
807 807
808 808
809 icon = loadPixmap( pathString + "whatsnext" ); 809 icon = loadPixmap( pathString + "whatsnext" );
810 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); 810 configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 );
811 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); 811 QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this );
812 whatsnext_action->addTo( viewMenu ); 812 whatsnext_action->addTo( viewMenu );
813 connect( whatsnext_action, SIGNAL( activated() ), 813 connect( whatsnext_action, SIGNAL( activated() ),
814 mView->viewManager(), SLOT( showWhatsNextView() ) ); 814 mView->viewManager(), SLOT( showWhatsNextView() ) );
815 815
816 icon = loadPixmap( pathString + "xdays" ); 816 icon = loadPixmap( pathString + "xdays" );
817 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); 817 configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 );
818 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); 818 QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this );
819 xdays_action->addTo( viewMenu ); 819 xdays_action->addTo( viewMenu );
820 connect( xdays_action, SIGNAL( activated() ), 820 connect( xdays_action, SIGNAL( activated() ),
821 mView->viewManager(), SLOT( showNextXView() ) ); 821 mView->viewManager(), SLOT( showNextXView() ) );
822 822
823 823
824 icon = loadPixmap( pathString + "journal" ); 824 icon = loadPixmap( pathString + "journal" );
825 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); 825 configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 );
826 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); 826 QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this );
827 viewjournal_action->addTo( viewMenu ); 827 viewjournal_action->addTo( viewMenu );
828 connect( viewjournal_action, SIGNAL( activated() ), 828 connect( viewjournal_action, SIGNAL( activated() ),
829 mView->viewManager(), SLOT( showJournalView() ) ); 829 mView->viewManager(), SLOT( showJournalView() ) );
830 830
831 831
832 icon = loadPixmap( pathString + "day" ); 832 icon = loadPixmap( pathString + "day" );
833 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); 833 configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 );
834 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); 834 QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this );
835 day1_action->addTo( viewMenu ); 835 day1_action->addTo( viewMenu );
836 // action->addTo( toolBar ); 836 // action->addTo( toolBar );
837 connect( day1_action, SIGNAL( activated() ), 837 connect( day1_action, SIGNAL( activated() ),
838 mView->viewManager(), SLOT( showDayView() ) ); 838 mView->viewManager(), SLOT( showDayView() ) );
839 839
840 icon = loadPixmap( pathString + "workweek" ); 840 icon = loadPixmap( pathString + "workweek" );
841 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); 841 configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 );
842 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); 842 QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this );
843 day5_action->addTo( viewMenu ); 843 day5_action->addTo( viewMenu );
844 connect( day5_action, SIGNAL( activated() ), 844 connect( day5_action, SIGNAL( activated() ),
845 mView->viewManager(), SLOT( showWorkWeekView() ) ); 845 mView->viewManager(), SLOT( showWorkWeekView() ) );
846 846
847 icon = loadPixmap( pathString + "week" ); 847 icon = loadPixmap( pathString + "week" );
848 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); 848 configureToolBarMenu->insertItem(icon, i18n("Week"), 60 );
849 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); 849 QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this );
850 day7_action->addTo( viewMenu ); 850 day7_action->addTo( viewMenu );
851 connect( day7_action, SIGNAL( activated() ), 851 connect( day7_action, SIGNAL( activated() ),
852 mView->viewManager(), SLOT( showWeekView() ) ); 852 mView->viewManager(), SLOT( showWeekView() ) );
853 853
854 icon = loadPixmap( pathString + "workweek2" ); 854 icon = loadPixmap( pathString + "workweek2" );
855 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); 855 configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 );
856 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); 856 QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this );
857 day6_action->addTo( viewMenu ); 857 day6_action->addTo( viewMenu );
858 connect( day6_action, SIGNAL( activated() ), 858 connect( day6_action, SIGNAL( activated() ),
859 mView->viewManager(), SLOT( showMonthViewWeek() ) ); 859 mView->viewManager(), SLOT( showMonthViewWeek() ) );
860 860
861 icon = loadPixmap( pathString + "month" ); 861 icon = loadPixmap( pathString + "month" );
862 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); 862 configureToolBarMenu->insertItem(icon, i18n("Month"), 70 );
863 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); 863 QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this );
864 month_action->addTo( viewMenu ); 864 month_action->addTo( viewMenu );
865 connect( month_action, SIGNAL( activated() ), 865 connect( month_action, SIGNAL( activated() ),
866 mView->viewManager(), SLOT( showMonthView() ) ); 866 mView->viewManager(), SLOT( showMonthView() ) );
867 867
868 icon = loadPixmap( pathString + "list" ); 868 icon = loadPixmap( pathString + "list" );
869 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); 869 configureToolBarMenu->insertItem(icon, i18n("List View"), 30 );
870 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); 870 QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this );
871 showlist_action->addTo( viewMenu ); 871 showlist_action->addTo( viewMenu );
872 connect( showlist_action, SIGNAL( activated() ), 872 connect( showlist_action, SIGNAL( activated() ),
873 mView->viewManager(), SLOT( showListView() ) ); 873 mView->viewManager(), SLOT( showListView() ) );
874 874
875 icon = loadPixmap( pathString + "todo" ); 875 icon = loadPixmap( pathString + "todo" );
876 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); 876 configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 );
877 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); 877 QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this );
878 todoview_action->addTo( viewMenu ); 878 todoview_action->addTo( viewMenu );
879 connect( todoview_action, SIGNAL( activated() ), 879 connect( todoview_action, SIGNAL( activated() ),
880 mView->viewManager(), SLOT( showTodoView() ) ); 880 mView->viewManager(), SLOT( showTodoView() ) );
881 881
882 882
883 883
884#if 0 884#if 0
885 action = new QAction( "view_timespan", "Time Span", 0, this ); 885 action = new QAction( "view_timespan", "Time Span", 0, this );
886 action->addTo( viewMenu ); 886 action->addTo( viewMenu );
887 connect( action, SIGNAL( activated() ), 887 connect( action, SIGNAL( activated() ),
888 mView->viewManager(), SLOT( showTimeSpanView() ) ); 888 mView->viewManager(), SLOT( showTimeSpanView() ) );
889#endif 889#endif
890 890
891 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, 891 mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0,
892 this ); 892 this );
893 mNewSubTodoAction->addTo( actionMenu ); 893 mNewSubTodoAction->addTo( actionMenu );
894 connect( mNewSubTodoAction, SIGNAL( activated() ), 894 connect( mNewSubTodoAction, SIGNAL( activated() ),
895 mView, SLOT( newSubTodo() ) ); 895 mView, SLOT( newSubTodo() ) );
896 896
897 actionMenu->insertSeparator(); 897 actionMenu->insertSeparator();
898 898
899 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); 899 mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this );
900 mShowAction->addTo( actionMenu ); 900 mShowAction->addTo( actionMenu );
901 connect( mShowAction, SIGNAL( activated() ), 901 connect( mShowAction, SIGNAL( activated() ),
902 mView, SLOT( showIncidence() ) ); 902 mView, SLOT( showIncidence() ) );
903 903
904 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); 904 mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this );
905 mEditAction->addTo( actionMenu ); 905 mEditAction->addTo( actionMenu );
906 connect( mEditAction, SIGNAL( activated() ), 906 connect( mEditAction, SIGNAL( activated() ),
907 mView, SLOT( editIncidence() ) ); 907 mView, SLOT( editIncidence() ) );
908 908
909 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); 909 mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this );
910 mDeleteAction->addTo( actionMenu ); 910 mDeleteAction->addTo( actionMenu );
911 connect( mDeleteAction, SIGNAL( activated() ), 911 connect( mDeleteAction, SIGNAL( activated() ),
912 mView, SLOT( deleteIncidence() ) ); 912 mView, SLOT( deleteIncidence() ) );
913 913
914 914
915 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); 915 mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this );
916 mCloneAction->addTo( actionMenu ); 916 mCloneAction->addTo( actionMenu );
917 connect( mCloneAction, SIGNAL( activated() ), 917 connect( mCloneAction, SIGNAL( activated() ),
918 mView, SLOT( cloneIncidence() ) ); 918 mView, SLOT( cloneIncidence() ) );
919 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); 919 mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this );
920 mMoveAction->addTo( actionMenu ); 920 mMoveAction->addTo( actionMenu );
921 connect( mMoveAction, SIGNAL( activated() ), 921 connect( mMoveAction, SIGNAL( activated() ),
922 mView, SLOT( moveIncidence() ) ); 922 mView, SLOT( moveIncidence() ) );
923 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); 923 mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this );
924 mBeamAction->addTo( actionMenu ); 924 mBeamAction->addTo( actionMenu );
925 connect( mBeamAction, SIGNAL( activated() ), 925 connect( mBeamAction, SIGNAL( activated() ),
926 mView, SLOT( beamIncidence() ) ); 926 mView, SLOT( beamIncidence() ) );
927 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); 927 mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this );
928 mCancelAction->addTo( actionMenu ); 928 mCancelAction->addTo( actionMenu );
929 connect( mCancelAction, SIGNAL( activated() ), 929 connect( mCancelAction, SIGNAL( activated() ),
930 mView, SLOT( toggleCancelIncidence() ) ); 930 mView, SLOT( toggleCancelIncidence() ) );
931 931
932 actionMenu->insertSeparator(); 932 actionMenu->insertSeparator();
933 933
934 action = new QAction( "purge_completed", i18n("Purge Completed"), 0, 934 action = new QAction( "purge_completed", i18n("Purge Completed"), 0,
935 this ); 935 this );
936 action->addTo( actionMenu ); 936 action->addTo( actionMenu );
937 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); 937 connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) );
938 938
939 icon = loadPixmap( pathString + "search" ); 939 icon = loadPixmap( pathString + "search" );
940 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); 940 QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this );
941 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); 941 configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5);
942 search_action->addTo( actionMenu ); 942 search_action->addTo( actionMenu );
943 connect( search_action, SIGNAL( activated() ), 943 connect( search_action, SIGNAL( activated() ),
944 mView->dialogManager(), SLOT( showSearchDialog() ) ); 944 mView->dialogManager(), SLOT( showSearchDialog() ) );
945 945
946 946
947 947
948 if ( KOPrefs::instance()->mShowFullMenu ) { 948 if ( KOPrefs::instance()->mShowFullMenu ) {
949 actionMenu->insertSeparator(); 949 actionMenu->insertSeparator();
950 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); 950 actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu );
951 951
952 } 952 }
953 // actionMenu->insertSeparator(); 953 // actionMenu->insertSeparator();
954 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, 954 action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0,
955 this ); 955 this );
956 action->addTo( importMenu_X ); 956 action->addTo( importMenu_X );
957 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); 957 connect( action, SIGNAL( activated() ), SLOT( importIcal() ) );
958 action = new QAction( "import_quick", i18n("Import last file"), 0, 958 action = new QAction( "import_quick", i18n("Import last file"), 0,
959 this ); 959 this );
960 action->addTo( importMenu_X ); 960 action->addTo( importMenu_X );
961 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); 961 connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) );
962 importMenu_X->insertSeparator(); 962 importMenu_X->insertSeparator();
963 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, 963 action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0,
964 this ); 964 this );
965 action->addTo( importMenu_X ); 965 action->addTo( importMenu_X );
966 connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); 966 connect( action, SIGNAL( activated() ), SLOT( importBday() ) );
967 //#ifndef DESKTOP_VERSION 967 //#ifndef DESKTOP_VERSION
968 importMenu_X->insertSeparator(); 968 importMenu_X->insertSeparator();
969 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, 969 action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0,
970 this ); 970 this );
971 action->addTo( importMenu_X ); 971 action->addTo( importMenu_X );
972 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); 972 connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) );
973 //#else 973 //#else
974#ifdef _OL_IMPORT_ 974#ifdef _OL_IMPORT_
975 importMenu_X->insertSeparator(); 975 importMenu_X->insertSeparator();
976 action = new QAction( "import_ol", i18n("Import from OL"), 0, 976 action = new QAction( "import_ol", i18n("Import from OL"), 0,
977 this ); 977 this );
978 action->addTo( importMenu_X ); 978 action->addTo( importMenu_X );
979 connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); 979 connect( action, SIGNAL( activated() ), SLOT( importOL() ) );
980#endif 980#endif
981 //#endif 981 //#endif
982 982
983 //importMenu->insertSeparator(); 983 //importMenu->insertSeparator();
984 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, 984 action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0,
985 this ); 985 this );
986 action->addTo( importMenu ); 986 action->addTo( importMenu );
987 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); 987 connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) );
988 988
989 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, 989 action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0,
990 this ); 990 this );
991 action->addTo( importMenu ); 991 action->addTo( importMenu );
992 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); 992 connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) );
993 importMenu->insertSeparator(); 993 importMenu->insertSeparator();
994 importMenu->insertItem( i18n("Import"), importMenu_X ); 994 importMenu->insertItem( i18n("Import"), importMenu_X );
995 //importMenu->insertSeparator(); 995 //importMenu->insertSeparator();
996 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, 996 action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0,
997 this ); 997 this );
998 action->addTo( exportMenu_X ); 998 action->addTo( exportMenu_X );
999 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); 999 connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) );
1000 1000
1001 1001
1002 //LR 1002 //LR
1003 QPopupMenu *ex2phone = new QPopupMenu( this ); 1003 QPopupMenu *ex2phone = new QPopupMenu( this );
1004 ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 1004 ex2phone->insertItem(i18n("Complete calendar..."), 1 );
1005 ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 1005 ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
1006 connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); 1006 connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) );
1007 exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); 1007 exportMenu_X->insertItem( i18n("Export to phone"), ex2phone );
1008 1008
1009 importMenu->insertItem( i18n("Export"), exportMenu_X ); 1009 importMenu->insertItem( i18n("Export"), exportMenu_X );
1010#ifndef DESKTOP_VERSION 1010#ifndef DESKTOP_VERSION
1011 //importMenu->insertSeparator(); 1011 //importMenu->insertSeparator();
1012 brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, 1012 brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0,
1013 this ); 1013 this );
1014 brAction->addTo( beamMenu_X ); 1014 brAction->addTo( beamMenu_X );
1015 brAction->setToggleAction (true ) ; 1015 brAction->setToggleAction (true ) ;
1016 connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); 1016 connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) );
1017 1017
1018 action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, 1018 action = new QAction( "beam all", i18n("Beam complete calendar..."), 0,
1019 this ); 1019 this );
1020 action->addTo( beamMenu_X ); 1020 action->addTo( beamMenu_X );
1021 connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); 1021 connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) );
1022 1022
1023 action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, 1023 action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0,
1024 this ); 1024 this );
1025 action->addTo( beamMenu_X ); 1025 action->addTo( beamMenu_X );
1026 connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); 1026 connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) );
1027 importMenu->insertItem( i18n("Beam"), beamMenu_X ); 1027 importMenu->insertItem( i18n("Beam"), beamMenu_X );
1028#else 1028#else
1029 //importMenu->insertSeparator(); 1029 //importMenu->insertSeparator();
1030 icon = loadPixmap( pathString + "print" ); 1030 icon = loadPixmap( pathString + "print" );
1031 action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); 1031 action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this );
1032 action->addTo( beamMenu_X ); 1032 action->addTo( beamMenu_X );
1033 connect( action, SIGNAL( activated() ), 1033 connect( action, SIGNAL( activated() ),
1034 this, SLOT( printCal() ) ); 1034 this, SLOT( printCal() ) );
1035 1035
1036 icon = loadPixmap( pathString + "print" ); 1036 icon = loadPixmap( pathString + "print" );
1037 action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); 1037 action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this );
1038 action->addTo( beamMenu_X ); 1038 action->addTo( beamMenu_X );
1039 connect( action, SIGNAL( activated() ), 1039 connect( action, SIGNAL( activated() ),
1040 this, SLOT( printSel() ) ); 1040 this, SLOT( printSel() ) );
1041 action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); 1041 action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this );
1042 action->addTo( beamMenu_X ); 1042 action->addTo( beamMenu_X );
1043 connect( action, SIGNAL( activated() ), 1043 connect( action, SIGNAL( activated() ),
1044 mView->viewManager(), SLOT( slotprintWNV() ) ); 1044 mView->viewManager(), SLOT( slotprintWNV() ) );
1045 1045
1046 action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); 1046 action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this );
1047 action->addTo( beamMenu_X ); 1047 action->addTo( beamMenu_X );
1048 connect( action, SIGNAL( activated() ), 1048 connect( action, SIGNAL( activated() ),
1049 mView, SLOT( slotprintSelInc() ) ); 1049 mView, SLOT( slotprintSelInc() ) );
1050 1050
1051 1051
1052 importMenu->insertItem( i18n("Print"), beamMenu_X ); 1052 importMenu->insertItem( i18n("Print"), beamMenu_X );
1053#endif 1053#endif
1054 importMenu->insertSeparator(); 1054 importMenu->insertSeparator();
1055 action = new QAction( "manage cat", i18n("Manage new categories..."), 0, 1055 action = new QAction( "manage cat", i18n("Manage new categories..."), 0,
1056 this ); 1056 this );
1057 action->addTo( importMenu ); 1057 action->addTo( importMenu );
1058 connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); 1058 connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) );
1059 importMenu->insertSeparator(); 1059 importMenu->insertSeparator();
1060 action = new QAction( "beam all", i18n("Save"), 0, 1060 action = new QAction( "beam all", i18n("Save"), 0,
1061 this ); 1061 this );
1062 action->addTo( importMenu ); 1062 action->addTo( importMenu );
1063 connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); 1063 connect( action, SIGNAL( activated() ), this, SLOT( save() ) );
1064 action = new QAction( "beam all", i18n("Exit (+save)"), 0, 1064 action = new QAction( "beam all", i18n("Exit (+save)"), 0,
1065 this ); 1065 this );
1066 action->addTo( importMenu ); 1066 action->addTo( importMenu );
1067 connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); 1067 connect( action, SIGNAL( activated() ), this, SLOT( close() ) );
1068 1068
1069 //menuBar->insertItem( "Configure",configureMenu ); 1069 //menuBar->insertItem( "Configure",configureMenu );
1070 //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); 1070 //configureMenu->insertItem( "Toolbar",configureToolBarMenu );
1071 icon = loadPixmap( "korganizer/korganizer" ); 1071 icon = loadPixmap( "korganizer/korganizer" );
1072 1072
1073 action = new QAction( "Whats New", i18n("What's new?"), 0,this ); 1073 action = new QAction( "Whats New", i18n("What's new?"), 0,this );
1074 action->addTo( helpMenu ); 1074 action->addTo( helpMenu );
1075 connect( action, SIGNAL( activated() ), 1075 connect( action, SIGNAL( activated() ),
1076 SLOT( whatsNew() ) ); 1076 SLOT( whatsNew() ) );
1077 action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); 1077 action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this );
1078 action->addTo( helpMenu ); 1078 action->addTo( helpMenu );
1079 connect( action, SIGNAL( activated() ), 1079 connect( action, SIGNAL( activated() ),
1080 SLOT( features() ) ); 1080 SLOT( features() ) );
1081 action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); 1081 action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this );
1082 action->addTo( helpMenu ); 1082 action->addTo( helpMenu );
1083 connect( action, SIGNAL( activated() ), 1083 connect( action, SIGNAL( activated() ),
1084 SLOT( keyBindings() ) ); 1084 SLOT( keyBindings() ) );
1085 action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); 1085 action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this );
1086 action->addTo( helpMenu ); 1086 action->addTo( helpMenu );
1087 connect( action, SIGNAL( activated() ), 1087 connect( action, SIGNAL( activated() ),
1088 SLOT( synchowto() ) ); 1088 SLOT( synchowto() ) );
1089 action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); 1089 action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this );
1090 action->addTo( helpMenu ); 1090 action->addTo( helpMenu );
1091 connect( action, SIGNAL( activated() ), 1091 connect( action, SIGNAL( activated() ),
1092 SLOT( kdesynchowto() ) ); 1092 SLOT( kdesynchowto() ) );
1093 action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); 1093 action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this );
1094 action->addTo( helpMenu ); 1094 action->addTo( helpMenu );
1095 connect( action, SIGNAL( activated() ), 1095 connect( action, SIGNAL( activated() ),
1096 SLOT( multisynchowto() ) ); 1096 SLOT( multisynchowto() ) );
1097 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); 1097 action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this );
1098 action->addTo( helpMenu ); 1098 action->addTo( helpMenu );
1099 connect( action, SIGNAL( activated() ), 1099 connect( action, SIGNAL( activated() ),
1100 SLOT( aboutAutoSaving() ) ); 1100 SLOT( aboutAutoSaving() ) );
1101 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); 1101 action = new QAction( "Problemd", i18n("Known Problems..."), 0,this );
1102 action->addTo( helpMenu ); 1102 action->addTo( helpMenu );
1103 connect( action, SIGNAL( activated() ), 1103 connect( action, SIGNAL( activated() ),
1104 SLOT( aboutKnownBugs() ) ); 1104 SLOT( aboutKnownBugs() ) );
1105 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); 1105 action = new QAction( "Translate Howto", i18n("User translation..."), 0,this );
1106 action->addTo( helpMenu ); 1106 action->addTo( helpMenu );
1107 connect( action, SIGNAL( activated() ), 1107 connect( action, SIGNAL( activated() ),
1108 SLOT( usertrans() ) ); 1108 SLOT( usertrans() ) );
1109 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); 1109 action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this );
1110 action->addTo( helpMenu ); 1110 action->addTo( helpMenu );
1111 connect( action, SIGNAL( activated() ), 1111 connect( action, SIGNAL( activated() ),
1112 SLOT( faq() ) ); 1112 SLOT( faq() ) );
1113 action = new QAction( "licence", i18n("Licence..."), 0, this ); 1113 action = new QAction( "licence", i18n("Licence..."), 0, this );
1114 action->addTo( helpMenu ); 1114 action->addTo( helpMenu );
1115 connect( action, SIGNAL( activated() ), 1115 connect( action, SIGNAL( activated() ),
1116 SLOT( licence() ) ); 1116 SLOT( licence() ) );
1117 action = new QAction( "about", i18n("About..."), 0, this ); 1117 action = new QAction( "about", i18n("About..."), 0, this );
1118 action->addTo( helpMenu ); 1118 action->addTo( helpMenu );
1119 connect( action, SIGNAL( activated() ), 1119 connect( action, SIGNAL( activated() ),
1120 SLOT( about() ) ); 1120 SLOT( about() ) );
1121 //menuBar->insertSeparator(); 1121 //menuBar->insertSeparator();
1122 1122
1123 // ****************************************************** 1123 // ******************************************************
1124 // menubar icons 1124 // menubar icons
1125 1125
1126 1126
1127 1127
1128 //menuBar->insertItem( iconToolBar ); 1128 //menuBar->insertItem( iconToolBar );
1129 //xdays_action 1129 //xdays_action
1130 if (p-> mShowIconNewEvent) 1130 if (p-> mShowIconNewEvent)
1131 ne_action->addTo( iconToolBar ); 1131 ne_action->addTo( iconToolBar );
1132 if (p->mShowIconNewTodo ) 1132 if (p->mShowIconNewTodo )
1133 nt_action->addTo( iconToolBar ); 1133 nt_action->addTo( iconToolBar );
1134 if (p-> mShowIconSearch) 1134 if (p-> mShowIconSearch)
1135 search_action->addTo( iconToolBar ); 1135 search_action->addTo( iconToolBar );
1136 if (p-> mShowIconWhatsThis) 1136 if (p-> mShowIconWhatsThis)
1137 QWhatsThis::whatsThisButton ( iconToolBar ); 1137 QWhatsThis::whatsThisButton ( iconToolBar );
1138 if (p-> mShowIconNext) 1138 if (p-> mShowIconNext)
1139 whatsnext_action->addTo( viewToolBar ); 1139 whatsnext_action->addTo( viewToolBar );
1140 if (p-> mShowIconNextDays) 1140 if (p-> mShowIconNextDays)
1141 xdays_action->addTo( viewToolBar ); 1141 xdays_action->addTo( viewToolBar );
1142 if (p-> mShowIconJournal) 1142 if (p-> mShowIconJournal)
1143 viewjournal_action->addTo( viewToolBar ); 1143 viewjournal_action->addTo( viewToolBar );
1144 if (p-> mShowIconDay1) 1144 if (p-> mShowIconDay1)
1145 day1_action->addTo( viewToolBar ); 1145 day1_action->addTo( viewToolBar );
1146 if (p-> mShowIconDay5) 1146 if (p-> mShowIconDay5)
1147 day5_action->addTo( viewToolBar ); 1147 day5_action->addTo( viewToolBar );
1148 if (p-> mShowIconDay7) 1148 if (p-> mShowIconDay7)
1149 day7_action->addTo( viewToolBar ); 1149 day7_action->addTo( viewToolBar );
1150 if (p-> mShowIconDay6) 1150 if (p-> mShowIconDay6)
1151 day6_action->addTo( viewToolBar ); 1151 day6_action->addTo( viewToolBar );
1152 if (p-> mShowIconMonth) 1152 if (p-> mShowIconMonth)
1153 month_action->addTo( viewToolBar ); 1153 month_action->addTo( viewToolBar );
1154 if (p-> mShowIconList) 1154 if (p-> mShowIconList)
1155 showlist_action->addTo( viewToolBar ); 1155 showlist_action->addTo( viewToolBar );
1156 if (p-> mShowIconTodoview) 1156 if (p-> mShowIconTodoview)
1157 todoview_action->addTo( viewToolBar ); 1157 todoview_action->addTo( viewToolBar );
1158 1158
1159 icon = loadPixmap( pathString + "2leftarrowB" ); 1159 icon = loadPixmap( pathString + "2leftarrowB" );
1160 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); 1160 configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200);
1161 if (p-> mShowIconBackFast) { 1161 if (p-> mShowIconBackFast) {
1162 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); 1162 action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this );
1163 connect( action, SIGNAL( activated() ), 1163 connect( action, SIGNAL( activated() ),
1164 mView, SLOT( goPreviousMonth() ) ); 1164 mView, SLOT( goPreviousMonth() ) );
1165 action->addTo( navigatorToolBar ); 1165 action->addTo( navigatorToolBar );
1166 } 1166 }
1167 icon = loadPixmap( pathString + "1leftarrowB" ); 1167 icon = loadPixmap( pathString + "1leftarrowB" );
1168 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); 1168 configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210);
1169 if (p-> mShowIconBack) { 1169 if (p-> mShowIconBack) {
1170 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); 1170 action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this );
1171 connect( action, SIGNAL( activated() ), 1171 connect( action, SIGNAL( activated() ),
1172 mView, SLOT( goPrevious() ) ); 1172 mView, SLOT( goPrevious() ) );
1173 action->addTo( navigatorToolBar ); 1173 action->addTo( navigatorToolBar );
1174 } 1174 }
1175 icon = loadPixmap( pathString + "today" ); 1175 icon = loadPixmap( pathString + "today" );
1176 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); 1176 configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130);
1177 if (p-> mShowIconToday) 1177 if (p-> mShowIconToday)
1178 today_action->addTo( navigatorToolBar ); 1178 today_action->addTo( navigatorToolBar );
1179 icon = loadPixmap( pathString + "1rightarrowB" ); 1179 icon = loadPixmap( pathString + "1rightarrowB" );
1180 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); 1180 configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220);
1181 if (p-> mShowIconForward) { 1181 if (p-> mShowIconForward) {
1182 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); 1182 action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this );
1183 connect( action, SIGNAL( activated() ), 1183 connect( action, SIGNAL( activated() ),
1184 mView, SLOT( goNext() ) ); 1184 mView, SLOT( goNext() ) );
1185 action->addTo( navigatorToolBar ); 1185 action->addTo( navigatorToolBar );
1186 } 1186 }
1187 icon = loadPixmap( pathString + "2rightarrowB" ); 1187 icon = loadPixmap( pathString + "2rightarrowB" );
1188 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); 1188 configureToolBarMenu->insertItem(icon, i18n("Next month"), 230);
1189 if (p-> mShowIconForwardFast) { 1189 if (p-> mShowIconForwardFast) {
1190 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); 1190 action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this );
1191 connect( action, SIGNAL( activated() ), 1191 connect( action, SIGNAL( activated() ),
1192 mView, SLOT( goNextMonth() ) ); 1192 mView, SLOT( goNextMonth() ) );
1193 action->addTo( navigatorToolBar ); 1193 action->addTo( navigatorToolBar );
1194 } 1194 }
1195 1195
1196 1196
1197 configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); 1197 configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6);
1198 1198
1199 1199
1200 if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); 1200 if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true);
1201 if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); 1201 if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true);
1202 if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); 1202 if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true);
1203 if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); 1203 if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true);
1204 1204
1205 if (p-> mShowIconNewEvent) 1205 if (p-> mShowIconNewEvent)
1206 configureToolBarMenu->setItemChecked( 10, true ); 1206 configureToolBarMenu->setItemChecked( 10, true );
1207 if (p->mShowIconNewTodo ) 1207 if (p->mShowIconNewTodo )
1208 configureToolBarMenu->setItemChecked( 20, true ); 1208 configureToolBarMenu->setItemChecked( 20, true );
1209 if (p-> mShowIconSearch) 1209 if (p-> mShowIconSearch)
1210 configureToolBarMenu->setItemChecked( 120, true ); 1210 configureToolBarMenu->setItemChecked( 120, true );
1211 if (p-> mShowIconList) 1211 if (p-> mShowIconList)
1212 configureToolBarMenu->setItemChecked( 30, true ); 1212 configureToolBarMenu->setItemChecked( 30, true );
1213 if (p-> mShowIconDay1) 1213 if (p-> mShowIconDay1)
1214 configureToolBarMenu->setItemChecked( 40, true ); 1214 configureToolBarMenu->setItemChecked( 40, true );
1215 if (p-> mShowIconDay5) 1215 if (p-> mShowIconDay5)
1216 configureToolBarMenu->setItemChecked( 50, true ); 1216 configureToolBarMenu->setItemChecked( 50, true );
1217 if (p-> mShowIconDay6) 1217 if (p-> mShowIconDay6)
1218 configureToolBarMenu->setItemChecked( 75, true ); 1218 configureToolBarMenu->setItemChecked( 75, true );
1219 if (p-> mShowIconDay7) 1219 if (p-> mShowIconDay7)
1220 configureToolBarMenu->setItemChecked( 60, true ); 1220 configureToolBarMenu->setItemChecked( 60, true );
1221 if (p-> mShowIconMonth) 1221 if (p-> mShowIconMonth)
1222 configureToolBarMenu->setItemChecked( 70, true ); 1222 configureToolBarMenu->setItemChecked( 70, true );
1223 if (p-> mShowIconTodoview) 1223 if (p-> mShowIconTodoview)
1224 configureToolBarMenu->setItemChecked( 80, true ); 1224 configureToolBarMenu->setItemChecked( 80, true );
1225 if (p-> mShowIconBackFast) 1225 if (p-> mShowIconBackFast)
1226 configureToolBarMenu->setItemChecked( 200, true ); 1226 configureToolBarMenu->setItemChecked( 200, true );
1227 if (p-> mShowIconBack) 1227 if (p-> mShowIconBack)
1228 configureToolBarMenu->setItemChecked( 210, true ); 1228 configureToolBarMenu->setItemChecked( 210, true );
1229 if (p-> mShowIconToday) 1229 if (p-> mShowIconToday)
1230 configureToolBarMenu->setItemChecked( 130, true ); 1230 configureToolBarMenu->setItemChecked( 130, true );
1231 if (p-> mShowIconForward) 1231 if (p-> mShowIconForward)
1232 configureToolBarMenu->setItemChecked( 220, true ); 1232 configureToolBarMenu->setItemChecked( 220, true );
1233 if (p-> mShowIconForwardFast) 1233 if (p-> mShowIconForwardFast)
1234 configureToolBarMenu->setItemChecked( 230, true ); 1234 configureToolBarMenu->setItemChecked( 230, true );
1235 if (p-> mShowIconNextDays) 1235 if (p-> mShowIconNextDays)
1236 configureToolBarMenu->setItemChecked( 100, true ); 1236 configureToolBarMenu->setItemChecked( 100, true );
1237 if (p-> mShowIconNext) 1237 if (p-> mShowIconNext)
1238 configureToolBarMenu->setItemChecked( 110, true ); 1238 configureToolBarMenu->setItemChecked( 110, true );
1239 if (p-> mShowIconJournal) 1239 if (p-> mShowIconJournal)
1240 configureToolBarMenu->setItemChecked( 90, true ); 1240 configureToolBarMenu->setItemChecked( 90, true );
1241 if (p-> mShowIconWhatsThis) 1241 if (p-> mShowIconWhatsThis)
1242 configureToolBarMenu->setItemChecked( 300, true ); 1242 configureToolBarMenu->setItemChecked( 300, true );
1243 if (p-> mShowIconWeekNum) 1243 if (p-> mShowIconWeekNum)
1244 configureToolBarMenu->setItemChecked( 400, true ); 1244 configureToolBarMenu->setItemChecked( 400, true );
1245 if (!p-> mShowIconStretch) { 1245 if (!p-> mShowIconStretch) {
1246 QLabel* dummy = new QLabel( iconToolBar ); 1246 QLabel* dummy = new QLabel( iconToolBar );
1247 dummy->setBackgroundColor( iconToolBar->backgroundColor() ); 1247 dummy->setBackgroundColor( iconToolBar->backgroundColor() );
1248 dummy->setMinimumWidth( 0 ); 1248 dummy->setMinimumWidth( 0 );
1249 iconToolBar->setStretchableWidget ( dummy ) ; 1249 iconToolBar->setStretchableWidget ( dummy ) ;
1250 } 1250 }
1251 else { 1251 else {
1252 iconToolBar->setHorizontalStretchable (true ); 1252 iconToolBar->setHorizontalStretchable (true );
1253 viewToolBar->setHorizontalStretchable (true ); 1253 viewToolBar->setHorizontalStretchable (true );
1254 navigatorToolBar->setHorizontalStretchable (true ); 1254 navigatorToolBar->setHorizontalStretchable (true );
1255 iconToolBar->setVerticalStretchable (true ); 1255 iconToolBar->setVerticalStretchable (true );
1256 viewToolBar->setVerticalStretchable (true ); 1256 viewToolBar->setVerticalStretchable (true );
1257 navigatorToolBar->setVerticalStretchable (true ); 1257 navigatorToolBar->setVerticalStretchable (true );
1258 configureToolBarMenu->setItemChecked( 5, true ); 1258 configureToolBarMenu->setItemChecked( 5, true );
1259 } 1259 }
1260 if (p-> mShowIconFilter) 1260 if (p-> mShowIconFilter)
1261 configureToolBarMenu->setItemChecked( 7, true ); 1261 configureToolBarMenu->setItemChecked( 7, true );
1262 if (p-> mShowIconOnetoolbar) 1262 if (p-> mShowIconOnetoolbar)
1263 configureToolBarMenu->setItemChecked( 6, true ); 1263 configureToolBarMenu->setItemChecked( 6, true );
1264 1264
1265 1265
1266 if ( filterMenubar ) 1266 if ( filterMenubar )
1267 connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) ); 1267 connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) );
1268 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); 1268 connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) );
1269 configureAgenda( p->mHourSize ); 1269 configureAgenda( p->mHourSize );
1270 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); 1270 connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) );
1271} 1271}
1272 1272
1273void MainWindow::exportToPhone( int mode ) 1273void MainWindow::exportToPhone( int mode )
1274{ 1274{
1275 1275
1276 //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); 1276 //ex2phone->insertItem(i18n("Complete calendar..."), 1 );
1277 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); 1277 //ex2phone->insertItem(i18n("Filtered calendar..."), 2 );
1278 KOex2phonePrefs ex2phone; 1278 KOex2phonePrefs ex2phone;
1279 1279
1280 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); 1280 ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection );
1281 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); 1281 ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice );
1282 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1282 ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel );
1283 if ( mode == 1 ) 1283 if ( mode == 1 )
1284 ex2phone.setCaption(i18n("Export complete calendar")); 1284 ex2phone.setCaption(i18n("Export complete calendar"));
1285 if ( mode == 2 ) 1285 if ( mode == 2 )
1286 ex2phone.setCaption(i18n("Export filtered calendar")); 1286 ex2phone.setCaption(i18n("Export filtered calendar"));
1287 1287
1288 if ( !ex2phone.exec() ) { 1288 if ( !ex2phone.exec() ) {
1289 return; 1289 return;
1290 } 1290 }
1291 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); 1291 KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text();
1292 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); 1292 KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text();
1293 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); 1293 KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text();
1294 1294
1295 int inFuture = 0; 1295 int inFuture = 0;
1296 if ( ex2phone.mWriteBackFuture->isChecked() ) 1296 if ( ex2phone.mWriteBackFuture->isChecked() )
1297 inFuture = ex2phone.mWriteBackFutureWeeks->value(); 1297 inFuture = ex2phone.mWriteBackFutureWeeks->value();
1298 QPtrList<Incidence> delSel; 1298 QPtrList<Incidence> delSel;
1299 if ( mode == 1 ) 1299 if ( mode == 1 )
1300 delSel = mCalendar->rawIncidences(); 1300 delSel = mCalendar->rawIncidences();
1301 if ( mode == 2 ) 1301 if ( mode == 2 )
1302 delSel = mCalendar->incidences(); 1302 delSel = mCalendar->incidences();
1303 CalendarLocal* cal = new CalendarLocal(); 1303 CalendarLocal* cal = new CalendarLocal();
1304 cal->setLocalTime(); 1304 cal->setLocalTime();
1305 Incidence *incidence = delSel.first(); 1305 Incidence *incidence = delSel.first();
1306 QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); 1306 QDateTime cur = QDateTime::currentDateTime().addDays( -7 );
1307 QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); 1307 QDateTime end = cur.addDays( ( inFuture +1 ) *7 );
1308 while ( incidence ) { 1308 while ( incidence ) {
1309 if ( incidence->type() != "Journal" ) { 1309 if ( incidence->type() != "Journal" ) {
1310 bool add = true; 1310 bool add = true;
1311 if ( inFuture ) { 1311 if ( inFuture ) {
1312 QDateTime dt; 1312 QDateTime dt;
1313 if ( incidence->type() == "Todo" ) { 1313 if ( incidence->type() == "Todo" ) {
1314 Todo * t = (Todo*)incidence; 1314 Todo * t = (Todo*)incidence;
1315 if ( t->hasDueDate() ) 1315 if ( t->hasDueDate() )
1316 dt = t->dtDue(); 1316 dt = t->dtDue();
1317 else 1317 else
1318 dt = cur.addSecs( 62 ); 1318 dt = cur.addSecs( 62 );
1319 } 1319 }
1320 else { 1320 else {
1321 bool ok; 1321 bool ok;
1322 dt = incidence->getNextOccurence( cur, &ok ); 1322 dt = incidence->getNextOccurence( cur, &ok );
1323 if ( !ok ) 1323 if ( !ok )
1324 dt = cur.addSecs( -62 ); 1324 dt = cur.addSecs( -62 );
1325 } 1325 }
1326 if ( dt < cur || dt > end ) { 1326 if ( dt < cur || dt > end ) {
1327 add = false; 1327 add = false;
1328 } 1328 }
1329 } 1329 }
1330 if ( add ) { 1330 if ( add ) {
1331 Incidence *in = incidence->clone(); 1331 Incidence *in = incidence->clone();
1332 cal->addIncidence( in ); 1332 cal->addIncidence( in );
1333 } 1333 }
1334 } 1334 }
1335 incidence = delSel.next(); 1335 incidence = delSel.next();
1336 } 1336 }
1337 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, 1337 PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice,
1338 KPimGlobalPrefs::instance()->mEx2PhoneConnection, 1338 KPimGlobalPrefs::instance()->mEx2PhoneConnection,
1339 KPimGlobalPrefs::instance()->mEx2PhoneModel ); 1339 KPimGlobalPrefs::instance()->mEx2PhoneModel );
1340 1340
1341 setCaption( i18n("Writing to phone...")); 1341 setCaption( i18n("Writing to phone..."));
1342 if ( PhoneFormat::writeToPhone( cal ) ) 1342 if ( PhoneFormat::writeToPhone( cal ) )
1343 setCaption( i18n("Export to phone successful!")); 1343 setCaption( i18n("Export to phone successful!"));
1344 else 1344 else
1345 setCaption( i18n("Error exporting to phone!")); 1345 setCaption( i18n("Error exporting to phone!"));
1346 delete cal; 1346 delete cal;
1347} 1347}
1348 1348
1349 1349
1350void MainWindow::setDefaultPreferences() 1350void MainWindow::setDefaultPreferences()
1351{ 1351{
1352 KOPrefs *p = KOPrefs::instance(); 1352 KOPrefs *p = KOPrefs::instance();
1353 1353
1354 p->mCompactDialogs = true; 1354 p->mCompactDialogs = true;
1355 p->mConfirm = true; 1355 p->mConfirm = true;
1356 // p->mEnableQuickTodo = false; 1356 // p->mEnableQuickTodo = false;
1357 1357
1358} 1358}
1359 1359
1360QString MainWindow::resourcePath() 1360QString MainWindow::resourcePath()
1361{ 1361{
1362 return KGlobal::iconLoader()->iconPath(); 1362 return KGlobal::iconLoader()->iconPath();
1363} 1363}
1364 1364
1365void MainWindow::displayText( QString text ,QString cap ) 1365void MainWindow::displayText( QString text ,QString cap )
1366{ 1366{
1367 QDialog dia( this, "name", true ); ; 1367 QDialog dia( this, "name", true ); ;
1368 dia.setCaption( cap ); 1368 dia.setCaption( cap );
1369 QVBoxLayout* lay = new QVBoxLayout( &dia ); 1369 QVBoxLayout* lay = new QVBoxLayout( &dia );
1370 lay->setSpacing( 3 ); 1370 lay->setSpacing( 3 );
1371 lay->setMargin( 3 ); 1371 lay->setMargin( 3 );
1372 QTextBrowser tb ( &dia ); 1372 QTextBrowser tb ( &dia );
1373 lay->addWidget( &tb ); 1373 lay->addWidget( &tb );
1374 tb.setText( text ); 1374 tb.setText( text );
1375#ifdef DESKTOP_VERSION 1375#ifdef DESKTOP_VERSION
1376 dia.resize( 640, 480); 1376 dia.resize( 640, 480);
1377#else 1377#else
1378 dia.showMaximized(); 1378 dia.showMaximized();
1379#endif 1379#endif
1380 dia.exec(); 1380 dia.exec();
1381} 1381}
1382 1382
1383void MainWindow::features() 1383void MainWindow::features()
1384{ 1384{
1385 1385
1386 KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); 1386 KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" );
1387} 1387}
1388 1388
1389void MainWindow::usertrans() 1389void MainWindow::usertrans()
1390{ 1390{
1391 1391
1392 KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); 1392 KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" );
1393} 1393}
1394 1394
1395void MainWindow::kdesynchowto() 1395void MainWindow::kdesynchowto()
1396{ 1396{
1397 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); 1397 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" );
1398} 1398}
1399void MainWindow::multisynchowto() 1399void MainWindow::multisynchowto()
1400{ 1400{
1401 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); 1401 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" );
1402} 1402}
1403void MainWindow::synchowto() 1403void MainWindow::synchowto()
1404{ 1404{
1405 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); 1405 KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" );
1406} 1406}
1407void MainWindow::faq() 1407void MainWindow::faq()
1408{ 1408{
1409 KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); 1409 KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" );
1410 1410
1411} 1411}
1412void MainWindow::whatsNew() 1412void MainWindow::whatsNew()
1413{ 1413{
1414 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); 1414 KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" );
1415 1415
1416} 1416}
1417void MainWindow::licence() 1417void MainWindow::licence()
1418{ 1418{
1419 KApplication::showLicence(); 1419 KApplication::showLicence();
1420 1420
1421} 1421}
1422void MainWindow::about() 1422void MainWindow::about()
1423{ 1423{
1424 QString version; 1424 QString version;
1425#include <../version> 1425#include <../version>
1426 QMessageBox::about( this, i18n("About KOrganizer/Pi"), 1426 QMessageBox::about( this, i18n("About KOrganizer/Pi"),
1427 i18n("KOrganizer/Platform-independent\n") + 1427 i18n("KOrganizer/Platform-independent\n") +
1428 "(KO/Pi) " + version + " - " + 1428 "(KO/Pi) " + version + " - " +
1429 1429
1430#ifdef DESKTOP_VERSION 1430#ifdef DESKTOP_VERSION
1431 i18n("Desktop Edition\n") + 1431 i18n("Desktop Edition\n") +
1432#else 1432#else
1433 i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + 1433 i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") +
1434#endif 1434#endif
1435 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!") ); 1435 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!") );
1436} 1436}
1437void MainWindow::keyBindings() 1437void MainWindow::keyBindings()
1438{ 1438{
1439 QString cap = i18n("KO/Pi Keys + Colors"); 1439 QString cap = i18n("KO/Pi Keys + Colors");
1440 QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + 1440 QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") +
1441 i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ 1441 i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+
1442 i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") +
1443 i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") +
1442 i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + 1444 i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") +
1443 i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ 1445 i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+
1444 i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ 1446 i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+
1445 i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ 1447 i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+
1446 i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ 1448 i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+
1447 i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ 1449 i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+
1448 i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ 1450 i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+
1449 i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ 1451 i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+
1450 i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ 1452 i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+
1451 i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ 1453 i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+
1452 i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ 1454 i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+
1453 i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ 1455 i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+
1454 i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ 1456 i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+
1455 i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ 1457 i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+
1456 i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ 1458 i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+
1457 i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ 1459 i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+
1458 i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ 1460 i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+
1459 i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ 1461 i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+
1460 i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ 1462 i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+
1461 i18n("<p><h3>In agenda view:</h3></p>\n") + 1463 i18n("<p><h3>In agenda view:</h3></p>\n") +
1462 i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ 1464 i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+
1463 i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ 1465 i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+
1464 i18n("<p><h3>In todo view:</h3></p>\n") + 1466 i18n("<p><h3>In todo view:</h3></p>\n") +
1465 i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ 1467 i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+
1466 i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ 1468 i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+
1467 i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ 1469 i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+
1468 i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ 1470 i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+
1469 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ 1471 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+
1470 i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ 1472 i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+
1471 i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ 1473 i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+
1472 i18n("<p><h3>In list view:</h3></p>\n") + 1474 i18n("<p><h3>In list view:</h3></p>\n") +
1473 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ 1475 i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+
1474 i18n("<p><b>return</b>: Select item+one step down</p>\n")+ 1476 i18n("<p><b>return</b>: Select item+one step down</p>\n")+
1475 i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ 1477 i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+
1476 i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ 1478 i18n("<p><b>up/down</b>: Next/prev item</p>\n")+
1477 i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ 1479 i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+
1478 i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ 1480 i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+
1479 i18n("<p><h3>In event/todo viewer:</h3></p>\n") + 1481 i18n("<p><h3>In event/todo viewer:</h3></p>\n") +
1480 i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ 1482 i18n("<p><b>I,C</b>: Close dialog.</p>\n")+
1481 i18n("<p><b>A</b>: Show agenda view.</p>\n")+ 1483 i18n("<p><b>A</b>: Show agenda view.</p>\n")+
1482 i18n("<p><b>E</b>: Edit item</p>\n") + 1484 i18n("<p><b>E</b>: Edit item</p>\n") +
1483 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + 1485 i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") +
1484 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + 1486 i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") +
1485 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ 1487 i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+
1486 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ 1488 i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+
1487 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ 1489 i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+
1488 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ 1490 i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+
1489 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ 1491 i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+
1490 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + 1492 i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") +
1491 i18n("<p><b>White</b>: Item readonly</p>\n"); 1493 i18n("<p><b>White</b>: Item readonly</p>\n");
1492 displayText( text, cap); 1494 displayText( text, cap);
1493} 1495}
1494void MainWindow::aboutAutoSaving() 1496void MainWindow::aboutAutoSaving()
1495{ 1497{
1496 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"); 1498 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");
1497 1499
1498 KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); 1500 KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text);
1499 1501
1500} 1502}
1501void MainWindow::aboutKnownBugs() 1503void MainWindow::aboutKnownBugs()
1502{ 1504{
1503 QMessageBox* msg; 1505 QMessageBox* msg;
1504 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), 1506 msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"),
1505 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")+ 1507 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")+
1506 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ 1508 i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+
1507 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + 1509 i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") +
1508 i18n("\nor report them in the bugtracker on\n") + 1510 i18n("\nor report them in the bugtracker on\n") +
1509 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), 1511 i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"),
1510 QMessageBox::NoIcon, 1512 QMessageBox::NoIcon,
1511 QMessageBox::Ok, 1513 QMessageBox::Ok,
1512 QMessageBox::NoButton, 1514 QMessageBox::NoButton,
1513 QMessageBox::NoButton); 1515 QMessageBox::NoButton);
1514 msg->exec(); 1516 msg->exec();
1515 delete msg; 1517 delete msg;
1516 1518
1517} 1519}
1518 1520
1519QString MainWindow::defaultFileName() 1521QString MainWindow::defaultFileName()
1520{ 1522{
1521 return locateLocal( "data", "korganizer/mycalendar.ics" ); 1523 return locateLocal( "data", "korganizer/mycalendar.ics" );
1522} 1524}
1523QString MainWindow::syncFileName() 1525QString MainWindow::syncFileName()
1524{ 1526{
1525#ifdef DESKTOP_VERSION 1527#ifdef DESKTOP_VERSION
1526 return locateLocal( "tmp", "synccalendar.ics" ); 1528 return locateLocal( "tmp", "synccalendar.ics" );
1527#else 1529#else
1528 return QString( "/tmp/synccalendar.ics" ); 1530 return QString( "/tmp/synccalendar.ics" );
1529#endif 1531#endif
1530} 1532}
1531#include "koglobals.h" 1533#include "koglobals.h"
1532#include <kcalendarsystem.h> 1534#include <kcalendarsystem.h>
1533void MainWindow::updateWeek(QDate seda) 1535void MainWindow::updateWeek(QDate seda)
1534{ 1536{
1535 int weekNum = KGlobal::locale()->weekNum ( seda ); 1537 int weekNum = KGlobal::locale()->weekNum ( seda );
1536 mWeekPixmap.fill( mWeekBgColor ); 1538 mWeekPixmap.fill( mWeekBgColor );
1537 QPainter p ( &mWeekPixmap ); 1539 QPainter p ( &mWeekPixmap );
1538 p.setFont( mWeekFont ); 1540 p.setFont( mWeekFont );
1539 p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); 1541 p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) );
1540 p.end(); 1542 p.end();
1541 QIconSet icon3 ( mWeekPixmap ); 1543 QIconSet icon3 ( mWeekPixmap );
1542 mWeekAction->setIconSet ( icon3 ); 1544 mWeekAction->setIconSet ( icon3 );
1543 1545
1544} 1546}
1545void MainWindow::updateWeekNum(const DateList &selectedDates) 1547void MainWindow::updateWeekNum(const DateList &selectedDates)
1546{ 1548{
1547 updateWeek( selectedDates.first() ); 1549 updateWeek( selectedDates.first() );
1548} 1550}
1549void MainWindow::processIncidenceSelection( Incidence *incidence ) 1551void MainWindow::processIncidenceSelection( Incidence *incidence )
1550{ 1552{
1551 1553
1552 if ( !incidence ) { 1554 if ( !incidence ) {
1553 enableIncidenceActions( false ); 1555 enableIncidenceActions( false );
1554 1556
1555 mNewSubTodoAction->setEnabled( false ); 1557 mNewSubTodoAction->setEnabled( false );
1556 setCaptionToDates(); 1558 setCaptionToDates();
1557 return; 1559 return;
1558 1560
1559 } 1561 }
1560 1562
1561 //KGlobal::locale()->formatDateTime(nextA, true); 1563 //KGlobal::locale()->formatDateTime(nextA, true);
1562 QString startString = ""; 1564 QString startString = "";
1563 if ( incidence->type() != "Todo" ) { 1565 if ( incidence->type() != "Todo" ) {
1564 if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { 1566 if ( incidence->dtStart().date() < incidence->dtEnd().date() ) {
1565 if ( incidence->doesFloat() ) { 1567 if ( incidence->doesFloat() ) {
1566 startString += ": "+incidence->dtStartDateStr( true ); 1568 startString += ": "+incidence->dtStartDateStr( true );
1567 startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); 1569 startString += " --- "+((Event*)incidence)->dtEndDateStr( true );
1568 1570
1569 } else { 1571 } else {
1570 startString = ": "+incidence->dtStartStr(true); 1572 startString = ": "+incidence->dtStartStr(true);
1571 startString += " --- "+((Event*)incidence)->dtEndStr(true); 1573 startString += " --- "+((Event*)incidence)->dtEndStr(true);
1572 1574
1573 } 1575 }
1574 1576
1575 } else { 1577 } else {
1576 if ( incidence->dtStart().time() != incidence->dtEnd().time() ) 1578 if ( incidence->dtStart().time() != incidence->dtEnd().time() )
1577 startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ 1579 startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+
1578 "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); 1580 "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time());
1579 if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { 1581 if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) {
1580 bool ok; 1582 bool ok;
1581 QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); 1583 QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok );
1582 if ( ok ) { 1584 if ( ok ) {
1583 int years = noc.date().year() - incidence->dtStart().date().year(); 1585 int years = noc.date().year() - incidence->dtStart().date().year();
1584 startString += i18n(" (%1 y.)"). arg( years ); 1586 startString += i18n(" (%1 y.)"). arg( years );
1585 } 1587 }
1586 } 1588 }
1587 else 1589 else
1588 startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); 1590 startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true);
1589 } 1591 }
1590 1592
1591 } 1593 }
1592 else 1594 else
1593 startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); 1595 startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed");
1594 if ( !incidence->location().isEmpty() ) 1596 if ( !incidence->location().isEmpty() )
1595 startString += " (" +incidence->location()+")"; 1597 startString += " (" +incidence->location()+")";
1596 setCaption( incidence->summary()+startString); 1598 setCaption( incidence->summary()+startString);
1597 1599
1598 enableIncidenceActions( true ); 1600 enableIncidenceActions( true );
1599 1601
1600 if ( incidence->type() == "Event" ) { 1602 if ( incidence->type() == "Event" ) {
1601 mShowAction->setText( i18n("Show Event...") ); 1603 mShowAction->setText( i18n("Show Event...") );
1602 mEditAction->setText( i18n("Edit Event...") ); 1604 mEditAction->setText( i18n("Edit Event...") );
1603 mDeleteAction->setText( i18n("Delete Event...") ); 1605 mDeleteAction->setText( i18n("Delete Event...") );
1604 1606
1605 mNewSubTodoAction->setEnabled( false ); 1607 mNewSubTodoAction->setEnabled( false );
1606 } else if ( incidence->type() == "Todo" ) { 1608 } else if ( incidence->type() == "Todo" ) {
1607 mShowAction->setText( i18n("Show Todo...") ); 1609 mShowAction->setText( i18n("Show Todo...") );
1608 mEditAction->setText( i18n("Edit Todo...") ); 1610 mEditAction->setText( i18n("Edit Todo...") );
1609 mDeleteAction->setText( i18n("Delete Todo...") ); 1611 mDeleteAction->setText( i18n("Delete Todo...") );
1610 1612
1611 mNewSubTodoAction->setEnabled( true ); 1613 mNewSubTodoAction->setEnabled( true );
1612 } else { 1614 } else {
1613 mShowAction->setText( i18n("Show...") ); 1615 mShowAction->setText( i18n("Show...") );
1614 mShowAction->setText( i18n("Edit...") ); 1616 mShowAction->setText( i18n("Edit...") );
1615 mShowAction->setText( i18n("Delete...") ); 1617 mShowAction->setText( i18n("Delete...") );
1616 1618
1617 mNewSubTodoAction->setEnabled( false ); 1619 mNewSubTodoAction->setEnabled( false );
1618 } 1620 }
1619} 1621}
1620 1622
1621void MainWindow::enableIncidenceActions( bool enabled ) 1623void MainWindow::enableIncidenceActions( bool enabled )
1622{ 1624{
1623 mShowAction->setEnabled( enabled ); 1625 mShowAction->setEnabled( enabled );
1624 mEditAction->setEnabled( enabled ); 1626 mEditAction->setEnabled( enabled );
1625 mDeleteAction->setEnabled( enabled ); 1627 mDeleteAction->setEnabled( enabled );
1626 1628
1627 mCloneAction->setEnabled( enabled ); 1629 mCloneAction->setEnabled( enabled );
1628 mMoveAction->setEnabled( enabled ); 1630 mMoveAction->setEnabled( enabled );
1629 mBeamAction->setEnabled( enabled ); 1631 mBeamAction->setEnabled( enabled );
1630 mCancelAction->setEnabled( enabled ); 1632 mCancelAction->setEnabled( enabled );
1631} 1633}
1632 1634
1633void MainWindow::importOL() 1635void MainWindow::importOL()
1634{ 1636{
1635#ifdef _OL_IMPORT_ 1637#ifdef _OL_IMPORT_
1636 KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); 1638 KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this );
1637 id->exec(); 1639 id->exec();
1638 delete id; 1640 delete id;
1639 mView->updateView(); 1641 mView->updateView();
1640#endif 1642#endif
1641} 1643}
1642void MainWindow::importBday() 1644void MainWindow::importBday()
1643{ 1645{
1644 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 1646 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
1645 i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), 1647 i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"),
1646 i18n("Import!"), i18n("Cancel"), 0, 1648 i18n("Import!"), i18n("Cancel"), 0,
1647 0, 1 ); 1649 0, 1 );
1648 if ( result == 0 ) { 1650 if ( result == 0 ) {
1649 mView->importBday(); 1651 mView->importBday();
1650 1652
1651 } 1653 }
1652 1654
1653 1655
1654} 1656}
1655void MainWindow::importQtopia() 1657void MainWindow::importQtopia()
1656{ 1658{
1657 //#ifndef DESKTOP_VERSION 1659 //#ifndef DESKTOP_VERSION
1658 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"); 1660 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");
1659#ifdef DESKTOP_VERSION 1661#ifdef DESKTOP_VERSION
1660 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"); 1662 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");
1661#endif 1663#endif
1662 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, 1664 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess,
1663 i18n("Import!"), i18n("Cancel"), 0, 1665 i18n("Import!"), i18n("Cancel"), 0,
1664 0, 1 ); 1666 0, 1 );
1665 if ( result == 0 ) { 1667 if ( result == 0 ) {
1666#ifndef DESKTOP_VERSION 1668#ifndef DESKTOP_VERSION
1667 QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); 1669 QString datebook = Global::applicationFileName( "datebook", "datebook.xml");
1668 QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); 1670 QString todolist = Global::applicationFileName( "todolist", "todolist.xml");
1669 QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; 1671 QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml";
1670#else 1672#else
1671 QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; 1673 QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml";
1672 QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; 1674 QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml";
1673 QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; 1675 QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml";
1674#endif 1676#endif
1675 mView->importQtopia( categories, datebook, todolist ); 1677 mView->importQtopia( categories, datebook, todolist );
1676 } 1678 }
1677#if 0 1679#if 0
1678 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 1680 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
1679 i18n("Not supported \non desktop!\n"), 1681 i18n("Not supported \non desktop!\n"),
1680 i18n("Ok"), i18n("Cancel"), 0, 1682 i18n("Ok"), i18n("Cancel"), 0,
1681 0, 1 ); 1683 0, 1 );
1682 1684
1683#endif 1685#endif
1684} 1686}
1685 1687
1686void MainWindow::saveOnClose() 1688void MainWindow::saveOnClose()
1687{ 1689{
1688 KOPrefs *p = KOPrefs::instance(); 1690 KOPrefs *p = KOPrefs::instance();
1689 p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); 1691 p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal );
1690 p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); 1692 p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal );
1691 p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); 1693 p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal );
1692 if ( filterToolBar ) { 1694 if ( filterToolBar ) {
1693 p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); 1695 p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal );
1694 } 1696 }
1695#ifdef DESKTOP_VERSION 1697#ifdef DESKTOP_VERSION
1696 1698
1697 QPoint myP; 1699 QPoint myP;
1698 myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); 1700 myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) );
1699 if ( p->mToolBarHor ) 1701 if ( p->mToolBarHor )
1700 p->mToolBarUp = myP.y() > height()/2; 1702 p->mToolBarUp = myP.y() > height()/2;
1701 else 1703 else
1702 p->mToolBarUp = myP.x() > width()/2; 1704 p->mToolBarUp = myP.x() > width()/2;
1703 myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); 1705 myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) );
1704 if ( p->mToolBarHorV ) 1706 if ( p->mToolBarHorV )
1705 p->mToolBarUpV = myP.y() > height()/2; 1707 p->mToolBarUpV = myP.y() > height()/2;
1706 else 1708 else
1707 p->mToolBarUpV = myP.x() > width()/2 ; 1709 p->mToolBarUpV = myP.x() > width()/2 ;
1708 myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); 1710 myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) );
1709 if ( p->mToolBarHorN ) 1711 if ( p->mToolBarHorN )
1710 p->mToolBarUpN = myP.y() > height()/2; 1712 p->mToolBarUpN = myP.y() > height()/2;
1711 else 1713 else
1712 p->mToolBarUpN = myP.x() > width()/2 ; 1714 p->mToolBarUpN = myP.x() > width()/2 ;
1713 if ( filterToolBar ) { 1715 if ( filterToolBar ) {
1714 myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); 1716 myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) );
1715 if ( p->mToolBarHorF ) 1717 if ( p->mToolBarHorF )
1716 p->mToolBarUpF = myP.y() > height()/2; 1718 p->mToolBarUpF = myP.y() > height()/2;
1717 else 1719 else
1718 p->mToolBarUpF = myP.x() > width()/2 ; 1720 p->mToolBarUpF = myP.x() > width()/2 ;
1719 } 1721 }
1720#else 1722#else
1721 if ( p->mToolBarHor ) 1723 if ( p->mToolBarHor )
1722 p->mToolBarUp = iconToolBar->y() > height()/2; 1724 p->mToolBarUp = iconToolBar->y() > height()/2;
1723 else 1725 else
1724 p->mToolBarUp = iconToolBar->x() > width()/2; 1726 p->mToolBarUp = iconToolBar->x() > width()/2;
1725 if ( p->mToolBarHorV ) 1727 if ( p->mToolBarHorV )
1726 p->mToolBarUpV = viewToolBar->y() > height()/2; 1728 p->mToolBarUpV = viewToolBar->y() > height()/2;
1727 else 1729 else
1728 p->mToolBarUpV = viewToolBar->x() > width()/2 ; 1730 p->mToolBarUpV = viewToolBar->x() > width()/2 ;
1729 1731
1730 if ( p->mToolBarHorN ) 1732 if ( p->mToolBarHorN )
1731 p->mToolBarUpN = navigatorToolBar->y() > height()/2; 1733 p->mToolBarUpN = navigatorToolBar->y() > height()/2;
1732 else 1734 else
1733 p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; 1735 p->mToolBarUpN = navigatorToolBar->x() > width()/2 ;
1734 if ( filterToolBar ) { 1736 if ( filterToolBar ) {
1735 if ( p->mToolBarHorF ) 1737 if ( p->mToolBarHorF )
1736 p->mToolBarUpF = filterToolBar->y() > height()/2; 1738 p->mToolBarUpF = filterToolBar->y() > height()/2;
1737 else 1739 else
1738 p->mToolBarUpF = filterToolBar->x() > width()/2 ; 1740 p->mToolBarUpF = filterToolBar->x() > width()/2 ;
1739 } 1741 }
1740#endif 1742#endif
1741 1743
1742 1744
1743 mView->writeSettings(); 1745 mView->writeSettings();
1744 if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) 1746 if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName()))
1745 save(); 1747 save();
1746} 1748}
1747void MainWindow::slotModifiedChanged( bool changed ) 1749void MainWindow::slotModifiedChanged( bool changed )
1748{ 1750{
1749 if ( mBlockAtStartup ) 1751 if ( mBlockAtStartup )
1750 return; 1752 return;
1751 1753
1752 int msec; 1754 int msec;
1753 // we store the changes after 1 minute, 1755 // we store the changes after 1 minute,
1754 // and for safety reasons after 10 minutes again 1756 // and for safety reasons after 10 minutes again
1755 if ( !mSyncManager->blockSave() ) 1757 if ( !mSyncManager->blockSave() )
1756 msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; 1758 msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000;
1757 else 1759 else
1758 msec = 1000 * 600; 1760 msec = 1000 * 600;
1759 mSaveTimer.start( msec, true ); // 1 minute 1761 mSaveTimer.start( msec, true ); // 1 minute
1760 qDebug("KO: Saving File in %d secs!", msec/1000); 1762 qDebug("KO: Saving File in %d secs!", msec/1000);
1761 mCalendarModifiedFlag = true; 1763 mCalendarModifiedFlag = true;
1762} 1764}
1763void MainWindow::saveStopTimer() 1765void MainWindow::saveStopTimer()
1764{ 1766{
1765 mSaveTimer.stop(); 1767 mSaveTimer.stop();
1766 if (mSaveTimer.isActive() ) 1768 if (mSaveTimer.isActive() )
1767 qDebug("ti active "); 1769 qDebug("ti active ");
1768 else 1770 else
1769 qDebug("KO: Save timer stopped"); 1771 qDebug("KO: Save timer stopped");
1770} 1772}
1771void MainWindow::save() 1773void MainWindow::save()
1772{ 1774{
1773 if ( !mCalendarModifiedFlag ) { 1775 if ( !mCalendarModifiedFlag ) {
1774 qDebug("KO: Calendar not modified. Nothing saved."); 1776 qDebug("KO: Calendar not modified. Nothing saved.");
1775 return; 1777 return;
1776 } 1778 }
1777 if ( mSyncManager->blockSave() ) 1779 if ( mSyncManager->blockSave() )
1778 return; 1780 return;
1779 mSyncManager->setBlockSave(true); 1781 mSyncManager->setBlockSave(true);
1780 if ( mView->checkFileVersion( defaultFileName()) ) { 1782 if ( mView->checkFileVersion( defaultFileName()) ) {
1781 QTime neededSaveTime = QDateTime::currentDateTime().time(); 1783 QTime neededSaveTime = QDateTime::currentDateTime().time();
1782 setCaption(i18n("KO/Pi:Saving Data to File ..." )); 1784 setCaption(i18n("KO/Pi:Saving Data to File ..." ));
1783 qDebug("KO: Start saving data to file!"); 1785 qDebug("KO: Start saving data to file!");
1784 mView->saveCalendar( defaultFileName() ); 1786 mView->saveCalendar( defaultFileName() );
1785 mCalendarModifiedFlag = false; 1787 mCalendarModifiedFlag = false;
1786 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); 1788 int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() );
1787 qDebug("KO: Needed %d ms for saving.",msNeeded ); 1789 qDebug("KO: Needed %d ms for saving.",msNeeded );
1788 QString savemes; 1790 QString savemes;
1789 savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); 1791 savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 );
1790 setCaption(savemes); 1792 setCaption(savemes);
1791 } else 1793 } else
1792 setCaption(i18n("Saving cancelled!")); 1794 setCaption(i18n("Saving cancelled!"));
1793 mSyncManager->setBlockSave( false ); 1795 mSyncManager->setBlockSave( false );
1794} 1796}
1795 1797
1796void MainWindow::keyReleaseEvent ( QKeyEvent * e) 1798void MainWindow::keyReleaseEvent ( QKeyEvent * e)
1797{ 1799{
1798 if ( !e->isAutoRepeat() ) { 1800 if ( !e->isAutoRepeat() ) {
1799 mFlagKeyPressed = false; 1801 mFlagKeyPressed = false;
1800 } 1802 }
1801} 1803}
1802void MainWindow::keyPressEvent ( QKeyEvent * e ) 1804void MainWindow::keyPressEvent ( QKeyEvent * e )
1803{ 1805{
1804 qApp->processEvents(); 1806 qApp->processEvents();
1805 if ( e->isAutoRepeat() && !mFlagKeyPressed ) { 1807 if ( e->isAutoRepeat() && !mFlagKeyPressed ) {
1806 e->ignore(); 1808 e->ignore();
1807 // qDebug(" ignore %d",e->isAutoRepeat() ); 1809 // qDebug(" ignore %d",e->isAutoRepeat() );
1808 return; 1810 return;
1809 } 1811 }
1810 if (! e->isAutoRepeat() ) 1812 if (! e->isAutoRepeat() )
1811 mFlagKeyPressed = true; 1813 mFlagKeyPressed = true;
1812 KOPrefs *p = KOPrefs::instance(); 1814 KOPrefs *p = KOPrefs::instance();
1813 bool showSelectedDates = false; 1815 bool showSelectedDates = false;
1814 int size; 1816 int size;
1815 int pro = 0; 1817 int pro = 0;
1816 //qDebug("MainWindow::keyPressEvent "); 1818 //qDebug("MainWindow::keyPressEvent ");
1817 switch ( e->key() ) { 1819 switch ( e->key() ) {
1818 case Qt::Key_Right: 1820 case Qt::Key_Right:
1819 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) 1821 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton)
1820 mView->goNextMonth(); 1822 mView->goNextMonth();
1821 else 1823 else
1822 mView->goNext(); 1824 mView->goNext();
1823 showSelectedDates = true; 1825 showSelectedDates = true;
1824 break; 1826 break;
1825 case Qt::Key_Left: 1827 case Qt::Key_Left:
1826 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 1828 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
1827 mView->goPreviousMonth(); 1829 mView->goPreviousMonth();
1828 else 1830 else
1829 mView->goPrevious(); 1831 mView->goPrevious();
1830 showSelectedDates = true; 1832 showSelectedDates = true;
1831 break; 1833 break;
1832 case Qt::Key_Down: 1834 case Qt::Key_Down:
1833 mView->viewManager()->agendaView()->scrollOneHourDown(); 1835 mView->viewManager()->agendaView()->scrollOneHourDown();
1834 break; 1836 break;
1835 case Qt::Key_Up: 1837 case Qt::Key_Up:
1836 mView->viewManager()->agendaView()->scrollOneHourUp(); 1838 mView->viewManager()->agendaView()->scrollOneHourUp();
1837 break; 1839 break;
1838 case Qt::Key_K: 1840 case Qt::Key_K:
1839 mView->viewManager()->showMonthViewWeek(); 1841 mView->viewManager()->showMonthViewWeek();
1840 break; 1842 break;
1841 case Qt::Key_I: 1843 case Qt::Key_I:
1842 mView->showIncidence(); 1844 mView->showIncidence();
1843 break; 1845 break;
1844 case Qt::Key_Delete: 1846 case Qt::Key_Delete:
1845 case Qt::Key_Backspace: 1847 case Qt::Key_Backspace:
1846 mView->deleteIncidence(); 1848 mView->deleteIncidence();
1847 break; 1849 break;
1848 case Qt::Key_D: 1850 case Qt::Key_D:
1849 mView->viewManager()->showDayView(); 1851 mView->viewManager()->showDayView();
1850 showSelectedDates = true; 1852 showSelectedDates = true;
1851 break; 1853 break;
1852 case Qt::Key_O: 1854 case Qt::Key_O:
1853 mView->toggleFilerEnabled( ); 1855 mView->toggleFilerEnabled( );
1854 break; 1856 break;
1855 case Qt::Key_0: 1857 case Qt::Key_0:
1856 case Qt::Key_1: 1858 case Qt::Key_1:
1857 case Qt::Key_2: 1859 case Qt::Key_2:
1858 case Qt::Key_3: 1860 case Qt::Key_3:
1859 case Qt::Key_4: 1861 case Qt::Key_4:
1860 case Qt::Key_5: 1862 case Qt::Key_5:
1861 case Qt::Key_6: 1863 case Qt::Key_6:
1862 case Qt::Key_7: 1864 case Qt::Key_7:
1863 case Qt::Key_8: 1865 case Qt::Key_8:
1864 case Qt::Key_9: 1866 case Qt::Key_9:
1865 pro = e->key()-48; 1867 pro = e->key()-48;
1866 if ( pro == 0 ) 1868 if ( pro == 0 )
1867 pro = 10; 1869 pro = 10;
1868 if ( e->state() == Qt::ControlButton) 1870 if ( e->state() == Qt::ControlButton)
1869 pro += 10; 1871 pro += 10;
1870 break; 1872 break;
1871 case Qt::Key_M: 1873 case Qt::Key_M:
1872 mView->viewManager()->showMonthView(); 1874 mView->viewManager()->showMonthView();
1873 showSelectedDates = true; 1875 showSelectedDates = true;
1874 break; 1876 break;
1875 case Qt::Key_Insert: 1877 case Qt::Key_Insert:
1876 mView->newEvent(); 1878 mView->newEvent();
1877 break; 1879 break;
1878 case Qt::Key_S : 1880 case Qt::Key_S :
1879 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) 1881 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton)
1880 mView->newSubTodo(); 1882 mView->newSubTodo();
1881 else 1883 else
1882 mView->dialogManager()->showSearchDialog(); 1884 mView->dialogManager()->showSearchDialog();
1883 break; 1885 break;
1884 case Qt::Key_Y : 1886 case Qt::Key_Y :
1885 case Qt::Key_Z : 1887 case Qt::Key_Z :
1886 mView->viewManager()->showWorkWeekView(); 1888 mView->viewManager()->showWorkWeekView();
1887 showSelectedDates = true; 1889 showSelectedDates = true;
1888 break; 1890 break;
1889 case Qt::Key_U : 1891 case Qt::Key_U :
1890 mView->viewManager()->showWeekView(); 1892 mView->viewManager()->showWeekView();
1891 showSelectedDates = true; 1893 showSelectedDates = true;
1892 break; 1894 break;
1893 case Qt::Key_H : 1895 case Qt::Key_H :
1894 keyBindings(); 1896 keyBindings();
1895 break; 1897 break;
1896 case Qt::Key_W: 1898 case Qt::Key_W:
1897 mView->viewManager()->showWhatsNextView(); 1899 mView->viewManager()->showWhatsNextView();
1898 break; 1900 break;
1899 case Qt::Key_L: 1901 case Qt::Key_L:
1900 mView->viewManager()->showListView(); 1902 mView->viewManager()->showListView();
1901 break; 1903 break;
1902 case Qt::Key_N: 1904 case Qt::Key_N:
1903 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) 1905 mView->viewManager()->showNextView();
1904 mView->viewManager()->showNextView();
1905 else {
1906 mView->viewManager()->showNextXView();
1907 showSelectedDates = true;
1908 }
1909 break; 1906 break;
1910 case Qt::Key_V: 1907 case Qt::Key_V:
1911 mView->viewManager()->showTodoView(); 1908 mView->viewManager()->showTodoView();
1912 break; 1909 break;
1913 case Qt::Key_C: 1910 case Qt::Key_C:
1914 mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); 1911 mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() );
1915 break; 1912 break;
1916 case Qt::Key_P: 1913 case Qt::Key_P:
1917 mView->showDatePicker( ); 1914 mView->showDatePicker( );
1918 break; 1915 break;
1919 case Qt::Key_F: 1916 case Qt::Key_F:
1920 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 1917 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
1921 mView->editFilters(); 1918 mView->editFilters();
1922 else 1919 else
1923 mView->toggleFilter(); 1920 mView->toggleFilter();
1924 break; 1921 break;
1925 case Qt::Key_X: 1922 case Qt::Key_X:
1926 mView->toggleDateNavigatorWidget(); 1923 if ( e->state() == Qt::ControlButton )
1924 mView->toggleDateNavigatorWidget();
1925 else {
1926 mView->viewManager()->showNextXView();
1927 showSelectedDates = true;
1928 }
1927 break; 1929 break;
1928 case Qt::Key_Space: 1930 case Qt::Key_Space:
1929 mView->toggleExpand(); 1931 mView->toggleExpand();
1930 break; 1932 break;
1931 case Qt::Key_A: 1933 case Qt::Key_A:
1932 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) 1934 if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton )
1933 mView->showNextAlarms(); 1935 mView->showNextAlarms();
1934 else 1936 else
1935 mView->toggleAllDaySize(); 1937 mView->toggleAllDaySize();
1936 break; 1938 break;
1937 case Qt::Key_T: 1939 case Qt::Key_T:
1938 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 1940 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
1939 mView->newTodo(); 1941 mView->newTodo();
1940 else { 1942 else {
1941 mView->goToday(); 1943 mView->goToday();
1942 showSelectedDates = true; 1944 showSelectedDates = true;
1943 } 1945 }
1944 break; 1946 break;
1945 case Qt::Key_J: 1947 case Qt::Key_J:
1946 mView->viewManager()->showJournalView(); 1948 mView->viewManager()->showJournalView();
1947 break; 1949 break;
1948 case Qt::Key_B: 1950 case Qt::Key_B:
1949 mView->editIncidenceDescription();; 1951 mView->editIncidenceDescription();;
1950 break; 1952 break;
1951 // case Qt::Key_Return: 1953 // case Qt::Key_Return:
1952 case Qt::Key_E: 1954 case Qt::Key_E:
1953 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) 1955 if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton )
1954 mView->newEvent(); 1956 mView->newEvent();
1955 else 1957 else
1956 mView->editIncidence(); 1958 mView->editIncidence();
1957 break; 1959 break;
1958 case Qt::Key_Plus: 1960 case Qt::Key_Plus:
1959 size = p->mHourSize +2; 1961 size = p->mHourSize +2;
1960 if ( size <= 22 ) 1962 if ( size <= 22 )
1961 configureAgenda( size ); 1963 configureAgenda( size );
1962 break; 1964 break;
1963 case Qt::Key_Minus: 1965 case Qt::Key_Minus:
1964 size = p->mHourSize - 2; 1966 size = p->mHourSize - 2;
1965 if ( size >= 4 ) 1967 if ( size >= 4 )
1966 configureAgenda( size ); 1968 configureAgenda( size );
1967 break; 1969 break;
1968 1970
1969 1971
1970 default: 1972 default:
1971 e->ignore(); 1973 e->ignore();
1972 } 1974 }
1973 if ( pro > 0 ) { 1975 if ( pro > 0 ) {
1974 mView->selectFilter( pro-1 ); 1976 mView->selectFilter( pro-1 );
1975 } 1977 }
1976 if ( showSelectedDates ) { 1978 if ( showSelectedDates ) {
1977 ;// setCaptionToDates(); 1979 ;// setCaptionToDates();
1978 } 1980 }
1979 1981
1980} 1982}
1981void MainWindow::fillFilterMenuTB() 1983void MainWindow::fillFilterMenuTB()
1982{ 1984{
1983 selectFilterMenuTB->clear(); 1985 selectFilterMenuTB->clear();
1984 selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); 1986 selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 );
1985 selectFilterMenuTB->insertSeparator(); 1987 selectFilterMenuTB->insertSeparator();
1986 selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); 1988 selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 );
1987 1989
1988 selectFilterMenuTB->insertSeparator(); 1990 selectFilterMenuTB->insertSeparator();
1989 QPtrList<CalFilter> fili = mView->filters(); 1991 QPtrList<CalFilter> fili = mView->filters();
1990 CalFilter *curfilter = mView->filterView()->selectedFilter(); 1992 CalFilter *curfilter = mView->filterView()->selectedFilter();
1991 CalFilter *filter = fili.first(); 1993 CalFilter *filter = fili.first();
1992 int iii = 2; 1994 int iii = 2;
1993 bool checkitem = mView->filterView()->filtersEnabled(); 1995 bool checkitem = mView->filterView()->filtersEnabled();
1994 while(filter) { 1996 while(filter) {
1995 selectFilterMenuTB->insertItem( filter->name(), iii ); 1997 selectFilterMenuTB->insertItem( filter->name(), iii );
1996 if ( filter == curfilter) 1998 if ( filter == curfilter)
1997 selectFilterMenuTB->setItemChecked( iii, checkitem ); 1999 selectFilterMenuTB->setItemChecked( iii, checkitem );
1998 filter = fili.next(); 2000 filter = fili.next();
1999 ++iii; 2001 ++iii;
2000 } 2002 }
2001 if ( !checkitem ) 2003 if ( !checkitem )
2002 selectFilterMenuTB->setItemChecked( 1, true ); 2004 selectFilterMenuTB->setItemChecked( 1, true );
2003 2005
2004 int x = 0; 2006 int x = 0;
2005 int y = iconToolBar->height(); 2007 int y = iconToolBar->height();
2006 int dX = 0; 2008 int dX = 0;
2007 int dY = 0; 2009 int dY = 0;
2008 if ( iconToolBar->orientation () == Qt:: Horizontal ) { 2010 if ( iconToolBar->orientation () == Qt:: Horizontal ) {
2009 if ( iconToolBar->y() > height()/2 ) { 2011 if ( iconToolBar->y() > height()/2 ) {
2010 dY = selectFilterMenuTB->sizeHint().height()+8; 2012 dY = selectFilterMenuTB->sizeHint().height()+8;
2011 y = 0; 2013 y = 0;
2012 } 2014 }
2013 } else { 2015 } else {
2014 if ( iconToolBar->x() > width()/2 ) { // right side 2016 if ( iconToolBar->x() > width()/2 ) { // right side
2015 x=0; 2017 x=0;
2016 dX= selectFilterMenuTB->sizeHint().width()+8; 2018 dX= selectFilterMenuTB->sizeHint().width()+8;
2017 y = 0; 2019 y = 0;
2018 } else { 2020 } else {
2019 x= iconToolBar->width(); 2021 x= iconToolBar->width();
2020 y = 0; 2022 y = 0;
2021 } 2023 }
2022 } 2024 }
2023 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); 2025 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
2024 selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); 2026 selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)));
2025} 2027}
2026void MainWindow::fillFilterMenu() 2028void MainWindow::fillFilterMenu()
2027{ 2029{
2028 selectFilterMenu->clear(); 2030 selectFilterMenu->clear();
2029 selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); 2031 selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 );
2030 selectFilterMenu->insertSeparator(); 2032 selectFilterMenu->insertSeparator();
2031 selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); 2033 selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 );
2032 2034
2033 selectFilterMenu->insertSeparator(); 2035 selectFilterMenu->insertSeparator();
2034 QPtrList<CalFilter> fili = mView->filters(); 2036 QPtrList<CalFilter> fili = mView->filters();
2035 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2037 CalFilter *curfilter = mView->filterView()->selectedFilter();
2036 CalFilter *filter = fili.first(); 2038 CalFilter *filter = fili.first();
2037 int iii = 2; 2039 int iii = 2;
2038 bool checkitem = mView->filterView()->filtersEnabled(); 2040 bool checkitem = mView->filterView()->filtersEnabled();
2039 while(filter) { 2041 while(filter) {
2040 selectFilterMenu->insertItem( filter->name(), iii ); 2042 selectFilterMenu->insertItem( filter->name(), iii );
2041 if ( filter == curfilter) 2043 if ( filter == curfilter)
2042 selectFilterMenu->setItemChecked( iii, checkitem ); 2044 selectFilterMenu->setItemChecked( iii, checkitem );
2043 filter = fili.next(); 2045 filter = fili.next();
2044 ++iii; 2046 ++iii;
2045 } 2047 }
2046 if ( !checkitem ) 2048 if ( !checkitem )
2047 selectFilterMenu->setItemChecked( 1, true ); 2049 selectFilterMenu->setItemChecked( 1, true );
2048} 2050}
2049void MainWindow::fillFilterMenuPopup() 2051void MainWindow::fillFilterMenuPopup()
2050{ 2052{
2051 filterPopupMenu->clear(); 2053 filterPopupMenu->clear();
2052 filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); 2054 filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 );
2053 2055
2054 filterPopupMenu->insertSeparator(); 2056 filterPopupMenu->insertSeparator();
2055 QPtrList<CalFilter> fili = mView->filters(); 2057 QPtrList<CalFilter> fili = mView->filters();
2056 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2058 CalFilter *curfilter = mView->filterView()->selectedFilter();
2057 CalFilter *filter = fili.first(); 2059 CalFilter *filter = fili.first();
2058 int iii = 1; 2060 int iii = 1;
2059 bool checkitem = mView->filterView()->filtersEnabled(); 2061 bool checkitem = mView->filterView()->filtersEnabled();
2060 while(filter) { 2062 while(filter) {
2061 filterPopupMenu->insertItem( filter->name(), iii ); 2063 filterPopupMenu->insertItem( filter->name(), iii );
2062 if ( filter == curfilter) 2064 if ( filter == curfilter)
2063 filterPopupMenu->setItemChecked( iii, checkitem ); 2065 filterPopupMenu->setItemChecked( iii, checkitem );
2064 filter = fili.next(); 2066 filter = fili.next();
2065 ++iii; 2067 ++iii;
2066 } 2068 }
2067 if ( !checkitem ) 2069 if ( !checkitem )
2068 filterPopupMenu->setItemChecked( 0, true ); 2070 filterPopupMenu->setItemChecked( 0, true );
2069} 2071}
2070void MainWindow::selectFilter( int fil ) 2072void MainWindow::selectFilter( int fil )
2071{ 2073{
2072 2074
2073 if ( fil == 0 ) { 2075 if ( fil == 0 ) {
2074 mView->editFilters( ); 2076 mView->editFilters( );
2075 } else if ( fil == 1 ){ 2077 } else if ( fil == 1 ){
2076 if ( mView->filterView()->filtersEnabled() ) 2078 if ( mView->filterView()->filtersEnabled() )
2077 mView->toggleFilerEnabled( ); 2079 mView->toggleFilerEnabled( );
2078 } else { 2080 } else {
2079 if ( !mView->filterView()->filtersEnabled() ) { 2081 if ( !mView->filterView()->filtersEnabled() ) {
2080 mView->filterView()->blockSignals( true ); 2082 mView->filterView()->blockSignals( true );
2081 mView->toggleFilerEnabled( ); 2083 mView->toggleFilerEnabled( );
2082 mView->filterView()->blockSignals( false ); 2084 mView->filterView()->blockSignals( false );
2083 } 2085 }
2084 mView->selectFilter( fil-2 ); 2086 mView->selectFilter( fil-2 );
2085 } 2087 }
2086} 2088}
2087void MainWindow::updateFilterToolbar() 2089void MainWindow::updateFilterToolbar()
2088{ 2090{
2089 if ( filterMenubar ) { 2091 if ( filterMenubar ) {
2090 if ( !mView->filterView()->filtersEnabled() ) { 2092 if ( !mView->filterView()->filtersEnabled() ) {
2091 filterMenubar->changeItem( 0, i18n("No Filter") ); 2093 filterMenubar->changeItem( 0, i18n("No Filter") );
2092 } else { 2094 } else {
2093 CalFilter *curfilter = mView->filterView()->selectedFilter(); 2095 CalFilter *curfilter = mView->filterView()->selectedFilter();
2094 if ( curfilter ) { 2096 if ( curfilter ) {
2095 filterMenubar->changeItem( 0, curfilter->name() ); 2097 filterMenubar->changeItem( 0, curfilter->name() );
2096 } 2098 }
2097 } 2099 }
2098 } 2100 }
2099} 2101}
2100void MainWindow::selectFilterPopup( int fil ) 2102void MainWindow::selectFilterPopup( int fil )
2101{ 2103{
2102 selectFilter( fil + 1 ); 2104 selectFilter( fil + 1 );
2103 2105
2104} 2106}
2105void MainWindow::configureToolBar( int item ) 2107void MainWindow::configureToolBar( int item )
2106{ 2108{
2107 2109
2108 configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); 2110 configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) );
2109 KOPrefs *p = KOPrefs::instance(); 2111 KOPrefs *p = KOPrefs::instance();
2110 p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); 2112 p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 );
2111 p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); 2113 p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 );
2112 p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); 2114 p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 );
2113 p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); 2115 p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 );
2114 p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); 2116 p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 );
2115 p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); 2117 p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 );
2116 p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); 2118 p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 );
2117 p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); 2119 p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 );
2118 p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); 2120 p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 );
2119 p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); 2121 p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 );
2120 p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); 2122 p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 );
2121 p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); 2123 p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 );
2122 p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); 2124 p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 );
2123 p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); 2125 p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 );
2124 p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); 2126 p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 );
2125 p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); 2127 p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 );
2126 p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); 2128 p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 );
2127 p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); 2129 p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 );
2128 p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); 2130 p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 );
2129 p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); 2131 p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 );
2130 p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); 2132 p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 );
2131 p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); 2133 p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 );
2132 p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); 2134 p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 );
2133 p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); 2135 p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 );
2134 p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); 2136 p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 );
2135 p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); 2137 p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 );
2136 p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); 2138 p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 );
2137 // initActions(); 2139 // initActions();
2138} 2140}
2139void MainWindow::setCaption ( const QString & c ) 2141void MainWindow::setCaption ( const QString & c )
2140{ 2142{
2141 QString cap = c; 2143 QString cap = c;
2142 cap.replace( QRegExp("\n"), " " ); 2144 cap.replace( QRegExp("\n"), " " );
2143 cap = cap.stripWhiteSpace(); 2145 cap = cap.stripWhiteSpace();
2144 if ( cap.isEmpty() ) 2146 if ( cap.isEmpty() )
2145 cap = "KO/Pi"; 2147 cap = "KO/Pi";
2146 QWidget::setCaption( cap ); 2148 QWidget::setCaption( cap );
2147} 2149}
2148void MainWindow::setCaptionToDates() 2150void MainWindow::setCaptionToDates()
2149{ 2151{
2150 QString selDates; 2152 QString selDates;
2151 QDate date = mView->startDate(); 2153 QDate date = mView->startDate();
2152 if ( ! date.isValid() ) { 2154 if ( ! date.isValid() ) {
2153 setCaption(""); 2155 setCaption("");
2154 return; 2156 return;
2155 } 2157 }
2156 selDates = KGlobal::locale()->formatDate( date, true); 2158 selDates = KGlobal::locale()->formatDate( date, true);
2157 if (mView->startDate() < mView->endDate() ) 2159 if (mView->startDate() < mView->endDate() )
2158 selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); 2160 selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true);
2159 else { 2161 else {
2160 QString addString; 2162 QString addString;
2161 if ( date == QDateTime::currentDateTime().date() ) 2163 if ( date == QDateTime::currentDateTime().date() )
2162 addString = i18n("Today"); 2164 addString = i18n("Today");
2163 else if ( date == QDateTime::currentDateTime().date().addDays(1) ) 2165 else if ( date == QDateTime::currentDateTime().date().addDays(1) )
2164 addString = i18n("Tomorrow"); 2166 addString = i18n("Tomorrow");
2165 if ( !addString.isEmpty() ) 2167 if ( !addString.isEmpty() )
2166 selDates = addString+", "+selDates ; 2168 selDates = addString+", "+selDates ;
2167 } 2169 }
2168 setCaption( i18n("Dates: ") + selDates ); 2170 setCaption( i18n("Dates: ") + selDates );
2169 2171
2170} 2172}
2171void MainWindow::showConfigureAgenda( ) 2173void MainWindow::showConfigureAgenda( )
2172{ 2174{
2173 int iii; 2175 int iii;
2174 for ( iii = 1;iii<= 10 ;++iii ){ 2176 for ( iii = 1;iii<= 10 ;++iii ){
2175 configureAgendaMenu->setItemChecked( (iii+1)*2, false ); 2177 configureAgendaMenu->setItemChecked( (iii+1)*2, false );
2176 } 2178 }
2177 configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); 2179 configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true );
2178} 2180}
2179void MainWindow::configureAgenda( int item ) 2181void MainWindow::configureAgenda( int item )
2180{ 2182{
2181 if ( KOPrefs::instance()->mHourSize == item ) 2183 if ( KOPrefs::instance()->mHourSize == item )
2182 return; 2184 return;
2183 KOPrefs::instance()->mHourSize=item; 2185 KOPrefs::instance()->mHourSize=item;
2184 mView->viewManager()->agendaView()->updateConfig(); 2186 mView->viewManager()->agendaView()->updateConfig();
2185} 2187}
2186 2188
2187void MainWindow::saveCalendar() 2189void MainWindow::saveCalendar()
2188{ 2190{
2189 QString fn = KOPrefs::instance()->mLastSaveFile; 2191 QString fn = KOPrefs::instance()->mLastSaveFile;
2190 fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); 2192 fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this );
2191 2193
2192 if ( fn == "" ) 2194 if ( fn == "" )
2193 return; 2195 return;
2194 QFileInfo info; 2196 QFileInfo info;
2195 info.setFile( fn ); 2197 info.setFile( fn );
2196 QString mes; 2198 QString mes;
2197 bool createbup = true; 2199 bool createbup = true;
2198 if ( info. exists() ) { 2200 if ( info. exists() ) {
2199 mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ; 2201 mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ;
2200 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, 2202 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes,
2201 i18n("Overwrite!"), i18n("Cancel"), 0, 2203 i18n("Overwrite!"), i18n("Cancel"), 0,
2202 0, 1 ); 2204 0, 1 );
2203 if ( result != 0 ) { 2205 if ( result != 0 ) {
2204 createbup = false; 2206 createbup = false;
2205 } 2207 }
2206 } 2208 }
2207 if ( createbup ) { 2209 if ( createbup ) {
2208 mView->saveCalendar( fn ); 2210 mView->saveCalendar( fn );
2209 mes = i18n("KO/Pi:Saved %1").arg(fn); 2211 mes = i18n("KO/Pi:Saved %1").arg(fn);
2210 KOPrefs::instance()->mLastSaveFile = fn; 2212 KOPrefs::instance()->mLastSaveFile = fn;
2211 setCaption(mes); 2213 setCaption(mes);
2212 } 2214 }
2213} 2215}
2214void MainWindow::loadCalendar() 2216void MainWindow::loadCalendar()
2215{ 2217{
2216 2218
2217 QString fn = KOPrefs::instance()->mLastLoadFile; 2219 QString fn = KOPrefs::instance()->mLastLoadFile;
2218 fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); 2220 fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this );
2219 2221
2220 if ( fn == "" ) 2222 if ( fn == "" )
2221 return; 2223 return;
2222 QFileInfo info; 2224 QFileInfo info;
2223 info.setFile( fn ); 2225 info.setFile( fn );
2224 QString mess; 2226 QString mess;
2225 bool loadbup = true; 2227 bool loadbup = true;
2226 if ( info. exists() ) { 2228 if ( info. exists() ) {
2227 mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); 2229 mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false ));
2228 int result = QMessageBox::warning( this, "KO/Pi: Warning!", 2230 int result = QMessageBox::warning( this, "KO/Pi: Warning!",
2229 mess, 2231 mess,
2230 i18n("Load!"), i18n("Cancel"), 0, 2232 i18n("Load!"), i18n("Cancel"), 0,
2231 0, 1 ); 2233 0, 1 );
2232 if ( result != 0 ) { 2234 if ( result != 0 ) {
2233 loadbup = false; 2235 loadbup = false;
2234 } 2236 }
2235 } else { 2237 } else {
2236 QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 2238 QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
2237 i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, 2239 i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0,
2238 0, 1 ); 2240 0, 1 );
2239 2241
2240 return; 2242 return;
2241 } 2243 }
2242 if ( loadbup ) { 2244 if ( loadbup ) {
2243 mView->openCalendar( fn ); 2245 mView->openCalendar( fn );
2244 KOPrefs::instance()->mLastLoadFile = fn; 2246 KOPrefs::instance()->mLastLoadFile = fn;
2245 mess = i18n("KO/Pi:Loaded %1").arg(fn) ; 2247 mess = i18n("KO/Pi:Loaded %1").arg(fn) ;
2246 setCaption(mess); 2248 setCaption(mess);
2247 } 2249 }
2248 2250
2249} 2251}
2250void MainWindow::quickImportIcal() 2252void MainWindow::quickImportIcal()
2251{ 2253{
2252 importFile( KOPrefs::instance()->mLastImportFile, false ); 2254 importFile( KOPrefs::instance()->mLastImportFile, false );
2253} 2255}
2254void MainWindow::importFile( QString fn, bool quick ) 2256void MainWindow::importFile( QString fn, bool quick )
2255{ 2257{
2256 QFileInfo info; 2258 QFileInfo info;
2257 info.setFile( fn ); 2259 info.setFile( fn );
2258 QString mess; 2260 QString mess;
2259 bool loadbup = true; 2261 bool loadbup = true;
2260 if ( !info. exists() ) { 2262 if ( !info. exists() ) {
2261 mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); 2263 mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30));
2262 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), 2264 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),
2263 mess ); 2265 mess );
2264 return; 2266 return;
2265 } 2267 }
2266 int result = 0; 2268 int result = 0;
2267 if ( !quick ) { 2269 if ( !quick ) {
2268 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 )); 2270 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 ));
2269 result = QMessageBox::warning( this, "KO/Pi: Warning!", 2271 result = QMessageBox::warning( this, "KO/Pi: Warning!",
2270 mess, 2272 mess,
2271 "Import", "Cancel", 0, 2273 "Import", "Cancel", 0,
2272 0, 1 ); 2274 0, 1 );
2273 } 2275 }
2274 if ( result == 0 ) { 2276 if ( result == 0 ) {
2275 if ( mView->openCalendar( fn, true )) { 2277 if ( mView->openCalendar( fn, true )) {
2276 KOPrefs::instance()->mLastImportFile = fn; 2278 KOPrefs::instance()->mLastImportFile = fn;
2277 setCaption(i18n("Imported file successfully")); 2279 setCaption(i18n("Imported file successfully"));
2278 } else { 2280 } else {
2279 setCaption(i18n("Error importing file")); 2281 setCaption(i18n("Error importing file"));
2280 } 2282 }
2281 } 2283 }
2282} 2284}
2283 2285
2284void MainWindow::importIcal() 2286void MainWindow::importIcal()
2285{ 2287{
2286 2288
2287 QString fn =KOPrefs::instance()->mLastImportFile; 2289 QString fn =KOPrefs::instance()->mLastImportFile;
2288 2290
2289 fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); 2291 fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this );
2290 if ( fn == "" ) 2292 if ( fn == "" )
2291 return; 2293 return;
2292 importFile( fn, true ); 2294 importFile( fn, true );
2293 2295
2294} 2296}
2295 2297
2296void MainWindow::exportVCalendar() 2298void MainWindow::exportVCalendar()
2297{ 2299{
2298 QString fn = KOPrefs::instance()->mLastVcalFile; 2300 QString fn = KOPrefs::instance()->mLastVcalFile;
2299 fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); 2301 fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this );
2300 if ( fn == "" ) 2302 if ( fn == "" )
2301 return; 2303 return;
2302 QFileInfo info; 2304 QFileInfo info;
2303 info.setFile( fn ); 2305 info.setFile( fn );
2304 QString mes; 2306 QString mes;
2305 bool createbup = true; 2307 bool createbup = true;
2306 if ( info. exists() ) { 2308 if ( info. exists() ) {
2307 mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); 2309 mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) );
2308 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, 2310 int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes,
2309 i18n("Overwrite!"), i18n("Cancel"), 0, 2311 i18n("Overwrite!"), i18n("Cancel"), 0,
2310 0, 1 ); 2312 0, 1 );
2311 if ( result != 0 ) { 2313 if ( result != 0 ) {
2312 createbup = false; 2314 createbup = false;
2313 } 2315 }
2314 } 2316 }
2315 if ( createbup ) { 2317 if ( createbup ) {
2316 if ( mView->exportVCalendar( fn ) ) { 2318 if ( mView->exportVCalendar( fn ) ) {
2317 KOPrefs::instance()->mLastVcalFile = fn; 2319 KOPrefs::instance()->mLastVcalFile = fn;
2318 if ( fn.length() > 20 ) 2320 if ( fn.length() > 20 )
2319 mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; 2321 mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ;
2320 else 2322 else
2321 mes = i18n("KO/Pi:Exported to %1").arg(fn ); 2323 mes = i18n("KO/Pi:Exported to %1").arg(fn );
2322 setCaption(mes); 2324 setCaption(mes);
2323 } 2325 }
2324 } 2326 }
2325 2327
2326} 2328}
2327QString MainWindow::sentSyncFile() 2329QString MainWindow::sentSyncFile()
2328{ 2330{
2329#ifdef DESKTOP_VERSION 2331#ifdef DESKTOP_VERSION
2330 return locateLocal( "tmp", "copysynccal.ics" ); 2332 return locateLocal( "tmp", "copysynccal.ics" );
2331#else 2333#else
2332 return QString( "/tmp/copysynccal.ics" ); 2334 return QString( "/tmp/copysynccal.ics" );
2333#endif 2335#endif
2334} 2336}
2335 2337
2336void MainWindow::syncFileRequest() 2338void MainWindow::syncFileRequest()
2337{ 2339{
2338 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { 2340 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) {
2339 mSyncManager->slotSyncMenu( 999 ); 2341 mSyncManager->slotSyncMenu( 999 );
2340 } 2342 }
2341 2343
2342 setCaption(i18n("Saving Data to temp file ..." )); 2344 setCaption(i18n("Saving Data to temp file ..." ));
2343 mView->saveCalendar( sentSyncFile() ); 2345 mView->saveCalendar( sentSyncFile() );
2344 setCaption(i18n("Data saved to temp file!" )); 2346 setCaption(i18n("Data saved to temp file!" ));
2345 2347
2346} 2348}
2347void MainWindow::getFile( bool success ) 2349void MainWindow::getFile( bool success )
2348{ 2350{
2349 if ( ! success ) { 2351 if ( ! success ) {
2350 setCaption( i18n("Error receiving file. Nothing changed!") ); 2352 setCaption( i18n("Error receiving file. Nothing changed!") );
2351 return; 2353 return;
2352 } 2354 }
2353 mView->openCalendar( sentSyncFile() ); 2355 mView->openCalendar( sentSyncFile() );
2354 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { 2356 if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) {
2355 mSyncManager->slotSyncMenu( 999 ); 2357 mSyncManager->slotSyncMenu( 999 );
2356 } 2358 }
2357 setCaption( i18n("Pi-Sync successful!") ); 2359 setCaption( i18n("Pi-Sync successful!") );
2358} 2360}
2359 2361
2360void MainWindow::printSel( ) 2362void MainWindow::printSel( )
2361{ 2363{
2362 mView->viewManager()->agendaView()->agenda()->printSelection(); 2364 mView->viewManager()->agendaView()->agenda()->printSelection();
2363} 2365}
2364 2366
2365void MainWindow::printCal() 2367void MainWindow::printCal()
2366{ 2368{
2367 mView->print();//mCp->showDialog(); 2369 mView->print();//mCp->showDialog();
2368} 2370}
2369 2371
2370 2372
2371#include "libkdepim/kdatepicker.h" 2373#include "libkdepim/kdatepicker.h"
2372#include <kdatetbl.h> 2374#include <kdatetbl.h>
2373 2375
2374void MainWindow::weekAction() 2376void MainWindow::weekAction()
2375{ 2377{
2376 int month; 2378 int month;
2377 KPopupFrame* popup = new KPopupFrame(this); 2379 KPopupFrame* popup = new KPopupFrame(this);
2378 KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); 2380 KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup);
2379 // ----- 2381 // -----
2380 picker->resize(picker->sizeHint()); 2382 picker->resize(picker->sizeHint());
2381 popup->setMainWidget(picker); 2383 popup->setMainWidget(picker);
2382 picker->setFocus(); 2384 picker->setFocus();
2383 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); 2385 connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int)));
2384 int x = 0; 2386 int x = 0;
2385 int y = iconToolBar->height(); 2387 int y = iconToolBar->height();
2386 int dX = 0; 2388 int dX = 0;
2387 int dY = 0; 2389 int dY = 0;
2388 if ( iconToolBar->orientation () == Qt:: Horizontal ) { 2390 if ( iconToolBar->orientation () == Qt:: Horizontal ) {
2389 if ( iconToolBar->y() > height()/2 ) { 2391 if ( iconToolBar->y() > height()/2 ) {
2390 dY = picker->sizeHint().height()+8; 2392 dY = picker->sizeHint().height()+8;
2391 y = 0; 2393 y = 0;
2392 } 2394 }
2393 } else { 2395 } else {
2394 if ( iconToolBar->x() > width()/2 ) { // right side 2396 if ( iconToolBar->x() > width()/2 ) { // right side
2395 x=0; 2397 x=0;
2396 dX= picker->sizeHint().width()+8; 2398 dX= picker->sizeHint().width()+8;
2397 y = 0; 2399 y = 0;
2398 } else { 2400 } else {
2399 x= iconToolBar->width(); 2401 x= iconToolBar->width();
2400 y = 0; 2402 y = 0;
2401 } 2403 }
2402 } 2404 }
2403 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); 2405 //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() );
2404 if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) 2406 if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))))
2405 { 2407 {
2406 month = picker->getResult(); 2408 month = picker->getResult();
2407 emit selectWeek ( month ); 2409 emit selectWeek ( month );
2408 //qDebug("weekSelected %d ", month); 2410 //qDebug("weekSelected %d ", month);
2409 } 2411 }
2410 delete popup; 2412 delete popup;
2411} 2413}
2412 2414
2413void MainWindow::hideEvent ( QHideEvent * ) 2415void MainWindow::hideEvent ( QHideEvent * )
2414{ 2416{
2415 QString message; 2417 QString message;
2416 QDateTime nextA = mCalendar->nextAlarmEventDateTime(); 2418 QDateTime nextA = mCalendar->nextAlarmEventDateTime();
2417 if ( nextA.isValid() ) { 2419 if ( nextA.isValid() ) {
2418 QString sum = mCalendar->nextSummary(); 2420 QString sum = mCalendar->nextSummary();
2419 2421
2420 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)); 2422 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));
2421 setCaption( message ); 2423 setCaption( message );
2422 } 2424 }
2423} 2425}
2424 2426
2425void MainWindow::resizeEvent( QResizeEvent* e) 2427void MainWindow::resizeEvent( QResizeEvent* e)
2426{ 2428{
2427#ifndef DESKTOP_VERSION 2429#ifndef DESKTOP_VERSION
2428 if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar ) { 2430 if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar ) {
2429 if (QApplication::desktop()->width() > QApplication::desktop()->height() ) 2431 if (QApplication::desktop()->width() > QApplication::desktop()->height() )
2430 filterToolBar->hide(); 2432 filterToolBar->hide();
2431 else 2433 else
2432 filterToolBar->show(); 2434 filterToolBar->show();
2433 } 2435 }
2434#endif 2436#endif
2435 QMainWindow::resizeEvent( e); 2437 QMainWindow::resizeEvent( e);
2436} 2438}