-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 12 | ||||
-rw-r--r-- | korganizer/koeditorgeneralevent.cpp | 8 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 2 | ||||
-rw-r--r-- | korganizer/kotodoviewitem.cpp | 10 | ||||
-rw-r--r-- | korganizer/kowhatsnextview.cpp | 6 | ||||
-rw-r--r-- | libkdepim/kdateedit.cpp | 9 |
6 files changed, 26 insertions, 21 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 4f29ca3..6587eaa 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1,683 +1,683 @@ | |||
1 | { "10 minutes","10 Minuten" }, | 1 | { "10 minutes","10 Minuten" }, |
2 | { "10th","10." }, | 2 | { "10th","10." }, |
3 | { "11th","11." }, | 3 | { "11th","11." }, |
4 | { "12 pm Format","12 AM/PM Format" }, | 4 | { "12 pm Format","12 AM/PM Format" }, |
5 | { "12th","12." }, | 5 | { "12th","12." }, |
6 | { "13th","13." }, | 6 | { "13th","13." }, |
7 | { "14th","14." }, | 7 | { "14th","14." }, |
8 | { "15th","15." }, | 8 | { "15th","15." }, |
9 | { "16th","16." }, | 9 | { "16th","16." }, |
10 | { "17th","17." }, | 10 | { "17th","17." }, |
11 | { "18th","18." }, | 11 | { "18th","18." }, |
12 | { "19th","19." }, | 12 | { "19th","19." }, |
13 | { "1 Day","1 Tag" }, | 13 | { "1 Day","1 Tag" }, |
14 | { "1 h","1 Std" }, | 14 | { "1 h","1 Std" }, |
15 | { "1 (high)","1 (hoch)" }, | 15 | { "1 (high)","1 (hoch)" }, |
16 | { "5 (low)","5" }, | 16 | { "5 (low)","5" }, |
17 | { "1st","1." }, | 17 | { "1st","1." }, |
18 | { "20th","20." }, | 18 | { "20th","20." }, |
19 | { "21st","21." }, | 19 | { "21st","21." }, |
20 | { "22nd","22." }, | 20 | { "22nd","22." }, |
21 | { "23rd","23." }, | 21 | { "23rd","23." }, |
22 | { "24:00 Hour Format","24:00 Stunden Format" }, | 22 | { "24:00 Hour Format","24:00 Stunden Format" }, |
23 | { "24th","24." }, | 23 | { "24th","24." }, |
24 | { "25th","25." }, | 24 | { "25th","25." }, |
25 | { "26th","26." }, | 25 | { "26th","26." }, |
26 | { "27th","27." }, | 26 | { "27th","27." }, |
27 | { "28th","28." }, | 27 | { "28th","28." }, |
28 | { "29th","29." }, | 28 | { "29th","29." }, |
29 | { "2nd","2." }, | 29 | { "2nd","2." }, |
30 | { "30 minutes","30 Minuten" }, | 30 | { "30 minutes","30 Minuten" }, |
31 | { "30th","30." }, | 31 | { "30th","30." }, |
32 | { "31st","31." }, | 32 | { "31st","31." }, |
33 | { "3rd","3." }, | 33 | { "3rd","3." }, |
34 | { "4th","4." }, | 34 | { "4th","4." }, |
35 | { "5 (lowest)","5 (Niedrigster)" }, | 35 | { "5 (lowest)","5 (Niedrigster)" }, |
36 | { "5th","5." }, | 36 | { "5th","5." }, |
37 | { "6th","6." }, | 37 | { "6th","6." }, |
38 | { "7th","7." }, | 38 | { "7th","7." }, |
39 | { "8th","8." }, | 39 | { "8th","8." }, |
40 | { "9th","9." }, | 40 | { "9th","9." }, |
41 | { "About...","Über..." }, | 41 | { "About...","Über..." }, |
42 | { "&Accept","&Akzeptieren" }, | 42 | { "&Accept","&Akzeptieren" }, |
43 | { "Accept","Akzeptieren" }, | 43 | { "Accept","Akzeptieren" }, |
44 | { "Accept A&ll","A&lles Akzepieren" }, | 44 | { "Accept A&ll","A&lles Akzepieren" }, |
45 | { "Access:","Zugriff:" }, | 45 | { "Access:","Zugriff:" }, |
46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, | 46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, |
47 | { "Actions","Aktionen" }, | 47 | { "Actions","Aktionen" }, |
48 | { "Add Filter","Filter Hinzufügen" }, | 48 | { "Add Filter","Filter Hinzufügen" }, |
49 | { "&Add","Hinzufügen" }, | 49 | { "&Add","Hinzufügen" }, |
50 | { "Add","Hinzufügen" }, | 50 | { "Add","Hinzufügen" }, |
51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, | 51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, |
52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, | 52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, |
53 | { "&Addressbook","&Adressbuch" }, | 53 | { "&Addressbook","&Adressbuch" }, |
54 | { "Address &Book...","Adress&buch..." }, | 54 | { "Address &Book...","Adress&buch..." }, |
55 | { "Agenda Size","Agende Größe" }, | 55 | { "Agenda Size","Agende Größe" }, |
56 | { "Agenda Size:","Größe der Agenda:" }, | 56 | { "Agenda Size:","Größe der Agenda:" }, |
57 | { "Agenda view:","Agenda Ansicht:" }, | 57 | { "Agenda view:","Agenda Ansicht:" }, |
58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, | 58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, |
59 | { "All attendees","Alle Teilnehmer" }, | 59 | { "All attendees","Alle Teilnehmer" }, |
60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, | 60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, |
61 | { "All day event","Ganztägig" }, | 61 | { "All day event","Ganztägig" }, |
62 | { "Anonymous","Anonym" }, | 62 | { "Anonymous","Anonym" }, |
63 | { "Apply","Anwenden" }, | 63 | { "Apply","Anwenden" }, |
64 | { "Apr","Apr" }, | 64 | { "Apr","Apr" }, |
65 | { "April","April" }, | 65 | { "April","April" }, |
66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, | 66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, |
67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, | 67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, |
68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, | 68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, |
69 | { "Attendees","Teilnehmer" }, | 69 | { "Attendees","Teilnehmer" }, |
70 | { "Aug","Aug" }, | 70 | { "Aug","Aug" }, |
71 | { "August","August" }, | 71 | { "August","August" }, |
72 | { "Auto-Save","Automatisches Abspeichern" }, | 72 | { "Auto-Save","Automatisches Abspeichern" }, |
73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, | 73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, |
74 | { "Auto saving...","Automatische Sicherung..." }, | 74 | { "Auto saving...","Automatische Sicherung..." }, |
75 | { "Begin on:","Starte mit:" }, | 75 | { "Begin on:","Starte mit:" }, |
76 | { "Begins on: %1","Starte mit: %1" }, | 76 | { "Begins on: %1","Starte mit: %1" }, |
77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, | 77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, |
78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, | 78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, |
79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, | 79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, |
80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, | 80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, |
81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, | 81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, |
82 | { "Busy","Belegt" }, | 82 | { "Busy","Belegt" }, |
83 | { "&Cancel","Abbre&chen" }, | 83 | { "&Cancel","Abbre&chen" }, |
84 | { "Cancel","Abbrechen" }, | 84 | { "Cancel","Abbrechen" }, |
85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, | 85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, |
86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, | 86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, |
87 | { "Categories...","Kategorien..." }, | 87 | { "Categories...","Kategorien..." }, |
88 | { "Categories","Kategorien" }, | 88 | { "Categories","Kategorien" }, |
89 | { "Category","Kategorie" }, | 89 | { "Category","Kategorie" }, |
90 | { "Center View","Zentriere Ansicht" }, | 90 | { "Center View","Zentriere Ansicht" }, |
91 | { "Change","Ändere" }, | 91 | { "Change","Ändere" }, |
92 | { "Cinema","Kino" }, | 92 | { "Cinema","Kino" }, |
93 | { "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, | 93 | { "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, |
94 | { "Clone Item","Klone Eintrag" }, | 94 | { "Clone Item","Klone Eintrag" }, |
95 | { "&Close","S&chließen" }, | 95 | { "&Close","S&chließen" }, |
96 | { "Close","Schließen" }, | 96 | { "Close","Schließen" }, |
97 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, | 97 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, |
98 | { "Colors","Farben" }, | 98 | { "Colors","Farben" }, |
99 | { "completed","erledigt" }, | 99 | { "completed","erledigt" }, |
100 | { "completed on %1","erledigt am %1" }, | 100 | { "completed on %1","erledigt am %1" }, |
101 | { "Complete","Erledigt" }, | 101 | { "Complete","Erledigt" }, |
102 | { "Confidential","Vertraulich" }, | 102 | { "Confidential","Vertraulich" }, |
103 | { "Configure...","Einstellungen..." }, | 103 | { "Configure...","Einstellungen..." }, |
104 | { "Confirm &deletes","Löschvogang bestätigen" }, | 104 | { "Confirm &deletes","Löschvogang bestätigen" }, |
105 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, | 105 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, |
106 | { "Counter-event Viewer","Terminzähler Ansicht" }, | 106 | { "Counter-event Viewer","Terminzähler Ansicht" }, |
107 | { "Daily ending hour:","Feierabend:" }, | 107 | { "Daily ending hour:","Feierabend:" }, |
108 | { "Daily starting hour:","Anfangszeit:" }, | 108 | { "Daily starting hour:","Anfangszeit:" }, |
109 | { "Daily","Täglich" }, | 109 | { "Daily","Täglich" }, |
110 | { "Date Format","Datums Format" }, | 110 | { "Date Format","Datums Format" }, |
111 | { "Date Format:","Datums Format:" }, | 111 | { "Date Format:","Datums Format:" }, |
112 | { "DateNavigator:(nr)","Datums Navigator" }, | 112 | { "DateNavigator:(nr)","Datums Navigator" }, |
113 | { "Dates: ","Datum: " }, | 113 | { "Dates: ","Datum: " }, |
114 | { "Date && Time","Datum && Zeit" }, | 114 | { "Date && Time","Datum && Zeit" }, |
115 | { "Day begins at:","Der Tag beginnt um:" }, | 115 | { "Day begins at:","Der Tag beginnt um:" }, |
116 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, | 116 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, |
117 | { "Days in What's Next:","Tage in What's Next:" }, | 117 | { "Days in What's Next:","Tage in What's Next:" }, |
118 | { "day(s)","Tag(e)" }, | 118 | { "day(s)","Tag(e)" }, |
119 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, | 119 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, |
120 | { "day","Tag" }, | 120 | { "day","Tag" }, |
121 | { "Dec","Dez" }, | 121 | { "Dec","Dez" }, |
122 | { "December","Dezember" }, | 122 | { "December","Dezember" }, |
123 | { "Default alarm time:","Standard Alarmzeit:" }, | 123 | { "Default alarm time:","Standard Alarmzeit:" }, |
124 | { "Default appointment time:","Standard Termin Startzeit:" }, | 124 | { "Default appointment time:","Standard Termin Startzeit:" }, |
125 | { "Default event color:","Standard Terminfarbe:" }, | 125 | { "Default event color:","Standard Terminfarbe:" }, |
126 | { "Default","Standard" }, | 126 | { "Default","Standard" }, |
127 | { "Def. duration of new app.:","Standard Termin Länge:" }, | 127 | { "Def. duration of new app.:","Standard Termin Länge:" }, |
128 | { "Delete all completed To-Dos?","Alle bereits erledigten Todos löschen?" }, | 128 | { "Delete all completed To-Dos?","Alle bereits erledigten Todos löschen?" }, |
129 | { "Delete All","Lösche alles" }, | 129 | { "Delete All","Lösche alles" }, |
130 | { "Delete all selected","Lösche alle Selektierten" }, | 130 | { "Delete all selected","Lösche alle Selektierten" }, |
131 | { "Delete Current","Aktuellen löschen" }, | 131 | { "Delete Current","Aktuellen löschen" }, |
132 | { "Delete Event...","Lösche Termin..." }, | 132 | { "Delete Event...","Lösche Termin..." }, |
133 | { "Delete Event","Lösche Termin" }, | 133 | { "Delete Event","Lösche Termin" }, |
134 | { "&Delete","Löschen" }, | 134 | { "&Delete","Löschen" }, |
135 | { "Delete...","Löschen..." }, | 135 | { "Delete...","Löschen..." }, |
136 | { "Delete","Löschen" }, | 136 | { "Delete","Löschen" }, |
137 | { "Delete Todo...","Lösche Todo..." }, | 137 | { "Delete Todo...","Lösche Todo..." }, |
138 | { "Delete To-Do","Lösche Todo" }, | 138 | { "Delete To-Do","Lösche Todo" }, |
139 | { "Deleting item %d ...","Lösche Eintrag %d..." }, | 139 | { "Deleting item %d ...","Lösche Eintrag %d..." }, |
140 | { "Descriptions","Beschreibungen" }, | 140 | { "Descriptions","Beschreibungen" }, |
141 | { "Deselect all","Deselektiere Alle" }, | 141 | { "Deselect all","Deselektiere Alle" }, |
142 | { "Details","Details" }, | 142 | { "Details","Details" }, |
143 | { "Dinner","Abendessen" }, | 143 | { "Dinner","Abendessen" }, |
144 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, | 144 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, |
145 | { "Due Date","Fällig am" }, | 145 | { "Due Date","Fällig am" }, |
146 | { "Due: ","Fällig: "}, | 146 | { "Due: ","Fällig: "}, |
147 | { "Due Time","Fällig um" }, | 147 | { "Due Time","Fällig um" }, |
148 | { "Due:","Fällig:"}, | 148 | { "Due:","Fällig:"}, |
149 | { "Duration: ","Dauer: " }, | 149 | { "Duration: ","Dauer: " }, |
150 | { "Edit...","Bearbeite..." }, | 150 | { "Edit...","Bearbeite..." }, |
151 | { "Edit","Bearbeite" }, | 151 | { "Edit","Bearbeite" }, |
152 | { "Edit Event...","Bearbeite Termin..." }, | 152 | { "Edit Event...","Bearbeite Termin..." }, |
153 | { "Edit Event","Bearbeite Termin" }, | 153 | { "Edit Event","Bearbeite Termin" }, |
154 | { "Edit exceptions","Bearbeite Ausnahmen" }, | 154 | { "Edit exceptions","Bearbeite Ausnahmen" }, |
155 | { "EditorBox:","Editor Fenster:" }, | 155 | { "EditorBox:","Editor Fenster:" }, |
156 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, | 156 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, |
157 | { "Edit Todo...","Berabeite Todo..." }, | 157 | { "Edit Todo...","Berabeite Todo..." }, |
158 | { "Edit To-Do","Todo bearbeiten" }, | 158 | { "Edit To-Do","Todo bearbeiten" }, |
159 | { "E&mail address:","E&mail Adresse:" }, | 159 | { "E&mail address:","E&mail Adresse:" }, |
160 | { "(EmptyEmail)","(KeineEmail)" }, | 160 | { "(EmptyEmail)","(KeineEmail)" }, |
161 | { "(EmptyName)","(KeinName)" }, | 161 | { "(EmptyName)","(KeinName)" }, |
162 | { "Enable Recurrence","Wiederholender Termin" }, | 162 | { "Enable Recurrence","Wiederholender Termin" }, |
163 | { "End after","Endet nach"}, | 163 | { "End after","Endet nach"}, |
164 | { "End by:","Endet am"}, | 164 | { "End by:","Endet am"}, |
165 | { "End Date","End Datum" }, | 165 | { "End Date","End Datum" }, |
166 | { "End:","Ende:" }, | 166 | { "End:","Ende:" }, |
167 | { "End Time","End Zeit" }, | 167 | { "End Time","End Zeit" }, |
168 | { "English","Englisch" }, | 168 | { "English","Englisch" }, |
169 | { "Event","Termin" }, | 169 | { "Event","Termin" }, |
170 | { "Event list","Termin Liste" }, | 170 | { "Event list","Termin Liste" }, |
171 | { "Events","Termine" }, | 171 | { "Events","Termine" }, |
172 | { "Event Viewer:","Termin Übersicht:" }, | 172 | { "Event Viewer:","Termin Übersicht:" }, |
173 | { "every","jede" }, | 173 | { "every","jede" }, |
174 | { "Exceptions...","Ausnahmen..." }, | 174 | { "Exceptions...","Ausnahmen..." }, |
175 | { "Exceptions","Ausnahmen" }, | 175 | { "Exceptions","Ausnahmen" }, |
176 | { "Exclude holidays","Ohne freie Tage" }, | 176 | { "Exclude holidays","Ohne freie Tage" }, |
177 | { "Exclude Saturdays","Ohne Samstage" }, | 177 | { "Exclude Saturdays","Ohne Samstage" }, |
178 | { "Feb","Feb" }, | 178 | { "Feb","Feb" }, |
179 | { "February","Februar" }, | 179 | { "February","Februar" }, |
180 | { "&Find","Suche!" }, | 180 | { "&Find","Suche!" }, |
181 | { "Fonts","Schriftart" }, | 181 | { "Fonts","Schriftart" }, |
182 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, | 182 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, |
183 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, | 183 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, |
184 | { "Free","Frei" }, | 184 | { "Free","Frei" }, |
185 | { "Friday","Freitag" }, | 185 | { "Friday","Freitag" }, |
186 | { "Fri","Fr" }, | 186 | { "Fri","Fr" }, |
187 | { "From:","Vom:" }, | 187 | { "From:","Vom:" }, |
188 | { "Full &name:","Vor- und &Nachname:" }, | 188 | { "Full &name:","Vor- und &Nachname:" }, |
189 | { "General","Allgemein" }, | 189 | { "General","Allgemein" }, |
190 | { "German","Deutsch" }, | 190 | { "German","Deutsch" }, |
191 | { "Gifts","Geschenke" }, | 191 | { "Gifts","Geschenke" }, |
192 | { "Go to Today","Heute anzeigen" }, | 192 | { "Go to Today","Heute anzeigen" }, |
193 | { "Help","Hilfe" }, | 193 | { "Help","Hilfe" }, |
194 | { "Hide Dates","Daten ausblenden" }, | 194 | { "Hide Dates","Daten ausblenden" }, |
195 | { "Highlight color:","Markierungen:" }, | 195 | { "Highlight color:","Markierungen:" }, |
196 | { "Holiday color:","Freie Tage:" }, | 196 | { "Holiday color:","Freie Tage:" }, |
197 | { "hour(s)","Stunde(n)" }, | 197 | { "hour(s)","Stunde(n)" }, |
198 | { "In %1 days: ","In %1 Tagen: " }, | 198 | { "In %1 days: ","In %1 Tagen: " }, |
199 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, | 199 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, |
200 | { "Information","Information" }, | 200 | { "Information","Information" }, |
201 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, | 201 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, |
202 | { "Jan","Jan" }, | 202 | { "Jan","Jan" }, |
203 | { "January","Januar" }, | 203 | { "January","Januar" }, |
204 | { "JournalView:","Journal Ansicht:" }, | 204 | { "JournalView:","Journal Ansicht:" }, |
205 | { "Journals","Journale" }, | 205 | { "Journals","Journale" }, |
206 | { "Jul","Jul" }, | 206 | { "Jul","Jul" }, |
207 | { "July","Juli" }, | 207 | { "July","Juli" }, |
208 | { "Jump to date","Springe zum Datum" }, | 208 | { "Jump to date","Springe zum Datum" }, |
209 | { "June","Juni" }, | 209 | { "June","Juni" }, |
210 | { "Jun","Jun" }, | 210 | { "Jun","Jun" }, |
211 | { "Key Bindings...","Tastenzuordnung..." }, | 211 | { "Key Bindings...","Tastenzuordnung..." }, |
212 | { "Kids","Kinder" }, | 212 | { "Kids","Kinder" }, |
213 | { "Known Problems...","Bekannte Probleme..." }, | 213 | { "Known Problems...","Bekannte Probleme..." }, |
214 | { "KO/Pi Find ","KO/Pi Suchdialog " }, | 214 | { "KO/Pi Find ","KO/Pi Suchdialog " }, |
215 | { "KO/Pi Find: ","KO/Pi Suchen: " }, | 215 | { "KO/Pi Find: ","KO/Pi Suchen: " }, |
216 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, | 216 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, |
217 | { "Language:(needs restart)","Sprache (Neustart!)" }, | 217 | { "Language:(needs restart)","Sprache (Neustart!)" }, |
218 | { "Language:","Sprache" }, | 218 | { "Language:","Sprache" }, |
219 | { "Large","Etwas mehr" }, | 219 | { "Large","Etwas mehr" }, |
220 | { "List View:","Listenansicht:" }, | 220 | { "List View:","Listenansicht:" }, |
221 | { "List View","Listenansicht" }, | 221 | { "List View","Listenansicht" }, |
222 | { "Load/Save","Laden/Speichern" }, | 222 | { "Load/Save","Laden/Speichern" }, |
223 | { "Load Template","Lade Vorlage" }, | 223 | { "Load Template","Lade Vorlage" }, |
224 | { "Locale","Localisation" }, | 224 | { "Locale","Localisation" }, |
225 | { "Local temp file:","Lokale temp. Datei:" }, | 225 | { "Local temp file:","Lokale temp. Datei:" }, |
226 | { "Location: ","Ort: " }, | 226 | { "Location: ","Ort: " }, |
227 | { "Location:","Ort:" }, | 227 | { "Location:","Ort:" }, |
228 | { "Mail client","Mail Programm" }, | 228 | { "Mail client","Mail Programm" }, |
229 | { "Mail Client","Mail Programm" }, | 229 | { "Mail Client","Mail Programm" }, |
230 | { "March","März" }, | 230 | { "March","März" }, |
231 | { "Mar","Mär" }, | 231 | { "Mar","Mär" }, |
232 | { "May","Mai" }, | 232 | { "May","Mai" }, |
233 | { "M. Bains line:","M. Bains Linie:" }, | 233 | { "M. Bains line:","M. Bains Linie:" }, |
234 | { "Medium","Medium" }, | 234 | { "Medium","Medium" }, |
235 | { "Method","Methode" }, | 235 | { "Method","Methode" }, |
236 | { "minute(s)","Minute(n)" }, | 236 | { "minute(s)","Minute(n)" }, |
237 | { "Monday","Montag" }, | 237 | { "Monday","Montag" }, |
238 | { "Mon","Mo" }, | 238 | { "Mon","Mo" }, |
239 | { "Monthly","Monatlich" }, | 239 | { "Monthly","Monatlich" }, |
240 | { "Month not long enough","Monat ist nicht lang genug" }, | 240 | { "Month not long enough","Monat ist nicht lang genug" }, |
241 | { "month(s)","Monat(e)" }, | 241 | { "month(s)","Monat(e)" }, |
242 | { "Month view:","Monatsansicht:" }, | 242 | { "Month view:","Monatsansicht:" }, |
243 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, | 243 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, |
244 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, | 244 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, |
245 | { "Move &Down","Nach unten verschieben" }, | 245 | { "Move &Down","Nach unten verschieben" }, |
246 | { "Move &Up","Nach oben verschieben" }, | 246 | { "Move &Up","Nach oben verschieben" }, |
247 | { "Name:","Name:" }, | 247 | { "Name:","Name:" }, |
248 | { "Name","Name" }, | 248 | { "Name","Name" }, |
249 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, | 249 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, |
250 | { "%n Days","%n Tage" }, | 250 | { "%n Days","%n Tage" }, |
251 | { "Never","Nie" }, | 251 | { "Never","Nie" }, |
252 | { "New event...","Neuer Termin..." }, | 252 | { "New event...","Neuer Termin..." }, |
253 | { "New event","Neuer Termin" }, | 253 | { "New event","Neuer Termin" }, |
254 | { "New Event...","Neuer Termin..." }, | 254 | { "New Event...","Neuer Termin..." }, |
255 | { "New Events/Todos should","Neue Termine/Todos sollten" }, | 255 | { "New Events/Todos should","Neue Termine/Todos sollten" }, |
256 | { "&New","&Neu" }, | 256 | { "&New","&Neu" }, |
257 | { "New","Neu", }, | 257 | { "New","Neu", }, |
258 | { "New Sub-Todo...","Neues Sub-Todo..." }, | 258 | { "New Sub-Todo...","Neues Sub-Todo..." }, |
259 | { "New Todo...","Neues Todo..." }, | 259 | { "New Todo...","Neues Todo..." }, |
260 | { "Next Alarm: ","Nächster Alarm: ", }, | 260 | { "Next Alarm: ","Nächster Alarm: ", }, |
261 | { "&Next Day","&Nächster Tag", }, | 261 | { "&Next Day","&Nächster Tag", }, |
262 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, | 262 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, |
263 | { "Next month","Nächster Monat" }, | 263 | { "Next month","Nächster Monat" }, |
264 | { "&Next Week","&Nächste Woche" }, | 264 | { "&Next Week","&Nächste Woche" }, |
265 | { "Next year","Nächstes Jahr" }, | 265 | { "Next year","Nächstes Jahr" }, |
266 | { "Next Year","Nächstes Jahr" }, | 266 | { "Next Year","Nächstes Jahr" }, |
267 | { "%n h","%n Std" }, | 267 | { "%n h","%n Std" }, |
268 | { "No ending date","Kein End-Datum", }, | 268 | { "No ending date","Kein End-Datum", }, |
269 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, | 269 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, |
270 | { "No event selected.","Kein Termin selektiert" }, | 270 | { "No event selected.","Kein Termin selektiert" }, |
271 | { "No","Nein" }, | 271 | { "No","Nein" }, |
272 | { "No program set","Kein Programm ausgewählt", }, | 272 | { "No program set","Kein Programm ausgewählt", }, |
273 | { "Normal","Normal" }, | 273 | { "Normal","Normal" }, |
274 | { "[No selection]","Keine Selektion", }, | 274 | { "[No selection]","Keine Selektion", }, |
275 | { "No sound set","Kein Sound ausgewählt", }, | 275 | { "No sound set","Kein Sound ausgewählt", }, |
276 | { "no time ","keine Zeit ", }, | 276 | { "no time ","keine Zeit ", }, |
277 | { "no time","keine Zeit", }, | 277 | { "no time","keine Zeit", }, |
278 | { "No Time","Keine Zeit" }, | 278 | { "No Time","Keine Zeit" }, |
279 | { "November","November" }, | 279 | { "November","November" }, |
280 | { "Nov","Nov", }, | 280 | { "Nov","Nov", }, |
281 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, | 281 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, |
282 | { "occurrence(s)","Vorkommen" }, | 282 | { "occurrence(s)","Vorkommen" }, |
283 | { "October","Oktober" }, | 283 | { "October","Oktober" }, |
284 | { "Oct","Okt", }, | 284 | { "Oct","Okt", }, |
285 | { "O-due!","Ü-fällig! " }, | 285 | { "O-due!","Ü-fällig! " }, |
286 | { "&OK","&OK" }, | 286 | { "&OK","&OK" }, |
287 | { "Ok+Show!","Ok+Anzeigen" }, | 287 | { "Ok+Show!","Ok+Anzeigen" }, |
288 | { "Organizer: %1","Organisator %1" }, | 288 | { "Organizer: %1","Organisator %1" }, |
289 | { "Organizer","Organisator" }, | 289 | { "Organizer","Organisator" }, |
290 | { "Owner: ","Besitzer: " }, | 290 | { "Owner: ","Besitzer: " }, |
291 | { "Owner:","Besitzer:" }, | 291 | { "Owner:","Besitzer:" }, |
292 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 292 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
293 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, | 293 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, |
294 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, | 294 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, |
295 | { "Please specify a valid end date, for example '%1'.","Bitte gültiges Enddatum angeben, z.B.'%1'." }, | 295 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, |
296 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, | 296 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, |
297 | { "Please specify a valid start date, for example '%1'.","Bitte gültiges Startdatum angeben, z.B. '%1'." }, | 297 | { "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, |
298 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, | 298 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, |
299 | { "Please specify a valid start time, for example '%1'.","Bitte gültige Startzeit angeben, z.B. '%1'." }, | 299 | { "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, |
300 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, | 300 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, |
301 | { "&Previous Day","Vorheriger Tag" }, | 301 | { "&Previous Day","Vorheriger Tag" }, |
302 | { "Previous month","Vorheriger Monat" }, | 302 | { "Previous month","Vorheriger Monat" }, |
303 | { "Previous Month","Vorheriger Monat" }, | 303 | { "Previous Month","Vorheriger Monat" }, |
304 | { "&Previous Week","Vorherige Woche" }, | 304 | { "&Previous Week","Vorherige Woche" }, |
305 | { "Previous year","Vorheriges Jahr" }, | 305 | { "Previous year","Vorheriges Jahr" }, |
306 | { "Previous Year","Vorheriges Jahr" }, | 306 | { "Previous Year","Vorheriges Jahr" }, |
307 | { "Printing","Drucken" }, | 307 | { "Printing","Drucken" }, |
308 | { "Priority:","Priorität:" }, | 308 | { "Priority:","Priorität:" }, |
309 | { "Private","Privat" }, | 309 | { "Private","Privat" }, |
310 | { "Proceed","Weiter" }, | 310 | { "Proceed","Weiter" }, |
311 | { "Public","Öffentlich" }, | 311 | { "Public","Öffentlich" }, |
312 | { "Purge","Entferne" }, | 312 | { "Purge","Entferne" }, |
313 | { "Purge Completed","Entferne erledigte ToDos" }, | 313 | { "Purge Completed","Entferne erledigte ToDos" }, |
314 | { "Purge To-Dos","Todos bereinigen" }, | 314 | { "Purge To-Dos","Todos bereinigen" }, |
315 | { "read-only","schreibgeschützt" }, | 315 | { "read-only","schreibgeschützt" }, |
316 | { "Recur every","Wiederh. alle" }, | 316 | { "Recur every","Wiederh. alle" }, |
317 | { "Recur in the month of","Wiederh. im Monat" }, | 317 | { "Recur in the month of","Wiederh. im Monat" }, |
318 | { "Recur on the","Wiederh. am" }, | 318 | { "Recur on the","Wiederh. am" }, |
319 | { "Recur on this day","Wiederh. am diesen Tag" }, | 319 | { "Recur on this day","Wiederh. am diesen Tag" }, |
320 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, | 320 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, |
321 | { "Recurrence Range","Wiederholungs Zeitraum" }, | 321 | { "Recurrence Range","Wiederholungs Zeitraum" }, |
322 | { "Recurrence Rule","Wiederholungs Regel" }, | 322 | { "Recurrence Rule","Wiederholungs Regel" }, |
323 | { "Recurrence","Wiederholung" }, | 323 | { "Recurrence","Wiederholung" }, |
324 | { "Recurs","Wiederholung" }, | 324 | { "Recurs","Wiederholung" }, |
325 | {"&Reject","Abweisen"}, | 325 | {"&Reject","Abweisen"}, |
326 | { "Reminder:","Alarm:" }, | 326 | { "Reminder:","Alarm:" }, |
327 | { "Rem.:","Alarm:" }, | 327 | { "Rem.:","Alarm:" }, |
328 | { "Rem.","Alarm:" }, | 328 | { "Rem.","Alarm:" }, |
329 | { "Remote file:","Remote Datei:"}, | 329 | { "Remote file:","Remote Datei:"}, |
330 | { "Remote IP:","Remote (ferne) IP:" }, | 330 | { "Remote IP:","Remote (ferne) IP:" }, |
331 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, | 331 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, |
332 | { "Remote user:","Remote Benutzer"}, | 332 | { "Remote user:","Remote Benutzer"}, |
333 | { "&Remove","Entfe&rnen" }, | 333 | { "&Remove","Entfe&rnen" }, |
334 | { "Remove","Entfernen" }, | 334 | { "Remove","Entfernen" }, |
335 | { "Request response","Bemerkung anfordern" }, | 335 | { "Request response","Bemerkung anfordern" }, |
336 | { "Role:","Rolle:" }, | 336 | { "Role:","Rolle:" }, |
337 | { "Role","Rolle" }, | 337 | { "Role","Rolle" }, |
338 | { "Sat","Sa" }, | 338 | { "Sat","Sa" }, |
339 | { "Saturday","Samstag" }, | 339 | { "Saturday","Samstag" }, |
340 | { "Search for:","Suche nach:" }, | 340 | { "Search for:","Suche nach:" }, |
341 | { "Search In","Suche in" }, | 341 | { "Search In","Suche in" }, |
342 | { "Search...","Suche..." }, | 342 | { "Search...","Suche..." }, |
343 | { "Search","Suche" }, | 343 | { "Search","Suche" }, |
344 | { "Select Addresses","Wähle Adressen" }, | 344 | { "Select Addresses","Wähle Adressen" }, |
345 | { "Select all","Selektiere Alle" }, | 345 | { "Select all","Selektiere Alle" }, |
346 | { "Select a month","Wähle Monat" }, | 346 | { "Select a month","Wähle Monat" }, |
347 | { "Select a week","Wähle Woche" }, | 347 | { "Select a week","Wähle Woche" }, |
348 | { "Select a year","Wähle Jahr" }, | 348 | { "Select a year","Wähle Jahr" }, |
349 | { "Send directly","Sende direkt" }, | 349 | { "Send directly","Sende direkt" }, |
350 | { "&Send Messages","&Sende Nachrichten", }, | 350 | { "&Send Messages","&Sende Nachrichten", }, |
351 | { "Sep","Sep" }, | 351 | { "Sep","Sep" }, |
352 | { "September","September" }, | 352 | { "September","September" }, |
353 | { "Shopping","Einkaufen" }, | 353 | { "Shopping","Einkaufen" }, |
354 | { "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" }, | 354 | { "Use short date in (WN/E) view","Kurzdatum in (WN/Termin) Ansicht" }, |
355 | { "Show Dates","Zeige Daten" }, | 355 | { "Show Dates","Zeige Daten" }, |
356 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, | 356 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, |
357 | { "Show Event...","Zeige Termin..." }, | 357 | { "Show Event...","Zeige Termin..." }, |
358 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, | 358 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, |
359 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, | 359 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, |
360 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, | 360 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, |
361 | { "Show time as:","Zeige Zeit als" }, | 361 | { "Show time as:","Zeige Zeit als" }, |
362 | { "Show Todo...","Zeige To-Do" }, | 362 | { "Show Todo...","Zeige To-Do" }, |
363 | { "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"}, | 363 | { "Show topmost todo prios in What's N.:","Anz. höchster Prios in What's N.:"}, |
364 | { "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"}, | 364 | { "Show topmost todo prios in What's Next:","Anz. höchster Prios in What's Next:"}, |
365 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, | 365 | { "Show vertical screen (Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, |
366 | { "&Show","Zeige" }, | 366 | { "&Show","Zeige" }, |
367 | { "Show...","Zeige..." }, | 367 | { "Show...","Zeige..." }, |
368 | { "Show","Zeige" }, | 368 | { "Show","Zeige" }, |
369 | { "Small","Klein" }, | 369 | { "Small","Klein" }, |
370 | { "Sorry","Entschuldigung" }, | 370 | { "Sorry","Entschuldigung" }, |
371 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, | 371 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, |
372 | { "Start:","Start:" }, | 372 | { "Start:","Start:" }, |
373 | { "Start Date","Start Datum" }, | 373 | { "Start Date","Start Datum" }, |
374 | { "Start date: %1","Start Datum: %1" }, | 374 | { "Start date: %1","Start Datum: %1" }, |
375 | { "Start Time","Start Zeit" }, | 375 | { "Start Time","Start Zeit" }, |
376 | { "Status:","Status:" }, | 376 | { "Status:","Status:" }, |
377 | { "Status","Status:" }, | 377 | { "Status","Status:" }, |
378 | { "Summaries","Titel" }, | 378 | { "Summaries","Titel" }, |
379 | { "Summary:","Titel:" }, | 379 | { "Summary:","Titel:" }, |
380 | { "Summary","Titel" }, | 380 | { "Summary","Titel" }, |
381 | { "Sunday","Sonntag" }, | 381 | { "Sunday","Sonntag" }, |
382 | { "Sun","So" }, | 382 | { "Sun","So" }, |
383 | { "Sync preferences:","Sync Einstellungen" }, | 383 | { "Sync preferences:","Sync Einstellungen" }, |
384 | { "Sync Prefs","Sync Einstellungen" }, | 384 | { "Sync Prefs","Sync Einstellungen" }, |
385 | { "Syncronize","Daten abgleich" }, | 385 | { "Syncronize","Daten abgleich" }, |
386 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 386 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
387 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 387 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
388 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 388 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
389 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, | 389 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, |
390 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, | 390 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, |
391 | { "Template...","Vorlage..." }, | 391 | { "Template...","Vorlage..." }, |
392 | { "This day","Dieser Tag" }, | 392 | { "This day","Dieser Tag" }, |
393 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, | 393 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, |
394 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, | 394 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, |
395 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, | 395 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, |
396 | { "Thu","Do" }, | 396 | { "Thu","Do" }, |
397 | { "Thursday","Donnerstag" }, | 397 | { "Thursday","Donnerstag" }, |
398 | { "Time associated","Mit Zeit" }, | 398 | { "Time associated","Mit Zeit" }, |
399 | { "Time bar:","Uhrzeit Zeile:" }, | 399 | { "Time bar:","Uhrzeit Zeile:" }, |
400 | { "Time && Date","Zeit und Datum" }, | 400 | { "Time && Date","Zeit und Datum" }, |
401 | { "Time Format","Zeit Format" }, | 401 | { "Time Format","Zeit Format" }, |
402 | { "Time Format(nr):","Zeit Format(Neustart!)" }, | 402 | { "Time Format(nr):","Zeit Format(Neustart!)" }, |
403 | { "Date Labels:","Datumsleiste:" }, | 403 | { "Date Labels:","Datumsleiste:" }, |
404 | { "Time: ","Zeit: " }, | 404 | { "Time: ","Zeit: " }, |
405 | { "Timezone:","Zeitzone:" }, | 405 | { "Timezone:","Zeitzone:" }, |
406 | { "To: ","Bis: " }, | 406 | { "To: ","Bis: " }, |
407 | { "To:","Bis:" }, | 407 | { "To:","Bis:" }, |
408 | { "Today: ","Heute: " }, | 408 | { "Today: ","Heute: " }, |
409 | { "Todo due today color:","Heute fällige To-Do's" }, | 409 | { "Todo due today color:","Heute fällige To-Do's" }, |
410 | { "To-do items:","To-Do items:" }, | 410 | { "To-do items:","To-Do items:" }, |
411 | { "Todo overdue color:","Überfällige To-Do's" }, | 411 | { "Todo overdue color:","Überfällige To-Do's" }, |
412 | { "Todo","Todo" }, | 412 | { "Todo","Todo" }, |
413 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, | 413 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, |
414 | { "ToDoView:","Todo Ansicht:" }, | 414 | { "ToDoView:","Todo Ansicht:" }, |
415 | { "Toggle Alarm","Wechsle Alarm" }, | 415 | { "Toggle Alarm","Wechsle Alarm" }, |
416 | { "Toggle Allday","Umschalten Ganztag" }, | 416 | { "Toggle Allday","Umschalten Ganztag" }, |
417 | { "Tomorrow: ","Morgen: " }, | 417 | { "Tomorrow: ","Morgen: " }, |
418 | { "Tue","Di" }, | 418 | { "Tue","Di" }, |
419 | { "Tuesday","Dienstag" }, | 419 | { "Tuesday","Dienstag" }, |
420 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, | 420 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, |
421 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, | 421 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, |
422 | { "Unknown","Unbekannt" }, | 422 | { "Unknown","Unbekannt" }, |
423 | { "Up","Hinauf" }, | 423 | { "Up","Hinauf" }, |
424 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, | 424 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, |
425 | { "User defined","Benutzerdefiniert" }, | 425 | { "User defined","Benutzerdefiniert" }, |
426 | { "User long date:","Format langes Datum:" }, | 426 | { "User long date:","Format langes Datum:" }, |
427 | { "User short date:","Forma kurzes Datum:" }, | 427 | { "User short date:","Forma kurzes Datum:" }, |
428 | { "View","Ansicht" }, | 428 | { "View","Ansicht" }, |
429 | { "View Fonts","Schriftarten Ansichten" }, | 429 | { "View Fonts","Schriftarten Ansichten" }, |
430 | { "Views","Ansichten" }, | 430 | { "Views","Ansichten" }, |
431 | { "Wed","Mi" }, | 431 | { "Wed","Mi" }, |
432 | { "Wednesday","Mittwoch" }, | 432 | { "Wednesday","Mittwoch" }, |
433 | { "Week %1","Woche %1" }, | 433 | { "Week %1","Woche %1" }, |
434 | { "Weekly","Wöchentlich" }, | 434 | { "Weekly","Wöchentlich" }, |
435 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 435 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
436 | { "What's Next View:","What's Next Anz." }, | 436 | { "What's Next View:","What's Next Anz." }, |
437 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, | 437 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, |
438 | { "Working Hours","Tägliche Arbeitszeit" }, | 438 | { "Working Hours","Tägliche Arbeitszeit" }, |
439 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, | 439 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, |
440 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, | 440 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, |
441 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, | 441 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, |
442 | { "Yearly","Jährlich" }, | 442 | { "Yearly","Jährlich" }, |
443 | { "year(s)","Jahr(e)" }, | 443 | { "year(s)","Jahr(e)" }, |
444 | { "Yes","Ja" }, | 444 | { "Yes","Ja" }, |
445 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, | 445 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, |
446 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, | 446 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, |
447 | { "week(s) on:","Woche(n) am: " }, | 447 | { "week(s) on:","Woche(n) am: " }, |
448 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 448 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
449 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 449 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
450 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 450 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
451 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 451 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
452 | { "Daylight start:","Sommerzeit Beginn:" }, | 452 | { "Daylight start:","Sommerzeit Beginn:" }, |
453 | { "Daylight end:","Sommerzeit Ende:" }, | 453 | { "Daylight end:","Sommerzeit Ende:" }, |
454 | { "Time Zone","Zeitzone" }, | 454 | { "Time Zone","Zeitzone" }, |
455 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 455 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
456 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, | 456 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, |
457 | { "minutely","minütlich" }, | 457 | { "minutely","minütlich" }, |
458 | { "hourly","stündlich" }, | 458 | { "hourly","stündlich" }, |
459 | { "daily","täglich" }, | 459 | { "daily","täglich" }, |
460 | { "weekly","wöchentlich" }, | 460 | { "weekly","wöchentlich" }, |
461 | { "monthly","monatlich" }, | 461 | { "monthly","monatlich" }, |
462 | { "day-monthly","tag-monatlich" }, | 462 | { "day-monthly","tag-monatlich" }, |
463 | { "month-yearly","monat-jährlich" }, | 463 | { "month-yearly","monat-jährlich" }, |
464 | { "day-yearly","tag-jährlich" }, | 464 | { "day-yearly","tag-jährlich" }, |
465 | { "position-yearly","pos-jährlich" }, | 465 | { "position-yearly","pos-jährlich" }, |
466 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, | 466 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, |
467 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, | 467 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, |
468 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, | 468 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, |
469 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, | 469 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, |
470 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, | 470 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, |
471 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, | 471 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, |
472 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, | 472 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, |
473 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, | 473 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, |
474 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, | 474 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, |
475 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, | 475 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, |
476 | { "ViewChange","Ansichtswechsel" }, | 476 | { "ViewChange","Ansichtswechsel" }, |
477 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, | 477 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, |
478 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, | 478 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, |
479 | { "File","Datei" }, | 479 | { "File","Datei" }, |
480 | { "Clone...","Dupliziere.." }, | 480 | { "Clone...","Dupliziere.." }, |
481 | { "Move...","Bewege..." }, | 481 | { "Move...","Bewege..." }, |
482 | { "Beam...","Sende via IR..." }, | 482 | { "Beam...","Sende via IR..." }, |
483 | { "&Clone...","Dupliziere.." }, | 483 | { "&Clone...","Dupliziere.." }, |
484 | { "&Move...","Bewege..." }, | 484 | { "&Move...","Bewege..." }, |
485 | { "&Beam...","Sende via IR..." }, | 485 | { "&Beam...","Sende via IR..." }, |
486 | { "Show Completed","Zeige erledigte Todos" }, | 486 | { "Show Completed","Zeige erledigte Todos" }, |
487 | { "Show Quick Todo","Zeige Quick Todo" }, | 487 | { "Show Quick Todo","Zeige Quick Todo" }, |
488 | { "Unparent Todo","Un-sub Todo" }, | 488 | { "Unparent Todo","Un-sub Todo" }, |
489 | { "Save selected to file...","Speichere Selektierte..." }, | 489 | { "Save selected to file...","Speichere Selektierte..." }, |
490 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, | 490 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, |
491 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, | 491 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, |
492 | { "Beam selected via IR","Sende Selekt. via IR..." }, | 492 | { "Beam selected via IR","Sende Selekt. via IR..." }, |
493 | { "Search","Suchen" }, | 493 | { "Search","Suchen" }, |
494 | { "Date Picker","Datum auswählen" }, | 494 | { "Date Picker","Datum auswählen" }, |
495 | { "Day View","Tagesansicht" }, | 495 | { "Day View","Tagesansicht" }, |
496 | { "Work Week","Arbeitswoche" }, | 496 | { "Work Week","Arbeitswoche" }, |
497 | { "Week","Wochenansicht" }, | 497 | { "Week","Wochenansicht" }, |
498 | { "Month","Monatsansicht" }, | 498 | { "Month","Monatsansicht" }, |
499 | { "Todo View","Todo Liste" }, | 499 | { "Todo View","Todo Liste" }, |
500 | { "Journal","Journal Ansicht" }, | 500 | { "Journal","Journal Ansicht" }, |
501 | { "Next days","Nächste Tage" }, | 501 | { "Next days","Nächste Tage" }, |
502 | { "Print agenda selection...","Drucke Agendaselektion..." }, | 502 | { "Print agenda selection...","Drucke Agendaselektion..." }, |
503 | { "Toggle DateNavigator","Navigator umschalten" }, | 503 | { "Toggle DateNavigator","Navigator umschalten" }, |
504 | { "Toggle FilterView","Filteransicht umschalten" }, | 504 | { "Toggle FilterView","Filteransicht umschalten" }, |
505 | { "Prev. month","Vorheriger Monat" }, | 505 | { "Prev. month","Vorheriger Monat" }, |
506 | { "Go backward","Gehe zurück" }, | 506 | { "Go backward","Gehe zurück" }, |
507 | { "Go forward","Gehe weiter" }, | 507 | { "Go forward","Gehe weiter" }, |
508 | { "Synchronize","Synchronisieren" }, | 508 | { "Synchronize","Synchronisieren" }, |
509 | { "AgendaSize","Agendagröße" }, | 509 | { "AgendaSize","Agendagröße" }, |
510 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, | 510 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, |
511 | { "Import last file","Importiere letzte Datei" }, | 511 | { "Import last file","Importiere letzte Datei" }, |
512 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, | 512 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, |
513 | { "Load Calendar Backup","Lade Kalender Backup" }, | 513 | { "Load Calendar Backup","Lade Kalender Backup" }, |
514 | { "Save Calendar Backup","Speichere Kalender Backup" }, | 514 | { "Save Calendar Backup","Speichere Kalender Backup" }, |
515 | { "Export VCalendar","Exportiere VCalendar" }, | 515 | { "Export VCalendar","Exportiere VCalendar" }, |
516 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 516 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
517 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, | 517 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, |
518 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, | 518 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, |
519 | { "Remote via ssh","Über Netzwerk via ssh" }, | 519 | { "Remote via ssh","Über Netzwerk via ssh" }, |
520 | { "With local file","Mit lokaler Datei" }, | 520 | { "With local file","Mit lokaler Datei" }, |
521 | { "With last file","Mit letzter Datei" }, | 521 | { "With last file","Mit letzter Datei" }, |
522 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, | 522 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, |
523 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, | 523 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, |
524 | { "Save filename","Speichern: Dateinamen wählen" }, | 524 | { "Save filename","Speichern: Dateinamen wählen" }, |
525 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, | 525 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, |
526 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, | 526 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, |
527 | { "Overwrite!","Überschreibe!" }, | 527 | { "Overwrite!","Überschreibe!" }, |
528 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 528 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
529 | { "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, | 529 | { "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, |
530 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, | 530 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, |
531 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, | 531 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, |
532 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, | 532 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, |
533 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, | 533 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, |
534 | { "Size","Größe" }, | 534 | { "Size","Größe" }, |
535 | { "Date","Datum" }, | 535 | { "Date","Datum" }, |
536 | { "Mime Type","Datei Typ" }, | 536 | { "Mime Type","Datei Typ" }, |
537 | { "All Files","Alle Dateien" }, | 537 | { "All Files","Alle Dateien" }, |
538 | { "Files","Dateien" }, | 538 | { "Files","Dateien" }, |
539 | { "Documents","DoKumente" }, | 539 | { "Documents","DoKumente" }, |
540 | { "Select Categories","Selektiere Kategorien" }, | 540 | { "Select Categories","Selektiere Kategorien" }, |
541 | { " &Deselect All "," Auswahl aufheben " }, | 541 | { " &Deselect All "," Auswahl aufheben " }, |
542 | { "A&dd","Hinzu" }, | 542 | { "A&dd","Hinzu" }, |
543 | { "&Modify","Ändern" }, | 543 | { "&Modify","Ändern" }, |
544 | { "Edit Categories","Editiere Kategorien" }, | 544 | { "Edit Categories","Editiere Kategorien" }, |
545 | { " &Edit Categories "," &Editiere Kategorien " }, | 545 | { " &Edit Categories "," &Editiere Kategorien " }, |
546 | { "Beam Options","Beam Einstellungen" }, | 546 | { "Beam Options","Beam Einstellungen" }, |
547 | { " With timezone "," Mit Zeitzone " }, | 547 | { " With timezone "," Mit Zeitzone " }, |
548 | { " Local time ", " Lokale Zeit " }, | 548 | { " Local time ", " Lokale Zeit " }, |
549 | { "Manage new Categories","Verwalte neue Kategorien" }, | 549 | { "Manage new Categories","Verwalte neue Kategorien" }, |
550 | { "Add to category list","Füge zur Kategorieliste hinzu" }, | 550 | { "Add to category list","Füge zur Kategorieliste hinzu" }, |
551 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, | 551 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, |
552 | { "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, | 552 | { "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, |
553 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, | 553 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, |
554 | { "File format","Datei Format" }, | 554 | { "File format","Datei Format" }, |
555 | { "Time format","Zeit Format" }, | 555 | { "Time format","Zeit Format" }, |
556 | { "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" }, | 556 | { "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" }, |
557 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, | 557 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, |
558 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, | 558 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, |
559 | { "h","Std" }, | 559 | { "h","Std" }, |
560 | { "min","Min" }, | 560 | { "min","Min" }, |
561 | { "hou","Std" }, | 561 | { "hou","Std" }, |
562 | { "day","Tag" }, | 562 | { "day","Tag" }, |
563 | { "French","Französich" }, | 563 | { "French","Französich" }, |
564 | { "Time","Zeit" }, | 564 | { "Time","Zeit" }, |
565 | { "Event Viewer","Termin Ansicht" }, | 565 | { "Event Viewer","Termin Ansicht" }, |
566 | { "Cancel Sync","Sync Abbrechen" }, | 566 | { "Cancel Sync","Sync Abbrechen" }, |
567 | { "Remote","Fern" }, | 567 | { "Remote","Fern" }, |
568 | { "Local","Lokal" }, | 568 | { "Local","Lokal" }, |
569 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, | 569 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, |
570 | { "Local: ","Lokal: " }, | 570 | { "Local: ","Lokal: " }, |
571 | { "Remote: ","Fern: " }, | 571 | { "Remote: ","Fern: " }, |
572 | { "Last modified: ","Zuletzt geändert: " }, | 572 | { "Last modified: ","Zuletzt geändert: " }, |
573 | { "Location: ","Ort: " }, | 573 | { "Location: ","Ort: " }, |
574 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, | 574 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, |
575 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, | 575 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, |
576 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, | 576 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, |
577 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, | 577 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, |
578 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, | 578 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, |
579 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, | 579 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, |
580 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, | 580 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, |
581 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, | 581 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, |
582 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, | 582 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, |
583 | { "( %1 min before )","( %1 min vorher )" }, | 583 | { "( %1 min before )","( %1 min vorher )" }, |
584 | { "<b>Alarm on: ","<b>Alarm am: " }, | 584 | { "<b>Alarm on: ","<b>Alarm am: " }, |
585 | { "<b>Details: </b>","<b>Details: </b>" }, | 585 | { "<b>Details: </b>","<b>Details: </b>" }, |
586 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 586 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
587 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, | 587 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, |
588 | { "Organizer","Organisator" }, | 588 | { "Organizer","Organisator" }, |
589 | { "Save","Speichern" }, | 589 | { "Save","Speichern" }, |
590 | { "Exit (+save)","Beenden (+ speichern)" }, | 590 | { "Exit (+save)","Beenden (+ speichern)" }, |
591 | { "Home","Zuhause" }, | 591 | { "Home","Zuhause" }, |
592 | { "Office","Büro" }, | 592 | { "Office","Büro" }, |
593 | { "Libary","Bücherei" }, | 593 | { "Libary","Bücherei" }, |
594 | { "Doctor","Arzt" }, | 594 | { "Doctor","Arzt" }, |
595 | { "Beach","Strand" }, | 595 | { "Beach","Strand" }, |
596 | { "Conference room","Konferenzraum" }, | 596 | { "Conference room","Konferenzraum" }, |
597 | { "Drive Home","Heimfahrt" }, | 597 | { "Drive Home","Heimfahrt" }, |
598 | { "Watch TV","Tv gucken" }, | 598 | { "Watch TV","Tv gucken" }, |
599 | { "Phone call","Telefonanruf" }, | 599 | { "Phone call","Telefonanruf" }, |
600 | { "Pay bill","Rechnung bezahlen" }, | 600 | { "Pay bill","Rechnung bezahlen" }, |
601 | { "Read book","Buch lesen" }, | 601 | { "Read book","Buch lesen" }, |
602 | { "Watering plants","Pflanzen giessen" }, | 602 | { "Watering plants","Pflanzen giessen" }, |
603 | {"Appointment","Verabredung" }, | 603 | {"Appointment","Verabredung" }, |
604 | {"Birthday","Geburtstag" }, | 604 | {"Birthday","Geburtstag" }, |
605 | {"Business","Geschäft" }, | 605 | {"Business","Geschäft" }, |
606 | {"Business Travel","Geschäftsreise" }, | 606 | {"Business Travel","Geschäftsreise" }, |
607 | {"Cinema","Kino" }, | 607 | {"Cinema","Kino" }, |
608 | {"Customer","Kunde" }, | 608 | {"Customer","Kunde" }, |
609 | {"Break","Pause" }, | 609 | {"Break","Pause" }, |
610 | {"Breakfast","Frühstück" }, | 610 | {"Breakfast","Frühstück" }, |
611 | {"Competition","Wettkampf" }, | 611 | {"Competition","Wettkampf" }, |
612 | {"Dinner","Abendessen" }, | 612 | {"Dinner","Abendessen" }, |
613 | {"Education","Erziehung" }, | 613 | {"Education","Erziehung" }, |
614 | {"Family","Familie" }, | 614 | {"Family","Familie" }, |
615 | {"Favorites","Favoriten" }, | 615 | {"Favorites","Favoriten" }, |
616 | {"Festival","Festival" }, | 616 | {"Festival","Festival" }, |
617 | {"Fishing","Angeln" }, | 617 | {"Fishing","Angeln" }, |
618 | {"Flight","Flug" }, | 618 | {"Flight","Flug" }, |
619 | {"Gifts","Geschenk" }, | 619 | {"Gifts","Geschenk" }, |
620 | {"Holiday","Feiertag" }, | 620 | {"Holiday","Feiertag" }, |
621 | {"Holiday Cards","Ansichtskarten" }, | 621 | {"Holiday Cards","Ansichtskarten" }, |
622 | {"Hot Contacts","Heisse Kontakte" }, | 622 | {"Hot Contacts","Heisse Kontakte" }, |
623 | {"Hiking","Wandern" }, | 623 | {"Hiking","Wandern" }, |
624 | {"Hunting","Jagen" }, | 624 | {"Hunting","Jagen" }, |
625 | {"Key Customer","Wichtiger Kunde" }, | 625 | {"Key Customer","Wichtiger Kunde" }, |
626 | {"Kids","Kinder" }, | 626 | {"Kids","Kinder" }, |
627 | {"Lunch","Mittagessen" }, | 627 | {"Lunch","Mittagessen" }, |
628 | {"Meeting","Treffen" }, | 628 | {"Meeting","Treffen" }, |
629 | {"Miscellaneous","Verschiedenes" }, | 629 | {"Miscellaneous","Verschiedenes" }, |
630 | {"Partner","Partner" }, | 630 | {"Partner","Partner" }, |
631 | {"Party","Partie" }, | 631 | {"Party","Partie" }, |
632 | {"Personal","Privat" }, | 632 | {"Personal","Privat" }, |
633 | {"Personal Travel","Privatreise"}, | 633 | {"Personal Travel","Privatreise"}, |
634 | {"PHB","PHB" }, | 634 | {"PHB","PHB" }, |
635 | {"Phone Calls","Telefonanruf" }, | 635 | {"Phone Calls","Telefonanruf" }, |
636 | {"Projects","Projekt" }, | 636 | {"Projects","Projekt" }, |
637 | {"Recurring","Wiederholend" }, | 637 | {"Recurring","Wiederholend" }, |
638 | {"School","Schule" }, | 638 | {"School","Schule" }, |
639 | {"Shopping","Einkaufen" }, | 639 | {"Shopping","Einkaufen" }, |
640 | {"Speach","Rede" }, | 640 | {"Speach","Rede" }, |
641 | {"Special Occasion","Spez.Gelegenheit" }, | 641 | {"Special Occasion","Spez.Gelegenheit" }, |
642 | {"Sports","Sport" }, | 642 | {"Sports","Sport" }, |
643 | {"Talk","Vortrag" }, | 643 | {"Talk","Vortrag" }, |
644 | {"Travel","Reise" }, | 644 | {"Travel","Reise" }, |
645 | {"TV","TV" }, | 645 | {"TV","TV" }, |
646 | {"Germany","Deutschland" }, | 646 | {"Germany","Deutschland" }, |
647 | {"Sweden","Schweden" }, | 647 | {"Sweden","Schweden" }, |
648 | {"Forest","Wald" }, | 648 | {"Forest","Wald" }, |
649 | { "Desert","Wüste" }, | 649 | { "Desert","Wüste" }, |
650 | { "Kitchen","Küche" }, | 650 | { "Kitchen","Küche" }, |
651 | { "Lake","See" }, | 651 | { "Lake","See" }, |
652 | {"University","Universität"}, | 652 | {"University","Universität"}, |
653 | {"Vacation","Urlaub" }, | 653 | {"Vacation","Urlaub" }, |
654 | {"VIP","VIP" }, | 654 | {"VIP","VIP" }, |
655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, | 655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, |
656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, | 656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, |
657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, | 657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, |
658 | { "Cancelled","Gecancelt" }, | 658 | { "Cancelled","Gecancelt" }, |
659 | { "Multiple sync","Mehrfach Sync" }, | 659 | { "Multiple sync","Mehrfach Sync" }, |
660 | { "Local file","Lokale Datei" }, | 660 | { "Local file","Lokale Datei" }, |
661 | { "Last file","Letzte Datei" }, | 661 | { "Last file","Letzte Datei" }, |
662 | { "Keys + Colors...","Tasten + Farben..." }, | 662 | { "Keys + Colors...","Tasten + Farben..." }, |
663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, | 663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, |
664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
665 | { "Choose...","Wähle..." }, | 665 | { "Choose...","Wähle..." }, |
666 | { "Use colors for application:","Setze Farben für Programm:" }, | 666 | { "Use colors for application:","Setze Farben für Programm:" }, |
667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, | 669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, |
670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, | 670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, |
671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
672 | { "Show in every cell ","Zeige in jeder Zelle " }, | 672 | { "Show in every cell ","Zeige in jeder Zelle " }, |
673 | { "short month","kurzen Monat" }, | 673 | { "short month","kurzen Monat" }, |
674 | { "icons","Icons" }, | 674 | { "icons","Icons" }, |
675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, | 676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, |
677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
679 | { "Day color even months","Tagesfarbe gerade Monate" }, | 679 | { "Day color even months","Tagesfarbe gerade Monate" }, |
680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, | 682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, |
683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
@@ -851,394 +851,394 @@ | |||
851 | { "Appointment Time ","Termin Zeit " }, | 851 | { "Appointment Time ","Termin Zeit " }, |
852 | { "2","2" }, | 852 | { "2","2" }, |
853 | { "3","3" }, | 853 | { "3","3" }, |
854 | { "4","4" }, | 854 | { "4","4" }, |
855 | { " 0 %"," 0 %" }, | 855 | { " 0 %"," 0 %" }, |
856 | { " 20 %"," 20 %" }, | 856 | { " 20 %"," 20 %" }, |
857 | { " 40 %"," 40 %" }, | 857 | { " 40 %"," 40 %" }, |
858 | { " 60 %"," 60 %" }, | 858 | { " 60 %"," 60 %" }, |
859 | { " 80 %"," 80 %" }, | 859 | { " 80 %"," 80 %" }, |
860 | { "100 %","100 %" }, | 860 | { "100 %","100 %" }, |
861 | { "Filter","Filter" }, | 861 | { "Filter","Filter" }, |
862 | { "Configure","Konfiguriere" }, | 862 | { "Configure","Konfiguriere" }, |
863 | { "What's Next","What's Next" }, | 863 | { "What's Next","What's Next" }, |
864 | { "Complete calendar...","Kompletten Kalender..." }, | 864 | { "Complete calendar...","Kompletten Kalender..." }, |
865 | { "Filtered calendar...","Gefilterten Kalender..." }, | 865 | { "Filtered calendar...","Gefilterten Kalender..." }, |
866 | { "Export to phone","Exportiere zum Handy" }, | 866 | { "Export to phone","Exportiere zum Handy" }, |
867 | { "Beam receive enabled","Beam Empfang an" }, | 867 | { "Beam receive enabled","Beam Empfang an" }, |
868 | { "What's new?","Was ist neu?" }, | 868 | { "What's new?","Was ist neu?" }, |
869 | { "FAQ...","FAQ..." }, | 869 | { "FAQ...","FAQ..." }, |
870 | { "Licence...","Licence..." }, | 870 | { "Licence...","Licence..." }, |
871 | { "What's This?","What's This?" }, | 871 | { "What's This?","What's This?" }, |
872 | { "&Edit...","&Editiere..." }, | 872 | { "&Edit...","&Editiere..." }, |
873 | { "Oktober","Oktober" }, | 873 | { "Oktober","Oktober" }, |
874 | { "Title","Titel" }, | 874 | { "Title","Titel" }, |
875 | { "%1 %","%1 %" }, | 875 | { "%1 %","%1 %" }, |
876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
877 | { "Import!","Importiere!" }, | 877 | { "Import!","Importiere!" }, |
878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
879 | { "Export to phone options","Export ans Handy Optionen" }, | 879 | { "Export to phone options","Export ans Handy Optionen" }, |
880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
881 | { "I/O device: ","I/O device: " }, | 881 | { "I/O device: ","I/O device: " }, |
882 | { "Connection: ","Connection: " }, | 882 | { "Connection: ","Connection: " }, |
883 | { "Model(opt.): ","Model(opt.): " }, | 883 | { "Model(opt.): ","Model(opt.): " }, |
884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, | 886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, |
887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
888 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 888 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
889 | { "Writing to phone...","Sende Daten ans Handy..." }, | 889 | { "Writing to phone...","Sende Daten ans Handy..." }, |
890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
891 | { "Retry","Nochmal versuchen" }, | 891 | { "Retry","Nochmal versuchen" }, |
892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
896 | { "Preferences","Vorlieben" }, | 896 | { "Preferences","Vorlieben" }, |
897 | { "Global","Global" }, | 897 | { "Global","Global" }, |
898 | { "Phone","Phone" }, | 898 | { "Phone","Phone" }, |
899 | { "SMS","SMS" }, | 899 | { "SMS","SMS" }, |
900 | { "Fax","Fax" }, | 900 | { "Fax","Fax" }, |
901 | { "Pager","Pager" }, | 901 | { "Pager","Pager" }, |
902 | { "SIP","SIP" }, | 902 | { "SIP","SIP" }, |
903 | { "Italian","Italienisch" }, | 903 | { "Italian","Italienisch" }, |
904 | { "24:00","24:00" }, | 904 | { "24:00","24:00" }, |
905 | { "12:00am","12:00am" }, | 905 | { "12:00am","12:00am" }, |
906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
912 | { "Used Mail Client","Benutzter Mail Client" }, | 912 | { "Used Mail Client","Benutzter Mail Client" }, |
913 | { "Channel:","Channel:" }, | 913 | { "Channel:","Channel:" }, |
914 | { "Message:","Message:" }, | 914 | { "Message:","Message:" }, |
915 | { "Parameters:","Parameter:" }, | 915 | { "Parameters:","Parameter:" }, |
916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
917 | { "extra Message:","extra Message:" }, | 917 | { "extra Message:","extra Message:" }, |
918 | { "extra Parameters:","extra Parameter:" }, | 918 | { "extra Parameters:","extra Parameter:" }, |
919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
920 | { "External Apps.","Externe Appl." }, | 920 | { "External Apps.","Externe Appl." }, |
921 | { "24 hours","24 Std." }, | 921 | { "24 hours","24 Std." }, |
922 | { "3 hours","3 Std." }, | 922 | { "3 hours","3 Std." }, |
923 | { "1 hour","1 Std." }, | 923 | { "1 hour","1 Std." }, |
924 | { "15 minutes","15 Min." }, | 924 | { "15 minutes","15 Min." }, |
925 | { "5 minutes","5 Min." }, | 925 | { "5 minutes","5 Min." }, |
926 | { "1 minute","1 Min." }, | 926 | { "1 minute","1 Min." }, |
927 | { "23","23" }, | 927 | { "23","23" }, |
928 | { "Mon 15","Mon 15" }, | 928 | { "Mon 15","Mon 15" }, |
929 | { "Configure KO","Konfiguriere KO" }, | 929 | { "Configure KO","Konfiguriere KO" }, |
930 | { "Event text","Termin Text" }, | 930 | { "Event text","Termin Text" }, |
931 | { "ToDo","ToDo" }, | 931 | { "ToDo","ToDo" }, |
932 | { "Today","Heute" }, | 932 | { "Today","Heute" }, |
933 | { "What's Next View","What's Next Ansicht" }, | 933 | { "What's Next View","What's Next Ansicht" }, |
934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, | 934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, |
935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, | 935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, |
936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
937 | { "Alarm","Alarm" }, | 937 | { "Alarm","Alarm" }, |
938 | { "Used %1 Client","Benutzter %1 Client" }, | 938 | { "Used %1 Client","Benutzter %1 Client" }, |
939 | { "No email client installed","Kein Email Klient installiert" }, | 939 | { "No email client installed","Kein Email Klient installiert" }, |
940 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 940 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
941 | { "OM/Pi email client","OM/Pi Email Klient" }, | 941 | { "OM/Pi email client","OM/Pi Email Klient" }, |
942 | { "Include in multiple ","Beziehe in multiple " }, | 942 | { "Include in multiple ","Beziehe in multiple " }, |
943 | { "calendar ","Kalender " }, | 943 | { "calendar ","Kalender " }, |
944 | { "addressbook ","Adressbuch " }, | 944 | { "addressbook ","Adressbuch " }, |
945 | { "pwmanager","PWmanager" }, | 945 | { "pwmanager","PWmanager" }, |
946 | { " sync"," Sync ein" }, | 946 | { " sync"," Sync ein" }, |
947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
953 | { "Help...","Hilfe..." }, | 953 | { "Help...","Hilfe..." }, |
954 | { "Local file Cal:","Lokale Datei Kal:" }, | 954 | { "Local file Cal:","Lokale Datei Kal:" }, |
955 | { "Local file ABook:","Lokale Datei ABuch:" }, | 955 | { "Local file ABook:","Lokale Datei ABuch:" }, |
956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
958 | { "Calendar:","Kalender:" }, | 958 | { "Calendar:","Kalender:" }, |
959 | { "AddressBook:","AdressBuch:" }, | 959 | { "AddressBook:","AdressBuch:" }, |
960 | { "PWManager:","PWManager:" }, | 960 | { "PWManager:","PWManager:" }, |
961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
962 | { "ssh/scp","ssh/scp" }, | 962 | { "ssh/scp","ssh/scp" }, |
963 | { "ftp","ftp" }, | 963 | { "ftp","ftp" }, |
964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, | 972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, |
973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, | 979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, |
980 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 980 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
981 | { "Multiple profiles","Multi-Sync Profile" }, | 981 | { "Multiple profiles","Multi-Sync Profile" }, |
982 | { "Device: ","Gerät: " }, | 982 | { "Device: ","Gerät: " }, |
983 | { "Multiple sync started.","Multi-Sync gestartet." }, | 983 | { "Multiple sync started.","Multi-Sync gestartet." }, |
984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
985 | { "Turn filter on","Schalte Filter an" }, | 985 | { "Turn filter on","Schalte Filter an" }, |
986 | { "Turn filter off","Schalte Filter aus" }, | 986 | { "Turn filter off","Schalte Filter aus" }, |
987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, | 990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, |
991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, | 991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, |
992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, | 992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, |
993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, | 993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, |
994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, | 994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, |
995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, | 995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, |
996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, | 1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, |
1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, | 1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, |
1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, | 1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, |
1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, | 1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, |
1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, | 1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, |
1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, | 1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, |
1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, | 1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, |
1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, | 1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, |
1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, | 1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, |
1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, | 1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, |
1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, | 1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, |
1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, | 1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, |
1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, | 1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, |
1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, | 1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, |
1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, | 1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, |
1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, | 1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, |
1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, | 1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, |
1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, | 1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, |
1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, | 1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, |
1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, | 1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, |
1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, | 1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, |
1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, | 1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, |
1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, | 1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, |
1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, | 1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, |
1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, | 1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, |
1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, | 1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, |
1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, | 1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, |
1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, | 1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, |
1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1047 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, | 1047 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, |
1048 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1048 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1049 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1049 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1050 | { "From: ","Von: " }, | 1050 | { "From: ","Von: " }, |
1051 | { "Remove sync info","Entferne Sync Info" }, | 1051 | { "Remove sync info","Entferne Sync Info" }, |
1052 | { "For all profiles","Für alle Profile" }, | 1052 | { "For all profiles","Für alle Profile" }, |
1053 | { "Hide not Running","Verstecke nicht Laufende" }, | 1053 | { "Hide not Running","Verstecke nicht Laufende" }, |
1054 | { "ME","ME" }, | 1054 | { "ME","ME" }, |
1055 | { "Toolbar","Toolbar" }, | 1055 | { "Toolbar","Toolbar" }, |
1056 | { "Undo Delete...","Löschen rückgängig machen..." }, | 1056 | { "Undo Delete...","Löschen rückgängig machen..." }, |
1057 | { "Undo Delete","Löschen rückgängig machen" }, | 1057 | { "Undo Delete","Löschen rückgängig machen" }, |
1058 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1058 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1059 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1059 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1060 | { "Januar","Januar" }, | 1060 | { "Januar","Januar" }, |
1061 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1061 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1062 | { "No Filter","Kein Filter" }, | 1062 | { "No Filter","Kein Filter" }, |
1063 | { "Multiple Sync options","Multi Sync Optionen" }, | 1063 | { "Multiple Sync options","Multi Sync Optionen" }, |
1064 | { "Sync algo options","Sync Ablauf Optionen" }, | 1064 | { "Sync algo options","Sync Ablauf Optionen" }, |
1065 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1065 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1066 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1066 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1067 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1067 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1068 | { "Write back options","Optionen zum Zurückschreiben" }, | 1068 | { "Write back options","Optionen zum Zurückschreiben" }, |
1069 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1069 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1070 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1070 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1071 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1071 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1072 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1072 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1073 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1073 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1074 | { "Time period","Zeitspanne" }, | 1074 | { "Time period","Zeitspanne" }, |
1075 | { "From ","Von " }, | 1075 | { "From ","Von " }, |
1076 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1076 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1077 | { " weeks in the future "," Wochen in der Zukunft " }, | 1077 | { " weeks in the future "," Wochen in der Zukunft " }, |
1078 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1078 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1079 | { "Local temp file:","Lokale temp Datei:" }, | 1079 | { "Local temp file:","Lokale temp Datei:" }, |
1080 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1080 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1081 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1081 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1082 | { "Language","Sprache" }, | 1082 | { "Language","Sprache" }, |
1083 | { "Time Format","Zeit Format" }, | 1083 | { "Time Format","Zeit Format" }, |
1084 | { "Time Zone","Zeit Zone" }, | 1084 | { "Time Zone","Zeit Zone" }, |
1085 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1085 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1086 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, | 1086 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, |
1087 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1087 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1088 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1088 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1089 | { "Save settings","Speichere Einstellungen" }, | 1089 | { "Save settings","Speichere Einstellungen" }, |
1090 | { "Save standard","Speichere Standard" }, | 1090 | { "Save standard","Speichere Standard" }, |
1091 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1091 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1092 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1092 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1093 | { "Data storage path","Daten Speicherpfad" }, | 1093 | { "Data storage path","Daten Speicherpfad" }, |
1094 | { "Language","Sprache" }, | 1094 | { "Language","Sprache" }, |
1095 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1095 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1096 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1096 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1097 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, | 1097 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, |
1098 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1098 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1099 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1099 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1100 | { "KO/Pi","KO/Pi" }, | 1100 | { "KO/Pi","KO/Pi" }, |
1101 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1101 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1102 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1102 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1103 | { "Sound.Al.: ","Sound.Al.: " }, | 1103 | { "Sound.Al.: ","Sound.Al.: " }, |
1104 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1104 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1105 | { "Restore","Wiederherstellen" }, | 1105 | { "Restore","Wiederherstellen" }, |
1106 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1106 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1107 | { "% completed","% komplett" }, | 1107 | { "% completed","% komplett" }, |
1108 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1108 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1109 | { "Set complete","Setze auf erledigt" }, | 1109 | { "Set complete","Setze auf erledigt" }, |
1110 | { "(cancelled)","(gecancelt)" }, | 1110 | { "(cancelled)","(gecancelt)" }, |
1111 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1111 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1112 | { " Local time "," Locale Zeit " }, | 1112 | { " Local time "," Locale Zeit " }, |
1113 | { "Form2","Form2" }, | 1113 | { "Form2","Form2" }, |
1114 | { "Filter enabled","Filter angeschaltet" }, | 1114 | { "Filter enabled","Filter angeschaltet" }, |
1115 | { "Edit Filters","Ändere Filter" }, | 1115 | { "Edit Filters","Ändere Filter" }, |
1116 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1116 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1117 | { "Agenda","Agenda" }, | 1117 | { "Agenda","Agenda" }, |
1118 | { " ("," (" }, | 1118 | { " ("," (" }, |
1119 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1119 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1120 | { "Print","Print" }, | 1120 | { "Print","Print" }, |
1121 | { "&Setup Printer...","Drucker &Setup..." }, | 1121 | { "&Setup Printer...","Drucker &Setup..." }, |
1122 | { "View Type","Zeige Typ" }, | 1122 | { "View Type","Zeige Typ" }, |
1123 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1123 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1124 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1124 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1125 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1125 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1126 | { "Portrait","Portrait" }, | 1126 | { "Portrait","Portrait" }, |
1127 | { "Landscape","Landschaft" }, | 1127 | { "Landscape","Landschaft" }, |
1128 | { "Print day","Drucke Tag" }, | 1128 | { "Print day","Drucke Tag" }, |
1129 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1129 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1130 | { "Date && Time Range","Datum && Zeitspanne" }, | 1130 | { "Date && Time Range","Datum && Zeitspanne" }, |
1131 | { "&End date:","&Enddatum:" }, | 1131 | { "&End date:","&Enddatum:" }, |
1132 | { "&Start date:","&Startdatum:" }, | 1132 | { "&Start date:","&Startdatum:" }, |
1133 | { "Start &time:","Startzeit:" }, | 1133 | { "Start &time:","Startzeit:" }, |
1134 | { "End ti&me:","Endzeit:" }, | 1134 | { "End ti&me:","Endzeit:" }, |
1135 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1135 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1136 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1136 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1137 | { "Alt+D","Alt+D" }, | 1137 | { "Alt+D","Alt+D" }, |
1138 | { "&Use colors","Nutze Farben" }, | 1138 | { "&Use colors","Nutze Farben" }, |
1139 | { "Alt+U","Alt+U" }, | 1139 | { "Alt+U","Alt+U" }, |
1140 | { "Print week","Drucke Woche" }, | 1140 | { "Print week","Drucke Woche" }, |
1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1141 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1142 | { "Use &colors","Nutze Farben" }, | 1142 | { "Use &colors","Nutze Farben" }, |
1143 | { "Type of View","Typ der Ansicht" }, | 1143 | { "Type of View","Typ der Ansicht" }, |
1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1144 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1145 | { "Alt+F","Alt+F" }, | 1145 | { "Alt+F","Alt+F" }, |
1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1146 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1147 | { "Alt+T","Alt+T" }, | 1147 | { "Alt+T","Alt+T" }, |
1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1148 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1149 | { "Print month","Drucke Monat" }, | 1149 | { "Print month","Drucke Monat" }, |
1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1150 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1151 | { "&Start month:","&Startmonat:" }, | 1151 | { "&Start month:","&Startmonat:" }, |
1152 | { "&End month:","&Endmonat:" }, | 1152 | { "&End month:","&Endmonat:" }, |
1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1153 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1154 | { "Print todos","Drucke Todos" }, | 1154 | { "Print todos","Drucke Todos" }, |
1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1155 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1156 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1157 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1158 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1159 | { "Items to Print","Zu druckende Items" }, | 1159 | { "Items to Print","Zu druckende Items" }, |
1160 | { "&From:","Von:" }, | 1160 | { "&From:","Von:" }, |
1161 | { "&To:","Bis:" }, | 1161 | { "&To:","Bis:" }, |
1162 | { "Print &all todo items","Drucke alle Todo Items" }, | 1162 | { "Print &all todo items","Drucke alle Todo Items" }, |
1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1163 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1164 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1165 | { "Todo List","Todo Liste" }, | 1165 | { "Todo List","Todo Liste" }, |
1166 | { "&Title:","&Titel:" }, | 1166 | { "&Title:","&Titel:" }, |
1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, | 1167 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, |
1168 | { "Todo list","Todo Liste" }, | 1168 | { "Todo list","Todo Liste" }, |
1169 | { "&Print...","Drucke..." }, | 1169 | { "&Print...","Drucke..." }, |
1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1170 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1171 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1171 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1172 | { "OK","OK" }, | 1172 | { "OK","OK" }, |
1173 | { "FilterEditor","FilterEditor" }, | 1173 | { "FilterEditor","FilterEditor" }, |
1174 | { "Include","Inclusive" }, | 1174 | { "Include","Inclusive" }, |
1175 | { "Exclude","Exclusive" }, | 1175 | { "Exclude","Exclusive" }, |
1176 | { "Edit Selection...","Editiere Auswahl" }, | 1176 | { "Edit Selection...","Editiere Auswahl" }, |
1177 | { "recurring events","wiederholende Termine" }, | 1177 | { "recurring events","wiederholende Termine" }, |
1178 | { "recurr. events","wiederh.Termine" }, | 1178 | { "recurr. events","wiederh.Termine" }, |
1179 | { "completed to-dos","erledigte Todos" }, | 1179 | { "completed to-dos","erledigte Todos" }, |
1180 | { "events","Termine" }, | 1180 | { "events","Termine" }, |
1181 | { "todos","Todos" }, | 1181 | { "todos","Todos" }, |
1182 | { "journals","Journale" }, | 1182 | { "journals","Journale" }, |
1183 | { "public","öffentl." }, | 1183 | { "public","öffentl." }, |
1184 | { "private","privat" }, | 1184 | { "private","privat" }, |
1185 | { "confidential","vertraul." }, | 1185 | { "confidential","vertraul." }, |
1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1186 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1187 | { "Yesterday","Gestern" }, | 1187 | { "Yesterday","Gestern" }, |
1188 | { "Day after tomorrow","Übermorgen" }, | 1188 | { "Day after tomorrow","Übermorgen" }, |
1189 | { "Tomorrow","Morgen" }, | 1189 | { "Tomorrow","Morgen" }, |
1190 | { "Day before yesterday","Vorgestern" }, | 1190 | { "Day before yesterday","Vorgestern" }, |
1191 | { "Size %1","Größe %1" }, | 1191 | { "Size %1","Größe %1" }, |
1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1192 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1193 | { " (%1 y.)"," (%1 J.)" }, | 1193 | { " (%1 y.)"," (%1 J.)" }, |
1194 | { "Allday:","Ganztägig:" }, | 1194 | { "Allday:","Ganztägig:" }, |
1195 | { "compl.todos","erled.Todos" }, | 1195 | { "compl.todos","erled.Todos" }, |
1196 | { "Day view","Tagesansicht" }, | 1196 | { "Day view","Tagesansicht" }, |
1197 | { "Next days","Nächste Tage" }, | 1197 | { "Next days","Nächste Tage" }, |
1198 | { "Next week","Nächste Woche" }, | 1198 | { "Next week","Nächste Woche" }, |
1199 | { "Next two weeks","Nächste zwei Wochen" }, | 1199 | { "Next two weeks","Nächste zwei Wochen" }, |
1200 | { "Next month","Nächster Monat" }, | 1200 | { "Next month","Nächster Monat" }, |
1201 | { "Journal view","Journal" }, | 1201 | { "Journal view","Journal" }, |
1202 | { "Display all opened","Zeige alle geöffnet" }, | 1202 | { "Display all opened","Zeige alle geöffnet" }, |
1203 | { "Display all closed","Zeige alle geschlossen" }, | 1203 | { "Display all closed","Zeige alle geschlossen" }, |
1204 | { "Display all flat","Zeige alle flach" }, | 1204 | { "Display all flat","Zeige alle flach" }, |
1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1205 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1206 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1207 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1208 | { "Select Week","Wähle Woche" }, | 1208 | { "Select Week","Wähle Woche" }, |
1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1209 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1210 | { "Set Alarm!","Setze Alarm!" }, | 1210 | { "Set Alarm!","Setze Alarm!" }, |
1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1211 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1212 | { " and "," und " }, | 1212 | { " and "," und " }, |
1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1213 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1214 | { "Mail to selected","Mail an Ausgewählte" }, | 1214 | { "Mail to selected","Mail an Ausgewählte" }, |
1215 | { "Mail to all","Mail an Alle" }, | 1215 | { "Mail to all","Mail an Alle" }, |
1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1216 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1217 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1218 | { " on"," am" }, | 1218 | { " on"," am" }, |
1219 | { " completed on "," erledigt am " }, | 1219 | { " completed on "," erledigt am " }, |
1220 | { "Save as Event template","Speichere als Vorlage" }, | 1220 | { "Save as Event template","Speichere als Vorlage" }, |
1221 | { "Load Event template","Lade Termin Vorlage" }, | 1221 | { "Load Event template","Lade Termin Vorlage" }, |
1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1222 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1223 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1224 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1224 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1225 | { "Parent todo:<br>","Über Todo:<br>" }, | 1225 | { "Parent todo:<br>","Über Todo:<br>" }, |
1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1226 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1227 | { " completed"," erledigt" }, | 1227 | { " completed"," erledigt" }, |
1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.net --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1228 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.net --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.net --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1229 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1230 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1231 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1232 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, | 1232 | { "Connection to remote\nhost timed out!\nDid you forgot to enable\nsyncing on remote host?","Verbindungsversuch wegen\nZeitüberschreitung gescheitert!\nWurde vergessen Pi-Sync auf\nder Gegenstelle anzuschalten?" }, |
1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1233 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1234 | { "Error","Fehler" }, | 1234 | { "Error","Fehler" }, |
1235 | { "","" }, | 1235 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1236 | { "","" }, | 1236 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1237 | { "","" }, | 1237 | { "Warning","Warnung" }, |
1238 | { "","" }, | 1238 | { "","" }, |
1239 | { "","" }, | 1239 | { "","" }, |
1240 | { "","" }, | 1240 | { "","" }, |
1241 | { "","" }, | 1241 | { "","" }, |
1242 | { "","" }, | 1242 | { "","" }, |
1243 | { "","" }, | 1243 | { "","" }, |
1244 | { "","" }, \ No newline at end of file | 1244 | { "","" }, \ No newline at end of file |
diff --git a/korganizer/koeditorgeneralevent.cpp b/korganizer/koeditorgeneralevent.cpp index adc733b..2a49528 100644 --- a/korganizer/koeditorgeneralevent.cpp +++ b/korganizer/koeditorgeneralevent.cpp | |||
@@ -16,412 +16,412 @@ | |||
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 | ||
380 | QString from,to; | 380 | QString from,to; |
381 | if (mNoTimeButton->isChecked()) { | 381 | if (mNoTimeButton->isChecked()) { |
382 | from = l->formatDate(mCurrStartDateTime.date()); | 382 | from = l->formatDate(mCurrStartDateTime.date()); |
383 | to = l->formatDate(mCurrEndDateTime.date()); | 383 | to = l->formatDate(mCurrEndDateTime.date()); |
384 | } else { | 384 | } else { |
385 | from = l->formatDateTime(mCurrStartDateTime); | 385 | from = l->formatDateTime(mCurrStartDateTime); |
386 | to = l->formatDateTime(mCurrEndDateTime); | 386 | to = l->formatDateTime(mCurrEndDateTime); |
387 | } | 387 | } |
388 | 388 | ||
389 | QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to) | 389 | QString str = i18n("From: %1 To: %2 %3").arg(from).arg(to) |
390 | .arg(mDurationLabel->text()); | 390 | .arg(mDurationLabel->text()); |
391 | 391 | ||
392 | emit dateTimeStrChanged(str); | 392 | emit dateTimeStrChanged(str); |
393 | } | 393 | } |
394 | 394 | ||
395 | bool KOEditorGeneralEvent::validateInput() | 395 | bool KOEditorGeneralEvent::validateInput() |
396 | { | 396 | { |
397 | 397 | ||
398 | if (!mStartDateEdit->inputIsValid()) { | 398 | if (!mStartDateEdit->inputIsValid()) { |
399 | KMessageBox::sorry( 0, | 399 | KMessageBox::sorry( 0, |
400 | i18n("Please specify a valid start date, for example '%1'.") | 400 | i18n("Please specify a valid start date,\nfor example '%1'.") |
401 | .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) ); | 401 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
402 | return false; | 402 | return false; |
403 | } | 403 | } |
404 | 404 | ||
405 | if (!mEndDateEdit->inputIsValid()) { | 405 | if (!mEndDateEdit->inputIsValid()) { |
406 | KMessageBox::sorry( 0, | 406 | KMessageBox::sorry( 0, |
407 | i18n("Please specify a valid end date, for example '%1'.") | 407 | i18n("Please specify a valid end date,\nfor example '%1'.") |
408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate() ) ) ); | 408 | .arg( KGlobal::locale()->formatDate( QDate::currentDate(), true ) ) ); |
409 | return false; | 409 | return false; |
410 | } | 410 | } |
411 | 411 | ||
412 | QDateTime startDt,endDt; | 412 | QDateTime startDt,endDt; |
413 | startDt.setDate(mStartDateEdit->date()); | 413 | startDt.setDate(mStartDateEdit->date()); |
414 | endDt.setDate(mEndDateEdit->date()); | 414 | endDt.setDate(mEndDateEdit->date()); |
415 | if (!mNoTimeButton->isChecked()) { | 415 | if (!mNoTimeButton->isChecked()) { |
416 | startDt.setTime(mStartTimeEdit->getTime()); | 416 | startDt.setTime(mStartTimeEdit->getTime()); |
417 | endDt.setTime(mEndTimeEdit->getTime()); | 417 | endDt.setTime(mEndTimeEdit->getTime()); |
418 | } | 418 | } |
419 | 419 | ||
420 | if (startDt > endDt) { | 420 | if (startDt > endDt) { |
421 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" | 421 | KMessageBox::sorry(0,i18n("The event ends before it starts.\n" |
422 | "Please correct dates and times.")); | 422 | "Please correct dates and times.")); |
423 | return false; | 423 | return false; |
424 | } | 424 | } |
425 | 425 | ||
426 | return KOEditorGeneral::validateInput(); | 426 | return KOEditorGeneral::validateInput(); |
427 | } | 427 | } |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index da81586..f595d35 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -172,769 +172,769 @@ void KNoScrollListBox::keyReleaseEvent(QKeyEvent *e) | |||
172 | { | 172 | { |
173 | switch(e->key()) { | 173 | switch(e->key()) { |
174 | case Key_Shift: | 174 | case Key_Shift: |
175 | emit shiftUp(); | 175 | emit shiftUp(); |
176 | break; | 176 | break; |
177 | default: | 177 | default: |
178 | break; | 178 | break; |
179 | } | 179 | } |
180 | } | 180 | } |
181 | 181 | ||
182 | void KNoScrollListBox::mousePressEvent(QMouseEvent *e) | 182 | void KNoScrollListBox::mousePressEvent(QMouseEvent *e) |
183 | { | 183 | { |
184 | QListBox::mousePressEvent(e); | 184 | QListBox::mousePressEvent(e); |
185 | 185 | ||
186 | if(e->button() == RightButton) { | 186 | if(e->button() == RightButton) { |
187 | emit rightClick(); | 187 | emit rightClick(); |
188 | } | 188 | } |
189 | } | 189 | } |
190 | 190 | ||
191 | MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) | 191 | MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) |
192 | : QListBoxItem() | 192 | : QListBoxItem() |
193 | { | 193 | { |
194 | setText( s ); | 194 | setText( s ); |
195 | 195 | ||
196 | mIncidence = incidence; | 196 | mIncidence = incidence; |
197 | mDate = qd; | 197 | mDate = qd; |
198 | // QWhatsThis::add(this,KIncidenceFormatter::instance()->getFormattedText( mIncidence )); | 198 | // QWhatsThis::add(this,KIncidenceFormatter::instance()->getFormattedText( mIncidence )); |
199 | mRecur = false; | 199 | mRecur = false; |
200 | mAlarm = false; | 200 | mAlarm = false; |
201 | mReply = false; | 201 | mReply = false; |
202 | mInfo = false; | 202 | mInfo = false; |
203 | } | 203 | } |
204 | 204 | ||
205 | void MonthViewItem::paint(QPainter *p) | 205 | void MonthViewItem::paint(QPainter *p) |
206 | { | 206 | { |
207 | #if QT_VERSION >= 0x030000 | 207 | #if QT_VERSION >= 0x030000 |
208 | bool sel = isSelected(); | 208 | bool sel = isSelected(); |
209 | #else | 209 | #else |
210 | bool sel = selected(); | 210 | bool sel = selected(); |
211 | #endif | 211 | #endif |
212 | 212 | ||
213 | 213 | ||
214 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) | 214 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) |
215 | { | 215 | { |
216 | p->setBackgroundColor( palette().color( QPalette::Normal, \ | 216 | p->setBackgroundColor( palette().color( QPalette::Normal, \ |
217 | sel ? QColorGroup::Highlight : QColorGroup::Background ) ); | 217 | sel ? QColorGroup::Highlight : QColorGroup::Background ) ); |
218 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) ); | 218 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) ); |
219 | } | 219 | } |
220 | int x = 1; | 220 | int x = 1; |
221 | int y = 3;//(height() - mRecurPixmap.height()) /2; | 221 | int y = 3;//(height() - mRecurPixmap.height()) /2; |
222 | int size = PIXMAP_SIZE; | 222 | int size = PIXMAP_SIZE; |
223 | if ( QApplication::desktop()->width() < 300 ) | 223 | if ( QApplication::desktop()->width() < 300 ) |
224 | size = 3; | 224 | size = 3; |
225 | if ( KOPrefs::instance()->mMonthShowIcons ) { | 225 | if ( KOPrefs::instance()->mMonthShowIcons ) { |
226 | if ( mInfo ) { | 226 | if ( mInfo ) { |
227 | p->fillRect ( x, y,size,size, Qt::darkGreen ); | 227 | p->fillRect ( x, y,size,size, Qt::darkGreen ); |
228 | x += size + 1; | 228 | x += size + 1; |
229 | } | 229 | } |
230 | if ( mRecur ) { | 230 | if ( mRecur ) { |
231 | p->fillRect ( x, y,size,size, Qt::blue ); | 231 | p->fillRect ( x, y,size,size, Qt::blue ); |
232 | x += size + 1; | 232 | x += size + 1; |
233 | } | 233 | } |
234 | if ( mAlarm ) { | 234 | if ( mAlarm ) { |
235 | p->fillRect ( x, y,size,size, Qt::red ); | 235 | p->fillRect ( x, y,size,size, Qt::red ); |
236 | x += size + 1; | 236 | x += size + 1; |
237 | } | 237 | } |
238 | if ( mReply ) { | 238 | if ( mReply ) { |
239 | p->fillRect ( x, y,size,size, Qt::yellow ); | 239 | p->fillRect ( x, y,size,size, Qt::yellow ); |
240 | x += size + 1; | 240 | x += size + 1; |
241 | } | 241 | } |
242 | } | 242 | } |
243 | QFontMetrics fm = p->fontMetrics(); | 243 | QFontMetrics fm = p->fontMetrics(); |
244 | int yPos; | 244 | int yPos; |
245 | int pmheight = size; | 245 | int pmheight = size; |
246 | if( pmheight < fm.height() ) | 246 | if( pmheight < fm.height() ) |
247 | yPos = fm.ascent() + fm.leading()/2; | 247 | yPos = fm.ascent() + fm.leading()/2; |
248 | else | 248 | else |
249 | yPos = pmheight/2 - fm.height()/2 + fm.ascent(); | 249 | yPos = pmheight/2 - fm.height()/2 + fm.ascent(); |
250 | p->setPen( palette().color( QPalette::Normal, sel ? \ | 250 | p->setPen( palette().color( QPalette::Normal, sel ? \ |
251 | QColorGroup::HighlightedText : QColorGroup::Foreground ) ); | 251 | QColorGroup::HighlightedText : QColorGroup::Foreground ) ); |
252 | p->drawText( x, yPos, text() ); | 252 | p->drawText( x, yPos, text() ); |
253 | if ( mIncidence->cancelled() ) { | 253 | if ( mIncidence->cancelled() ) { |
254 | int wid = fm.width( text() ); | 254 | int wid = fm.width( text() ); |
255 | p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); | 255 | p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); |
256 | } | 256 | } |
257 | 257 | ||
258 | } | 258 | } |
259 | 259 | ||
260 | int MonthViewItem::height(const QListBox *lb) const | 260 | int MonthViewItem::height(const QListBox *lb) const |
261 | { | 261 | { |
262 | return lb->fontMetrics().lineSpacing()+1; | 262 | return lb->fontMetrics().lineSpacing()+1; |
263 | } | 263 | } |
264 | 264 | ||
265 | int MonthViewItem::width(const QListBox *lb) const | 265 | int MonthViewItem::width(const QListBox *lb) const |
266 | { | 266 | { |
267 | int size = PIXMAP_SIZE; | 267 | int size = PIXMAP_SIZE; |
268 | if ( QApplication::desktop()->width() < 300 ) | 268 | if ( QApplication::desktop()->width() < 300 ) |
269 | size = 3; | 269 | size = 3; |
270 | int x = 1; | 270 | int x = 1; |
271 | if ( mInfo ) { | 271 | if ( mInfo ) { |
272 | x += size + 1; | 272 | x += size + 1; |
273 | } | 273 | } |
274 | if( mRecur ) { | 274 | if( mRecur ) { |
275 | x += size+1; | 275 | x += size+1; |
276 | } | 276 | } |
277 | if( mAlarm ) { | 277 | if( mAlarm ) { |
278 | x += size+1; | 278 | x += size+1; |
279 | } | 279 | } |
280 | if( mReply ) { | 280 | if( mReply ) { |
281 | x += size+1; | 281 | x += size+1; |
282 | } | 282 | } |
283 | 283 | ||
284 | return( x + lb->fontMetrics().width( text() ) + 1 ); | 284 | return( x + lb->fontMetrics().width( text() ) + 1 ); |
285 | } | 285 | } |
286 | 286 | ||
287 | 287 | ||
288 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) | 288 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) |
289 | : QWidget( par ), | 289 | : QWidget( par ), |
290 | mMonthView( parent ) | 290 | mMonthView( parent ) |
291 | { | 291 | { |
292 | 292 | ||
293 | QVBoxLayout *topLayout = new QVBoxLayout( this ); | 293 | QVBoxLayout *topLayout = new QVBoxLayout( this ); |
294 | 294 | ||
295 | // mLabel = new QLabel( this );QPushButton | 295 | // mLabel = new QLabel( this );QPushButton |
296 | mLabel = new QPushButton( this ); | 296 | mLabel = new QPushButton( this ); |
297 | //mLabel->setFrameStyle( QFrame::Panel | QFrame::Plain ); | 297 | //mLabel->setFrameStyle( QFrame::Panel | QFrame::Plain ); |
298 | //mLabel->setLineWidth( 1 ); | 298 | //mLabel->setLineWidth( 1 ); |
299 | //mLabel->setAlignment( AlignCenter ); | 299 | //mLabel->setAlignment( AlignCenter ); |
300 | mLabel->setFlat( true ); | 300 | mLabel->setFlat( true ); |
301 | mLabel->setFocusPolicy(NoFocus); | 301 | mLabel->setFocusPolicy(NoFocus); |
302 | mItemList = new KNoScrollListBox( this ); | 302 | mItemList = new KNoScrollListBox( this ); |
303 | mItemList->setMinimumSize( 10, 10 ); | 303 | mItemList->setMinimumSize( 10, 10 ); |
304 | mItemList->setFrameStyle( QFrame::Panel | QFrame::Plain ); | 304 | mItemList->setFrameStyle( QFrame::Panel | QFrame::Plain ); |
305 | mItemList->setLineWidth( 1 ); | 305 | mItemList->setLineWidth( 1 ); |
306 | topLayout->addWidget( mItemList ); | 306 | topLayout->addWidget( mItemList ); |
307 | mLabel->raise(); | 307 | mLabel->raise(); |
308 | // QColor( 0,0,255 ) QColor( 160,1600,255 ) | 308 | // QColor( 0,0,255 ) QColor( 160,1600,255 ) |
309 | mStandardPalette = palette(); | 309 | mStandardPalette = palette(); |
310 | mStandardPalette.setColor(QColorGroup::Base, mStandardPalette.color( QPalette::Normal, QColorGroup::Background ) ); | 310 | mStandardPalette.setColor(QColorGroup::Base, mStandardPalette.color( QPalette::Normal, QColorGroup::Background ) ); |
311 | 311 | ||
312 | enableScrollBars( false ); | 312 | enableScrollBars( false ); |
313 | updateConfig(); | 313 | updateConfig(); |
314 | //connect( mLabel, SIGNAL( clicked( )), SLOT( newEvent() )); | 314 | //connect( mLabel, SIGNAL( clicked( )), SLOT( newEvent() )); |
315 | connect( mLabel, SIGNAL( clicked( )), SLOT( showDay() )); | 315 | connect( mLabel, SIGNAL( clicked( )), SLOT( showDay() )); |
316 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), | 316 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), |
317 | SLOT( defaultAction( QListBoxItem * ) ) ); | 317 | SLOT( defaultAction( QListBoxItem * ) ) ); |
318 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, | 318 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, |
319 | const QPoint &) ), | 319 | const QPoint &) ), |
320 | SLOT( contextMenu( QListBoxItem * ) ) ); | 320 | SLOT( contextMenu( QListBoxItem * ) ) ); |
321 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), | 321 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), |
322 | SLOT( selection( QListBoxItem * ) ) ); | 322 | SLOT( selection( QListBoxItem * ) ) ); |
323 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 323 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
324 | SLOT( cellClicked( QListBoxItem * ) ) ); | 324 | SLOT( cellClicked( QListBoxItem * ) ) ); |
325 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 325 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
326 | SLOT( selection( QListBoxItem * ) ) ); | 326 | SLOT( selection( QListBoxItem * ) ) ); |
327 | } | 327 | } |
328 | #ifdef DESKTOP_VERSION | 328 | #ifdef DESKTOP_VERSION |
329 | QToolTipGroup *MonthViewCell::toolTipGroup() | 329 | QToolTipGroup *MonthViewCell::toolTipGroup() |
330 | { | 330 | { |
331 | if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); | 331 | if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); |
332 | return mToolTipGroup; | 332 | return mToolTipGroup; |
333 | } | 333 | } |
334 | #endif | 334 | #endif |
335 | 335 | ||
336 | void MonthViewCell::setDate( const QDate &date ) | 336 | void MonthViewCell::setDate( const QDate &date ) |
337 | { | 337 | { |
338 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; | 338 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; |
339 | mDate = date; | 339 | mDate = date; |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | //resizeEvent( 0 ); | 343 | //resizeEvent( 0 ); |
344 | } | 344 | } |
345 | 345 | ||
346 | QDate MonthViewCell::date() const | 346 | QDate MonthViewCell::date() const |
347 | { | 347 | { |
348 | return mDate; | 348 | return mDate; |
349 | } | 349 | } |
350 | 350 | ||
351 | void MonthViewCell::setPrimary( bool primary ) | 351 | void MonthViewCell::setPrimary( bool primary ) |
352 | { | 352 | { |
353 | mPrimary = primary; | 353 | mPrimary = primary; |
354 | //setMyPalette(); | 354 | //setMyPalette(); |
355 | } | 355 | } |
356 | void MonthViewCell::setMyPalette() | 356 | void MonthViewCell::setMyPalette() |
357 | { | 357 | { |
358 | 358 | ||
359 | if ( mHoliday) { | 359 | if ( mHoliday) { |
360 | setPalette( mHolidayPalette ); | 360 | setPalette( mHolidayPalette ); |
361 | } else { | 361 | } else { |
362 | if ( mPrimary ) { | 362 | if ( mPrimary ) { |
363 | setPalette( mPrimaryPalette ); | 363 | setPalette( mPrimaryPalette ); |
364 | } else { | 364 | } else { |
365 | setPalette( mNonPrimaryPalette ); | 365 | setPalette( mNonPrimaryPalette ); |
366 | } | 366 | } |
367 | } | 367 | } |
368 | QPalette pal = palette(); | 368 | QPalette pal = palette(); |
369 | 369 | ||
370 | mLabel->setPalette( QPalette ( pal.color( QPalette::Normal,QColorGroup::Base),pal.color(QPalette::Normal,QColorGroup::Base ) )); | 370 | mLabel->setPalette( QPalette ( pal.color( QPalette::Normal,QColorGroup::Base),pal.color(QPalette::Normal,QColorGroup::Base ) )); |
371 | } | 371 | } |
372 | QPalette MonthViewCell::getPalette () | 372 | QPalette MonthViewCell::getPalette () |
373 | { | 373 | { |
374 | if ( !KOPrefs::instance()->mMonthViewUsesDayColors ) | 374 | if ( !KOPrefs::instance()->mMonthViewUsesDayColors ) |
375 | return mStandardPalette; | 375 | return mStandardPalette; |
376 | if ( mHoliday) { | 376 | if ( mHoliday) { |
377 | return mHolidayPalette ; | 377 | return mHolidayPalette ; |
378 | } else { | 378 | } else { |
379 | if ( mPrimary ) { | 379 | if ( mPrimary ) { |
380 | return mPrimaryPalette ; | 380 | return mPrimaryPalette ; |
381 | } | 381 | } |
382 | } | 382 | } |
383 | return mNonPrimaryPalette; | 383 | return mNonPrimaryPalette; |
384 | } | 384 | } |
385 | bool MonthViewCell::isPrimary() const | 385 | bool MonthViewCell::isPrimary() const |
386 | { | 386 | { |
387 | return mPrimary; | 387 | return mPrimary; |
388 | } | 388 | } |
389 | 389 | ||
390 | void MonthViewCell::setHoliday( bool holiday ) | 390 | void MonthViewCell::setHoliday( bool holiday ) |
391 | { | 391 | { |
392 | mHoliday = holiday; | 392 | mHoliday = holiday; |
393 | //setMyPalette(); | 393 | //setMyPalette(); |
394 | } | 394 | } |
395 | 395 | ||
396 | void MonthViewCell::setHoliday( const QString &holiday ) | 396 | void MonthViewCell::setHoliday( const QString &holiday ) |
397 | { | 397 | { |
398 | mHolidayString = holiday; | 398 | mHolidayString = holiday; |
399 | 399 | ||
400 | if ( !holiday.isEmpty() ) { | 400 | if ( !holiday.isEmpty() ) { |
401 | setHoliday( true ); | 401 | setHoliday( true ); |
402 | } | 402 | } |
403 | } | 403 | } |
404 | void MonthViewCell::keyPressEvent ( QKeyEvent * e ) | 404 | void MonthViewCell::keyPressEvent ( QKeyEvent * e ) |
405 | { | 405 | { |
406 | 406 | ||
407 | e->ignore(); | 407 | e->ignore(); |
408 | 408 | ||
409 | } | 409 | } |
410 | 410 | ||
411 | void MonthViewCell::startUpdateCell() | 411 | void MonthViewCell::startUpdateCell() |
412 | { | 412 | { |
413 | 413 | ||
414 | mItemList->setFocusPolicy(NoFocus); | 414 | mItemList->setFocusPolicy(NoFocus); |
415 | if ( !mMonthView->isUpdatePossible() ) | 415 | if ( !mMonthView->isUpdatePossible() ) |
416 | return; | 416 | return; |
417 | 417 | ||
418 | /* | 418 | /* |
419 | if ( !isVisible() ){ | 419 | if ( !isVisible() ){ |
420 | return; | 420 | return; |
421 | } | 421 | } |
422 | */ | 422 | */ |
423 | // qDebug("MonthViewCell::updateCell() "); | 423 | // qDebug("MonthViewCell::updateCell() "); |
424 | setPrimary( mDate.month()%2 ); | 424 | setPrimary( mDate.month()%2 ); |
425 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); | 425 | setHoliday( KOGlobals::self()->calendarSystem()->dayOfWeek(mDate) == KOGlobals::self()->calendarSystem()->weekDayOfPray() || ( mDate.dayOfWeek() == 6 ) && KOPrefs::instance()-> mExcludeSaturdays); |
426 | if ( mDate == QDate::currentDate() ) { | 426 | if ( mDate == QDate::currentDate() ) { |
427 | mItemList->setLineWidth( 3 ); | 427 | mItemList->setLineWidth( 3 ); |
428 | } else { | 428 | } else { |
429 | mItemList->setLineWidth( 1 ); | 429 | mItemList->setLineWidth( 1 ); |
430 | } | 430 | } |
431 | mItemList->clear(); | 431 | mItemList->clear(); |
432 | 432 | ||
433 | #ifdef DESKTOP_VERSION | 433 | #ifdef DESKTOP_VERSION |
434 | QToolTip::remove(this); | 434 | QToolTip::remove(this); |
435 | #endif | 435 | #endif |
436 | mToolTip = ""; | 436 | mToolTip = ""; |
437 | //qApp->processEvents(); | 437 | //qApp->processEvents(); |
438 | if ( !mHolidayString.isEmpty() ) { | 438 | if ( !mHolidayString.isEmpty() ) { |
439 | MonthViewItem *item = new MonthViewItem( 0, mDate, mHolidayString ); | 439 | MonthViewItem *item = new MonthViewItem( 0, mDate, mHolidayString ); |
440 | item->setPalette( mHolidayPalette ); | 440 | item->setPalette( mHolidayPalette ); |
441 | mItemList->insertItem( item ); | 441 | mItemList->insertItem( item ); |
442 | mToolTip += mHolidayString+"\n"; | 442 | mToolTip += mHolidayString+"\n"; |
443 | } | 443 | } |
444 | } | 444 | } |
445 | 445 | ||
446 | void MonthViewCell::insertEvent(Event *event) | 446 | void MonthViewCell::insertEvent(Event *event) |
447 | { | 447 | { |
448 | 448 | ||
449 | mItemList->setFocusPolicy(WheelFocus); | 449 | mItemList->setFocusPolicy(WheelFocus); |
450 | if ( !(event->doesRecur() == Recurrence::rNone) ) { | 450 | if ( !(event->doesRecur() == Recurrence::rNone) ) { |
451 | if ( !KOPrefs::instance()->mMonthDailyRecur && event->doesRecur() == Recurrence::rDaily ) | 451 | if ( !KOPrefs::instance()->mMonthDailyRecur && event->doesRecur() == Recurrence::rDaily ) |
452 | return; | 452 | return; |
453 | else | 453 | else |
454 | if ( !KOPrefs::instance()->mMonthWeeklyRecur && event->doesRecur() == Recurrence::rWeekly ) | 454 | if ( !KOPrefs::instance()->mMonthWeeklyRecur && event->doesRecur() == Recurrence::rWeekly ) |
455 | return; | 455 | return; |
456 | } | 456 | } |
457 | 457 | ||
458 | if ( event->categories().contains("Holiday") || | 458 | if ( event->categories().contains("Holiday") || |
459 | event->categories().contains(i18n("Holiday"))) { | 459 | event->categories().contains(i18n("Holiday"))) { |
460 | setHoliday( true ); | 460 | setHoliday( true ); |
461 | if ( mDate.dayOfWeek() == 7 ) | 461 | if ( mDate.dayOfWeek() == 7 ) |
462 | mItemList->setLineWidth( 3 ); | 462 | mItemList->setLineWidth( 3 ); |
463 | } | 463 | } |
464 | QString text; | 464 | QString text; |
465 | if (event->isMultiDay()) { | 465 | if (event->isMultiDay()) { |
466 | QString prefix = "<->"; | 466 | QString prefix = "<->"; |
467 | if ( event->doesRecur() ) { | 467 | if ( event->doesRecur() ) { |
468 | if ( event->recursOn( mDate) ) | 468 | if ( event->recursOn( mDate) ) |
469 | prefix ="->" ; | 469 | prefix ="->" ; |
470 | else { | 470 | else { |
471 | int days = event->dtStart().date().daysTo ( event->dtEnd().date() ); | 471 | int days = event->dtStart().date().daysTo ( event->dtEnd().date() ); |
472 | if ( event->recursOn( mDate.addDays( -days)) ) | 472 | if ( event->recursOn( mDate.addDays( -days)) ) |
473 | prefix ="<-" ; | 473 | prefix ="<-" ; |
474 | } | 474 | } |
475 | 475 | ||
476 | } else { | 476 | } else { |
477 | if (mDate == event->dtStart().date()) { | 477 | if (mDate == event->dtStart().date()) { |
478 | prefix ="->" ; | 478 | prefix ="->" ; |
479 | } else if (mDate == event->dtEnd().date()) { | 479 | } else if (mDate == event->dtEnd().date()) { |
480 | prefix ="<-" ; | 480 | prefix ="<-" ; |
481 | } | 481 | } |
482 | } | 482 | } |
483 | if ( !event->doesFloat() ) { | 483 | if ( !event->doesFloat() ) { |
484 | if ( mDate == event->dtStart().date () ) | 484 | if ( mDate == event->dtStart().date () ) |
485 | prefix += KGlobal::locale()->formatTime(event->dtStart().time())+" "; | 485 | prefix += KGlobal::locale()->formatTime(event->dtStart().time())+" "; |
486 | else if ( mDate == event->dtEnd().date () ) | 486 | else if ( mDate == event->dtEnd().date () ) |
487 | prefix += KGlobal::locale()->formatTime(event->dtEnd().time())+" "; | 487 | prefix += KGlobal::locale()->formatTime(event->dtEnd().time())+" "; |
488 | 488 | ||
489 | } | 489 | } |
490 | text = prefix + event->summary(); | 490 | text = prefix + event->summary(); |
491 | mToolTip += text; | 491 | mToolTip += text; |
492 | } else { | 492 | } else { |
493 | if (event->doesFloat()) { | 493 | if (event->doesFloat()) { |
494 | text = event->summary(); | 494 | text = event->summary(); |
495 | mToolTip += text; | 495 | mToolTip += text; |
496 | } | 496 | } |
497 | else { | 497 | else { |
498 | text = KGlobal::locale()->formatTime(event->dtStart().time()); | 498 | text = KGlobal::locale()->formatTime(event->dtStart().time()); |
499 | text += " " + event->summary(); | 499 | text += " " + event->summary(); |
500 | mToolTip += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); | 500 | mToolTip += KGlobal::locale()->formatTime(event->dtStart().time()) +"-"+KGlobal::locale()->formatTime(event->dtEnd().time())+" " + event->summary(); |
501 | } | 501 | } |
502 | } | 502 | } |
503 | 503 | ||
504 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); | 504 | MonthViewItem *item = new MonthViewItem( event, mDate, text ); |
505 | QPalette pal; | 505 | QPalette pal; |
506 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { | 506 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { |
507 | QStringList categories = event->categories(); | 507 | QStringList categories = event->categories(); |
508 | QString cat = categories.first(); | 508 | QString cat = categories.first(); |
509 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { | 509 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { |
510 | pal = getPalette(); | 510 | pal = getPalette(); |
511 | if (cat.isEmpty()) { | 511 | if (cat.isEmpty()) { |
512 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); | 512 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); |
513 | } else { | 513 | } else { |
514 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); | 514 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); |
515 | } | 515 | } |
516 | 516 | ||
517 | } else { | 517 | } else { |
518 | if (cat.isEmpty()) { | 518 | if (cat.isEmpty()) { |
519 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); | 519 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); |
520 | } else { | 520 | } else { |
521 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); | 521 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); |
522 | } | 522 | } |
523 | } | 523 | } |
524 | 524 | ||
525 | } else { | 525 | } else { |
526 | pal = mStandardPalette ; | 526 | pal = mStandardPalette ; |
527 | } | 527 | } |
528 | item->setPalette( pal ); | 528 | item->setPalette( pal ); |
529 | item->setRecur( event->recurrence()->doesRecur() ); | 529 | item->setRecur( event->recurrence()->doesRecur() ); |
530 | item->setAlarm( event->isAlarmEnabled() ); | 530 | item->setAlarm( event->isAlarmEnabled() ); |
531 | item->setMoreInfo( event->description().length() > 0 ); | 531 | item->setMoreInfo( event->description().length() > 0 ); |
532 | #ifdef DESKTOP_VERSION | 532 | #ifdef DESKTOP_VERSION |
533 | Attendee *me = event->attendeeByMails(KOPrefs::instance()->mAdditionalMails, | 533 | Attendee *me = event->attendeeByMails(KOPrefs::instance()->mAdditionalMails, |
534 | KOPrefs::instance()->email()); | 534 | KOPrefs::instance()->email()); |
535 | if ( me != 0 ) { | 535 | if ( me != 0 ) { |
536 | if ( me->status() == Attendee::NeedsAction && me->RSVP()) | 536 | if ( me->status() == Attendee::NeedsAction && me->RSVP()) |
537 | item->setReply(true); | 537 | item->setReply(true); |
538 | else | 538 | else |
539 | item->setReply(false); | 539 | item->setReply(false); |
540 | } else | 540 | } else |
541 | item->setReply(false); | 541 | item->setReply(false); |
542 | #endif | 542 | #endif |
543 | mItemList->insertItem( item ); | 543 | mItemList->insertItem( item ); |
544 | mToolTip += "\n"; | 544 | mToolTip += "\n"; |
545 | } | 545 | } |
546 | void MonthViewCell::insertTodo(Todo *todo) | 546 | void MonthViewCell::insertTodo(Todo *todo) |
547 | { | 547 | { |
548 | mItemList->setFocusPolicy(WheelFocus); | 548 | mItemList->setFocusPolicy(WheelFocus); |
549 | QString text; | 549 | QString text; |
550 | if (todo->hasDueDate()) { | 550 | if (todo->hasDueDate()) { |
551 | if (!todo->doesFloat()) { | 551 | if (!todo->doesFloat()) { |
552 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); | 552 | text += KGlobal::locale()->formatTime(todo->dtDue().time()); |
553 | text += " "; | 553 | text += " "; |
554 | } | 554 | } |
555 | } | 555 | } |
556 | text += i18n("Td: %1").arg(todo->summary()); | 556 | text += i18n("T: %1").arg(todo->summary()); |
557 | 557 | ||
558 | MonthViewItem *item = new MonthViewItem( todo, mDate, text ); | 558 | MonthViewItem *item = new MonthViewItem( todo, mDate, text ); |
559 | //item->setPalette( mStandardPalette ); | 559 | //item->setPalette( mStandardPalette ); |
560 | QPalette pal; | 560 | QPalette pal; |
561 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { | 561 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) { |
562 | QStringList categories = todo->categories(); | 562 | QStringList categories = todo->categories(); |
563 | QString cat = categories.first(); | 563 | QString cat = categories.first(); |
564 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { | 564 | if ( KOPrefs::instance()->mMonthViewUsesForegroundColor ) { |
565 | pal = getPalette(); | 565 | pal = getPalette(); |
566 | if (cat.isEmpty()) { | 566 | if (cat.isEmpty()) { |
567 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); | 567 | pal.setColor(QColorGroup::Foreground,KOPrefs::instance()->mEventColor); |
568 | } else { | 568 | } else { |
569 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); | 569 | pal.setColor(QColorGroup::Foreground, *(KOPrefs::instance()->categoryColor(cat))); |
570 | } | 570 | } |
571 | 571 | ||
572 | } else { | 572 | } else { |
573 | if (cat.isEmpty()) { | 573 | if (cat.isEmpty()) { |
574 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); | 574 | pal = QPalette(KOPrefs::instance()->mEventColor, KOPrefs::instance()->mEventColor); |
575 | } else { | 575 | } else { |
576 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); | 576 | pal = QPalette(*(KOPrefs::instance()->categoryColor(cat)), *(KOPrefs::instance()->categoryColor(cat))); |
577 | } | 577 | } |
578 | } | 578 | } |
579 | 579 | ||
580 | } else { | 580 | } else { |
581 | pal = mStandardPalette ; | 581 | pal = mStandardPalette ; |
582 | } | 582 | } |
583 | item->setPalette( pal ); | 583 | item->setPalette( pal ); |
584 | mItemList->insertItem( item ); | 584 | mItemList->insertItem( item ); |
585 | mToolTip += text+"\n"; | 585 | mToolTip += text+"\n"; |
586 | } | 586 | } |
587 | void MonthViewCell::finishUpdateCell() | 587 | void MonthViewCell::finishUpdateCell() |
588 | { | 588 | { |
589 | #ifdef DESKTOP_VERSION | 589 | #ifdef DESKTOP_VERSION |
590 | if (mToolTip != "") | 590 | if (mToolTip != "") |
591 | QToolTip::add(this,mToolTip,toolTipGroup(),""); | 591 | QToolTip::add(this,mToolTip,toolTipGroup(),""); |
592 | #endif | 592 | #endif |
593 | mItemList->sort(); | 593 | mItemList->sort(); |
594 | //setMyPalette(); | 594 | //setMyPalette(); |
595 | setMyPalette(); | 595 | setMyPalette(); |
596 | QString text; | 596 | QString text; |
597 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; | 597 | bool smallDisplay = QApplication::desktop()->width() < 320 && KOPrefs::instance()->mMonthViewSatSunTog; |
598 | if ( KOPrefs::instance()->mMonthViewWeek || KOGlobals::self()->calendarSystem()->day( mDate ) == 1 || (mDate.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { | 598 | if ( KOPrefs::instance()->mMonthViewWeek || KOGlobals::self()->calendarSystem()->day( mDate ) == 1 || (mDate.dayOfWeek() == 7 && !smallDisplay ) || KOPrefs::instance()->mMonthShowShort) { |
599 | text = KOGlobals::self()->calendarSystem()->monthName( mDate, true ) + " "; | 599 | text = KOGlobals::self()->calendarSystem()->monthName( mDate, true ) + " "; |
600 | mLabel->resize( mLabelBigSize ); | 600 | mLabel->resize( mLabelBigSize ); |
601 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); | 601 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); |
602 | } else { | 602 | } else { |
603 | mLabel->resize( mLabelSize ); | 603 | mLabel->resize( mLabelSize ); |
604 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); | 604 | text += QString::number( KOGlobals::self()->calendarSystem()->day(mDate) ); |
605 | } | 605 | } |
606 | 606 | ||
607 | mLabel->setText( text ); | 607 | mLabel->setText( text ); |
608 | resizeEvent( 0 ); | 608 | resizeEvent( 0 ); |
609 | } | 609 | } |
610 | void MonthViewCell::updateCell() | 610 | void MonthViewCell::updateCell() |
611 | { | 611 | { |
612 | qDebug("MonthViewCell::updateCell() "); | 612 | qDebug("MonthViewCell::updateCell() "); |
613 | if ( !mMonthView->isUpdatePossible() ) | 613 | if ( !mMonthView->isUpdatePossible() ) |
614 | return; | 614 | return; |
615 | startUpdateCell(); | 615 | startUpdateCell(); |
616 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 616 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
617 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); | 617 | QPtrList<Event> events = mMonthView->calendar()->events( mDate, true ); |
618 | Event *event; | 618 | Event *event; |
619 | for( event = events.first(); event; event = events.next() ) { // for event | 619 | for( event = events.first(); event; event = events.next() ) { // for event |
620 | insertEvent(event); | 620 | insertEvent(event); |
621 | } | 621 | } |
622 | // insert due todos | 622 | // insert due todos |
623 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); | 623 | QPtrList<Todo> todos = mMonthView->calendar()->todos( mDate ); |
624 | Todo *todo; | 624 | Todo *todo; |
625 | for(todo = todos.first(); todo; todo = todos.next()) { | 625 | for(todo = todos.first(); todo; todo = todos.next()) { |
626 | insertTodo( todo ); | 626 | insertTodo( todo ); |
627 | } | 627 | } |
628 | finishUpdateCell(); | 628 | finishUpdateCell(); |
629 | // if ( isVisible()) | 629 | // if ( isVisible()) |
630 | //qApp->processEvents(); | 630 | //qApp->processEvents(); |
631 | } | 631 | } |
632 | 632 | ||
633 | void MonthViewCell::updateConfig( bool bigFont ) // = false | 633 | void MonthViewCell::updateConfig( bool bigFont ) // = false |
634 | { | 634 | { |
635 | 635 | ||
636 | if ( bigFont ) { | 636 | if ( bigFont ) { |
637 | QFont fo = KOPrefs::instance()->mMonthViewFont; | 637 | QFont fo = KOPrefs::instance()->mMonthViewFont; |
638 | int ps = fo.pointSize() + 2; | 638 | int ps = fo.pointSize() + 2; |
639 | if ( ps < 18 ) | 639 | if ( ps < 18 ) |
640 | ps += 2; | 640 | ps += 2; |
641 | fo.setPointSize( ps ); | 641 | fo.setPointSize( ps ); |
642 | setFont( fo ); | 642 | setFont( fo ); |
643 | } else | 643 | } else |
644 | setFont( KOPrefs::instance()->mMonthViewFont ); | 644 | setFont( KOPrefs::instance()->mMonthViewFont ); |
645 | 645 | ||
646 | QFontMetrics fm( font() ); | 646 | QFontMetrics fm( font() ); |
647 | mLabelSize = fm.size( 0, "30" ) + QSize( 4, 2 ); | 647 | mLabelSize = fm.size( 0, "30" ) + QSize( 4, 2 ); |
648 | mLabelBigSize = fm.size( 0, "Mag 30" ) + QSize( 2, 2 ); | 648 | mLabelBigSize = fm.size( 0, "Mag 30" ) + QSize( 2, 2 ); |
649 | mHolidayPalette = mStandardPalette; | 649 | mHolidayPalette = mStandardPalette; |
650 | mPrimaryPalette = mStandardPalette; | 650 | mPrimaryPalette = mStandardPalette; |
651 | mNonPrimaryPalette = mStandardPalette; | 651 | mNonPrimaryPalette = mStandardPalette; |
652 | if ( KOPrefs::instance()->mMonthViewUsesDayColors ) { | 652 | if ( KOPrefs::instance()->mMonthViewUsesDayColors ) { |
653 | mHolidayPalette.setColor(QColorGroup::Base, KOPrefs::instance()->mMonthViewHolidayColor ); | 653 | mHolidayPalette.setColor(QColorGroup::Base, KOPrefs::instance()->mMonthViewHolidayColor ); |
654 | mHolidayPalette.setColor(QColorGroup::Background, KOPrefs::instance()->mMonthViewHolidayColor ); | 654 | mHolidayPalette.setColor(QColorGroup::Background, KOPrefs::instance()->mMonthViewHolidayColor ); |
655 | mHolidayPalette.setColor(QColorGroup::Foreground, KOPrefs::instance()->mMonthViewHolidayColor.dark()); | 655 | mHolidayPalette.setColor(QColorGroup::Foreground, KOPrefs::instance()->mMonthViewHolidayColor.dark()); |
656 | mPrimaryPalette.setColor(QColorGroup::Foreground,KOPrefs::instance()->mMonthViewOddColor.dark()); | 656 | mPrimaryPalette.setColor(QColorGroup::Foreground,KOPrefs::instance()->mMonthViewOddColor.dark()); |
657 | mPrimaryPalette.setColor(QColorGroup::Base,KOPrefs::instance()->mMonthViewOddColor); | 657 | mPrimaryPalette.setColor(QColorGroup::Base,KOPrefs::instance()->mMonthViewOddColor); |
658 | mPrimaryPalette.setColor(QColorGroup::Background,KOPrefs::instance()->mMonthViewOddColor); | 658 | mPrimaryPalette.setColor(QColorGroup::Background,KOPrefs::instance()->mMonthViewOddColor); |
659 | mNonPrimaryPalette.setColor(QColorGroup::Foreground,KOPrefs::instance()->mMonthViewEvenColor.dark()); | 659 | mNonPrimaryPalette.setColor(QColorGroup::Foreground,KOPrefs::instance()->mMonthViewEvenColor.dark()); |
660 | mNonPrimaryPalette.setColor(QColorGroup::Base,KOPrefs::instance()->mMonthViewEvenColor); | 660 | mNonPrimaryPalette.setColor(QColorGroup::Base,KOPrefs::instance()->mMonthViewEvenColor); |
661 | mNonPrimaryPalette.setColor(QColorGroup::Background,KOPrefs::instance()->mMonthViewEvenColor); | 661 | mNonPrimaryPalette.setColor(QColorGroup::Background,KOPrefs::instance()->mMonthViewEvenColor); |
662 | } | 662 | } |
663 | //updateCell(); | 663 | //updateCell(); |
664 | } | 664 | } |
665 | 665 | ||
666 | void MonthViewCell::enableScrollBars( bool enabled ) | 666 | void MonthViewCell::enableScrollBars( bool enabled ) |
667 | { | 667 | { |
668 | if ( enabled ) { | 668 | if ( enabled ) { |
669 | mItemList->setVScrollBarMode(QScrollView::Auto); | 669 | mItemList->setVScrollBarMode(QScrollView::Auto); |
670 | mItemList->setHScrollBarMode(QScrollView::Auto); | 670 | mItemList->setHScrollBarMode(QScrollView::Auto); |
671 | } else { | 671 | } else { |
672 | mItemList->setVScrollBarMode(QScrollView::AlwaysOff); | 672 | mItemList->setVScrollBarMode(QScrollView::AlwaysOff); |
673 | mItemList->setHScrollBarMode(QScrollView::AlwaysOff); | 673 | mItemList->setHScrollBarMode(QScrollView::AlwaysOff); |
674 | } | 674 | } |
675 | } | 675 | } |
676 | 676 | ||
677 | Incidence *MonthViewCell::selectedIncidence() | 677 | Incidence *MonthViewCell::selectedIncidence() |
678 | { | 678 | { |
679 | int index = mItemList->currentItem(); | 679 | int index = mItemList->currentItem(); |
680 | if ( index < 0 ) return 0; | 680 | if ( index < 0 ) return 0; |
681 | 681 | ||
682 | MonthViewItem *item = | 682 | MonthViewItem *item = |
683 | static_cast<MonthViewItem *>( mItemList->item( index ) ); | 683 | static_cast<MonthViewItem *>( mItemList->item( index ) ); |
684 | 684 | ||
685 | if ( !item ) return 0; | 685 | if ( !item ) return 0; |
686 | 686 | ||
687 | return item->incidence(); | 687 | return item->incidence(); |
688 | } | 688 | } |
689 | 689 | ||
690 | QDate MonthViewCell::selectedIncidenceDate() | 690 | QDate MonthViewCell::selectedIncidenceDate() |
691 | { | 691 | { |
692 | QDate qd; | 692 | QDate qd; |
693 | int index = mItemList->currentItem(); | 693 | int index = mItemList->currentItem(); |
694 | if ( index < 0 ) return qd; | 694 | if ( index < 0 ) return qd; |
695 | 695 | ||
696 | MonthViewItem *item = | 696 | MonthViewItem *item = |
697 | static_cast<MonthViewItem *>( mItemList->item( index ) ); | 697 | static_cast<MonthViewItem *>( mItemList->item( index ) ); |
698 | 698 | ||
699 | if ( !item ) return qd; | 699 | if ( !item ) return qd; |
700 | 700 | ||
701 | return item->incidenceDate(); | 701 | return item->incidenceDate(); |
702 | } | 702 | } |
703 | 703 | ||
704 | void MonthViewCell::deselect() | 704 | void MonthViewCell::deselect() |
705 | { | 705 | { |
706 | mItemList->clearSelection(); | 706 | mItemList->clearSelection(); |
707 | enableScrollBars( false ); | 707 | enableScrollBars( false ); |
708 | // updateCell(); | 708 | // updateCell(); |
709 | } | 709 | } |
710 | void MonthViewCell::select() | 710 | void MonthViewCell::select() |
711 | { | 711 | { |
712 | ;// updateCell(); | 712 | ;// updateCell(); |
713 | } | 713 | } |
714 | 714 | ||
715 | void MonthViewCell::resizeEvent ( QResizeEvent * ) | 715 | void MonthViewCell::resizeEvent ( QResizeEvent * ) |
716 | { | 716 | { |
717 | if ( !mMonthView->isUpdatePossible() ) | 717 | if ( !mMonthView->isUpdatePossible() ) |
718 | return; | 718 | return; |
719 | 719 | ||
720 | int size = height() - mLabel->height() - 2; | 720 | int size = height() - mLabel->height() - 2; |
721 | if ( size > 0 ) | 721 | if ( size > 0 ) |
722 | mItemList->verticalScrollBar()->setMaximumHeight( size ); | 722 | mItemList->verticalScrollBar()->setMaximumHeight( size ); |
723 | size = width() - mLabel->width() -2; | 723 | size = width() - mLabel->width() -2; |
724 | if ( size > 0 ) | 724 | if ( size > 0 ) |
725 | mItemList->horizontalScrollBar()->setMaximumWidth( size ); | 725 | mItemList->horizontalScrollBar()->setMaximumWidth( size ); |
726 | mLabel->move( width()-mItemList->lineWidth() - mLabel->width(), height()-mItemList->lineWidth() - mLabel->height() ); | 726 | mLabel->move( width()-mItemList->lineWidth() - mLabel->width(), height()-mItemList->lineWidth() - mLabel->height() ); |
727 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); | 727 | //mLabel->setMaximumWidth( width() - mItemList->lineWidth()*2); |
728 | } | 728 | } |
729 | 729 | ||
730 | void MonthViewCell::defaultAction( QListBoxItem *item ) | 730 | void MonthViewCell::defaultAction( QListBoxItem *item ) |
731 | { | 731 | { |
732 | if ( !item ) return; | 732 | if ( !item ) return; |
733 | 733 | ||
734 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); | 734 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); |
735 | Incidence *incidence = eventItem->incidence(); | 735 | Incidence *incidence = eventItem->incidence(); |
736 | if ( incidence ) mMonthView->defaultAction( incidence ); | 736 | if ( incidence ) mMonthView->defaultAction( incidence ); |
737 | } | 737 | } |
738 | void MonthViewCell::showDay() | 738 | void MonthViewCell::showDay() |
739 | { | 739 | { |
740 | emit showDaySignal( date() ); | 740 | emit showDaySignal( date() ); |
741 | } | 741 | } |
742 | void MonthViewCell::newEvent() | 742 | void MonthViewCell::newEvent() |
743 | { | 743 | { |
744 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 744 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
745 | emit newEventSignal( dt ); | 745 | emit newEventSignal( dt ); |
746 | } | 746 | } |
747 | void MonthViewCell::cellClicked( QListBoxItem *item ) | 747 | void MonthViewCell::cellClicked( QListBoxItem *item ) |
748 | { | 748 | { |
749 | static QListBoxItem * lastClicked = 0; | 749 | static QListBoxItem * lastClicked = 0; |
750 | if ( item == 0 ) { | 750 | if ( item == 0 ) { |
751 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); | 751 | QDateTime dt( date(), QTime( KOPrefs::instance()->mStartTime, 0 ) ); |
752 | emit newEventSignal( dt ); | 752 | emit newEventSignal( dt ); |
753 | return; | 753 | return; |
754 | } | 754 | } |
755 | /* | 755 | /* |
756 | if ( lastClicked ) | 756 | if ( lastClicked ) |
757 | if ( ! item ) { | 757 | if ( ! item ) { |
758 | if ( lastClicked->listBox() != item->listBox() ) | 758 | if ( lastClicked->listBox() != item->listBox() ) |
759 | lastClicked->listBox()->clearSelection(); | 759 | lastClicked->listBox()->clearSelection(); |
760 | } | 760 | } |
761 | */ | 761 | */ |
762 | 762 | ||
763 | mMonthView->setSelectedCell( this ); | 763 | mMonthView->setSelectedCell( this ); |
764 | if( KOPrefs::instance()->mEnableMonthScroll || KOPrefs::instance()->mMonthViewWeek ) enableScrollBars( true ); | 764 | if( KOPrefs::instance()->mEnableMonthScroll || KOPrefs::instance()->mMonthViewWeek ) enableScrollBars( true ); |
765 | select(); | 765 | select(); |
766 | } | 766 | } |
767 | 767 | ||
768 | void MonthViewCell::contextMenu( QListBoxItem *item ) | 768 | void MonthViewCell::contextMenu( QListBoxItem *item ) |
769 | { | 769 | { |
770 | if ( !item ) return; | 770 | if ( !item ) return; |
771 | 771 | ||
772 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); | 772 | MonthViewItem *eventItem = static_cast<MonthViewItem *>( item ); |
773 | Incidence *incidence = eventItem->incidence(); | 773 | Incidence *incidence = eventItem->incidence(); |
774 | if ( incidence ) mMonthView->showContextMenu( incidence ); | 774 | if ( incidence ) mMonthView->showContextMenu( incidence ); |
775 | } | 775 | } |
776 | 776 | ||
777 | void MonthViewCell::selection( QListBoxItem *item ) | 777 | void MonthViewCell::selection( QListBoxItem *item ) |
778 | { | 778 | { |
779 | if ( !item ) return; | 779 | if ( !item ) return; |
780 | 780 | ||
781 | mMonthView->setSelectedCell( this ); | 781 | mMonthView->setSelectedCell( this ); |
782 | } | 782 | } |
783 | 783 | ||
784 | 784 | ||
785 | // ******************************************************************************* | 785 | // ******************************************************************************* |
786 | // ******************************************************************************* | 786 | // ******************************************************************************* |
787 | // ******************************************************************************* | 787 | // ******************************************************************************* |
788 | 788 | ||
789 | 789 | ||
790 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) | 790 | KOMonthView::KOMonthView(Calendar *calendar, QWidget *parent, const char *name) |
791 | : KOEventView( calendar, parent, name ), | 791 | : KOEventView( calendar, parent, name ), |
792 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), | 792 | mDaysPerWeek( 7 ), mNumWeeks( 6 ), mNumCells( mDaysPerWeek * mNumWeeks ), |
793 | mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) | 793 | mWidthLongDayLabel( 0 ), mSelectedCell( 0 ) |
794 | { | 794 | { |
795 | mShortDayLabelsM = false; | 795 | mShortDayLabelsM = false; |
796 | mShortDayLabelsW = false; | 796 | mShortDayLabelsW = false; |
797 | skipResize = false; | 797 | skipResize = false; |
798 | clPending = true; | 798 | clPending = true; |
799 | mNavigatorBar = new NavigatorBar( QDate::currentDate(), this, "useBigPixmaps" ); | 799 | mNavigatorBar = new NavigatorBar( QDate::currentDate(), this, "useBigPixmaps" ); |
800 | mWidStack = new QWidgetStack( this ); | 800 | mWidStack = new QWidgetStack( this ); |
801 | QVBoxLayout* hb = new QVBoxLayout( this ); | 801 | QVBoxLayout* hb = new QVBoxLayout( this ); |
802 | mMonthView = new QWidget( mWidStack ); | 802 | mMonthView = new QWidget( mWidStack ); |
803 | mWeekView = new QWidget( mWidStack ); | 803 | mWeekView = new QWidget( mWidStack ); |
804 | #if QT_VERSION >= 0x030000 | 804 | #if QT_VERSION >= 0x030000 |
805 | mWidStack->addWidget(mMonthView ); | 805 | mWidStack->addWidget(mMonthView ); |
806 | mWidStack->addWidget(mWeekView ); | 806 | mWidStack->addWidget(mWeekView ); |
807 | #else | 807 | #else |
808 | mWidStack->addWidget( mMonthView, 1 ); | 808 | mWidStack->addWidget( mMonthView, 1 ); |
809 | mWidStack->addWidget( mWeekView , 1 ); | 809 | mWidStack->addWidget( mWeekView , 1 ); |
810 | #endif | 810 | #endif |
811 | hb->addWidget( mNavigatorBar ); | 811 | hb->addWidget( mNavigatorBar ); |
812 | hb->addWidget( mWidStack ); | 812 | hb->addWidget( mWidStack ); |
813 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); | 813 | mWeekStartsMonday = KGlobal::locale()->weekStartsMonday(); |
814 | mShowWeekView = KOPrefs::instance()->mMonthViewWeek; | 814 | mShowWeekView = KOPrefs::instance()->mMonthViewWeek; |
815 | if ( mShowWeekView ) | 815 | if ( mShowWeekView ) |
816 | mWeekStartsMonday = true; | 816 | mWeekStartsMonday = true; |
817 | updatePossible = false; | 817 | updatePossible = false; |
818 | //updatePossible = true; | 818 | //updatePossible = true; |
819 | mCells.setAutoDelete( true ); | 819 | mCells.setAutoDelete( true ); |
820 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; | 820 | mShowSatSunComp = KOPrefs::instance()->mMonthViewSatSunTog ; |
821 | mDayLabels.resize( mDaysPerWeek ); | 821 | mDayLabels.resize( mDaysPerWeek ); |
822 | mDayLabelsW.resize( mDaysPerWeek ); | 822 | mDayLabelsW.resize( mDaysPerWeek ); |
823 | QFont bfont = font(); | 823 | QFont bfont = font(); |
824 | if ( QApplication::desktop()->width() < 650 ) { | 824 | if ( QApplication::desktop()->width() < 650 ) { |
825 | bfont.setPointSize( bfont.pointSize() - 2 ); | 825 | bfont.setPointSize( bfont.pointSize() - 2 ); |
826 | } | 826 | } |
827 | bfont.setBold( true ); | 827 | bfont.setBold( true ); |
828 | int i; | 828 | int i; |
829 | 829 | ||
830 | for( i = 0; i < mDaysPerWeek; i++ ) { | 830 | for( i = 0; i < mDaysPerWeek; i++ ) { |
831 | QLabel *label = new QLabel( mMonthView ); | 831 | QLabel *label = new QLabel( mMonthView ); |
832 | label->setFont(bfont); | 832 | label->setFont(bfont); |
833 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 833 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
834 | label->setLineWidth(1); | 834 | label->setLineWidth(1); |
835 | label->setAlignment(AlignCenter); | 835 | label->setAlignment(AlignCenter); |
836 | mDayLabels.insert( i, label ); | 836 | mDayLabels.insert( i, label ); |
837 | label = new QLabel( mWeekView ); | 837 | label = new QLabel( mWeekView ); |
838 | label->setFont(bfont); | 838 | label->setFont(bfont); |
839 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 839 | label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
840 | label->setLineWidth(1); | 840 | label->setLineWidth(1); |
841 | label->setAlignment(AlignCenter); | 841 | label->setAlignment(AlignCenter); |
842 | mDayLabelsW.insert( i, label ); | 842 | mDayLabelsW.insert( i, label ); |
843 | } | 843 | } |
844 | 844 | ||
845 | bfont.setBold( false ); | 845 | bfont.setBold( false ); |
846 | mWeekLabels.resize( mNumWeeks+1 ); | 846 | mWeekLabels.resize( mNumWeeks+1 ); |
847 | mWeekLabelsW.resize( 2 ); | 847 | mWeekLabelsW.resize( 2 ); |
848 | for( i = 0; i < mNumWeeks+1; i++ ) { | 848 | for( i = 0; i < mNumWeeks+1; i++ ) { |
849 | KOWeekButton *label = new KOWeekButton( mMonthView ); | 849 | KOWeekButton *label = new KOWeekButton( mMonthView ); |
850 | label->setFocusPolicy(NoFocus); | 850 | label->setFocusPolicy(NoFocus); |
851 | label->setFont(bfont); | 851 | label->setFont(bfont); |
852 | connect( label, SIGNAL( selectWeekNum ( int )),this, SLOT( selectInternalWeekNum ( int )) ); | 852 | connect( label, SIGNAL( selectWeekNum ( int )),this, SLOT( selectInternalWeekNum ( int )) ); |
853 | label->setFlat(true); | 853 | label->setFlat(true); |
854 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed")); | 854 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed")); |
855 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 855 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
856 | //label->setLineWidth(1); | 856 | //label->setLineWidth(1); |
857 | //label->setAlignment(AlignCenter); | 857 | //label->setAlignment(AlignCenter); |
858 | mWeekLabels.insert( i, label ); | 858 | mWeekLabels.insert( i, label ); |
859 | } | 859 | } |
860 | mWeekLabels[mNumWeeks]->setText( i18n("W")); | 860 | mWeekLabels[mNumWeeks]->setText( i18n("W")); |
861 | QWhatsThis::add(mWeekLabels[mNumWeeks],i18n("Click on this to\nselect week number")); | 861 | QWhatsThis::add(mWeekLabels[mNumWeeks],i18n("Click on this to\nselect week number")); |
862 | 862 | ||
863 | for( i = 0; i < 1+1; i++ ) { | 863 | for( i = 0; i < 1+1; i++ ) { |
864 | KOWeekButton *label = new KOWeekButton( mWeekView ); | 864 | KOWeekButton *label = new KOWeekButton( mWeekView ); |
865 | label->setFocusPolicy(NoFocus); | 865 | label->setFocusPolicy(NoFocus); |
866 | label->setFont(bfont); | 866 | label->setFont(bfont); |
867 | connect( label, SIGNAL( selectWeekNum ( int )),this, SLOT( selectInternalWeekNum ( int )) ); | 867 | connect( label, SIGNAL( selectWeekNum ( int )),this, SLOT( selectInternalWeekNum ( int )) ); |
868 | label->setFlat(true); | 868 | label->setFlat(true); |
869 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed")); | 869 | QWhatsThis::add(label,i18n("Click on the week number to\nshow week zoomed")); |
870 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); | 870 | //label->setFrameStyle(QFrame::Panel|QFrame::Raised); |
871 | //label->setLineWidth(1); | 871 | //label->setLineWidth(1); |
872 | //label->setAlignment(AlignCenter); | 872 | //label->setAlignment(AlignCenter); |
873 | mWeekLabelsW.insert( i, label ); | 873 | mWeekLabelsW.insert( i, label ); |
874 | } | 874 | } |
875 | mWeekLabelsW[1]->setText( i18n("W")); | 875 | mWeekLabelsW[1]->setText( i18n("W")); |
876 | 876 | ||
877 | 877 | ||
878 | int row, col; | 878 | int row, col; |
879 | mCells.resize( mNumCells ); | 879 | mCells.resize( mNumCells ); |
880 | for( row = 0; row < mNumWeeks; ++row ) { | 880 | for( row = 0; row < mNumWeeks; ++row ) { |
881 | for( col = 0; col < mDaysPerWeek; ++col ) { | 881 | for( col = 0; col < mDaysPerWeek; ++col ) { |
882 | MonthViewCell *cell = new MonthViewCell( this, mMonthView ); | 882 | MonthViewCell *cell = new MonthViewCell( this, mMonthView ); |
883 | mCells.insert( row * mDaysPerWeek + col, cell ); | 883 | mCells.insert( row * mDaysPerWeek + col, cell ); |
884 | 884 | ||
885 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), | 885 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), |
886 | SLOT( defaultAction( Incidence * ) ) ); | 886 | SLOT( defaultAction( Incidence * ) ) ); |
887 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), | 887 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), |
888 | SIGNAL( newEventSignal( QDateTime ) ) ); | 888 | SIGNAL( newEventSignal( QDateTime ) ) ); |
889 | connect( cell, SIGNAL( showDaySignal( QDate ) ), | 889 | connect( cell, SIGNAL( showDaySignal( QDate ) ), |
890 | SIGNAL( showDaySignal( QDate ) ) ); | 890 | SIGNAL( showDaySignal( QDate ) ) ); |
891 | } | 891 | } |
892 | } | 892 | } |
893 | mCellsW.resize( mDaysPerWeek ); | 893 | mCellsW.resize( mDaysPerWeek ); |
894 | for( col = 0; col < mDaysPerWeek; ++col ) { | 894 | for( col = 0; col < mDaysPerWeek; ++col ) { |
895 | MonthViewCell *cell = new MonthViewCell( this, mWeekView ); | 895 | MonthViewCell *cell = new MonthViewCell( this, mWeekView ); |
896 | mCellsW.insert( col, cell ); | 896 | mCellsW.insert( col, cell ); |
897 | 897 | ||
898 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), | 898 | connect( cell, SIGNAL( defaultAction( Incidence * ) ), |
899 | SLOT( defaultAction( Incidence * ) ) ); | 899 | SLOT( defaultAction( Incidence * ) ) ); |
900 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), | 900 | connect( cell, SIGNAL( newEventSignal( QDateTime ) ), |
901 | SIGNAL( newEventSignal( QDateTime ) ) ); | 901 | SIGNAL( newEventSignal( QDateTime ) ) ); |
902 | connect( cell, SIGNAL( showDaySignal( QDate ) ), | 902 | connect( cell, SIGNAL( showDaySignal( QDate ) ), |
903 | SIGNAL( showDaySignal( QDate ) ) ); | 903 | SIGNAL( showDaySignal( QDate ) ) ); |
904 | cell->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont ); | 904 | cell->updateConfig(KOPrefs::instance()->mMonthViewUsesBigFont ); |
905 | } | 905 | } |
906 | 906 | ||
907 | //connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), SLOT( switchView() ) ); | 907 | //connect( mWeekLabels[mNumWeeks], SIGNAL( clicked() ), SLOT( switchView() ) ); |
908 | mContextMenu = eventPopup(); | 908 | mContextMenu = eventPopup(); |
909 | // updateConfig(); //useless here... | 909 | // updateConfig(); //useless here... |
910 | // ... but we need mWidthLongDayLabel computed | 910 | // ... but we need mWidthLongDayLabel computed |
911 | QFontMetrics fontmetric(mDayLabels[0]->font()); | 911 | QFontMetrics fontmetric(mDayLabels[0]->font()); |
912 | mWidthLongDayLabel = 0; | 912 | mWidthLongDayLabel = 0; |
913 | for (int i = 0; i < 7; i++) { | 913 | for (int i = 0; i < 7; i++) { |
914 | int width = fontmetric.width(KOGlobals::self()->calendarSystem()->weekDayName(i+1)); | 914 | int width = fontmetric.width(KOGlobals::self()->calendarSystem()->weekDayName(i+1)); |
915 | if ( width > mWidthLongDayLabel ) mWidthLongDayLabel = width; | 915 | if ( width > mWidthLongDayLabel ) mWidthLongDayLabel = width; |
916 | } | 916 | } |
917 | 917 | ||
918 | //mWeekLabels[mNumWeeks]->setText( i18n("W")); | 918 | //mWeekLabels[mNumWeeks]->setText( i18n("W")); |
919 | 919 | ||
920 | #if 0 | 920 | #if 0 |
921 | if ( mShowWeekView ) | 921 | if ( mShowWeekView ) |
922 | mWidStack->raiseWidget( mWeekView ); | 922 | mWidStack->raiseWidget( mWeekView ); |
923 | else | 923 | else |
924 | mWidStack->raiseWidget( mMonthView ); | 924 | mWidStack->raiseWidget( mMonthView ); |
925 | #endif | 925 | #endif |
926 | 926 | ||
927 | emit incidenceSelected( 0 ); | 927 | emit incidenceSelected( 0 ); |
928 | #ifndef DESKTOP_VERSION | 928 | #ifndef DESKTOP_VERSION |
929 | resize( QApplication::desktop()->size() ); | 929 | resize( QApplication::desktop()->size() ); |
930 | #else | 930 | #else |
931 | resize(640, 480 ); | 931 | resize(640, 480 ); |
932 | updatePossible = true; | 932 | updatePossible = true; |
933 | #endif | 933 | #endif |
934 | computeLayout(); | 934 | computeLayout(); |
935 | 935 | ||
936 | if ( mShowWeekView ) | 936 | if ( mShowWeekView ) |
937 | mWidStack->raiseWidget( mWeekView ); | 937 | mWidStack->raiseWidget( mWeekView ); |
938 | else | 938 | else |
939 | mWidStack->raiseWidget( mMonthView ); | 939 | mWidStack->raiseWidget( mMonthView ); |
940 | } | 940 | } |
diff --git a/korganizer/kotodoviewitem.cpp b/korganizer/kotodoviewitem.cpp index 44db209..0e847c2 100644 --- a/korganizer/kotodoviewitem.cpp +++ b/korganizer/kotodoviewitem.cpp | |||
@@ -1,461 +1,461 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,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 | 19 | ||
20 | #include <klocale.h> | 20 | #include <klocale.h> |
21 | #include <kdebug.h> | 21 | #include <kdebug.h> |
22 | #include <qapp.h> | 22 | #include <qapp.h> |
23 | 23 | ||
24 | #include <kiconloader.h> | 24 | #include <kiconloader.h> |
25 | #include "kotodoviewitem.h" | 25 | #include "kotodoviewitem.h" |
26 | #include "kotodoview.h" | 26 | #include "kotodoview.h" |
27 | #include "koprefs.h" | 27 | #include "koprefs.h" |
28 | 28 | ||
29 | KOTodoViewItem::KOTodoViewItem( QListView *parent, Todo *todo, KOTodoView *kotodo) | 29 | KOTodoViewItem::KOTodoViewItem( QListView *parent, Todo *todo, KOTodoView *kotodo) |
30 | : QCheckListItem( parent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo ) | 30 | : QCheckListItem( parent , "", CheckBox ), mTodo( todo ), mTodoView( kotodo ) |
31 | { | 31 | { |
32 | construct(); | 32 | construct(); |
33 | } | 33 | } |
34 | 34 | ||
35 | KOTodoViewItem::KOTodoViewItem( KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo ) | 35 | KOTodoViewItem::KOTodoViewItem( KOTodoViewItem *parent, Todo *todo, KOTodoView *kotodo ) |
36 | : QCheckListItem( parent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo ) | 36 | : QCheckListItem( parent, "", CheckBox ), mTodo( todo ), mTodoView( kotodo ) |
37 | { | 37 | { |
38 | construct(); | 38 | construct(); |
39 | } | 39 | } |
40 | 40 | ||
41 | QString KOTodoViewItem::key(int column,bool) const | 41 | QString KOTodoViewItem::key(int column,bool) const |
42 | { | 42 | { |
43 | QMap<int,QString>::ConstIterator it = mKeyMap.find(column); | 43 | QMap<int,QString>::ConstIterator it = mKeyMap.find(column); |
44 | if (it == mKeyMap.end()) { | 44 | if (it == mKeyMap.end()) { |
45 | return text(column).lower(); | 45 | return text(column).lower(); |
46 | } else { | 46 | } else { |
47 | return *it; | 47 | return *it; |
48 | } | 48 | } |
49 | } | 49 | } |
50 | 50 | ||
51 | void KOTodoViewItem:: setup() | 51 | void KOTodoViewItem:: setup() |
52 | { | 52 | { |
53 | 53 | ||
54 | int h = 20; | 54 | int h = 20; |
55 | if ( listView () ) { | 55 | if ( listView () ) { |
56 | QFontMetrics fm ( listView ()->font () ); | 56 | QFontMetrics fm ( listView ()->font () ); |
57 | h = fm.height(); | 57 | h = fm.height(); |
58 | } | 58 | } |
59 | setHeight( h ); | 59 | setHeight( h ); |
60 | 60 | ||
61 | } | 61 | } |
62 | void KOTodoViewItem::setSortKey(int column,const QString &key) | 62 | void KOTodoViewItem::setSortKey(int column,const QString &key) |
63 | { | 63 | { |
64 | mKeyMap.insert(column,key); | 64 | mKeyMap.insert(column,key); |
65 | } | 65 | } |
66 | 66 | ||
67 | #if QT_VERSION >= 0x030000 | 67 | #if QT_VERSION >= 0x030000 |
68 | void KOTodoViewItem::paintBranches(QPainter *p,const QColorGroup & cg,int w, | 68 | void KOTodoViewItem::paintBranches(QPainter *p,const QColorGroup & cg,int w, |
69 | int y,int h) | 69 | int y,int h) |
70 | { | 70 | { |
71 | QListViewItem::paintBranches(p,cg,w,y,h); | 71 | QListViewItem::paintBranches(p,cg,w,y,h); |
72 | } | 72 | } |
73 | #else | 73 | #else |
74 | #endif | 74 | #endif |
75 | 75 | ||
76 | void KOTodoViewItem::construct() | 76 | void KOTodoViewItem::construct() |
77 | { | 77 | { |
78 | // qDebug("KOTodoViewItem::construct() "); | 78 | // qDebug("KOTodoViewItem::construct() "); |
79 | m_init = true; | 79 | m_init = true; |
80 | QString keyd = "=="; | 80 | QString keyd = "=="; |
81 | QString keyt = "=="; | 81 | QString keyt = "=="; |
82 | QString skeyd = "=="; | 82 | QString skeyd = "=="; |
83 | QString skeyt = "=="; | 83 | QString skeyt = "=="; |
84 | 84 | ||
85 | setOn(mTodo->isCompleted()); | 85 | setOn(mTodo->isCompleted()); |
86 | setText(0,mTodo->summary()); | 86 | setText(0,mTodo->summary()); |
87 | setText(1,QString::number(mTodo->priority())); | 87 | setText(1,QString::number(mTodo->priority())); |
88 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); | 88 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); |
89 | if (mTodo->percentComplete()<100) { | 89 | if (mTodo->percentComplete()<100) { |
90 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 90 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
91 | else setSortKey(2,QString::number(mTodo->percentComplete())); | 91 | else setSortKey(2,QString::number(mTodo->percentComplete())); |
92 | } | 92 | } |
93 | else { | 93 | else { |
94 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 94 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
95 | else setSortKey(2,QString::number(99)); | 95 | else setSortKey(2,QString::number(99)); |
96 | } | 96 | } |
97 | if (mTodo->hasDueDate()) { | 97 | if (mTodo->hasDueDate()) { |
98 | setText(3, mTodo->dtDueDateStr()); | 98 | setText(3, mTodo->dtDueDateStr()); |
99 | QDate d = mTodo->dtDue().date(); | 99 | QDate d = mTodo->dtDue().date(); |
100 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 100 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
101 | // setSortKey(3,keyd); | 101 | // setSortKey(3,keyd); |
102 | if (mTodo->doesFloat()) { | 102 | if (mTodo->doesFloat()) { |
103 | setText(4,""); | 103 | setText(4,""); |
104 | } | 104 | } |
105 | else { | 105 | else { |
106 | setText(4,mTodo->dtDueTimeStr()); | 106 | setText(4,mTodo->dtDueTimeStr()); |
107 | QTime t = mTodo->dtDue().time(); | 107 | QTime t = mTodo->dtDue().time(); |
108 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); | 108 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); |
109 | //setSortKey(4,keyt); | 109 | //setSortKey(4,keyt); |
110 | } | 110 | } |
111 | } else { | 111 | } else { |
112 | setText(3,""); | 112 | setText(3,""); |
113 | setText(4,""); | 113 | setText(4,""); |
114 | } | 114 | } |
115 | setSortKey(3,keyd); | 115 | setSortKey(3,keyd); |
116 | setSortKey(4,keyt); | 116 | setSortKey(4,keyt); |
117 | 117 | ||
118 | if (mTodo->isCompleted()) setSortKey(1,"6" + QString::number(mTodo->priority())+keyd+keyt); | 118 | if (mTodo->isCompleted()) setSortKey(1,"6" + QString::number(mTodo->priority())+keyd+keyt); |
119 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); | 119 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); |
120 | 120 | ||
121 | 121 | ||
122 | 122 | ||
123 | if (mTodo->hasStartDate()) { | 123 | if (mTodo->hasStartDate()) { |
124 | setText(5, mTodo->dtStartDateStr()); | 124 | setText(5, mTodo->dtStartDateStr()); |
125 | QDate d = mTodo->dtStart().date(); | 125 | QDate d = mTodo->dtStart().date(); |
126 | skeyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 126 | skeyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
127 | 127 | ||
128 | if (mTodo->doesFloat()) { | 128 | if (mTodo->doesFloat()) { |
129 | setText(6,""); | 129 | setText(6,""); |
130 | } | 130 | } |
131 | else { | 131 | else { |
132 | setText(6,mTodo->dtStartTimeStr()); | 132 | setText(6,mTodo->dtStartTimeStr()); |
133 | QTime t = mTodo->dtStart().time(); | 133 | QTime t = mTodo->dtStart().time(); |
134 | skeyt.sprintf("%02d%02d",t.hour(),t.minute()); | 134 | skeyt.sprintf("%02d%02d",t.hour(),t.minute()); |
135 | 135 | ||
136 | } | 136 | } |
137 | } else { | 137 | } else { |
138 | setText(5,""); | 138 | setText(5,""); |
139 | setText(6,""); | 139 | setText(6,""); |
140 | } | 140 | } |
141 | setSortKey(5,skeyd); | 141 | setSortKey(5,skeyd); |
142 | setSortKey(6,skeyt); | 142 | setSortKey(6,skeyt); |
143 | 143 | ||
144 | setText(7,mTodo->cancelled() ? i18n("Yes") : i18n("No")); | 144 | setText(7,mTodo->cancelled() ? i18n("Yes") : i18n("No")); |
145 | setText(8,mTodo->categoriesStr()); | 145 | setText(8,mTodo->categoriesStr()); |
146 | 146 | ||
147 | #if 0 | 147 | #if 0 |
148 | // Find sort id in description. It's the text behind the last '#' character | 148 | // Find sort id in description. It's the text behind the last '#' character |
149 | // found in the description. White spaces are removed from beginning and end | 149 | // found in the description. White spaces are removed from beginning and end |
150 | // of sort id. | 150 | // of sort id. |
151 | int pos = mTodo->description().findRev('#'); | 151 | int pos = mTodo->description().findRev('#'); |
152 | if (pos < 0) { | 152 | if (pos < 0) { |
153 | setText(6,""); | 153 | setText(6,""); |
154 | } else { | 154 | } else { |
155 | QString str = mTodo->description().mid(pos+1); | 155 | QString str = mTodo->description().mid(pos+1); |
156 | str.stripWhiteSpace(); | 156 | str.stripWhiteSpace(); |
157 | setText(6,str); | 157 | setText(6,str); |
158 | } | 158 | } |
159 | #endif | 159 | #endif |
160 | 160 | ||
161 | m_known = false; | 161 | m_known = false; |
162 | m_init = false; | 162 | m_init = false; |
163 | 163 | ||
164 | setMyPixmap(); | 164 | setMyPixmap(); |
165 | 165 | ||
166 | } | 166 | } |
167 | void KOTodoViewItem::setMyPixmap() | 167 | void KOTodoViewItem::setMyPixmap() |
168 | { | 168 | { |
169 | int size = 5; | 169 | int size = 5; |
170 | QPixmap pixi = QPixmap( 1, 1 ); | 170 | QPixmap pixi = QPixmap( 1, 1 ); |
171 | // if ( !mTodo->isCompleted() && mTodo->hasDueDate() && mTodo->dtDue() < QDateTime::currentDateTime() ) { | 171 | // if ( !mTodo->isCompleted() && mTodo->hasDueDate() && mTodo->dtDue() < QDateTime::currentDateTime() ) { |
172 | // pixi = SmallIcon("redcross16"); | 172 | // pixi = SmallIcon("redcross16"); |
173 | // } else { | 173 | // } else { |
174 | QPainter p; | 174 | QPainter p; |
175 | 175 | ||
176 | int pixSize = 0; | 176 | int pixSize = 0; |
177 | QPixmap pPix = QPixmap( size, size ); | 177 | QPixmap pPix = QPixmap( size, size ); |
178 | if ( mTodo->description().length() > 0 ) { | 178 | if ( mTodo->description().length() > 0 ) { |
179 | pixi.resize(size, pixSize+size); | 179 | pixi.resize(size, pixSize+size); |
180 | pPix.fill( Qt::darkGreen ); | 180 | pPix.fill( Qt::darkGreen ); |
181 | p.begin( &pixi ); | 181 | p.begin( &pixi ); |
182 | p. drawPixmap ( 0, pixSize, pPix); | 182 | p. drawPixmap ( 0, pixSize, pPix); |
183 | p.end(); | 183 | p.end(); |
184 | pixSize += size; | 184 | pixSize += size; |
185 | } | 185 | } |
186 | if ( mTodo->isAlarmEnabled() ) { | 186 | if ( mTodo->isAlarmEnabled() ) { |
187 | pixi.resize(size, pixSize+size); | 187 | pixi.resize(size, pixSize+size); |
188 | pPix.fill( Qt::red ); | 188 | pPix.fill( Qt::red ); |
189 | p.begin( &pixi ); | 189 | p.begin( &pixi ); |
190 | p. drawPixmap ( 0, pixSize, pPix); | 190 | p. drawPixmap ( 0, pixSize, pPix); |
191 | p.end(); | 191 | p.end(); |
192 | pixSize += size; | 192 | pixSize += size; |
193 | } | 193 | } |
194 | // } | 194 | // } |
195 | if ( pixi.width() > 1 ) { | 195 | if ( pixi.width() > 1 ) { |
196 | setPixmap ( 0,pixi ) ; | 196 | setPixmap ( 0,pixi ) ; |
197 | } else { | 197 | } else { |
198 | setPixmap ( 0,QPixmap() ) ; | 198 | setPixmap ( 0,QPixmap() ) ; |
199 | } | 199 | } |
200 | } | 200 | } |
201 | void KOTodoViewItem::stateChange(bool state) | 201 | void KOTodoViewItem::stateChange(bool state) |
202 | { | 202 | { |
203 | // qDebug("KOTodoViewItem::stateChange "); | 203 | // qDebug("KOTodoViewItem::stateChange "); |
204 | // do not change setting on startup | 204 | // do not change setting on startup |
205 | if ( m_init ) return; | 205 | if ( m_init ) return; |
206 | if (isOn()!=state) { | 206 | if (isOn()!=state) { |
207 | setOn(state); | 207 | setOn(state); |
208 | //qDebug("SETON "); | 208 | //qDebug("SETON "); |
209 | return; | 209 | return; |
210 | } | 210 | } |
211 | if ( mTodo->isCompleted() == state ) { | 211 | if ( mTodo->isCompleted() == state ) { |
212 | //qDebug("STATECHANGE:nothing to do "); | 212 | //qDebug("STATECHANGE:nothing to do "); |
213 | return; | 213 | return; |
214 | } | 214 | } |
215 | QString keyd = "=="; | 215 | QString keyd = "=="; |
216 | QString keyt = "=="; | 216 | QString keyt = "=="; |
217 | //qDebug("KOTodoViewItem::stateChange %s ", text(0).latin1()); | 217 | //qDebug("KOTodoViewItem::stateChange %s ", text(0).latin1()); |
218 | mTodo->setCompleted(state); | 218 | mTodo->setCompleted(state); |
219 | if (state) mTodo->setCompleted(QDateTime::currentDateTime()); | 219 | if (state) mTodo->setCompleted(QDateTime::currentDateTime()); |
220 | 220 | ||
221 | if (mTodo->hasDueDate()) { | 221 | if (mTodo->hasDueDate()) { |
222 | setText(3, mTodo->dtDueDateStr()); | 222 | setText(3, mTodo->dtDueDateStr()); |
223 | QDate d = mTodo->dtDue().date(); | 223 | QDate d = mTodo->dtDue().date(); |
224 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 224 | keyd.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
225 | setSortKey(3,keyd); | 225 | setSortKey(3,keyd); |
226 | if (mTodo->doesFloat()) { | 226 | if (mTodo->doesFloat()) { |
227 | setText(4,""); | 227 | setText(4,""); |
228 | } | 228 | } |
229 | else { | 229 | else { |
230 | setText(4,mTodo->dtDueTimeStr()); | 230 | setText(4,mTodo->dtDueTimeStr()); |
231 | QTime t = mTodo->dtDue().time(); | 231 | QTime t = mTodo->dtDue().time(); |
232 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); | 232 | keyt.sprintf("%02d%02d",t.hour(),t.minute()); |
233 | setSortKey(4,keyt); | 233 | setSortKey(4,keyt); |
234 | } | 234 | } |
235 | } | 235 | } |
236 | if (mTodo->isCompleted()) setSortKey(1,QString::number(9)+keyd+keyt); | 236 | if (mTodo->isCompleted()) setSortKey(1,QString::number(9)+keyd+keyt); |
237 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); | 237 | else setSortKey(1,QString::number(mTodo->priority())+keyd+keyt); |
238 | 238 | ||
239 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); | 239 | setText(2,i18n("%1 %").arg(QString::number(mTodo->percentComplete()))); |
240 | if (mTodo->percentComplete()<100) { | 240 | if (mTodo->percentComplete()<100) { |
241 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 241 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
242 | else setSortKey(2,QString::number(mTodo->percentComplete())); | 242 | else setSortKey(2,QString::number(mTodo->percentComplete())); |
243 | } | 243 | } |
244 | else { | 244 | else { |
245 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); | 245 | if (mTodo->isCompleted()) setSortKey(2,QString::number(999)); |
246 | else setSortKey(2,QString::number(99)); | 246 | else setSortKey(2,QString::number(99)); |
247 | } | 247 | } |
248 | if ( state ) { | 248 | if ( state ) { |
249 | QListViewItem * myChild = firstChild(); | 249 | QListViewItem * myChild = firstChild(); |
250 | KOTodoViewItem *item; | 250 | KOTodoViewItem *item; |
251 | while( myChild ) { | 251 | while( myChild ) { |
252 | //qDebug("stateCH "); | 252 | //qDebug("stateCH "); |
253 | item = static_cast<KOTodoViewItem*>(myChild); | 253 | item = static_cast<KOTodoViewItem*>(myChild); |
254 | item->stateChange(state); | 254 | item->stateChange(state); |
255 | myChild = myChild->nextSibling(); | 255 | myChild = myChild->nextSibling(); |
256 | } | 256 | } |
257 | } else { | 257 | } else { |
258 | QListViewItem * myChild = parent(); | 258 | QListViewItem * myChild = parent(); |
259 | if ( myChild ) | 259 | if ( myChild ) |
260 | (static_cast<KOTodoViewItem*>(myChild))->stateChange(state); | 260 | (static_cast<KOTodoViewItem*>(myChild))->stateChange(state); |
261 | } | 261 | } |
262 | mTodoView->modified(true); | 262 | mTodoView->modified(true); |
263 | setMyPixmap(); | 263 | setMyPixmap(); |
264 | mTodoView->setTodoModified( mTodo ); | 264 | mTodoView->setTodoModified( mTodo ); |
265 | } | 265 | } |
266 | 266 | ||
267 | bool KOTodoViewItem::isAlternate() | 267 | bool KOTodoViewItem::isAlternate() |
268 | { | 268 | { |
269 | 269 | ||
270 | KOTodoListView *lv = static_cast<KOTodoListView *>(listView()); | 270 | KOTodoListView *lv = static_cast<KOTodoListView *>(listView()); |
271 | if (lv && lv->alternateBackground().isValid()) | 271 | if (lv && lv->alternateBackground().isValid()) |
272 | { | 272 | { |
273 | KOTodoViewItem *above = 0; | 273 | KOTodoViewItem *above = 0; |
274 | above = dynamic_cast<KOTodoViewItem *>(itemAbove()); | 274 | above = static_cast<KOTodoViewItem *>(itemAbove()); |
275 | m_known = above ? above->m_known : true; | 275 | m_known = above ? above->m_known : true; |
276 | if (m_known) | 276 | if (m_known) |
277 | { | 277 | { |
278 | m_odd = above ? !above->m_odd : false; | 278 | m_odd = above ? !above->m_odd : false; |
279 | } | 279 | } |
280 | else | 280 | else |
281 | { | 281 | { |
282 | KOTodoViewItem *item; | 282 | KOTodoViewItem *item; |
283 | bool previous = true; | 283 | bool previous = true; |
284 | if (QListViewItem::parent()) | 284 | if (QListViewItem::parent()) |
285 | { | 285 | { |
286 | item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent()); | 286 | item = static_cast<KOTodoViewItem *>(QListViewItem::parent()); |
287 | if (item) | 287 | if (item) |
288 | previous = item->m_odd; | 288 | previous = item->m_odd; |
289 | item = dynamic_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild()); | 289 | item = static_cast<KOTodoViewItem *>(QListViewItem::parent()->firstChild()); |
290 | } | 290 | } |
291 | else | 291 | else |
292 | { | 292 | { |
293 | item = dynamic_cast<KOTodoViewItem *>(lv->firstChild()); | 293 | item = static_cast<KOTodoViewItem *>(lv->firstChild()); |
294 | } | 294 | } |
295 | 295 | ||
296 | while(item) | 296 | while(item) |
297 | { | 297 | { |
298 | item->m_odd = previous = !previous; | 298 | item->m_odd = previous = !previous; |
299 | item->m_known = true; | 299 | item->m_known = true; |
300 | item = dynamic_cast<KOTodoViewItem *>(item->nextSibling()); | 300 | item = static_cast<KOTodoViewItem *>(item->nextSibling()); |
301 | } | 301 | } |
302 | } | 302 | } |
303 | return m_odd; | 303 | return m_odd; |
304 | } | 304 | } |
305 | return false; | 305 | return false; |
306 | } | 306 | } |
307 | 307 | ||
308 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) | 308 | void KOTodoViewItem::paintCell(QPainter *p, const QColorGroup &cg, int column, int width, int alignment) |
309 | { | 309 | { |
310 | QColorGroup _cg = cg; | 310 | QColorGroup _cg = cg; |
311 | QColorGroup::ColorRole role; | 311 | QColorGroup::ColorRole role; |
312 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor ) | 312 | if ( KOPrefs::instance()->mTodoViewUsesForegroundColor ) |
313 | role = QColorGroup::Text; | 313 | role = QColorGroup::Text; |
314 | else | 314 | else |
315 | role = QColorGroup::Base; | 315 | role = QColorGroup::Base; |
316 | //#ifndef KORG_NOLVALTERNATION | 316 | //#ifndef KORG_NOLVALTERNATION |
317 | if (isAlternate()) | 317 | if (isAlternate()) |
318 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); | 318 | _cg.setColor(QColorGroup::Base, static_cast< KOTodoListView* >(listView())->alternateBackground()); |
319 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; | 319 | bool setColor = KOPrefs::instance()->mTodoViewUsesCatColors; |
320 | QColor colorToSet; | 320 | QColor colorToSet; |
321 | if ( setColor ) { | 321 | if ( setColor ) { |
322 | QStringList categories = mTodo->categories(); | 322 | QStringList categories = mTodo->categories(); |
323 | QString cat = categories.first(); | 323 | QString cat = categories.first(); |
324 | if ( !cat.isEmpty()) { | 324 | if ( !cat.isEmpty()) { |
325 | colorToSet = *(KOPrefs::instance()->categoryColor(cat) ); | 325 | colorToSet = *(KOPrefs::instance()->categoryColor(cat) ); |
326 | } else | 326 | } else |
327 | setColor = false; | 327 | setColor = false; |
328 | } | 328 | } |
329 | 329 | ||
330 | int odue = mTodo->hasDueSubTodo( !isOpen()); | 330 | int odue = mTodo->hasDueSubTodo( !isOpen()); |
331 | if (odue == 2) { | 331 | if (odue == 2) { |
332 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; | 332 | colorToSet = KOPrefs::instance()->mTodoOverdueColor; |
333 | setColor = true; | 333 | setColor = true; |
334 | } else if ( odue == 1 ) { | 334 | } else if ( odue == 1 ) { |
335 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; | 335 | colorToSet = KOPrefs::instance()->mTodoDueTodayColor; |
336 | setColor = true; | 336 | setColor = true; |
337 | } | 337 | } |
338 | 338 | ||
339 | 339 | ||
340 | if ( setColor ) { | 340 | if ( setColor ) { |
341 | _cg.setColor(role,colorToSet ); | 341 | _cg.setColor(role,colorToSet ); |
342 | if ( role == QColorGroup::Base) { | 342 | if ( role == QColorGroup::Base) { |
343 | int rgb = colorToSet.red(); | 343 | int rgb = colorToSet.red(); |
344 | rgb += colorToSet.blue()/2; | 344 | rgb += colorToSet.blue()/2; |
345 | rgb += colorToSet.green(); | 345 | rgb += colorToSet.green(); |
346 | if ( rgb < 200 ) | 346 | if ( rgb < 200 ) |
347 | _cg.setColor(QColorGroup::Text,Qt::white ); | 347 | _cg.setColor(QColorGroup::Text,Qt::white ); |
348 | } | 348 | } |
349 | } | 349 | } |
350 | //#endif | 350 | //#endif |
351 | if ( column > 0 ){ | 351 | if ( column > 0 ){ |
352 | if ( column == 2 && !KOPrefs::instance()->mTodoViewShowsPercentage ) { | 352 | if ( column == 2 && !KOPrefs::instance()->mTodoViewShowsPercentage ) { |
353 | p->save(); | 353 | p->save(); |
354 | int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5); | 354 | int progress = (int)(( (width-6)*mTodo->percentComplete())/100.0 + 0.5); |
355 | 355 | ||
356 | p->fillRect( 0, 0, width, height(), _cg.base() ); // background | 356 | p->fillRect( 0, 0, width, height(), _cg.base() ); // background |
357 | // p->setPen(Qt::black ); //border | 357 | // p->setPen(Qt::black ); //border |
358 | // p->setBrush( KOPrefs::instance()->mHighlightColorKGlobalSettings::baseColor() ); //filling | 358 | // p->setBrush( KOPrefs::instance()->mHighlightColorKGlobalSettings::baseColor() ); //filling |
359 | QColor fc = KOPrefs::instance()->mHighlightColor; | 359 | QColor fc = KOPrefs::instance()->mHighlightColor; |
360 | if ( mTodo->percentComplete() == 100 ) | 360 | if ( mTodo->percentComplete() == 100 ) |
361 | fc = darkGreen; | 361 | fc = darkGreen; |
362 | p->drawRect( 2, 2, width-4, height()-4); | 362 | p->drawRect( 2, 2, width-4, height()-4); |
363 | p->fillRect( 3, 3, progress, height()-6, | 363 | p->fillRect( 3, 3, progress, height()-6, |
364 | fc ); | 364 | fc ); |
365 | p->restore(); | 365 | p->restore(); |
366 | } else { | 366 | } else { |
367 | QCheckListItem::paintCell(p, _cg, column, width, alignment); | 367 | QCheckListItem::paintCell(p, _cg, column, width, alignment); |
368 | } | 368 | } |
369 | return; | 369 | return; |
370 | } | 370 | } |
371 | 371 | ||
372 | int align = alignment; | 372 | int align = alignment; |
373 | 373 | ||
374 | if ( !p ) | 374 | if ( !p ) |
375 | return; | 375 | return; |
376 | 376 | ||
377 | p->fillRect( 0, 0, width, height(), _cg.brush( QColorGroup::Base ) ); | 377 | p->fillRect( 0, 0, width, height(), _cg.brush( QColorGroup::Base ) ); |
378 | 378 | ||
379 | QListView *lv = listView(); | 379 | QListView *lv = listView(); |
380 | if ( !lv ) | 380 | if ( !lv ) |
381 | return; | 381 | return; |
382 | int marg = 2;//lv->itemMargin(); | 382 | int marg = 2;//lv->itemMargin(); |
383 | int r = 0; | 383 | int r = 0; |
384 | QCheckListItem::Type myType = QCheckListItem::CheckBox; | 384 | QCheckListItem::Type myType = QCheckListItem::CheckBox; |
385 | int BoxSize = 20; | 385 | int BoxSize = 20; |
386 | int boxOffset = 2; | 386 | int boxOffset = 2; |
387 | int xOffset = 2; | 387 | int xOffset = 2; |
388 | if (qApp->desktop()->width() < 300 ) { | 388 | if (qApp->desktop()->width() < 300 ) { |
389 | BoxSize = 14; | 389 | BoxSize = 14; |
390 | boxOffset = -1; | 390 | boxOffset = -1; |
391 | xOffset = 1; | 391 | xOffset = 1; |
392 | // marg = 0; | 392 | // marg = 0; |
393 | } | 393 | } |
394 | if ( height() < BoxSize ) { | 394 | if ( height() < BoxSize ) { |
395 | boxOffset = boxOffset - ((BoxSize - height())/2) ; | 395 | boxOffset = boxOffset - ((BoxSize - height())/2) ; |
396 | // qDebug("boxOffset %d height %d", boxOffset, height() ); | 396 | // qDebug("boxOffset %d height %d", boxOffset, height() ); |
397 | BoxSize = height(); | 397 | BoxSize = height(); |
398 | 398 | ||
399 | } | 399 | } |
400 | //bool winStyle = lv->style() == WindowsStyle; | 400 | //bool winStyle = lv->style() == WindowsStyle; |
401 | 401 | ||
402 | int lineStart = 5; | 402 | int lineStart = 5; |
403 | if ( myType == Controller ) { | 403 | if ( myType == Controller ) { |
404 | if ( !pixmap( 0 ) ) | 404 | if ( !pixmap( 0 ) ) |
405 | r += BoxSize + 4; | 405 | r += BoxSize + 4; |
406 | } else { | 406 | } else { |
407 | ASSERT( lv ); //### | 407 | ASSERT( lv ); //### |
408 | //QFontMetrics fm( lv->font() ); | 408 | //QFontMetrics fm( lv->font() ); |
409 | //int d = fm.height(); | 409 | //int d = fm.height(); |
410 | int x = 0; | 410 | int x = 0; |
411 | int y = (height() - BoxSize) / 2; | 411 | int y = (height() - BoxSize) / 2; |
412 | //p->setPen( QPen( _cg.text(), winStyle ? 2 : 1 ) ); | 412 | //p->setPen( QPen( _cg.text(), winStyle ? 2 : 1 ) ); |
413 | if ( myType == CheckBox ) { | 413 | if ( myType == CheckBox ) { |
414 | if ( isEnabled() ) | 414 | if ( isEnabled() ) |
415 | p->setPen( QPen( _cg.text(), 1 ) ); | 415 | p->setPen( QPen( _cg.text(), 1 ) ); |
416 | else | 416 | else |
417 | p->setPen( QPen( listView()->palette().color( QPalette::Disabled, QColorGroup::Text ), 1 ) ); | 417 | p->setPen( QPen( listView()->palette().color( QPalette::Disabled, QColorGroup::Text ), 1 ) ); |
418 | p->drawRect( x+marg, y+2, BoxSize-4, BoxSize-4 ); | 418 | p->drawRect( x+marg, y+2, BoxSize-4, BoxSize-4 ); |
419 | lineStart = x+marg; | 419 | lineStart = x+marg; |
420 | ///////////////////// | 420 | ///////////////////// |
421 | x++; | 421 | x++; |
422 | y++; | 422 | y++; |
423 | if ( isOn() ) { | 423 | if ( isOn() ) { |
424 | QPointArray a( 7*2 ); | 424 | QPointArray a( 7*2 ); |
425 | int i, xx, yy; | 425 | int i, xx, yy; |
426 | xx = x+xOffset+marg+(boxOffset/2); | 426 | xx = x+xOffset+marg+(boxOffset/2); |
427 | yy = y+5+boxOffset; | 427 | yy = y+5+boxOffset; |
428 | for ( i=0; i<3; i++ ) { | 428 | for ( i=0; i<3; i++ ) { |
429 | a.setPoint( 2*i, xx, yy ); | 429 | a.setPoint( 2*i, xx, yy ); |
430 | a.setPoint( 2*i+1, xx, yy+2 ); | 430 | a.setPoint( 2*i+1, xx, yy+2 ); |
431 | // qDebug(" "); | 431 | // qDebug(" "); |
432 | xx++; yy++; | 432 | xx++; yy++; |
433 | } | 433 | } |
434 | yy -= 2; | 434 | yy -= 2; |
435 | for ( i=3; i<7; i++ ) { | 435 | for ( i=3; i<7; i++ ) { |
436 | a.setPoint( 2*i, xx, yy ); | 436 | a.setPoint( 2*i, xx, yy ); |
437 | a.setPoint( 2*i+1, xx, yy+2 ); | 437 | a.setPoint( 2*i+1, xx, yy+2 ); |
438 | xx++; yy--; | 438 | xx++; yy--; |
439 | } | 439 | } |
440 | p->setPen( darkGreen ); | 440 | p->setPen( darkGreen ); |
441 | p->drawLineSegments( a ); | 441 | p->drawLineSegments( a ); |
442 | } | 442 | } |
443 | //////////////////////// | 443 | //////////////////////// |
444 | } | 444 | } |
445 | r += BoxSize + 4; | 445 | r += BoxSize + 4; |
446 | } | 446 | } |
447 | 447 | ||
448 | p->translate( r, 0 ); | 448 | p->translate( r, 0 ); |
449 | p->setPen( QPen( _cg.text() ) ); | 449 | p->setPen( QPen( _cg.text() ) ); |
450 | QListViewItem::paintCell( p, _cg, column, width - r, align ); | 450 | QListViewItem::paintCell( p, _cg, column, width - r, align ); |
451 | if ( mTodo->cancelled () ) { | 451 | if ( mTodo->cancelled () ) { |
452 | p->setPen( black ); | 452 | p->setPen( black ); |
453 | QRect br = p->boundingRect( 1,1,1,1,0,mTodo->summary() ); | 453 | QRect br = p->boundingRect( 1,1,1,1,0,mTodo->summary() ); |
454 | int wid = br.width() +lineStart; | 454 | int wid = br.width() +lineStart; |
455 | if ( wid > width-3 ) | 455 | if ( wid > width-3 ) |
456 | wid = width-3; | 456 | wid = width-3; |
457 | p->drawLine( lineStart, height()/2+1, wid, height()/2+1 ); | 457 | p->drawLine( lineStart, height()/2+1, wid, height()/2+1 ); |
458 | 458 | ||
459 | } | 459 | } |
460 | 460 | ||
461 | } | 461 | } |
diff --git a/korganizer/kowhatsnextview.cpp b/korganizer/kowhatsnextview.cpp index 10665f4..391b3bb 100644 --- a/korganizer/kowhatsnextview.cpp +++ b/korganizer/kowhatsnextview.cpp | |||
@@ -234,531 +234,535 @@ void KOWhatsNextView::updateView() | |||
234 | 234 | ||
235 | 235 | ||
236 | if (events.count() > 0) { | 236 | if (events.count() > 0) { |
237 | // mText += "<p></p>"; | 237 | // mText += "<p></p>"; |
238 | // kil.loadIcon("month",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); | 238 | // kil.loadIcon("month",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); |
239 | // mText += "<h2>"; | 239 | // mText += "<h2>"; |
240 | //mText += " <img src=\""; | 240 | //mText += " <img src=\""; |
241 | //mText += ipath; | 241 | //mText += ipath; |
242 | //mText += "\">"; | 242 | //mText += "\">"; |
243 | if ( ! itemAdded ) { | 243 | if ( ! itemAdded ) { |
244 | appendDay ( iii, mEventDate ); | 244 | appendDay ( iii, mEventDate ); |
245 | 245 | ||
246 | } | 246 | } |
247 | // for first day (iii == 0) | 247 | // for first day (iii == 0) |
248 | // we may have syncevents, or events in the past, which maybe should not be diaplayed | 248 | // we may have syncevents, or events in the past, which maybe should not be diaplayed |
249 | // for that reason we cannot append <table> in appendDay () for iii == 0 | 249 | // for that reason we cannot append <table> in appendDay () for iii == 0 |
250 | // we must append it in the first successful call of appendEvent() | 250 | // we must append it in the first successful call of appendEvent() |
251 | Event *ev = events.first(); | 251 | Event *ev = events.first(); |
252 | while(ev) { | 252 | while(ev) { |
253 | //qDebug("+++++event append %s", ev->summary().latin1()); | 253 | //qDebug("+++++event append %s", ev->summary().latin1()); |
254 | if ( true /*!ev->recurrence()->doesRecur() || ev->recursOn( mEventDate)*/) { | 254 | if ( true /*!ev->recurrence()->doesRecur() || ev->recursOn( mEventDate)*/) { |
255 | if ( appendEvent(ev, false , iii!= 0,!itemAdded ) ) | 255 | if ( appendEvent(ev, false , iii!= 0,!itemAdded ) ) |
256 | itemAdded = true; | 256 | itemAdded = true; |
257 | } | 257 | } |
258 | ev = events.next(); | 258 | ev = events.next(); |
259 | } | 259 | } |
260 | 260 | ||
261 | //mText += "</table>\n"; | 261 | //mText += "</table>\n"; |
262 | } | 262 | } |
263 | 263 | ||
264 | todo = todos.first(); | 264 | todo = todos.first(); |
265 | while(todo) { | 265 | while(todo) { |
266 | if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() == mEventDate ) { | 266 | if ( !todo->isCompleted() &&todo->hasDueDate() && todo->dtDue().date() == mEventDate ) { |
267 | if ( ! itemAdded ) { | 267 | if ( ! itemAdded ) { |
268 | appendDay ( iii, mEventDate ); | 268 | appendDay ( iii, mEventDate ); |
269 | //itemAdded = true; | 269 | //itemAdded = true; |
270 | } | 270 | } |
271 | appendEvent(todo, false , iii!= 0,!itemAdded); | 271 | appendEvent(todo, false , iii!= 0,!itemAdded); |
272 | itemAdded = true; | 272 | itemAdded = true; |
273 | } | 273 | } |
274 | todo = todos.next(); | 274 | todo = todos.next(); |
275 | } | 275 | } |
276 | if ( !itemAdded && iii == 0 ) { | 276 | if ( !itemAdded && iii == 0 ) { |
277 | // appendDay ( iii, mEventDate ); | 277 | // appendDay ( iii, mEventDate ); |
278 | //mText += "<table>"; | 278 | //mText += "<table>"; |
279 | // mText += "<b><font color=\"#000080\"><em>"+i18n("No event, nothing to do.") +"</em></font></b>\n"; | 279 | // mText += "<b><font color=\"#000080\"><em>"+i18n("No event, nothing to do.") +"</em></font></b>\n"; |
280 | mText += "<h3 align=\"center\"><font color=\"#008000\"><em>"+i18n("No event, nothing to do.") +"</em></font></h3>\n"; | 280 | mText += "<h3 align=\"center\"><font color=\"#008000\"><em>"+i18n("No event, nothing to do.") +"</em></font></h3>\n"; |
281 | //mText +="</table>"; | 281 | //mText +="</table>"; |
282 | } | 282 | } |
283 | if ( itemAdded ) | 283 | if ( itemAdded ) |
284 | mText += "</table>\n"; | 284 | mText += "</table>\n"; |
285 | mEventDate = mEventDate.addDays( 1 ); | 285 | mEventDate = mEventDate.addDays( 1 ); |
286 | } | 286 | } |
287 | 287 | ||
288 | int topmostPrios = KOPrefs::instance()->mWhatsNextPrios; | 288 | int topmostPrios = KOPrefs::instance()->mWhatsNextPrios; |
289 | if (todos.count() > 0 && topmostPrios > 0 ) { | 289 | if (todos.count() > 0 && topmostPrios > 0 ) { |
290 | // kil.loadIcon("todo",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); | 290 | // kil.loadIcon("todo",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); |
291 | // mText += "<h2>"; | 291 | // mText += "<h2>"; |
292 | //<img src=\""; | 292 | //<img src=\""; |
293 | // mText += ipath; | 293 | // mText += ipath; |
294 | // mText += "\">"; | 294 | // mText += "\">"; |
295 | // mText += i18n("Overdue To-Do:") + "</h2>\n"; | 295 | // mText += i18n("Overdue To-Do:") + "</h2>\n"; |
296 | 296 | ||
297 | //mText += "<ul>\n"; | 297 | //mText += "<ul>\n"; |
298 | bool gotone = false; | 298 | bool gotone = false; |
299 | int priority = 1; | 299 | int priority = 1; |
300 | int priosFound = 0; | 300 | int priosFound = 0; |
301 | #ifdef DESKTOP_VERSION | 301 | #ifdef DESKTOP_VERSION |
302 | mText +="<p></p>"; | 302 | mText +="<p></p>"; |
303 | #endif | 303 | #endif |
304 | 304 | ||
305 | mText +="<h2><em><font color=\"#000080\">" + i18n("Incomplete Todo:") + "</font></em></h2>\n"; | 305 | mText +="<h2><em><font color=\"#000080\">" + i18n("Incomplete Todo:") + "</font></em></h2>\n"; |
306 | mText += "<ul>\n"; | 306 | mText += "<ul>\n"; |
307 | while (!gotone && priority<6) { | 307 | while (!gotone && priority<6) { |
308 | todo = todos.first(); | 308 | todo = todos.first(); |
309 | while(todo) { | 309 | while(todo) { |
310 | if (!todo->isCompleted() && (todo->priority() == priority) ) { | 310 | if (!todo->isCompleted() && (todo->priority() == priority) ) { |
311 | if ( appendTodo(todo) ) | 311 | if ( appendTodo(todo) ) |
312 | gotone = true; | 312 | gotone = true; |
313 | } | 313 | } |
314 | todo = todos.next(); | 314 | todo = todos.next(); |
315 | } | 315 | } |
316 | if ( gotone ) { | 316 | if ( gotone ) { |
317 | gotone = false; | 317 | gotone = false; |
318 | ++priosFound; | 318 | ++priosFound; |
319 | if ( priosFound == topmostPrios ) | 319 | if ( priosFound == topmostPrios ) |
320 | break; | 320 | break; |
321 | } | 321 | } |
322 | priority++; | 322 | priority++; |
323 | // kdDebug() << "adding the todos..." << endl; | 323 | // kdDebug() << "adding the todos..." << endl; |
324 | } | 324 | } |
325 | mText += "</ul>\n"; | 325 | mText += "</ul>\n"; |
326 | } | 326 | } |
327 | 327 | ||
328 | int replys = 0; | 328 | int replys = 0; |
329 | events = calendar()->events(QDate::currentDate(), QDate(2975,12,6)); | 329 | events = calendar()->events(QDate::currentDate(), QDate(2975,12,6)); |
330 | if (events.count() > 0) { | 330 | if (events.count() > 0) { |
331 | Event *ev = events.first(); | 331 | Event *ev = events.first(); |
332 | while(ev) { | 332 | while(ev) { |
333 | Attendee *me = ev->attendeeByMails(KOPrefs::instance()->mAdditionalMails,KOPrefs::instance()->email()); | 333 | Attendee *me = ev->attendeeByMails(KOPrefs::instance()->mAdditionalMails,KOPrefs::instance()->email()); |
334 | if (me!=0) { | 334 | if (me!=0) { |
335 | if (me->status()==Attendee::NeedsAction && me->RSVP()) { | 335 | if (me->status()==Attendee::NeedsAction && me->RSVP()) { |
336 | if (replys == 0) { | 336 | if (replys == 0) { |
337 | mText += "<p></p>"; | 337 | mText += "<p></p>"; |
338 | // kil.loadIcon("reply",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); | 338 | // kil.loadIcon("reply",KIcon::NoGroup,22,KIcon::DefaultState,&ipath); |
339 | //mText += "<h2>"; | 339 | //mText += "<h2>"; |
340 | //<img src=\""; | 340 | //<img src=\""; |
341 | // mText += ipath; | 341 | // mText += ipath; |
342 | // mText += "\">"; | 342 | // mText += "\">"; |
343 | //mText += i18n("Events and To-Dos that need a reply:") + "</h2>\n"; | 343 | //mText += i18n("Events and To-Dos that need a reply:") + "</h2>\n"; |
344 | mText +="<h2><em><font color=\"#000080\">" + i18n("Events and To-Dos that need a reply:") + "</font></em></h2>\n"; | 344 | mText +="<h2><em><font color=\"#000080\">" + i18n("Events and To-Dos that need a reply:") + "</font></em></h2>\n"; |
345 | mText += "<table>\n"; | 345 | mText += "<table>\n"; |
346 | } | 346 | } |
347 | replys++; | 347 | replys++; |
348 | appendEvent(ev,true); | 348 | appendEvent(ev,true); |
349 | } | 349 | } |
350 | } | 350 | } |
351 | ev = events.next(); | 351 | ev = events.next(); |
352 | } | 352 | } |
353 | } | 353 | } |
354 | todos = calendar()->todos(); | 354 | todos = calendar()->todos(); |
355 | if (todos.count() > 0) { | 355 | if (todos.count() > 0) { |
356 | Todo *to = todos.first(); | 356 | Todo *to = todos.first(); |
357 | while(to) { | 357 | while(to) { |
358 | if ( !to->isCompleted() ){ | 358 | if ( !to->isCompleted() ){ |
359 | Attendee *me = to->attendeeByMails(KOPrefs::instance()->mAdditionalMails,KOPrefs::instance()->email()); | 359 | Attendee *me = to->attendeeByMails(KOPrefs::instance()->mAdditionalMails,KOPrefs::instance()->email()); |
360 | if (me!=0) { | 360 | if (me!=0) { |
361 | if (me->status()==Attendee::NeedsAction && me->RSVP()) { | 361 | if (me->status()==Attendee::NeedsAction && me->RSVP()) { |
362 | if (replys == 0) { | 362 | if (replys == 0) { |
363 | mText +="<h2><em><font color=\"#000080\">" + i18n("Events and To-Dos that need a reply:") + "</font></em></h2>\n"; | 363 | mText +="<h2><em><font color=\"#000080\">" + i18n("Events and To-Dos that need a reply:") + "</font></em></h2>\n"; |
364 | mText += "<table>\n"; | 364 | mText += "<table>\n"; |
365 | } | 365 | } |
366 | replys++; | 366 | replys++; |
367 | appendEvent(to, true); | 367 | appendEvent(to, true); |
368 | } | 368 | } |
369 | } | 369 | } |
370 | } | 370 | } |
371 | to = todos.next(); | 371 | to = todos.next(); |
372 | } | 372 | } |
373 | } | 373 | } |
374 | if (replys > 0 ) mText += "</table>\n"; | 374 | if (replys > 0 ) mText += "</table>\n"; |
375 | 375 | ||
376 | 376 | ||
377 | mText += "</td></tr>\n</table>\n"; | 377 | mText += "</td></tr>\n</table>\n"; |
378 | 378 | ||
379 | mView->setText(mText); | 379 | mView->setText(mText); |
380 | mView->setFocus(); | 380 | mView->setFocus(); |
381 | 381 | ||
382 | // QPixmap bPix = SmallIcon( "back" ); | 382 | // QPixmap bPix = SmallIcon( "back" ); |
383 | // qDebug("xxxxxxxxxxxxxxxxxxxxx "); | 383 | // qDebug("xxxxxxxxxxxxxxxxxxxxx "); |
384 | // QWidget* test = new QWidget(); | 384 | // QWidget* test = new QWidget(); |
385 | // test->setBackgroundMode(FixedPixmap ); | 385 | // test->setBackgroundMode(FixedPixmap ); |
386 | // test->setBackgroundPixmap ( bPix ); | 386 | // test->setBackgroundPixmap ( bPix ); |
387 | // test->resize( 300, 400 ); | 387 | // test->resize( 300, 400 ); |
388 | // test->show(); | 388 | // test->show(); |
389 | // mView->setBackgroundMode(FixedPixmap ); | 389 | // mView->setBackgroundMode(FixedPixmap ); |
390 | // mView->setBackgroundPixmap ( bPix ); | 390 | // mView->setBackgroundPixmap ( bPix ); |
391 | // qDebug("%s ",mText.latin1()); | 391 | // qDebug("%s ",mText.latin1()); |
392 | } | 392 | } |
393 | 393 | ||
394 | void KOWhatsNextView::appendDay( int i, QDate eventDate ) | 394 | void KOWhatsNextView::appendDay( int i, QDate eventDate ) |
395 | { | 395 | { |
396 | QString date; | 396 | QString date; |
397 | QString day = KGlobal::locale()->formatDate( eventDate , KOPrefs::instance()->mShortDateInViewer); | 397 | QString day = KGlobal::locale()->formatDate( eventDate , KOPrefs::instance()->mShortDateInViewer); |
398 | if ( ! KOPrefs::instance()->mShortDateInViewer && QApplication::desktop()->width() < 320 ) { | 398 | if ( ! KOPrefs::instance()->mShortDateInViewer && QApplication::desktop()->width() < 320 ) { |
399 | if ( i == 0 ) { | 399 | if ( i == 0 ) { |
400 | //mText += "<table>\n"; | 400 | //mText += "<table>\n"; |
401 | return;//date = "<em><font color=\"#008000\"><em>" + day+"</font></em>"; | 401 | return;//date = "<em><font color=\"#008000\"><em>" + day+"</font></em>"; |
402 | } | 402 | } |
403 | else if ( i == 1 ) | 403 | else if ( i == 1 ) |
404 | date = "<em><font color=\"#000080\">" + day + "</font></em>" ; | 404 | date = "<em><font color=\"#000080\">" + day + "</font></em>" ; |
405 | else date = "<em><font color=\"#000080\">" + day + "</font></em>"; | 405 | else date = "<em><font color=\"#000080\">" + day + "</font></em>"; |
406 | mText += "<h2>" + date + "</h2>\n"; | 406 | mText += "<h2>" + date + "</h2>\n"; |
407 | //mText += "<big><big><strong>" + date + "</strong></big></big>\n"; | 407 | //mText += "<big><big><strong>" + date + "</strong></big></big>\n"; |
408 | mText += "<table>\n"; | 408 | mText += "<table>\n"; |
409 | 409 | ||
410 | 410 | ||
411 | 411 | ||
412 | } else { | 412 | } else { |
413 | if ( i == 0 ) { | 413 | if ( i == 0 ) { |
414 | //mText += "<table>\n"; | 414 | //mText += "<table>\n"; |
415 | return;// date = "<font color=\"#008000\"><em>" +i18n("Today: ") +"</em>" + day+"</font>"; | 415 | return;// date = "<font color=\"#008000\"><em>" +i18n("Today: ") +"</em>" + day+"</font>"; |
416 | } | 416 | } |
417 | 417 | ||
418 | #ifdef DESKTOP_VERSION | 418 | #ifdef DESKTOP_VERSION |
419 | else if ( i == 1 ) { | 419 | else if ( i == 1 ) { |
420 | date = "<h2><em><font color=\"#000080\">" + i18n("Tomorrow: ") + day +"</font></em></h2>" ; | 420 | date = "<h2><em><font color=\"#000080\">" + i18n("Tomorrow: ") + day +"</font></em></h2>" ; |
421 | } | 421 | } |
422 | else date = "<h2><em><font color=\"#000080\">" + i18n("In %1 days: ").arg( i ) +day + "</font></em></h2>"; | 422 | else date = "<h2><em><font color=\"#000080\">" + i18n("In %1 days: ").arg( i ) +day + "</font></em></h2>"; |
423 | #else | 423 | #else |
424 | else if ( i == 1 ) { | 424 | else if ( i == 1 ) { |
425 | date = "<em><font color=\"#000080\">" + i18n("Tomorrow: ") + day +"</font></em>" ; | 425 | date = "<em><font color=\"#000080\">" + i18n("Tomorrow: ") + day +"</font></em>" ; |
426 | } | 426 | } |
427 | else date = "<em><font color=\"#000080\">" + i18n("In %1 days: ").arg( i ) +day + "</font></em>"; | 427 | else date = "<em><font color=\"#000080\">" + i18n("In %1 days: ").arg( i ) +day + "</font></em>"; |
428 | 428 | ||
429 | #endif | 429 | #endif |
430 | mText += "<h2>" + date + "</h2>\n"; | 430 | mText += "<h2>" + date + "</h2>\n"; |
431 | //mText += "<big><big><strong>" + date + "</strong></big></big>\n"; | 431 | //mText += "<big><big><strong>" + date + "</strong></big></big>\n"; |
432 | mText += "<table>\n"; | 432 | mText += "<table>\n"; |
433 | } | 433 | } |
434 | } | 434 | } |
435 | 435 | ||
436 | 436 | ||
437 | void KOWhatsNextView::showDates(const QDate &, const QDate &) | 437 | void KOWhatsNextView::showDates(const QDate &, const QDate &) |
438 | { | 438 | { |
439 | updateView(); | 439 | updateView(); |
440 | } | 440 | } |
441 | 441 | ||
442 | void KOWhatsNextView::showEvents(QPtrList<Event>) | 442 | void KOWhatsNextView::showEvents(QPtrList<Event>) |
443 | { | 443 | { |
444 | } | 444 | } |
445 | 445 | ||
446 | void KOWhatsNextView::changeEventDisplay(Event *, int action) | 446 | void KOWhatsNextView::changeEventDisplay(Event *, int action) |
447 | { | 447 | { |
448 | switch(action) { | 448 | switch(action) { |
449 | case KOGlobals::EVENTADDED: | 449 | case KOGlobals::EVENTADDED: |
450 | updateView(); | 450 | updateView(); |
451 | break; | 451 | break; |
452 | case KOGlobals::EVENTEDITED: | 452 | case KOGlobals::EVENTEDITED: |
453 | updateView(); | 453 | updateView(); |
454 | break; | 454 | break; |
455 | case KOGlobals::EVENTDELETED: | 455 | case KOGlobals::EVENTDELETED: |
456 | updateView(); | 456 | updateView(); |
457 | break; | 457 | break; |
458 | default: | 458 | default: |
459 | updateView(); | 459 | updateView(); |
460 | kdDebug() << "KOWhatsNextView::changeEventDisplay(): Illegal action " << action << endl; | 460 | kdDebug() << "KOWhatsNextView::changeEventDisplay(): Illegal action " << action << endl; |
461 | } | 461 | } |
462 | } | 462 | } |
463 | 463 | ||
464 | bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool appendTable ) | 464 | bool KOWhatsNextView::appendEvent(Incidence *ev, bool reply, bool notRed, bool appendTable ) |
465 | { | 465 | { |
466 | if ( !KOPrefs::instance()->mShowSyncEvents && ev->uid().left(15) == QString("last-syncEvent-") ) | 466 | if ( !KOPrefs::instance()->mShowSyncEvents && ev->uid().left(15) == QString("last-syncEvent-") ) |
467 | return false; | 467 | return false; |
468 | QDateTime cdt = QDateTime::currentDateTime(); | 468 | QDateTime cdt = QDateTime::currentDateTime(); |
469 | QDateTime noc; | 469 | QDateTime noc; |
470 | QString tempText; | 470 | QString tempText; |
471 | if ( appendTable && !notRed ) { | 471 | if ( appendTable && !notRed ) { |
472 | tempText = "<table>"; | 472 | tempText = "<table>"; |
473 | } | 473 | } |
474 | bool ok = true; | 474 | bool ok = true; |
475 | if ( reply ) { | 475 | if ( reply ) { |
476 | noc = ev->getNextOccurence( cdt, &ok ); | 476 | noc = ev->getNextOccurence( cdt, &ok ); |
477 | if (! ok && ev->type() == "Event") | 477 | if (! ok && ev->type() == "Event") |
478 | return false; | 478 | return false; |
479 | } | 479 | } |
480 | bool bDay = false; | 480 | bool bDay = false; |
481 | if ( ev->categories().contains( i18n("Birthday") ) || ev->categories().contains( i18n("Anniversary") ) ) | 481 | if ( ev->categories().contains( i18n("Birthday") ) || ev->categories().contains( i18n("Anniversary") ) ) |
482 | bDay = true; | 482 | bDay = true; |
483 | tempText += "<tr><td><b>"; | 483 | tempText += "<tr><td><b>"; |
484 | if (ev->type()=="Event") { | 484 | if (ev->type()=="Event") { |
485 | if (reply) { | 485 | if (reply) { |
486 | if (!ev->doesFloat()) | 486 | if (!ev->doesFloat()) |
487 | tempText += KGlobal::locale()->formatDateTime( noc , KOPrefs::instance()->mShortDateInViewer) +": "; | 487 | tempText += KGlobal::locale()->formatDateTime( noc , KOPrefs::instance()->mShortDateInViewer) +": "; |
488 | else | 488 | else |
489 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 489 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
490 | 490 | ||
491 | } else { | 491 | } else { |
492 | if (!ev->doesFloat()) { | 492 | if (!ev->doesFloat()) { |
493 | Event *event = static_cast<Event *>(ev); | 493 | Event *event = static_cast<Event *>(ev); |
494 | QDateTime st,end; | 494 | QDateTime st,end; |
495 | if ( event->recurrence()->doesRecur() ) { | 495 | if ( event->recurrence()->doesRecur() ) { |
496 | QDate recDate= mEventDate; | 496 | QDate recDate= mEventDate; |
497 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); | 497 | int days = event->dtStart().date().daysTo (event->dtEnd().date() ); |
498 | while ( ! event->recursOn( recDate ) ) { | 498 | while ( ! event->recursOn( recDate ) ) { |
499 | recDate = recDate.addDays( -1 ); | 499 | recDate = recDate.addDays( -1 ); |
500 | 500 | ||
501 | } | 501 | } |
502 | st = QDateTime ( recDate, event->dtStart().time() ); | 502 | st = QDateTime ( recDate, event->dtStart().time() ); |
503 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); | 503 | end = QDateTime ( recDate.addDays( days ), event->dtEnd().time() ); |
504 | } | 504 | } |
505 | else { | 505 | else { |
506 | st = event->dtStart(); | 506 | st = event->dtStart(); |
507 | end = event->dtEnd(); | 507 | end = event->dtEnd(); |
508 | } | 508 | } |
509 | 509 | ||
510 | 510 | ||
511 | QString dateText; | 511 | QString dateText; |
512 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); | 512 | // qDebug("%s %s %s %s ", mEventDate.toString().latin1(),event->summary().latin1(), st .toString().latin1(),end.toString().latin1() ); |
513 | if ( st.date() < mEventDate ) | 513 | if ( st.date() < mEventDate ) |
514 | dateText = "++:++-"; | 514 | dateText = "++:++-"; |
515 | else | 515 | else |
516 | dateText = event->dtStartTimeStr() + "-"; | 516 | dateText = event->dtStartTimeStr() + "-"; |
517 | if ( end.date() > mEventDate ) | 517 | if ( end.date() > mEventDate ) |
518 | dateText += "++:++"; | 518 | dateText += "++:++"; |
519 | else | 519 | else |
520 | dateText += event->dtEndTimeStr(); | 520 | dateText += event->dtEndTimeStr(); |
521 | if ( notRed ) | 521 | if ( notRed ) |
522 | tempText += dateText; | 522 | tempText += dateText; |
523 | else { | 523 | else { |
524 | if ( end < cdt ) { | 524 | if ( end < cdt ) { |
525 | if ( !KOPrefs::instance()->mWNViewShowsPast ) | 525 | if ( !KOPrefs::instance()->mWNViewShowsPast ) |
526 | return false; | 526 | return false; |
527 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; | 527 | tempText += "<font color=\"#F00000\">" + dateText + "</font>"; |
528 | } | 528 | } |
529 | else if ( st < cdt ) | 529 | else if ( st < cdt ) |
530 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; | 530 | tempText += "<font color=\"#008000\">" + dateText + "</font>"; |
531 | else | 531 | else |
532 | tempText += dateText; | 532 | tempText += dateText; |
533 | 533 | ||
534 | } | 534 | } |
535 | 535 | ||
536 | } else { | 536 | } else { |
537 | if ( bDay ) { | 537 | if ( bDay ) { |
538 | 538 | ||
539 | if ( ev->categories().contains( i18n("Birthday") )) | 539 | if ( ev->categories().contains( i18n("Birthday") )) |
540 | tempText += "<font color=\"#F00000\">" + i18n("Birthday") +":</font>"; | 540 | tempText += "<font color=\"#F00000\">" + i18n("Birthday") +":</font>"; |
541 | else | 541 | else |
542 | tempText += "<font color=\"#F00000\">" + i18n("Anniversary")+":</font>"; | 542 | tempText += "<font color=\"#F00000\">" + i18n("Anniversary")+":</font>"; |
543 | } else { | 543 | } else { |
544 | tempText += i18n("Allday:"); | 544 | tempText += i18n("Allday:"); |
545 | } | 545 | } |
546 | 546 | ||
547 | } | 547 | } |
548 | } | 548 | } |
549 | } else { | 549 | } else { |
550 | mTodos.append( ev ); | 550 | mTodos.append( ev ); |
551 | tempText += i18n("ToDo:"); | 551 | tempText += i18n("ToDo:"); |
552 | if (reply) { | 552 | if (reply) { |
553 | tempText += " "; | 553 | tempText += " "; |
554 | if ( noc != cdt ) { | 554 | if ( noc != cdt ) { |
555 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 555 | tempText += KGlobal::locale()->formatDate( noc.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
556 | } | 556 | } |
557 | } else { | 557 | } else { |
558 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { | 558 | if ( ((Todo*)ev)->dtDue().date() < QDate::currentDate() ) { |
559 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; | 559 | // tempText +="<font color=\"#F00000\">" + i18n("O-due!") + "</font>"; |
560 | QString dfs = KGlobal::locale()->dateFormatShort(); | 560 | QString dfs = KGlobal::locale()->dateFormatShort(); |
561 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 561 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
562 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; | 562 | tempText +="<font color=\"#F00000\">" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "</font>"; |
563 | KGlobal::locale()->setDateFormatShort(dfs); | 563 | KGlobal::locale()->setDateFormatShort(dfs); |
564 | } else { | 564 | } else { |
565 | if (!ev->doesFloat() ) | 565 | if (!ev->doesFloat() ) |
566 | if( ( (Todo*)ev)->dtDue() < cdt ) { | 566 | if( ( (Todo*)ev)->dtDue() < cdt ) { |
567 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; | 567 | tempText +="<font color=\"#F00000\">" + ((Todo*)ev)->dtDueTimeStr() + "</font>"; |
568 | 568 | ||
569 | 569 | ||
570 | } else | 570 | } else |
571 | tempText +=((Todo*)ev)->dtDueTimeStr(); | 571 | tempText +=((Todo*)ev)->dtDueTimeStr(); |
572 | mTodos.append( ev ); | 572 | mTodos.append( ev ); |
573 | } | 573 | } |
574 | } | 574 | } |
575 | } | 575 | } |
576 | tempText += "</b></td><td>"; | 576 | tempText += "</b></td><td>"; |
577 | bool needClose = false; | 577 | bool needClose = false; |
578 | if ( ev->cancelled() ) { | 578 | if ( ev->cancelled() ) { |
579 | tempText += "<font color=\"#F00000\">[c"; | 579 | tempText += "<font color=\"#F00000\">[c"; |
580 | needClose =true; | 580 | needClose =true; |
581 | 581 | ||
582 | } | 582 | } |
583 | if ( ev->isAlarmEnabled() ) { | 583 | if ( ev->isAlarmEnabled() ) { |
584 | if ( !needClose) | 584 | if ( !needClose) |
585 | tempText +="["; | 585 | tempText +="["; |
586 | tempText += "a"; | 586 | tempText += "a"; |
587 | needClose =true; | 587 | needClose =true; |
588 | 588 | ||
589 | } | 589 | } |
590 | if ( ev->description().length() > 0 ) { | 590 | if ( ev->description().length() > 0 ) { |
591 | if ( !needClose) | 591 | if ( !needClose) |
592 | tempText +="["; | 592 | tempText +="["; |
593 | tempText += "i"; | 593 | tempText += "i"; |
594 | needClose =true; | 594 | needClose =true; |
595 | } | 595 | } |
596 | if ( ev->recurrence()->doesRecur() ) { | 596 | if ( ev->recurrence()->doesRecur() ) { |
597 | if ( !needClose) | 597 | if ( !needClose) |
598 | tempText +="["; | 598 | tempText +="["; |
599 | tempText += "r"; | 599 | tempText += "r"; |
600 | needClose =true; | 600 | needClose =true; |
601 | } | 601 | } |
602 | if ( needClose ) { | 602 | if ( needClose ) { |
603 | tempText += "] "; | 603 | tempText += "] "; |
604 | } | 604 | } |
605 | if ( ev->cancelled() ) | 605 | if ( ev->cancelled() ) |
606 | tempText += "</font>"; | 606 | tempText += "</font>"; |
607 | tempText += "<a "; | 607 | tempText += "<a "; |
608 | if (ev->type()=="Event") tempText += "href=\"event:"; | 608 | if (ev->type()=="Event") tempText += "href=\"event:"; |
609 | if (ev->type()=="Todo") tempText += "href=\"todo:"; | 609 | if (ev->type()=="Todo") tempText += "href=\"todo:"; |
610 | tempText += ev->uid() + "\">"; | 610 | tempText += ev->uid() + "\">"; |
611 | if ( ev->summary().length() > 0 ) | 611 | if ( ev->summary().length() > 0 ) |
612 | tempText += ev->summary(); | 612 | tempText += ev->summary(); |
613 | else | 613 | else |
614 | tempText += i18n("-no summary-"); | 614 | tempText += i18n("-no summary-"); |
615 | if ( bDay ) { | 615 | if ( bDay ) { |
616 | noc = ev->getNextOccurence( cdt.addDays(-1), &ok ); | 616 | noc = ev->getNextOccurence( cdt.addDays(-1), &ok ); |
617 | if ( ok ) { | 617 | if ( ok ) { |
618 | int years = noc.date().year() - ev->dtStart().date().year(); | 618 | int years = 0; |
619 | if ( ev->type() =="Todo" ) { | ||
620 | years = noc.date().year() -((Todo*)ev)->dtDue().date().year(); | ||
621 | } else | ||
622 | years = noc.date().year() - ev->dtStart().date().year(); | ||
619 | tempText += i18n(" (%1 y.)"). arg( years ); | 623 | tempText += i18n(" (%1 y.)"). arg( years ); |
620 | } | 624 | } |
621 | } | 625 | } |
622 | 626 | ||
623 | tempText += "</a>"; | 627 | tempText += "</a>"; |
624 | if ( KOPrefs::instance()->mWNViewShowLocation ) | 628 | if ( KOPrefs::instance()->mWNViewShowLocation ) |
625 | if ( !ev->location().isEmpty() ) | 629 | if ( !ev->location().isEmpty() ) |
626 | tempText += " ("+ev->location() +")"; | 630 | tempText += " ("+ev->location() +")"; |
627 | if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents) | 631 | if ( ev->relatedTo() && KOPrefs::instance()->mWNViewShowsParents) |
628 | tempText += " ["+ev->relatedTo()->summary() +"]"; | 632 | tempText += " ["+ev->relatedTo()->summary() +"]"; |
629 | tempText += "</td></tr>\n"; | 633 | tempText += "</td></tr>\n"; |
630 | mText += tempText; | 634 | mText += tempText; |
631 | return true; | 635 | return true; |
632 | } | 636 | } |
633 | 637 | ||
634 | bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) | 638 | bool KOWhatsNextView::appendTodo(Incidence *ev, QString ind , bool isSub ) |
635 | { | 639 | { |
636 | if ( mTodos.find( ev ) != mTodos.end() ) return false; | 640 | if ( mTodos.find( ev ) != mTodos.end() ) return false; |
637 | 641 | ||
638 | mTodos.append( ev ); | 642 | mTodos.append( ev ); |
639 | if ( !isSub ) | 643 | if ( !isSub ) |
640 | mText += "<p>"; | 644 | mText += "<p>"; |
641 | else | 645 | else |
642 | mText += "<li>"; | 646 | mText += "<li>"; |
643 | mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] "; | 647 | mText += "[" +QString::number(ev->priority()) + "/" + QString::number(((Todo*)ev)->percentComplete())+"%] "; |
644 | 648 | ||
645 | 649 | ||
646 | mText += ind; | 650 | mText += ind; |
647 | bool needClose = false; | 651 | bool needClose = false; |
648 | if ( ev->cancelled() ) { | 652 | if ( ev->cancelled() ) { |
649 | mText += "<font color=\"#F00000\">[c"; | 653 | mText += "<font color=\"#F00000\">[c"; |
650 | needClose =true; | 654 | needClose =true; |
651 | 655 | ||
652 | } | 656 | } |
653 | if ( ev->isAlarmEnabled() ) { | 657 | if ( ev->isAlarmEnabled() ) { |
654 | if ( !needClose) | 658 | if ( !needClose) |
655 | mText +="["; | 659 | mText +="["; |
656 | mText += "a"; | 660 | mText += "a"; |
657 | needClose =true; | 661 | needClose =true; |
658 | 662 | ||
659 | } | 663 | } |
660 | 664 | ||
661 | if ( ev->description().length() > 0 ) { | 665 | if ( ev->description().length() > 0 ) { |
662 | if ( !needClose) | 666 | if ( !needClose) |
663 | mText +="["; | 667 | mText +="["; |
664 | mText += "i"; | 668 | mText += "i"; |
665 | needClose =true; | 669 | needClose =true; |
666 | } | 670 | } |
667 | // if ( ev->recurrence()->doesRecur() ) { | 671 | // if ( ev->recurrence()->doesRecur() ) { |
668 | // if ( !needClose) | 672 | // if ( !needClose) |
669 | // mText +="("; | 673 | // mText +="("; |
670 | // mText += "r"; | 674 | // mText += "r"; |
671 | // needClose =true; | 675 | // needClose =true; |
672 | // } | 676 | // } |
673 | if ( needClose ) | 677 | if ( needClose ) |
674 | mText += "] "; | 678 | mText += "] "; |
675 | if ( ev->cancelled() ) | 679 | if ( ev->cancelled() ) |
676 | mText += "</font>"; | 680 | mText += "</font>"; |
677 | mText += "<a href=\"todo:" + ev->uid() + "\">"; | 681 | mText += "<a href=\"todo:" + ev->uid() + "\">"; |
678 | if ( ev->summary().length() > 0 ) | 682 | if ( ev->summary().length() > 0 ) |
679 | mText += ev->summary(); | 683 | mText += ev->summary(); |
680 | else | 684 | else |
681 | mText += i18n("-no summary-"); | 685 | mText += i18n("-no summary-"); |
682 | mText += "</a>"; | 686 | mText += "</a>"; |
683 | if ( ((Todo*)ev)->hasDueDate () ) { | 687 | if ( ((Todo*)ev)->hasDueDate () ) { |
684 | QString year = ""; | 688 | QString year = ""; |
685 | int ye = ((Todo*)ev)->dtDue().date().year(); | 689 | int ye = ((Todo*)ev)->dtDue().date().year(); |
686 | if ( QDateTime::currentDateTime().date().year() != ye ) | 690 | if ( QDateTime::currentDateTime().date().year() != ye ) |
687 | year = QString::number( ye ); | 691 | year = QString::number( ye ); |
688 | QString dfs = KGlobal::locale()->dateFormatShort(); | 692 | QString dfs = KGlobal::locale()->dateFormatShort(); |
689 | KGlobal::locale()->setDateFormatShort("%d.%b"); | 693 | KGlobal::locale()->setDateFormatShort("%d.%b"); |
690 | mText +="<font color=\"#00A000\"> [" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "."+ year +"]</font>"; | 694 | mText +="<font color=\"#00A000\"> [" + KGlobal::locale()->formatDate(((Todo*)ev)->dtDue().date(), true, KLocale::Userdefined) + "."+ year +"]</font>"; |
691 | KGlobal::locale()->setDateFormatShort(dfs); | 695 | KGlobal::locale()->setDateFormatShort(dfs); |
692 | } | 696 | } |
693 | if ( KOPrefs::instance()->mWNViewShowLocation ) | 697 | if ( KOPrefs::instance()->mWNViewShowLocation ) |
694 | if ( !ev->location().isEmpty() ) | 698 | if ( !ev->location().isEmpty() ) |
695 | mText += " ("+ev->location() +")"; | 699 | mText += " ("+ev->location() +")"; |
696 | if ( !isSub ) { | 700 | if ( !isSub ) { |
697 | if ( ((Todo*)ev)->relatedTo()&& KOPrefs::instance()->mWNViewShowsParents) | 701 | if ( ((Todo*)ev)->relatedTo()&& KOPrefs::instance()->mWNViewShowsParents) |
698 | mText += " ["+ev->relatedTo()->summary() +"]"; | 702 | mText += " ["+ev->relatedTo()->summary() +"]"; |
699 | mText += "</p>\n"; | 703 | mText += "</p>\n"; |
700 | } | 704 | } |
701 | else { | 705 | else { |
702 | ind += "-"; | 706 | ind += "-"; |
703 | mText += "</li>\n"; | 707 | mText += "</li>\n"; |
704 | } | 708 | } |
705 | QPtrList<Incidence> Relations = ev->relations(); | 709 | QPtrList<Incidence> Relations = ev->relations(); |
706 | Incidence *to; | 710 | Incidence *to; |
707 | for (to=Relations.first();to;to=Relations.next()) { | 711 | for (to=Relations.first();to;to=Relations.next()) { |
708 | if (!((Todo*)to)->isCompleted()) | 712 | if (!((Todo*)to)->isCompleted()) |
709 | appendTodo( to, ind , true ); | 713 | appendTodo( to, ind , true ); |
710 | } | 714 | } |
711 | 715 | ||
712 | return true; | 716 | return true; |
713 | } | 717 | } |
714 | 718 | ||
715 | /* | 719 | /* |
716 | void KOWhatsNextView::createEventViewer() | 720 | void KOWhatsNextView::createEventViewer() |
717 | { | 721 | { |
718 | if (!mEventViewer) { | 722 | if (!mEventViewer) { |
719 | 723 | ||
720 | mEventViewer = new KOEventViewerDialog(this); | 724 | mEventViewer = new KOEventViewerDialog(this); |
721 | } | 725 | } |
722 | } | 726 | } |
723 | */ | 727 | */ |
724 | void KOWhatsNextView::setEventViewer(KOEventViewerDialog* v ) | 728 | void KOWhatsNextView::setEventViewer(KOEventViewerDialog* v ) |
725 | { | 729 | { |
726 | mEventViewer = v; | 730 | mEventViewer = v; |
727 | } | 731 | } |
728 | 732 | ||
729 | // TODO: Create this function in CalendarView and remove it from here | 733 | // TODO: Create this function in CalendarView and remove it from here |
730 | void KOWhatsNextView::showIncidence(const QString &uid) | 734 | void KOWhatsNextView::showIncidence(const QString &uid) |
731 | { | 735 | { |
732 | 736 | ||
733 | if ( !mEventViewer ) { | 737 | if ( !mEventViewer ) { |
734 | qDebug("KOWhatsNextView::showIncidence::sorry, no event viewer set "); | 738 | qDebug("KOWhatsNextView::showIncidence::sorry, no event viewer set "); |
735 | return; | 739 | return; |
736 | } | 740 | } |
737 | //kdDebug() << "KOWhatsNextView::showIncidence(): " << uid << endl; | 741 | //kdDebug() << "KOWhatsNextView::showIncidence(): " << uid << endl; |
738 | //qDebug("KOWhatsNextView::showIncidence %s ", uid.latin1()); | 742 | //qDebug("KOWhatsNextView::showIncidence %s ", uid.latin1()); |
739 | if (uid.startsWith("event:")) { | 743 | if (uid.startsWith("event:")) { |
740 | #ifdef DESKTOP_VERSION | 744 | #ifdef DESKTOP_VERSION |
741 | Event *event = calendar()->event(uid.mid(8)); | 745 | Event *event = calendar()->event(uid.mid(8)); |
742 | #else | 746 | #else |
743 | Event *event = calendar()->event(uid.mid(6)); | 747 | Event *event = calendar()->event(uid.mid(6)); |
744 | #endif | 748 | #endif |
745 | //qDebug("event %d uid %s ", event, uid.mid(6).latin1()); | 749 | //qDebug("event %d uid %s ", event, uid.mid(6).latin1()); |
746 | if (!event) return; | 750 | if (!event) return; |
747 | //createEventViewer(); | 751 | //createEventViewer(); |
748 | mEventViewer->setEvent(event); | 752 | mEventViewer->setEvent(event); |
749 | } else if (uid.startsWith("todo:")) { | 753 | } else if (uid.startsWith("todo:")) { |
750 | #ifdef DESKTOP_VERSION | 754 | #ifdef DESKTOP_VERSION |
751 | Todo *todo = calendar()->todo(uid.mid(7)); | 755 | Todo *todo = calendar()->todo(uid.mid(7)); |
752 | #else | 756 | #else |
753 | Todo *todo = calendar()->todo(uid.mid(5)); | 757 | Todo *todo = calendar()->todo(uid.mid(5)); |
754 | #endif | 758 | #endif |
755 | if (!todo) return; | 759 | if (!todo) return; |
756 | //createEventViewer(); | 760 | //createEventViewer(); |
757 | mEventViewer->setTodo(todo); | 761 | mEventViewer->setTodo(todo); |
758 | } else { | 762 | } else { |
759 | return; | 763 | return; |
760 | 764 | ||
761 | } | 765 | } |
762 | mEventViewer->showMe(); | 766 | mEventViewer->showMe(); |
763 | mEventViewer->raise(); | 767 | mEventViewer->raise(); |
764 | } | 768 | } |
diff --git a/libkdepim/kdateedit.cpp b/libkdepim/kdateedit.cpp index c4c0081..2c78ea3 100644 --- a/libkdepim/kdateedit.cpp +++ b/libkdepim/kdateedit.cpp | |||
@@ -45,453 +45,454 @@ KDateEdit::KDateEdit(QWidget *parent, const char *name, bool withoutDP ) | |||
45 | { | 45 | { |
46 | dateFormShort = true; | 46 | dateFormShort = true; |
47 | withoutDp = withoutDP; | 47 | withoutDp = withoutDP; |
48 | mDateEdit = new QLineEdit(this); | 48 | mDateEdit = new QLineEdit(this); |
49 | mDateEdit->setText(KGlobal::locale()->formatDate(QDate::currentDate(),dateFormShort)); | 49 | mDateEdit->setText(KGlobal::locale()->formatDate(QDate::currentDate(),dateFormShort)); |
50 | setFocusProxy(mDateEdit); | 50 | setFocusProxy(mDateEdit); |
51 | mDateEdit->installEventFilter(this); | 51 | mDateEdit->installEventFilter(this); |
52 | 52 | ||
53 | // Highlight Background and Textcolor | 53 | // Highlight Background and Textcolor |
54 | QPalette palette = QWidget::palette(); | 54 | QPalette palette = QWidget::palette(); |
55 | unsigned char red, green, blue; | 55 | unsigned char red, green, blue; |
56 | red = palette.color( QPalette::Normal , QColorGroup::Background ).red() - 10; | 56 | red = palette.color( QPalette::Normal , QColorGroup::Background ).red() - 10; |
57 | green = palette.color( QPalette::Normal , QColorGroup::Background ).green() - 10; | 57 | green = palette.color( QPalette::Normal , QColorGroup::Background ).green() - 10; |
58 | blue = palette.color( QPalette::Normal , QColorGroup::Background ).blue() - 10; | 58 | blue = palette.color( QPalette::Normal , QColorGroup::Background ).blue() - 10; |
59 | palette.setColor( QColorGroup::Highlight, QColor(red,green,blue) ); | 59 | palette.setColor( QColorGroup::Highlight, QColor(red,green,blue) ); |
60 | palette.setColor( QColorGroup::HighlightedText, palette.color( QPalette::Normal , QColorGroup::Foreground ) ); | 60 | palette.setColor( QColorGroup::HighlightedText, palette.color( QPalette::Normal , QColorGroup::Foreground ) ); |
61 | mDateEdit->setPalette( palette ); | 61 | mDateEdit->setPalette( palette ); |
62 | 62 | ||
63 | if ( withoutDP ) { | 63 | if ( withoutDP ) { |
64 | mDateFrame = 0; | 64 | mDateFrame = 0; |
65 | mDateButton = 0; | 65 | mDateButton = 0; |
66 | mDatePicker = 0; | 66 | mDatePicker = 0; |
67 | } else { | 67 | } else { |
68 | QPixmap pixmap = SmallIcon("smallcal"); | 68 | QPixmap pixmap = SmallIcon("smallcal"); |
69 | mDateButton = new QPushButton(this); | 69 | mDateButton = new QPushButton(this); |
70 | mDateButton->setPixmap(pixmap); | 70 | mDateButton->setPixmap(pixmap); |
71 | 71 | ||
72 | mDateFrame = new QVBox(0,0,WType_Popup); | 72 | mDateFrame = new QVBox(0,0,WType_Popup); |
73 | // mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); | 73 | // mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); |
74 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); | 74 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); |
75 | mDateFrame->setLineWidth(3); | 75 | mDateFrame->setLineWidth(3); |
76 | mDateFrame->hide(); | 76 | mDateFrame->hide(); |
77 | 77 | ||
78 | mDatePicker = new KDatePicker(mDateFrame,QDate::currentDate()); | 78 | mDatePicker = new KDatePicker(mDateFrame,QDate::currentDate()); |
79 | connect(mDatePicker,SIGNAL(dateEntered(QDate)),SLOT(setDate(QDate))); | 79 | connect(mDatePicker,SIGNAL(dateEntered(QDate)),SLOT(setDate(QDate))); |
80 | connect(mDatePicker,SIGNAL(dateEntered(QDate)),SIGNAL(dateChanged(QDate))); | 80 | connect(mDatePicker,SIGNAL(dateEntered(QDate)),SIGNAL(dateChanged(QDate))); |
81 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(setDate(QDate))); | 81 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(setDate(QDate))); |
82 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SIGNAL(dateChanged(QDate))); | 82 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SIGNAL(dateChanged(QDate))); |
83 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),mDateFrame,SLOT(hide())); | 83 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),mDateFrame,SLOT(hide())); |
84 | connect(mDateButton,SIGNAL(clicked()),SLOT(toggleDatePicker())); | 84 | connect(mDateButton,SIGNAL(clicked()),SLOT(toggleDatePicker())); |
85 | 85 | ||
86 | //mDateFrame->resize( 400, 300 ); | 86 | //mDateFrame->resize( 400, 300 ); |
87 | 87 | ||
88 | } | 88 | } |
89 | connect(mDateEdit,SIGNAL(returnPressed()),SLOT(lineEnterPressed())); | 89 | connect(mDateEdit,SIGNAL(returnPressed()),SLOT(lineEnterPressed())); |
90 | connect(mDateEdit,SIGNAL(textChanged(const QString &)), | 90 | connect(mDateEdit,SIGNAL(textChanged(const QString &)), |
91 | SLOT(textChanged(const QString &))); | 91 | SLOT(textChanged(const QString &))); |
92 | 92 | ||
93 | // Create the keyword list. This will be used to match against when the user | 93 | // Create the keyword list. This will be used to match against when the user |
94 | // enters information. | 94 | // enters information. |
95 | mKeywordMap[i18n("tomorrow")] = 1; | 95 | mKeywordMap[i18n("tomorrow")] = 1; |
96 | mKeywordMap[i18n("today")] = 0; | 96 | mKeywordMap[i18n("today")] = 0; |
97 | mKeywordMap[i18n("yesterday")] = -1; | 97 | mKeywordMap[i18n("yesterday")] = -1; |
98 | 98 | ||
99 | /* | 99 | /* |
100 | * This loop uses some math tricks to figure out the offset in days | 100 | * This loop uses some math tricks to figure out the offset in days |
101 | * to the next date the given day of the week occurs. There | 101 | * to the next date the given day of the week occurs. There |
102 | * are two cases, that the new day is >= the current day, which means | 102 | * are two cases, that the new day is >= the current day, which means |
103 | * the new day has not occured yet or that the new day < the current day, | 103 | * the new day has not occured yet or that the new day < the current day, |
104 | * which means the new day is already passed (so we need to find the | 104 | * which means the new day is already passed (so we need to find the |
105 | * day in the next week). | 105 | * day in the next week). |
106 | */ | 106 | */ |
107 | QString dayName; | 107 | QString dayName; |
108 | int currentDay = QDate::currentDate().dayOfWeek(); | 108 | int currentDay = QDate::currentDate().dayOfWeek(); |
109 | for (int i = 1; i <= 7; ++i) | 109 | for (int i = 1; i <= 7; ++i) |
110 | { | 110 | { |
111 | dayName = KGlobal::locale()->weekDayName(i).lower(); | 111 | dayName = KGlobal::locale()->weekDayName(i).lower(); |
112 | if (i >= currentDay) | 112 | if (i >= currentDay) |
113 | mKeywordMap[dayName] = i - currentDay; | 113 | mKeywordMap[dayName] = i - currentDay; |
114 | else | 114 | else |
115 | mKeywordMap[dayName] = 7 - currentDay + i; | 115 | mKeywordMap[dayName] = 7 - currentDay + i; |
116 | } | 116 | } |
117 | 117 | ||
118 | mTextChanged = false; | 118 | mTextChanged = false; |
119 | mHandleInvalid = false; | 119 | mHandleInvalid = false; |
120 | QWidget::setTabOrder( mDateEdit, mDateButton ); | 120 | QWidget::setTabOrder( mDateEdit, mDateButton ); |
121 | } | 121 | } |
122 | 122 | ||
123 | KDateEdit::~KDateEdit() | 123 | KDateEdit::~KDateEdit() |
124 | { | 124 | { |
125 | delete mDateFrame; | 125 | delete mDateFrame; |
126 | } | 126 | } |
127 | void KDateEdit::clear() | 127 | void KDateEdit::clear() |
128 | { | 128 | { |
129 | bool b = mDateEdit->signalsBlocked(); | 129 | bool b = mDateEdit->signalsBlocked(); |
130 | mDateEdit->blockSignals(true); | 130 | mDateEdit->blockSignals(true); |
131 | mDateEdit->setText(""); | 131 | mDateEdit->setText(""); |
132 | mDateEdit->blockSignals(b); | 132 | mDateEdit->blockSignals(b); |
133 | } | 133 | } |
134 | void KDateEdit::setDate(QDate newDate) | 134 | void KDateEdit::setDate(QDate newDate) |
135 | { | 135 | { |
136 | if (!newDate.isValid() && !mHandleInvalid) | 136 | if (!newDate.isValid() && !mHandleInvalid) |
137 | return; | 137 | return; |
138 | if ( readDate() == newDate ) | 138 | if ( readDate() == newDate ) |
139 | return; | 139 | return; |
140 | QString dateString = ""; | 140 | QString dateString = ""; |
141 | if(newDate.isValid()) | 141 | if(newDate.isValid()) |
142 | dateString = KGlobal::locale()->formatDate( newDate, dateFormShort ); | 142 | dateString = KGlobal::locale()->formatDate( newDate, dateFormShort ); |
143 | 143 | ||
144 | mTextChanged = false; | 144 | mTextChanged = false; |
145 | 145 | ||
146 | // We do not want to generate a signal here, since we explicity setting | 146 | // We do not want to generate a signal here, since we explicity setting |
147 | // the date | 147 | // the date |
148 | bool b = mDateEdit->signalsBlocked(); | 148 | bool b = mDateEdit->signalsBlocked(); |
149 | mDateEdit->blockSignals(true); | 149 | mDateEdit->blockSignals(true); |
150 | mDateEdit->setText(dateString); | 150 | mDateEdit->setText(dateString); |
151 | mDateEdit->blockSignals(b); | 151 | mDateEdit->blockSignals(b); |
152 | } | 152 | } |
153 | 153 | ||
154 | void KDateEdit::setDate( QDate date,int *cpos,const int key ,const bool dateFormShort) | 154 | void KDateEdit::setDate( QDate date,int *cpos,const int key ,const bool dateFormShort) |
155 | { | 155 | { |
156 | QString dateForm = dateFormShort ? | 156 | QString dateForm = dateFormShort ? |
157 | KGlobal::locale()->dateFormatShort() : | 157 | KGlobal::locale()->dateFormatShort() : |
158 | KGlobal::locale()->dateFormat(); | 158 | KGlobal::locale()->dateFormat(); |
159 | 159 | ||
160 | int begin = dateForm.find("%"); | 160 | int begin = dateForm.find("%"); |
161 | int space = 0; | 161 | int space = 0; |
162 | int allStrLength = 0; | 162 | int allStrLength = 0; |
163 | int strLength = 0; | 163 | int strLength = 0; |
164 | int repeat = 0; | 164 | int repeat = 0; |
165 | 165 | ||
166 | // witch? Day, Month or Year switch? | 166 | // witch? Day, Month or Year switch? |
167 | while(1){ | 167 | while(1){ |
168 | switch ( dateForm.at(begin + 1).latin1() ) | 168 | switch ( dateForm.at(begin + 1).latin1() ) |
169 | { | 169 | { |
170 | case 'd':// 16 (month day) | 170 | case 'd':// 16 (month day) |
171 | strLength = 2; //Ok | 171 | strLength = 2; //Ok |
172 | break; | 172 | break; |
173 | case 'm':// 01 (month) | 173 | case 'm':// 01 (month) |
174 | strLength = 2; //Ok | 174 | strLength = 2; //Ok |
175 | break; | 175 | break; |
176 | case 'a':// Mon (Weekday) | 176 | case 'a':// Mon (Weekday) |
177 | strLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), true).length(); | 177 | strLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), true).length(); |
178 | break; | 178 | break; |
179 | case 'A':// Monday (Weekday) | 179 | case 'A':// Monday (Weekday) |
180 | strLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), false).length(); | 180 | strLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), false).length(); |
181 | break; | 181 | break; |
182 | case 'b':// Jan (monthName) | 182 | case 'b':// Jan (monthName) |
183 | strLength = KGlobal::locale()->monthName(date.month(), true).length(); | 183 | strLength = KGlobal::locale()->monthName(date.month(), true).length(); |
184 | break; | 184 | break; |
185 | case 'B':// January (monthName) | 185 | case 'B':// January (monthName) |
186 | strLength = KGlobal::locale()->monthName(date.month(), false).length(); | 186 | strLength = KGlobal::locale()->monthName(date.month(), false).length(); |
187 | break; | 187 | break; |
188 | case 'y':// 04 (year short) | 188 | case 'y':// 04 (year short) |
189 | strLength = 2; //Ok | 189 | strLength = 2; //Ok |
190 | break; | 190 | break; |
191 | case 'Y':// 2004 (year) | 191 | case 'Y':// 2004 (year) |
192 | strLength = 4; //Ok | 192 | strLength = 4; //Ok |
193 | break; | 193 | break; |
194 | default: | 194 | default: |
195 | break; | 195 | break; |
196 | } | 196 | } |
197 | space = begin - (repeat++ * 2); | 197 | space = begin - (repeat++ * 2); |
198 | // all select? then dayswitch | 198 | // all select? then dayswitch |
199 | if( (mDateEdit->text().length() == mDateEdit->markedText().length() ) && | 199 | if( (mDateEdit->text().length() == mDateEdit->markedText().length() ) && |
200 | ( (dateForm.at(begin + 1).latin1() == 'd') || | 200 | ( (dateForm.at(begin + 1).latin1() == 'd') || |
201 | (dateForm.at(begin + 1).latin1() == 'a') || | 201 | (dateForm.at(begin + 1).latin1() == 'a') || |
202 | (dateForm.at(begin + 1).latin1() == 'A') ) ) { | 202 | (dateForm.at(begin + 1).latin1() == 'A') ) ) { |
203 | break; | 203 | break; |
204 | } | 204 | } |
205 | // mDateEdit-StringPos == CursorPosition(cpos) then break and set date | 205 | // mDateEdit-StringPos == CursorPosition(cpos) then break and set date |
206 | if( ( (space + allStrLength) <= *cpos && *cpos <= (space + allStrLength + strLength) ) || *cpos < begin ) { | 206 | if( ( (space + allStrLength) <= *cpos && *cpos <= (space + allStrLength + strLength) ) || *cpos < begin ) { |
207 | break; | 207 | break; |
208 | } | 208 | } |
209 | allStrLength += strLength; | 209 | allStrLength += strLength; |
210 | begin = dateForm.find("%", begin +1); | 210 | begin = dateForm.find("%", begin +1); |
211 | } | 211 | } |
212 | 212 | ||
213 | // set date | 213 | // set date |
214 | switch ( dateForm.at(begin + 1).latin1() ) { | 214 | switch ( dateForm.at(begin + 1).latin1() ) { |
215 | case 'd': | 215 | case 'd': |
216 | case 'a': | 216 | case 'a': |
217 | case 'A': | 217 | case 'A': |
218 | if(key == Key_Up) { | 218 | if(key == Key_Up) { |
219 | setDate( date.addDays( 1 ) ); | 219 | setDate( date.addDays( 1 ) ); |
220 | } | 220 | } |
221 | else if(key == Key_Down) { | 221 | else if(key == Key_Down) { |
222 | setDate( date.addDays( -1 ) ); | 222 | setDate( date.addDays( -1 ) ); |
223 | } | 223 | } |
224 | maxDay = readDate().day(); | 224 | maxDay = readDate().day(); |
225 | break; | 225 | break; |
226 | case 'm': | 226 | case 'm': |
227 | case 'b': | 227 | case 'b': |
228 | case 'B': | 228 | case 'B': |
229 | if(key == Key_Up) { | 229 | if(key == Key_Up) { |
230 | int year = ((date.month()+1)>12)?date.year()+1:date.year(); | 230 | int year = ((date.month()+1)>12)?date.year()+1:date.year(); |
231 | int month = ((date.month()+1)>12)?1:date.month()+1; | 231 | int month = ((date.month()+1)>12)?1:date.month()+1; |
232 | int day = (QDate(year,month,1).daysInMonth()<maxDay)?QDate(year,month,1).daysInMonth():maxDay; | 232 | int day = (QDate(year,month,1).daysInMonth()<maxDay)?QDate(year,month,1).daysInMonth():maxDay; |
233 | setDate( QDate( year, month, day ) ); | 233 | setDate( QDate( year, month, day ) ); |
234 | } else if(key == Key_Down) { | 234 | } else if(key == Key_Down) { |
235 | int year = ((date.month()-1)<1)?date.year()-1:date.year(); | 235 | int year = ((date.month()-1)<1)?date.year()-1:date.year(); |
236 | int month = ((date.month()-1)<1)?12:date.month()-1; | 236 | int month = ((date.month()-1)<1)?12:date.month()-1; |
237 | int day = (QDate(year,month,1).daysInMonth()<maxDay)?QDate(year,month,1).daysInMonth():maxDay; | 237 | int day = (QDate(year,month,1).daysInMonth()<maxDay)?QDate(year,month,1).daysInMonth():maxDay; |
238 | setDate( QDate( year, month, day ) ); | 238 | setDate( QDate( year, month, day ) ); |
239 | } | 239 | } |
240 | break; | 240 | break; |
241 | case 'y': | 241 | case 'y': |
242 | case 'Y': | 242 | case 'Y': |
243 | if(key == Key_Up) { | 243 | if(key == Key_Up) { |
244 | setDate( QDate( date.year() + 1, date.month() , date.day()) ); | 244 | setDate( QDate( date.year() + 1, date.month() , date.day()) ); |
245 | } | 245 | } |
246 | else if(key == Key_Down) { | 246 | else if(key == Key_Down) { |
247 | setDate( QDate( date.year() - 1, date.month() , date.day()) ); | 247 | setDate( QDate( date.year() - 1, date.month() , date.day()) ); |
248 | } | 248 | } |
249 | break; | 249 | break; |
250 | /* default: | 250 | /* default: |
251 | if(key == Key_Up) { | 251 | if(key == Key_Up) { |
252 | setDate( date.addDays( 1 ) ); | 252 | setDate( date.addDays( 1 ) ); |
253 | } else if(key == Key_Down) { | 253 | } else if(key == Key_Down) { |
254 | setDate( date.addDays( -1 ) ); | 254 | setDate( date.addDays( -1 ) ); |
255 | } | 255 | } |
256 | break;*/ | 256 | break;*/ |
257 | } | 257 | } |
258 | 258 | ||
259 | date = readDate(); | 259 | date = readDate(); |
260 | begin = dateForm.find("%"); | 260 | begin = dateForm.find("%"); |
261 | int allSelectStrLength = 0; | 261 | int allSelectStrLength = 0; |
262 | int selectStrLength = 0; | 262 | int selectStrLength = 0; |
263 | 263 | ||
264 | // set selection do new date an set cursor at end of selection | 264 | // set selection do new date an set cursor at end of selection |
265 | for(int i = 0; i < repeat; i++){ | 265 | for(int i = 0; i < repeat; i++){ |
266 | switch ( dateForm.at(begin + 1).latin1() ) | 266 | switch ( dateForm.at(begin + 1).latin1() ) |
267 | { | 267 | { |
268 | case 'd':// 16 (month day) | 268 | case 'd':// 16 (month day) |
269 | selectStrLength = 2; //Ok | 269 | selectStrLength = 2; //Ok |
270 | break; | 270 | break; |
271 | case 'm':// 01 (month) | 271 | case 'm':// 01 (month) |
272 | selectStrLength = 2; //Ok | 272 | selectStrLength = 2; //Ok |
273 | break; | 273 | break; |
274 | case 'a':// Mon (Weekday short) | 274 | case 'a':// Mon (Weekday short) |
275 | selectStrLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), true).length(); | 275 | selectStrLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), true).length(); |
276 | break; | 276 | break; |
277 | case 'A':// Monday (Weekday) | 277 | case 'A':// Monday (Weekday) |
278 | selectStrLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), false).length(); | 278 | selectStrLength = KGlobal::locale()->weekDayName(date.dayOfWeek(), false).length(); |
279 | break; | 279 | break; |
280 | case 'b':// Jan (monthName short) | 280 | case 'b':// Jan (monthName short) |
281 | selectStrLength = KGlobal::locale()->monthName(date.month(), true).length(); | 281 | selectStrLength = KGlobal::locale()->monthName(date.month(), true).length(); |
282 | break; | 282 | break; |
283 | case 'B':// January (monthName) | 283 | case 'B':// January (monthName) |
284 | selectStrLength = KGlobal::locale()->monthName(date.month(), false).length(); | 284 | selectStrLength = KGlobal::locale()->monthName(date.month(), false).length(); |
285 | break; | 285 | break; |
286 | case 'y':// 04 (year short) | 286 | case 'y':// 04 (year short) |
287 | selectStrLength = 2; //Ok | 287 | selectStrLength = 2; //Ok |
288 | break; | 288 | break; |
289 | case 'Y':// 2004 (year) | 289 | case 'Y':// 2004 (year) |
290 | selectStrLength = 4; //Ok | 290 | selectStrLength = 4; //Ok |
291 | break; | 291 | break; |
292 | default: | 292 | default: |
293 | break; | 293 | break; |
294 | } | 294 | } |
295 | space = begin - (i * 2); | 295 | space = begin - (i * 2); |
296 | allSelectStrLength += selectStrLength; | 296 | allSelectStrLength += selectStrLength; |
297 | begin = dateForm.find("%", begin +1); | 297 | begin = dateForm.find("%", begin +1); |
298 | } | 298 | } |
299 | // set selection from begin of date | 299 | // set selection from begin of date |
300 | setSelect( space + allSelectStrLength - selectStrLength , selectStrLength); | 300 | setSelect( space + allSelectStrLength - selectStrLength , selectStrLength); |
301 | *cpos = space + allSelectStrLength; | 301 | *cpos = space + allSelectStrLength; |
302 | emit(dateChanged(date)); | 302 | emit(dateChanged(date)); |
303 | 303 | ||
304 | return; | 304 | return; |
305 | } | 305 | } |
306 | 306 | ||
307 | void KDateEdit::setHandleInvalid(bool handleInvalid) | 307 | void KDateEdit::setHandleInvalid(bool handleInvalid) |
308 | { | 308 | { |
309 | mHandleInvalid = handleInvalid; | 309 | mHandleInvalid = handleInvalid; |
310 | } | 310 | } |
311 | 311 | ||
312 | void KDateEdit::setEnabled(bool on) | 312 | void KDateEdit::setEnabled(bool on) |
313 | { | 313 | { |
314 | mDateEdit->setEnabled(on); | 314 | mDateEdit->setEnabled(on); |
315 | mDateButton->setEnabled(on); | 315 | mDateButton->setEnabled(on); |
316 | } | 316 | } |
317 | 317 | ||
318 | QDate KDateEdit::date() const | 318 | QDate KDateEdit::date() const |
319 | { | 319 | { |
320 | QDate date = readDate(); | 320 | QDate date = readDate(); |
321 | 321 | ||
322 | if (date.isValid() || mHandleInvalid) { | 322 | if (date.isValid() || mHandleInvalid) { |
323 | return date; | 323 | return date; |
324 | } else { | 324 | } else { |
325 | KNotifyClient::beep(); | 325 | KNotifyClient::beep(); |
326 | return QDate::currentDate(); | 326 | return QDate::currentDate(); |
327 | } | 327 | } |
328 | } | 328 | } |
329 | 329 | ||
330 | void KDateEdit::keyPressEvent(QKeyEvent *e) | 330 | void KDateEdit::keyPressEvent(QKeyEvent *e) |
331 | { | 331 | { |
332 | QDate date = readDate(); | 332 | QDate date = readDate(); |
333 | int cpos = mDateEdit->cursorPosition(); | 333 | int cpos = mDateEdit->cursorPosition(); |
334 | 334 | ||
335 | switch(e->key()) | 335 | switch(e->key()) |
336 | { | 336 | { |
337 | case Key_Escape: | 337 | case Key_Escape: |
338 | mDateEdit->deselect(); | 338 | mDateEdit->deselect(); |
339 | case Key_Tab: | 339 | case Key_Tab: |
340 | QHBox::keyPressEvent(e); | 340 | QHBox::keyPressEvent(e); |
341 | break; | 341 | break; |
342 | case Key_Up: | 342 | case Key_Up: |
343 | // when date invalid then set to currend and return | 343 | // when date invalid then set to currend and return |
344 | if(!date.isValid()) { | 344 | if(!date.isValid()) { |
345 | date = QDate::currentDate(); | 345 | date = QDate::currentDate(); |
346 | setDate(date); | 346 | setDate(date); |
347 | mDateEdit->setCursorPosition(cpos); | 347 | mDateEdit->setCursorPosition(cpos); |
348 | emit(dateChanged(date)); | 348 | emit(dateChanged(date)); |
349 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); | 349 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); |
350 | KMessageBox::information( 0, text ); | 350 | KMessageBox::information( 0, text ); |
351 | return; | 351 | return; |
352 | } | 352 | } |
353 | setDate(date, &cpos, Key_Up, dateFormShort); | 353 | setDate(date, &cpos, Key_Up, dateFormShort); |
354 | break; | 354 | break; |
355 | case Key_Down: | 355 | case Key_Down: |
356 | // when date invalid then set to current and return | 356 | // when date invalid then set to current and return |
357 | if(!date.isValid()) { | 357 | if(!date.isValid()) { |
358 | date = QDate::currentDate(); | 358 | date = QDate::currentDate(); |
359 | setDate(date); | 359 | setDate(date); |
360 | mDateEdit->setCursorPosition(cpos); | 360 | mDateEdit->setCursorPosition(cpos); |
361 | emit(dateChanged(date)); | 361 | emit(dateChanged(date)); |
362 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); | 362 | QString text = i18n( "You entered an invalid date!\n Date changed to current date." ); |
363 | KMessageBox::information( 0, text ); | 363 | KMessageBox::information( 0, text ); |
364 | return; | 364 | return; |
365 | } | 365 | } |
366 | setDate(date, &cpos, Key_Down, dateFormShort); | 366 | setDate(date, &cpos, Key_Down, dateFormShort); |
367 | break; | 367 | break; |
368 | default: | 368 | default: |
369 | QHBox::keyPressEvent(e); | 369 | QHBox::keyPressEvent(e); |
370 | break; | 370 | break; |
371 | } // switch | 371 | } // switch |
372 | mDateEdit->setCursorPosition(cpos); | 372 | mDateEdit->setCursorPosition(cpos); |
373 | } | 373 | } |
374 | 374 | ||
375 | void KDateEdit::setSelect( int from, int to ) | 375 | void KDateEdit::setSelect( int from, int to ) |
376 | { | 376 | { |
377 | // return; | 377 | // return; |
378 | mDateEdit->setSelection( from , to ); | 378 | mDateEdit->setSelection( from , to ); |
379 | } | 379 | } |
380 | 380 | ||
381 | void KDateEdit::toggleDatePicker() | 381 | void KDateEdit::toggleDatePicker() |
382 | { | 382 | { |
383 | if( mDateFrame->isVisible() ) { | 383 | if( mDateFrame->isVisible() ) { |
384 | mDateFrame->hide(); | 384 | mDateFrame->hide(); |
385 | } else { | 385 | } else { |
386 | QPoint tmpPoint = mapToGlobal(mDateButton->geometry().bottomRight()); | 386 | QPoint tmpPoint = mapToGlobal(mDateButton->geometry().bottomRight()); |
387 | QSize datepickersize = mDatePicker->sizeHint(); | 387 | QSize datepickersize = mDatePicker->sizeHint(); |
388 | 388 | ||
389 | if ( tmpPoint.x() < 7+datepickersize.width() ) tmpPoint.setX( 7+datepickersize.width() ); | 389 | if ( tmpPoint.x() < 7+datepickersize.width() ) tmpPoint.setX( 7+datepickersize.width() ); |
390 | 390 | ||
391 | int h = QApplication::desktop()->height(); | 391 | int h = QApplication::desktop()->height(); |
392 | 392 | ||
393 | if ( tmpPoint.y() + datepickersize.height() > h ) tmpPoint.setY( h - datepickersize.height() ); | 393 | if ( tmpPoint.y() + datepickersize.height() > h ) tmpPoint.setY( h - datepickersize.height() ); |
394 | 394 | ||
395 | mDateFrame->setGeometry(tmpPoint.x()-datepickersize.width()-7, tmpPoint.y(), | 395 | mDateFrame->setGeometry(tmpPoint.x()-datepickersize.width()-7, tmpPoint.y(), |
396 | datepickersize.width()+2*mDateFrame->lineWidth(), datepickersize.height()+2*mDateFrame->lineWidth()); | 396 | datepickersize.width()+2*mDateFrame->lineWidth(), datepickersize.height()+2*mDateFrame->lineWidth()); |
397 | 397 | ||
398 | QDate date = readDate(); | 398 | QDate date = readDate(); |
399 | if(date.isValid()) { | 399 | if(date.isValid()) { |
400 | mDatePicker->setDate(date); | 400 | mDatePicker->setDate(date); |
401 | } else { | 401 | } else { |
402 | mDatePicker->setDate(QDate::currentDate()); | 402 | mDatePicker->setDate(QDate::currentDate()); |
403 | } | 403 | } |
404 | mDateFrame->show(); | 404 | mDateFrame->show(); |
405 | } | 405 | } |
406 | } | 406 | } |
407 | 407 | ||
408 | 408 | ||
409 | void KDateEdit::lineEnterPressed() | 409 | void KDateEdit::lineEnterPressed() |
410 | { | 410 | { |
411 | QDate date = readDate(); | 411 | QDate date = readDate(); |
412 | 412 | ||
413 | if(date.isValid()) | 413 | if(date.isValid()) |
414 | { | 414 | { |
415 | // Update the edit. This is needed if the user has entered a | 415 | // Update the edit. This is needed if the user has entered a |
416 | // word rather than the actual date. | 416 | // word rather than the actual date. |
417 | setDate(date); | 417 | setDate(date); |
418 | emit(dateChanged(date)); | 418 | emit(dateChanged(date)); |
419 | emit returnPressed(); | 419 | emit returnPressed(); |
420 | } | 420 | } |
421 | else | 421 | else |
422 | { | 422 | { |
423 | if ( withoutDp ) { | 423 | if ( withoutDp ) { |
424 | KNotifyClient::beep(); | 424 | KNotifyClient::beep(); |
425 | } else { | 425 | } else { |
426 | if ( !mDateEdit->text().isEmpty() ) { | 426 | if ( !mDateEdit->text().isEmpty() ) { |
427 | mTextChanged = false; | 427 | mTextChanged = false; |
428 | QString text = i18n( "You entered an invalid date!\n Will use current date instead." ); | 428 | QString text = i18n( "You entered an invalid date!\n Will use current date instead." ); |
429 | if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { | 429 | if ( isVisible() ) |
430 | setDate( QDate::currentDate() ); | 430 | if ( KMessageBox::warningContinueCancel( 0, text ) == KMessageBox::Continue ) { |
431 | emit dateChanged( QDate::currentDate() ); | 431 | setDate( QDate::currentDate() ); |
432 | } | 432 | emit dateChanged( QDate::currentDate() ); |
433 | } | ||
433 | } | 434 | } |
434 | } | 435 | } |
435 | } | 436 | } |
436 | } | 437 | } |
437 | 438 | ||
438 | bool KDateEdit::inputIsValid() | 439 | bool KDateEdit::inputIsValid() |
439 | { | 440 | { |
440 | return readDate().isValid(); | 441 | return readDate().isValid(); |
441 | } | 442 | } |
442 | 443 | ||
443 | QDate KDateEdit::readDate() const | 444 | QDate KDateEdit::readDate() const |
444 | { | 445 | { |
445 | QString text = mDateEdit->text(); | 446 | QString text = mDateEdit->text(); |
446 | QDate date; | 447 | QDate date; |
447 | 448 | ||
448 | if (mKeywordMap.contains(text.lower())) | 449 | if (mKeywordMap.contains(text.lower())) |
449 | { | 450 | { |
450 | date = QDate::currentDate().addDays(mKeywordMap[text.lower()]); | 451 | date = QDate::currentDate().addDays(mKeywordMap[text.lower()]); |
451 | } | 452 | } |
452 | else | 453 | else |
453 | { | 454 | { |
454 | date = KGlobal::locale()->readDate(text); | 455 | date = KGlobal::locale()->readDate(text); |
455 | } | 456 | } |
456 | 457 | ||
457 | return date; | 458 | return date; |
458 | } | 459 | } |
459 | 460 | ||
460 | bool KDateEdit::eventFilter(QObject *, QEvent *e) | 461 | bool KDateEdit::eventFilter(QObject *, QEvent *e) |
461 | { | 462 | { |
462 | // We only process the focus out event if the text has changed | 463 | // We only process the focus out event if the text has changed |
463 | // since we got focus | 464 | // since we got focus |
464 | if ((e->type() == QEvent::FocusOut) && mTextChanged) | 465 | if ((e->type() == QEvent::FocusOut) && mTextChanged) |
465 | { | 466 | { |
466 | lineEnterPressed(); | 467 | lineEnterPressed(); |
467 | mTextChanged = false; | 468 | mTextChanged = false; |
468 | } | 469 | } |
469 | // switch dateFormShort by double klick with mouse | 470 | // switch dateFormShort by double klick with mouse |
470 | else if (e->type() == QEvent::MouseButtonDblClick) | 471 | else if (e->type() == QEvent::MouseButtonDblClick) |
471 | { | 472 | { |
472 | toggleDateFormat(); | 473 | toggleDateFormat(); |
473 | } | 474 | } |
474 | else if (e->type() == QEvent::FocusIn) | 475 | else if (e->type() == QEvent::FocusIn) |
475 | { | 476 | { |
476 | maxDay = readDate().day(); | 477 | maxDay = readDate().day(); |
477 | } | 478 | } |
478 | 479 | ||
479 | return false; | 480 | return false; |
480 | } | 481 | } |
481 | void KDateEdit::toggleDateFormat() | 482 | void KDateEdit::toggleDateFormat() |
482 | { | 483 | { |
483 | dateFormShort = ! dateFormShort; | 484 | dateFormShort = ! dateFormShort; |
484 | mDateEdit->setText(KGlobal::locale()->formatDate(readDate(),dateFormShort)); | 485 | mDateEdit->setText(KGlobal::locale()->formatDate(readDate(),dateFormShort)); |
485 | 486 | ||
486 | } | 487 | } |
487 | 488 | ||
488 | void KDateEdit::textChanged(const QString &) | 489 | void KDateEdit::textChanged(const QString &) |
489 | { | 490 | { |
490 | if(mHandleInvalid && mDateEdit->text().stripWhiteSpace().isEmpty()) { | 491 | if(mHandleInvalid && mDateEdit->text().stripWhiteSpace().isEmpty()) { |
491 | QDate date; //invalid date | 492 | QDate date; //invalid date |
492 | emit(dateChanged(date)); | 493 | emit(dateChanged(date)); |
493 | } else { | 494 | } else { |
494 | mTextChanged = true; | 495 | mTextChanged = true; |
495 | } | 496 | } |
496 | maxDay = readDate().day(); | 497 | maxDay = readDate().day(); |
497 | } | 498 | } |