-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 8 | ||||
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 31 | ||||
-rw-r--r-- | korganizer/koeditorrecurrence.cpp | 6 | ||||
-rw-r--r-- | korganizer/kotodoeditor.cpp | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 3 |
5 files changed, 29 insertions, 20 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 7e7f8b7..b4e26c2 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1,546 +1,546 @@ | |||
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","Wiederholung anschalten" }, |
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 | { "Show Dates","Zeige Daten" }, | 354 | { "Show Dates","Zeige Daten" }, |
355 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, | 355 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, |
356 | { "Show Event...","Zeige Termin..." }, | 356 | { "Show Event...","Zeige Termin..." }, |
357 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, | 357 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, |
358 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, | 358 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, |
359 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, | 359 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, |
360 | { "Show time as:","Zeige Zeit als" }, | 360 | { "Show time as:","Zeige Zeit als" }, |
361 | { "Show Todo...","Zeige To-Do" }, | 361 | { "Show Todo...","Zeige To-Do" }, |
362 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, | 362 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, |
363 | { "&Show","Zeige" }, | 363 | { "&Show","Zeige" }, |
364 | { "Show...","Zeige..." }, | 364 | { "Show...","Zeige..." }, |
365 | { "Show","Zeige" }, | 365 | { "Show","Zeige" }, |
366 | { "Small","Klein" }, | 366 | { "Small","Klein" }, |
367 | { "Sorry","Entschuldigung" }, | 367 | { "Sorry","Entschuldigung" }, |
368 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, | 368 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, |
369 | { "Start:","Start:" }, | 369 | { "Start:","Start:" }, |
370 | { "Start Date","Start Datum" }, | 370 | { "Start Date","Start Datum" }, |
371 | { "Start date: %1","Start Datum: %1" }, | 371 | { "Start date: %1","Start Datum: %1" }, |
372 | { "Start Time","Start Zeit" }, | 372 | { "Start Time","Start Zeit" }, |
373 | { "Status:","Status:" }, | 373 | { "Status:","Status:" }, |
374 | { "Status","Status:" }, | 374 | { "Status","Status:" }, |
375 | { "Summaries","Titel" }, | 375 | { "Summaries","Titel" }, |
376 | { "Summary:","Titel:" }, | 376 | { "Summary:","Titel:" }, |
377 | { "Summary","Titel" }, | 377 | { "Summary","Titel" }, |
378 | { "Sunday","Sonntag" }, | 378 | { "Sunday","Sonntag" }, |
379 | { "Sun","So" }, | 379 | { "Sun","So" }, |
380 | { "Sync preferences:","Sync Einstellungen" }, | 380 | { "Sync preferences:","Sync Einstellungen" }, |
381 | { "Sync Prefs","Sync Einstellungen" }, | 381 | { "Sync Prefs","Sync Einstellungen" }, |
382 | { "Syncronize","Daten abgleich" }, | 382 | { "Syncronize","Daten abgleich" }, |
383 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 383 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
384 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 384 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
385 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 385 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
386 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, | 386 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, |
387 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, | 387 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, |
388 | { "Template...","Vorlage..." }, | 388 | { "Template...","Vorlage..." }, |
389 | { "This day","Dieser Tag" }, | 389 | { "This day","Dieser Tag" }, |
390 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, | 390 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, |
391 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, | 391 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, |
392 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, | 392 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, |
393 | { "Thu","Do" }, | 393 | { "Thu","Do" }, |
394 | { "Thursday","Donnerstag" }, | 394 | { "Thursday","Donnerstag" }, |
395 | { "Time associated","Mit Zeit" }, | 395 | { "Time associated","Mit Zeit" }, |
396 | { "Time bar:","Uhrzeit Zeile:" }, | 396 | { "Time bar:","Uhrzeit Zeile:" }, |
397 | { "Time && Date","Zeit und Datum" }, | 397 | { "Time && Date","Zeit und Datum" }, |
398 | { "Time Format","Zeit Format" }, | 398 | { "Time Format","Zeit Format" }, |
399 | { "Time Format(nr):","Zeit Format(Neustart!)" }, | 399 | { "Time Format(nr):","Zeit Format(Neustart!)" }, |
400 | { "Date Labels:","Datumsleiste:" }, | 400 | { "Date Labels:","Datumsleiste:" }, |
401 | { "Time: ","Zeit: " }, | 401 | { "Time: ","Zeit: " }, |
402 | { "Timezone:","Zeitzone:" }, | 402 | { "Timezone:","Zeitzone:" }, |
403 | { "To: ","Bis: " }, | 403 | { "To: ","Bis: " }, |
404 | { "To:","Bis:" }, | 404 | { "To:","Bis:" }, |
405 | { "Today: ","Heute: " }, | 405 | { "Today: ","Heute: " }, |
406 | { "Todo due today color:","Heute fällige To-Do's" }, | 406 | { "Todo due today color:","Heute fällige To-Do's" }, |
407 | { "To-do items:","To-Do items:" }, | 407 | { "To-do items:","To-Do items:" }, |
408 | { "Todo overdue color:","Überfällige To-Do's" }, | 408 | { "Todo overdue color:","Überfällige To-Do's" }, |
409 | { "Todo","Todo" }, | 409 | { "Todo","Todo" }, |
410 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, | 410 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, |
411 | { "ToDoView:","Todo Ansicht:" }, | 411 | { "ToDoView:","Todo Ansicht:" }, |
412 | { "Toggle Alarm","Wechsle Alarm" }, | 412 | { "Toggle Alarm","Wechsle Alarm" }, |
413 | { "Toggle Allday","Umschalten Ganztag" }, | 413 | { "Toggle Allday","Umschalten Ganztag" }, |
414 | { "Tomorrow: ","Morgen: " }, | 414 | { "Tomorrow: ","Morgen: " }, |
415 | { "Tue","Di" }, | 415 | { "Tue","Di" }, |
416 | { "Tuesday","Dienstag" }, | 416 | { "Tuesday","Dienstag" }, |
417 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, | 417 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, |
418 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, | 418 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, |
419 | { "Unknown","Unbekannt" }, | 419 | { "Unknown","Unbekannt" }, |
420 | { "Up","Hinauf" }, | 420 | { "Up","Hinauf" }, |
421 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, | 421 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, |
422 | { "User defined","Benutzerdefiniert" }, | 422 | { "User defined","Benutzerdefiniert" }, |
423 | { "User long date:","Format langes Datum:" }, | 423 | { "User long date:","Format langes Datum:" }, |
424 | { "User short date:","Forma kurzes Datum:" }, | 424 | { "User short date:","Forma kurzes Datum:" }, |
425 | { "View","Ansicht" }, | 425 | { "View","Ansicht" }, |
426 | { "View Fonts","Schriftarten Ansichten" }, | 426 | { "View Fonts","Schriftarten Ansichten" }, |
427 | { "Views","Ansichten" }, | 427 | { "Views","Ansichten" }, |
428 | { "Wed","Mi" }, | 428 | { "Wed","Mi" }, |
429 | { "Wednesday","Mittwoch" }, | 429 | { "Wednesday","Mittwoch" }, |
430 | { "Week %1","Woche %1" }, | 430 | { "Week %1","Woche %1" }, |
431 | { "Weekly","Wöchentlich" }, | 431 | { "Weekly","Wöchentlich" }, |
432 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 432 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
433 | { "What's Next View:","What's Next Anz." }, | 433 | { "What's Next View:","What's Next Anz." }, |
434 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, | 434 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, |
435 | { "Working Hours","Tägliche Arbeitszeit" }, | 435 | { "Working Hours","Tägliche Arbeitszeit" }, |
436 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, | 436 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, |
437 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, | 437 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, |
438 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, | 438 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, |
439 | { "Yearly","Jährlich" }, | 439 | { "Yearly","Jährlich" }, |
440 | { "year(s)","Jahr(e)" }, | 440 | { "year(s)","Jahr(e)" }, |
441 | { "Yes","Ja" }, | 441 | { "Yes","Ja" }, |
442 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, | 442 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, |
443 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, | 443 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, |
444 | { "week(s) on:","Woche(n) am: " }, | 444 | { "week(s) on:","Woche(n) am: " }, |
445 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 445 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
446 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 446 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
447 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 447 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
448 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 448 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
449 | { "Daylight start:","Sommerzeit Beginn:" }, | 449 | { "Daylight start:","Sommerzeit Beginn:" }, |
450 | { "Daylight end:","Sommerzeit Ende:" }, | 450 | { "Daylight end:","Sommerzeit Ende:" }, |
451 | { "Time Zone","Zeitzone" }, | 451 | { "Time Zone","Zeitzone" }, |
452 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 452 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
453 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, | 453 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, |
454 | { "minutely","minütlich" }, | 454 | { "minutely","minütlich" }, |
455 | { "hourly","stündlich" }, | 455 | { "hourly","stündlich" }, |
456 | { "daily","täglich" }, | 456 | { "daily","täglich" }, |
457 | { "weekly","wöchentlich" }, | 457 | { "weekly","wöchentlich" }, |
458 | { "monthly","monatlich" }, | 458 | { "monthly","monatlich" }, |
459 | { "day-monthly","tag-monatlich" }, | 459 | { "day-monthly","tag-monatlich" }, |
460 | { "month-yearly","monat-jährlich" }, | 460 | { "month-yearly","monat-jährlich" }, |
461 | { "day-yearly","tag-jährlich" }, | 461 | { "day-yearly","tag-jährlich" }, |
462 | { "position-yearly","pos-jährlich" }, | 462 | { "position-yearly","pos-jährlich" }, |
463 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, | 463 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, |
464 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, | 464 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, |
465 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, | 465 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, |
466 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, | 466 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, |
467 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, | 467 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, |
468 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, | 468 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, |
469 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, | 469 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, |
470 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, | 470 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, |
471 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, | 471 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, |
472 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, | 472 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, |
473 | { "ViewChange","Ansichtswechsel" }, | 473 | { "ViewChange","Ansichtswechsel" }, |
474 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, | 474 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, |
475 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, | 475 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, |
476 | { "File","Datei" }, | 476 | { "File","Datei" }, |
477 | { "Clone...","Dupliziere.." }, | 477 | { "Clone...","Dupliziere.." }, |
478 | { "Move...","Bewege..." }, | 478 | { "Move...","Bewege..." }, |
479 | { "Beam...","Sende via IR..." }, | 479 | { "Beam...","Sende via IR..." }, |
480 | { "&Clone...","Dupliziere.." }, | 480 | { "&Clone...","Dupliziere.." }, |
481 | { "&Move...","Bewege..." }, | 481 | { "&Move...","Bewege..." }, |
482 | { "&Beam...","Sende via IR..." }, | 482 | { "&Beam...","Sende via IR..." }, |
483 | { "Show Completed","Zeige erledigte Todos" }, | 483 | { "Show Completed","Zeige erledigte Todos" }, |
484 | { "Show Quick Todo","Zeige Quick Todo" }, | 484 | { "Show Quick Todo","Zeige Quick Todo" }, |
485 | { "Unparent Todo","Un-sub Todo" }, | 485 | { "Unparent Todo","Un-sub Todo" }, |
486 | { "Save selected to file...","Speichere Selektierte..." }, | 486 | { "Save selected to file...","Speichere Selektierte..." }, |
487 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, | 487 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, |
488 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, | 488 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, |
489 | { "Beam selected via IR","Sende Selekt. via IR..." }, | 489 | { "Beam selected via IR","Sende Selekt. via IR..." }, |
490 | { "Search","Suchen" }, | 490 | { "Search","Suchen" }, |
491 | { "Date Picker","Datum auswählen" }, | 491 | { "Date Picker","Datum auswählen" }, |
492 | { "Day View","Tagesansicht" }, | 492 | { "Day View","Tagesansicht" }, |
493 | { "Work Week","Arbeitswoche" }, | 493 | { "Work Week","Arbeitswoche" }, |
494 | { "Week","Wochenansicht" }, | 494 | { "Week","Wochenansicht" }, |
495 | { "Month","Monatsansicht" }, | 495 | { "Month","Monatsansicht" }, |
496 | { "Todo View","Todo Liste" }, | 496 | { "Todo View","Todo Liste" }, |
497 | { "Journal","Journal Ansicht" }, | 497 | { "Journal","Journal Ansicht" }, |
498 | { "Next days","Nächste Tage" }, | 498 | { "Next days","Nächste Tage" }, |
499 | { "Print agenda selection...","Drucke Agendaselektion..." }, | 499 | { "Print agenda selection...","Drucke Agendaselektion..." }, |
500 | { "Toggle DateNavigator","Navigator umschalten" }, | 500 | { "Toggle DateNavigator","Navigator umschalten" }, |
501 | { "Toggle FilterView","Filteransicht umschalten" }, | 501 | { "Toggle FilterView","Filteransicht umschalten" }, |
502 | { "Prev. month","Vorheriger Monat" }, | 502 | { "Prev. month","Vorheriger Monat" }, |
503 | { "Go backward","Gehe zurück" }, | 503 | { "Go backward","Gehe zurück" }, |
504 | { "Go forward","Gehe weiter" }, | 504 | { "Go forward","Gehe weiter" }, |
505 | { "Synchronize","Synchronisieren" }, | 505 | { "Synchronize","Synchronisieren" }, |
506 | { "AgendaSize","Agendagröße" }, | 506 | { "AgendaSize","Agendagröße" }, |
507 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, | 507 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, |
508 | { "Import last file","Importiere letzte Datei" }, | 508 | { "Import last file","Importiere letzte Datei" }, |
509 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, | 509 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, |
510 | { "Load Calendar Backup","Lade Kalender Backup" }, | 510 | { "Load Calendar Backup","Lade Kalender Backup" }, |
511 | { "Save Calendar Backup","Speichere Kalender Backup" }, | 511 | { "Save Calendar Backup","Speichere Kalender Backup" }, |
512 | { "Export VCalendar","Exportiere VCalendar" }, | 512 | { "Export VCalendar","Exportiere VCalendar" }, |
513 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 513 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
514 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, | 514 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, |
515 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, | 515 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, |
516 | { "Remote via ssh","Über Netzwerk via ssh" }, | 516 | { "Remote via ssh","Über Netzwerk via ssh" }, |
517 | { "With local file","Mit lokaler Datei" }, | 517 | { "With local file","Mit lokaler Datei" }, |
518 | { "With last file","Mit letzter Datei" }, | 518 | { "With last file","Mit letzter Datei" }, |
519 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, | 519 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, |
520 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, | 520 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, |
521 | { "Save filename","Speichern: Dateinamen wählen" }, | 521 | { "Save filename","Speichern: Dateinamen wählen" }, |
522 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, | 522 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, |
523 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, | 523 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, |
524 | { "Overwrite!","Überschreibe!" }, | 524 | { "Overwrite!","Überschreibe!" }, |
525 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 525 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
526 | { "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" }, | 526 | { "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" }, |
527 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, | 527 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, |
528 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, | 528 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, |
529 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, | 529 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, |
530 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, | 530 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, |
531 | { "Size","Größe" }, | 531 | { "Size","Größe" }, |
532 | { "Date","Datum" }, | 532 | { "Date","Datum" }, |
533 | { "Mime Type","Datei Typ" }, | 533 | { "Mime Type","Datei Typ" }, |
534 | { "All Files","Alle Dateien" }, | 534 | { "All Files","Alle Dateien" }, |
535 | { "Files","Dateien" }, | 535 | { "Files","Dateien" }, |
536 | { "Documents","DoKumente" }, | 536 | { "Documents","DoKumente" }, |
537 | { "Select Categories","Selektiere Kategorien" }, | 537 | { "Select Categories","Selektiere Kategorien" }, |
538 | { " &Deselect All "," Auswahl aufheben " }, | 538 | { " &Deselect All "," Auswahl aufheben " }, |
539 | { "A&dd","Hinzu" }, | 539 | { "A&dd","Hinzu" }, |
540 | { "&Modify","Ändern" }, | 540 | { "&Modify","Ändern" }, |
541 | { "Edit Categories","Editiere Kategorien" }, | 541 | { "Edit Categories","Editiere Kategorien" }, |
542 | { " &Edit Categories "," &Editiere Kategorien " }, | 542 | { " &Edit Categories "," &Editiere Kategorien " }, |
543 | { "Beam Options","Beam Einstellungen" }, | 543 | { "Beam Options","Beam Einstellungen" }, |
544 | { " With timezone "," Mit Zeitzone " }, | 544 | { " With timezone "," Mit Zeitzone " }, |
545 | { " Local time ", " Lokale Zeit " }, | 545 | { " Local time ", " Lokale Zeit " }, |
546 | { "Manage new Categories","Verwalte neue Kategorien" }, | 546 | { "Manage new Categories","Verwalte neue Kategorien" }, |
@@ -951,390 +951,390 @@ | |||
951 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 951 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
952 | { "Calendar:","Kalender:" }, | 952 | { "Calendar:","Kalender:" }, |
953 | { "AddressBook:","AdressBuch:" }, | 953 | { "AddressBook:","AdressBuch:" }, |
954 | { "PWManager:","PWManager:" }, | 954 | { "PWManager:","PWManager:" }, |
955 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 955 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
956 | { "ssh/scp","ssh/scp" }, | 956 | { "ssh/scp","ssh/scp" }, |
957 | { "ftp","ftp" }, | 957 | { "ftp","ftp" }, |
958 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 958 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
959 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 959 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
960 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 960 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
961 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 961 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
962 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 962 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
963 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 963 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
964 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 964 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
965 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 965 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
966 | { "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" }, | 966 | { "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" }, |
967 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 967 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
968 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 968 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
969 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 969 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
970 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 970 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
971 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 971 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
972 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 972 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
973 | { "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!" }, | 973 | { "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!" }, |
974 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 974 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
975 | { "Multiple profiles","Multi-Sync Profile" }, | 975 | { "Multiple profiles","Multi-Sync Profile" }, |
976 | { "Device: ","Gerät: " }, | 976 | { "Device: ","Gerät: " }, |
977 | { "Multiple sync started.","Multi-Sync gestartet." }, | 977 | { "Multiple sync started.","Multi-Sync gestartet." }, |
978 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 978 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
979 | { "Turn filter on","Schalte Filter an" }, | 979 | { "Turn filter on","Schalte Filter an" }, |
980 | { "Turn filter off","Schalte Filter aus" }, | 980 | { "Turn filter off","Schalte Filter aus" }, |
981 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 981 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
982 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 982 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
983 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 983 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
984 | { "<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" }, | 984 | { "<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" }, |
985 | { "<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" }, | 985 | { "<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" }, |
986 | { "<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" }, | 986 | { "<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" }, |
987 | { "<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" }, | 987 | { "<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" }, |
988 | { "<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" }, | 988 | { "<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" }, |
989 | { "<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" }, | 989 | { "<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" }, |
990 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 990 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
991 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 991 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
992 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 992 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
993 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 993 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
994 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 994 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
995 | { "<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" }, | 995 | { "<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" }, |
996 | { "<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" }, | 996 | { "<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" }, |
997 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 997 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
998 | { "<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" }, | 998 | { "<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" }, |
999 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 999 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1000 | { "<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" }, | 1000 | { "<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" }, |
1001 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 1001 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
1002 | { "<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" }, | 1002 | { "<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" }, |
1003 | { "<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" }, | 1003 | { "<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" }, |
1004 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 1004 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
1005 | { "<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" }, | 1005 | { "<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" }, |
1006 | { "<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" }, | 1006 | { "<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" }, |
1007 | { "<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" }, | 1007 | { "<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" }, |
1008 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1008 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1009 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1009 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1010 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1010 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1011 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1011 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1012 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1012 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1013 | { "<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" }, | 1013 | { "<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" }, |
1014 | { "<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" }, | 1014 | { "<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" }, |
1015 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1015 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1016 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1016 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1017 | { "<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" }, | 1017 | { "<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" }, |
1018 | { "<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" }, | 1018 | { "<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" }, |
1019 | { "<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" }, | 1019 | { "<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" }, |
1020 | { "<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" }, | 1020 | { "<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" }, |
1021 | { "<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" }, | 1021 | { "<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" }, |
1022 | { "<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" }, | 1022 | { "<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" }, |
1023 | { "<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" }, | 1023 | { "<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" }, |
1024 | { "<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 " }, | 1024 | { "<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 " }, |
1025 | { "<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" }, | 1025 | { "<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" }, |
1026 | { "<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" }, | 1026 | { "<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" }, |
1027 | { "<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" }, | 1027 | { "<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" }, |
1028 | { "<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" }, | 1028 | { "<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" }, |
1029 | { "<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" }, | 1029 | { "<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" }, |
1030 | { "<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" }, | 1030 | { "<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" }, |
1031 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1031 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1032 | { "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" }, | 1032 | { "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" }, |
1033 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1033 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1034 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1034 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1035 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1035 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1036 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, | 1036 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, |
1037 | { "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" }, | 1037 | { "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" }, |
1038 | { "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" }, | 1038 | { "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" }, |
1039 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1039 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1040 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1040 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1041 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, | 1041 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, |
1042 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1042 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1043 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1043 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1044 | { "From: ","Von: " }, | 1044 | { "From: ","Von: " }, |
1045 | { "Remove sync info","Entferne Sync Info" }, | 1045 | { "Remove sync info","Entferne Sync Info" }, |
1046 | { "For all profiles","Für alle Profile" }, | 1046 | { "For all profiles","Für alle Profile" }, |
1047 | { "Hide not Running","Verstecke nicht Laufende" }, | 1047 | { "Hide not Running","Verstecke nicht Laufende" }, |
1048 | { "ME","ME" }, | 1048 | { "ME","ME" }, |
1049 | { "Toolbar","Toolbar" }, | 1049 | { "Toolbar","Toolbar" }, |
1050 | { "Undo Delete...","Löschen rückgängig machen..." }, | 1050 | { "Undo Delete...","Löschen rückgängig machen..." }, |
1051 | { "Undo Delete","Löschen rückgängig machen" }, | 1051 | { "Undo Delete","Löschen rückgängig machen" }, |
1052 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1052 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1053 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1053 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1054 | { "Januar","Januar" }, | 1054 | { "Januar","Januar" }, |
1055 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1055 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1056 | { "No Filter","Kein Filter" }, | 1056 | { "No Filter","Kein Filter" }, |
1057 | { "Multiple Sync options","Multi Sync Optionen" }, | 1057 | { "Multiple Sync options","Multi Sync Optionen" }, |
1058 | { "Sync algo options","Sync Ablauf Optionen" }, | 1058 | { "Sync algo options","Sync Ablauf Optionen" }, |
1059 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1059 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1060 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1060 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1061 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1061 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1062 | { "Write back options","Optionen zum Zurückschreiben" }, | 1062 | { "Write back options","Optionen zum Zurückschreiben" }, |
1063 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1063 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1064 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1064 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1065 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1065 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1066 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1066 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1067 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1067 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1068 | { "Time period","Zeitspanne" }, | 1068 | { "Time period","Zeitspanne" }, |
1069 | { "From ","Von " }, | 1069 | { "From ","Von " }, |
1070 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1070 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1071 | { " weeks in the future "," Wochen in der Zukunft " }, | 1071 | { " weeks in the future "," Wochen in der Zukunft " }, |
1072 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1072 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1073 | { "Local temp file:","Lokale temp Datei:" }, | 1073 | { "Local temp file:","Lokale temp Datei:" }, |
1074 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1074 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1075 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1075 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1076 | { "Language","Sprache" }, | 1076 | { "Language","Sprache" }, |
1077 | { "Time Format","Zeit Format" }, | 1077 | { "Time Format","Zeit Format" }, |
1078 | { "Time Zone","Zeit Zone" }, | 1078 | { "Time Zone","Zeit Zone" }, |
1079 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1079 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1080 | { "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" }, | 1080 | { "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" }, |
1081 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1081 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1082 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1082 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1083 | { "Save settings","Speichere Einstellungen" }, | 1083 | { "Save settings","Speichere Einstellungen" }, |
1084 | { "Save standard","Speichere Standard" }, | 1084 | { "Save standard","Speichere Standard" }, |
1085 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1085 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1086 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1086 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1087 | { "Data storage path","Daten Speicherpfad" }, | 1087 | { "Data storage path","Daten Speicherpfad" }, |
1088 | { "Language","Sprache" }, | 1088 | { "Language","Sprache" }, |
1089 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1089 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1090 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1090 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1091 | { "Show events, that are done","Zeige abgelaufene Termine" }, | 1091 | { "Show events, that are done","Zeige abgelaufene Termine" }, |
1092 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1092 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1093 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1093 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1094 | { "KO/Pi","KO/Pi" }, | 1094 | { "KO/Pi","KO/Pi" }, |
1095 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1095 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1096 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1096 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1097 | { "Sound.Al.: ","Sound.Al.: " }, | 1097 | { "Sound.Al.: ","Sound.Al.: " }, |
1098 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1098 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1099 | { "Restore","Wiederherstellen" }, | 1099 | { "Restore","Wiederherstellen" }, |
1100 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1100 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1101 | { "% completed","% erledigt" }, | 1101 | { "% completed","% erledigt" }, |
1102 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1102 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1103 | { "Set complete","Setze auf erledigt" }, | 1103 | { "Set complete","Setze auf erledigt" }, |
1104 | { "(cancelled)","(gecancelt)" }, | 1104 | { "(cancelled)","(gecancelt)" }, |
1105 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1105 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1106 | { " Local time "," Locale Zeit " }, | 1106 | { " Local time "," Locale Zeit " }, |
1107 | { "Form2","Form2" }, | 1107 | { "Form2","Form2" }, |
1108 | { "Filter enabled","Filter angeschaltet" }, | 1108 | { "Filter enabled","Filter angeschaltet" }, |
1109 | { "Edit Filters","Ändere Filter" }, | 1109 | { "Edit Filters","Ändere Filter" }, |
1110 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1110 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1111 | { "Agenda","Agenda" }, | 1111 | { "Agenda","Agenda" }, |
1112 | { " ("," (" }, | 1112 | { " ("," (" }, |
1113 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1113 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1114 | { "Print","Print" }, | 1114 | { "Print","Print" }, |
1115 | { "&Setup Printer...","Drucker &Setup..." }, | 1115 | { "&Setup Printer...","Drucker &Setup..." }, |
1116 | { "View Type","Zeige Typ" }, | 1116 | { "View Type","Zeige Typ" }, |
1117 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1117 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1118 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1118 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1119 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1119 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1120 | { "Portrait","Portrait" }, | 1120 | { "Portrait","Portrait" }, |
1121 | { "Landscape","Landschaft" }, | 1121 | { "Landscape","Landschaft" }, |
1122 | { "Print day","Drucke Tag" }, | 1122 | { "Print day","Drucke Tag" }, |
1123 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1123 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1124 | { "Date && Time Range","Datum && Zeitspanne" }, | 1124 | { "Date && Time Range","Datum && Zeitspanne" }, |
1125 | { "&End date:","&Enddatum:" }, | 1125 | { "&End date:","&Enddatum:" }, |
1126 | { "&Start date:","&Startdatum:" }, | 1126 | { "&Start date:","&Startdatum:" }, |
1127 | { "Start &time:","Startzeit:" }, | 1127 | { "Start &time:","Startzeit:" }, |
1128 | { "End ti&me:","Endzeit:" }, | 1128 | { "End ti&me:","Endzeit:" }, |
1129 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1129 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1130 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1130 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1131 | { "Alt+D","Alt+D" }, | 1131 | { "Alt+D","Alt+D" }, |
1132 | { "&Use colors","Nutze Farben" }, | 1132 | { "&Use colors","Nutze Farben" }, |
1133 | { "Alt+U","Alt+U" }, | 1133 | { "Alt+U","Alt+U" }, |
1134 | { "Print week","Drucke Woche" }, | 1134 | { "Print week","Drucke Woche" }, |
1135 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1135 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1136 | { "Use &colors","Nutze Farben" }, | 1136 | { "Use &colors","Nutze Farben" }, |
1137 | { "Type of View","Typ der Ansicht" }, | 1137 | { "Type of View","Typ der Ansicht" }, |
1138 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1138 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1139 | { "Alt+F","Alt+F" }, | 1139 | { "Alt+F","Alt+F" }, |
1140 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1140 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1141 | { "Alt+T","Alt+T" }, | 1141 | { "Alt+T","Alt+T" }, |
1142 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1142 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1143 | { "Print month","Drucke Monat" }, | 1143 | { "Print month","Drucke Monat" }, |
1144 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1144 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1145 | { "&Start month:","&Startmonat:" }, | 1145 | { "&Start month:","&Startmonat:" }, |
1146 | { "&End month:","&Endmonat:" }, | 1146 | { "&End month:","&Endmonat:" }, |
1147 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1147 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1148 | { "Print todos","Drucke Todos" }, | 1148 | { "Print todos","Drucke Todos" }, |
1149 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1149 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1150 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1150 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1151 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1151 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1152 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1152 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1153 | { "Items to Print","Zu druckende Items" }, | 1153 | { "Items to Print","Zu druckende Items" }, |
1154 | { "&From:","Von:" }, | 1154 | { "&From:","Von:" }, |
1155 | { "&To:","Bis:" }, | 1155 | { "&To:","Bis:" }, |
1156 | { "Print &all todo items","Drucke alle Todo Items" }, | 1156 | { "Print &all todo items","Drucke alle Todo Items" }, |
1157 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1157 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1158 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1158 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1159 | { "Todo List","Todo Liste" }, | 1159 | { "Todo List","Todo Liste" }, |
1160 | { "&Title:","&Titel:" }, | 1160 | { "&Title:","&Titel:" }, |
1161 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, | 1161 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, |
1162 | { "Todo list","Todo Liste" }, | 1162 | { "Todo list","Todo Liste" }, |
1163 | { "&Print...","Drucke..." }, | 1163 | { "&Print...","Drucke..." }, |
1164 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1164 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1165 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1165 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1166 | { "OK","OK" }, | 1166 | { "OK","OK" }, |
1167 | { "FilterEditor","FilterEditor" }, | 1167 | { "FilterEditor","FilterEditor" }, |
1168 | { "Include","Inclusive" }, | 1168 | { "Include","Inclusive" }, |
1169 | { "Exclude","Exclusive" }, | 1169 | { "Exclude","Exclusive" }, |
1170 | { "Edit Selection...","Editiere Auswahl" }, | 1170 | { "Edit Selection...","Editiere Auswahl" }, |
1171 | { "recurring events","wiederholende Termine" }, | 1171 | { "recurring events","wiederholende Termine" }, |
1172 | { "recurr. events","wiederh.Termine" }, | 1172 | { "recurr. events","wiederh.Termine" }, |
1173 | { "completed to-dos","erledigte Todos" }, | 1173 | { "completed to-dos","erledigte Todos" }, |
1174 | { "events","Termine" }, | 1174 | { "events","Termine" }, |
1175 | { "todos","Todos" }, | 1175 | { "todos","Todos" }, |
1176 | { "journals","Journale" }, | 1176 | { "journals","Journale" }, |
1177 | { "public","öffentl." }, | 1177 | { "public","öffentl." }, |
1178 | { "private","privat" }, | 1178 | { "private","privat" }, |
1179 | { "confidential","vertraul." }, | 1179 | { "confidential","vertraul." }, |
1180 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1180 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1181 | { "Yesterday","Gestern" }, | 1181 | { "Yesterday","Gestern" }, |
1182 | { "Day after tomorrow","Übermorgen" }, | 1182 | { "Day after tomorrow","Übermorgen" }, |
1183 | { "Tomorrow","Morgen" }, | 1183 | { "Tomorrow","Morgen" }, |
1184 | { "Day before yesterday","Vorgestern" }, | 1184 | { "Day before yesterday","Vorgestern" }, |
1185 | { "Size %1","Größe %1" }, | 1185 | { "Size %1","Größe %1" }, |
1186 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1186 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1187 | { " (%1 y.)"," (%1 J.)" }, | 1187 | { " (%1 y.)"," (%1 J.)" }, |
1188 | { "Allday:","Ganztägig:" }, | 1188 | { "Allday:","Ganztägig:" }, |
1189 | { "compl.todos","erled.Todos" }, | 1189 | { "compl.todos","erled.Todos" }, |
1190 | { "Day view","Tagesansicht" }, | 1190 | { "Day view","Tagesansicht" }, |
1191 | { "Next days","Nächste Tage" }, | 1191 | { "Next days","Nächste Tage" }, |
1192 | { "Next week","Nächste Woche" }, | 1192 | { "Next week","Nächste Woche" }, |
1193 | { "Next two weeks","Nächste zwei Wochen" }, | 1193 | { "Next two weeks","Nächste zwei Wochen" }, |
1194 | { "This month","Dieser Monat" }, | 1194 | { "This month","Dieser Monat" }, |
1195 | { "Journal view","Journal" }, | 1195 | { "Journal view","Journal" }, |
1196 | { "Display all opened","Zeige alle geöffnet" }, | 1196 | { "Display all opened","Zeige alle geöffnet" }, |
1197 | { "Display all closed","Zeige alle geschlossen" }, | 1197 | { "Display all closed","Zeige alle geschlossen" }, |
1198 | { "Display all flat","Zeige alle flach" }, | 1198 | { "Display all flat","Zeige alle flach" }, |
1199 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1199 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1200 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1200 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1201 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1201 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1202 | { "Select Week","Wähle Woche" }, | 1202 | { "Select Week","Wähle Woche" }, |
1203 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1203 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1204 | { "Set Alarm!","Setze Alarm!" }, | 1204 | { "Set Alarm!","Setze Alarm!" }, |
1205 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1205 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1206 | { " and "," und " }, | 1206 | { " and "," und " }, |
1207 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1207 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1208 | { "Mail to selected","Mail an Ausgewählte" }, | 1208 | { "Mail to selected","Mail an Ausgewählte" }, |
1209 | { "Mail to all","Mail an Alle" }, | 1209 | { "Mail to all","Mail an Alle" }, |
1210 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1210 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1211 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1211 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1212 | { " on"," am" }, | 1212 | { " on"," am" }, |
1213 | { " completed on "," erledigt am " }, | 1213 | { " completed on "," erledigt am " }, |
1214 | { "Save as Event template","Speichere als Vorlage" }, | 1214 | { "Save as Event template","Speichere als Vorlage" }, |
1215 | { "Load Event template","Lade Termin Vorlage" }, | 1215 | { "Load Event template","Lade Termin Vorlage" }, |
1216 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1216 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1217 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1217 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1218 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1218 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1219 | { "Parent todo:<br>","Über Todo:<br>" }, | 1219 | { "Parent todo:<br>","Über Todo:<br>" }, |
1220 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1220 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1221 | { " completed"," erledigt" }, | 1221 | { " completed"," erledigt" }, |
1222 | { "(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!" }, | 1222 | { "(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!" }, |
1223 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1223 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1224 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1224 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1225 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1225 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1226 | { "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?" }, | 1226 | { "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?" }, |
1227 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1227 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1228 | { "Error","Fehler" }, | 1228 | { "Error","Fehler" }, |
1229 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1229 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1230 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1230 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1231 | { "Warning","Warnung" }, | 1231 | { "Warning","Warnung" }, |
1232 | { "Select week number","Wähle Wochen Nummer" }, | 1232 | { "Select week number","Wähle Wochen Nummer" }, |
1233 | { "Februar","Februar" }, | 1233 | { "Februar","Februar" }, |
1234 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1234 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1235 | { "W","W" }, | 1235 | { "W","W" }, |
1236 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1236 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1237 | { "T: %1","T: %1" }, | 1237 | { "T: %1","T: %1" }, |
1238 | { "Start: ","Start: " }, | 1238 | { "Start: ","Start: " }, |
1239 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1239 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1240 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1240 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1241 | { "Remote IP address:","Ferne IP Adresse:" }, | 1241 | { "Remote IP address:","Ferne IP Adresse:" }, |
1242 | { "Remote port number:","Ferne Port Nummer:" }, | 1242 | { "Remote port number:","Ferne Port Nummer:" }, |
1243 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1243 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1244 | { "Remote from: ","Fern von: " }, | 1244 | { "Remote from: ","Fern von: " }, |
1245 | { "Local from: ","Lokal von: " }, | 1245 | { "Local from: ","Lokal von: " }, |
1246 | { "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" }, | 1246 | { "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" }, |
1247 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1247 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1248 | { "Write back","Schreibe zurück" }, | 1248 | { "Write back","Schreibe zurück" }, |
1249 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1249 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1250 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1250 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1251 | { "Received sync request","Sync Anfrage erhalten" }, | 1251 | { "Received sync request","Sync Anfrage erhalten" }, |
1252 | { "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." }, | 1252 | { "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." }, |
1253 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1253 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1254 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1254 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1255 | { "Sending file...","Sende Datei..." }, | 1255 | { "Sending file...","Sende Datei..." }, |
1256 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1256 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1257 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1257 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1258 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1258 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1259 | { "Writing file to disk...","Speichere Datei..." }, | 1259 | { "Writing file to disk...","Speichere Datei..." }, |
1260 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1260 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1261 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1261 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1262 | { "Synchronize!","Synchronisiere!" }, | 1262 | { "Synchronize!","Synchronisiere!" }, |
1263 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1263 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1264 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1264 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1265 | { "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!" }, | 1265 | { "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!" }, |
1266 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1266 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1267 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1267 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1268 | { "List week view","Listenwochenansicht" }, | 1268 | { "List week view","Listenwochenansicht" }, |
1269 | { "List week","Listenwochenansicht" }, | 1269 | { "List week","Listenwochenansicht" }, |
1270 | { "Next Week","Nächste Woche" }, | 1270 | { "Next Week","Nächste Woche" }, |
1271 | { "Previous Week","Vorherige Woche" }, | 1271 | { "Previous Week","Vorherige Woche" }, |
1272 | { "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." }, | 1272 | { "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." }, |
1273 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1273 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1274 | { "Details","Details" }, | 1274 | { "Details","Details" }, |
1275 | { "Created time","Erstellt Zeit" }, | 1275 | { "Created time","Erstellt Zeit" }, |
1276 | { "Last modified time","Geändert Zeit" }, | 1276 | { "Last modified time","Geändert Zeit" }, |
1277 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1277 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1278 | { "View Options","Anzeige Optionen" }, | 1278 | { "View Options","Anzeige Optionen" }, |
1279 | { "<b>Created: ","<b>Erstellt am: " }, | 1279 | { "<b>Created: ","<b>Erstellt am: " }, |
1280 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1280 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1281 | { "Journal: ","Journal: " }, | 1281 | { "Journal: ","Journal: " }, |
1282 | { "yearly","jährlich" }, | 1282 | { "yearly","jährlich" }, |
1283 | { "(%1) ","%1-" }, | 1283 | { "(%1) ","%1-" }, |
1284 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1284 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1285 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1285 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1286 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1286 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1287 | { "Summary/Loc.","Titel/Ort" }, | 1287 | { "Summary/Loc.","Titel/Ort" }, |
1288 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1288 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1289 | { "Week Number","Wochennummer" }, | 1289 | { "Week Number","Wochennummer" }, |
1290 | { "Import","Importiere" }, | 1290 | { "Import","Importiere" }, |
1291 | { "Export","Exportiere" }, | 1291 | { "Export","Exportiere" }, |
1292 | { "Beam","Beame" }, | 1292 | { "Beam","Beame" }, |
1293 | { "Export selected","Exportiere Selektierte" }, | 1293 | { "Export selected","Exportiere Selektierte" }, |
1294 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1294 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1295 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1295 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1296 | { "Journal/Details...","Journale/Details..." }, | 1296 | { "Journal/Details...","Journale/Details..." }, |
1297 | { "Agenda View","Agenda Ansicht" }, | 1297 | { "Agenda View","Agenda Ansicht" }, |
1298 | { "Show current time","Zeige aktuelle Zeit" }, | 1298 | { "Show current time","Zeige aktuelle Zeit" }, |
1299 | { "Edit new item","Bearbeite neuen Eintrag" }, | 1299 | { "Edit new item","Bearbeite neuen Eintrag" }, |
1300 | { "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" }, | 1300 | { "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" }, |
1301 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, | 1301 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, |
1302 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, | 1302 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, |
1303 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, | 1303 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, |
1304 | { "%1 days\n","%1 Tagen\n" }, | 1304 | { "%1 days\n","%1 Tagen\n" }, |
1305 | { "1 day\n","1 Tag\n" }, | 1305 | { "1 day\n","1 Tag\n" }, |
1306 | { "%1 hours\n","%1 Stunden\n" }, | 1306 | { "%1 hours\n","%1 Stunden\n" }, |
1307 | { "1 hour\n","1 Stunde\n" }, | 1307 | { "1 hour\n","1 Stunde\n" }, |
1308 | { "%1 minutes\n","%1 Minuten\n" }, | 1308 | { "%1 minutes\n","%1 Minuten\n" }, |
1309 | { "1 minute\n","1 Minute\n" }, | 1309 | { "1 minute\n","1 Minute\n" }, |
1310 | { "Only one toolbar","Nur eine Toolbar" }, | 1310 | { "Only one toolbar","Nur eine Toolbar" }, |
1311 | { "Print","Drucke" }, | 1311 | { "Print","Drucke" }, |
1312 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, | 1312 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, |
1313 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, | 1313 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, |
1314 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, | 1314 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, |
1315 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, | 1315 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, |
1316 | { "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" }, | 1316 | { "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" }, |
1317 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1317 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1318 | { "Print unscaled","Drucke unskaliert" }, | 1318 | { "Print unscaled","Drucke unskaliert" }, |
1319 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1319 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1320 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1320 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1321 | { "Printout Mode","Druck Modus" }, | 1321 | { "Printout Mode","Druck Modus" }, |
1322 | { "Filter menu icon","Filtermenu Icon" }, | 1322 | { "Filter menu icon","Filtermenu Icon" }, |
1323 | { "<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" }, | 1323 | { "<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" }, |
1324 | { "<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" }, | 1324 | { "<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" }, |
1325 | { "%1d","%1t" }, | 1325 | { "%1d","%1t" }, |
1326 | { "%1h","%1std" }, | 1326 | { "%1h","%1std" }, |
1327 | { "%1min","%1min" }, | 1327 | { "%1min","%1min" }, |
1328 | { "( %1 before )","( %1 vorher )" }, | 1328 | { "( %1 before )","( %1 vorher )" }, |
1329 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, | 1329 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, |
1330 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, | 1330 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, |
1331 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, | 1331 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, |
1332 | { "Show Sync Events in WN+Agenda","Zeige Sync-Ereignisse in WN+Agenda" }, | 1332 | { "Show Sync Events in WN+Agenda","Zeige Sync-Ereignisse in WN+Agenda" }, |
1333 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, | 1333 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, |
1334 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, | 1334 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, |
1335 | { "","" }, | 1335 | { " on "," am " }, |
1336 | { "","" }, | 1336 | { "On: ","Am: " }, |
1337 | { "","" }, | 1337 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, |
1338 | { "","" }, | 1338 | { "","" }, |
1339 | { "","" }, | 1339 | { "","" }, |
1340 | { "","" }, | 1340 | { "","" }, |
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index 2a49528..d4aa78c 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp | |||
@@ -1,427 +1,434 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
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 <qtooltip.h> | 24 | #include <qtooltip.h> |
25 | #include <qlayout.h> | 25 | #include <qlayout.h> |
26 | #include <qvbox.h> | 26 | #include <qvbox.h> |
27 | #include <qbuttongroup.h> | 27 | #include <qbuttongroup.h> |
28 | #include <qvgroupbox.h> | 28 | #include <qvgroupbox.h> |
29 | #include <qwidgetstack.h> | 29 | #include <qwidgetstack.h> |
30 | #include <qdatetime.h> | 30 | #include <qdatetime.h> |
31 | 31 | ||
32 | #include <kdebug.h> | 32 | #include <kdebug.h> |
33 | #include <kglobal.h> | 33 | #include <kglobal.h> |
34 | #include <klocale.h> | 34 | #include <klocale.h> |
35 | #include <kiconloader.h> | 35 | #include <kiconloader.h> |
36 | #include <kmessagebox.h> | 36 | #include <kmessagebox.h> |
37 | #include <kfiledialog.h> | 37 | #include <kfiledialog.h> |
38 | #include <kstandarddirs.h> | 38 | #include <kstandarddirs.h> |
39 | 39 | ||
40 | #include <libkcal/event.h> | 40 | #include <libkcal/event.h> |
41 | 41 | ||
42 | #include <libkdepim/kdateedit.h> | 42 | #include <libkdepim/kdateedit.h> |
43 | 43 | ||
44 | #include "koprefs.h" | 44 | #include "koprefs.h" |
45 | 45 | ||
46 | #include "koeditorgeneralevent.h" | 46 | #include "koeditorgeneralevent.h" |
47 | #include "kolocationbox.h" | 47 | #include "kolocationbox.h" |
48 | 48 | ||
49 | KOEditorGeneralEvent::KOEditorGeneralEvent(QObject* parent, | 49 | KOEditorGeneralEvent::KOEditorGeneralEvent(QObject* parent, |
50 | const char* name) : | 50 | const char* name) : |
51 | KOEditorGeneral( parent, name) | 51 | KOEditorGeneral( parent, name) |
52 | { | 52 | { |
53 | mTemplate = false; | 53 | mTemplate = false; |
54 | connect(this,SIGNAL(dateTimesChanged(QDateTime,QDateTime)), | 54 | connect(this,SIGNAL(dateTimesChanged(QDateTime,QDateTime)), |
55 | SLOT(setDuration())); | 55 | SLOT(setDuration())); |
56 | connect(this,SIGNAL(dateTimesChanged(QDateTime,QDateTime)), | 56 | connect(this,SIGNAL(dateTimesChanged(QDateTime,QDateTime)), |
57 | SLOT(emitDateTimeStr())); | 57 | SLOT(emitDateTimeStr())); |
58 | } | 58 | } |
59 | 59 | ||
60 | KOEditorGeneralEvent::~KOEditorGeneralEvent() | 60 | KOEditorGeneralEvent::~KOEditorGeneralEvent() |
61 | { | 61 | { |
62 | } | 62 | } |
63 | 63 | ||
64 | void KOEditorGeneralEvent::finishSetup() | 64 | void KOEditorGeneralEvent::finishSetup() |
65 | { | 65 | { |
66 | 66 | ||
67 | //disabled | 67 | //disabled |
68 | // QWidget::setTabOrder( mSummaryEdit, mLocationEdit ); | 68 | // QWidget::setTabOrder( mSummaryEdit, mLocationEdit ); |
69 | // QWidget::setTabOrder( mLocationEdit, mStartDateEdit ); | 69 | // QWidget::setTabOrder( mLocationEdit, mStartDateEdit ); |
70 | // QWidget::setTabOrder( mStartDateEdit, mStartTimeEdit ); | 70 | // QWidget::setTabOrder( mStartDateEdit, mStartTimeEdit ); |
71 | // QWidget::setTabOrder( mStartTimeEdit, mEndDateEdit ); | 71 | // QWidget::setTabOrder( mStartTimeEdit, mEndDateEdit ); |
72 | // QWidget::setTabOrder( mEndDateEdit, mEndTimeEdit ); | 72 | // QWidget::setTabOrder( mEndDateEdit, mEndTimeEdit ); |
73 | // QWidget::setTabOrder( mEndTimeEdit, mNoTimeButton ); | 73 | // QWidget::setTabOrder( mEndTimeEdit, mNoTimeButton ); |
74 | // QWidget::setTabOrder( mNoTimeButton, mAlarmButton ); | 74 | // QWidget::setTabOrder( mNoTimeButton, mAlarmButton ); |
75 | // QWidget::setTabOrder( mAlarmButton, mAlarmTimeEdit ); | 75 | // QWidget::setTabOrder( mAlarmButton, mAlarmTimeEdit ); |
76 | // QWidget::setTabOrder( mFreeTimeCombo, mCategoriesButton ); | 76 | // QWidget::setTabOrder( mFreeTimeCombo, mCategoriesButton ); |
77 | // QWidget::setTabOrder( mCategoriesButton, mSecrecyCombo ); | 77 | // QWidget::setTabOrder( mCategoriesButton, mSecrecyCombo ); |
78 | // QWidget::setTabOrder( mSecrecyCombo, mDescriptionEdit ); | 78 | // QWidget::setTabOrder( mSecrecyCombo, mDescriptionEdit ); |
79 | 79 | ||
80 | 80 | ||
81 | 81 | ||
82 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); | 82 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); |
83 | mSummaryEdit->setFocus(); | 83 | mSummaryEdit->setFocus(); |
84 | } | 84 | } |
85 | 85 | ||
86 | void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) | 86 | void KOEditorGeneralEvent::initTime(QWidget *parent,QBoxLayout *topLayout) |
87 | { | 87 | { |
88 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); | 88 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); |
89 | 89 | ||
90 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, | 90 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, |
91 | i18n("Date && Time"),parent); | 91 | i18n("Date && Time"),parent); |
92 | timeLayout->addWidget(timeGroupBox); | 92 | timeLayout->addWidget(timeGroupBox); |
93 | 93 | ||
94 | timeGroupBox->layout()->setSpacing( 0 ); | 94 | timeGroupBox->layout()->setSpacing( 0 ); |
95 | timeGroupBox->layout()->setMargin( 5 ); | 95 | timeGroupBox->layout()->setMargin( 5 ); |
96 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); | 96 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); |
97 | 97 | ||
98 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3); | 98 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,2,3); |
99 | layoutTimeBox->setSpacing(topLayout->spacing()); | 99 | layoutTimeBox->setSpacing(topLayout->spacing()); |
100 | 100 | ||
101 | mStartDateLabel = new QLabel(i18n("Start:"),timeBoxFrame); | 101 | mStartDateLabel = new QLabel(i18n("Start:"),timeBoxFrame); |
102 | layoutTimeBox->addWidget(mStartDateLabel,0,0); | 102 | layoutTimeBox->addWidget(mStartDateLabel,0,0); |
103 | 103 | ||
104 | mStartDateEdit = new KDateEdit(timeBoxFrame); | 104 | mStartDateEdit = new KDateEdit(timeBoxFrame); |
105 | layoutTimeBox->addWidget(mStartDateEdit,0,1); | 105 | layoutTimeBox->addWidget(mStartDateEdit,0,1); |
106 | 106 | ||
107 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); | 107 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); |
108 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); | 108 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); |
109 | 109 | ||
110 | 110 | ||
111 | mEndDateLabel = new QLabel(i18n("End:"),timeBoxFrame); | 111 | mEndDateLabel = new QLabel(i18n("End:"),timeBoxFrame); |
112 | layoutTimeBox->addWidget(mEndDateLabel,1,0); | 112 | layoutTimeBox->addWidget(mEndDateLabel,1,0); |
113 | 113 | ||
114 | mEndDateEdit = new KDateEdit(timeBoxFrame); | 114 | mEndDateEdit = new KDateEdit(timeBoxFrame); |
115 | layoutTimeBox->addWidget(mEndDateEdit,1,1); | 115 | layoutTimeBox->addWidget(mEndDateEdit,1,1); |
116 | 116 | ||
117 | mEndTimeEdit = new KOTimeEdit(timeBoxFrame); | 117 | mEndTimeEdit = new KOTimeEdit(timeBoxFrame); |
118 | layoutTimeBox->addWidget(mEndTimeEdit,1,2); | 118 | layoutTimeBox->addWidget(mEndTimeEdit,1,2); |
119 | QWidget* duration = new QWidget( timeBoxFrame ); | 119 | QWidget* duration = new QWidget( timeBoxFrame ); |
120 | QHBoxLayout *flagsBox = new QHBoxLayout( duration ); | 120 | QHBoxLayout *flagsBox = new QHBoxLayout( duration ); |
121 | mNoTimeButton = new QCheckBox(i18n("All day event"),duration); | 121 | mNoTimeButton = new QCheckBox(i18n("All day event"),duration); |
122 | flagsBox->addWidget(mNoTimeButton); | 122 | flagsBox->addWidget(mNoTimeButton); |
123 | connect(mNoTimeButton, SIGNAL(toggled(bool)),SLOT(dontAssociateTime(bool))); | 123 | connect(mNoTimeButton, SIGNAL(toggled(bool)),SLOT(dontAssociateTime(bool))); |
124 | mDurationLabel = new QLabel( duration ); | 124 | mDurationLabel = new QLabel( duration ); |
125 | // if ( KOPrefs::instance()->mCompactDialogs ) { | 125 | // if ( KOPrefs::instance()->mCompactDialogs ) { |
126 | //layoutTimeBox->addMultiCellWidget( mDurationLabel, 3, 3, 0, 3 ); | 126 | //layoutTimeBox->addMultiCellWidget( mDurationLabel, 3, 3, 0, 3 ); |
127 | //} else { | 127 | //} else { |
128 | flagsBox->addWidget( mDurationLabel ); | 128 | flagsBox->addWidget( mDurationLabel ); |
129 | //} | 129 | //} |
130 | flagsBox->setStretchFactor(mDurationLabel, 10 ); | 130 | flagsBox->setStretchFactor(mDurationLabel, 10 ); |
131 | mDurationLabel->setAlignment( AlignRight | AlignVCenter); | 131 | mDurationLabel->setAlignment( AlignRight | AlignVCenter); |
132 | layoutTimeBox->addMultiCellWidget( duration, 2, 2, 0, 3 ); | 132 | layoutTimeBox->addMultiCellWidget( duration, 2, 2, 0, 3 ); |
133 | 133 | ||
134 | // time widgets are checked if they contain a valid time | 134 | // time widgets are checked if they contain a valid time |
135 | connect(mStartTimeEdit, SIGNAL(timeChanged(QTime)), | 135 | connect(mStartTimeEdit, SIGNAL(timeChanged(QTime)), |
136 | this, SLOT(startTimeChanged(QTime))); | 136 | this, SLOT(startTimeChanged(QTime))); |
137 | connect(mEndTimeEdit, SIGNAL(timeChanged(QTime)), | 137 | connect(mEndTimeEdit, SIGNAL(timeChanged(QTime)), |
138 | this, SLOT(endTimeChanged(QTime))); | 138 | this, SLOT(endTimeChanged(QTime))); |
139 | 139 | ||
140 | // date widgets are checked if they contain a valid date | 140 | // date widgets are checked if they contain a valid date |
141 | connect(mStartDateEdit, SIGNAL(dateChanged(QDate)), | 141 | connect(mStartDateEdit, SIGNAL(dateChanged(QDate)), |
142 | this, SLOT(startDateChanged(QDate))); | 142 | this, SLOT(startDateChanged(QDate))); |
143 | connect(mEndDateEdit, SIGNAL(dateChanged(QDate)), | 143 | connect(mEndDateEdit, SIGNAL(dateChanged(QDate)), |
144 | this, SLOT(endDateChanged(QDate))); | 144 | this, SLOT(endDateChanged(QDate))); |
145 | } | 145 | } |
146 | 146 | ||
147 | void KOEditorGeneralEvent::initClass(QWidget *parent,QBoxLayout *topLayout) | 147 | void KOEditorGeneralEvent::initClass(QWidget *parent,QBoxLayout *topLayout) |
148 | { | 148 | { |
149 | QBoxLayout *classLayout = new QHBoxLayout(topLayout); | 149 | QBoxLayout *classLayout = new QHBoxLayout(topLayout); |
150 | 150 | ||
151 | QLabel *freeTimeLabel = new QLabel(i18n("Show time as:"),parent); | 151 | QLabel *freeTimeLabel = new QLabel(i18n("Show time as:"),parent); |
152 | classLayout->addWidget(freeTimeLabel); | 152 | classLayout->addWidget(freeTimeLabel); |
153 | 153 | ||
154 | mFreeTimeCombo = new QComboBox(false, parent); | 154 | mFreeTimeCombo = new QComboBox(false, parent); |
155 | mFreeTimeCombo->insertItem(i18n("Busy")); | 155 | mFreeTimeCombo->insertItem(i18n("Busy")); |
156 | mFreeTimeCombo->insertItem(i18n("Free")); | 156 | mFreeTimeCombo->insertItem(i18n("Free")); |
157 | classLayout->addWidget(mFreeTimeCombo); | 157 | classLayout->addWidget(mFreeTimeCombo); |
158 | } | 158 | } |
159 | 159 | ||
160 | void KOEditorGeneralEvent::timeStuffDisable(bool disable) | 160 | void KOEditorGeneralEvent::timeStuffDisable(bool disable) |
161 | { | 161 | { |
162 | mStartTimeEdit->setEnabled( !disable ); | 162 | mStartTimeEdit->setEnabled( !disable ); |
163 | mEndTimeEdit->setEnabled( !disable ); | 163 | mEndTimeEdit->setEnabled( !disable ); |
164 | 164 | ||
165 | setDuration(); | 165 | setDuration(); |
166 | emitDateTimeStr(); | 166 | emitDateTimeStr(); |
167 | } | 167 | } |
168 | 168 | ||
169 | void KOEditorGeneralEvent::dontAssociateTime(bool noTime) | 169 | void KOEditorGeneralEvent::dontAssociateTime(bool noTime) |
170 | { | 170 | { |
171 | timeStuffDisable(noTime); | 171 | timeStuffDisable(noTime); |
172 | //if(alarmButton->isChecked()) alarmStuffDisable(noTime); | 172 | //if(alarmButton->isChecked()) alarmStuffDisable(noTime); |
173 | allDayChanged(noTime); | 173 | allDayChanged(noTime); |
174 | } | 174 | } |
175 | 175 | ||
176 | void KOEditorGeneralEvent::setDateTimes(QDateTime start, QDateTime end) | 176 | void KOEditorGeneralEvent::setDateTimes(QDateTime start, QDateTime end) |
177 | { | 177 | { |
178 | // kdDebug() << "KOEditorGeneralEvent::setDateTimes(): Start DateTime: " << start.toString() << endl; | 178 | // kdDebug() << "KOEditorGeneralEvent::setDateTimes(): Start DateTime: " << start.toString() << endl; |
179 | if ( !mTemplate ) | 179 | if ( !mTemplate ) |
180 | mStartDateEdit->setDate(start.date()); | 180 | mStartDateEdit->setDate(start.date()); |
181 | // KTimeEdit seems to emit some signals when setTime() is called. | 181 | // KTimeEdit seems to emit some signals when setTime() is called. |
182 | mStartTimeEdit->blockSignals( true ); | 182 | mStartTimeEdit->blockSignals( true ); |
183 | mStartTimeEdit->setTime(start.time()); | 183 | mStartTimeEdit->setTime(start.time()); |
184 | mStartTimeEdit->blockSignals( false ); | 184 | mStartTimeEdit->blockSignals( false ); |
185 | if ( !mTemplate ) | 185 | if ( !mTemplate ) |
186 | mEndDateEdit->setDate(end.date()); | 186 | mEndDateEdit->setDate(end.date()); |
187 | mEndTimeEdit->setTime(end.time()); | 187 | mEndTimeEdit->setTime(end.time()); |
188 | 188 | ||
189 | mCurrStartDateTime = start; | 189 | mCurrStartDateTime = start; |
190 | mCurrEndDateTime = end; | 190 | mCurrEndDateTime = end; |
191 | 191 | ||
192 | setDuration(); | 192 | setDuration(); |
193 | emitDateTimeStr(); | 193 | emitDateTimeStr(); |
194 | } | 194 | } |
195 | 195 | ||
196 | void KOEditorGeneralEvent::startTimeChanged(QTime newtime) | 196 | void KOEditorGeneralEvent::startTimeChanged(QTime newtime) |
197 | { | 197 | { |
198 | kdDebug() << "KOEditorGeneralEvent::startTimeChanged() " << newtime.toString() << endl; | 198 | kdDebug() << "KOEditorGeneralEvent::startTimeChanged() " << newtime.toString() << endl; |
199 | 199 | ||
200 | int secsep = mCurrStartDateTime.secsTo(mCurrEndDateTime); | 200 | int secsep = mCurrStartDateTime.secsTo(mCurrEndDateTime); |
201 | 201 | ||
202 | mCurrStartDateTime.setTime(newtime); | 202 | mCurrStartDateTime.setTime(newtime); |
203 | 203 | ||
204 | // adjust end time so that the event has the same duration as before. | 204 | // adjust end time so that the event has the same duration as before. |
205 | mCurrEndDateTime = mCurrStartDateTime.addSecs(secsep); | 205 | mCurrEndDateTime = mCurrStartDateTime.addSecs(secsep); |
206 | mEndTimeEdit->setTime(mCurrEndDateTime.time()); | 206 | mEndTimeEdit->setTime(mCurrEndDateTime.time()); |
207 | mEndDateEdit->setDate(mCurrEndDateTime.date()); | 207 | mEndDateEdit->setDate(mCurrEndDateTime.date()); |
208 | 208 | ||
209 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); | 209 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); |
210 | } | 210 | } |
211 | 211 | ||
212 | void KOEditorGeneralEvent::endTimeChanged(QTime newtime) | 212 | void KOEditorGeneralEvent::endTimeChanged(QTime newtime) |
213 | { | 213 | { |
214 | // kdDebug() << "KOEditorGeneralEvent::endTimeChanged " << newtime.toString() << endl; | 214 | // kdDebug() << "KOEditorGeneralEvent::endTimeChanged " << newtime.toString() << endl; |
215 | 215 | ||
216 | QDateTime newdt(mCurrEndDateTime.date(), newtime); | 216 | QDateTime newdt(mCurrEndDateTime.date(), newtime); |
217 | mCurrEndDateTime = newdt; | 217 | mCurrEndDateTime = newdt; |
218 | 218 | ||
219 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); | 219 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); |
220 | } | 220 | } |
221 | 221 | ||
222 | void KOEditorGeneralEvent::startDateChanged(QDate newdate) | 222 | void KOEditorGeneralEvent::startDateChanged(QDate newdate) |
223 | { | 223 | { |
224 | int daysep = mCurrStartDateTime.daysTo(mCurrEndDateTime); | 224 | int daysep = mCurrStartDateTime.daysTo(mCurrEndDateTime); |
225 | 225 | ||
226 | mCurrStartDateTime.setDate(newdate); | 226 | mCurrStartDateTime.setDate(newdate); |
227 | 227 | ||
228 | // adjust end date so that the event has the same duration as before | 228 | // adjust end date so that the event has the same duration as before |
229 | mCurrEndDateTime.setDate(mCurrStartDateTime.date().addDays(daysep)); | 229 | mCurrEndDateTime.setDate(mCurrStartDateTime.date().addDays(daysep)); |
230 | mEndDateEdit->setDate(mCurrEndDateTime.date()); | 230 | mEndDateEdit->setDate(mCurrEndDateTime.date()); |
231 | 231 | ||
232 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); | 232 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); |
233 | } | 233 | } |
234 | 234 | ||
235 | void KOEditorGeneralEvent::endDateChanged(QDate newdate) | 235 | void KOEditorGeneralEvent::endDateChanged(QDate newdate) |
236 | { | 236 | { |
237 | QDateTime newdt(newdate, mCurrEndDateTime.time()); | 237 | QDateTime newdt(newdate, mCurrEndDateTime.time()); |
238 | 238 | ||
239 | if(newdt < mCurrStartDateTime) { | 239 | if(newdt < mCurrStartDateTime) { |
240 | // oops, we can't let that happen. | 240 | // oops, we can't let that happen. |
241 | newdt = mCurrStartDateTime; | 241 | newdt = mCurrStartDateTime; |
242 | mEndDateEdit->setDate(newdt.date()); | 242 | mEndDateEdit->setDate(newdt.date()); |
243 | mEndTimeEdit->setTime(newdt.time()); | 243 | mEndTimeEdit->setTime(newdt.time()); |
244 | } | 244 | } |
245 | mCurrEndDateTime = newdt; | 245 | mCurrEndDateTime = newdt; |
246 | 246 | ||
247 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); | 247 | emit dateTimesChanged(mCurrStartDateTime,mCurrEndDateTime); |
248 | } | 248 | } |
249 | 249 | ||
250 | void KOEditorGeneralEvent::setDefaults(QDateTime from,QDateTime to,bool allDay) | 250 | void KOEditorGeneralEvent::setDefaults(QDateTime from,QDateTime to,bool allDay) |
251 | { | 251 | { |
252 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); | 252 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); |
253 | mLocationEdit->load(KOLocationBox::LOCATION); | 253 | mLocationEdit->load(KOLocationBox::LOCATION); |
254 | KOEditorGeneral::setDefaults(allDay); | 254 | KOEditorGeneral::setDefaults(allDay); |
255 | 255 | ||
256 | mNoTimeButton->setChecked(allDay); | 256 | mNoTimeButton->setChecked(allDay); |
257 | timeStuffDisable(allDay); | 257 | timeStuffDisable(allDay); |
258 | mFreeTimeCombo->setCurrentItem( 0 ); | 258 | mFreeTimeCombo->setCurrentItem( 0 ); |
259 | setDateTimes(from,to); | 259 | setDateTimes(from,to); |
260 | } | 260 | } |
261 | 261 | ||
262 | void KOEditorGeneralEvent::readEvent( Event *event, bool tmpl ) | 262 | void KOEditorGeneralEvent::readEvent( Event *event, bool tmpl ) |
263 | { | 263 | { |
264 | QString tmpStr; | 264 | QString tmpStr; |
265 | 265 | ||
266 | mTemplate = tmpl; | 266 | mTemplate = tmpl; |
267 | // the rest is for the events only | 267 | // the rest is for the events only |
268 | mNoTimeButton->setChecked(event->doesFloat()); | 268 | mNoTimeButton->setChecked(event->doesFloat()); |
269 | timeStuffDisable(event->doesFloat()); | 269 | timeStuffDisable(event->doesFloat()); |
270 | 270 | ||
271 | setDateTimes(event->dtStart(),event->dtEnd()); | 271 | setDateTimes(event->dtStart(),event->dtEnd()); |
272 | 272 | ||
273 | mTemplate = false; | 273 | mTemplate = false; |
274 | switch( event->transparency() ) { | 274 | switch( event->transparency() ) { |
275 | case Event::Transparent: | 275 | case Event::Transparent: |
276 | mFreeTimeCombo->setCurrentItem(1); | 276 | mFreeTimeCombo->setCurrentItem(1); |
277 | break; | 277 | break; |
278 | case Event::Opaque: | 278 | case Event::Opaque: |
279 | mFreeTimeCombo->setCurrentItem(0); | 279 | mFreeTimeCombo->setCurrentItem(0); |
280 | break; | 280 | break; |
281 | } | 281 | } |
282 | 282 | ||
283 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); | 283 | mSummaryEdit->load(KOLocationBox::SUMMARYEVENT); |
284 | mLocationEdit->load(KOLocationBox::LOCATION); | 284 | mLocationEdit->load(KOLocationBox::LOCATION); |
285 | readIncidence(event); | 285 | readIncidence(event); |
286 | } | 286 | } |
287 | 287 | ||
288 | void KOEditorGeneralEvent::writeEvent(Event *event) | 288 | void KOEditorGeneralEvent::writeEvent(Event *event) |
289 | { | 289 | { |
290 | // kdDebug() << "KOEditorGeneralEvent::writeEvent()" << endl; | 290 | // kdDebug() << "KOEditorGeneralEvent::writeEvent()" << endl; |
291 | 291 | ||
292 | writeIncidence(event); | 292 | writeIncidence(event); |
293 | 293 | ||
294 | QDate tmpDate; | 294 | QDate tmpDate; |
295 | QTime tmpTime; | 295 | QTime tmpTime; |
296 | QDateTime tmpDT; | 296 | QDateTime tmpDT; |
297 | 297 | ||
298 | // temp. until something better happens. | 298 | // temp. until something better happens. |
299 | QString tmpStr; | 299 | QString tmpStr; |
300 | 300 | ||
301 | if (mNoTimeButton->isChecked()) { | 301 | if (mNoTimeButton->isChecked()) { |
302 | event->setFloats(true); | 302 | event->setFloats(true); |
303 | // need to change this. | 303 | // need to change this. |
304 | tmpDate = mStartDateEdit->date(); | 304 | tmpDate = mStartDateEdit->date(); |
305 | tmpTime.setHMS(0,0,0); | 305 | tmpTime.setHMS(0,0,0); |
306 | tmpDT.setDate(tmpDate); | 306 | tmpDT.setDate(tmpDate); |
307 | tmpDT.setTime(tmpTime); | 307 | tmpDT.setTime(tmpTime); |
308 | event->setDtStart(tmpDT); | 308 | event->setDtStart(tmpDT); |
309 | 309 | ||
310 | tmpDate = mEndDateEdit->date(); | 310 | tmpDate = mEndDateEdit->date(); |
311 | tmpTime.setHMS(0,0,0); | 311 | tmpTime.setHMS(0,0,0); |
312 | tmpDT.setDate(tmpDate); | 312 | tmpDT.setDate(tmpDate); |
313 | tmpDT.setTime(tmpTime); | 313 | tmpDT.setTime(tmpTime); |
314 | event->setDtEnd(tmpDT); | 314 | event->setDtEnd(tmpDT); |
315 | } else { | 315 | } else { |
316 | event->setFloats(false); | 316 | event->setFloats(false); |
317 | 317 | ||
318 | // set date/time end | 318 | // set date/time end |
319 | tmpDate = mEndDateEdit->date(); | 319 | tmpDate = mEndDateEdit->date(); |
320 | tmpTime = mEndTimeEdit->getTime(); | 320 | tmpTime = mEndTimeEdit->getTime(); |
321 | tmpDT.setDate(tmpDate); | 321 | tmpDT.setDate(tmpDate); |
322 | tmpDT.setTime(tmpTime); | 322 | tmpDT.setTime(tmpTime); |
323 | event->setDtEnd(tmpDT); | 323 | event->setDtEnd(tmpDT); |
324 | 324 | ||
325 | // set date/time start | 325 | // set date/time start |
326 | tmpDate = mStartDateEdit->date(); | 326 | tmpDate = mStartDateEdit->date(); |
327 | tmpTime = mStartTimeEdit->getTime(); | 327 | tmpTime = mStartTimeEdit->getTime(); |
328 | tmpDT.setDate(tmpDate); | 328 | tmpDT.setDate(tmpDate); |
329 | tmpDT.setTime(tmpTime); | 329 | tmpDT.setTime(tmpTime); |
330 | event->setDtStart(tmpDT); | 330 | event->setDtStart(tmpDT); |
331 | } // check for float | 331 | } // check for float |
332 | mSummaryEdit->save(KOLocationBox::SUMMARYEVENT); | 332 | mSummaryEdit->save(KOLocationBox::SUMMARYEVENT); |
333 | 333 | ||
334 | event->setTransparency(mFreeTimeCombo->currentItem() > 0 | 334 | event->setTransparency(mFreeTimeCombo->currentItem() > 0 |
335 | ? KCal::Event::Transparent | 335 | ? KCal::Event::Transparent |
336 | : KCal::Event::Opaque); | 336 | : KCal::Event::Opaque); |
337 | 337 | ||
338 | // kdDebug() << "KOEditorGeneralEvent::writeEvent() done" << endl; | 338 | // kdDebug() << "KOEditorGeneralEvent::writeEvent() done" << endl; |
339 | } | 339 | } |
340 | 340 | ||
341 | void KOEditorGeneralEvent::setDuration() | 341 | void KOEditorGeneralEvent::setDuration() |
342 | { | 342 | { |
343 | QString tmpStr = "", catStr; | 343 | QString tmpStr = "", catStr; |
344 | int hourdiff, minutediff; | 344 | int hourdiff, minutediff; |
345 | // end<date is an accepted temporary state while typing, but don't show | 345 | // end<date is an accepted temporary state while typing, but don't show |
346 | // any duration if this happens | 346 | // any duration if this happens |
347 | if(mCurrEndDateTime >= mCurrStartDateTime) { | 347 | if(mCurrEndDateTime >= mCurrStartDateTime) { |
348 | 348 | ||
349 | if (mNoTimeButton->isChecked()) { | 349 | if (mNoTimeButton->isChecked()) { |
350 | int daydiff = mCurrStartDateTime.date().daysTo(mCurrEndDateTime.date()) + 1; | 350 | int daydiff = mCurrStartDateTime.date().daysTo(mCurrEndDateTime.date()) + 1; |
351 | tmpStr = i18n("Duration: "); | 351 | tmpStr = i18n("Duration: "); |
352 | tmpStr.append(i18n("1 Day","%n Days",daydiff)); | 352 | tmpStr.append(i18n("1 Day","%n Days",daydiff)); |
353 | } else { | 353 | } else { |
354 | int secto = mCurrStartDateTime.secsTo( mCurrEndDateTime ); | 354 | int secto = mCurrStartDateTime.secsTo( mCurrEndDateTime ); |
355 | hourdiff = secto / 3600; | 355 | hourdiff = secto / 3600; |
356 | minutediff = (secto/60 ) % 60; | 356 | minutediff = (secto/60 ) % 60; |
357 | if (hourdiff || minutediff){ | 357 | if (hourdiff || minutediff){ |
358 | tmpStr = i18n("Duration: "); | 358 | tmpStr = i18n("Duration: "); |
359 | if (hourdiff){ | 359 | if (hourdiff){ |
360 | catStr = i18n("1 h","%n h",hourdiff); | 360 | catStr = i18n("1 h","%n h",hourdiff); |
361 | tmpStr.append(catStr); | 361 | tmpStr.append(catStr); |
362 | } | 362 | } |
363 | if (hourdiff && minutediff){ | 363 | if (hourdiff && minutediff){ |
364 | tmpStr += i18n(", "); | 364 | tmpStr += i18n(", "); |
365 | } | 365 | } |
366 | if (minutediff){ | 366 | if (minutediff){ |
367 | catStr = i18n("1 min","%n min",minutediff); | 367 | catStr = i18n("1 min","%n min",minutediff); |
368 | tmpStr += catStr; | 368 | tmpStr += catStr; |
369 | } | 369 | } |
370 | } else tmpStr = ""; | 370 | } else tmpStr = ""; |
371 | } | 371 | } |
372 | } | 372 | } |
373 | mDurationLabel->setText(tmpStr); | 373 | mDurationLabel->setText(tmpStr); |
374 | } | 374 | } |
375 | 375 | ||
376 | void KOEditorGeneralEvent::emitDateTimeStr() | 376 | void KOEditorGeneralEvent::emitDateTimeStr() |
377 | { | 377 | { |
378 | KLocale *l = KGlobal::locale(); | 378 | KLocale *l = KGlobal::locale(); |
379 | 379 | QString startString = ""; | |
380 | QString from,to; | 380 | if ( mCurrStartDateTime.date() < mCurrEndDateTime.date() ) { |
381 | if (mNoTimeButton->isChecked()) { | 381 | if ( mNoTimeButton->isChecked() ) { |
382 | from = l->formatDate(mCurrStartDateTime.date()); | 382 | startString = i18n("From: ") + l->formatDate(mCurrStartDateTime.date() ); |
383 | to = l->formatDate(mCurrEndDateTime.date()); | 383 | startString += "\n"+i18n("To: ")+ l->formatDate(mCurrEndDateTime.date()); |
384 | |||
385 | } else { | ||
386 | startString = i18n("From: ") +l->formatDateTime(mCurrStartDateTime, false); | ||
387 | startString += "\n"+i18n("To: ")+l->formatDateTime(mCurrEndDateTime, false); | ||
388 | } | ||
384 | } else { | 389 | } else { |
385 | from = l->formatDateTime(mCurrStartDateTime); | 390 | if ( mNoTimeButton->isChecked() ) { |
386 | to = l->formatDateTime(mCurrEndDateTime); | 391 | startString = i18n("On: ") + l->formatDate(mCurrStartDateTime.date() ); |
392 | } else { | ||
393 | startString = i18n("From: ") + KGlobal::locale()->formatTime(mCurrStartDateTime.time())+ | ||
394 | "-"+KGlobal::locale()->formatTime(mCurrEndDateTime.time()); | ||
395 | startString += i18n(" on ")+KGlobal::locale()->formatDate( mCurrStartDateTime.date(), true); | ||
396 | } | ||
387 | } | 397 | } |
388 | 398 | startString +="\n"+mDurationLabel->text(); | |
389 | QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to) | 399 | emit dateTimeStrChanged(startString); |
390 | .arg(mDurationLabel->text()); | ||
391 | |||
392 | emit dateTimeStrChanged(str); | ||
393 | } | 400 | } |
394 | 401 | ||
395 | bool KOEditorGeneralEvent::validateInput() | 402 | bool KOEditorGeneralEvent::validateInput() |
396 | { | 403 | { |
397 | 404 | ||
398 | if (!mStartDateEdit->inputIsValid()) { | 405 | if (!mStartDateEdit->inputIsValid()) { |
399 | KMessageBox::sorry( 0, | 406 | KMessageBox::sorry( 0, |
400 | i18n("Please specify a valid start date,\nfor example '%1'.") | 407 | i18n("Please specify a valid start date,\nfor example '%1'.") |
401 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); | 408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
402 | return false; | 409 | return false; |
403 | } | 410 | } |
404 | 411 | ||
405 | if (!mEndDateEdit->inputIsValid()) { | 412 | if (!mEndDateEdit->inputIsValid()) { |
406 | KMessageBox::sorry( 0, | 413 | KMessageBox::sorry( 0, |
407 | i18n("Please specify a valid end date,\nfor example '%1'.") | 414 | i18n("Please specify a valid end date,\nfor example '%1'.") |
408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); | 415 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
409 | return false; | 416 | return false; |
410 | } | 417 | } |
411 | 418 | ||
412 | QDateTime startDt,endDt; | 419 | QDateTime startDt,endDt; |
413 | startDt.setDate(mStartDateEdit->date()); | 420 | startDt.setDate(mStartDateEdit->date()); |
414 | endDt.setDate(mEndDateEdit->date()); | 421 | endDt.setDate(mEndDateEdit->date()); |
415 | if (!mNoTimeButton->isChecked()) { | 422 | if (!mNoTimeButton->isChecked()) { |
416 | startDt.setTime(mStartTimeEdit->getTime()); | 423 | startDt.setTime(mStartTimeEdit->getTime()); |
417 | endDt.setTime(mEndTimeEdit->getTime()); | 424 | endDt.setTime(mEndTimeEdit->getTime()); |
418 | } | 425 | } |
419 | 426 | ||
420 | if (startDt > endDt) { | 427 | if (startDt > endDt) { |
421 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" | 428 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" |
422 | "Please correct dates and times.")); | 429 | "Please correct dates and times.")); |
423 | return false; | 430 | return false; |
424 | } | 431 | } |
425 | 432 | ||
426 | return KOEditorGeneral::validateInput(); | 433 | return KOEditorGeneral::validateInput(); |
427 | } | 434 | } |
diff --git a/korganizer/koeditorrecurrence.cpp b/korganizer/koeditorrecurrence.cpp index bf81b01..01c5773 100644 --- a/korganizer/koeditorrecurrence.cpp +++ b/korganizer/koeditorrecurrence.cpp | |||
@@ -348,761 +348,761 @@ RecurYearly::RecurYearly( QWidget *parent, const char *name ) : | |||
348 | void RecurYearly::setByDay( int doy ) | 348 | void RecurYearly::setByDay( int doy ) |
349 | { | 349 | { |
350 | mByDayRadio->setChecked( true ); | 350 | mByDayRadio->setChecked( true ); |
351 | mDayOfLabel->setText(i18n("%1 of the year").arg( doy ) ); | 351 | mDayOfLabel->setText(i18n("%1 of the year").arg( doy ) ); |
352 | } | 352 | } |
353 | 353 | ||
354 | void RecurYearly::setByMonth( int month, int day ) | 354 | void RecurYearly::setByMonth( int month, int day ) |
355 | { | 355 | { |
356 | mByMonthRadio->setChecked( true ); | 356 | mByMonthRadio->setChecked( true ); |
357 | mByMonthCombo->setCurrentItem( month - 1 ); | 357 | mByMonthCombo->setCurrentItem( month - 1 ); |
358 | mByDayLabel->setText(i18n("%1 of ").arg( day ) ); | 358 | mByDayLabel->setText(i18n("%1 of ").arg( day ) ); |
359 | mDay = day; | 359 | mDay = day; |
360 | } | 360 | } |
361 | 361 | ||
362 | bool RecurYearly::byMonth() | 362 | bool RecurYearly::byMonth() |
363 | { | 363 | { |
364 | return mByMonthRadio->isChecked(); | 364 | return mByMonthRadio->isChecked(); |
365 | } | 365 | } |
366 | 366 | ||
367 | bool RecurYearly::byDay() | 367 | bool RecurYearly::byDay() |
368 | { | 368 | { |
369 | return mByDayRadio->isChecked(); | 369 | return mByDayRadio->isChecked(); |
370 | } | 370 | } |
371 | 371 | ||
372 | int RecurYearly::month() | 372 | int RecurYearly::month() |
373 | { | 373 | { |
374 | return mByMonthCombo->currentItem() + 1; | 374 | return mByMonthCombo->currentItem() + 1; |
375 | } | 375 | } |
376 | int RecurYearly::day() | 376 | int RecurYearly::day() |
377 | { | 377 | { |
378 | return mDay;//mByDayCombo->currentItem() + 1; | 378 | return mDay;//mByDayCombo->currentItem() + 1; |
379 | } | 379 | } |
380 | 380 | ||
381 | //////////////////////////// ExceptionsWidget ////////////////////////// | 381 | //////////////////////////// ExceptionsWidget ////////////////////////// |
382 | 382 | ||
383 | ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) : | 383 | ExceptionsWidget::ExceptionsWidget( QWidget *parent, const char *name ) : |
384 | QWidget( parent, name ) | 384 | QWidget( parent, name ) |
385 | { | 385 | { |
386 | QBoxLayout *topLayout = new QVBoxLayout( this ); | 386 | QBoxLayout *topLayout = new QVBoxLayout( this ); |
387 | 387 | ||
388 | QGroupBox *groupBox = new QGroupBox( 1, Horizontal, i18n("Exceptions"), | 388 | QGroupBox *groupBox = new QGroupBox( 1, Horizontal, i18n("Exceptions"), |
389 | this ); | 389 | this ); |
390 | topLayout->addWidget( groupBox ); | 390 | topLayout->addWidget( groupBox ); |
391 | 391 | ||
392 | QWidget *box = new QWidget( groupBox ); | 392 | QWidget *box = new QWidget( groupBox ); |
393 | 393 | ||
394 | QGridLayout *boxLayout = new QGridLayout( box ); | 394 | QGridLayout *boxLayout = new QGridLayout( box ); |
395 | 395 | ||
396 | mExceptionDateEdit = new KDateEdit( box ); | 396 | mExceptionDateEdit = new KDateEdit( box ); |
397 | boxLayout->addWidget( mExceptionDateEdit, 0, 0 ); | 397 | boxLayout->addWidget( mExceptionDateEdit, 0, 0 ); |
398 | 398 | ||
399 | QPushButton *addExceptionButton = new QPushButton( i18n("Add"), box ); | 399 | QPushButton *addExceptionButton = new QPushButton( i18n("Add"), box ); |
400 | boxLayout->addWidget( addExceptionButton, 1, 0 ); | 400 | boxLayout->addWidget( addExceptionButton, 1, 0 ); |
401 | QPushButton *changeExceptionButton = new QPushButton( i18n("Change"), box ); | 401 | QPushButton *changeExceptionButton = new QPushButton( i18n("Change"), box ); |
402 | boxLayout->addWidget( changeExceptionButton, 2, 0 ); | 402 | boxLayout->addWidget( changeExceptionButton, 2, 0 ); |
403 | QPushButton *deleteExceptionButton = new QPushButton( i18n("Delete"), box ); | 403 | QPushButton *deleteExceptionButton = new QPushButton( i18n("Delete"), box ); |
404 | boxLayout->addWidget( deleteExceptionButton, 3, 0 ); | 404 | boxLayout->addWidget( deleteExceptionButton, 3, 0 ); |
405 | 405 | ||
406 | mExceptionList = new QListBox( box ); | 406 | mExceptionList = new QListBox( box ); |
407 | boxLayout->addMultiCellWidget( mExceptionList, 0, 3, 1, 1 ); | 407 | boxLayout->addMultiCellWidget( mExceptionList, 0, 3, 1, 1 ); |
408 | 408 | ||
409 | boxLayout->setRowStretch( 4, 1 ); | 409 | boxLayout->setRowStretch( 4, 1 ); |
410 | boxLayout->setColStretch( 1, 3 ); | 410 | boxLayout->setColStretch( 1, 3 ); |
411 | 411 | ||
412 | connect( addExceptionButton, SIGNAL( clicked() ), | 412 | connect( addExceptionButton, SIGNAL( clicked() ), |
413 | SLOT( addException() ) ); | 413 | SLOT( addException() ) ); |
414 | connect( changeExceptionButton, SIGNAL( clicked() ), | 414 | connect( changeExceptionButton, SIGNAL( clicked() ), |
415 | SLOT( changeException() ) ); | 415 | SLOT( changeException() ) ); |
416 | connect( deleteExceptionButton, SIGNAL( clicked() ), | 416 | connect( deleteExceptionButton, SIGNAL( clicked() ), |
417 | SLOT( deleteException() ) ); | 417 | SLOT( deleteException() ) ); |
418 | if ( QApplication::desktop()->width() < 480 ) { | 418 | if ( QApplication::desktop()->width() < 480 ) { |
419 | setMinimumWidth( 220 ); | 419 | setMinimumWidth( 220 ); |
420 | } else { | 420 | } else { |
421 | setMinimumWidth( 440 ); | 421 | setMinimumWidth( 440 ); |
422 | mExceptionDateEdit->setMinimumWidth( 200 ); | 422 | mExceptionDateEdit->setMinimumWidth( 200 ); |
423 | } | 423 | } |
424 | } | 424 | } |
425 | 425 | ||
426 | void ExceptionsWidget::setDefaults( const QDateTime &from ) | 426 | void ExceptionsWidget::setDefaults( const QDateTime &from ) |
427 | { | 427 | { |
428 | mExceptionDateEdit->setDate( from.date() ); | 428 | mExceptionDateEdit->setDate( from.date() ); |
429 | } | 429 | } |
430 | 430 | ||
431 | void ExceptionsWidget::addException() | 431 | void ExceptionsWidget::addException() |
432 | { | 432 | { |
433 | QDate date = mExceptionDateEdit->date(); | 433 | QDate date = mExceptionDateEdit->date(); |
434 | QString dateStr = KGlobal::locale()->formatDate( date ); | 434 | QString dateStr = KGlobal::locale()->formatDate( date ); |
435 | if( !mExceptionList->findItem( dateStr ) ) { | 435 | if( !mExceptionList->findItem( dateStr ) ) { |
436 | mExceptionDates.append( date ); | 436 | mExceptionDates.append( date ); |
437 | mExceptionList->insertItem( dateStr ); | 437 | mExceptionList->insertItem( dateStr ); |
438 | } | 438 | } |
439 | } | 439 | } |
440 | 440 | ||
441 | void ExceptionsWidget::changeException() | 441 | void ExceptionsWidget::changeException() |
442 | { | 442 | { |
443 | int pos = mExceptionList->currentItem(); | 443 | int pos = mExceptionList->currentItem(); |
444 | if ( pos < 0 ) return; | 444 | if ( pos < 0 ) return; |
445 | 445 | ||
446 | QDate date = mExceptionDateEdit->date(); | 446 | QDate date = mExceptionDateEdit->date(); |
447 | mExceptionDates[ pos ] = date; | 447 | mExceptionDates[ pos ] = date; |
448 | mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos ); | 448 | mExceptionList->changeItem( KGlobal::locale()->formatDate( date ), pos ); |
449 | } | 449 | } |
450 | 450 | ||
451 | void ExceptionsWidget::deleteException() | 451 | void ExceptionsWidget::deleteException() |
452 | { | 452 | { |
453 | int pos = mExceptionList->currentItem(); | 453 | int pos = mExceptionList->currentItem(); |
454 | if ( pos < 0 ) return; | 454 | if ( pos < 0 ) return; |
455 | 455 | ||
456 | mExceptionDates.remove( mExceptionDates.at( pos ) ); | 456 | mExceptionDates.remove( mExceptionDates.at( pos ) ); |
457 | mExceptionList->removeItem( pos ); | 457 | mExceptionList->removeItem( pos ); |
458 | } | 458 | } |
459 | 459 | ||
460 | void ExceptionsWidget::setDates( const DateList &dates ) | 460 | void ExceptionsWidget::setDates( const DateList &dates ) |
461 | { | 461 | { |
462 | mExceptionList->clear(); | 462 | mExceptionList->clear(); |
463 | mExceptionDates.clear(); | 463 | mExceptionDates.clear(); |
464 | DateList::ConstIterator dit; | 464 | DateList::ConstIterator dit; |
465 | for ( dit = dates.begin(); dit != dates.end(); ++dit ) { | 465 | for ( dit = dates.begin(); dit != dates.end(); ++dit ) { |
466 | mExceptionList->insertItem( KGlobal::locale()->formatDate(* dit ) ); | 466 | mExceptionList->insertItem( KGlobal::locale()->formatDate(* dit ) ); |
467 | mExceptionDates.append( *dit ); | 467 | mExceptionDates.append( *dit ); |
468 | } | 468 | } |
469 | } | 469 | } |
470 | 470 | ||
471 | DateList ExceptionsWidget::dates() | 471 | DateList ExceptionsWidget::dates() |
472 | { | 472 | { |
473 | return mExceptionDates; | 473 | return mExceptionDates; |
474 | } | 474 | } |
475 | 475 | ||
476 | ///////////////////////// ExceptionsDialog /////////////////////////// | 476 | ///////////////////////// ExceptionsDialog /////////////////////////// |
477 | 477 | ||
478 | ExceptionsDialog::ExceptionsDialog( QWidget *parent, const char *name ) : | 478 | ExceptionsDialog::ExceptionsDialog( QWidget *parent, const char *name ) : |
479 | KDialogBase( parent, name, true, i18n("Edit exceptions"), Ok|Cancel ) | 479 | KDialogBase( parent, name, true, i18n("Edit exceptions"), Ok|Cancel ) |
480 | { | 480 | { |
481 | mExceptions = new ExceptionsWidget( this ); | 481 | mExceptions = new ExceptionsWidget( this ); |
482 | setMainWidget( mExceptions ); | 482 | setMainWidget( mExceptions ); |
483 | resize(220,10); | 483 | resize(220,10); |
484 | } | 484 | } |
485 | 485 | ||
486 | void ExceptionsDialog::setDefaults( const QDateTime &from ) | 486 | void ExceptionsDialog::setDefaults( const QDateTime &from ) |
487 | { | 487 | { |
488 | mExceptions->setDefaults( from ); | 488 | mExceptions->setDefaults( from ); |
489 | } | 489 | } |
490 | 490 | ||
491 | void ExceptionsDialog::setDates( const DateList &dates ) | 491 | void ExceptionsDialog::setDates( const DateList &dates ) |
492 | { | 492 | { |
493 | mExceptions->setDates( dates ); | 493 | mExceptions->setDates( dates ); |
494 | } | 494 | } |
495 | 495 | ||
496 | DateList ExceptionsDialog::dates() | 496 | DateList ExceptionsDialog::dates() |
497 | { | 497 | { |
498 | return mExceptions->dates(); | 498 | return mExceptions->dates(); |
499 | } | 499 | } |
500 | 500 | ||
501 | ///////////////////////// RecurrenceRangeWidget /////////////////////////// | 501 | ///////////////////////// RecurrenceRangeWidget /////////////////////////// |
502 | 502 | ||
503 | RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent, | 503 | RecurrenceRangeWidget::RecurrenceRangeWidget( QWidget *parent, |
504 | const char *name ) | 504 | const char *name ) |
505 | : QWidget( parent, name ) | 505 | : QWidget( parent, name ) |
506 | { | 506 | { |
507 | QBoxLayout *topLayout = new QVBoxLayout( this ); | 507 | QBoxLayout *topLayout = new QVBoxLayout( this ); |
508 | 508 | ||
509 | mRangeGroupBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Range"), | 509 | mRangeGroupBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Range"), |
510 | this ); | 510 | this ); |
511 | topLayout->addWidget( mRangeGroupBox ); | 511 | topLayout->addWidget( mRangeGroupBox ); |
512 | 512 | ||
513 | QWidget *rangeBox = new QWidget( mRangeGroupBox ); | 513 | QWidget *rangeBox = new QWidget( mRangeGroupBox ); |
514 | QVBoxLayout *rangeLayout = new QVBoxLayout( rangeBox ); | 514 | QVBoxLayout *rangeLayout = new QVBoxLayout( rangeBox ); |
515 | rangeLayout->setSpacing( KDialog::spacingHint() ); | 515 | rangeLayout->setSpacing( KDialog::spacingHint() ); |
516 | rangeLayout->setMargin( KDialog::marginHintSmall() ); | 516 | rangeLayout->setMargin( KDialog::marginHintSmall() ); |
517 | 517 | ||
518 | mStartDateLabel = new QLabel( i18n("Begin on:"), rangeBox ); | 518 | mStartDateLabel = new QLabel( i18n("Begin on:"), rangeBox ); |
519 | rangeLayout->addWidget( mStartDateLabel ); | 519 | rangeLayout->addWidget( mStartDateLabel ); |
520 | 520 | ||
521 | QButtonGroup *rangeButtonGroup = new QButtonGroup; | 521 | QButtonGroup *rangeButtonGroup = new QButtonGroup; |
522 | 522 | ||
523 | mNoEndDateButton = new QRadioButton( i18n("No ending date"), rangeBox ); | 523 | mNoEndDateButton = new QRadioButton( i18n("No ending date"), rangeBox ); |
524 | rangeButtonGroup->insert( mNoEndDateButton ); | 524 | rangeButtonGroup->insert( mNoEndDateButton ); |
525 | rangeLayout->addWidget( mNoEndDateButton ); | 525 | rangeLayout->addWidget( mNoEndDateButton ); |
526 | 526 | ||
527 | QBoxLayout *durationLayout = new QHBoxLayout( rangeLayout ); | 527 | QBoxLayout *durationLayout = new QHBoxLayout( rangeLayout ); |
528 | durationLayout->setSpacing( KDialog::spacingHint() ); | 528 | durationLayout->setSpacing( KDialog::spacingHint() ); |
529 | 529 | ||
530 | mEndDurationButton = new QRadioButton( i18n("End after"), rangeBox ); | 530 | mEndDurationButton = new QRadioButton( i18n("End after"), rangeBox ); |
531 | rangeButtonGroup->insert( mEndDurationButton ); | 531 | rangeButtonGroup->insert( mEndDurationButton ); |
532 | durationLayout->addWidget( mEndDurationButton ); | 532 | durationLayout->addWidget( mEndDurationButton ); |
533 | 533 | ||
534 | mEndDurationEdit = new QSpinBox( 1, 9999, 1, rangeBox ); | 534 | mEndDurationEdit = new QSpinBox( 1, 9999, 1, rangeBox ); |
535 | durationLayout->addWidget( mEndDurationEdit ); | 535 | durationLayout->addWidget( mEndDurationEdit ); |
536 | 536 | ||
537 | QLabel *endDurationLabel = new QLabel( i18n("occurrence(s)"), rangeBox ); | 537 | QLabel *endDurationLabel = new QLabel( i18n("occurrence(s)"), rangeBox ); |
538 | durationLayout ->addWidget( endDurationLabel ); | 538 | durationLayout ->addWidget( endDurationLabel ); |
539 | 539 | ||
540 | QBoxLayout *endDateLayout = new QHBoxLayout( rangeLayout ); | 540 | QBoxLayout *endDateLayout = new QHBoxLayout( rangeLayout ); |
541 | endDateLayout->setSpacing( KDialog::spacingHint() ); | 541 | endDateLayout->setSpacing( KDialog::spacingHint() ); |
542 | 542 | ||
543 | mEndDateButton = new QRadioButton( i18n("End by:"), rangeBox ); | 543 | mEndDateButton = new QRadioButton( i18n("End by:"), rangeBox ); |
544 | rangeButtonGroup->insert( mEndDateButton ); | 544 | rangeButtonGroup->insert( mEndDateButton ); |
545 | endDateLayout->addWidget( mEndDateButton ); | 545 | endDateLayout->addWidget( mEndDateButton ); |
546 | 546 | ||
547 | mEndDateEdit = new KDateEdit( rangeBox ); | 547 | mEndDateEdit = new KDateEdit( rangeBox ); |
548 | endDateLayout->addWidget( mEndDateEdit ); | 548 | endDateLayout->addWidget( mEndDateEdit ); |
549 | 549 | ||
550 | //endDateLayout->addStretch( 1 ); | 550 | //endDateLayout->addStretch( 1 ); |
551 | 551 | ||
552 | connect( mNoEndDateButton, SIGNAL( toggled( bool ) ), | 552 | connect( mNoEndDateButton, SIGNAL( toggled( bool ) ), |
553 | SLOT( showCurrentRange() ) ); | 553 | SLOT( showCurrentRange() ) ); |
554 | connect( mEndDurationButton, SIGNAL( toggled( bool ) ), | 554 | connect( mEndDurationButton, SIGNAL( toggled( bool ) ), |
555 | SLOT( showCurrentRange() ) ); | 555 | SLOT( showCurrentRange() ) ); |
556 | connect( mEndDateButton, SIGNAL( toggled( bool ) ), | 556 | connect( mEndDateButton, SIGNAL( toggled( bool ) ), |
557 | SLOT( showCurrentRange() ) ); | 557 | SLOT( showCurrentRange() ) ); |
558 | } | 558 | } |
559 | 559 | ||
560 | void RecurrenceRangeWidget::setDefaults( const QDateTime &from ) | 560 | void RecurrenceRangeWidget::setDefaults( const QDateTime &from ) |
561 | { | 561 | { |
562 | mNoEndDateButton->setChecked( true ); | 562 | mNoEndDateButton->setChecked( true ); |
563 | 563 | ||
564 | setDateTimes( from ); | 564 | setDateTimes( from ); |
565 | mEndDateEdit->setDate( from.date() ); | 565 | mEndDateEdit->setDate( from.date() ); |
566 | } | 566 | } |
567 | 567 | ||
568 | void RecurrenceRangeWidget::setDuration( int duration ) | 568 | void RecurrenceRangeWidget::setDuration( int duration ) |
569 | { | 569 | { |
570 | if ( duration == -1 ) { | 570 | if ( duration == -1 ) { |
571 | mNoEndDateButton->setChecked( true ); | 571 | mNoEndDateButton->setChecked( true ); |
572 | } else if ( duration == 0 ) { | 572 | } else if ( duration == 0 ) { |
573 | mEndDateButton->setChecked( true ); | 573 | mEndDateButton->setChecked( true ); |
574 | } else { | 574 | } else { |
575 | mEndDurationButton->setChecked( true ); | 575 | mEndDurationButton->setChecked( true ); |
576 | mEndDurationEdit->setValue( duration ); | 576 | mEndDurationEdit->setValue( duration ); |
577 | } | 577 | } |
578 | } | 578 | } |
579 | 579 | ||
580 | int RecurrenceRangeWidget::duration() | 580 | int RecurrenceRangeWidget::duration() |
581 | { | 581 | { |
582 | if ( mNoEndDateButton->isChecked() ) { | 582 | if ( mNoEndDateButton->isChecked() ) { |
583 | return -1; | 583 | return -1; |
584 | } else if ( mEndDurationButton->isChecked() ) { | 584 | } else if ( mEndDurationButton->isChecked() ) { |
585 | return mEndDurationEdit->value(); | 585 | return mEndDurationEdit->value(); |
586 | } else { | 586 | } else { |
587 | return 0; | 587 | return 0; |
588 | } | 588 | } |
589 | } | 589 | } |
590 | 590 | ||
591 | void RecurrenceRangeWidget::setEndDate( const QDate &date ) | 591 | void RecurrenceRangeWidget::setEndDate( const QDate &date ) |
592 | { | 592 | { |
593 | mEndDateEdit->setDate( date ); | 593 | mEndDateEdit->setDate( date ); |
594 | } | 594 | } |
595 | 595 | ||
596 | QDate RecurrenceRangeWidget::endDate() | 596 | QDate RecurrenceRangeWidget::endDate() |
597 | { | 597 | { |
598 | return mEndDateEdit->date(); | 598 | return mEndDateEdit->date(); |
599 | } | 599 | } |
600 | 600 | ||
601 | void RecurrenceRangeWidget::showCurrentRange() | 601 | void RecurrenceRangeWidget::showCurrentRange() |
602 | { | 602 | { |
603 | mEndDurationEdit->setEnabled( mEndDurationButton->isChecked() ); | 603 | mEndDurationEdit->setEnabled( mEndDurationButton->isChecked() ); |
604 | mEndDateEdit->setEnabled( mEndDateButton->isChecked() ); | 604 | mEndDateEdit->setEnabled( mEndDateButton->isChecked() ); |
605 | } | 605 | } |
606 | 606 | ||
607 | void RecurrenceRangeWidget::setDateTimes( const QDateTime &start, | 607 | void RecurrenceRangeWidget::setDateTimes( const QDateTime &start, |
608 | const QDateTime & ) | 608 | const QDateTime & ) |
609 | { | 609 | { |
610 | mStartDateLabel->setText( i18n("Start date: %1") | 610 | mStartDateLabel->setText( i18n("Start date: %1") |
611 | .arg( KGlobal::locale()->formatDate( start.date() ) ) ); | 611 | .arg( KGlobal::locale()->formatDate( start.date() ) ) ); |
612 | 612 | ||
613 | if(!mEndDateButton->isChecked()) | 613 | if(!mEndDateButton->isChecked()) |
614 | mEndDateEdit->setDate( start.date() ); | 614 | mEndDateEdit->setDate( start.date() ); |
615 | } | 615 | } |
616 | 616 | ||
617 | ///////////////////////// RecurrenceRangeDialog /////////////////////////// | 617 | ///////////////////////// RecurrenceRangeDialog /////////////////////////// |
618 | 618 | ||
619 | RecurrenceRangeDialog::RecurrenceRangeDialog( QWidget *parent, | 619 | RecurrenceRangeDialog::RecurrenceRangeDialog( QWidget *parent, |
620 | const char *name ) : | 620 | const char *name ) : |
621 | KDialogBase( parent, name, true, i18n("Edit Recurrence Range"), Ok|Cancel ) | 621 | KDialogBase( parent, name, true, i18n("Edit Recurrence Range"), Ok|Cancel ) |
622 | { | 622 | { |
623 | mRecurrenceRangeWidget = new RecurrenceRangeWidget( this ); | 623 | mRecurrenceRangeWidget = new RecurrenceRangeWidget( this ); |
624 | setMainWidget( mRecurrenceRangeWidget ); | 624 | setMainWidget( mRecurrenceRangeWidget ); |
625 | } | 625 | } |
626 | 626 | ||
627 | void RecurrenceRangeDialog::setDefaults( const QDateTime &from ) | 627 | void RecurrenceRangeDialog::setDefaults( const QDateTime &from ) |
628 | { | 628 | { |
629 | mRecurrenceRangeWidget->setDefaults( from ); | 629 | mRecurrenceRangeWidget->setDefaults( from ); |
630 | } | 630 | } |
631 | 631 | ||
632 | void RecurrenceRangeDialog::setDuration( int duration ) | 632 | void RecurrenceRangeDialog::setDuration( int duration ) |
633 | { | 633 | { |
634 | mRecurrenceRangeWidget->setDuration( duration ); | 634 | mRecurrenceRangeWidget->setDuration( duration ); |
635 | } | 635 | } |
636 | 636 | ||
637 | int RecurrenceRangeDialog::duration() | 637 | int RecurrenceRangeDialog::duration() |
638 | { | 638 | { |
639 | return mRecurrenceRangeWidget->duration(); | 639 | return mRecurrenceRangeWidget->duration(); |
640 | } | 640 | } |
641 | 641 | ||
642 | void RecurrenceRangeDialog::setEndDate( const QDate &date ) | 642 | void RecurrenceRangeDialog::setEndDate( const QDate &date ) |
643 | { | 643 | { |
644 | mRecurrenceRangeWidget->setEndDate( date ); | 644 | mRecurrenceRangeWidget->setEndDate( date ); |
645 | } | 645 | } |
646 | 646 | ||
647 | QDate RecurrenceRangeDialog::endDate() | 647 | QDate RecurrenceRangeDialog::endDate() |
648 | { | 648 | { |
649 | return mRecurrenceRangeWidget->endDate(); | 649 | return mRecurrenceRangeWidget->endDate(); |
650 | } | 650 | } |
651 | 651 | ||
652 | void RecurrenceRangeDialog::setDateTimes( const QDateTime &start, | 652 | void RecurrenceRangeDialog::setDateTimes( const QDateTime &start, |
653 | const QDateTime &end ) | 653 | const QDateTime &end ) |
654 | { | 654 | { |
655 | mRecurrenceRangeWidget->setDateTimes( start, end ); | 655 | mRecurrenceRangeWidget->setDateTimes( start, end ); |
656 | } | 656 | } |
657 | 657 | ||
658 | //////////////////////////// RecurrenceChooser //////////////////////// | 658 | //////////////////////////// RecurrenceChooser //////////////////////// |
659 | 659 | ||
660 | RecurrenceChooser::RecurrenceChooser( QWidget *parent, const char *name ) : | 660 | RecurrenceChooser::RecurrenceChooser( QWidget *parent, const char *name ) : |
661 | QWidget( parent, name ) | 661 | QWidget( parent, name ) |
662 | { | 662 | { |
663 | QBoxLayout *topLayout = new QVBoxLayout( this ); | 663 | QBoxLayout *topLayout = new QVBoxLayout( this ); |
664 | 664 | ||
665 | mTypeCombo = new QComboBox( this ); | 665 | mTypeCombo = new QComboBox( this ); |
666 | mTypeCombo->insertItem( i18n("Daily") ); | 666 | mTypeCombo->insertItem( i18n("Daily") ); |
667 | mTypeCombo->insertItem( i18n("Weekly") ); | 667 | mTypeCombo->insertItem( i18n("Weekly") ); |
668 | mTypeCombo->insertItem( i18n("Monthly") ); | 668 | mTypeCombo->insertItem( i18n("Monthly") ); |
669 | mTypeCombo->insertItem( i18n("Yearly") ); | 669 | mTypeCombo->insertItem( i18n("Yearly") ); |
670 | 670 | ||
671 | topLayout->addWidget( mTypeCombo ); | 671 | topLayout->addWidget( mTypeCombo ); |
672 | 672 | ||
673 | connect( mTypeCombo, SIGNAL( activated( int ) ), SLOT( emitChoice() ) ); | 673 | connect( mTypeCombo, SIGNAL( activated( int ) ), SLOT( emitChoice() ) ); |
674 | 674 | ||
675 | } | 675 | } |
676 | 676 | ||
677 | int RecurrenceChooser::type() | 677 | int RecurrenceChooser::type() |
678 | { | 678 | { |
679 | if ( mTypeCombo ) { | 679 | if ( mTypeCombo ) { |
680 | return mTypeCombo->currentItem(); | 680 | return mTypeCombo->currentItem(); |
681 | } else { | 681 | } else { |
682 | if ( mDailyButton->isChecked() ) return Daily; | 682 | if ( mDailyButton->isChecked() ) return Daily; |
683 | else if ( mWeeklyButton->isChecked() ) return Weekly; | 683 | else if ( mWeeklyButton->isChecked() ) return Weekly; |
684 | else if ( mMonthlyButton->isChecked() ) return Monthly; | 684 | else if ( mMonthlyButton->isChecked() ) return Monthly; |
685 | else return Yearly; | 685 | else return Yearly; |
686 | } | 686 | } |
687 | } | 687 | } |
688 | 688 | ||
689 | void RecurrenceChooser::setType( int type ) | 689 | void RecurrenceChooser::setType( int type ) |
690 | { | 690 | { |
691 | if ( mTypeCombo ) { | 691 | if ( mTypeCombo ) { |
692 | mTypeCombo->setCurrentItem( type ); | 692 | mTypeCombo->setCurrentItem( type ); |
693 | } else { | 693 | } else { |
694 | switch ( type ) { | 694 | switch ( type ) { |
695 | case Daily: | 695 | case Daily: |
696 | mDailyButton->setChecked( true ); | 696 | mDailyButton->setChecked( true ); |
697 | break; | 697 | break; |
698 | case Weekly: | 698 | case Weekly: |
699 | mWeeklyButton->setChecked( true ); | 699 | mWeeklyButton->setChecked( true ); |
700 | break; | 700 | break; |
701 | case Monthly: | 701 | case Monthly: |
702 | mMonthlyButton->setChecked( true ); | 702 | mMonthlyButton->setChecked( true ); |
703 | break; | 703 | break; |
704 | case Yearly: | 704 | case Yearly: |
705 | default: | 705 | default: |
706 | mYearlyButton->setChecked( true ); | 706 | mYearlyButton->setChecked( true ); |
707 | break; | 707 | break; |
708 | } | 708 | } |
709 | } | 709 | } |
710 | } | 710 | } |
711 | 711 | ||
712 | void RecurrenceChooser::emitChoice() | 712 | void RecurrenceChooser::emitChoice() |
713 | { | 713 | { |
714 | emit chosen ( type() ); | 714 | emit chosen ( type() ); |
715 | } | 715 | } |
716 | 716 | ||
717 | /////////////////////////////// Main Widget ///////////////////////////// | 717 | /////////////////////////////// Main Widget ///////////////////////////// |
718 | 718 | ||
719 | KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) : | 719 | KOEditorRecurrence::KOEditorRecurrence( QWidget* parent, const char *name ) : |
720 | QWidget( parent, name ) | 720 | QWidget( parent, name ) |
721 | { | 721 | { |
722 | QGridLayout *topLayout = new QGridLayout( this, 2,2 ); | 722 | QGridLayout *topLayout = new QGridLayout( this, 2,2 ); |
723 | topLayout->setSpacing( KDialog::spacingHint() ); | 723 | topLayout->setSpacing( KDialog::spacingHint() ); |
724 | topLayout->setMargin( KDialog::marginHintSmall() ); | 724 | topLayout->setMargin( KDialog::marginHintSmall() ); |
725 | 725 | ||
726 | mEnabledCheck = new QCheckBox( i18n("Enable Recurrence"), this ); | 726 | mEnabledCheck = new QCheckBox( i18n("Enable Recurrence"), this ); |
727 | connect( mEnabledCheck, SIGNAL( toggled( bool ) ), | 727 | connect( mEnabledCheck, SIGNAL( toggled( bool ) ), |
728 | SLOT( setEnabled( bool ) ) ); | 728 | SLOT( setEnabled( bool ) ) ); |
729 | topLayout->addMultiCellWidget( mEnabledCheck, 0, 0, 0, 1 ); | 729 | topLayout->addMultiCellWidget( mEnabledCheck, 0, 0, 0, 1 ); |
730 | 730 | ||
731 | 731 | ||
732 | mTimeGroupBox = new QGroupBox( 1, Horizontal, i18n("Appointment Time "), | 732 | mTimeGroupBox = new QGroupBox( 1, Horizontal, i18n("Time"), |
733 | this ); | 733 | this ); |
734 | topLayout->addMultiCellWidget( mTimeGroupBox, 1, 1 , 0 , 1 ); | 734 | topLayout->addMultiCellWidget( mTimeGroupBox, 1, 1 , 0 , 1 ); |
735 | 735 | ||
736 | if ( QApplication::desktop()->width() <= 320) { | 736 | if ( QApplication::desktop()->width() <= 320) { |
737 | mTimeGroupBox->hide(); | 737 | mTimeGroupBox->hide(); |
738 | } | 738 | } |
739 | 739 | ||
740 | // QFrame *timeFrame = new QFrame( mTimeGroupBox ); | 740 | // QFrame *timeFrame = new QFrame( mTimeGroupBox ); |
741 | // QBoxLayout *layoutTimeFrame = new QHBoxLayout( timeFrame ); | 741 | // QBoxLayout *layoutTimeFrame = new QHBoxLayout( timeFrame ); |
742 | // layoutTimeFrame->setSpacing( KDialog::spacingHint() ); | 742 | // layoutTimeFrame->setSpacing( KDialog::spacingHint() ); |
743 | 743 | ||
744 | mDateTimeLabel = new QLabel( mTimeGroupBox ); | 744 | mDateTimeLabel = new QLabel( mTimeGroupBox ); |
745 | // mDateTimeLabel = new QLabel( timeFrame ); | 745 | // mDateTimeLabel = new QLabel( timeFrame ); |
746 | // layoutTimeFrame->addWidget( mDateTimeLabel ); | 746 | // layoutTimeFrame->addWidget( mDateTimeLabel ); |
747 | 747 | //mTimeGroupBox->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum ) ); | |
748 | 748 | //mDateTimeLabel->setSizePolicy( QSizePolicy( QSizePolicy::Preferred, QSizePolicy::Maximum) ); | |
749 | mRuleBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Rule"), this ); | 749 | mRuleBox = new QGroupBox( 1, Horizontal, i18n("Recurrence Rule"), this ); |
750 | topLayout->addMultiCellWidget( mRuleBox, 2, 2, 0, 1 ); | 750 | topLayout->addMultiCellWidget( mRuleBox, 2, 2, 0, 1 ); |
751 | mRecurrenceChooser = new RecurrenceChooser( mRuleBox ); | 751 | mRecurrenceChooser = new RecurrenceChooser( mRuleBox ); |
752 | connect( mRecurrenceChooser, SIGNAL( chosen( int ) ), | 752 | connect( mRecurrenceChooser, SIGNAL( chosen( int ) ), |
753 | SLOT( showCurrentRule( int ) ) ); | 753 | SLOT( showCurrentRule( int ) ) ); |
754 | 754 | ||
755 | 755 | ||
756 | mRuleStack = new QWidgetStack( mRuleBox ); | 756 | mRuleStack = new QWidgetStack( mRuleBox ); |
757 | 757 | ||
758 | mDaily = new RecurDaily( mRuleStack ); | 758 | mDaily = new RecurDaily( mRuleStack ); |
759 | mRuleStack->addWidget( mDaily, 0 ); | 759 | mRuleStack->addWidget( mDaily, 0 ); |
760 | 760 | ||
761 | mWeekly = new RecurWeekly( mRuleStack ); | 761 | mWeekly = new RecurWeekly( mRuleStack ); |
762 | mRuleStack->addWidget( mWeekly, 0 ); | 762 | mRuleStack->addWidget( mWeekly, 0 ); |
763 | 763 | ||
764 | mMonthly = new RecurMonthly( mRuleStack ); | 764 | mMonthly = new RecurMonthly( mRuleStack ); |
765 | mRuleStack->addWidget( mMonthly, 0 ); | 765 | mRuleStack->addWidget( mMonthly, 0 ); |
766 | 766 | ||
767 | mYearly = new RecurYearly( mRuleStack ); | 767 | mYearly = new RecurYearly( mRuleStack ); |
768 | mRuleStack->addWidget( mYearly, 0 ); | 768 | mRuleStack->addWidget( mYearly, 0 ); |
769 | 769 | ||
770 | showCurrentRule( mRecurrenceChooser->type() ); | 770 | showCurrentRule( mRecurrenceChooser->type() ); |
771 | mRecurrenceRangeWidget = 0; | 771 | mRecurrenceRangeWidget = 0; |
772 | mRecurrenceRangeDialog = new RecurrenceRangeDialog( this ); | 772 | mRecurrenceRangeDialog = new RecurrenceRangeDialog( this ); |
773 | mRecurrenceRange = mRecurrenceRangeDialog; | 773 | mRecurrenceRange = mRecurrenceRangeDialog; |
774 | mRecurrenceRangeButton = new QPushButton( i18n("Recurrence Range..."), | 774 | mRecurrenceRangeButton = new QPushButton( i18n("Recurrence Range..."), |
775 | this ); | 775 | this ); |
776 | 776 | ||
777 | connect( mRecurrenceRangeButton, SIGNAL( clicked() ), | 777 | connect( mRecurrenceRangeButton, SIGNAL( clicked() ), |
778 | SLOT( showRecurrenceRangeDialog() ) ); | 778 | SLOT( showRecurrenceRangeDialog() ) ); |
779 | 779 | ||
780 | mExceptionsWidget = 0; | 780 | mExceptionsWidget = 0; |
781 | mExceptionsDialog = new ExceptionsDialog( this ); | 781 | mExceptionsDialog = new ExceptionsDialog( this ); |
782 | mExceptions = mExceptionsDialog; | 782 | mExceptions = mExceptionsDialog; |
783 | mExceptionsButton = new QPushButton( i18n("Exceptions..."), this ); | 783 | mExceptionsButton = new QPushButton( i18n("Exceptions..."), this ); |
784 | if ( QApplication::desktop()->width() < 320 ) { | 784 | if ( QApplication::desktop()->width() < 320 ) { |
785 | topLayout->addMultiCellWidget( mRecurrenceRangeButton, 3, 3, 0, 1 ); | 785 | topLayout->addMultiCellWidget( mRecurrenceRangeButton, 3, 3, 0, 1 ); |
786 | topLayout->addMultiCellWidget( mExceptionsButton, 4, 4, 0, 1 ); | 786 | topLayout->addMultiCellWidget( mExceptionsButton, 4, 4, 0, 1 ); |
787 | } else { | 787 | } else { |
788 | topLayout->addWidget( mRecurrenceRangeButton, 3, 0 ); | 788 | topLayout->addWidget( mRecurrenceRangeButton, 3, 0 ); |
789 | topLayout->addWidget( mExceptionsButton, 3, 1 ); | 789 | topLayout->addWidget( mExceptionsButton, 3, 1 ); |
790 | } | 790 | } |
791 | connect( mExceptionsButton, SIGNAL( clicked() ), | 791 | connect( mExceptionsButton, SIGNAL( clicked() ), |
792 | SLOT( showExceptionsDialog() ) ); | 792 | SLOT( showExceptionsDialog() ) ); |
793 | } | 793 | } |
794 | 794 | ||
795 | KOEditorRecurrence::~KOEditorRecurrence() | 795 | KOEditorRecurrence::~KOEditorRecurrence() |
796 | { | 796 | { |
797 | } | 797 | } |
798 | 798 | ||
799 | void KOEditorRecurrence::setEnabled( bool enabled ) | 799 | void KOEditorRecurrence::setEnabled( bool enabled ) |
800 | { | 800 | { |
801 | // kdDebug() << "KOEditorRecurrence::setEnabled(): " << (enabled ? "on" : "off") << endl; | 801 | // kdDebug() << "KOEditorRecurrence::setEnabled(): " << (enabled ? "on" : "off") << endl; |
802 | 802 | ||
803 | mTimeGroupBox->setEnabled( enabled ); | 803 | mTimeGroupBox->setEnabled( enabled ); |
804 | if ( mRecurrenceRangeWidget ) mRecurrenceRangeWidget->setEnabled( enabled ); | 804 | if ( mRecurrenceRangeWidget ) mRecurrenceRangeWidget->setEnabled( enabled ); |
805 | if ( mRecurrenceRangeButton ) mRecurrenceRangeButton->setEnabled( enabled ); | 805 | if ( mRecurrenceRangeButton ) mRecurrenceRangeButton->setEnabled( enabled ); |
806 | if ( mExceptionsWidget ) mExceptionsWidget->setEnabled( enabled ); | 806 | if ( mExceptionsWidget ) mExceptionsWidget->setEnabled( enabled ); |
807 | if ( mExceptionsButton ) mExceptionsButton->setEnabled( enabled ); | 807 | if ( mExceptionsButton ) mExceptionsButton->setEnabled( enabled ); |
808 | mRuleBox->setEnabled( enabled ); | 808 | mRuleBox->setEnabled( enabled ); |
809 | } | 809 | } |
810 | 810 | ||
811 | void KOEditorRecurrence::showCurrentRule( int current ) | 811 | void KOEditorRecurrence::showCurrentRule( int current ) |
812 | { | 812 | { |
813 | switch ( current ) { | 813 | switch ( current ) { |
814 | case Daily: | 814 | case Daily: |
815 | mRuleStack->raiseWidget( mDaily ); | 815 | mRuleStack->raiseWidget( mDaily ); |
816 | break; | 816 | break; |
817 | case Weekly: | 817 | case Weekly: |
818 | mRuleStack->raiseWidget( mWeekly ); | 818 | mRuleStack->raiseWidget( mWeekly ); |
819 | break; | 819 | break; |
820 | case Monthly: | 820 | case Monthly: |
821 | mRuleStack->raiseWidget( mMonthly ); | 821 | mRuleStack->raiseWidget( mMonthly ); |
822 | break; | 822 | break; |
823 | default: | 823 | default: |
824 | case Yearly: | 824 | case Yearly: |
825 | mRuleStack->raiseWidget( mYearly ); | 825 | mRuleStack->raiseWidget( mYearly ); |
826 | break; | 826 | break; |
827 | } | 827 | } |
828 | } | 828 | } |
829 | 829 | ||
830 | void KOEditorRecurrence::setDateTimes( QDateTime start, QDateTime end ) | 830 | void KOEditorRecurrence::setDateTimes( QDateTime start, QDateTime end ) |
831 | { | 831 | { |
832 | // kdDebug() << "KOEditorRecurrence::setDateTimes" << endl; | 832 | // kdDebug() << "KOEditorRecurrence::setDateTimes" << endl; |
833 | 833 | ||
834 | mRecurrenceRange->setDateTimes( start, end ); | 834 | mRecurrenceRange->setDateTimes( start, end ); |
835 | mExceptions->setDefaults( end ); | 835 | mExceptions->setDefaults( end ); |
836 | 836 | ||
837 | } | 837 | } |
838 | 838 | ||
839 | void KOEditorRecurrence::setDefaults( QDateTime from, QDateTime to, bool ) | 839 | void KOEditorRecurrence::setDefaults( QDateTime from, QDateTime to, bool ) |
840 | { | 840 | { |
841 | 841 | ||
842 | // qDebug("KOEditorRecurrence::setDefaults %s %s ",from.toString().latin1(),to.toString().latin1() ); | 842 | // qDebug("KOEditorRecurrence::setDefaults %s %s ",from.toString().latin1(),to.toString().latin1() ); |
843 | setDateTimes( from, to ); | 843 | setDateTimes( from, to ); |
844 | 844 | ||
845 | bool enabled = false; | 845 | bool enabled = false; |
846 | mEnabledCheck->setChecked( enabled ); | 846 | mEnabledCheck->setChecked( enabled ); |
847 | setEnabled( enabled ); | 847 | setEnabled( enabled ); |
848 | 848 | ||
849 | mExceptions->setDefaults( to ); | 849 | mExceptions->setDefaults( to ); |
850 | mRecurrenceRange->setDefaults( to ); | 850 | mRecurrenceRange->setDefaults( to ); |
851 | 851 | ||
852 | mRecurrenceChooser->setType( RecurrenceChooser::Weekly ); | 852 | mRecurrenceChooser->setType( RecurrenceChooser::Weekly ); |
853 | showCurrentRule( mRecurrenceChooser->type() ); | 853 | showCurrentRule( mRecurrenceChooser->type() ); |
854 | 854 | ||
855 | mDaily->setFrequency( 1 ); | 855 | mDaily->setFrequency( 1 ); |
856 | 856 | ||
857 | mWeekly->setFrequency( 1 ); | 857 | mWeekly->setFrequency( 1 ); |
858 | QBitArray days( 7 ); | 858 | QBitArray days( 7 ); |
859 | days.fill( 0 ); | 859 | days.fill( 0 ); |
860 | days.setBit( from.date().dayOfWeek()- 1); | 860 | days.setBit( from.date().dayOfWeek()- 1); |
861 | mWeekly->setDays( days ); | 861 | mWeekly->setDays( days ); |
862 | mMonthly->setFrequency( 1 ); | 862 | mMonthly->setFrequency( 1 ); |
863 | mMonthly->setByPos((from.date().day()/7), from.date().dayOfWeek()-1 ); | 863 | mMonthly->setByPos((from.date().day()/7), from.date().dayOfWeek()-1 ); |
864 | mMonthly->setByDay( from.date().day()-1 ); | 864 | mMonthly->setByDay( from.date().day()-1 ); |
865 | mYearly->setFrequency( 1 ); | 865 | mYearly->setFrequency( 1 ); |
866 | mYearly->setByDay( from.date().dayOfYear() ); | 866 | mYearly->setByDay( from.date().dayOfYear() ); |
867 | mYearly->setByMonth( from.date().month(), from.date().day() ); | 867 | mYearly->setByMonth( from.date().month(), from.date().day() ); |
868 | } | 868 | } |
869 | 869 | ||
870 | void KOEditorRecurrence::readEvent(Incidence *event) | 870 | void KOEditorRecurrence::readEvent(Incidence *event) |
871 | { | 871 | { |
872 | 872 | ||
873 | QDateTime dtEnd; | 873 | QDateTime dtEnd; |
874 | if ( event->type() == "Event" ) | 874 | if ( event->type() == "Event" ) |
875 | dtEnd = ((Event*)event)->dtEnd(); | 875 | dtEnd = ((Event*)event)->dtEnd(); |
876 | else | 876 | else |
877 | dtEnd = ((Todo*)event)->dtDue(); | 877 | dtEnd = ((Todo*)event)->dtDue(); |
878 | 878 | ||
879 | setDefaults( event->dtStart(), dtEnd, true ); | 879 | setDefaults( event->dtStart(), dtEnd, true ); |
880 | QBitArray rDays( 7 ); | 880 | QBitArray rDays( 7 ); |
881 | QPtrList<Recurrence::rMonthPos> rmp; | 881 | QPtrList<Recurrence::rMonthPos> rmp; |
882 | QPtrList<int> rmd; | 882 | QPtrList<int> rmd; |
883 | int day = 0; | 883 | int day = 0; |
884 | int count = 0; | 884 | int count = 0; |
885 | int month = 0; | 885 | int month = 0; |
886 | setDateTimes( event->dtStart(), dtEnd ); | 886 | setDateTimes( event->dtStart(), dtEnd ); |
887 | 887 | ||
888 | Recurrence *r = event->recurrence(); | 888 | Recurrence *r = event->recurrence(); |
889 | int f = r->frequency(); | 889 | int f = r->frequency(); |
890 | 890 | ||
891 | int recurs = r->doesRecur(); | 891 | int recurs = r->doesRecur(); |
892 | 892 | ||
893 | mEnabledCheck->setChecked( recurs ); | 893 | mEnabledCheck->setChecked( recurs ); |
894 | setEnabled( recurs ); | 894 | setEnabled( recurs ); |
895 | 895 | ||
896 | int recurrenceType = RecurrenceChooser::Weekly; | 896 | int recurrenceType = RecurrenceChooser::Weekly; |
897 | 897 | ||
898 | switch ( recurs ) { | 898 | switch ( recurs ) { |
899 | case Recurrence::rNone: | 899 | case Recurrence::rNone: |
900 | setDefaults( event->dtStart(), dtEnd, true ); | 900 | setDefaults( event->dtStart(), dtEnd, true ); |
901 | break; | 901 | break; |
902 | case Recurrence::rDaily: | 902 | case Recurrence::rDaily: |
903 | recurrenceType = RecurrenceChooser::Daily; | 903 | recurrenceType = RecurrenceChooser::Daily; |
904 | mDaily->setFrequency( f ); | 904 | mDaily->setFrequency( f ); |
905 | break; | 905 | break; |
906 | case Recurrence::rWeekly: | 906 | case Recurrence::rWeekly: |
907 | recurrenceType = RecurrenceChooser::Weekly; | 907 | recurrenceType = RecurrenceChooser::Weekly; |
908 | mWeekly->setFrequency( f ); | 908 | mWeekly->setFrequency( f ); |
909 | mWeekly->setDays( r->days() ); | 909 | mWeekly->setDays( r->days() ); |
910 | break; | 910 | break; |
911 | case Recurrence::rMonthlyPos: | 911 | case Recurrence::rMonthlyPos: |
912 | // we only handle one possibility in the list right now, | 912 | // we only handle one possibility in the list right now, |
913 | // so I have hardcoded calls with first(). If we make the GUI | 913 | // so I have hardcoded calls with first(). If we make the GUI |
914 | // more extended, this can be changed. | 914 | // more extended, this can be changed. |
915 | recurrenceType = RecurrenceChooser::Monthly; | 915 | recurrenceType = RecurrenceChooser::Monthly; |
916 | 916 | ||
917 | rmp = r->monthPositions(); | 917 | rmp = r->monthPositions(); |
918 | if ( rmp.first()->negative ) | 918 | if ( rmp.first()->negative ) |
919 | count = 5 - rmp.first()->rPos - 1; | 919 | count = 5 - rmp.first()->rPos - 1; |
920 | else | 920 | else |
921 | count = rmp.first()->rPos - 1; | 921 | count = rmp.first()->rPos - 1; |
922 | day = 0; | 922 | day = 0; |
923 | while ( !rmp.first()->rDays.testBit( day ) ) ++day; | 923 | while ( !rmp.first()->rDays.testBit( day ) ) ++day; |
924 | mMonthly->setByPos( count, day ); | 924 | mMonthly->setByPos( count, day ); |
925 | 925 | ||
926 | mMonthly->setFrequency( f ); | 926 | mMonthly->setFrequency( f ); |
927 | 927 | ||
928 | break; | 928 | break; |
929 | case Recurrence::rMonthlyDay: | 929 | case Recurrence::rMonthlyDay: |
930 | recurrenceType = RecurrenceChooser::Monthly; | 930 | recurrenceType = RecurrenceChooser::Monthly; |
931 | 931 | ||
932 | rmd = r->monthDays(); | 932 | rmd = r->monthDays(); |
933 | day = *rmd.first() - 1; | 933 | day = *rmd.first() - 1; |
934 | mMonthly->setByDay( day ); | 934 | mMonthly->setByDay( day ); |
935 | 935 | ||
936 | mMonthly->setFrequency( f ); | 936 | mMonthly->setFrequency( f ); |
937 | 937 | ||
938 | break; | 938 | break; |
939 | case Recurrence::rYearlyMonth: | 939 | case Recurrence::rYearlyMonth: |
940 | { | 940 | { |
941 | recurrenceType = RecurrenceChooser::Yearly; | 941 | recurrenceType = RecurrenceChooser::Yearly; |
942 | qDebug("Recurrence::rYearlyMonth: "); | 942 | qDebug("Recurrence::rYearlyMonth: "); |
943 | day = event->dtStart().date().day(); | 943 | day = event->dtStart().date().day(); |
944 | rmd = r->yearNums(); | 944 | rmd = r->yearNums(); |
945 | if ( rmd.count() > 0 ) | 945 | if ( rmd.count() > 0 ) |
946 | month = *rmd.first(); | 946 | month = *rmd.first(); |
947 | else | 947 | else |
948 | month = event->dtStart().date().month() ; | 948 | month = event->dtStart().date().month() ; |
949 | mYearly->setByMonth( month, day ); | 949 | mYearly->setByMonth( month, day ); |
950 | #if 0 | 950 | #if 0 |
951 | qDebug("2day = %d ",day ); | 951 | qDebug("2day = %d ",day ); |
952 | QPtrList<Recurrence::rMonthPos> monthlist = r->yearMonthPositions(); | 952 | QPtrList<Recurrence::rMonthPos> monthlist = r->yearMonthPositions(); |
953 | int month; | 953 | int month; |
954 | if ( !monthlist.isEmpty() ) { | 954 | if ( !monthlist.isEmpty() ) { |
955 | month = monthlist.first()->rPos ; | 955 | month = monthlist.first()->rPos ; |
956 | } else { | 956 | } else { |
957 | month = event->dtStart().date().month() ; | 957 | month = event->dtStart().date().month() ; |
958 | } | 958 | } |
959 | mYearly->setByMonth( day, month ); | 959 | mYearly->setByMonth( day, month ); |
960 | #endif | 960 | #endif |
961 | mYearly->setFrequency( f ); | 961 | mYearly->setFrequency( f ); |
962 | } | 962 | } |
963 | 963 | ||
964 | break; | 964 | break; |
965 | case Recurrence::rYearlyDay: | 965 | case Recurrence::rYearlyDay: |
966 | qDebug("Recurrence::rYearlyDay: "); | 966 | qDebug("Recurrence::rYearlyDay: "); |
967 | recurrenceType = RecurrenceChooser::Yearly; | 967 | recurrenceType = RecurrenceChooser::Yearly; |
968 | mYearly->setByDay( event->dtStart().date().dayOfYear() ); | 968 | mYearly->setByDay( event->dtStart().date().dayOfYear() ); |
969 | mYearly->setFrequency( f ); | 969 | mYearly->setFrequency( f ); |
970 | break; | 970 | break; |
971 | default: | 971 | default: |
972 | setDefaults( event->dtStart(), dtEnd, true ); | 972 | setDefaults( event->dtStart(), dtEnd, true ); |
973 | break; | 973 | break; |
974 | } | 974 | } |
975 | 975 | ||
976 | mRecurrenceChooser->setType( recurrenceType ); | 976 | mRecurrenceChooser->setType( recurrenceType ); |
977 | showCurrentRule( recurrenceType ); | 977 | showCurrentRule( recurrenceType ); |
978 | 978 | ||
979 | mRecurrenceRange->setDateTimes( event->dtStart() ); | 979 | mRecurrenceRange->setDateTimes( event->dtStart() ); |
980 | 980 | ||
981 | if ( r->doesRecur() ) { | 981 | if ( r->doesRecur() ) { |
982 | mRecurrenceRange->setDuration( r->duration() ); | 982 | mRecurrenceRange->setDuration( r->duration() ); |
983 | if ( r->duration() == 0 ) | 983 | if ( r->duration() == 0 ) |
984 | { | 984 | { |
985 | if ( r->endDate() < event->dtStart().date() ) | 985 | if ( r->endDate() < event->dtStart().date() ) |
986 | mRecurrenceRange->setEndDate( event->dtStart().date() ); | 986 | mRecurrenceRange->setEndDate( event->dtStart().date() ); |
987 | else | 987 | else |
988 | mRecurrenceRange->setEndDate( r->endDate() ); | 988 | mRecurrenceRange->setEndDate( r->endDate() ); |
989 | } else | 989 | } else |
990 | mRecurrenceRange->setEndDate( event->dtStart().date() ); | 990 | mRecurrenceRange->setEndDate( event->dtStart().date() ); |
991 | } | 991 | } |
992 | 992 | ||
993 | mExceptions->setDates( event->exDates() ); | 993 | mExceptions->setDates( event->exDates() ); |
994 | } | 994 | } |
995 | 995 | ||
996 | void KOEditorRecurrence::writeEvent( Incidence *event ) | 996 | void KOEditorRecurrence::writeEvent( Incidence *event ) |
997 | { | 997 | { |
998 | Recurrence *r = event->recurrence(); | 998 | Recurrence *r = event->recurrence(); |
999 | 999 | ||
1000 | // clear out any old settings; | 1000 | // clear out any old settings; |
1001 | r->unsetRecurs(); | 1001 | r->unsetRecurs(); |
1002 | 1002 | ||
1003 | if ( mEnabledCheck->isChecked() ) { | 1003 | if ( mEnabledCheck->isChecked() ) { |
1004 | int duration = mRecurrenceRange->duration(); | 1004 | int duration = mRecurrenceRange->duration(); |
1005 | QDate endDate; | 1005 | QDate endDate; |
1006 | if ( duration == 0 ) endDate = mRecurrenceRange->endDate(); | 1006 | if ( duration == 0 ) endDate = mRecurrenceRange->endDate(); |
1007 | 1007 | ||
1008 | int recurrenceType = mRecurrenceChooser->type(); | 1008 | int recurrenceType = mRecurrenceChooser->type(); |
1009 | 1009 | ||
1010 | if ( recurrenceType == RecurrenceChooser::Daily ) { | 1010 | if ( recurrenceType == RecurrenceChooser::Daily ) { |
1011 | int freq = mDaily->frequency(); | 1011 | int freq = mDaily->frequency(); |
1012 | if ( duration != 0 ) r->setDaily( freq, duration ); | 1012 | if ( duration != 0 ) r->setDaily( freq, duration ); |
1013 | else r->setDaily( freq, endDate ); | 1013 | else r->setDaily( freq, endDate ); |
1014 | } else if ( recurrenceType == RecurrenceChooser::Weekly ) { | 1014 | } else if ( recurrenceType == RecurrenceChooser::Weekly ) { |
1015 | int freq = mWeekly->frequency(); | 1015 | int freq = mWeekly->frequency(); |
1016 | QBitArray days = mWeekly->days(); | 1016 | QBitArray days = mWeekly->days(); |
1017 | int j; | 1017 | int j; |
1018 | bool found = false; | 1018 | bool found = false; |
1019 | for (j = 0; j < 7 ; ++j ) { | 1019 | for (j = 0; j < 7 ; ++j ) { |
1020 | found |=days.at(j); | 1020 | found |=days.at(j); |
1021 | } | 1021 | } |
1022 | if ( !found ) { | 1022 | if ( !found ) { |
1023 | days.setBit( event->dtStart().date().dayOfWeek()-1); | 1023 | days.setBit( event->dtStart().date().dayOfWeek()-1); |
1024 | qDebug("bit set %d ", event->dtStart().date().dayOfWeek()-1); | 1024 | qDebug("bit set %d ", event->dtStart().date().dayOfWeek()-1); |
1025 | } | 1025 | } |
1026 | if ( duration != 0 ) r->setWeekly( freq, days, duration ); | 1026 | if ( duration != 0 ) r->setWeekly( freq, days, duration ); |
1027 | else r->setWeekly( freq, days, endDate ); | 1027 | else r->setWeekly( freq, days, endDate ); |
1028 | } else if ( recurrenceType == RecurrenceChooser::Monthly ) { | 1028 | } else if ( recurrenceType == RecurrenceChooser::Monthly ) { |
1029 | int freq = mMonthly->frequency(); | 1029 | int freq = mMonthly->frequency(); |
1030 | if ( mMonthly->byPos() ) { | 1030 | if ( mMonthly->byPos() ) { |
1031 | int pos = mMonthly->count(); | 1031 | int pos = mMonthly->count(); |
1032 | 1032 | ||
1033 | QBitArray days( 7 ); | 1033 | QBitArray days( 7 ); |
1034 | days.fill( false ); | 1034 | days.fill( false ); |
1035 | 1035 | ||
1036 | days.setBit( mMonthly->weekday() ); | 1036 | days.setBit( mMonthly->weekday() ); |
1037 | if ( duration != 0 ) | 1037 | if ( duration != 0 ) |
1038 | r->setMonthly( Recurrence::rMonthlyPos, freq, duration ); | 1038 | r->setMonthly( Recurrence::rMonthlyPos, freq, duration ); |
1039 | else | 1039 | else |
1040 | r->setMonthly( Recurrence::rMonthlyPos, freq, endDate ); | 1040 | r->setMonthly( Recurrence::rMonthlyPos, freq, endDate ); |
1041 | r->addMonthlyPos( pos, days ); | 1041 | r->addMonthlyPos( pos, days ); |
1042 | } else { | 1042 | } else { |
1043 | // it's by day | 1043 | // it's by day |
1044 | int day = mMonthly->day(); | 1044 | int day = mMonthly->day(); |
1045 | 1045 | ||
1046 | if ( duration != 0 ) { | 1046 | if ( duration != 0 ) { |
1047 | r->setMonthly( Recurrence::rMonthlyDay, freq, duration ); | 1047 | r->setMonthly( Recurrence::rMonthlyDay, freq, duration ); |
1048 | } else { | 1048 | } else { |
1049 | r->setMonthly( Recurrence::rMonthlyDay, freq, endDate ); | 1049 | r->setMonthly( Recurrence::rMonthlyDay, freq, endDate ); |
1050 | } | 1050 | } |
1051 | r->addMonthlyDay( day ); | 1051 | r->addMonthlyDay( day ); |
1052 | } | 1052 | } |
1053 | } else if ( recurrenceType == RecurrenceChooser::Yearly ) { | 1053 | } else if ( recurrenceType == RecurrenceChooser::Yearly ) { |
1054 | qDebug("RecurrenceChooser::Yearly "); | 1054 | qDebug("RecurrenceChooser::Yearly "); |
1055 | int freq = mYearly->frequency(); | 1055 | int freq = mYearly->frequency(); |
1056 | if ( mYearly->byDay() ) { | 1056 | if ( mYearly->byDay() ) { |
1057 | if ( duration != 0 ) { | 1057 | if ( duration != 0 ) { |
1058 | r->setYearly( Recurrence::rYearlyDay, freq, duration ); | 1058 | r->setYearly( Recurrence::rYearlyDay, freq, duration ); |
1059 | } else { | 1059 | } else { |
1060 | r->setYearly( Recurrence::rYearlyDay, freq, endDate ); | 1060 | r->setYearly( Recurrence::rYearlyDay, freq, endDate ); |
1061 | } | 1061 | } |
1062 | r->addYearlyNum( event->dtStart().date().dayOfYear() ); | 1062 | r->addYearlyNum( event->dtStart().date().dayOfYear() ); |
1063 | } else { | 1063 | } else { |
1064 | if ( duration != 0 ) { | 1064 | if ( duration != 0 ) { |
1065 | r->setYearly( Recurrence::rYearlyMonth, freq, duration ); | 1065 | r->setYearly( Recurrence::rYearlyMonth, freq, duration ); |
1066 | } else { | 1066 | } else { |
1067 | r->setYearly( Recurrence::rYearlyMonth, freq, endDate ); | 1067 | r->setYearly( Recurrence::rYearlyMonth, freq, endDate ); |
1068 | } | 1068 | } |
1069 | r->addYearlyNum( mYearly->month() ); | 1069 | r->addYearlyNum( mYearly->month() ); |
1070 | } | 1070 | } |
1071 | 1071 | ||
1072 | } | 1072 | } |
1073 | 1073 | ||
1074 | event->setExDates( mExceptions->dates() ); | 1074 | event->setExDates( mExceptions->dates() ); |
1075 | } | 1075 | } |
1076 | } | 1076 | } |
1077 | 1077 | ||
1078 | void KOEditorRecurrence::setDateTimeStr( const QString &str ) | 1078 | void KOEditorRecurrence::setDateTimeStr( const QString &str ) |
1079 | { | 1079 | { |
1080 | mDateTimeLabel->setText( str ); | 1080 | mDateTimeLabel->setText( str ); |
1081 | } | 1081 | } |
1082 | 1082 | ||
1083 | bool KOEditorRecurrence::validateInput() | 1083 | bool KOEditorRecurrence::validateInput() |
1084 | { | 1084 | { |
1085 | // Check input here | 1085 | // Check input here |
1086 | 1086 | ||
1087 | return true; | 1087 | return true; |
1088 | } | 1088 | } |
1089 | 1089 | ||
1090 | void KOEditorRecurrence::showExceptionsDialog() | 1090 | void KOEditorRecurrence::showExceptionsDialog() |
1091 | { | 1091 | { |
1092 | DateList dates = mExceptions->dates(); | 1092 | DateList dates = mExceptions->dates(); |
1093 | int result = mExceptionsDialog->exec(); | 1093 | int result = mExceptionsDialog->exec(); |
1094 | if ( result == QDialog::Rejected ) mExceptions->setDates( dates ); | 1094 | if ( result == QDialog::Rejected ) mExceptions->setDates( dates ); |
1095 | } | 1095 | } |
1096 | 1096 | ||
1097 | void KOEditorRecurrence::showRecurrenceRangeDialog() | 1097 | void KOEditorRecurrence::showRecurrenceRangeDialog() |
1098 | { | 1098 | { |
1099 | int duration = mRecurrenceRange->duration(); | 1099 | int duration = mRecurrenceRange->duration(); |
1100 | QDate endDate = mRecurrenceRange->endDate(); | 1100 | QDate endDate = mRecurrenceRange->endDate(); |
1101 | 1101 | ||
1102 | int result = mRecurrenceRangeDialog->exec(); | 1102 | int result = mRecurrenceRangeDialog->exec(); |
1103 | if ( result == QDialog::Rejected ) { | 1103 | if ( result == QDialog::Rejected ) { |
1104 | mRecurrenceRange->setDuration( duration ); | 1104 | mRecurrenceRange->setDuration( duration ); |
1105 | mRecurrenceRange->setEndDate( endDate ); | 1105 | mRecurrenceRange->setEndDate( endDate ); |
1106 | } | 1106 | } |
1107 | 1107 | ||
1108 | } | 1108 | } |
diff --git a/korganizer/kotodoeditor.cpp b/korganizer/kotodoeditor.cpp index 51e2524..6a05cc8 100644 --- a/korganizer/kotodoeditor.cpp +++ b/korganizer/kotodoeditor.cpp | |||
@@ -1,436 +1,437 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 1997, 1998 Preston Brown | 3 | Copyright (c) 1997, 1998 Preston Brown |
4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <qtooltip.h> | 25 | #include <qtooltip.h> |
26 | #include <qframe.h> | 26 | #include <qframe.h> |
27 | #include <qpixmap.h> | 27 | #include <qpixmap.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include <qhbox.h> | 29 | #include <qhbox.h> |
30 | #include <qdir.h> | 30 | #include <qdir.h> |
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
32 | #include <qapplication.h> | 32 | #include <qapplication.h> |
33 | #include <qtabwidget.h> | 33 | #include <qtabwidget.h> |
34 | 34 | ||
35 | #include <kiconloader.h> | 35 | #include <kiconloader.h> |
36 | #include <klocale.h> | 36 | #include <klocale.h> |
37 | #include <kfiledialog.h> | 37 | #include <kfiledialog.h> |
38 | #include <kstandarddirs.h> | 38 | #include <kstandarddirs.h> |
39 | #include <kmessagebox.h> | 39 | #include <kmessagebox.h> |
40 | 40 | ||
41 | #include <libkdepim/categoryselectdialog.h> | 41 | #include <libkdepim/categoryselectdialog.h> |
42 | #include <libkcal/calendarlocal.h> | 42 | #include <libkcal/calendarlocal.h> |
43 | #include <libkcal/calendarresources.h> | 43 | #include <libkcal/calendarresources.h> |
44 | #include <libkcal/resourcecalendar.h> | 44 | #include <libkcal/resourcecalendar.h> |
45 | #include <libkcal/icalformat.h> | 45 | #include <libkcal/icalformat.h> |
46 | #include <kresources/resourceselectdialog.h> | 46 | #include <kresources/resourceselectdialog.h> |
47 | #include <libkdepim/kdateedit.h> | 47 | #include <libkdepim/kdateedit.h> |
48 | 48 | ||
49 | #include "koprefs.h" | 49 | #include "koprefs.h" |
50 | #include "kolocationbox.h" | 50 | #include "kolocationbox.h" |
51 | 51 | ||
52 | #include "kotodoeditor.h" | 52 | #include "kotodoeditor.h" |
53 | extern int globalFlagBlockAgenda; | 53 | extern int globalFlagBlockAgenda; |
54 | 54 | ||
55 | KOTodoEditor::KOTodoEditor( Calendar *calendar, QWidget *parent ) : | 55 | KOTodoEditor::KOTodoEditor( Calendar *calendar, QWidget *parent ) : |
56 | KOIncidenceEditor( i18n("Edit To-Do"), calendar, parent ) | 56 | KOIncidenceEditor( i18n("Edit To-Do"), calendar, parent ) |
57 | { | 57 | { |
58 | mTodo = 0; | 58 | mTodo = 0; |
59 | mRelatedTodo = 0; | 59 | mRelatedTodo = 0; |
60 | findButton(User1)->hide(); | 60 | findButton(User1)->hide(); |
61 | init(); | 61 | init(); |
62 | } | 62 | } |
63 | 63 | ||
64 | KOTodoEditor::~KOTodoEditor() | 64 | KOTodoEditor::~KOTodoEditor() |
65 | { | 65 | { |
66 | emit dialogClose( mTodo ); | 66 | emit dialogClose( mTodo ); |
67 | } | 67 | } |
68 | 68 | ||
69 | void KOTodoEditor::init() | 69 | void KOTodoEditor::init() |
70 | { | 70 | { |
71 | setupGeneral(); | 71 | setupGeneral(); |
72 | setupAttendeesTab(); | 72 | setupAttendeesTab(); |
73 | setupRecurrence(); | 73 | setupRecurrence(); |
74 | connect(mGeneral,SIGNAL(datesChecked()),this ,SLOT(checkRecurrence())); | 74 | connect(mGeneral,SIGNAL(datesChecked()),this ,SLOT(checkRecurrence())); |
75 | mRecurrence->setDateTimeStr( i18n("<i>The recurrence is computed from the start datetime!</i>") ); | ||
75 | } | 76 | } |
76 | void KOTodoEditor::setupRecurrence() | 77 | void KOTodoEditor::setupRecurrence() |
77 | { | 78 | { |
78 | QFrame *topFrame = addPage( i18n("Recurrence") ); | 79 | QFrame *topFrame = addPage( i18n("Recurrence") ); |
79 | QBoxLayout *topLayout = new QVBoxLayout( topFrame ); | 80 | QBoxLayout *topLayout = new QVBoxLayout( topFrame ); |
80 | 81 | ||
81 | mRecurrence = new KOEditorRecurrence( topFrame ); | 82 | mRecurrence = new KOEditorRecurrence( topFrame ); |
82 | topLayout->addWidget( mRecurrence ); | 83 | topLayout->addWidget( mRecurrence ); |
83 | } | 84 | } |
84 | 85 | ||
85 | void KOTodoEditor::setCategories( QString s ) | 86 | void KOTodoEditor::setCategories( QString s ) |
86 | { | 87 | { |
87 | mGeneral->setCategories(s); | 88 | mGeneral->setCategories(s); |
88 | } | 89 | } |
89 | void KOTodoEditor::setSecrecy( int sec ) | 90 | void KOTodoEditor::setSecrecy( int sec ) |
90 | { | 91 | { |
91 | mGeneral->setSecrecy( sec ); | 92 | mGeneral->setSecrecy( sec ); |
92 | } | 93 | } |
93 | void KOTodoEditor::reload() | 94 | void KOTodoEditor::reload() |
94 | { | 95 | { |
95 | if ( mTodo ) readTodo( mTodo ); | 96 | if ( mTodo ) readTodo( mTodo ); |
96 | } | 97 | } |
97 | 98 | ||
98 | void KOTodoEditor::setupGeneral() | 99 | void KOTodoEditor::setupGeneral() |
99 | { | 100 | { |
100 | mGeneral = new KOEditorGeneralTodo(this); | 101 | mGeneral = new KOEditorGeneralTodo(this); |
101 | connect ( mGeneral, SIGNAL ( allAccepted() ), this, SLOT ( slotOk () ) ); | 102 | connect ( mGeneral, SIGNAL ( allAccepted() ), this, SLOT ( slotOk () ) ); |
102 | 103 | ||
103 | // connect(mGeneral,SIGNAL(openCategoryDialog()),mCategoryDialog,SLOT(show())); | 104 | // connect(mGeneral,SIGNAL(openCategoryDialog()),mCategoryDialog,SLOT(show())); |
104 | //connect(mCategoryDialog, SIGNAL(categoriesSelected(const QString &)), | 105 | //connect(mCategoryDialog, SIGNAL(categoriesSelected(const QString &)), |
105 | // mGeneral,SLOT(setCategories(const QString &))); | 106 | // mGeneral,SLOT(setCategories(const QString &))); |
106 | 107 | ||
107 | if (KOPrefs::instance()->mCompactDialogs) { | 108 | if (KOPrefs::instance()->mCompactDialogs) { |
108 | QFrame *topFrame = addPage(i18n("General")); | 109 | QFrame *topFrame = addPage(i18n("General")); |
109 | 110 | ||
110 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); | 111 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); |
111 | if ( QApplication::desktop()->width() < 480 ) { | 112 | if ( QApplication::desktop()->width() < 480 ) { |
112 | topLayout->setMargin(1); | 113 | topLayout->setMargin(1); |
113 | topLayout->setSpacing(1); | 114 | topLayout->setSpacing(1); |
114 | } else { | 115 | } else { |
115 | topLayout->setMargin(marginHint()-1); | 116 | topLayout->setMargin(marginHint()-1); |
116 | topLayout->setSpacing(spacingHint()-1); | 117 | topLayout->setSpacing(spacingHint()-1); |
117 | } | 118 | } |
118 | mGeneral->initHeader(topFrame,topLayout); | 119 | mGeneral->initHeader(topFrame,topLayout); |
119 | mGeneral->initTime(topFrame,topLayout); | 120 | mGeneral->initTime(topFrame,topLayout); |
120 | mGeneral->initAlarm(topFrame,topLayout); | 121 | mGeneral->initAlarm(topFrame,topLayout); |
121 | mGeneral->enableAlarm( false ); | 122 | mGeneral->enableAlarm( false ); |
122 | 123 | ||
123 | 124 | ||
124 | QBoxLayout *priorityLayout; | 125 | QBoxLayout *priorityLayout; |
125 | if ( QApplication::desktop()->width() < 500 ) | 126 | if ( QApplication::desktop()->width() < 500 ) |
126 | priorityLayout = new QVBoxLayout( topLayout ); | 127 | priorityLayout = new QVBoxLayout( topLayout ); |
127 | else | 128 | else |
128 | priorityLayout = new QHBoxLayout( topLayout ); | 129 | priorityLayout = new QHBoxLayout( topLayout ); |
129 | QWidget* prioWidget = new QWidget (topFrame); | 130 | QWidget* prioWidget = new QWidget (topFrame); |
130 | priorityLayout->addWidget( prioWidget ); | 131 | priorityLayout->addWidget( prioWidget ); |
131 | QHBoxLayout* priorityLayout2 = new QHBoxLayout( prioWidget); | 132 | QHBoxLayout* priorityLayout2 = new QHBoxLayout( prioWidget); |
132 | 133 | ||
133 | 134 | ||
134 | QIconSet icon; | 135 | QIconSet icon; |
135 | if ( QApplication::desktop()->width() < 321 ) | 136 | if ( QApplication::desktop()->width() < 321 ) |
136 | icon = SmallIcon("fileimport16"); | 137 | icon = SmallIcon("fileimport16"); |
137 | else | 138 | else |
138 | icon = SmallIcon("fileimport"); | 139 | icon = SmallIcon("fileimport"); |
139 | QPushButton * loadTemplate = new QPushButton( prioWidget); | 140 | QPushButton * loadTemplate = new QPushButton( prioWidget); |
140 | loadTemplate->setIconSet (icon ) ; | 141 | loadTemplate->setIconSet (icon ) ; |
141 | int size = loadTemplate->sizeHint().height(); | 142 | int size = loadTemplate->sizeHint().height(); |
142 | loadTemplate->setFixedSize( size, size ); | 143 | loadTemplate->setFixedSize( size, size ); |
143 | if ( QApplication::desktop()->width() < 321 ) | 144 | if ( QApplication::desktop()->width() < 321 ) |
144 | icon = SmallIcon("fileexport16"); | 145 | icon = SmallIcon("fileexport16"); |
145 | else | 146 | else |
146 | icon = SmallIcon("fileexport"); | 147 | icon = SmallIcon("fileexport"); |
147 | QPushButton * saveTemplate = new QPushButton( prioWidget); | 148 | QPushButton * saveTemplate = new QPushButton( prioWidget); |
148 | saveTemplate->setIconSet (icon ) ; | 149 | saveTemplate->setIconSet (icon ) ; |
149 | saveTemplate->setFixedSize( size, size ); | 150 | saveTemplate->setFixedSize( size, size ); |
150 | 151 | ||
151 | priorityLayout2->addWidget(loadTemplate); | 152 | priorityLayout2->addWidget(loadTemplate); |
152 | priorityLayout2->addWidget(saveTemplate); | 153 | priorityLayout2->addWidget(saveTemplate); |
153 | mGeneral->initPriority(prioWidget,priorityLayout2); | 154 | mGeneral->initPriority(prioWidget,priorityLayout2); |
154 | mGeneral->initCategories( topFrame, priorityLayout ); | 155 | mGeneral->initCategories( topFrame, priorityLayout ); |
155 | topLayout->addStretch(1); | 156 | topLayout->addStretch(1); |
156 | 157 | ||
157 | QFrame *topFrame2 = addPage(i18n("Details")); | 158 | QFrame *topFrame2 = addPage(i18n("Details")); |
158 | 159 | ||
159 | QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2); | 160 | QBoxLayout *topLayout2 = new QVBoxLayout(topFrame2); |
160 | topLayout2->setMargin(marginHint()); | 161 | topLayout2->setMargin(marginHint()); |
161 | topLayout2->setSpacing(spacingHint()); | 162 | topLayout2->setSpacing(spacingHint()); |
162 | 163 | ||
163 | QHBoxLayout *completionLayout = new QHBoxLayout( topLayout2 ); | 164 | QHBoxLayout *completionLayout = new QHBoxLayout( topLayout2 ); |
164 | mGeneral->initCompletion(topFrame2,completionLayout); | 165 | mGeneral->initCompletion(topFrame2,completionLayout); |
165 | 166 | ||
166 | 167 | ||
167 | mGeneral->initSecrecy( topFrame2, topLayout2 ); | 168 | mGeneral->initSecrecy( topFrame2, topLayout2 ); |
168 | mGeneral->initDescription(topFrame2,topLayout2); | 169 | mGeneral->initDescription(topFrame2,topLayout2); |
169 | 170 | ||
170 | // QHBox * hb = new QHBox ( topFrame2 ); | 171 | // QHBox * hb = new QHBox ( topFrame2 ); |
171 | // topLayout2->addWidget(hb); | 172 | // topLayout2->addWidget(hb); |
172 | // hb->setSpacing( 3 ); | 173 | // hb->setSpacing( 3 ); |
173 | 174 | ||
174 | connect( saveTemplate, SIGNAL( clicked() ), this , SLOT( slotSaveTemplate() ) ); | 175 | connect( saveTemplate, SIGNAL( clicked() ), this , SLOT( slotSaveTemplate() ) ); |
175 | connect( loadTemplate, SIGNAL( clicked() ), this , SLOT( slotLoadTemplate() ) ); | 176 | connect( loadTemplate, SIGNAL( clicked() ), this , SLOT( slotLoadTemplate() ) ); |
176 | 177 | ||
177 | } else { | 178 | } else { |
178 | QFrame *topFrame = addPage(i18n("General")); | 179 | QFrame *topFrame = addPage(i18n("General")); |
179 | 180 | ||
180 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); | 181 | QBoxLayout *topLayout = new QVBoxLayout(topFrame); |
181 | topLayout->setSpacing(spacingHint()); | 182 | topLayout->setSpacing(spacingHint()); |
182 | 183 | ||
183 | mGeneral->initHeader(topFrame,topLayout); | 184 | mGeneral->initHeader(topFrame,topLayout); |
184 | mGeneral->initTime(topFrame,topLayout); | 185 | mGeneral->initTime(topFrame,topLayout); |
185 | mGeneral->initStatus(topFrame,topLayout); | 186 | mGeneral->initStatus(topFrame,topLayout); |
186 | QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout); | 187 | QBoxLayout *alarmLineLayout = new QHBoxLayout(topLayout); |
187 | mGeneral->initAlarm(topFrame,alarmLineLayout); | 188 | mGeneral->initAlarm(topFrame,alarmLineLayout); |
188 | mGeneral->initDescription(topFrame,topLayout); | 189 | mGeneral->initDescription(topFrame,topLayout); |
189 | QBoxLayout *detailsLayout = new QHBoxLayout(topLayout); | 190 | QBoxLayout *detailsLayout = new QHBoxLayout(topLayout); |
190 | mGeneral->initCategories( topFrame, detailsLayout ); | 191 | mGeneral->initCategories( topFrame, detailsLayout ); |
191 | mGeneral->initSecrecy( topFrame, detailsLayout ); | 192 | mGeneral->initSecrecy( topFrame, detailsLayout ); |
192 | } | 193 | } |
193 | mGeneral->finishSetup(); | 194 | mGeneral->finishSetup(); |
194 | 195 | ||
195 | } | 196 | } |
196 | 197 | ||
197 | void KOTodoEditor::editTodo(Todo *todo, bool editDescription) | 198 | void KOTodoEditor::editTodo(Todo *todo, bool editDescription) |
198 | { | 199 | { |
199 | //init(); | 200 | //init(); |
200 | 201 | ||
201 | mTodo = todo; | 202 | mTodo = todo; |
202 | readTodo(mTodo); | 203 | readTodo(mTodo); |
203 | if ( editDescription ) { | 204 | if ( editDescription ) { |
204 | showPage( 1 ); | 205 | showPage( 1 ); |
205 | mGeneral->setFocusOn( 1 ); | 206 | mGeneral->setFocusOn( 1 ); |
206 | } else { | 207 | } else { |
207 | showPage( 0 ); | 208 | showPage( 0 ); |
208 | mGeneral->setFocusOn( 2 ); | 209 | mGeneral->setFocusOn( 2 ); |
209 | } | 210 | } |
210 | checkRecurrence(); | 211 | checkRecurrence(); |
211 | } | 212 | } |
212 | 213 | ||
213 | void KOTodoEditor::newTodo(QDateTime due,Todo *relatedTodo,bool allDay) | 214 | void KOTodoEditor::newTodo(QDateTime due,Todo *relatedTodo,bool allDay) |
214 | { | 215 | { |
215 | //init(); | 216 | //init(); |
216 | 217 | ||
217 | mTodo = 0; | 218 | mTodo = 0; |
218 | setDefaults(due,relatedTodo,allDay); | 219 | setDefaults(due,relatedTodo,allDay); |
219 | } | 220 | } |
220 | 221 | ||
221 | void KOTodoEditor::loadDefaults() | 222 | void KOTodoEditor::loadDefaults() |
222 | { | 223 | { |
223 | setDefaults(QDateTime::currentDateTime().addDays(7),0,false); | 224 | setDefaults(QDateTime::currentDateTime().addDays(7),0,false); |
224 | } | 225 | } |
225 | 226 | ||
226 | bool KOTodoEditor::processInput( bool emitTime ) | 227 | bool KOTodoEditor::processInput( bool emitTime ) |
227 | { | 228 | { |
228 | if (!validateInput()) return false; | 229 | if (!validateInput()) return false; |
229 | 230 | ||
230 | Todo *todo = 0; | 231 | Todo *todo = 0; |
231 | 232 | ||
232 | if (mTodo) todo = mTodo; | 233 | if (mTodo) todo = mTodo; |
233 | else { | 234 | else { |
234 | todo = new Todo; | 235 | todo = new Todo; |
235 | todo->setOrganizer(KOPrefs::instance()->email()); | 236 | todo->setOrganizer(KOPrefs::instance()->email()); |
236 | } | 237 | } |
237 | 238 | ||
238 | writeTodo(todo); | 239 | writeTodo(todo); |
239 | if ( emitTime ) { | 240 | if ( emitTime ) { |
240 | globalFlagBlockAgenda = 1; | 241 | globalFlagBlockAgenda = 1; |
241 | emit showAgendaView( false ); | 242 | emit showAgendaView( false ); |
242 | if ( todo->hasDueDate() ) | 243 | if ( todo->hasDueDate() ) |
243 | emit jumpToTime( todo->dtDue().date() ); | 244 | emit jumpToTime( todo->dtDue().date() ); |
244 | globalFlagBlockAgenda = 2; | 245 | globalFlagBlockAgenda = 2; |
245 | } | 246 | } |
246 | if (mTodo) { | 247 | if (mTodo) { |
247 | todo->setRevision(todo->revision()+1); | 248 | todo->setRevision(todo->revision()+1); |
248 | emit todoChanged(todo); | 249 | emit todoChanged(todo); |
249 | } else { | 250 | } else { |
250 | mCalendar->addTodo(todo); | 251 | mCalendar->addTodo(todo); |
251 | mTodo = todo; | 252 | mTodo = todo; |
252 | emit todoAdded(todo); | 253 | emit todoAdded(todo); |
253 | } | 254 | } |
254 | 255 | ||
255 | return true; | 256 | return true; |
256 | } | 257 | } |
257 | 258 | ||
258 | void KOTodoEditor::deleteTodo() | 259 | void KOTodoEditor::deleteTodo() |
259 | { | 260 | { |
260 | if (mTodo) { | 261 | if (mTodo) { |
261 | if (KOPrefs::instance()->mConfirm) { | 262 | if (KOPrefs::instance()->mConfirm) { |
262 | switch (msgItemDelete()) { | 263 | switch (msgItemDelete()) { |
263 | case KMessageBox::Continue: // OK | 264 | case KMessageBox::Continue: // OK |
264 | emit todoToBeDeleted(mTodo); | 265 | emit todoToBeDeleted(mTodo); |
265 | emit dialogClose(mTodo); | 266 | emit dialogClose(mTodo); |
266 | mCalendar->deleteTodo(mTodo); | 267 | mCalendar->deleteTodo(mTodo); |
267 | emit todoDeleted(); | 268 | emit todoDeleted(); |
268 | reject(); | 269 | reject(); |
269 | break; | 270 | break; |
270 | } | 271 | } |
271 | } | 272 | } |
272 | else { | 273 | else { |
273 | emit todoToBeDeleted(mTodo); | 274 | emit todoToBeDeleted(mTodo); |
274 | emit dialogClose(mTodo); | 275 | emit dialogClose(mTodo); |
275 | mCalendar->deleteTodo(mTodo); | 276 | mCalendar->deleteTodo(mTodo); |
276 | emit todoDeleted(); | 277 | emit todoDeleted(); |
277 | reject(); | 278 | reject(); |
278 | } | 279 | } |
279 | } else { | 280 | } else { |
280 | reject(); | 281 | reject(); |
281 | } | 282 | } |
282 | } | 283 | } |
283 | 284 | ||
284 | void KOTodoEditor::setDefaults(QDateTime due,Todo *relatedEvent,bool allDay) | 285 | void KOTodoEditor::setDefaults(QDateTime due,Todo *relatedEvent,bool allDay) |
285 | { | 286 | { |
286 | mRelatedTodo = relatedEvent; | 287 | mRelatedTodo = relatedEvent; |
287 | 288 | ||
288 | mGeneral->setDefaults(due,allDay); | 289 | mGeneral->setDefaults(due,allDay); |
289 | mDetails->setDefaults(); | 290 | mDetails->setDefaults(); |
290 | showPage( 0 ); | 291 | showPage( 0 ); |
291 | if ( mRelatedTodo ) { | 292 | if ( mRelatedTodo ) { |
292 | mGeneral->setCategories (mRelatedTodo->categoriesStr ()); | 293 | mGeneral->setCategories (mRelatedTodo->categoriesStr ()); |
293 | mGeneral->setSecrecy (mRelatedTodo->secrecy ()); | 294 | mGeneral->setSecrecy (mRelatedTodo->secrecy ()); |
294 | if ( mRelatedTodo->priority() < 3 ) | 295 | if ( mRelatedTodo->priority() < 3 ) |
295 | mGeneral->mPriorityCombo->setCurrentItem(mRelatedTodo->priority()-1); | 296 | mGeneral->mPriorityCombo->setCurrentItem(mRelatedTodo->priority()-1); |
296 | mGeneral->mSummaryEdit->lineEdit()->setText(mRelatedTodo->summary()+": "); | 297 | mGeneral->mSummaryEdit->lineEdit()->setText(mRelatedTodo->summary()+": "); |
297 | int len = mRelatedTodo->summary().length(); | 298 | int len = mRelatedTodo->summary().length(); |
298 | mGeneral->mSummaryEdit->lineEdit()->setFocus(); | 299 | mGeneral->mSummaryEdit->lineEdit()->setFocus(); |
299 | mGeneral->mSummaryEdit->lineEdit()->setCursorPosition ( len+2 ); | 300 | mGeneral->mSummaryEdit->lineEdit()->setCursorPosition ( len+2 ); |
300 | mGeneral->mSummaryEdit->lineEdit()->setSelection ( 0, len+2 ); | 301 | mGeneral->mSummaryEdit->lineEdit()->setSelection ( 0, len+2 ); |
301 | 302 | ||
302 | } else | 303 | } else |
303 | mGeneral->setFocusOn( 2 ); | 304 | mGeneral->setFocusOn( 2 ); |
304 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), false ); | 305 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), false ); |
305 | mRecurrence->setDefaults(QDateTime::currentDateTime(),QDateTime::currentDateTime().addSecs( 3600 ),true); | 306 | mRecurrence->setDefaults(QDateTime::currentDateTime(),QDateTime::currentDateTime().addSecs( 3600 ),true); |
306 | } | 307 | } |
307 | void KOTodoEditor::checkRecurrence() | 308 | void KOTodoEditor::checkRecurrence() |
308 | { | 309 | { |
309 | if ( mGeneral->mDueCheck->isChecked() && mGeneral->mStartCheck->isChecked()) { | 310 | if ( mGeneral->mDueCheck->isChecked() && mGeneral->mStartCheck->isChecked()) { |
310 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), true ); | 311 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), true ); |
311 | 312 | ||
312 | if ( mTodo ) | 313 | if ( mTodo ) |
313 | mRecurrence->readEvent( mTodo ); | 314 | mRecurrence->readEvent( mTodo ); |
314 | else { | 315 | else { |
315 | bool time = mGeneral->mTimeButton->isChecked(); | 316 | bool time = mGeneral->mTimeButton->isChecked(); |
316 | QDateTime from,to; | 317 | QDateTime from,to; |
317 | if ( time ) { | 318 | if ( time ) { |
318 | to = QDateTime( mGeneral->mDueDateEdit->date(), mGeneral->mDueTimeEdit->getTime() ) ; | 319 | to = QDateTime( mGeneral->mDueDateEdit->date(), mGeneral->mDueTimeEdit->getTime() ) ; |
319 | from = QDateTime( mGeneral->mStartDateEdit->date(),mGeneral->mStartTimeEdit->getTime( )) ; | 320 | from = QDateTime( mGeneral->mStartDateEdit->date(),mGeneral->mStartTimeEdit->getTime( )) ; |
320 | } else { | 321 | } else { |
321 | to = QDateTime( mGeneral->mDueDateEdit->date(), QTime( 0,0,0) ) ; | 322 | to = QDateTime( mGeneral->mDueDateEdit->date(), QTime( 0,0,0) ) ; |
322 | from = QDateTime( mGeneral->mStartDateEdit->date(),QTime( 0,0,0) ) ; | 323 | from = QDateTime( mGeneral->mStartDateEdit->date(),QTime( 0,0,0) ) ; |
323 | } | 324 | } |
324 | if ( to < from ) | 325 | if ( to < from ) |
325 | to = from; | 326 | to = from; |
326 | mRecurrence->setDefaults(from,to,!time); | 327 | mRecurrence->setDefaults(from,to,!time); |
327 | } | 328 | } |
328 | } else { | 329 | } else { |
329 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), false ); | 330 | tabWidget()->setTabEnabled ( mRecurrence->parentWidget(), false ); |
330 | mRecurrence->setDefaults(QDateTime::currentDateTime(),QDateTime::currentDateTime().addSecs( 3600 ),true); | 331 | mRecurrence->setDefaults(QDateTime::currentDateTime(),QDateTime::currentDateTime().addSecs( 3600 ),true); |
331 | } | 332 | } |
332 | } | 333 | } |
333 | void KOTodoEditor::readTodo(Todo *todo) | 334 | void KOTodoEditor::readTodo(Todo *todo) |
334 | { | 335 | { |
335 | mGeneral->readTodo(todo); | 336 | mGeneral->readTodo(todo); |
336 | mDetails->readEvent(todo); | 337 | mDetails->readEvent(todo); |
337 | mRelatedTodo = 0;//todo->relatedTo(); | 338 | mRelatedTodo = 0;//todo->relatedTo(); |
338 | // categories | 339 | // categories |
339 | // mCategoryDialog->setSelected(todo->categories()); | 340 | // mCategoryDialog->setSelected(todo->categories()); |
340 | 341 | ||
341 | // We should handle read-only events here. | 342 | // We should handle read-only events here. |
342 | } | 343 | } |
343 | 344 | ||
344 | void KOTodoEditor::writeTodo(Todo *event) | 345 | void KOTodoEditor::writeTodo(Todo *event) |
345 | { | 346 | { |
346 | mGeneral->writeTodo(event); | 347 | mGeneral->writeTodo(event); |
347 | mDetails->writeEvent(event); | 348 | mDetails->writeEvent(event); |
348 | 349 | ||
349 | // set related event, i.e. parent to-do in this case. | 350 | // set related event, i.e. parent to-do in this case. |
350 | if (mRelatedTodo) { | 351 | if (mRelatedTodo) { |
351 | event->setRelatedTo(mRelatedTodo); | 352 | event->setRelatedTo(mRelatedTodo); |
352 | } | 353 | } |
353 | if ( mGeneral->mDueCheck->isChecked() && mGeneral->mStartCheck->isChecked()) { | 354 | if ( mGeneral->mDueCheck->isChecked() && mGeneral->mStartCheck->isChecked()) { |
354 | mRecurrence->writeEvent(event); | 355 | mRecurrence->writeEvent(event); |
355 | if ( event->doesRecur() ) { | 356 | if ( event->doesRecur() ) { |
356 | event->setRecurrenceID( event->dtStart().addSecs(-1) ); | 357 | event->setRecurrenceID( event->dtStart().addSecs(-1) ); |
357 | event->setRecurDates(); | 358 | event->setRecurDates(); |
358 | } else { | 359 | } else { |
359 | event->setHasRecurrenceID( false ); | 360 | event->setHasRecurrenceID( false ); |
360 | } | 361 | } |
361 | } else { | 362 | } else { |
362 | event->setHasRecurrenceID( false ); | 363 | event->setHasRecurrenceID( false ); |
363 | event->recurrence()->unsetRecurs(); | 364 | event->recurrence()->unsetRecurs(); |
364 | } | 365 | } |
365 | } | 366 | } |
366 | 367 | ||
367 | bool KOTodoEditor::validateInput() | 368 | bool KOTodoEditor::validateInput() |
368 | { | 369 | { |
369 | if (!mGeneral->validateInput()) return false; | 370 | if (!mGeneral->validateInput()) return false; |
370 | if (!mDetails->validateInput()) return false; | 371 | if (!mDetails->validateInput()) return false; |
371 | return true; | 372 | return true; |
372 | } | 373 | } |
373 | 374 | ||
374 | int KOTodoEditor::msgItemDelete() | 375 | int KOTodoEditor::msgItemDelete() |
375 | { | 376 | { |
376 | return KMessageBox::warningContinueCancel(this, | 377 | return KMessageBox::warningContinueCancel(this, |
377 | i18n("This item will be permanently deleted."), | 378 | i18n("This item will be permanently deleted."), |
378 | i18n("KOrganizer Confirmation"),i18n("Delete")); | 379 | i18n("KOrganizer Confirmation"),i18n("Delete")); |
379 | } | 380 | } |
380 | 381 | ||
381 | void KOTodoEditor::modified (int modification) | 382 | void KOTodoEditor::modified (int modification) |
382 | { | 383 | { |
383 | if (modification == KOGlobals::CATEGORY_MODIFIED || | 384 | if (modification == KOGlobals::CATEGORY_MODIFIED || |
384 | KOGlobals::UNKNOWN_MODIFIED == modification ) | 385 | KOGlobals::UNKNOWN_MODIFIED == modification ) |
385 | // mCategoryDialog->setSelected (mTodo->categories ()); | 386 | // mCategoryDialog->setSelected (mTodo->categories ()); |
386 | mGeneral->modified (mTodo, modification); | 387 | mGeneral->modified (mTodo, modification); |
387 | 388 | ||
388 | } | 389 | } |
389 | 390 | ||
390 | void KOTodoEditor::slotLoadTemplate() | 391 | void KOTodoEditor::slotLoadTemplate() |
391 | { | 392 | { |
392 | 393 | ||
393 | QString fileName =locateLocal( "templates", "todos" ); | 394 | QString fileName =locateLocal( "templates", "todos" ); |
394 | QDir t_dir; | 395 | QDir t_dir; |
395 | if ( !t_dir.exists(fileName) ) | 396 | if ( !t_dir.exists(fileName) ) |
396 | t_dir.mkdir ( fileName ); | 397 | t_dir.mkdir ( fileName ); |
397 | fileName += "/todo"; | 398 | fileName += "/todo"; |
398 | fileName = KFileDialog::getSaveFileName( fileName , "Load Todo template", this ); | 399 | fileName = KFileDialog::getSaveFileName( fileName , "Load Todo template", this ); |
399 | if ( fileName.length() == 0 ) | 400 | if ( fileName.length() == 0 ) |
400 | return; | 401 | return; |
401 | CalendarLocal cal; | 402 | CalendarLocal cal; |
402 | ICalFormat format; | 403 | ICalFormat format; |
403 | if ( !format.load( &cal, fileName ) ) { | 404 | if ( !format.load( &cal, fileName ) ) { |
404 | KMessageBox::error( this, i18n("Error loading template file\n '%1'.") | 405 | KMessageBox::error( this, i18n("Error loading template file\n '%1'.") |
405 | .arg( fileName ) ); | 406 | .arg( fileName ) ); |
406 | return ; | 407 | return ; |
407 | } | 408 | } |
408 | QPtrList<Todo> todos = cal.todos(); | 409 | QPtrList<Todo> todos = cal.todos(); |
409 | Todo * todo = todos.first(); | 410 | Todo * todo = todos.first(); |
410 | if ( !todo ) { | 411 | if ( !todo ) { |
411 | KMessageBox::error( this, | 412 | KMessageBox::error( this, |
412 | i18n("Template does not\ncontain a valid Todo.")); | 413 | i18n("Template does not\ncontain a valid Todo.")); |
413 | } else { | 414 | } else { |
414 | readTodo( todo ); | 415 | readTodo( todo ); |
415 | } | 416 | } |
416 | 417 | ||
417 | } | 418 | } |
418 | 419 | ||
419 | void KOTodoEditor::slotSaveTemplate() | 420 | void KOTodoEditor::slotSaveTemplate() |
420 | { | 421 | { |
421 | QString fileName =locateLocal( "templates", "todos" ); | 422 | QString fileName =locateLocal( "templates", "todos" ); |
422 | QDir t_dir; | 423 | QDir t_dir; |
423 | if ( !t_dir.exists(fileName) ) | 424 | if ( !t_dir.exists(fileName) ) |
424 | t_dir.mkdir ( fileName ); | 425 | t_dir.mkdir ( fileName ); |
425 | fileName += "/todo"; | 426 | fileName += "/todo"; |
426 | fileName = KFileDialog::getSaveFileName( fileName , "Save as Todo template", this ); | 427 | fileName = KFileDialog::getSaveFileName( fileName , "Save as Todo template", this ); |
427 | if ( fileName.length() > 0 ) | 428 | if ( fileName.length() > 0 ) |
428 | saveTemplate( fileName ); | 429 | saveTemplate( fileName ); |
429 | } | 430 | } |
430 | 431 | ||
431 | void KOTodoEditor::saveTemplate( const QString &templateName ) | 432 | void KOTodoEditor::saveTemplate( const QString &templateName ) |
432 | { | 433 | { |
433 | Todo *todo = new Todo; | 434 | Todo *todo = new Todo; |
434 | writeTodo( todo ); | 435 | writeTodo( todo ); |
435 | saveAsTemplate( todo, templateName ); | 436 | saveAsTemplate( todo, templateName ); |
436 | } | 437 | } |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 94f4677..ffc4d9a 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1206,769 +1206,770 @@ void MainWindow::initActions() | |||
1206 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); | 1206 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); |
1207 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); | 1207 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); |
1208 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); | 1208 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); |
1209 | 1209 | ||
1210 | if (p-> mShowIconNewEvent) | 1210 | if (p-> mShowIconNewEvent) |
1211 | configureToolBarMenu->setItemChecked( 10, true ); | 1211 | configureToolBarMenu->setItemChecked( 10, true ); |
1212 | if (p->mShowIconNewTodo ) | 1212 | if (p->mShowIconNewTodo ) |
1213 | configureToolBarMenu->setItemChecked( 20, true ); | 1213 | configureToolBarMenu->setItemChecked( 20, true ); |
1214 | if (p-> mShowIconSearch) | 1214 | if (p-> mShowIconSearch) |
1215 | configureToolBarMenu->setItemChecked( 120, true ); | 1215 | configureToolBarMenu->setItemChecked( 120, true ); |
1216 | if (p-> mShowIconList) | 1216 | if (p-> mShowIconList) |
1217 | configureToolBarMenu->setItemChecked( 30, true ); | 1217 | configureToolBarMenu->setItemChecked( 30, true ); |
1218 | if (p-> mShowIconDay1) | 1218 | if (p-> mShowIconDay1) |
1219 | configureToolBarMenu->setItemChecked( 40, true ); | 1219 | configureToolBarMenu->setItemChecked( 40, true ); |
1220 | if (p-> mShowIconDay5) | 1220 | if (p-> mShowIconDay5) |
1221 | configureToolBarMenu->setItemChecked( 50, true ); | 1221 | configureToolBarMenu->setItemChecked( 50, true ); |
1222 | if (p-> mShowIconDay6) | 1222 | if (p-> mShowIconDay6) |
1223 | configureToolBarMenu->setItemChecked( 75, true ); | 1223 | configureToolBarMenu->setItemChecked( 75, true ); |
1224 | if (p-> mShowIconDay7) | 1224 | if (p-> mShowIconDay7) |
1225 | configureToolBarMenu->setItemChecked( 60, true ); | 1225 | configureToolBarMenu->setItemChecked( 60, true ); |
1226 | if (p-> mShowIconMonth) | 1226 | if (p-> mShowIconMonth) |
1227 | configureToolBarMenu->setItemChecked( 70, true ); | 1227 | configureToolBarMenu->setItemChecked( 70, true ); |
1228 | if (p-> mShowIconTodoview) | 1228 | if (p-> mShowIconTodoview) |
1229 | configureToolBarMenu->setItemChecked( 80, true ); | 1229 | configureToolBarMenu->setItemChecked( 80, true ); |
1230 | if (p-> mShowIconBackFast) | 1230 | if (p-> mShowIconBackFast) |
1231 | configureToolBarMenu->setItemChecked( 200, true ); | 1231 | configureToolBarMenu->setItemChecked( 200, true ); |
1232 | if (p-> mShowIconBack) | 1232 | if (p-> mShowIconBack) |
1233 | configureToolBarMenu->setItemChecked( 210, true ); | 1233 | configureToolBarMenu->setItemChecked( 210, true ); |
1234 | if (p-> mShowIconToday) | 1234 | if (p-> mShowIconToday) |
1235 | configureToolBarMenu->setItemChecked( 130, true ); | 1235 | configureToolBarMenu->setItemChecked( 130, true ); |
1236 | if (p-> mShowIconForward) | 1236 | if (p-> mShowIconForward) |
1237 | configureToolBarMenu->setItemChecked( 220, true ); | 1237 | configureToolBarMenu->setItemChecked( 220, true ); |
1238 | if (p-> mShowIconForwardFast) | 1238 | if (p-> mShowIconForwardFast) |
1239 | configureToolBarMenu->setItemChecked( 230, true ); | 1239 | configureToolBarMenu->setItemChecked( 230, true ); |
1240 | if (p-> mShowIconNextDays) | 1240 | if (p-> mShowIconNextDays) |
1241 | configureToolBarMenu->setItemChecked( 100, true ); | 1241 | configureToolBarMenu->setItemChecked( 100, true ); |
1242 | if (p-> mShowIconNext) | 1242 | if (p-> mShowIconNext) |
1243 | configureToolBarMenu->setItemChecked( 110, true ); | 1243 | configureToolBarMenu->setItemChecked( 110, true ); |
1244 | if (p-> mShowIconJournal) | 1244 | if (p-> mShowIconJournal) |
1245 | configureToolBarMenu->setItemChecked( 90, true ); | 1245 | configureToolBarMenu->setItemChecked( 90, true ); |
1246 | if (p-> mShowIconWhatsThis) | 1246 | if (p-> mShowIconWhatsThis) |
1247 | configureToolBarMenu->setItemChecked( 300, true ); | 1247 | configureToolBarMenu->setItemChecked( 300, true ); |
1248 | if (p-> mShowIconWeekNum) | 1248 | if (p-> mShowIconWeekNum) |
1249 | configureToolBarMenu->setItemChecked( 400, true ); | 1249 | configureToolBarMenu->setItemChecked( 400, true ); |
1250 | if (!p-> mShowIconStretch) { | 1250 | if (!p-> mShowIconStretch) { |
1251 | QLabel* dummy = new QLabel( iconToolBar ); | 1251 | QLabel* dummy = new QLabel( iconToolBar ); |
1252 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1252 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
1253 | dummy->setMinimumWidth( 0 ); | 1253 | dummy->setMinimumWidth( 0 ); |
1254 | iconToolBar->setStretchableWidget ( dummy ) ; | 1254 | iconToolBar->setStretchableWidget ( dummy ) ; |
1255 | } | 1255 | } |
1256 | else { | 1256 | else { |
1257 | iconToolBar->setHorizontalStretchable (true ); | 1257 | iconToolBar->setHorizontalStretchable (true ); |
1258 | viewToolBar->setHorizontalStretchable (true ); | 1258 | viewToolBar->setHorizontalStretchable (true ); |
1259 | navigatorToolBar->setHorizontalStretchable (true ); | 1259 | navigatorToolBar->setHorizontalStretchable (true ); |
1260 | iconToolBar->setVerticalStretchable (true ); | 1260 | iconToolBar->setVerticalStretchable (true ); |
1261 | viewToolBar->setVerticalStretchable (true ); | 1261 | viewToolBar->setVerticalStretchable (true ); |
1262 | navigatorToolBar->setVerticalStretchable (true ); | 1262 | navigatorToolBar->setVerticalStretchable (true ); |
1263 | configureToolBarMenu->setItemChecked( 5, true ); | 1263 | configureToolBarMenu->setItemChecked( 5, true ); |
1264 | } | 1264 | } |
1265 | if (p-> mShowIconFilter) | 1265 | if (p-> mShowIconFilter) |
1266 | configureToolBarMenu->setItemChecked( 7, true ); | 1266 | configureToolBarMenu->setItemChecked( 7, true ); |
1267 | if (p-> mShowIconOnetoolbar) | 1267 | if (p-> mShowIconOnetoolbar) |
1268 | configureToolBarMenu->setItemChecked( 6, true ); | 1268 | configureToolBarMenu->setItemChecked( 6, true ); |
1269 | 1269 | ||
1270 | 1270 | ||
1271 | if ( filterMenubar ) | 1271 | if ( filterMenubar ) |
1272 | connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) ); | 1272 | connect( mView->filterView(), SIGNAL( filterChanged() ), SLOT( updateFilterToolbar() ) ); |
1273 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 1273 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
1274 | configureAgenda( p->mHourSize ); | 1274 | configureAgenda( p->mHourSize ); |
1275 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 1275 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
1276 | } | 1276 | } |
1277 | 1277 | ||
1278 | void MainWindow::exportToPhone( int mode ) | 1278 | void MainWindow::exportToPhone( int mode ) |
1279 | { | 1279 | { |
1280 | 1280 | ||
1281 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1281 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1282 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1282 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1283 | KOex2phonePrefs ex2phone; | 1283 | KOex2phonePrefs ex2phone; |
1284 | 1284 | ||
1285 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 1285 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
1286 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 1286 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
1287 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1287 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1288 | if ( mode == 1 ) | 1288 | if ( mode == 1 ) |
1289 | ex2phone.setCaption(i18n("Export complete calendar")); | 1289 | ex2phone.setCaption(i18n("Export complete calendar")); |
1290 | if ( mode == 2 ) | 1290 | if ( mode == 2 ) |
1291 | ex2phone.setCaption(i18n("Export filtered calendar")); | 1291 | ex2phone.setCaption(i18n("Export filtered calendar")); |
1292 | 1292 | ||
1293 | if ( !ex2phone.exec() ) { | 1293 | if ( !ex2phone.exec() ) { |
1294 | return; | 1294 | return; |
1295 | } | 1295 | } |
1296 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 1296 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
1297 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 1297 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
1298 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 1298 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
1299 | 1299 | ||
1300 | int inFuture = 0; | 1300 | int inFuture = 0; |
1301 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 1301 | if ( ex2phone.mWriteBackFuture->isChecked() ) |
1302 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); | 1302 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); |
1303 | QPtrList<Incidence> delSel; | 1303 | QPtrList<Incidence> delSel; |
1304 | if ( mode == 1 ) | 1304 | if ( mode == 1 ) |
1305 | delSel = mCalendar->rawIncidences(); | 1305 | delSel = mCalendar->rawIncidences(); |
1306 | if ( mode == 2 ) | 1306 | if ( mode == 2 ) |
1307 | delSel = mCalendar->incidences(); | 1307 | delSel = mCalendar->incidences(); |
1308 | CalendarLocal* cal = new CalendarLocal(); | 1308 | CalendarLocal* cal = new CalendarLocal(); |
1309 | cal->setLocalTime(); | 1309 | cal->setLocalTime(); |
1310 | Incidence *incidence = delSel.first(); | 1310 | Incidence *incidence = delSel.first(); |
1311 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); | 1311 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); |
1312 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); | 1312 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); |
1313 | while ( incidence ) { | 1313 | while ( incidence ) { |
1314 | if ( incidence->type() != "Journal" ) { | 1314 | if ( incidence->type() != "Journal" ) { |
1315 | bool add = true; | 1315 | bool add = true; |
1316 | if ( inFuture ) { | 1316 | if ( inFuture ) { |
1317 | QDateTime dt; | 1317 | QDateTime dt; |
1318 | if ( incidence->type() == "Todo" ) { | 1318 | if ( incidence->type() == "Todo" ) { |
1319 | Todo * t = (Todo*)incidence; | 1319 | Todo * t = (Todo*)incidence; |
1320 | if ( t->hasDueDate() ) | 1320 | if ( t->hasDueDate() ) |
1321 | dt = t->dtDue(); | 1321 | dt = t->dtDue(); |
1322 | else | 1322 | else |
1323 | dt = cur.addSecs( 62 ); | 1323 | dt = cur.addSecs( 62 ); |
1324 | } | 1324 | } |
1325 | else { | 1325 | else { |
1326 | bool ok; | 1326 | bool ok; |
1327 | dt = incidence->getNextOccurence( cur, &ok ); | 1327 | dt = incidence->getNextOccurence( cur, &ok ); |
1328 | if ( !ok ) | 1328 | if ( !ok ) |
1329 | dt = cur.addSecs( -62 ); | 1329 | dt = cur.addSecs( -62 ); |
1330 | } | 1330 | } |
1331 | if ( dt < cur || dt > end ) { | 1331 | if ( dt < cur || dt > end ) { |
1332 | add = false; | 1332 | add = false; |
1333 | } | 1333 | } |
1334 | } | 1334 | } |
1335 | if ( add ) { | 1335 | if ( add ) { |
1336 | Incidence *in = incidence->clone(); | 1336 | Incidence *in = incidence->clone(); |
1337 | cal->addIncidence( in ); | 1337 | cal->addIncidence( in ); |
1338 | } | 1338 | } |
1339 | } | 1339 | } |
1340 | incidence = delSel.next(); | 1340 | incidence = delSel.next(); |
1341 | } | 1341 | } |
1342 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 1342 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
1343 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 1343 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
1344 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1344 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1345 | 1345 | ||
1346 | setCaption( i18n("Writing to phone...")); | 1346 | setCaption( i18n("Writing to phone...")); |
1347 | if ( PhoneFormat::writeToPhone( cal ) ) | 1347 | if ( PhoneFormat::writeToPhone( cal ) ) |
1348 | setCaption( i18n("Export to phone successful!")); | 1348 | setCaption( i18n("Export to phone successful!")); |
1349 | else | 1349 | else |
1350 | setCaption( i18n("Error exporting to phone!")); | 1350 | setCaption( i18n("Error exporting to phone!")); |
1351 | delete cal; | 1351 | delete cal; |
1352 | } | 1352 | } |
1353 | 1353 | ||
1354 | 1354 | ||
1355 | void MainWindow::setDefaultPreferences() | 1355 | void MainWindow::setDefaultPreferences() |
1356 | { | 1356 | { |
1357 | KOPrefs *p = KOPrefs::instance(); | 1357 | KOPrefs *p = KOPrefs::instance(); |
1358 | 1358 | ||
1359 | p->mCompactDialogs = true; | 1359 | p->mCompactDialogs = true; |
1360 | p->mConfirm = true; | 1360 | p->mConfirm = true; |
1361 | // p->mEnableQuickTodo = false; | 1361 | // p->mEnableQuickTodo = false; |
1362 | 1362 | ||
1363 | } | 1363 | } |
1364 | 1364 | ||
1365 | QString MainWindow::resourcePath() | 1365 | QString MainWindow::resourcePath() |
1366 | { | 1366 | { |
1367 | return KGlobal::iconLoader()->iconPath(); | 1367 | return KGlobal::iconLoader()->iconPath(); |
1368 | } | 1368 | } |
1369 | 1369 | ||
1370 | void MainWindow::displayText( QString text ,QString cap ) | 1370 | void MainWindow::displayText( QString text ,QString cap ) |
1371 | { | 1371 | { |
1372 | QDialog dia( this, "name", true ); ; | 1372 | QDialog dia( this, "name", true ); ; |
1373 | dia.setCaption( cap ); | 1373 | dia.setCaption( cap ); |
1374 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1374 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1375 | lay->setSpacing( 3 ); | 1375 | lay->setSpacing( 3 ); |
1376 | lay->setMargin( 3 ); | 1376 | lay->setMargin( 3 ); |
1377 | QTextBrowser tb ( &dia ); | 1377 | QTextBrowser tb ( &dia ); |
1378 | lay->addWidget( &tb ); | 1378 | lay->addWidget( &tb ); |
1379 | tb.setText( text ); | 1379 | tb.setText( text ); |
1380 | #ifdef DESKTOP_VERSION | 1380 | #ifdef DESKTOP_VERSION |
1381 | dia.resize( 640, 480); | 1381 | dia.resize( 640, 480); |
1382 | #else | 1382 | #else |
1383 | dia.showMaximized(); | 1383 | dia.showMaximized(); |
1384 | #endif | 1384 | #endif |
1385 | dia.exec(); | 1385 | dia.exec(); |
1386 | } | 1386 | } |
1387 | 1387 | ||
1388 | void MainWindow::features() | 1388 | void MainWindow::features() |
1389 | { | 1389 | { |
1390 | 1390 | ||
1391 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); | 1391 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); |
1392 | } | 1392 | } |
1393 | 1393 | ||
1394 | void MainWindow::usertrans() | 1394 | void MainWindow::usertrans() |
1395 | { | 1395 | { |
1396 | 1396 | ||
1397 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); | 1397 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); |
1398 | } | 1398 | } |
1399 | 1399 | ||
1400 | void MainWindow::storagehowto() | 1400 | void MainWindow::storagehowto() |
1401 | { | 1401 | { |
1402 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); | 1402 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); |
1403 | } | 1403 | } |
1404 | void MainWindow::kdesynchowto() | 1404 | void MainWindow::kdesynchowto() |
1405 | { | 1405 | { |
1406 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 1406 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
1407 | } | 1407 | } |
1408 | void MainWindow::multisynchowto() | 1408 | void MainWindow::multisynchowto() |
1409 | { | 1409 | { |
1410 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 1410 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
1411 | } | 1411 | } |
1412 | void MainWindow::synchowto() | 1412 | void MainWindow::synchowto() |
1413 | { | 1413 | { |
1414 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 1414 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1415 | } | 1415 | } |
1416 | void MainWindow::faq() | 1416 | void MainWindow::faq() |
1417 | { | 1417 | { |
1418 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); | 1418 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); |
1419 | 1419 | ||
1420 | } | 1420 | } |
1421 | void MainWindow::whatsNew() | 1421 | void MainWindow::whatsNew() |
1422 | { | 1422 | { |
1423 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 1423 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1424 | 1424 | ||
1425 | } | 1425 | } |
1426 | void MainWindow::licence() | 1426 | void MainWindow::licence() |
1427 | { | 1427 | { |
1428 | KApplication::showLicence(); | 1428 | KApplication::showLicence(); |
1429 | 1429 | ||
1430 | } | 1430 | } |
1431 | void MainWindow::about() | 1431 | void MainWindow::about() |
1432 | { | 1432 | { |
1433 | QString version; | 1433 | QString version; |
1434 | #include <../version> | 1434 | #include <../version> |
1435 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1435 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1436 | i18n("KOrganizer/Platform-independent\n") + | 1436 | i18n("KOrganizer/Platform-independent\n") + |
1437 | "(KO/Pi) " + version + " - " + | 1437 | "(KO/Pi) " + version + " - " + |
1438 | 1438 | ||
1439 | #ifdef DESKTOP_VERSION | 1439 | #ifdef DESKTOP_VERSION |
1440 | i18n("Desktop Edition\n") + | 1440 | i18n("Desktop Edition\n") + |
1441 | #else | 1441 | #else |
1442 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + | 1442 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + |
1443 | #endif | 1443 | #endif |
1444 | 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!") ); | 1444 | 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!") ); |
1445 | } | 1445 | } |
1446 | void MainWindow::keyBindings() | 1446 | void MainWindow::keyBindings() |
1447 | { | 1447 | { |
1448 | QString cap = i18n("KO/Pi Keys + Colors"); | 1448 | QString cap = i18n("KO/Pi Keys + Colors"); |
1449 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1449 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1450 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1450 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1451 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + | 1451 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + |
1452 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + | 1452 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + |
1453 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1453 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1454 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1454 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1455 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1455 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1456 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1456 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1457 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1457 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1458 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ | 1458 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ |
1459 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1459 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1460 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1460 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1461 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1461 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1462 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | 1462 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ |
1463 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1463 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1464 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1464 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1465 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ | 1465 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ |
1466 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1466 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1467 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1467 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1468 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1468 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1469 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1469 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1470 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1470 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1471 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1471 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1472 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1472 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1473 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1473 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1474 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1474 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1475 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1475 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1476 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ | 1476 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ |
1477 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ | 1477 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ |
1478 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ | 1478 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ |
1479 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1479 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1480 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1480 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1481 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1481 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1482 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1482 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1483 | i18n("<p><h3>In list view:</h3></p>\n") + | 1483 | i18n("<p><h3>In list view:</h3></p>\n") + |
1484 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1484 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1485 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1485 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1486 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1486 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1487 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1487 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1488 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1488 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1489 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1489 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1490 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1490 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1491 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1491 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1492 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1492 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1493 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1493 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1494 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1494 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1495 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1495 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1496 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1496 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1497 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1497 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1498 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1498 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1499 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1499 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1500 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1500 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1501 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1501 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1502 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1502 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1503 | displayText( text, cap); | 1503 | displayText( text, cap); |
1504 | } | 1504 | } |
1505 | void MainWindow::aboutAutoSaving() | 1505 | void MainWindow::aboutAutoSaving() |
1506 | { | 1506 | { |
1507 | 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"); | 1507 | 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"); |
1508 | 1508 | ||
1509 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); | 1509 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); |
1510 | 1510 | ||
1511 | } | 1511 | } |
1512 | void MainWindow::aboutKnownBugs() | 1512 | void MainWindow::aboutKnownBugs() |
1513 | { | 1513 | { |
1514 | QMessageBox* msg; | 1514 | QMessageBox* msg; |
1515 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), | 1515 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), |
1516 | 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")+ | 1516 | 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")+ |
1517 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ | 1517 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ |
1518 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + | 1518 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + |
1519 | i18n("\nor report them in the bugtracker on\n") + | 1519 | i18n("\nor report them in the bugtracker on\n") + |
1520 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), | 1520 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), |
1521 | QMessageBox::NoIcon, | 1521 | QMessageBox::NoIcon, |
1522 | QMessageBox::Ok, | 1522 | QMessageBox::Ok, |
1523 | QMessageBox::NoButton, | 1523 | QMessageBox::NoButton, |
1524 | QMessageBox::NoButton); | 1524 | QMessageBox::NoButton); |
1525 | msg->exec(); | 1525 | msg->exec(); |
1526 | delete msg; | 1526 | delete msg; |
1527 | 1527 | ||
1528 | } | 1528 | } |
1529 | 1529 | ||
1530 | QString MainWindow::defaultFileName() | 1530 | QString MainWindow::defaultFileName() |
1531 | { | 1531 | { |
1532 | return locateLocal( "data", "korganizer/mycalendar.ics" ); | 1532 | return locateLocal( "data", "korganizer/mycalendar.ics" ); |
1533 | } | 1533 | } |
1534 | QString MainWindow::syncFileName() | 1534 | QString MainWindow::syncFileName() |
1535 | { | 1535 | { |
1536 | #ifdef DESKTOP_VERSION | 1536 | #ifdef DESKTOP_VERSION |
1537 | return locateLocal( "tmp", "synccalendar.ics" ); | 1537 | return locateLocal( "tmp", "synccalendar.ics" ); |
1538 | #else | 1538 | #else |
1539 | return QString( "/tmp/synccalendar.ics" ); | 1539 | return QString( "/tmp/synccalendar.ics" ); |
1540 | #endif | 1540 | #endif |
1541 | } | 1541 | } |
1542 | #include "koglobals.h" | 1542 | #include "koglobals.h" |
1543 | #include <kcalendarsystem.h> | 1543 | #include <kcalendarsystem.h> |
1544 | void MainWindow::updateWeek(QDate seda) | 1544 | void MainWindow::updateWeek(QDate seda) |
1545 | { | 1545 | { |
1546 | int weekNum = KGlobal::locale()->weekNum ( seda ); | 1546 | int weekNum = KGlobal::locale()->weekNum ( seda ); |
1547 | mWeekPixmap.fill( mWeekBgColor ); | 1547 | mWeekPixmap.fill( mWeekBgColor ); |
1548 | QPainter p ( &mWeekPixmap ); | 1548 | QPainter p ( &mWeekPixmap ); |
1549 | p.setFont( mWeekFont ); | 1549 | p.setFont( mWeekFont ); |
1550 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); | 1550 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); |
1551 | p.end(); | 1551 | p.end(); |
1552 | QIconSet icon3 ( mWeekPixmap ); | 1552 | QIconSet icon3 ( mWeekPixmap ); |
1553 | mWeekAction->setIconSet ( icon3 ); | 1553 | mWeekAction->setIconSet ( icon3 ); |
1554 | 1554 | ||
1555 | } | 1555 | } |
1556 | void MainWindow::updateWeekNum(const DateList &selectedDates) | 1556 | void MainWindow::updateWeekNum(const DateList &selectedDates) |
1557 | { | 1557 | { |
1558 | updateWeek( selectedDates.first() ); | 1558 | updateWeek( selectedDates.first() ); |
1559 | } | 1559 | } |
1560 | void MainWindow::processIncidenceSelection( Incidence *incidence ) | 1560 | void MainWindow::processIncidenceSelection( Incidence *incidence ) |
1561 | { | 1561 | { |
1562 | 1562 | ||
1563 | if ( !incidence ) { | 1563 | if ( !incidence ) { |
1564 | enableIncidenceActions( false ); | 1564 | enableIncidenceActions( false ); |
1565 | 1565 | ||
1566 | mNewSubTodoAction->setEnabled( false ); | 1566 | mNewSubTodoAction->setEnabled( false ); |
1567 | setCaptionToDates(); | 1567 | setCaptionToDates(); |
1568 | return; | 1568 | return; |
1569 | 1569 | ||
1570 | } | 1570 | } |
1571 | 1571 | ||
1572 | //KGlobal::locale()->formatDateTime(nextA, true); | 1572 | //KGlobal::locale()->formatDateTime(nextA, true); |
1573 | QString startString = ""; | 1573 | QString startString = ""; |
1574 | if ( incidence->type() != "Todo" ) { | 1574 | if ( incidence->type() != "Todo" ) { |
1575 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { | 1575 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { |
1576 | if ( incidence->doesFloat() ) { | 1576 | if ( incidence->doesFloat() ) { |
1577 | startString += ": "+incidence->dtStartDateStr( true ); | 1577 | startString += ": "+incidence->dtStartDateStr( true ); |
1578 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); | 1578 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); |
1579 | 1579 | ||
1580 | } else { | 1580 | } else { |
1581 | startString = ": "+incidence->dtStartStr(true); | 1581 | startString = ": "+incidence->dtStartStr(true); |
1582 | startString += " --- "+((Event*)incidence)->dtEndStr(true); | 1582 | startString += " --- "+((Event*)incidence)->dtEndStr(true); |
1583 | 1583 | ||
1584 | } | 1584 | } |
1585 | 1585 | ||
1586 | } else { | 1586 | } else { |
1587 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) | 1587 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) |
1588 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ | 1588 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ |
1589 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); | 1589 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); |
1590 | if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { | 1590 | |
1591 | if ( incidence->isBirthday() || incidence->isAnniversary() ) { | ||
1591 | bool ok; | 1592 | bool ok; |
1592 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); | 1593 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); |
1593 | if ( ok ) { | 1594 | if ( ok ) { |
1594 | int years = noc.date().year() - incidence->dtStart().date().year(); | 1595 | int years = noc.date().year() - incidence->dtStart().date().year(); |
1595 | startString += i18n(" (%1 y.)"). arg( years ); | 1596 | startString += i18n(" (%1 y.)"). arg( years ); |
1596 | } | 1597 | } |
1597 | } | 1598 | } |
1598 | else | 1599 | else |
1599 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); | 1600 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); |
1600 | } | 1601 | } |
1601 | 1602 | ||
1602 | } | 1603 | } |
1603 | else | 1604 | else |
1604 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); | 1605 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); |
1605 | if ( !incidence->location().isEmpty() ) | 1606 | if ( !incidence->location().isEmpty() ) |
1606 | startString += " (" +incidence->location()+")"; | 1607 | startString += " (" +incidence->location()+")"; |
1607 | setCaption( incidence->summary()+startString); | 1608 | setCaption( incidence->summary()+startString); |
1608 | 1609 | ||
1609 | enableIncidenceActions( true ); | 1610 | enableIncidenceActions( true ); |
1610 | 1611 | ||
1611 | if ( incidence->type() == "Event" ) { | 1612 | if ( incidence->type() == "Event" ) { |
1612 | mShowAction->setText( i18n("Show Event...") ); | 1613 | mShowAction->setText( i18n("Show Event...") ); |
1613 | mEditAction->setText( i18n("Edit Event...") ); | 1614 | mEditAction->setText( i18n("Edit Event...") ); |
1614 | mDeleteAction->setText( i18n("Delete Event...") ); | 1615 | mDeleteAction->setText( i18n("Delete Event...") ); |
1615 | 1616 | ||
1616 | mNewSubTodoAction->setEnabled( false ); | 1617 | mNewSubTodoAction->setEnabled( false ); |
1617 | } else if ( incidence->type() == "Todo" ) { | 1618 | } else if ( incidence->type() == "Todo" ) { |
1618 | mShowAction->setText( i18n("Show Todo...") ); | 1619 | mShowAction->setText( i18n("Show Todo...") ); |
1619 | mEditAction->setText( i18n("Edit Todo...") ); | 1620 | mEditAction->setText( i18n("Edit Todo...") ); |
1620 | mDeleteAction->setText( i18n("Delete Todo...") ); | 1621 | mDeleteAction->setText( i18n("Delete Todo...") ); |
1621 | 1622 | ||
1622 | mNewSubTodoAction->setEnabled( true ); | 1623 | mNewSubTodoAction->setEnabled( true ); |
1623 | } else { | 1624 | } else { |
1624 | mShowAction->setText( i18n("Show...") ); | 1625 | mShowAction->setText( i18n("Show...") ); |
1625 | mShowAction->setText( i18n("Edit...") ); | 1626 | mShowAction->setText( i18n("Edit...") ); |
1626 | mShowAction->setText( i18n("Delete...") ); | 1627 | mShowAction->setText( i18n("Delete...") ); |
1627 | 1628 | ||
1628 | mNewSubTodoAction->setEnabled( false ); | 1629 | mNewSubTodoAction->setEnabled( false ); |
1629 | } | 1630 | } |
1630 | } | 1631 | } |
1631 | 1632 | ||
1632 | void MainWindow::enableIncidenceActions( bool enabled ) | 1633 | void MainWindow::enableIncidenceActions( bool enabled ) |
1633 | { | 1634 | { |
1634 | mShowAction->setEnabled( enabled ); | 1635 | mShowAction->setEnabled( enabled ); |
1635 | mEditAction->setEnabled( enabled ); | 1636 | mEditAction->setEnabled( enabled ); |
1636 | mDeleteAction->setEnabled( enabled ); | 1637 | mDeleteAction->setEnabled( enabled ); |
1637 | 1638 | ||
1638 | mCloneAction->setEnabled( enabled ); | 1639 | mCloneAction->setEnabled( enabled ); |
1639 | mMoveAction->setEnabled( enabled ); | 1640 | mMoveAction->setEnabled( enabled ); |
1640 | mBeamAction->setEnabled( enabled ); | 1641 | mBeamAction->setEnabled( enabled ); |
1641 | mCancelAction->setEnabled( enabled ); | 1642 | mCancelAction->setEnabled( enabled ); |
1642 | } | 1643 | } |
1643 | 1644 | ||
1644 | void MainWindow::importOL() | 1645 | void MainWindow::importOL() |
1645 | { | 1646 | { |
1646 | #ifdef _OL_IMPORT_ | 1647 | #ifdef _OL_IMPORT_ |
1647 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1648 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1648 | id->exec(); | 1649 | id->exec(); |
1649 | delete id; | 1650 | delete id; |
1650 | mView->updateView(); | 1651 | mView->updateView(); |
1651 | #endif | 1652 | #endif |
1652 | } | 1653 | } |
1653 | void MainWindow::importBday() | 1654 | void MainWindow::importBday() |
1654 | { | 1655 | { |
1655 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1656 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1656 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), | 1657 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), |
1657 | i18n("Import!"), i18n("Cancel"), 0, | 1658 | i18n("Import!"), i18n("Cancel"), 0, |
1658 | 0, 1 ); | 1659 | 0, 1 ); |
1659 | if ( result == 0 ) { | 1660 | if ( result == 0 ) { |
1660 | mView->importBday(); | 1661 | mView->importBday(); |
1661 | 1662 | ||
1662 | } | 1663 | } |
1663 | 1664 | ||
1664 | 1665 | ||
1665 | } | 1666 | } |
1666 | void MainWindow::importQtopia() | 1667 | void MainWindow::importQtopia() |
1667 | { | 1668 | { |
1668 | //#ifndef DESKTOP_VERSION | 1669 | //#ifndef DESKTOP_VERSION |
1669 | 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"); | 1670 | 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"); |
1670 | #ifdef DESKTOP_VERSION | 1671 | #ifdef DESKTOP_VERSION |
1671 | 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"); | 1672 | 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"); |
1672 | #endif | 1673 | #endif |
1673 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, | 1674 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, |
1674 | i18n("Import!"), i18n("Cancel"), 0, | 1675 | i18n("Import!"), i18n("Cancel"), 0, |
1675 | 0, 1 ); | 1676 | 0, 1 ); |
1676 | if ( result == 0 ) { | 1677 | if ( result == 0 ) { |
1677 | #ifndef DESKTOP_VERSION | 1678 | #ifndef DESKTOP_VERSION |
1678 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); | 1679 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); |
1679 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); | 1680 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); |
1680 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; | 1681 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; |
1681 | #else | 1682 | #else |
1682 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; | 1683 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; |
1683 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; | 1684 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; |
1684 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; | 1685 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; |
1685 | #endif | 1686 | #endif |
1686 | mView->importQtopia( categories, datebook, todolist ); | 1687 | mView->importQtopia( categories, datebook, todolist ); |
1687 | } | 1688 | } |
1688 | #if 0 | 1689 | #if 0 |
1689 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1690 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1690 | i18n("Not supported \non desktop!\n"), | 1691 | i18n("Not supported \non desktop!\n"), |
1691 | i18n("Ok"), i18n("Cancel"), 0, | 1692 | i18n("Ok"), i18n("Cancel"), 0, |
1692 | 0, 1 ); | 1693 | 0, 1 ); |
1693 | 1694 | ||
1694 | #endif | 1695 | #endif |
1695 | } | 1696 | } |
1696 | 1697 | ||
1697 | void MainWindow::saveOnClose() | 1698 | void MainWindow::saveOnClose() |
1698 | { | 1699 | { |
1699 | KOPrefs *p = KOPrefs::instance(); | 1700 | KOPrefs *p = KOPrefs::instance(); |
1700 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1701 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1701 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); | 1702 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); |
1702 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); | 1703 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); |
1703 | if ( filterToolBar ) { | 1704 | if ( filterToolBar ) { |
1704 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); | 1705 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); |
1705 | } | 1706 | } |
1706 | #ifdef DESKTOP_VERSION | 1707 | #ifdef DESKTOP_VERSION |
1707 | 1708 | ||
1708 | QPoint myP; | 1709 | QPoint myP; |
1709 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1710 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1710 | if ( p->mToolBarHor ) | 1711 | if ( p->mToolBarHor ) |
1711 | p->mToolBarUp = myP.y() > height()/2; | 1712 | p->mToolBarUp = myP.y() > height()/2; |
1712 | else | 1713 | else |
1713 | p->mToolBarUp = myP.x() > width()/2; | 1714 | p->mToolBarUp = myP.x() > width()/2; |
1714 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1715 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1715 | if ( p->mToolBarHorV ) | 1716 | if ( p->mToolBarHorV ) |
1716 | p->mToolBarUpV = myP.y() > height()/2; | 1717 | p->mToolBarUpV = myP.y() > height()/2; |
1717 | else | 1718 | else |
1718 | p->mToolBarUpV = myP.x() > width()/2 ; | 1719 | p->mToolBarUpV = myP.x() > width()/2 ; |
1719 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1720 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1720 | if ( p->mToolBarHorN ) | 1721 | if ( p->mToolBarHorN ) |
1721 | p->mToolBarUpN = myP.y() > height()/2; | 1722 | p->mToolBarUpN = myP.y() > height()/2; |
1722 | else | 1723 | else |
1723 | p->mToolBarUpN = myP.x() > width()/2 ; | 1724 | p->mToolBarUpN = myP.x() > width()/2 ; |
1724 | if ( filterToolBar ) { | 1725 | if ( filterToolBar ) { |
1725 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1726 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1726 | if ( p->mToolBarHorF ) | 1727 | if ( p->mToolBarHorF ) |
1727 | p->mToolBarUpF = myP.y() > height()/2; | 1728 | p->mToolBarUpF = myP.y() > height()/2; |
1728 | else | 1729 | else |
1729 | p->mToolBarUpF = myP.x() > width()/2 ; | 1730 | p->mToolBarUpF = myP.x() > width()/2 ; |
1730 | } | 1731 | } |
1731 | #else | 1732 | #else |
1732 | if ( p->mToolBarHor ) | 1733 | if ( p->mToolBarHor ) |
1733 | p->mToolBarUp = iconToolBar->y() > height()/2; | 1734 | p->mToolBarUp = iconToolBar->y() > height()/2; |
1734 | else | 1735 | else |
1735 | p->mToolBarUp = iconToolBar->x() > width()/2; | 1736 | p->mToolBarUp = iconToolBar->x() > width()/2; |
1736 | if ( p->mToolBarHorV ) | 1737 | if ( p->mToolBarHorV ) |
1737 | p->mToolBarUpV = viewToolBar->y() > height()/2; | 1738 | p->mToolBarUpV = viewToolBar->y() > height()/2; |
1738 | else | 1739 | else |
1739 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; | 1740 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; |
1740 | 1741 | ||
1741 | if ( p->mToolBarHorN ) | 1742 | if ( p->mToolBarHorN ) |
1742 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; | 1743 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; |
1743 | else | 1744 | else |
1744 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; | 1745 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; |
1745 | if ( filterToolBar ) { | 1746 | if ( filterToolBar ) { |
1746 | if ( p->mToolBarHorF ) | 1747 | if ( p->mToolBarHorF ) |
1747 | p->mToolBarUpF = filterToolBar->y() > height()/2; | 1748 | p->mToolBarUpF = filterToolBar->y() > height()/2; |
1748 | else | 1749 | else |
1749 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; | 1750 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; |
1750 | } | 1751 | } |
1751 | #endif | 1752 | #endif |
1752 | 1753 | ||
1753 | 1754 | ||
1754 | mView->writeSettings(); | 1755 | mView->writeSettings(); |
1755 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1756 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |
1756 | save(); | 1757 | save(); |
1757 | } | 1758 | } |
1758 | void MainWindow::slotModifiedChanged( bool changed ) | 1759 | void MainWindow::slotModifiedChanged( bool changed ) |
1759 | { | 1760 | { |
1760 | if ( mBlockAtStartup ) | 1761 | if ( mBlockAtStartup ) |
1761 | return; | 1762 | return; |
1762 | 1763 | ||
1763 | int msec; | 1764 | int msec; |
1764 | // we store the changes after 1 minute, | 1765 | // we store the changes after 1 minute, |
1765 | // and for safety reasons after 10 minutes again | 1766 | // and for safety reasons after 10 minutes again |
1766 | if ( !mSyncManager->blockSave() ) | 1767 | if ( !mSyncManager->blockSave() ) |
1767 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; | 1768 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; |
1768 | else | 1769 | else |
1769 | msec = 1000 * 600; | 1770 | msec = 1000 * 600; |
1770 | mSaveTimer.start( msec, true ); // 1 minute | 1771 | mSaveTimer.start( msec, true ); // 1 minute |
1771 | qDebug("KO: Saving File in %d secs!", msec/1000); | 1772 | qDebug("KO: Saving File in %d secs!", msec/1000); |
1772 | mCalendarModifiedFlag = true; | 1773 | mCalendarModifiedFlag = true; |
1773 | } | 1774 | } |
1774 | void MainWindow::saveStopTimer() | 1775 | void MainWindow::saveStopTimer() |
1775 | { | 1776 | { |
1776 | mSaveTimer.stop(); | 1777 | mSaveTimer.stop(); |
1777 | } | 1778 | } |
1778 | void MainWindow::save() | 1779 | void MainWindow::save() |
1779 | { | 1780 | { |
1780 | if ( !mCalendarModifiedFlag ) { | 1781 | if ( !mCalendarModifiedFlag ) { |
1781 | qDebug("KO: Calendar not modified. Nothing saved."); | 1782 | qDebug("KO: Calendar not modified. Nothing saved."); |
1782 | return; | 1783 | return; |
1783 | } | 1784 | } |
1784 | if ( mSyncManager->blockSave() ) | 1785 | if ( mSyncManager->blockSave() ) |
1785 | return; | 1786 | return; |
1786 | mSyncManager->setBlockSave(true); | 1787 | mSyncManager->setBlockSave(true); |
1787 | if ( mView->checkFileVersion( defaultFileName()) ) { | 1788 | if ( mView->checkFileVersion( defaultFileName()) ) { |
1788 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 1789 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
1789 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); | 1790 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); |
1790 | qDebug("KO: Start saving data to file!"); | 1791 | qDebug("KO: Start saving data to file!"); |
1791 | mView->saveCalendar( defaultFileName() ); | 1792 | mView->saveCalendar( defaultFileName() ); |
1792 | mCalendarModifiedFlag = false; | 1793 | mCalendarModifiedFlag = false; |
1793 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 1794 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
1794 | qDebug("KO: Needed %d ms for saving.",msNeeded ); | 1795 | qDebug("KO: Needed %d ms for saving.",msNeeded ); |
1795 | QString savemes; | 1796 | QString savemes; |
1796 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); | 1797 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); |
1797 | setCaption(savemes); | 1798 | setCaption(savemes); |
1798 | } else | 1799 | } else |
1799 | setCaption(i18n("Saving cancelled!")); | 1800 | setCaption(i18n("Saving cancelled!")); |
1800 | mSyncManager->setBlockSave( false ); | 1801 | mSyncManager->setBlockSave( false ); |
1801 | } | 1802 | } |
1802 | 1803 | ||
1803 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) | 1804 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) |
1804 | { | 1805 | { |
1805 | if ( !e->isAutoRepeat() ) { | 1806 | if ( !e->isAutoRepeat() ) { |
1806 | mFlagKeyPressed = false; | 1807 | mFlagKeyPressed = false; |
1807 | } | 1808 | } |
1808 | } | 1809 | } |
1809 | void MainWindow::keyPressEvent ( QKeyEvent * e ) | 1810 | void MainWindow::keyPressEvent ( QKeyEvent * e ) |
1810 | { | 1811 | { |
1811 | qApp->processEvents(); | 1812 | qApp->processEvents(); |
1812 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 1813 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
1813 | e->ignore(); | 1814 | e->ignore(); |
1814 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 1815 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
1815 | return; | 1816 | return; |
1816 | } | 1817 | } |
1817 | if (! e->isAutoRepeat() ) | 1818 | if (! e->isAutoRepeat() ) |
1818 | mFlagKeyPressed = true; | 1819 | mFlagKeyPressed = true; |
1819 | KOPrefs *p = KOPrefs::instance(); | 1820 | KOPrefs *p = KOPrefs::instance(); |
1820 | bool showSelectedDates = false; | 1821 | bool showSelectedDates = false; |
1821 | int size; | 1822 | int size; |
1822 | int pro = 0; | 1823 | int pro = 0; |
1823 | //qDebug("MainWindow::keyPressEvent "); | 1824 | //qDebug("MainWindow::keyPressEvent "); |
1824 | switch ( e->key() ) { | 1825 | switch ( e->key() ) { |
1825 | case Qt::Key_Right: | 1826 | case Qt::Key_Right: |
1826 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1827 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1827 | mView->goNextMonth(); | 1828 | mView->goNextMonth(); |
1828 | else | 1829 | else |
1829 | mView->goNext(); | 1830 | mView->goNext(); |
1830 | showSelectedDates = true; | 1831 | showSelectedDates = true; |
1831 | break; | 1832 | break; |
1832 | case Qt::Key_Left: | 1833 | case Qt::Key_Left: |
1833 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1834 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1834 | mView->goPreviousMonth(); | 1835 | mView->goPreviousMonth(); |
1835 | else | 1836 | else |
1836 | mView->goPrevious(); | 1837 | mView->goPrevious(); |
1837 | showSelectedDates = true; | 1838 | showSelectedDates = true; |
1838 | break; | 1839 | break; |
1839 | case Qt::Key_Down: | 1840 | case Qt::Key_Down: |
1840 | mView->viewManager()->agendaView()->scrollOneHourDown(); | 1841 | mView->viewManager()->agendaView()->scrollOneHourDown(); |
1841 | break; | 1842 | break; |
1842 | case Qt::Key_Up: | 1843 | case Qt::Key_Up: |
1843 | mView->viewManager()->agendaView()->scrollOneHourUp(); | 1844 | mView->viewManager()->agendaView()->scrollOneHourUp(); |
1844 | break; | 1845 | break; |
1845 | case Qt::Key_K: | 1846 | case Qt::Key_K: |
1846 | mView->viewManager()->showMonthViewWeek(); | 1847 | mView->viewManager()->showMonthViewWeek(); |
1847 | break; | 1848 | break; |
1848 | case Qt::Key_I: | 1849 | case Qt::Key_I: |
1849 | mView->showIncidence(); | 1850 | mView->showIncidence(); |
1850 | break; | 1851 | break; |
1851 | case Qt::Key_Delete: | 1852 | case Qt::Key_Delete: |
1852 | case Qt::Key_Backspace: | 1853 | case Qt::Key_Backspace: |
1853 | mView->deleteIncidence(); | 1854 | mView->deleteIncidence(); |
1854 | break; | 1855 | break; |
1855 | case Qt::Key_D: | 1856 | case Qt::Key_D: |
1856 | mView->viewManager()->showDayView(); | 1857 | mView->viewManager()->showDayView(); |
1857 | showSelectedDates = true; | 1858 | showSelectedDates = true; |
1858 | break; | 1859 | break; |
1859 | case Qt::Key_O: | 1860 | case Qt::Key_O: |
1860 | mView->toggleFilerEnabled( ); | 1861 | mView->toggleFilerEnabled( ); |
1861 | break; | 1862 | break; |
1862 | case Qt::Key_0: | 1863 | case Qt::Key_0: |
1863 | case Qt::Key_1: | 1864 | case Qt::Key_1: |
1864 | case Qt::Key_2: | 1865 | case Qt::Key_2: |
1865 | case Qt::Key_3: | 1866 | case Qt::Key_3: |
1866 | case Qt::Key_4: | 1867 | case Qt::Key_4: |
1867 | case Qt::Key_5: | 1868 | case Qt::Key_5: |
1868 | case Qt::Key_6: | 1869 | case Qt::Key_6: |
1869 | case Qt::Key_7: | 1870 | case Qt::Key_7: |
1870 | case Qt::Key_8: | 1871 | case Qt::Key_8: |
1871 | case Qt::Key_9: | 1872 | case Qt::Key_9: |
1872 | pro = e->key()-48; | 1873 | pro = e->key()-48; |
1873 | if ( pro == 0 ) | 1874 | if ( pro == 0 ) |
1874 | pro = 10; | 1875 | pro = 10; |
1875 | if ( e->state() == Qt::ControlButton) | 1876 | if ( e->state() == Qt::ControlButton) |
1876 | pro += 10; | 1877 | pro += 10; |
1877 | break; | 1878 | break; |
1878 | case Qt::Key_M: | 1879 | case Qt::Key_M: |
1879 | mView->viewManager()->showMonthView(); | 1880 | mView->viewManager()->showMonthView(); |
1880 | showSelectedDates = true; | 1881 | showSelectedDates = true; |
1881 | break; | 1882 | break; |
1882 | case Qt::Key_Insert: | 1883 | case Qt::Key_Insert: |
1883 | mView->newEvent(); | 1884 | mView->newEvent(); |
1884 | break; | 1885 | break; |
1885 | case Qt::Key_S : | 1886 | case Qt::Key_S : |
1886 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1887 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1887 | mView->newSubTodo(); | 1888 | mView->newSubTodo(); |
1888 | else | 1889 | else |
1889 | mView->dialogManager()->showSearchDialog(); | 1890 | mView->dialogManager()->showSearchDialog(); |
1890 | break; | 1891 | break; |
1891 | case Qt::Key_Y : | 1892 | case Qt::Key_Y : |
1892 | case Qt::Key_Z : | 1893 | case Qt::Key_Z : |
1893 | mView->viewManager()->showWorkWeekView(); | 1894 | mView->viewManager()->showWorkWeekView(); |
1894 | showSelectedDates = true; | 1895 | showSelectedDates = true; |
1895 | break; | 1896 | break; |
1896 | case Qt::Key_U : | 1897 | case Qt::Key_U : |
1897 | mView->viewManager()->showWeekView(); | 1898 | mView->viewManager()->showWeekView(); |
1898 | showSelectedDates = true; | 1899 | showSelectedDates = true; |
1899 | break; | 1900 | break; |
1900 | case Qt::Key_H : | 1901 | case Qt::Key_H : |
1901 | keyBindings(); | 1902 | keyBindings(); |
1902 | break; | 1903 | break; |
1903 | case Qt::Key_W: | 1904 | case Qt::Key_W: |
1904 | mView->viewManager()->showWhatsNextView(); | 1905 | mView->viewManager()->showWhatsNextView(); |
1905 | break; | 1906 | break; |
1906 | case Qt::Key_L: | 1907 | case Qt::Key_L: |
1907 | mView->viewManager()->showListView(); | 1908 | mView->viewManager()->showListView(); |
1908 | break; | 1909 | break; |
1909 | case Qt::Key_N: | 1910 | case Qt::Key_N: |
1910 | mView->viewManager()->showNextView(); | 1911 | mView->viewManager()->showNextView(); |
1911 | break; | 1912 | break; |
1912 | case Qt::Key_V: | 1913 | case Qt::Key_V: |
1913 | mView->viewManager()->showTodoView(); | 1914 | mView->viewManager()->showTodoView(); |
1914 | break; | 1915 | break; |
1915 | case Qt::Key_C: | 1916 | case Qt::Key_C: |
1916 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); | 1917 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); |
1917 | break; | 1918 | break; |
1918 | case Qt::Key_P: | 1919 | case Qt::Key_P: |
1919 | mView->showDatePicker( ); | 1920 | mView->showDatePicker( ); |
1920 | break; | 1921 | break; |
1921 | case Qt::Key_F: | 1922 | case Qt::Key_F: |
1922 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1923 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1923 | mView->editFilters(); | 1924 | mView->editFilters(); |
1924 | else | 1925 | else |
1925 | mView->toggleFilter(); | 1926 | mView->toggleFilter(); |
1926 | break; | 1927 | break; |
1927 | case Qt::Key_X: | 1928 | case Qt::Key_X: |
1928 | if ( e->state() == Qt::ControlButton ) | 1929 | if ( e->state() == Qt::ControlButton ) |
1929 | mView->toggleDateNavigatorWidget(); | 1930 | mView->toggleDateNavigatorWidget(); |
1930 | else { | 1931 | else { |
1931 | mView->viewManager()->showNextXView(); | 1932 | mView->viewManager()->showNextXView(); |
1932 | showSelectedDates = true; | 1933 | showSelectedDates = true; |
1933 | } | 1934 | } |
1934 | break; | 1935 | break; |
1935 | case Qt::Key_Space: | 1936 | case Qt::Key_Space: |
1936 | mView->toggleExpand(); | 1937 | mView->toggleExpand(); |
1937 | break; | 1938 | break; |
1938 | case Qt::Key_A: | 1939 | case Qt::Key_A: |
1939 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) | 1940 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) |
1940 | mView->showNextAlarms(); | 1941 | mView->showNextAlarms(); |
1941 | else | 1942 | else |
1942 | mView->toggleAllDaySize(); | 1943 | mView->toggleAllDaySize(); |
1943 | break; | 1944 | break; |
1944 | case Qt::Key_T: | 1945 | case Qt::Key_T: |
1945 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1946 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1946 | mView->newTodo(); | 1947 | mView->newTodo(); |
1947 | else { | 1948 | else { |
1948 | mView->goToday(); | 1949 | mView->goToday(); |
1949 | showSelectedDates = true; | 1950 | showSelectedDates = true; |
1950 | } | 1951 | } |
1951 | break; | 1952 | break; |
1952 | case Qt::Key_J: | 1953 | case Qt::Key_J: |
1953 | mView->viewManager()->showJournalView(); | 1954 | mView->viewManager()->showJournalView(); |
1954 | break; | 1955 | break; |
1955 | case Qt::Key_B: | 1956 | case Qt::Key_B: |
1956 | mView->editIncidenceDescription();; | 1957 | mView->editIncidenceDescription();; |
1957 | break; | 1958 | break; |
1958 | // case Qt::Key_Return: | 1959 | // case Qt::Key_Return: |
1959 | case Qt::Key_E: | 1960 | case Qt::Key_E: |
1960 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1961 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1961 | mView->newEvent(); | 1962 | mView->newEvent(); |
1962 | else | 1963 | else |
1963 | mView->editIncidence(); | 1964 | mView->editIncidence(); |
1964 | break; | 1965 | break; |
1965 | case Qt::Key_Plus: | 1966 | case Qt::Key_Plus: |
1966 | size = p->mHourSize +2; | 1967 | size = p->mHourSize +2; |
1967 | if ( size <= 22 ) | 1968 | if ( size <= 22 ) |
1968 | configureAgenda( size ); | 1969 | configureAgenda( size ); |
1969 | break; | 1970 | break; |
1970 | case Qt::Key_Minus: | 1971 | case Qt::Key_Minus: |
1971 | size = p->mHourSize - 2; | 1972 | size = p->mHourSize - 2; |
1972 | if ( size >= 4 ) | 1973 | if ( size >= 4 ) |
1973 | configureAgenda( size ); | 1974 | configureAgenda( size ); |
1974 | break; | 1975 | break; |