-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 10 | ||||
-rw-r--r-- | korganizer/koeditorgeneraltodo.cpp | 21 | ||||
-rw-r--r-- | korganizer/kolistview.cpp | 71 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 5 | ||||
-rw-r--r-- | libkcal/alarm.cpp | 2 | ||||
-rw-r--r-- | libkcal/event.cpp | 8 | ||||
-rw-r--r-- | libkcal/event.h | 1 | ||||
-rw-r--r-- | libkcal/incidence.cpp | 29 | ||||
-rw-r--r-- | libkcal/incidence.h | 3 | ||||
-rw-r--r-- | libkcal/todo.cpp | 10 | ||||
-rw-r--r-- | libkcal/todo.h | 1 |
11 files changed, 105 insertions, 56 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index f3f5333..ab8339f 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1,1543 +1,1545 @@ | |||
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 | { "Action","Aktion" }, | 47 | { "Action","Aktion" }, |
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 | { "Clone Item","Klone Eintrag" }, | 93 | { "Clone Item","Klone Eintrag" }, |
94 | { "&Close","S&chließen" }, | 94 | { "&Close","S&chließen" }, |
95 | { "Close","Schließen" }, | 95 | { "Close","Schließen" }, |
96 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, | 96 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, |
97 | { "Colors","Farben" }, | 97 | { "Colors","Farben" }, |
98 | { "completed","erledigt" }, | 98 | { "completed","erledigt" }, |
99 | { "completed on %1","erledigt am %1" }, | 99 | { "completed on %1","erledigt am %1" }, |
100 | { "Complete","Erledigt" }, | 100 | { "Complete","Erledigt" }, |
101 | { "Confidential","Vertraulich" }, | 101 | { "Confidential","Vertraulich" }, |
102 | { "Configure...","Einstellungen..." }, | 102 | { "Configure...","Einstellungen..." }, |
103 | { "Confirm &deletes","Löschvogang bestätigen" }, | 103 | { "Confirm &deletes","Löschvogang bestätigen" }, |
104 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, | 104 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, |
105 | { "Counter-event Viewer","Terminzähler Ansicht" }, | 105 | { "Counter-event Viewer","Terminzähler Ansicht" }, |
106 | { "Daily ending hour:","Feierabend:" }, | 106 | { "Daily ending hour:","Feierabend:" }, |
107 | { "Daily starting hour:","Anfangszeit:" }, | 107 | { "Daily starting hour:","Anfangszeit:" }, |
108 | { "Daily","Täglich" }, | 108 | { "Daily","Täglich" }, |
109 | { "Date Format","Datums Format" }, | 109 | { "Date Format","Datums Format" }, |
110 | { "Date Format:","Datums Format:" }, | 110 | { "Date Format:","Datums Format:" }, |
111 | { "DateNavigator:(nr)","Datums Navigator" }, | 111 | { "DateNavigator:(nr)","Datums Navigator" }, |
112 | { "Dates: ","Datum: " }, | 112 | { "Dates: ","Datum: " }, |
113 | { "Date && Time","Datum && Zeit" }, | 113 | { "Date && Time","Datum && Zeit" }, |
114 | { "Day begins at:","Der Tag beginnt um:" }, | 114 | { "Day begins at:","Der Tag beginnt um:" }, |
115 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, | 115 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, |
116 | { "Days in What's Next:","Tage in What's Next:" }, | 116 | { "Days in What's Next:","Tage in What's Next:" }, |
117 | { "day(s)","Tag(e)" }, | 117 | { "day(s)","Tag(e)" }, |
118 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, | 118 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, |
119 | { "day","Tag" }, | 119 | { "day","Tag" }, |
120 | { "Dec","Dez" }, | 120 | { "Dec","Dez" }, |
121 | { "December","Dezember" }, | 121 | { "December","Dezember" }, |
122 | { "Default alarm time:","Standard Alarmzeit:" }, | 122 | { "Default alarm time:","Standard Alarmzeit:" }, |
123 | { "Default appointment time:","Standard Termin Startzeit:" }, | 123 | { "Default appointment time:","Standard Termin Startzeit:" }, |
124 | { "Default event color:","Standard Terminfarbe:" }, | 124 | { "Default event color:","Standard Terminfarbe:" }, |
125 | { "Default","Standard" }, | 125 | { "Default","Standard" }, |
126 | { "Def. duration of new app.:","Standard Termin Länge:" }, | 126 | { "Def. duration of new app.:","Standard Termin Länge:" }, |
127 | { "Delete All","Lösche alles" }, | 127 | { "Delete All","Lösche alles" }, |
128 | { "Delete all selected","Lösche alle Selektierten" }, | 128 | { "Delete all selected","Lösche alle Selektierten" }, |
129 | { "Delete Current","Aktuellen löschen" }, | 129 | { "Delete Current","Aktuellen löschen" }, |
130 | { "Delete Event...","Lösche Termin..." }, | 130 | { "Delete Event...","Lösche Termin..." }, |
131 | { "Delete Event","Lösche Termin" }, | 131 | { "Delete Event","Lösche Termin" }, |
132 | { "&Delete...","Lösche..." }, | 132 | { "&Delete...","Lösche..." }, |
133 | { "Delete...","Lösche..." }, | 133 | { "Delete...","Lösche..." }, |
134 | { "Delete","Lösche" }, | 134 | { "Delete","Lösche" }, |
135 | { "Delete Todo...","Lösche Todo..." }, | 135 | { "Delete Todo...","Lösche Todo..." }, |
136 | { "Delete To-Do","Lösche Todo" }, | 136 | { "Delete To-Do","Lösche Todo" }, |
137 | { "Deleting item %d ...","Lösche Eintrag %d..." }, | 137 | { "Deleting item %d ...","Lösche Eintrag %d..." }, |
138 | { "Descriptions","Beschreibungen" }, | 138 | { "Descriptions","Beschreibungen" }, |
139 | { "Deselect all","Deselektiere Alle" }, | 139 | { "Deselect all","Deselektiere Alle" }, |
140 | { "Details","Details" }, | 140 | { "Details","Details" }, |
141 | { "Dinner","Abendessen" }, | 141 | { "Dinner","Abendessen" }, |
142 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, | 142 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, |
143 | { "Due Date","Fällig am" }, | 143 | { "Due Date","Fällig am" }, |
144 | { "Due: ","Fällig: "}, | 144 | { "Due: ","Fällig: "}, |
145 | { "Due Time","Fällig um" }, | 145 | { "Due Time","Fällig um" }, |
146 | { "Due:","Fällig:"}, | 146 | { "Due:","Fällig:"}, |
147 | { "Duration: ","Dauer: " }, | 147 | { "Duration: ","Dauer: " }, |
148 | { "Edit...","Bearbeite..." }, | 148 | { "Edit...","Bearbeite..." }, |
149 | { "Edit Event...","Bearbeite Termin..." }, | 149 | { "Edit Event...","Bearbeite Termin..." }, |
150 | { "Edit Event","Bearbeite Termin" }, | 150 | { "Edit Event","Bearbeite Termin" }, |
151 | { "Edit exceptions","Bearbeite Ausnahmen" }, | 151 | { "Edit exceptions","Bearbeite Ausnahmen" }, |
152 | { "EditorBox:","Editor Fenster:" }, | 152 | { "EditorBox:","Editor Fenster:" }, |
153 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, | 153 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, |
154 | { "Edit Todo...","Berabeite Todo..." }, | 154 | { "Edit Todo...","Berabeite Todo..." }, |
155 | { "Edit To-Do","Todo bearbeiten" }, | 155 | { "Edit To-Do","Todo bearbeiten" }, |
156 | { "E&mail address:","E&mail Adresse:" }, | 156 | { "E&mail address:","E&mail Adresse:" }, |
157 | { "(EmptyEmail)","(KeineEmail)" }, | 157 | { "(EmptyEmail)","(KeineEmail)" }, |
158 | { "(EmptyName)","(KeinName)" }, | 158 | { "(EmptyName)","(KeinName)" }, |
159 | { "Enable Recurrence","Wiederholung anschalten" }, | 159 | { "Enable Recurrence","Wiederholung anschalten" }, |
160 | { "End after","Endet nach"}, | 160 | { "End after","Endet nach"}, |
161 | { "End by:","Endet am"}, | 161 | { "End by:","Endet am"}, |
162 | { "End Date","End Datum" }, | 162 | { "End/Due Date","Ende/Fällig am" }, |
163 | { "End:","Ende:" }, | 163 | { "End:","Ende:" }, |
164 | { "End Time","End Zeit" }, | 164 | { "End/Due Time","Ende/Fällig um" }, |
165 | { "English","Englisch" }, | 165 | { "English","Englisch" }, |
166 | { "Event","Termin" }, | 166 | { "Event","Termin" }, |
167 | { "Event list","Termin Liste" }, | 167 | { "Event list","Termin Liste" }, |
168 | { "Events","Termine" }, | 168 | { "Events","Termine" }, |
169 | { "Event Viewer:","Termin Übersicht:" }, | 169 | { "Event Viewer:","Termin Übersicht:" }, |
170 | { "every","jede" }, | 170 | { "every","jede" }, |
171 | { "Exceptions...","Ausnahmen..." }, | 171 | { "Exceptions...","Ausnahmen..." }, |
172 | { "Exceptions","Ausnahmen" }, | 172 | { "Exceptions","Ausnahmen" }, |
173 | { "Exclude holidays","Ohne freie Tage" }, | 173 | { "Exclude holidays","Ohne freie Tage" }, |
174 | { "Exclude Saturdays","Ohne Samstage" }, | 174 | { "Exclude Saturdays","Ohne Samstage" }, |
175 | { "Feb","Feb" }, | 175 | { "Feb","Feb" }, |
176 | { "February","Februar" }, | 176 | { "February","Februar" }, |
177 | { "&Find","Suche!" }, | 177 | { "&Find","Suche!" }, |
178 | { "Fonts","Schriftart" }, | 178 | { "Fonts","Schriftart" }, |
179 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, | 179 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, |
180 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, | 180 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, |
181 | { "Free","Frei" }, | 181 | { "Free","Frei" }, |
182 | { "Friday","Freitag" }, | 182 | { "Friday","Freitag" }, |
183 | { "Fri","Fr" }, | 183 | { "Fri","Fr" }, |
184 | { "From:","Vom:" }, | 184 | { "From:","Vom:" }, |
185 | { "Full &name:","Vor- und &Nachname:" }, | 185 | { "Full &name:","Vor- und &Nachname:" }, |
186 | { "General","Allgemein" }, | 186 | { "General","Allgemein" }, |
187 | { "German","Deutsch" }, | 187 | { "German","Deutsch" }, |
188 | { "Gifts","Geschenke" }, | 188 | { "Gifts","Geschenke" }, |
189 | { "Go to Today","Heute anzeigen" }, | 189 | { "Go to Today","Heute anzeigen" }, |
190 | { "Help","Hilfe" }, | 190 | { "Help","Hilfe" }, |
191 | { "Hide Dates","Daten ausblenden" }, | 191 | { "Hide Dates","Daten ausblenden" }, |
192 | { "Highlight color:","Markierungen:" }, | 192 | { "Highlight color:","Markierungen:" }, |
193 | { "Holiday color:","Freie Tage:" }, | 193 | { "Holiday color:","Freie Tage:" }, |
194 | { "hour(s)","Stunde(n)" }, | 194 | { "hour(s)","Stunde(n)" }, |
195 | { "In %1 days: ","In %1 Tagen: " }, | 195 | { "In %1 days: ","In %1 Tagen: " }, |
196 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, | 196 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, |
197 | { "Information","Information" }, | 197 | { "Information","Information" }, |
198 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, | 198 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, |
199 | { "Jan","Jan" }, | 199 | { "Jan","Jan" }, |
200 | { "January","Januar" }, | 200 | { "January","Januar" }, |
201 | { "JournalView:","Journal Ansicht:" }, | 201 | { "JournalView:","Journal Ansicht:" }, |
202 | { "Journals","Journale" }, | 202 | { "Journals","Journale" }, |
203 | { "Jul","Jul" }, | 203 | { "Jul","Jul" }, |
204 | { "July","Juli" }, | 204 | { "July","Juli" }, |
205 | { "Jump to date","Springe zum Datum" }, | 205 | { "Jump to date","Springe zum Datum" }, |
206 | { "June","Juni" }, | 206 | { "June","Juni" }, |
207 | { "Jun","Jun" }, | 207 | { "Jun","Jun" }, |
208 | { "Key Bindings...","Tastenzuordnung..." }, | 208 | { "Key Bindings...","Tastenzuordnung..." }, |
209 | { "Kids","Kinder" }, | 209 | { "Kids","Kinder" }, |
210 | { "Known Problems...","Bekannte Probleme..." }, | 210 | { "Known Problems...","Bekannte Probleme..." }, |
211 | { "KO/Pi Find ","KO/Pi Suchdialog " }, | 211 | { "KO/Pi Find ","KO/Pi Suchdialog " }, |
212 | { "KO/Pi Find: ","KO/Pi Suchen: " }, | 212 | { "KO/Pi Find: ","KO/Pi Suchen: " }, |
213 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, | 213 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, |
214 | { "Language:(needs restart)","Sprache (Neustart!)" }, | 214 | { "Language:(needs restart)","Sprache (Neustart!)" }, |
215 | { "Language:","Sprache" }, | 215 | { "Language:","Sprache" }, |
216 | { "Large","Etwas mehr" }, | 216 | { "Large","Etwas mehr" }, |
217 | { "List View:","Listenansicht:" }, | 217 | { "List View:","Listenansicht:" }, |
218 | { "List View","Listenansicht" }, | 218 | { "List View","Listenansicht" }, |
219 | { "Load/Save","Laden/Speichern" }, | 219 | { "Load/Save","Laden/Speichern" }, |
220 | { "Load Template","Lade Vorlage" }, | 220 | { "Load Template","Lade Vorlage" }, |
221 | { "Locale","Lokalisation" }, | 221 | { "Locale","Lokalisation" }, |
222 | { "Local temp file:","Lokale temp. Datei:" }, | 222 | { "Local temp file:","Lokale temp. Datei:" }, |
223 | { "Location: ","Ort: " }, | 223 | { "Location: ","Ort: " }, |
224 | { "Location:","Ort:" }, | 224 | { "Location:","Ort:" }, |
225 | { "Mail client","Mail Programm" }, | 225 | { "Mail client","Mail Programm" }, |
226 | { "Mail Client","Mail Programm" }, | 226 | { "Mail Client","Mail Programm" }, |
227 | { "March","März" }, | 227 | { "March","März" }, |
228 | { "Mar","Mär" }, | 228 | { "Mar","Mär" }, |
229 | { "May","Mai" }, | 229 | { "May","Mai" }, |
230 | { "M. Bains line:","M. Bains Linie:" }, | 230 | { "M. Bains line:","M. Bains Linie:" }, |
231 | { "Medium","Medium" }, | 231 | { "Medium","Medium" }, |
232 | { "Method","Methode" }, | 232 | { "Method","Methode" }, |
233 | { "minute(s)","Minute(n)" }, | 233 | { "minute(s)","Minute(n)" }, |
234 | { "Monday","Montag" }, | 234 | { "Monday","Montag" }, |
235 | { "Mon","Mo" }, | 235 | { "Mon","Mo" }, |
236 | { "Monthly","Monatlich" }, | 236 | { "Monthly","Monatlich" }, |
237 | { "Month not long enough","Monat ist nicht lang genug" }, | 237 | { "Month not long enough","Monat ist nicht lang genug" }, |
238 | { "month(s)","Monat(e)" }, | 238 | { "month(s)","Monat(e)" }, |
239 | { "Month view:","Monatsansicht:" }, | 239 | { "Month view:","Monatsansicht:" }, |
240 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, | 240 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, |
241 | { "Todo view uses category colors","Todo Ansicht zeigt Kategorie Farben" }, | 241 | { "Todo view uses category colors","Todo Ansicht zeigt Kategorie Farben" }, |
242 | { "Move &Down","Nach unten verschieben" }, | 242 | { "Move &Down","Nach unten verschieben" }, |
243 | { "Move &Up","Nach oben verschieben" }, | 243 | { "Move &Up","Nach oben verschieben" }, |
244 | { "Name:","Name:" }, | 244 | { "Name:","Name:" }, |
245 | { "Name","Name" }, | 245 | { "Name","Name" }, |
246 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, | 246 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, |
247 | { "%n Days","%n Tage" }, | 247 | { "%n Days","%n Tage" }, |
248 | { "Never","Nie" }, | 248 | { "Never","Nie" }, |
249 | { "New event...","Neuer Termin..." }, | 249 | { "New event...","Neuer Termin..." }, |
250 | { "New event","Neuer Termin" }, | 250 | { "New event","Neuer Termin" }, |
251 | { "New Event...","Neuer Termin..." }, | 251 | { "New Event...","Neuer Termin..." }, |
252 | { "New Events/Todos should","Neue Termine/Todos sollten" }, | 252 | { "New Events/Todos should","Neue Termine/Todos sollten" }, |
253 | { "&New","&Neu" }, | 253 | { "&New","&Neu" }, |
254 | { "New","Neu", }, | 254 | { "New","Neu", }, |
255 | { "New Sub-Todo...","Neues Sub-Todo..." }, | 255 | { "New Sub-Todo...","Neues Sub-Todo..." }, |
256 | { "New Todo...","Neues Todo..." }, | 256 | { "New Todo...","Neues Todo..." }, |
257 | { "Next Alarm: ","Nächster Alarm: ", }, | 257 | { "Next Alarm: ","Nächster Alarm: ", }, |
258 | { "&Next Day","&Nächster Tag", }, | 258 | { "&Next Day","&Nächster Tag", }, |
259 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, | 259 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, |
260 | { "Next month","Nächster Monat" }, | 260 | { "Next month","Nächster Monat" }, |
261 | { "&Next Week","&Nächste Woche" }, | 261 | { "&Next Week","&Nächste Woche" }, |
262 | { "Next year","Nächstes Jahr" }, | 262 | { "Next year","Nächstes Jahr" }, |
263 | { "Next Year","Nächstes Jahr" }, | 263 | { "Next Year","Nächstes Jahr" }, |
264 | { "%n h","%n Std" }, | 264 | { "%n h","%n Std" }, |
265 | { "No ending date","Kein End-Datum", }, | 265 | { "No ending date","Kein End-Datum", }, |
266 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, | 266 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, |
267 | { "No event selected.","Kein Termin selektiert" }, | 267 | { "No event selected.","Kein Termin selektiert" }, |
268 | { "No","Nein" }, | 268 | { "No","Nein" }, |
269 | { "No program set","Kein Programm ausgewählt", }, | 269 | { "No program set","Kein Programm ausgewählt", }, |
270 | { "Normal","Normal" }, | 270 | { "Normal","Normal" }, |
271 | { "[No selection]","Keine Selektion", }, | 271 | { "[No selection]","Keine Selektion", }, |
272 | { "No sound set","Kein Sound ausgewählt", }, | 272 | { "No sound set","Kein Sound ausgewählt", }, |
273 | { "no time ","keine Zeit ", }, | 273 | { "no time ","keine Zeit ", }, |
274 | { "no time","keine Zeit", }, | 274 | { "no time","keine Zeit", }, |
275 | { "No Time","Keine Zeit" }, | 275 | { "No Time","Keine Zeit" }, |
276 | { "November","November" }, | 276 | { "November","November" }, |
277 | { "Nov","Nov", }, | 277 | { "Nov","Nov", }, |
278 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, | 278 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, |
279 | { "occurrence(s)","Vorkommen" }, | 279 | { "occurrence(s)","Vorkommen" }, |
280 | { "October","Oktober" }, | 280 | { "October","Oktober" }, |
281 | { "Oct","Okt", }, | 281 | { "Oct","Okt", }, |
282 | { "O-due!","Ü-fällig! " }, | 282 | { "O-due!","Ü-fällig! " }, |
283 | { "&OK","&OK" }, | 283 | { "&OK","&OK" }, |
284 | { "Ok+Show!","Ok+Anzeigen" }, | 284 | { "Ok+Show!","Ok+Anzeigen" }, |
285 | { "Organizer: %1","Organisator %1" }, | 285 | { "Organizer: %1","Organisator %1" }, |
286 | { "Organizer","Organisator" }, | 286 | { "Organizer","Organisator" }, |
287 | { "Owner: ","Besitzer: " }, | 287 | { "Owner: ","Besitzer: " }, |
288 | { "Owner:","Besitzer:" }, | 288 | { "Owner:","Besitzer:" }, |
289 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 289 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
290 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, | 290 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, |
291 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, | 291 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, |
292 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, | 292 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, |
293 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, | 293 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, |
294 | { "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, | 294 | { "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, |
295 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, | 295 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, |
296 | { "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, | 296 | { "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, |
297 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, | 297 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, |
298 | { "&Previous Day","Vorheriger Tag" }, | 298 | { "&Previous Day","Vorheriger Tag" }, |
299 | { "Previous month","Vorheriger Monat" }, | 299 | { "Previous month","Vorheriger Monat" }, |
300 | { "Previous Month","Vorheriger Monat" }, | 300 | { "Previous Month","Vorheriger Monat" }, |
301 | { "&Previous Week","Vorherige Woche" }, | 301 | { "&Previous Week","Vorherige Woche" }, |
302 | { "Previous year","Vorheriges Jahr" }, | 302 | { "Previous year","Vorheriges Jahr" }, |
303 | { "Previous Year","Vorheriges Jahr" }, | 303 | { "Previous Year","Vorheriges Jahr" }, |
304 | { "Printing","Drucken" }, | 304 | { "Printing","Drucken" }, |
305 | { "Priority:","Priorität:" }, | 305 | { "Priority:","Priorität:" }, |
306 | { "Private","Privat" }, | 306 | { "Private","Privat" }, |
307 | { "Proceed","Weiter" }, | 307 | { "Proceed","Weiter" }, |
308 | { "Public","Öffentlich" }, | 308 | { "Public","Öffentlich" }, |
309 | { "Purge","Entferne" }, | 309 | { "Purge","Entferne" }, |
310 | { "Purge Completed...","Entferne erledigte Todos..." }, | 310 | { "Purge Completed...","Entferne erledigte Todos..." }, |
311 | { "Purge Todos","Todos bereinigen" }, | 311 | { "Purge Todos","Todos bereinigen" }, |
312 | { "read-only","schreibgeschützt" }, | 312 | { "read-only","schreibgeschützt" }, |
313 | { "Recur every","Wiederh. alle" }, | 313 | { "Recur every","Wiederh. alle" }, |
314 | { "Recur in the month of","Wiederh. im Monat" }, | 314 | { "Recur in the month of","Wiederh. im Monat" }, |
315 | { "Recur on the","Wiederh. am" }, | 315 | { "Recur on the","Wiederh. am" }, |
316 | { "Recur on this day","Wiederh. am diesen Tag" }, | 316 | { "Recur on this day","Wiederh. am diesen Tag" }, |
317 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, | 317 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, |
318 | { "Recurrence Range","Wiederholungs Zeitraum" }, | 318 | { "Recurrence Range","Wiederholungs Zeitraum" }, |
319 | { "Recurrence Rule","Wiederholungs Regel" }, | 319 | { "Recurrence Rule","Wiederholungs Regel" }, |
320 | { "Recurrence","Wiederholung" }, | 320 | { "Recurrence","Wiederholung" }, |
321 | { "Recurs","Wiederholung" }, | 321 | { "Recurs","Wiederholung" }, |
322 | {"&Reject","Abweisen"}, | 322 | {"&Reject","Abweisen"}, |
323 | { "Reminder:","Alarm:" }, | 323 | { "Reminder:","Alarm:" }, |
324 | { "Rem.:","Alarm:" }, | 324 | { "Rem.:","Alarm:" }, |
325 | { "Rem.","Alarm:" }, | 325 | { "Rem.","Alarm:" }, |
326 | { "Remote file:","Remote Datei:"}, | 326 | { "Remote file:","Remote Datei:"}, |
327 | { "Remote IP:","Remote (ferne) IP:" }, | 327 | { "Remote IP:","Remote (ferne) IP:" }, |
328 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, | 328 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, |
329 | { "Remote user:","Remote Benutzer"}, | 329 | { "Remote user:","Remote Benutzer"}, |
330 | { "&Remove","Entfe&rnen" }, | 330 | { "&Remove","Entfe&rnen" }, |
331 | { "Remove","Entfernen" }, | 331 | { "Remove","Entfernen" }, |
332 | { "Request response","Bemerkung anfordern" }, | 332 | { "Request response","Bemerkung anfordern" }, |
333 | { "Role:","Rolle:" }, | 333 | { "Role:","Rolle:" }, |
334 | { "Role","Rolle" }, | 334 | { "Role","Rolle" }, |
335 | { "Sat","Sa" }, | 335 | { "Sat","Sa" }, |
336 | { "Saturday","Samstag" }, | 336 | { "Saturday","Samstag" }, |
337 | { "Search for:","Suche nach:" }, | 337 | { "Search for:","Suche nach:" }, |
338 | { "Search In","Suche in" }, | 338 | { "Search In","Suche in" }, |
339 | { "Search...","Suche..." }, | 339 | { "Search...","Suche..." }, |
340 | { "Search","Suche" }, | 340 | { "Search","Suche" }, |
341 | { "Select Addresses","Wähle Adressen" }, | 341 | { "Select Addresses","Wähle Adressen" }, |
342 | { "Select all","Selektiere Alle" }, | 342 | { "Select all","Selektiere Alle" }, |
343 | { "Select a month","Wähle Monat" }, | 343 | { "Select a month","Wähle Monat" }, |
344 | { "Select a week","Wähle Woche" }, | 344 | { "Select a week","Wähle Woche" }, |
345 | { "Select a year","Wähle Jahr" }, | 345 | { "Select a year","Wähle Jahr" }, |
346 | { "Send directly","Sende direkt" }, | 346 | { "Send directly","Sende direkt" }, |
347 | { "&Send Messages","&Sende Nachrichten", }, | 347 | { "&Send Messages","&Sende Nachrichten", }, |
348 | { "Sep","Sep" }, | 348 | { "Sep","Sep" }, |
349 | { "September","September" }, | 349 | { "September","September" }, |
350 | { "Shopping","Einkaufen" }, | 350 | { "Shopping","Einkaufen" }, |
351 | { "Show Dates","Zeige Daten" }, | 351 | { "Show Dates","Zeige Daten" }, |
352 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, | 352 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, |
353 | { "Show Event","Termin anzeigen" }, | 353 | { "Show Event","Termin anzeigen" }, |
354 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, | 354 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, |
355 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, | 355 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, |
356 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, | 356 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, |
357 | { "Show time as:","Zeige Zeit als" }, | 357 | { "Show time as:","Zeige Zeit als" }, |
358 | { "Show Todo","Todo anzeigen" }, | 358 | { "Show Todo","Todo anzeigen" }, |
359 | { "Vertical screen layout(Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, | 359 | { "Vertical screen layout(Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, |
360 | { "&Show","Anzeigen" }, | 360 | { "&Show","Anzeigen" }, |
361 | { "Show...","Anzeigen..." }, | 361 | { "Show...","Anzeigen..." }, |
362 | { "Show","Anzeigen" }, | 362 | { "Show","Anzeigen" }, |
363 | { "Small","Klein" }, | 363 | { "Small","Klein" }, |
364 | { "Sorry","Tut mir leid" }, | 364 | { "Sorry","Tut mir leid" }, |
365 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, | 365 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, |
366 | { "Start:","Start:" }, | 366 | { "Start:","Start:" }, |
367 | { "Start Date","Start Datum" }, | 367 | { "Start Date","Start am" }, |
368 | { "Start date: %1","Start Datum: %1" }, | 368 | { "Start date: %1","Start Datum: %1" }, |
369 | { "Start Time","Start Zeit" }, | 369 | { "Start Time","Start um" }, |
370 | { "Status:","Status:" }, | 370 | { "Status:","Status:" }, |
371 | { "Status","Status:" }, | 371 | { "Status","Status:" }, |
372 | { "Summaries","Titel" }, | 372 | { "Summaries","Titel" }, |
373 | { "Summary:","Titel:" }, | 373 | { "Summary:","Titel:" }, |
374 | { "Summary","Titel" }, | 374 | { "Summary","Titel" }, |
375 | { "Sunday","Sonntag" }, | 375 | { "Sunday","Sonntag" }, |
376 | { "Sun","So" }, | 376 | { "Sun","So" }, |
377 | { "Sync preferences:","Sync Einstellungen" }, | 377 | { "Sync preferences:","Sync Einstellungen" }, |
378 | { "Sync Prefs","Sync Einstellungen" }, | 378 | { "Sync Prefs","Sync Einstellungen" }, |
379 | { "Syncronize","Daten abgleich" }, | 379 | { "Syncronize","Daten abgleich" }, |
380 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 380 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
381 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 381 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
382 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 382 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
383 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges Todo" }, | 383 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges Todo" }, |
384 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, | 384 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, |
385 | { "Template...","Vorlage..." }, | 385 | { "Template...","Vorlage..." }, |
386 | { "This day","Dieser Tag" }, | 386 | { "This day","Dieser Tag" }, |
387 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, | 387 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, |
388 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, | 388 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, |
389 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, | 389 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, |
390 | { "Thu","Do" }, | 390 | { "Thu","Do" }, |
391 | { "Thursday","Donnerstag" }, | 391 | { "Thursday","Donnerstag" }, |
392 | { "Time associated","Mit Zeit" }, | 392 | { "Time associated","Mit Zeit" }, |
393 | { "Time bar:","Uhrzeit Zeile:" }, | 393 | { "Time bar:","Uhrzeit Zeile:" }, |
394 | { "Time && Date","Zeit und Datum" }, | 394 | { "Time && Date","Zeit und Datum" }, |
395 | { "Time Format","Zeit Format" }, | 395 | { "Time Format","Zeit Format" }, |
396 | { "Time Format(nr):","Zeit Format(Neustart!)" }, | 396 | { "Time Format(nr):","Zeit Format(Neustart!)" }, |
397 | { "Date Labels:","Datumsleiste:" }, | 397 | { "Date Labels:","Datumsleiste:" }, |
398 | { "Time: ","Zeit: " }, | 398 | { "Time: ","Zeit: " }, |
399 | { "Timezone:","Zeitzone:" }, | 399 | { "Timezone:","Zeitzone:" }, |
400 | { "To: ","Bis: " }, | 400 | { "To: ","Bis: " }, |
401 | { "To:","Bis:" }, | 401 | { "To:","Bis:" }, |
402 | { "Today: ","Heute: " }, | 402 | { "Today: ","Heute: " }, |
403 | { "Todo due today color:","Heute fällige Todos" }, | 403 | { "Todo due today color:","Heute fällige Todos" }, |
404 | { "To-do items:","To-Do items:" }, | 404 | { "To-do items:","To-Do items:" }, |
405 | { "Todo overdue color:","Überfällige Todos" }, | 405 | { "Todo overdue color:","Überfällige Todos" }, |
406 | { "Todo","Todo" }, | 406 | { "Todo","Todo" }, |
407 | { "To-do view shows completed Todos","Todo Ansicht zeigt erledigte Todos" }, | 407 | { "To-do view shows completed Todos","Todo Ansicht zeigt erledigte Todos" }, |
408 | { "ToDoView:","Todo Ansicht:" }, | 408 | { "ToDoView:","Todo Ansicht:" }, |
409 | { "Toggle Alarm","Wechsle Alarm" }, | 409 | { "Toggle Alarm","Wechsle Alarm" }, |
410 | { "Toggle Allday","Umschalten Ganztag" }, | 410 | { "Toggle Allday","Umschalten Ganztag" }, |
411 | { "Tomorrow: ","Morgen: " }, | 411 | { "Tomorrow: ","Morgen: " }, |
412 | { "Tue","Di" }, | 412 | { "Tue","Di" }, |
413 | { "Tuesday","Dienstag" }, | 413 | { "Tuesday","Dienstag" }, |
414 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, | 414 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, |
415 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, | 415 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, |
416 | { "Unknown","Unbekannt" }, | 416 | { "Unknown","Unbekannt" }, |
417 | { "Up","Hinauf" }, | 417 | { "Up","Hinauf" }, |
418 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, | 418 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, |
419 | { "User defined","Benutzerdefiniert" }, | 419 | { "User defined","Benutzerdefiniert" }, |
420 | { "User long date:","Format langes Datum:" }, | 420 | { "User long date:","Format langes Datum:" }, |
421 | { "User short date:","Forma kurzes Datum:" }, | 421 | { "User short date:","Forma kurzes Datum:" }, |
422 | { "View","Ansicht" }, | 422 | { "View","Ansicht" }, |
423 | { "View Fonts","Schriftarten Ansichten" }, | 423 | { "View Fonts","Schriftarten Ansichten" }, |
424 | { "Views","Ansichten" }, | 424 | { "Views","Ansichten" }, |
425 | { "Wed","Mi" }, | 425 | { "Wed","Mi" }, |
426 | { "Wednesday","Mittwoch" }, | 426 | { "Wednesday","Mittwoch" }, |
427 | { "Week %1","Woche %1" }, | 427 | { "Week %1","Woche %1" }, |
428 | { "Weekly","Wöchentlich" }, | 428 | { "Weekly","Wöchentlich" }, |
429 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 429 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
430 | { "What's Next View:","What's Next Anz." }, | 430 | { "What's Next View:","What's Next Anz." }, |
431 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, | 431 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, |
432 | { "Working Hours","Tägliche Arbeitszeit" }, | 432 | { "Working Hours","Tägliche Arbeitszeit" }, |
433 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, | 433 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, |
434 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, | 434 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, |
435 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, | 435 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, |
436 | { "Yearly","Jährlich" }, | 436 | { "Yearly","Jährlich" }, |
437 | { "year(s)","Jahr(e)" }, | 437 | { "year(s)","Jahr(e)" }, |
438 | { "Yes","Ja" }, | 438 | { "Yes","Ja" }, |
439 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, | 439 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, |
440 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, | 440 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, |
441 | { "week(s) on:","Woche(n) am: " }, | 441 | { "week(s) on:","Woche(n) am: " }, |
442 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 442 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
443 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 443 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
444 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 444 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
445 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 445 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
446 | { "Daylight start:","Sommerzeit Start:" }, | 446 | { "Daylight start:","Sommerzeit Start:" }, |
447 | { "Daylight end:","Sommerzeit Ende:" }, | 447 | { "Daylight end:","Sommerzeit Ende:" }, |
448 | { "Time Zone","Zeitzone" }, | 448 | { "Time Zone","Zeitzone" }, |
449 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 449 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
450 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, | 450 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, |
451 | { "minutely","minütlich" }, | 451 | { "minutely","minütlich" }, |
452 | { "hourly","stündlich" }, | 452 | { "hourly","stündlich" }, |
453 | { "daily","täglich" }, | 453 | { "daily","täglich" }, |
454 | { "weekly","wöchentlich" }, | 454 | { "weekly","wöchentlich" }, |
455 | { "monthly","monatlich" }, | 455 | { "monthly","monatlich" }, |
456 | { "day-monthly","tag-monatlich" }, | 456 | { "day-monthly","tag-monatlich" }, |
457 | { "month-yearly","monat-jährlich" }, | 457 | { "month-yearly","monat-jährlich" }, |
458 | { "day-yearly","tag-jährlich" }, | 458 | { "day-yearly","tag-jährlich" }, |
459 | { "position-yearly","pos-jährlich" }, | 459 | { "position-yearly","pos-jährlich" }, |
460 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, | 460 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, |
461 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, | 461 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, |
462 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, | 462 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, |
463 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, | 463 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, |
464 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, | 464 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, |
465 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, | 465 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, |
466 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, | 466 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, |
467 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, | 467 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, |
468 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, | 468 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, |
469 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, | 469 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, |
470 | { "ViewChange","Ansichtswechsel" }, | 470 | { "ViewChange","Ansichtswechsel" }, |
471 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, | 471 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, |
472 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, | 472 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, |
473 | { "File","Datei" }, | 473 | { "File","Datei" }, |
474 | { "Clone...","Dupliziere..." }, | 474 | { "Clone...","Dupliziere..." }, |
475 | { "Move...","Bewege..." }, | 475 | { "Move...","Bewege..." }, |
476 | { "Beam...","Sende via IR..." }, | 476 | { "Beam...","Sende via IR..." }, |
477 | { "&Clone...","Dupliziere..." }, | 477 | { "&Clone...","Dupliziere..." }, |
478 | { "&Move...","Bewege..." }, | 478 | { "&Move...","Bewege..." }, |
479 | { "&Beam...","Sende via IR..." }, | 479 | { "&Beam...","Sende via IR..." }, |
480 | { "Show Completed","Zeige erledigte Todos" }, | 480 | { "Show Completed","Zeige erledigte Todos" }, |
481 | { "Show Quick Todo","Zeige Quick-Todo" }, | 481 | { "Show Quick Todo","Zeige Quick-Todo" }, |
482 | { "Unparent Todo","Un-sub Todo" }, | 482 | { "Unparent Todo","Un-sub Todo" }, |
483 | { "Save selected to file...","Speichere Selektierte..." }, | 483 | { "Save selected to file...","Speichere Selektierte..." }, |
484 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, | 484 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, |
485 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, | 485 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, |
486 | { "Beam via IR...","Sende via IR..." }, | 486 | { "Beam via IR...","Sende via IR..." }, |
487 | { "Search","Suchen" }, | 487 | { "Search","Suchen" }, |
488 | { "Date Picker","Datum auswählen" }, | 488 | { "Date Picker","Datum auswählen" }, |
489 | { "Day View","Tagesansicht" }, | 489 | { "Day View","Tagesansicht" }, |
490 | { "Work Week","Arbeitswoche" }, | 490 | { "Work Week","Arbeitswoche" }, |
491 | { "Week","Wochenansicht" }, | 491 | { "Week","Wochenansicht" }, |
492 | { "Month","Monatsansicht" }, | 492 | { "Month","Monatsansicht" }, |
493 | { "Todo View","Todo Liste" }, | 493 | { "Todo View","Todo Liste" }, |
494 | { "Journal","Journal" }, | 494 | { "Journal","Journal" }, |
495 | { "Next days","Nächste Tage" }, | 495 | { "Next days","Nächste Tage" }, |
496 | { "Print agenda selection...","Drucke Agendaselektion..." }, | 496 | { "Print agenda selection...","Drucke Agendaselektion..." }, |
497 | { "Toggle DateNavigator","Navigator umschalten" }, | 497 | { "Toggle DateNavigator","Navigator umschalten" }, |
498 | { "Toggle FilterView","Filteransicht umschalten" }, | 498 | { "Toggle FilterView","Filteransicht umschalten" }, |
499 | { "Prev. month","Vorheriger Monat" }, | 499 | { "Prev. month","Vorheriger Monat" }, |
500 | { "Go backward","Gehe zurück" }, | 500 | { "Go backward","Gehe zurück" }, |
501 | { "Go forward","Gehe weiter" }, | 501 | { "Go forward","Gehe weiter" }, |
502 | { "Synchronize","Synchronisieren" }, | 502 | { "Synchronize","Synchronisieren" }, |
503 | { "AgendaSize","Agendagröße" }, | 503 | { "AgendaSize","Agendagröße" }, |
504 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, | 504 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, |
505 | { "Import last file","Importiere letzte Datei" }, | 505 | { "Import last file","Importiere letzte Datei" }, |
506 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, | 506 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, |
507 | { "Save Backup...","Speichere Backup..." }, | 507 | { "Save Backup...","Speichere Backup..." }, |
508 | { "Export VCalendar","Exportiere VCalendar" }, | 508 | { "Export VCalendar","Exportiere VCalendar" }, |
509 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 509 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
510 | { "Beam complete calendar...","Sende kompletten Kalender..." }, | 510 | { "Beam complete calendar...","Sende kompletten Kalender..." }, |
511 | { "Beam filtered calendar...","Sende gefilterten Kalender..." }, | 511 | { "Beam filtered calendar...","Sende gefilterten Kalender..." }, |
512 | { "Remote via ssh","Über Netzwerk via ssh" }, | 512 | { "Remote via ssh","Über Netzwerk via ssh" }, |
513 | { "With local file","Mit lokaler Datei" }, | 513 | { "With local file","Mit lokaler Datei" }, |
514 | { "With last file","Mit letzter Datei" }, | 514 | { "With last file","Mit letzter Datei" }, |
515 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, | 515 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, |
516 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, | 516 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, |
517 | { "Save filename","Speichern: Dateinamen wählen" }, | 517 | { "Save filename","Speichern: Dateinamen wählen" }, |
518 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, | 518 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, |
519 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, | 519 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, |
520 | { "Overwrite!","Überschreibe!" }, | 520 | { "Overwrite!","Überschreibe!" }, |
521 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 521 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
522 | { "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" }, | 522 | { "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" }, |
523 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, | 523 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, |
524 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, | 524 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, |
525 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, | 525 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, |
526 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, | 526 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, |
527 | { "Size","Größe" }, | 527 | { "Size","Größe" }, |
528 | { "Date","Datum" }, | 528 | { "Date","Datum" }, |
529 | { "Mime Type","Datei Typ" }, | 529 | { "Mime Type","Datei Typ" }, |
530 | { "All Files","Alle Dateien" }, | 530 | { "All Files","Alle Dateien" }, |
531 | { "Files","Dateien" }, | 531 | { "Files","Dateien" }, |
532 | { "Documents","DoKumente" }, | 532 | { "Documents","DoKumente" }, |
533 | { "Select Categories","Selektiere Kategorien" }, | 533 | { "Select Categories","Selektiere Kategorien" }, |
534 | { " &Deselect All "," Auswahl aufheben " }, | 534 | { " &Deselect All "," Auswahl aufheben " }, |
535 | { "A&dd","Hinzu" }, | 535 | { "A&dd","Hinzu" }, |
536 | { "&Modify","Ändern" }, | 536 | { "&Modify","Ändern" }, |
537 | { "Edit Categories","Editiere Kategorien" }, | 537 | { "Edit Categories","Editiere Kategorien" }, |
538 | { " &Edit Categories "," &Editiere Kategorien " }, | 538 | { " &Edit Categories "," &Editiere Kategorien " }, |
539 | { "Beam Options","Beam Einstellungen" }, | 539 | { "Beam Options","Beam Einstellungen" }, |
540 | { " With timezone "," Mit Zeitzone " }, | 540 | { " With timezone "," Mit Zeitzone " }, |
541 | { " Local time ", " Lokale Zeit " }, | 541 | { " Local time ", " Lokale Zeit " }, |
542 | { "Manage new Categories","Verwalte neue Kategorien" }, | 542 | { "Manage new Categories","Verwalte neue Kategorien" }, |
543 | { "Add to category list","Füge zur Kategorieliste hinzu" }, | 543 | { "Add to category list","Füge zur Kategorieliste hinzu" }, |
544 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, | 544 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, |
545 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, | 545 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, |
546 | { "File format","Datei Format" }, | 546 | { "File format","Datei Format" }, |
547 | { "Time format","Zeit Format" }, | 547 | { "Time format","Zeit Format" }, |
548 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, | 548 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, |
549 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, | 549 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, |
550 | { "h","Std" }, | 550 | { "h","Std" }, |
551 | { "min","Min" }, | 551 | { "min","Min" }, |
552 | { "hou","Std" }, | 552 | { "hou","Std" }, |
553 | { "day","Tag" }, | 553 | { "day","Tag" }, |
554 | { "French","Französich" }, | 554 | { "French","Französich" }, |
555 | { "Time","Zeit" }, | 555 | { "Time","Zeit" }, |
556 | { "Event Viewer","Termin Anzeige" }, | 556 | { "Event Viewer","Termin Anzeige" }, |
557 | { "Cancel Sync","Sync Abbrechen" }, | 557 | { "Cancel Sync","Sync Abbrechen" }, |
558 | { "Remote","Fern" }, | 558 | { "Remote","Fern" }, |
559 | { "Local","Lokal" }, | 559 | { "Local","Lokal" }, |
560 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, | 560 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, |
561 | { "Local: ","Lokal: " }, | 561 | { "Local: ","Lokal: " }, |
562 | { "Remote: ","Fern: " }, | 562 | { "Remote: ","Fern: " }, |
563 | { "Last modified: ","Zuletzt geändert: " }, | 563 | { "Last modified: ","Zuletzt geändert: " }, |
564 | { "Location: ","Ort: " }, | 564 | { "Location: ","Ort: " }, |
565 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, | 565 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, |
566 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, | 566 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, |
567 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, | 567 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, |
568 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, | 568 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, |
569 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, | 569 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, |
570 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, | 570 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, |
571 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, | 571 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, |
572 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, | 572 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, |
573 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, | 573 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, |
574 | { "( %1 min before )","( %1 min vorher )" }, | 574 | { "( %1 min before )","( %1 min vorher )" }, |
575 | { "<b>Alarm on: ","<b>Alarm am: " }, | 575 | { "<b>Alarm on: ","<b>Alarm am: " }, |
576 | { "<b>Details: </b>","<b>Details: </b>" }, | 576 | { "<b>Details: </b>","<b>Details: </b>" }, |
577 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 577 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
578 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, | 578 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, |
579 | { "Organizer","Organisator" }, | 579 | { "Organizer","Organisator" }, |
580 | { "Save","Speichern" }, | 580 | { "Save","Speichern" }, |
581 | { "Exit (+save)","Beenden(+speichern)" }, | 581 | { "Exit (+save)","Beenden(+speichern)" }, |
582 | { "Home","Zuhause" }, | 582 | { "Home","Zuhause" }, |
583 | { "Office","Büro" }, | 583 | { "Office","Büro" }, |
584 | { "Library","Bibliothek" }, | 584 | { "Library","Bibliothek" }, |
585 | { "Doctor","Arzt" }, | 585 | { "Doctor","Arzt" }, |
586 | { "Beach","Strand" }, | 586 | { "Beach","Strand" }, |
587 | { "Conference room","Konferenzraum" }, | 587 | { "Conference room","Konferenzraum" }, |
588 | { "Drive Home","Heimfahrt" }, | 588 | { "Drive Home","Heimfahrt" }, |
589 | { "Watch TV","Tv gucken" }, | 589 | { "Watch TV","Tv gucken" }, |
590 | { "Phone call","Telefonanruf" }, | 590 | { "Phone call","Telefonanruf" }, |
591 | { "Pay bill","Rechnung bezahlen" }, | 591 | { "Pay bill","Rechnung bezahlen" }, |
592 | { "Read book","Buch lesen" }, | 592 | { "Read book","Buch lesen" }, |
593 | { "Watering plants","Pflanzen giessen" }, | 593 | { "Watering plants","Pflanzen giessen" }, |
594 | {"Appointment","Verabredung" }, | 594 | {"Appointment","Verabredung" }, |
595 | {"Birthday","Geburtstag" }, | 595 | {"Birthday","Geburtstag" }, |
596 | {"Business","Geschäft" }, | 596 | {"Business","Geschäft" }, |
597 | {"Business Travel","Geschäftsreise" }, | 597 | {"Business Travel","Geschäftsreise" }, |
598 | {"Cinema","Kino" }, | 598 | {"Cinema","Kino" }, |
599 | {"Customer","Kunde" }, | 599 | {"Customer","Kunde" }, |
600 | {"Break","Pause" }, | 600 | {"Break","Pause" }, |
601 | {"Breakfast","Frühstück" }, | 601 | {"Breakfast","Frühstück" }, |
602 | {"Competition","Wettkampf" }, | 602 | {"Competition","Wettkampf" }, |
603 | {"Dinner","Abendessen" }, | 603 | {"Dinner","Abendessen" }, |
604 | {"Education","Erziehung" }, | 604 | {"Education","Erziehung" }, |
605 | {"Family","Familie" }, | 605 | {"Family","Familie" }, |
606 | {"Favorites","Favoriten" }, | 606 | {"Favorites","Favoriten" }, |
607 | {"Festival","Festival" }, | 607 | {"Festival","Festival" }, |
608 | {"Fishing","Angeln" }, | 608 | {"Fishing","Angeln" }, |
609 | {"Flight","Flug" }, | 609 | {"Flight","Flug" }, |
610 | {"Gifts","Geschenk" }, | 610 | {"Gifts","Geschenk" }, |
611 | {"Holiday","Feiertag" }, | 611 | {"Holiday","Feiertag" }, |
612 | {"Holiday Cards","Ansichtskarten" }, | 612 | {"Holiday Cards","Ansichtskarten" }, |
613 | {"Hot Contacts","Heisse Kontakte" }, | 613 | {"Hot Contacts","Heisse Kontakte" }, |
614 | {"Hiking","Wandern" }, | 614 | {"Hiking","Wandern" }, |
615 | {"Hunting","Jagen" }, | 615 | {"Hunting","Jagen" }, |
616 | {"Key Customer","Wichtiger Kunde" }, | 616 | {"Key Customer","Wichtiger Kunde" }, |
617 | {"Kids","Kinder" }, | 617 | {"Kids","Kinder" }, |
618 | {"Lunch","Mittagessen" }, | 618 | {"Lunch","Mittagessen" }, |
619 | {"Meeting","Treffen" }, | 619 | {"Meeting","Treffen" }, |
620 | {"Miscellaneous","Verschiedenes" }, | 620 | {"Miscellaneous","Verschiedenes" }, |
621 | {"Partner","Partner" }, | 621 | {"Partner","Partner" }, |
622 | {"Party","Partie" }, | 622 | {"Party","Partie" }, |
623 | {"Personal","Privat" }, | 623 | {"Personal","Privat" }, |
624 | {"Personal Travel","Privatreise"}, | 624 | {"Personal Travel","Privatreise"}, |
625 | {"PHB","PHB" }, | 625 | {"PHB","PHB" }, |
626 | {"Phone Calls","Telefonanruf" }, | 626 | {"Phone Calls","Telefonanruf" }, |
627 | {"Projects","Projekt" }, | 627 | {"Projects","Projekt" }, |
628 | {"Recurring","Wiederholend" }, | 628 | {"Recurring","Wiederholend" }, |
629 | {"School","Schule" }, | 629 | {"School","Schule" }, |
630 | {"Shopping","Einkaufen" }, | 630 | {"Shopping","Einkaufen" }, |
631 | {"Speach","Rede" }, | 631 | {"Speach","Rede" }, |
632 | {"Special Occasion","Spez.Gelegenheit" }, | 632 | {"Special Occasion","Spez.Gelegenheit" }, |
633 | {"Sports","Sport" }, | 633 | {"Sports","Sport" }, |
634 | {"Talk","Vortrag" }, | 634 | {"Talk","Vortrag" }, |
635 | {"Travel","Reise" }, | 635 | {"Travel","Reise" }, |
636 | {"TV","TV" }, | 636 | {"TV","TV" }, |
637 | {"Germany","Deutschland" }, | 637 | {"Germany","Deutschland" }, |
638 | {"Sweden","Schweden" }, | 638 | {"Sweden","Schweden" }, |
639 | {"Forest","Wald" }, | 639 | {"Forest","Wald" }, |
640 | { "Desert","Wüste" }, | 640 | { "Desert","Wüste" }, |
641 | { "Kitchen","Küche" }, | 641 | { "Kitchen","Küche" }, |
642 | { "Lake","See" }, | 642 | { "Lake","See" }, |
643 | {"University","Universität"}, | 643 | {"University","Universität"}, |
644 | {"Vacation","Urlaub" }, | 644 | {"Vacation","Urlaub" }, |
645 | {"VIP","VIP" }, | 645 | {"VIP","VIP" }, |
646 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, | 646 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, |
647 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, | 647 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, |
648 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, | 648 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, |
649 | { "Cancelled","Gecancelt" }, | 649 | { "Cancelled","Gecancelt" }, |
650 | { "Multiple sync","Mehrfach Sync" }, | 650 | { "Multiple sync","Mehrfach Sync" }, |
651 | { "Local file","Lokale Datei" }, | 651 | { "Local file","Lokale Datei" }, |
652 | { "Last file","Letzte Datei" }, | 652 | { "Last file","Letzte Datei" }, |
653 | { "Keys + Colors...","Tasten + Farben..." }, | 653 | { "Keys + Colors...","Tasten + Farben..." }, |
654 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, | 654 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, |
655 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 655 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
656 | { "Choose...","Wähle..." }, | 656 | { "Choose...","Wähle..." }, |
657 | { "Use colors for application:","Setze Farben für Programm:" }, | 657 | { "Use colors for application:","Setze Farben für Programm:" }, |
658 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 658 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
659 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 659 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
660 | { "Show parent To-Do's","Zeige Ober-Todos" }, | 660 | { "Show parent To-Do's","Zeige Ober-Todos" }, |
661 | { "Show location","Zeige Orte" }, | 661 | { "Show location","Zeige Orte" }, |
662 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 662 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
663 | { "Show in every cell ","Zeige in jeder Zelle " }, | 663 | { "Show in every cell ","Zeige in jeder Zelle " }, |
664 | { "short month","kurzen Monat" }, | 664 | { "short month","kurzen Monat" }, |
665 | { "icons","Icons" }, | 665 | { "icons","Icons" }, |
666 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 666 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
667 | { "Category colors are applied to text","Kategorie Farben färben Text" }, | 667 | { "Category colors are applied to text","Kategorie Farben färben Text" }, |
668 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 668 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
669 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 669 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
670 | { "Day color even months","Tagesfarbe gerade Monate" }, | 670 | { "Day color even months","Tagesfarbe gerade Monate" }, |
671 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 671 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
672 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 672 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
673 | { "Small To-do view uses smaller font","Kleine Todo Ansicht nutzt kleineren Font" }, | 673 | { "Small To-do view uses smaller font","Kleine Todo Ansicht nutzt kleineren Font" }, |
674 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 674 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
675 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, | 675 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, |
676 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, | 676 | { "Note: KO/Pi must be running to notify you about an alarm. Recommended for use on Zaurus: Disable this option and install KO/Pi alarm applet.\n","Achtung: KO/Pi muß ausgeführt werden damit die Benachrichtigung funktioniert. Empfehlung für Zaurus: Diese Option nicht wählen und KO/Pi Alarm Applet installieren.\n" }, |
677 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, | 677 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, |
678 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, | 678 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, |
679 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, | 679 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, |
680 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, | 680 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, |
681 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, | 681 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, |
682 | { "New profile","Neues Profil" }, | 682 | { "New profile","Neues Profil" }, |
683 | { "Clone profile","Klone Profil" }, | 683 | { "Clone profile","Klone Profil" }, |
684 | { "Delete profile","Lösche Profil" }, | 684 | { "Delete profile","Lösche Profil" }, |
685 | { "Profile:","Profil:" }, | 685 | { "Profile:","Profil:" }, |
686 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, | 686 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, |
687 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 687 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
688 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 688 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
689 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 689 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
690 | { "Write back file","Schreibe Datei zurück" }, | 690 | { "Write back file","Schreibe Datei zurück" }, |
691 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 691 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
692 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 692 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
693 | { "Local device name:","Name dieses Gerätes:" }, | 693 | { "Local device name:","Name dieses Gerätes:" }, |
694 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 694 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
695 | { "Sync preferences","Synchronisations Einstellungen" }, | 695 | { "Sync preferences","Synchronisations Einstellungen" }, |
696 | { "Profile kind","Profil Art" }, | 696 | { "Profile kind","Profil Art" }, |
697 | { "Local file","Lokale Datei" }, | 697 | { "Local file","Lokale Datei" }, |
698 | { "Local file:","Lokale Datei:" }, | 698 | { "Local file:","Lokale Datei:" }, |
699 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 699 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
700 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 700 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
701 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 701 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
702 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 702 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
703 | { "Device","Gerät:" }, | 703 | { "Device","Gerät:" }, |
704 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 704 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
705 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, | 705 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n","Synchronisationsübersicht:\n\n %d items lokal hinzugefügt\n %d items entfernt hinzugefügt\n %d items lokal geändert\n %d items entfernt geändert\n %d items lokal gelöscht\n %d items entfernt gelöscht\n" }, |
706 | { "Synchronization successful","Synchronisation erfolgreich" }, | 706 | { "Synchronization successful","Synchronisation erfolgreich" }, |
707 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 707 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
708 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 708 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
709 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 709 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
710 | { "Enter password","Passwort eingeben" }, | 710 | { "Enter password","Passwort eingeben" }, |
711 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 711 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
712 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 712 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
713 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, | 713 | { "Sorry, the copy command failed!\nCommand was:\n%1\n \nTry command on console to get more\ndetailed info about the reason.\n","Sorry, das Kopierkommando schlug fehl!\nKommando war:\n%1\n \nVersuche Kommando von Kosole um\nDetails für das Fehlschlagen\nzu erfahren.\n" }, |
714 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 714 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
715 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 715 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
716 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, | 716 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, |
717 | { "Enter filter name:","Neuer Filter Name:" }, | 717 | { "Enter filter name:","Neuer Filter Name:" }, |
718 | { "Add Filter","Filter hinzufügen" }, | 718 | { "Add Filter","Filter hinzufügen" }, |
719 | { "Question","Frage" }, | 719 | { "Question","Frage" }, |
720 | { "Filter position: ","Filter Position: " }, | 720 | { "Filter position: ","Filter Position: " }, |
721 | { "Month View","Monatsansicht" }, | 721 | { "Month View","Monatsansicht" }, |
722 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, | 722 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, |
723 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 723 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
724 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 724 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
725 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, | 725 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, |
726 | { "Access: ","Zugriff: " }, | 726 | { "Access: ","Zugriff: " }, |
727 | { "Needs Action","Aktion notwendig" }, | 727 | { "Needs Action","Aktion notwendig" }, |
728 | { "Accepted","Akzeptiert" }, | 728 | { "Accepted","Akzeptiert" }, |
729 | { "Declined","Abgelehnt" }, | 729 | { "Declined","Abgelehnt" }, |
730 | { "Tentative","Vorläufig" }, | 730 | { "Tentative","Vorläufig" }, |
731 | { "Delegated","Beauftragt" }, | 731 | { "Delegated","Beauftragt" }, |
732 | { "Completed","Vollständig" }, | 732 | { "Completed","Vollständig" }, |
733 | { "In Process","In Bearbeitung" }, | 733 | { "In Process","In Bearbeitung" }, |
734 | { "Participant","Teilnehmer" }, | 734 | { "Participant","Teilnehmer" }, |
735 | { "Optional Participant","Möglicher Teilnehmer" }, | 735 | { "Optional Participant","Möglicher Teilnehmer" }, |
736 | { "Observer","Beobachter" }, | 736 | { "Observer","Beobachter" }, |
737 | { "Chair","Vorsitzender" }, | 737 | { "Chair","Vorsitzender" }, |
738 | { "Not supported \non desktop!\n","" }, | 738 | { "Not supported \non desktop!\n","" }, |
739 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, | 739 | { "Nothing selected!\n\nThis prints the full width of the Agenda view as you see it!\n\nTo determine the vertical range of the printing, please select\na vertical range (with the left mouse button down) in one column. ","Es ist nichts selektiert!\nDieses druckt die volle Breite der Agenda View, so wie man sie sieht.\nUm die vertikale Auswahl zum Drucken zu bestimmen,\nbitte einen vertikalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen.\n(Es wird danach direkt der Termin Dialog angezeigt\n - dort bitte auf Abbrechen klicken) " }, |
740 | { "Date range: ","Datums Zeitspanne: " }, | 740 | { "Date range: ","Datums Zeitspanne: " }, |
741 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, | 741 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, |
742 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, | 742 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, |
743 | { "Add / remove events","Add./entferne Termine" }, | 743 | { "Add / remove events","Add./entferne Termine" }, |
744 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, | 744 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, |
745 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, | 745 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, |
746 | { "Overwrite","Überschreiben" }, | 746 | { "Overwrite","Überschreiben" }, |
747 | { "Sync+save","Syncen+speichern" }, | 747 | { "Sync+save","Syncen+speichern" }, |
748 | { "Default","Standard" }, | 748 | { "Default","Standard" }, |
749 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 749 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
750 | { " %d items?"," %d Einträge?" }, | 750 | { " %d items?"," %d Einträge?" }, |
751 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, | 751 | { "\nThis event recurs\nover multiple dates.\nAre you sure you want\nto delete this event\nand all its recurrences?","\nDieses ist ein\nwiederholender Termin!.\nSind Sie sicher, dass Sie\ndiesen Termin und alle\nWiederholungen löschen möchten?" }, |
752 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 752 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
753 | { "Current","Aktuelle" }, | 753 | { "Current","Aktuelle" }, |
754 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, | 754 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, |
755 | { "All","Alle" }, | 755 | { "All","Alle" }, |
756 | { "Data Loss Warning","Datenverlust Warnung" }, | 756 | { "Data Loss Warning","Datenverlust Warnung" }, |
757 | { "Proceed","Weitermachen" }, | 757 | { "Proceed","Weitermachen" }, |
758 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 758 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
759 | { "Filter disabled ","Filter abgeschaltet" }, | 759 | { "Filter disabled ","Filter abgeschaltet" }, |
760 | { "Filter selected: ","Gewählter Filter: " }, | 760 | { "Filter selected: ","Gewählter Filter: " }, |
761 | { "Toggle Cancel","Gecancelt ändern" }, | 761 | { "Toggle Cancel","Gecancelt ändern" }, |
762 | { "&Toggle Cancel","Gecancel&t ändern" }, | 762 | { "&Toggle Cancel","Gecancel&t ändern" }, |
763 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 763 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
764 | { "Stretched TB","Gedehnte TB" }, | 764 | { "Stretched TB","Gedehnte TB" }, |
765 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 765 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
766 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 766 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
767 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, | 767 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, |
768 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 768 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
769 | { "Imported file successfully","Datei erfolgreich importiert" }, | 769 | { "Imported file successfully","Datei erfolgreich importiert" }, |
770 | { "Error importing file","Fehler beim Importieren der Datei" }, | 770 | { "Error importing file","Fehler beim Importieren der Datei" }, |
771 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 771 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
772 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, | 772 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, |
773 | { "Overwrite!","Überschreiben!" }, | 773 | { "Overwrite!","Überschreiben!" }, |
774 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, | 774 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, |
775 | { "Load backup filename","Lade Backup Dateiname" }, | 775 | { "Load backup filename","Lade Backup Dateiname" }, |
776 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 776 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
777 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 777 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
778 | { "Save backup filename","Speichere Backup Dateiname" }, | 778 | { "Save backup filename","Speichere Backup Dateiname" }, |
779 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, | 779 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, |
780 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 780 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
781 | { "Details of attendee","Teilnehmerdetails" }, | 781 | { "Details of attendee","Teilnehmerdetails" }, |
782 | { "Work phone:\n","Telefon Arbeit:\n" }, | 782 | { "Work phone:\n","Telefon Arbeit:\n" }, |
783 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 783 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
784 | { "Home phone:\n","Telefon privat:\n" }, | 784 | { "Home phone:\n","Telefon privat:\n" }, |
785 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 785 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
786 | { "Email:\n","Email:\n" }, | 786 | { "Email:\n","Email:\n" }, |
787 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, | 787 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, |
788 | { "Audio Al.: ","Audio Al.: " }, | 788 | { "Audio Al.: ","Audio Al.: " }, |
789 | { "Proc.Al.: ","Proz.Al.: " }, | 789 | { "Proc.Al.: ","Proz.Al.: " }, |
790 | { "No sound set","Kein Sound definiert" }, | 790 | { "No sound set","Kein Sound definiert" }, |
791 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 791 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
792 | { "No program set","Kein Programm definiert" }, | 792 | { "No program set","Kein Programm definiert" }, |
793 | { "Running '%1'","Ausführen '%1'" }, | 793 | { "Running '%1'","Ausführen '%1'" }, |
794 | { "Playing '%1'","Abspielen '%1'" }, | 794 | { "Playing '%1'","Abspielen '%1'" }, |
795 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 795 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, |
796 | { "Load!","Laden!" }, | 796 | { "Load!","Laden!" }, |
797 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, | 797 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, |
798 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 798 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
799 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 799 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
800 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 800 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
801 | { "Features + hints...","Eigenschaften + Tipps..." }, | 801 | { "Features + hints...","Eigenschaften + Tipps..." }, |
802 | { "User translation...","Benutzer Übersetzung..." }, | 802 | { "User translation...","Benutzer Übersetzung..." }, |
803 | { "Sync HowTo...","Synchronisation HowTo..." }, | 803 | { "Sync HowTo...","Synchronisation HowTo..." }, |
804 | { "Print calendar...","Drucke Kalender..." }, | 804 | { "Print calendar...","Drucke Kalender..." }, |
805 | { "Anniversary","Jahrestag" }, | 805 | { "Anniversary","Jahrestag" }, |
806 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, | 806 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, |
807 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 807 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
808 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 808 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
809 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 809 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
810 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 810 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
811 | { "(%1 min before)","(%1 min vorher)" }, | 811 | { "(%1 min before)","(%1 min vorher)" }, |
812 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 812 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
813 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 813 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
814 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, | 814 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, |
815 | { "Continue","Weitermachen" }, | 815 | { "Continue","Weitermachen" }, |
816 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 816 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
817 | { "Attendee:","Teilnehmer:" }, | 817 | { "Attendee:","Teilnehmer:" }, |
818 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 818 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
819 | { "On day ","Am Tag " }, | 819 | { "On day ","Am Tag " }, |
820 | { "%1 of ","%1 des Monats" }, | 820 | { "%1 of ","%1 des Monats" }, |
821 | { "%1 of the year","%1 des Jahres" }, | 821 | { "%1 of the year","%1 des Jahres" }, |
822 | { "Anonymous","Anonymo" }, | 822 | { "Anonymous","Anonymo" }, |
823 | { "nobody@nowhere","niemand@nirgendwo" }, | 823 | { "nobody@nowhere","niemand@nirgendwo" }, |
824 | { "calendar.html","calendar.html" }, | 824 | { "calendar.html","calendar.html" }, |
825 | { " Local Time"," Lokale Zeit" }, | 825 | { " Local Time"," Lokale Zeit" }, |
826 | { "Unknown Name","Unbekannter Name" }, | 826 | { "Unknown Name","Unbekannter Name" }, |
827 | { "unknown@nowhere","unbekannt@nirgendwo" }, | 827 | { "unknown@nowhere","unbekannt@nirgendwo" }, |
828 | { "Beam via IR!","Beam via IR!" }, | 828 | { "Beam via IR!","Beam via IR!" }, |
829 | { "Next Month","Nächster Monat" }, | 829 | { "Next Month","Nächster Monat" }, |
830 | { "Prio","Prio" }, | 830 | { "Prio","Prio" }, |
831 | { "Reparent Todo","Mache Sub-Todo" }, | 831 | { "Reparent Todo","Mache Sub-Todo" }, |
832 | { "tomorrow","morgen" }, | 832 | { "tomorrow","morgen" }, |
833 | { "today","heute" }, | 833 | { "today","heute" }, |
834 | { "yesterday","gestern" }, | 834 | { "yesterday","gestern" }, |
835 | { "Ok","Ok" }, | 835 | { "Ok","Ok" }, |
836 | { "Ok+Agenda","Ok+Agenda" }, | 836 | { "Ok+Agenda","Ok+Agenda" }, |
837 | { "Email","Email" }, | 837 | { "Email","Email" }, |
838 | { "RSVP","RSVP" }, | 838 | { "RSVP","RSVP" }, |
839 | { "Email:","Email:" }, | 839 | { "Email:","Email:" }, |
840 | { "Appointment Time ","Termin Zeit " }, | 840 | { "Appointment Time ","Termin Zeit " }, |
841 | { "2","2" }, | 841 | { "2","2" }, |
842 | { "3","3" }, | 842 | { "3","3" }, |
843 | { "4","4" }, | 843 | { "4","4" }, |
844 | { " 0 %"," 0 %" }, | 844 | { " 0 %"," 0 %" }, |
845 | { " 20 %"," 20 %" }, | 845 | { " 20 %"," 20 %" }, |
846 | { " 40 %"," 40 %" }, | 846 | { " 40 %"," 40 %" }, |
847 | { " 60 %"," 60 %" }, | 847 | { " 60 %"," 60 %" }, |
848 | { " 80 %"," 80 %" }, | 848 | { " 80 %"," 80 %" }, |
849 | { "100 %","100 %" }, | 849 | { "100 %","100 %" }, |
850 | { "Filter","Filter" }, | 850 | { "Filter","Filter" }, |
851 | { "Configure","Konfiguriere" }, | 851 | { "Configure","Konfiguriere" }, |
852 | { "What's Next","What's Next" }, | 852 | { "What's Next","What's Next" }, |
853 | { "Complete calendar...","Kompletten Kalender..." }, | 853 | { "Complete calendar...","Kompletten Kalender..." }, |
854 | { "Filtered calendar...","Gefilterten Kalender..." }, | 854 | { "Filtered calendar...","Gefilterten Kalender..." }, |
855 | { "Export to phone","Exportiere zum Handy" }, | 855 | { "Export to phone","Exportiere zum Handy" }, |
856 | { "Beam receive enabled","Beam Empfang an" }, | 856 | { "Beam receive enabled","Beam Empfang an" }, |
857 | { "What's new?","Was ist neu?" }, | 857 | { "What's new?","Was ist neu?" }, |
858 | { "FAQ...","FAQ..." }, | 858 | { "FAQ...","FAQ..." }, |
859 | { "Licence...","Licence..." }, | 859 | { "Licence...","Licence..." }, |
860 | { "What's This?","What's This?" }, | 860 | { "What's This?","What's This?" }, |
861 | { "&Edit...","Bearbeite..." }, | 861 | { "&Edit...","Bearbeite..." }, |
862 | { "Oktober","Oktober" }, | 862 | { "Oktober","Oktober" }, |
863 | { "Title","Titel" }, | 863 | { "Title","Titel" }, |
864 | { "%1 %","%1 %" }, | 864 | { "%1 %","%1 %" }, |
865 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 865 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
866 | { "Import!","Importiere!" }, | 866 | { "Import!","Importiere!" }, |
867 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 867 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
868 | { "Export to phone options","Export ans Handy Optionen" }, | 868 | { "Export to phone options","Export ans Handy Optionen" }, |
869 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 869 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
870 | { "I/O device: ","I/O device: " }, | 870 | { "I/O device: ","I/O device: " }, |
871 | { "Connection: ","Connection: " }, | 871 | { "Connection: ","Connection: " }, |
872 | { "Model(opt.): ","Model(opt.): " }, | 872 | { "Model(opt.): ","Model(opt.): " }, |
873 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 873 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
874 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 874 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
875 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, | 875 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, |
876 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 876 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
877 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 877 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
878 | { "Writing to phone...","Sende Daten ans Handy..." }, | 878 | { "Writing to phone...","Sende Daten ans Handy..." }, |
879 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 879 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
880 | { "Retry","Nochmal versuchen" }, | 880 | { "Retry","Nochmal versuchen" }, |
881 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 881 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
882 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 882 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
883 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 883 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
884 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 884 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
885 | { "Preferences","Vorlieben" }, | 885 | { "Preferences","Vorlieben" }, |
886 | { "Global","Global" }, | 886 | { "Global","Global" }, |
887 | { "Phone","Phone" }, | 887 | { "Phone","Phone" }, |
888 | { "SMS","SMS" }, | 888 | { "SMS","SMS" }, |
889 | { "Fax","Fax" }, | 889 | { "Fax","Fax" }, |
890 | { "Pager","Pager" }, | 890 | { "Pager","Pager" }, |
891 | { "SIP","SIP" }, | 891 | { "SIP","SIP" }, |
892 | { "Italian","Italienisch" }, | 892 | { "Italian","Italienisch" }, |
893 | { "24:00","24:00" }, | 893 | { "24:00","24:00" }, |
894 | { "12:00am","12:00am" }, | 894 | { "12:00am","12:00am" }, |
895 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 895 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
896 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 896 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
897 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 897 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
898 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 898 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
899 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 899 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
900 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 900 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
901 | { "Used Mail Client","Benutzter Mail Client" }, | 901 | { "Used Mail Client","Benutzter Mail Client" }, |
902 | { "Channel:","Channel:" }, | 902 | { "Channel:","Channel:" }, |
903 | { "Message:","Message:" }, | 903 | { "Message:","Message:" }, |
904 | { "Parameters:","Parameter:" }, | 904 | { "Parameters:","Parameter:" }, |
905 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 905 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
906 | { "extra Message:","extra Message:" }, | 906 | { "extra Message:","extra Message:" }, |
907 | { "extra Parameters:","extra Parameter:" }, | 907 | { "extra Parameters:","extra Parameter:" }, |
908 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 908 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
909 | { "External Apps.","Externe Appl." }, | 909 | { "External Apps.","Externe Appl." }, |
910 | { "24 hours","24 Std." }, | 910 | { "24 hours","24 Std." }, |
911 | { "3 hours","3 Std." }, | 911 | { "3 hours","3 Std." }, |
912 | { "1 hour","1 Std." }, | 912 | { "1 hour","1 Std." }, |
913 | { "15 minutes","15 Min." }, | 913 | { "15 minutes","15 Min." }, |
914 | { "5 minutes","5 Min." }, | 914 | { "5 minutes","5 Min." }, |
915 | { "1 minute","1 Min." }, | 915 | { "1 minute","1 Min." }, |
916 | { "23","23" }, | 916 | { "23","23" }, |
917 | { "Mon 15","Mon 15" }, | 917 | { "Mon 15","Mon 15" }, |
918 | { "Configure KO","Konfiguriere KO" }, | 918 | { "Configure KO","Konfiguriere KO" }, |
919 | { "Event text","Termin Text" }, | 919 | { "Event text","Termin Text" }, |
920 | { "ToDo","Todo" }, | 920 | { "ToDo","Todo" }, |
921 | { "Today","Heute" }, | 921 | { "Today","Heute" }, |
922 | { "What's Next View","What's Next Ansicht" }, | 922 | { "What's Next View","What's Next Ansicht" }, |
923 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 923 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
924 | { "Alarm","Alarm" }, | 924 | { "Alarm","Alarm" }, |
925 | { "Used %1 Client","Benutzter %1 Client" }, | 925 | { "Used %1 Client","Benutzter %1 Client" }, |
926 | { "No email client installed","Kein Email Klient installiert" }, | 926 | { "No email client installed","Kein Email Klient installiert" }, |
927 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 927 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
928 | { "OM/Pi email client","OM/Pi Email Klient" }, | 928 | { "OM/Pi email client","OM/Pi Email Klient" }, |
929 | { "Include in multiple ","Beziehe in multiple " }, | 929 | { "Include in multiple ","Beziehe in multiple " }, |
930 | { "calendar ","Kalender " }, | 930 | { "calendar ","Kalender " }, |
931 | { "addressbook ","Adressbuch " }, | 931 | { "addressbook ","Adressbuch " }, |
932 | { "pwmanager","PWmanager" }, | 932 | { "pwmanager","PWmanager" }, |
933 | { " sync"," Sync ein" }, | 933 | { " sync"," Sync ein" }, |
934 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 934 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
935 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 935 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
936 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 936 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
937 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 937 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
938 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 938 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
939 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 939 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
940 | { "Help...","Hilfe..." }, | 940 | { "Help...","Hilfe..." }, |
941 | { "Local file Cal:","Lokale Datei Kal:" }, | 941 | { "Local file Cal:","Lokale Datei Kal:" }, |
942 | { "Local file ABook:","Lokale Datei ABuch:" }, | 942 | { "Local file ABook:","Lokale Datei ABuch:" }, |
943 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 943 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
944 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 944 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
945 | { "Calendar:","Kalender:" }, | 945 | { "Calendar:","Kalender:" }, |
946 | { "AddressBook:","AdressBuch:" }, | 946 | { "AddressBook:","AdressBuch:" }, |
947 | { "PWManager:","PWManager:" }, | 947 | { "PWManager:","PWManager:" }, |
948 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 948 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
949 | { "ssh/scp","ssh/scp" }, | 949 | { "ssh/scp","ssh/scp" }, |
950 | { "ftp","ftp" }, | 950 | { "ftp","ftp" }, |
951 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 951 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
952 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 952 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
953 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 953 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
954 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 954 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
955 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 955 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
956 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 956 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
957 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 957 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
958 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 958 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
959 | { "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" }, | 959 | { "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" }, |
960 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 960 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
961 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 961 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
962 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 962 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
963 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 963 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
964 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 964 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
965 | { "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!" }, | 965 | { "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!" }, |
966 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 966 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
967 | { "Multiple profiles","Multi-Sync Profile" }, | 967 | { "Multiple profiles","Multi-Sync Profile" }, |
968 | { "Device: ","Gerät: " }, | 968 | { "Device: ","Gerät: " }, |
969 | { "Multiple sync started.","Multi-Sync gestartet." }, | 969 | { "Multiple sync started.","Multi-Sync gestartet." }, |
970 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 970 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
971 | { "Turn filter on","Schalte Filter an" }, | 971 | { "Turn filter on","Schalte Filter an" }, |
972 | { "Turn filter off","Schalte Filter aus" }, | 972 | { "Turn filter off","Schalte Filter aus" }, |
973 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 973 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
974 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 974 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
975 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 975 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
976 | { "<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" }, | 976 | { "<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" }, |
977 | { "<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" }, | 977 | { "<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" }, |
978 | { "<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" }, | 978 | { "<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" }, |
979 | { "<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" }, | 979 | { "<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" }, |
980 | { "<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" }, | 980 | { "<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" }, |
981 | { "<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" }, | 981 | { "<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" }, |
982 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 982 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
983 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 983 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
984 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 984 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
985 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 985 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
986 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 986 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
987 | { "<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" }, | 987 | { "<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" }, |
988 | { "<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" }, | 988 | { "<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" }, |
989 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 989 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
990 | { "<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" }, | 990 | { "<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" }, |
991 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 991 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
992 | { "<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" }, | 992 | { "<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" }, |
993 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 993 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
994 | { "<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" }, | 994 | { "<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" }, |
995 | { "<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" }, | 995 | { "<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" }, |
996 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 996 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
997 | { "<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" }, | 997 | { "<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" }, |
998 | { "<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" }, | 998 | { "<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" }, |
999 | { "<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" }, | 999 | { "<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" }, |
1000 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1000 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1001 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1001 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1002 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1002 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1003 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1003 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1004 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1004 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1005 | { "<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" }, | 1005 | { "<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" }, |
1006 | { "<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" }, | 1006 | { "<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" }, |
1007 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1007 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1008 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1008 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1009 | { "<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" }, | 1009 | { "<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" }, |
1010 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, | 1010 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X+ctrl</b>: Zeige/verstecke Datumsnavigator</p>\n" }, |
1011 | { "<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" }, | 1011 | { "<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" }, |
1012 | { "<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" }, | 1012 | { "<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" }, |
1013 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, | 1013 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monatsansicht</p>\n" }, |
1014 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, | 1014 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochenansicht | <b>U</b>: Wochenansicht</p>\n" }, |
1015 | { "<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" }, | 1015 | { "<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" }, |
1016 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, | 1016 | { "<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ","<p><b>X</b>: Nächste-X-Tage Ansicht | <b>W</b>: What's Next Ansicht\n " }, |
1017 | { "<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" }, | 1017 | { "<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" }, |
1018 | { "<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" }, | 1018 | { "<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" }, |
1019 | { "<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" }, | 1019 | { "<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" }, |
1020 | { "<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" }, | 1020 | { "<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" }, |
1021 | { "<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" }, | 1021 | { "<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" }, |
1022 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1022 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1023 | { "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" }, | 1023 | { "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" }, |
1024 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1024 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1025 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1025 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1026 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1026 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1027 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, | 1027 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.info\n" }, |
1028 | { "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" }, | 1028 | { "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" }, |
1029 | { "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" }, | 1029 | { "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" }, |
1030 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1030 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1031 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1031 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1032 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, | 1032 | { "PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n","PDA-Edition\nfür: Zaurus 5x00/7x0/860/3000/6000\n" }, |
1033 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1033 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1034 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1034 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1035 | { "From: ","Von: " }, | 1035 | { "From: ","Von: " }, |
1036 | { "Remove sync info","Entferne Sync Info" }, | 1036 | { "Remove sync info","Entferne Sync Info" }, |
1037 | { "For all profiles","Für alle Profile" }, | 1037 | { "For all profiles","Für alle Profile" }, |
1038 | { "Hide not Running","Verstecke nicht Laufende" }, | 1038 | { "Hide not Running","Verstecke nicht Laufende" }, |
1039 | { "ME","ME" }, | 1039 | { "ME","ME" }, |
1040 | { "Toolbar","Toolbar" }, | 1040 | { "Toolbar","Toolbar" }, |
1041 | { "Undo Delete...","UNDO Löschen..." }, | 1041 | { "Undo Delete...","UNDO Löschen..." }, |
1042 | { "Undo Delete","Löschen rückgängig machen" }, | 1042 | { "Undo Delete","Löschen rückgängig machen" }, |
1043 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1043 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1044 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1044 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1045 | { "Januar","Januar" }, | 1045 | { "Januar","Januar" }, |
1046 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1046 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1047 | { "No Filter","Kein Filter" }, | 1047 | { "No Filter","Kein Filter" }, |
1048 | { "Multiple Sync options","Multi Sync Optionen" }, | 1048 | { "Multiple Sync options","Multi Sync Optionen" }, |
1049 | { "Sync algo options","Sync Ablauf Optionen" }, | 1049 | { "Sync algo options","Sync Ablauf Optionen" }, |
1050 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1050 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1051 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1051 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1052 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1052 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1053 | { "Write back options","Optionen zum Zurückschreiben" }, | 1053 | { "Write back options","Optionen zum Zurückschreiben" }, |
1054 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1054 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1055 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1055 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1056 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1056 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1057 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1057 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1058 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1058 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1059 | { "Time period","Zeitspanne" }, | 1059 | { "Time period","Zeitspanne" }, |
1060 | { "From ","Von " }, | 1060 | { "From ","Von " }, |
1061 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1061 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1062 | { " weeks in the future "," Wochen in der Zukunft " }, | 1062 | { " weeks in the future "," Wochen in der Zukunft " }, |
1063 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1063 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1064 | { "Local temp file:","Lokale temp Datei:" }, | 1064 | { "Local temp file:","Lokale temp Datei:" }, |
1065 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1065 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1066 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1066 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1067 | { "Language","Sprache" }, | 1067 | { "Language","Sprache" }, |
1068 | { "Time Format","Zeit Format" }, | 1068 | { "Time Format","Zeit Format" }, |
1069 | { "Time Zone","Zeit Zone" }, | 1069 | { "Time Zone","Zeit Zone" }, |
1070 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1070 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1071 | { "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" }, | 1071 | { "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" }, |
1072 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1072 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1073 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1073 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1074 | { "Save settings","Speichere Einstellungen" }, | 1074 | { "Save settings","Speichere Einstellungen" }, |
1075 | { "Save standard","Speichere Standard" }, | 1075 | { "Save standard","Speichere Standard" }, |
1076 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1076 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1077 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1077 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1078 | { "Data storage path","Daten Speicherpfad" }, | 1078 | { "Data storage path","Daten Speicherpfad" }, |
1079 | { "Language","Sprache" }, | 1079 | { "Language","Sprache" }, |
1080 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1080 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1081 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1081 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1082 | { "Show events that are done","Zeige abgelaufene Termine" }, | 1082 | { "Show events that are done","Zeige abgelaufene Termine" }, |
1083 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1083 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1084 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1084 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1085 | { "KO/Pi","KO/Pi" }, | 1085 | { "KO/Pi","KO/Pi" }, |
1086 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1086 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1087 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1087 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1088 | { "Sound.Al.: ","Sound.Al.: " }, | 1088 | { "Sound.Al.: ","Sound.Al.: " }, |
1089 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1089 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1090 | { "Restore","Wiederherstellen" }, | 1090 | { "Restore","Wiederherstellen" }, |
1091 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklich\nwiederherstellen?" }, | 1091 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklich\nwiederherstellen?" }, |
1092 | { "% completed","% erledigt" }, | 1092 | { "% completed","% erledigt" }, |
1093 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1093 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1094 | { "Set complete","Setze auf erledigt" }, | 1094 | { "Set complete","Setze auf erledigt" }, |
1095 | { "(cancelled)","(gecancelt)" }, | 1095 | { "(cancelled)","(gecancelt)" }, |
1096 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1096 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1097 | { " Local time "," Lokale Zeit " }, | 1097 | { " Local time "," Lokale Zeit " }, |
1098 | { "Form2","Form2" }, | 1098 | { "Form2","Form2" }, |
1099 | { "Filter enabled","Filter angeschaltet" }, | 1099 | { "Filter enabled","Filter angeschaltet" }, |
1100 | { "Edit Filters","Ändere Filter" }, | 1100 | { "Edit Filters","Ändere Filter" }, |
1101 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1101 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1102 | { "Agenda","Agenda" }, | 1102 | { "Agenda","Agenda" }, |
1103 | { " ("," (" }, | 1103 | { " ("," (" }, |
1104 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1104 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1105 | { "Print","Print" }, | 1105 | { "Print","Print" }, |
1106 | { "&Setup Printer...","Drucker &Setup..." }, | 1106 | { "&Setup Printer...","Drucker &Setup..." }, |
1107 | { "View Type","Zeige Typ" }, | 1107 | { "View Type","Zeige Typ" }, |
1108 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1108 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1109 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1109 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1110 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1110 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1111 | { "Portrait","Portrait" }, | 1111 | { "Portrait","Portrait" }, |
1112 | { "Landscape","Landschaft" }, | 1112 | { "Landscape","Landschaft" }, |
1113 | { "Print day","Drucke Tag" }, | 1113 | { "Print day","Drucke Tag" }, |
1114 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1114 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1115 | { "Date && Time Range","Datum && Zeitspanne" }, | 1115 | { "Date && Time Range","Datum && Zeitspanne" }, |
1116 | { "&End date:","&Enddatum:" }, | 1116 | { "&End date:","&Enddatum:" }, |
1117 | { "&Start date:","&Startdatum:" }, | 1117 | { "&Start date:","&Startdatum:" }, |
1118 | { "Start &time:","Startzeit:" }, | 1118 | { "Start &time:","Startzeit:" }, |
1119 | { "End ti&me:","Endzeit:" }, | 1119 | { "End ti&me:","Endzeit:" }, |
1120 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1120 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1121 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1121 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1122 | { "Alt+D","Alt+D" }, | 1122 | { "Alt+D","Alt+D" }, |
1123 | { "&Use colors","Nutze Farben" }, | 1123 | { "&Use colors","Nutze Farben" }, |
1124 | { "Alt+U","Alt+U" }, | 1124 | { "Alt+U","Alt+U" }, |
1125 | { "Print week","Drucke Woche" }, | 1125 | { "Print week","Drucke Woche" }, |
1126 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1126 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1127 | { "Use &colors","Nutze Farben" }, | 1127 | { "Use &colors","Nutze Farben" }, |
1128 | { "Type of View","Typ der Ansicht" }, | 1128 | { "Type of View","Typ der Ansicht" }, |
1129 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1129 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1130 | { "Alt+F","Alt+F" }, | 1130 | { "Alt+F","Alt+F" }, |
1131 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1131 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1132 | { "Alt+T","Alt+T" }, | 1132 | { "Alt+T","Alt+T" }, |
1133 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1133 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1134 | { "Print month","Drucke Monat" }, | 1134 | { "Print month","Drucke Monat" }, |
1135 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1135 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1136 | { "&Start month:","&Startmonat:" }, | 1136 | { "&Start month:","&Startmonat:" }, |
1137 | { "&End month:","&Endmonat:" }, | 1137 | { "&End month:","&Endmonat:" }, |
1138 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1138 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1139 | { "Print todos","Drucke Todos" }, | 1139 | { "Print todos","Drucke Todos" }, |
1140 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1140 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1141 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1141 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1142 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1142 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1143 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1143 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1144 | { "Items to Print","Zu druckende Items" }, | 1144 | { "Items to Print","Zu druckende Items" }, |
1145 | { "&From:","Von:" }, | 1145 | { "&From:","Von:" }, |
1146 | { "&To:","Bis:" }, | 1146 | { "&To:","Bis:" }, |
1147 | { "Print &all todo items","Drucke alle Todo Items" }, | 1147 | { "Print &all todo items","Drucke alle Todo Items" }, |
1148 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1148 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1149 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1149 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1150 | { "Todo List","Todo Liste" }, | 1150 | { "Todo List","Todo Liste" }, |
1151 | { "&Title:","&Titel:" }, | 1151 | { "&Title:","&Titel:" }, |
1152 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, | 1152 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, |
1153 | { "Todo list","Todo Liste" }, | 1153 | { "Todo list","Todo Liste" }, |
1154 | { "&Print...","Drucke..." }, | 1154 | { "&Print...","Drucke..." }, |
1155 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1155 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1156 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1156 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1157 | { "OK","OK" }, | 1157 | { "OK","OK" }, |
1158 | { "FilterEditor","FilterEditor" }, | 1158 | { "FilterEditor","FilterEditor" }, |
1159 | { "Include","Inclusive" }, | 1159 | { "Include","Inclusive" }, |
1160 | { "Exclude","Exclusive" }, | 1160 | { "Exclude","Exclusive" }, |
1161 | { "Edit Selection...","Editiere Auswahl" }, | 1161 | { "Edit Selection...","Editiere Auswahl" }, |
1162 | { "recurring events","wiederholende Termine" }, | 1162 | { "recurring events","wiederholende Termine" }, |
1163 | { "recurr. events","wiederh.Termine" }, | 1163 | { "recurr. events","wiederh.Termine" }, |
1164 | { "completed to-dos","erledigte Todos" }, | 1164 | { "completed to-dos","erledigte Todos" }, |
1165 | { "events","Termine" }, | 1165 | { "events","Termine" }, |
1166 | { "todos","Todos" }, | 1166 | { "todos","Todos" }, |
1167 | { "journals","Journale" }, | 1167 | { "journals","Journale" }, |
1168 | { "public","öffentl." }, | 1168 | { "public","öffentl." }, |
1169 | { "private","privat" }, | 1169 | { "private","privat" }, |
1170 | { "confidential","vertraul." }, | 1170 | { "confidential","vertraul." }, |
1171 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, | 1171 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, |
1172 | { "Yesterday","Gestern" }, | 1172 | { "Yesterday","Gestern" }, |
1173 | { "Day after tomorrow","Übermorgen" }, | 1173 | { "Day after tomorrow","Übermorgen" }, |
1174 | { "Tomorrow","Morgen" }, | 1174 | { "Tomorrow","Morgen" }, |
1175 | { "Day before yesterday","Vorgestern" }, | 1175 | { "Day before yesterday","Vorgestern" }, |
1176 | { "Size %1","Größe %1" }, | 1176 | { "Size %1","Größe %1" }, |
1177 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1177 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1178 | { " (%1 y.)"," (%1 J.)" }, | 1178 | { " (%1 y.)"," (%1 J.)" }, |
1179 | { "Allday:","Ganztägig:" }, | 1179 | { "Allday:","Ganztägig:" }, |
1180 | { "compl.todos","erled.Todos" }, | 1180 | { "compl.todos","erled.Todos" }, |
1181 | { "Day view","Tagesansicht" }, | 1181 | { "Day view","Tagesansicht" }, |
1182 | { "Next days","Nächste Tage" }, | 1182 | { "Next days","Nächste Tage" }, |
1183 | { "Next week","Nächste Woche" }, | 1183 | { "Next week","Nächste Woche" }, |
1184 | { "Next two weeks","Nächste zwei Wochen" }, | 1184 | { "Next two weeks","Nächste zwei Wochen" }, |
1185 | { "This month","Dieser Monat" }, | 1185 | { "This month","Dieser Monat" }, |
1186 | { "Journal view","Journal" }, | 1186 | { "Journal view","Journal" }, |
1187 | { "Display all opened","Zeige alle geöffnet" }, | 1187 | { "Display all opened","Zeige alle geöffnet" }, |
1188 | { "Display all closed","Zeige alle geschlossen" }, | 1188 | { "Display all closed","Zeige alle geschlossen" }, |
1189 | { "Display all flat","Zeige alle flach" }, | 1189 | { "Display all flat","Zeige alle flach" }, |
1190 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1190 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1191 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1191 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1192 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1192 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1193 | { "Select Week","Wähle Woche" }, | 1193 | { "Select Week","Wähle Woche" }, |
1194 | { "Set alarm...","Setze Alarm..." }, | 1194 | { "Set alarm...","Setze Alarm..." }, |
1195 | { "Set Alarm!","Setze Alarm!" }, | 1195 | { "Set Alarm!","Setze Alarm!" }, |
1196 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, | 1196 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, |
1197 | { " and "," und " }, | 1197 | { " and "," und " }, |
1198 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1198 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1199 | { "Mail to selected","Mail an Ausgewählte" }, | 1199 | { "Mail to selected","Mail an Ausgewählte" }, |
1200 | { "Mail to all","Mail an Alle" }, | 1200 | { "Mail to all","Mail an Alle" }, |
1201 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1201 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1202 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1202 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1203 | { " on"," am" }, | 1203 | { " on"," am" }, |
1204 | { " completed on "," erledigt am " }, | 1204 | { " completed on "," erledigt am " }, |
1205 | { "Save as Event template","Speichere als Vorlage" }, | 1205 | { "Save as Event template","Speichere als Vorlage" }, |
1206 | { "Load Event template","Lade Termin Vorlage" }, | 1206 | { "Load Event template","Lade Termin Vorlage" }, |
1207 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1207 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1208 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1208 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1209 | { "Sub todos:<br>","Unter-Todos:<br>" }, | 1209 | { "Sub todos:<br>","Unter-Todos:<br>" }, |
1210 | { "Parent todo:<br>","Über-Todo:<br>" }, | 1210 | { "Parent todo:<br>","Über-Todo:<br>" }, |
1211 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1211 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1212 | { " completed"," erledigt" }, | 1212 | { " completed"," erledigt" }, |
1213 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, | 1213 | { "(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!","(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi basiert auf KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) und das KDE Team.\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.pi-sync.info --- www.korganizer.org\nBesonderen Dank an Michael und Ben\nfür intensives Testen!" }, |
1214 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1214 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1215 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1215 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1216 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1216 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1217 | { "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?" }, | 1217 | { "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?" }, |
1218 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1218 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1219 | { "Error","Fehler" }, | 1219 | { "Error","Fehler" }, |
1220 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1220 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1221 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1221 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1222 | { "Warning","Warnung" }, | 1222 | { "Warning","Warnung" }, |
1223 | { "Select week number","Wähle Wochen Nummer" }, | 1223 | { "Select week number","Wähle Wochen Nummer" }, |
1224 | { "Februar","Februar" }, | 1224 | { "Februar","Februar" }, |
1225 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1225 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1226 | { "W","W" }, | 1226 | { "W","W" }, |
1227 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1227 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1228 | { "T: %1","T: %1" }, | 1228 | { "T: %1","T: %1" }, |
1229 | { "Start: ","Start: " }, | 1229 | { "Start: ","Start: " }, |
1230 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1230 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1231 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1231 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1232 | { "Remote IP address:","Ferne IP Adresse:" }, | 1232 | { "Remote IP address:","Ferne IP Adresse:" }, |
1233 | { "Remote port number:","Ferne Port Nummer:" }, | 1233 | { "Remote port number:","Ferne Port Nummer:" }, |
1234 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1234 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1235 | { "Remote from: ","Fern von: " }, | 1235 | { "Remote from: ","Fern von: " }, |
1236 | { "Local from: ","Lokal von: " }, | 1236 | { "Local from: ","Lokal von: " }, |
1237 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, | 1237 | { "Synchronization summary:\n\n %d items added to local\n %d items added to remote\n %d items updated on local\n %d items updated on remote\n %d items deleted on local\n %d items deleted on remote\n %d incoming filtered out\n %d outgoing filtered out\n","Synchronisationsübersicht:\n\n %d lokal hinzugefügt\n %d fern hinzugefügt\n %d lokal geändert\n %d fern geändert\n %d lokal gelöscht\n %d fern gelöscht\n %d eingehende ausgefiltert\n %d ausgehende ausgefiltert\n" }, |
1238 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1238 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1239 | { "Write back","Schreibe zurück" }, | 1239 | { "Write back","Schreibe zurück" }, |
1240 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1240 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1241 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1241 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1242 | { "Received sync request","Sync Anfrage erhalten" }, | 1242 | { "Received sync request","Sync Anfrage erhalten" }, |
1243 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, | 1243 | { "Synchronizing from remote ...\n\nDo not use this application!\n\nIf syncing fails\nyou can close this dialog.","Ferne Synchronisation ...\n\nBenutze diese Anwendung nicht!\n\nWenn das Syncen fehlschlägt kann\ndieser Dialog geschlossen werden." }, |
1244 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1244 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1245 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1245 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1246 | { "Sending file...","Sende Datei..." }, | 1246 | { "Sending file...","Sende Datei..." }, |
1247 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1247 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1248 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1248 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1249 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1249 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1250 | { "Writing file to disk...","Speichere Datei..." }, | 1250 | { "Writing file to disk...","Speichere Datei..." }, |
1251 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1251 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1252 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1252 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1253 | { "Synchronize!","Synchronisiere!" }, | 1253 | { "Synchronize!","Synchronisiere!" }, |
1254 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1254 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1255 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1255 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1256 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, | 1256 | { "The clocks of the syncing\ndevices have a difference\nof more than 5 minutes.\nPlease adjust your clocks.\nYou may get wrong syncing results!\nPlease confirm synchronization!","Die Uhren der syncenden Geräte\nhaben einen Unterschied von\nmehr als 5 Minuten. Bitte die\nUhrzeiten anpassen. Sie können\nfalsche Sync-Resultate erhalten!\nBitte das Syncen bestätigen!" }, |
1257 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1257 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1258 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1258 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1259 | { "List week view","Listenwochenansicht" }, | 1259 | { "List week view","Listenwochenansicht" }, |
1260 | { "List week","Listenwochenansicht" }, | 1260 | { "List week","Listenwochenansicht" }, |
1261 | { "Next Week","Nächste Woche" }, | 1261 | { "Next Week","Nächste Woche" }, |
1262 | { "Previous Week","Vorherige Woche" }, | 1262 | { "Previous Week","Vorherige Woche" }, |
1263 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, | 1263 | { "No items were found matching\nyour search expression.\nUse the wildcard characters\n'*' and '?' where needed.","Keine Einträge gefunden die\ndem Suchausdruck entsprechen.\nBenutze Platzhalter Zeichen\n'*' und '?' wo benötigt." }, |
1264 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1264 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1265 | { "Details","Details" }, | 1265 | { "Details","Details" }, |
1266 | { "Created time","Erstellt Zeit" }, | 1266 | { "Created time","Erstellt Zeit" }, |
1267 | { "Last modified time","Geändert Zeit" }, | 1267 | { "Last modified time","Geändert Zeit" }, |
1268 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1268 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1269 | { "View Options","Anzeige Optionen" }, | 1269 | { "View Options","Anzeige Optionen" }, |
1270 | { "<b>Created: ","<b>Erstellt am: " }, | 1270 | { "<b>Created: ","<b>Erstellt am: " }, |
1271 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1271 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1272 | { "Journal: ","Journal: " }, | 1272 | { "Journal: ","Journal: " }, |
1273 | { "yearly","jährlich" }, | 1273 | { "yearly","jährlich" }, |
1274 | { "(%1) ","%1-" }, | 1274 | { "(%1) ","%1-" }, |
1275 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1275 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1276 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1276 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1277 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1277 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1278 | { "Summary/Loc.","Titel/Ort" }, | 1278 | { "Summary/Loc.","Titel/Ort" }, |
1279 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1279 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1280 | { "Week Number","Wochennummer" }, | 1280 | { "Week Number","Wochennummer" }, |
1281 | { "Import","Importiere" }, | 1281 | { "Import","Importiere" }, |
1282 | { "Export","Exportiere" }, | 1282 | { "Export","Exportiere" }, |
1283 | { "Beam","Beame" }, | 1283 | { "Beam","Beame" }, |
1284 | { "Export","Exportiere" }, | 1284 | { "Export","Exportiere" }, |
1285 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1285 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1286 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1286 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1287 | { "Journal/Details...","Journale/Details..." }, | 1287 | { "Journal/Details...","Journale/Details..." }, |
1288 | { "Agenda View","Agenda Ansicht" }, | 1288 | { "Agenda View","Agenda Ansicht" }, |
1289 | { "Show current time","Zeige aktuelle Zeit" }, | 1289 | { "Show current time","Zeige aktuelle Zeit" }, |
1290 | { "Edit new item","Bearbeite neuen Eintrag" }, | 1290 | { "Edit new item","Bearbeite neuen Eintrag" }, |
1291 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, | 1291 | { "Please select at least one\nof the types to search for:\n\nEvents\nTodos\nJournals","Bitte wählen Sie mindestens\neinen dieser Typen\num darin zu suchen:\n\nTermine\nTodos\nJournale" }, |
1292 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, | 1292 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, |
1293 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, | 1293 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, |
1294 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, | 1294 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, |
1295 | { "%1 days\n","%1 Tagen\n" }, | 1295 | { "%1 days\n","%1 Tagen\n" }, |
1296 | { "1 day\n","1 Tag\n" }, | 1296 | { "1 day\n","1 Tag\n" }, |
1297 | { "%1 hours\n","%1 Stunden\n" }, | 1297 | { "%1 hours\n","%1 Stunden\n" }, |
1298 | { "1 hour\n","1 Stunde\n" }, | 1298 | { "1 hour\n","1 Stunde\n" }, |
1299 | { "%1 minutes\n","%1 Minuten\n" }, | 1299 | { "%1 minutes\n","%1 Minuten\n" }, |
1300 | { "1 minute\n","1 Minute\n" }, | 1300 | { "1 minute\n","1 Minute\n" }, |
1301 | { "Only one toolbar","Nur eine Toolbar" }, | 1301 | { "Only one toolbar","Nur eine Toolbar" }, |
1302 | { "Print","Drucke" }, | 1302 | { "Print","Drucke" }, |
1303 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, | 1303 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, |
1304 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, | 1304 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, |
1305 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, | 1305 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, |
1306 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, | 1306 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, |
1307 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, | 1307 | { "This prints the view as you see it.\n(With the complete content, of course.)\nYou may change the print layout by resizing the view.\nPrint unscaled may print several pages\ndepending on the amount of data.\nPrint scaled down will print all on one page.\nPrint scaled up/down will print all on one page,\nbut will scale up the text to page boundaries,\nif the text is smaller than the page.\nYou can select page geometry setup in the next dialog.\n","Dies druckt die Ansicht wie man sie sieht.\n(Mit dem kompletten Inhalt natürlich.)\nMan kann das Layout ändern durch ändern der Fenstergröße.\nDrucke unskaliert druckt ggf. mehrere Seiten\nabhängig von der Menge der Daten.\nDrucke runterskaliert um auf eine Seite zu passen\ndruckt alles auf eine Seite.\nDrucke hoch/runterskaliert um genau auf eine Seite zu passen\nvergrößert den Text gegebenenfalls.\nDas Seitenlayout kann im nächsten Dialog gewählt werden.\n" }, |
1308 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1308 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1309 | { "Print unscaled","Drucke unskaliert" }, | 1309 | { "Print unscaled","Drucke unskaliert" }, |
1310 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1310 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1311 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1311 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1312 | { "Printout Mode","Druck Modus" }, | 1312 | { "Printout Mode","Druck Modus" }, |
1313 | { "Filter menu icon","Filtermenu Icon" }, | 1313 | { "Filter menu icon","Filtermenu Icon" }, |
1314 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, | 1314 | { "<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n","<p><b>A+(shift oder ctrl)</b>: Zeige Zeit bis zum nächsten Alarm</p>\n" }, |
1315 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, | 1315 | { "<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n","<p><b>N</b>: Wechsle zur nächsten Ansicht, die ein Icon in der Toolbar hat</p>\n" }, |
1316 | { "%1d","%1t" }, | 1316 | { "%1d","%1t" }, |
1317 | { "%1h","%1std" }, | 1317 | { "%1h","%1std" }, |
1318 | { "%1min","%1min" }, | 1318 | { "%1min","%1min" }, |
1319 | { "( %1 before )","( %1 vorher )" }, | 1319 | { "( %1 before )","( %1 vorher )" }, |
1320 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, | 1320 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, |
1321 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, | 1321 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, |
1322 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, | 1322 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, |
1323 | { "Show Sync Events","Zeige Sync-Ereignisse" }, | 1323 | { "Show Sync Events","Zeige Sync-Ereignisse" }, |
1324 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, | 1324 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, |
1325 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, | 1325 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, |
1326 | { " on "," am " }, | 1326 | { " on "," am " }, |
1327 | { "On: ","Am: " }, | 1327 | { "On: ","Am: " }, |
1328 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, | 1328 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, |
1329 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, | 1329 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, |
1330 | { "Color for running todos:","Farbe für laufende Todos:" }, | 1330 | { "Color for running todos:","Farbe für laufende Todos:" }, |
1331 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, | 1331 | { "The todo\n%1\nis started.\nDo you want to set\nthe state to stopped?","Das Todo\n%1\nist gestartet.\nWollen Sie es\nauf gestoppt setzen?" }, |
1332 | { "Todo is started","Todo ist gestartet" }, | 1332 | { "Todo is started","Todo ist gestartet" }, |
1333 | { "Stop todo","Stoppe Todo" }, | 1333 | { "Stop todo","Stoppe Todo" }, |
1334 | { "Todo is stopped","Todo ist gestoppt" }, | 1334 | { "Todo is stopped","Todo ist gestoppt" }, |
1335 | { "Start todo","Starte Todo" }, | 1335 | { "Start todo","Starte Todo" }, |
1336 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, | 1336 | { "The todo\n%1\nis stopped.\nDo you want to set\nthe state to started?","Das Todo\n%1\nist gestoppt.\nWollen Sie es auf\ngestartet setzen?" }, |
1337 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, | 1337 | { "The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?","Das Todo\n%1\nwird geklont!\nEs hat Untertodos!\nMöchten Sie alle\nUntertodos auch klonen?" }, |
1338 | { "Todo has subtodos","Todo hat Untertodos" }, | 1338 | { "Todo has subtodos","Todo hat Untertodos" }, |
1339 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, | 1339 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, |
1340 | { "Colors","Farben" }, | 1340 | { "Colors","Farben" }, |
1341 | { "Click on new parent item","Klicke auf neues Übertodo" }, | 1341 | { "Click on new parent item","Klicke auf neues Übertodo" }, |
1342 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, | 1342 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, |
1343 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, | 1343 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, |
1344 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, | 1344 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, |
1345 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, | 1345 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, |
1346 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 1346 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
1347 | { "times","Zeiten" }, | 1347 | { "times","Zeiten" }, |
1348 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, | 1348 | { "The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?","Das Todo\n%1\nhat Untertodos!\nMöchten Sie die Kategorien\nauch für alle Untertodos setzen?" }, |
1349 | { "Backup enabled","Backup angeschaltet" }, | 1349 | { "Backup enabled","Backup angeschaltet" }, |
1350 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 1350 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
1351 | { "Number of Backups:","Anzahl der Backups" }, | 1351 | { "Number of Backups:","Anzahl der Backups" }, |
1352 | { "Make backup every ","Mache ein Backup alle " }, | 1352 | { "Make backup every ","Mache ein Backup alle " }, |
1353 | { " days"," Tage" }, | 1353 | { " days"," Tage" }, |
1354 | { "Creating backup ... please wait ...","Erstelle Backup ... bitte warten ..." }, | 1354 | { "Creating backup ... please wait ...","Erstelle Backup ... bitte warten ..." }, |
1355 | { "Backup Failed!","Backup Problem!" }, | 1355 | { "Backup Failed!","Backup Problem!" }, |
1356 | { "Try again now","Versuche jetzt nochmal" }, | 1356 | { "Try again now","Versuche jetzt nochmal" }, |
1357 | { "Try again later","Versuche später nochmal" }, | 1357 | { "Try again later","Versuche später nochmal" }, |
1358 | { "Try again tomorrow","Versuche morgen nochmal" }, | 1358 | { "Try again tomorrow","Versuche morgen nochmal" }, |
1359 | { "Disable backup","Schalte Backup ab" }, | 1359 | { "Disable backup","Schalte Backup ab" }, |
1360 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 1360 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
1361 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 1361 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
1362 | { "Choose action","Wähle Aktion" }, | 1362 | { "Choose action","Wähle Aktion" }, |
1363 | { "Comment for todo:","Kommentar zum Todo:" }, | 1363 | { "Comment for todo:","Kommentar zum Todo:" }, |
1364 | { "Stop+note","Stop+Notiz" }, | 1364 | { "Stop+note","Stop+Notiz" }, |
1365 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, | 1365 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, |
1366 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, | 1366 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, |
1367 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, | 1367 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, |
1368 | { "Print complete list...","Drucke komplette Liste..." }, | 1368 | { "Print complete list...","Drucke komplette Liste..." }, |
1369 | { "Hide all selected","Verstecke Ausgewählte" }, | 1369 | { "Hide all selected","Verstecke Ausgewählte" }, |
1370 | { "Add items","hinzufügen" }, | 1370 | { "Add items","hinzufügen" }, |
1371 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, | 1371 | { "One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?","Ein (oder mehrere) ausgewähltes\nTodo hat Untertodos!\nMöchten Sie der Auswahlliste\nalle Untertodos von allen\nausgewählten Todos hinzufügen?" }, |
1372 | { "Print List View...","Drucke Listenansicht..." }, | 1372 | { "Print List View...","Drucke Listenansicht..." }, |
1373 | { "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, | 1373 | { "You can make a printout of the <b>List View</b> and the list view in the <b>Search Dialog</b>! To do this, please go to the <b>List View/Search Dialog</b>. Right click on the list. Select in the popup menu the entry <b>Print complete list</b>. That prints the list as you see it. You can remove items from the list before printing without deleting the corresponding event/todo! Simply select all items you do not want to print out. Then right click on one of the items and choose <b>Hide selected items</b>. After that you can print the list without these items.","Sie können die <b>Listenansicht</b> und die Listenansicht im <b>Suchdialog</b> ausdrucken! Um das zu machen gehen Sie bitte zur <b>Listenansicht</b> oder zum <b>Suchdialog</b>. Rechtsklicken Sie auf die Liste. Wählen Sie im Popupmenu den Eintrag <b>Drucke komplette Liste</b>. Das druckt die Liste so, wie man sie sieht. Sie können Listeneinträge entfernen ohne die korrespondierenden Ereignisse/Todos zu löschen! Selektieren sie einfach alle Einträge, die sie nicht ausdrucken möchten. Dann Rechtsklicken Sie auf einen Eintrag und wählen <b>Verstecke Selektierte</b>. Danach können Sie die Liste ohne diese Einträge ausdrucken." }, |
1374 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, | 1374 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, |
1375 | { "Global Settings...","Globale Einstellungen..." }, | 1375 | { "Global Settings...","Globale Einstellungen..." }, |
1376 | { "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, | 1376 | { "<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n","<p><b>R</b>: Zeige Resource Ansicht | <b>F</b>: Editiere Filter </p>\n" }, |
1377 | { "(disabled)","(abgeschaltet)" }, | 1377 | { "(disabled)","(abgeschaltet)" }, |
1378 | { "New Calendar","Neuer Kalender" }, | 1378 | { "New Calendar","Neuer Kalender" }, |
1379 | { "Calendar","Kalender" }, | 1379 | { "Calendar","Kalender" }, |
1380 | { "Filter selector","Filterauswahl" }, | 1380 | { "Filter selector","Filterauswahl" }, |
1381 | { "Filtermenu","Filtermenu" }, | 1381 | { "Filtermenu","Filtermenu" }, |
1382 | { "Toggle Fullscreen","Vollbild umschalten" }, | 1382 | { "Toggle Fullscreen","Vollbild umschalten" }, |
1383 | { "Toggle Resource View","Resourcenansicht umschalten" }, | 1383 | { "Toggle Resource View","Resourcenansicht umschalten" }, |
1384 | { "Storage HowTo...","Speicherort HowTo..." }, | 1384 | { "Storage HowTo...","Speicherort HowTo..." }, |
1385 | { "Timetracking HowTo...","Timetracking HowTo..." }, | 1385 | { "Timetracking HowTo...","Timetracking HowTo..." }, |
1386 | { "Juni","Juni" }, | 1386 | { "Juni","Juni" }, |
1387 | { "Juli","Juli" }, | 1387 | { "Juli","Juli" }, |
1388 | { "ToDo:","ToDo:" }, | 1388 | { "ToDo:","ToDo:" }, |
1389 | { "Set Calendar","Setze Kalender" }, | 1389 | { "Set Calendar","Setze Kalender" }, |
1390 | { "Todo: %1","Todo: %1" }, | 1390 | { "Todo: %1","Todo: %1" }, |
1391 | { ": (Prio ",": (Prio " }, | 1391 | { ": (Prio ",": (Prio " }, |
1392 | { "Todos","Todos" }, | 1392 | { "Todos","Todos" }, |
1393 | { "Todo Viewer","Todo Anzeige" }, | 1393 | { "Todo Viewer","Todo Anzeige" }, |
1394 | { "Todo ","Todo " }, | 1394 | { "Todo ","Todo " }, |
1395 | { " Calendar \n Resource "," Kalender \n Resource " }, | 1395 | { " Calendar \n Resource "," Kalender \n Resource " }, |
1396 | { " Color "," Farbe " }, | 1396 | { " Color "," Farbe " }, |
1397 | { "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, | 1397 | { "The calendar <b>%1</b> is displaying file <b>%2</b>. Do you want to remove this calendar from KO/Pi? (The file is not removed!)","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>. Möchten Sie diesen Kalender aus KO/Pi entfernen? (Die Datei wird dabei nicht gelöscht!)" }, |
1398 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, | 1398 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, |
1399 | { "Add new Calendar","Füge Kalender hinzu" }, | 1399 | { "Add new Calendar","Füge Kalender hinzu" }, |
1400 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, | 1400 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, |
1401 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, | 1401 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, |
1402 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, | 1402 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, |
1403 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, | 1403 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, |
1404 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, | 1404 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, |
1405 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, | 1405 | { "The calendar <b>%1</b> is not loaded! Loading of file <b>%2</b> failed! <b>Try again to load the calendar?</b>","Der Kalender <b>%1</b> ist nicht geladen! Das Laden der Datei <b>%2</b> schlug fehl! <b>Soll erneut versucht werden den Kalender zu laden?</b>" }, |
1406 | { "Global application font for all apps:","Globale Schriftart:" }, | 1406 | { "Global application font for all apps:","Globale Schriftart:" }, |
1407 | { "Application Font","Applikationsschriftart" }, | 1407 | { "Application Font","Applikationsschriftart" }, |
1408 | { "Kx/Pi","Kx/Pi" }, | 1408 | { "Kx/Pi","Kx/Pi" }, |
1409 | { "Backup","Backup" }, | 1409 | { "Backup","Backup" }, |
1410 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, | 1410 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, |
1411 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, | 1411 | { "Sorry, the calendar name \n%1\nalready exists!\nPlease choose another name!","Sorry, der Kalendername \n%1\nist schon in Benutzung!\nBitte wählen Sie einen anderen!" }, |
1412 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, | 1412 | { "Sorry, the file \n%1\nis already loaded!\nPlease choose another file!","Sorry, die Datei \n%1\nist schon geladen!\nBitte wählen Sie eine andere!" }, |
1413 | { "Choose Color","Wähle Farbe" }, | 1413 | { "Choose Color","Wähle Farbe" }, |
1414 | { " OK "," OK " }, | 1414 | { " OK "," OK " }, |
1415 | { " Cancel "," Abbrechen " }, | 1415 | { " Cancel "," Abbrechen " }, |
1416 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, | 1416 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, |
1417 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, | 1417 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, |
1418 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, | 1418 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, |
1419 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, | 1419 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, |
1420 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, | 1420 | { "<center>%1</center> <center>is not running. Do you want to set\nthe state to running?</center>","<center>%1</center> <center>ist nicht am Laufen. Möchten Sie den Zustand auf "laufend" setzen?</center>" }, |
1421 | { "%1\nis running!","%1\nist am Laufen!" }, | 1421 | { "%1\nis running!","%1\nist am Laufen!" }, |
1422 | { "Additional Comment:","Zusätzlicher Kommentar:" }, | 1422 | { "Additional Comment:","Zusätzlicher Kommentar:" }, |
1423 | { "Stop and save","Stopp und Speichern" }, | 1423 | { "Stop and save","Stopp und Speichern" }, |
1424 | { "Continue running","Weiter laufen lassen" }, | 1424 | { "Continue running","Weiter laufen lassen" }, |
1425 | { "Stop - do not save","Stopp - nicht Speichern" }, | 1425 | { "Stop - do not save","Stopp - nicht Speichern" }, |
1426 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, | 1426 | { "Do you really want to set\nthe state to stopped\nwithout saving the data?","Möchten sie den Zustand\nwirklich auf gestoppt setzen\nohne die Daten abzuspeichern?" }, |
1427 | { "Time mismatch!","Zeiten stimmen nicht!" }, | 1427 | { "Time mismatch!","Zeiten stimmen nicht!" }, |
1428 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, | 1428 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, |
1429 | { "Yes, stop todo","Ja, stoppe Todo" }, | 1429 | { "Yes, stop todo","Ja, stoppe Todo" }, |
1430 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, | 1430 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, |
1431 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, | 1431 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, |
1432 | { "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." }, | 1432 | { "Please choose the <b>default calendar</b> in this column. Newly created or imported items are added to the default calendar.","Bitte wählen Sie den <b>Default-Kalender</b> in dieser Spalte. Neu angelegte oder importierte Einträge werden dem Default-Kalender hinzugefügt." }, |
1433 | { "Spouse","Ehegatte" }, | 1433 | { "Spouse","Ehegatte" }, |
1434 | { "Notes","Notizen" }, | 1434 | { "Notes","Notizen" }, |
1435 | { "Messanger","Messanger" }, | 1435 | { "Messanger","Messanger" }, |
1436 | { "Assistant","Assistent" }, | 1436 | { "Assistant","Assistent" }, |
1437 | { "Manager","Manager" }, | 1437 | { "Manager","Manager" }, |
1438 | { "Secrecy","Sichtbar" }, | 1438 | { "Secrecy","Sichtbar" }, |
1439 | { "male","männlich" }, | 1439 | { "male","männlich" }, |
1440 | { "female","weiblich" }, | 1440 | { "female","weiblich" }, |
1441 | { "Hide!","Verbergen!" }, | 1441 | { "Hide!","Verbergen!" }, |
1442 | { "Show!","Anzeigen!" }, | 1442 | { "Show!","Anzeigen!" }, |
1443 | { "Details","Details" }, | 1443 | { "Details","Details" }, |
1444 | { "Profession","Beruf" }, | 1444 | { "Profession","Beruf" }, |
1445 | { "Children","Kinder" }, | 1445 | { "Children","Kinder" }, |
1446 | { "Department","Abteilung" }, | 1446 | { "Department","Abteilung" }, |
1447 | { "Backup cancelled","Backup abgebrochen" }, | 1447 | { "Backup cancelled","Backup abgebrochen" }, |
1448 | { "Backup globally disabled","Backup global abgeschaltet" }, | 1448 | { "Backup globally disabled","Backup global abgeschaltet" }, |
1449 | { "Backup succesfully finished","Backup erfolgreich beendet" }, | 1449 | { "Backup succesfully finished","Backup erfolgreich beendet" }, |
1450 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, | 1450 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, |
1451 | { "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" }, | 1451 | { "This will <b>backup all calendar files</b> to the directory %1 %2","Das schreibt ein <b>Backup aller Kalenderdateien</b> in das Verzeichnis %1 %2" }, |
1452 | { "Birthdays","Geburtstage" }, | 1452 | { "Birthdays","Geburtstage" }, |
1453 | { "KO/Pi import information!","KO/Pi Import Information!" }, | 1453 | { "KO/Pi import information!","KO/Pi Import Information!" }, |
1454 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, | 1454 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, |
1455 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, | 1455 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, |
1456 | { "The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n"How do I change the timezone?"\nas well!","Die Zeitzone wurde geändert!\nSollen die Kalender neu geladen\nwerden num die Zeiten\nder Termine zu ändern?\nBitte lesen Sie auch\nMenu: Help->FAQ:\n"How do I change the timezone?"" }, | 1456 | { "The timezone has changed!\nShould the calendar be reloaded\nto shift the time of the events?\nPlease read Menu: Help->FAQ:\n"How do I change the timezone?"\nas well!","Die Zeitzone wurde geändert!\nSollen die Kalender neu geladen\nwerden num die Zeiten\nder Termine zu ändern?\nBitte lesen Sie auch\nMenu: Help->FAQ:\n"How do I change the timezone?"" }, |
1457 | { "Reload","Neu laden" }, | 1457 | { "Reload","Neu laden" }, |
1458 | { "Timezone settings","Zeitzoneneinstellung" }, | 1458 | { "Timezone settings","Zeitzoneneinstellung" }, |
1459 | { "Title: ","Titel: " }, | 1459 | { "Title: ","Titel: " }, |
1460 | { "Journal from: ","Journal vom: " }, | 1460 | { "Journal from: ","Journal vom: " }, |
1461 | { "Journal: %1 from ","Journal: %1 vom " }, | 1461 | { "Journal: %1 from ","Journal: %1 vom " }, |
1462 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, | 1462 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, |
1463 | { "Selected Item","Ausgewähltes Item" }, | 1463 | { "Selected Item","Ausgewähltes Item" }, |
1464 | { "Select Date...","Wähle Datum..." }, | 1464 | { "Select Date...","Wähle Datum..." }, |
1465 | { "After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:","Nach dem Importieren/Laden/Syncen kann es neue Kategorien in den Terminen oder Todos geben, die nicht automatisch der Kategorieliste hinzugefügt werden. Bitte wählen Sie, was <b>jetzt</b> passieren soll:" }, | 1465 | { "After importing/loading/syncing there may be new categories in events or todos which are not added automatically to the category list. Please choose what to do <b>now</b>:","Nach dem Importieren/Laden/Syncen kann es neue Kategorien in den Terminen oder Todos geben, die nicht automatisch der Kategorieliste hinzugefügt werden. Bitte wählen Sie, was <b>jetzt</b> passieren soll:" }, |
1466 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, | 1466 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, |
1467 | { "Edit category list...","Ändere Kategorieliste..." }, | 1467 | { "Edit category list...","Ändere Kategorieliste..." }, |
1468 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, | 1468 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, |
1469 | { "Filepath: ","Dateipfad: " }, | 1469 | { "Filepath: ","Dateipfad: " }, |
1470 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, | 1470 | { "You can try to reload the calendar in the Resource View!","In der Resourcenansicht können Sie erneut versuchen den Kalender zu laden!" }, |
1471 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, | 1471 | { "<b>WARNING:</b> There is a pending suspended alarm!","<b>WARNUNG:</b> Es gibt einen laufenden Suspendalarm!" }, |
1472 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, | 1472 | { "Pending Suspend Alarm","Laufender Suspend Alarm" }, |
1473 | { "Error loading calendar %1","Fehler beim Laden von Kalender %1" }, | 1473 | { "Error loading calendar %1","Fehler beim Laden von Kalender %1" }, |
1474 | { "Calendar(s) not loaded:","Nicht geladene(r) Kalender:" }, | 1474 | { "Calendar(s) not loaded:","Nicht geladene(r) Kalender:" }, |
1475 | { "Loding of calendar(s) failed","Laden von Kalendern fehlgeschlagen" }, | 1475 | { "Loding of calendar(s) failed","Laden von Kalendern fehlgeschlagen" }, |
1476 | { "Alarm Options","Alarm Einstellungen" }, | 1476 | { "Alarm Options","Alarm Einstellungen" }, |
1477 | { "Delete selected...","Lösche Ausgewählte..." }, | 1477 | { "Delete selected...","Lösche Ausgewählte..." }, |
1478 | { "None","Nichts" }, | 1478 | { "None","Nichts" }, |
1479 | { "Selection","Auswahl" }, | 1479 | { "Selection","Auswahl" }, |
1480 | { "Set categories","Setze Kategorien" }, | 1480 | { "Set categories","Setze Kategorien" }, |
1481 | { "This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!","Das fügt die ausgewählten\nEinträge dem Kalender\n%1\nhinzu und entfernt sie von\nihrem aktuellen Kalender!" }, | 1481 | { "This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!","Das fügt die ausgewählten\nEinträge dem Kalender\n%1\nhinzu und entfernt sie von\nihrem aktuellen Kalender!" }, |
1482 | { "Reset","Neu setzen" }, | 1482 | { "Reset","Neu setzen" }, |
1483 | { "Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?","Möchten Sie Kategorien zu den ausgewählten Einträgen <b>hinzufügen</b> oder die Liste <b>neu setzen</b> (d.h. vorhandene Kategorien löschen)?" }, | 1483 | { "Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?","Möchten Sie Kategorien zu den ausgewählten Einträgen <b>hinzufügen</b> oder die Liste <b>neu setzen</b> (d.h. vorhandene Kategorien löschen)?" }, |
1484 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, | 1484 | { "The file\n%1\ndoes not exist!\nShall I create it for you?","Die Datei\n%1\nexistiert nicht!\nSoll sie neu angelegt werden?" }, |
1485 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, | 1485 | { "Sorry, cannot create the file\n%1!\nNo calendar added!","Kann leider die Datei\n%1\nnicht anlegen!\nKein Kalender hinzugefügt!" }, |
1486 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, | 1486 | { "\nNO\n WRITEABLE\n CALENDAR\n FOUND!\n\nPlease fix your calendar settings!\n","\nKEIN\n SCHREIBBARER\n KALENDER\n GEFUNDEN!\n\nBitte korrigieren Sie\nihre Kalendereinstellungen!\n" }, |
1487 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 1487 | { "\nThe file\n%1\non disk has changed!\nFile size: %2 bytes.\nLast modified: %3\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie Datei\n%1\nwurde verändert!\nDatei Grösse: %2 Bytes.\nZuletzt geändert: %3\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
1488 | { "Edit","Edit" }, | 1488 | { "Edit","Edit" }, |
1489 | { "Last Modified","Zuletzt geändert" }, | 1489 | { "Last Modified","Zuletzt geändert" }, |
1490 | { "Journal viewer","Journal Anzeige" }, | 1490 | { "Journal viewer","Journal Anzeige" }, |
1491 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, | 1491 | { "Configure Calendar Files...","Konfiguriere Kalenderdateien..." }, |
1492 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, | 1492 | { "You can use and display <b>more than one</b> calendar file in KO/Pi. A calendar file is called a <b>resource</b>. To add a calendar or change calendar settings please use menu: <b>View -> Toggle Resource View</b>.","Sie können <b>mehr als eine</b> Kalenderdatei in KO/Pi darstellen und benutzen. Eine Kalenderdatei wird <b>Resource</b> genannt. Um einen Kalender hinzuzufügen oder die Kalendereinstellungen zu ändern benutzen Sie bitte das Menu: <b>Ansicht -> Resourcenansicht umschalten</b>." }, |
1493 | { "Hide Completed","Verstecke erledigte Todos" }, | 1493 | { "Hide Completed","Verstecke erledigte Todos" }, |
1494 | { "Show not Running","Zeige nicht Laufende" }, | 1494 | { "Show not Running","Zeige nicht Laufende" }, |
1495 | { "Click to add new Todo","Klick für neues Todo!" }, | 1495 | { "Click to add new Todo","Klick für neues Todo!" }, |
1496 | { "Show next conflict for","Zeige nächsten Konflikt für" }, | 1496 | { "Show next conflict for","Zeige nächsten Konflikt für" }, |
1497 | { "All events","Alle Termine" }, | 1497 | { "All events","Alle Termine" }, |
1498 | { "Allday events","Ganztagestermine" }, | 1498 | { "Allday events","Ganztagestermine" }, |
1499 | { "Events with time","Termine mit Zeit" }, | 1499 | { "Events with time","Termine mit Zeit" }, |
1500 | { "No conflict found","Kein Konflikt gefunden" }, | 1500 | { "No conflict found","Kein Konflikt gefunden" }, |
1501 | { "Conflict %1 <-> %2","Konflikt %1 <-> %2" }, | 1501 | { "Conflict %1 <-> %2","Konflikt %1 <-> %2" }, |
1502 | { "<p><b>Q</b>: Show next date with conflicting events\n ","<p><b>Q</b>: Zeige nächstes Datum mit Terminen im Konflikt\n " }, | 1502 | { "<p><b>Q</b>: Show next date with conflicting events\n ","<p><b>Q</b>: Zeige nächstes Datum mit Terminen im Konflikt\n " }, |
1503 | { "Week view mode uses row layout","Wochenansicht Modus nutzt Reihenlayout" }, | 1503 | { "Week view mode uses row layout","Wochenansicht Modus nutzt Reihenlayout" }, |
1504 | { "The event\n%1\nconflicts with event\n%2\nat date\n%3.\n","Der Termin\n%1\nist im Konflikt mit Termin\n%2\nam Datum\n%3.\n" }, | 1504 | { "The event\n%1\nconflicts with event\n%2\nat date\n%3.\n","Der Termin\n%1\nist im Konflikt mit Termin\n%2\nam Datum\n%3.\n" }, |
1505 | { "KO/Pi Conflict delected","KO/Pi Konflikt erkannt" }, | 1505 | { "KO/Pi Conflict delected","KO/Pi Konflikt erkannt" }, |
1506 | { "Show date","Zeige Datum" }, | 1506 | { "Show date","Zeige Datum" }, |
1507 | { "No problem!","Null Problemo!" }, | 1507 | { "No problem!","Null Problemo!" }, |
1508 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, | 1508 | { "Automatically sync with KDE-Desktop\nwhen receiving sync request","Synce automatisch mit KDE-Desktop\nwenn eine Sync-Anforderung kommt" }, |
1509 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, | 1509 | { "Pi-Sync Port Error","Pi-Sync Port Fehler" }, |
1510 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, | 1510 | { "<b>Enabling Pi-Sync failed!</b> Failed to bind or listen to the port %1! Is another instance already listening to that port?","<b>Anschalten von Pi-Sync fehlgeschlagen!</b> Fehler beim Ansprechen des Ports %1! Ist bereits eine andere Anwendung dabei diesen Port zu nutzen?" }, |
1511 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, | 1511 | { "No valid port number:\n%1","Keine gültige Port Nummer:\n%1" }, |
1512 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, | 1512 | { "Port number (Default: %1)\nValid range from 1 to 65535","Port Nummer (Standard: %1)\nGültiger Bereich von 1 bis 65535" }, |
1513 | { "Pi-Sync Error","Pi-Sync Fehler" }, | 1513 | { "Pi-Sync Error","Pi-Sync Fehler" }, |
1514 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, | 1514 | { "Got send file request\nwith invalid password","Erhielt "sende Datei" Anfrage\nmit ungültigem Passwort" }, |
1515 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, | 1515 | { "Got receive file request\nwith invalid password","Erhielt "empfange Datei" Anfrage\nmit ungültigem Passwort" }, |
1516 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, | 1516 | { "Wrong password: Receiving remote file failed.","Falsches Passwort: Empfangen von entfernter Datei fehlgeschlagen." }, |
1517 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, | 1517 | { "Please close error dialog on remote.","Bitte schließe Fehler-Dialog am entfernten Rechner" }, |
1518 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, | 1518 | { "Unknown error on remote.","Unbekannter Fehler am entfernten Rechner" }, |
1519 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, | 1519 | { "Pi-Sync: Connected!","Pi-Sync: Verbunden!" }, |
1520 | { "Receiving file from remote...","Empfange entfernte Datei..." }, | 1520 | { "Receiving file from remote...","Empfange entfernte Datei..." }, |
1521 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, | 1521 | { "Sending back synced file...","Sende synchronisierte Datei zurück..." }, |
1522 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, | 1522 | { "Do you want to\nclear all sync info\nof all profiles?","Möchten Sie wirklich\ndie Sync-Info\nfür alle Profile\nlöschen?" }, |
1523 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, | 1523 | { "Do you want to\nclear the sync\ninfo of profile\n%1?\n","Möchten Sie wirklich\ndie Sync-Info für Profil\n%1?\nlöschen" }, |
1524 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, | 1524 | { "Sorry, no valid port.Syncing cancelled.","Sorry, kein gültiger Port. Syncing abgebrochen." }, |
1525 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, | 1525 | { "Remote port number:\n(May be: 1 - 65535)","Ferne Port Nummer:\n(Darf sein: 1 - 65535)" }, |
1526 | { "Writing back file ...","Schreibe Datei zurück..." }, | 1526 | { "Writing back file ...","Schreibe Datei zurück..." }, |
1527 | { "Sending back file ...","Sende Datei zurück..." }, | 1527 | { "Sending back file ...","Sende Datei zurück..." }, |
1528 | { "Eeek, there I am ticklish!","Hihi, da bin ich kitzlig!" }, | 1528 | { "Eeek, there I am ticklish!","Hihi, da bin ich kitzlig!" }, |
1529 | { "Created","Angelegt" }, | 1529 | { "Created","Angelegt" }, |
1530 | { "Last Modified Sub","Zuletzt geändertes Sub" }, | 1530 | { "Last Modified Sub","Zuletzt geändertes Sub" }, |
1531 | { "Checking conflicts ... please wait","Überprüfe Konflikte ... bitte warten" }, | 1531 | { "Checking conflicts ... please wait","Überprüfe Konflikte ... bitte warten" }, |
1532 | { "Show times on two lines","Zeige Zeiten auf zwei Zeilen" }, | 1532 | { "Show times on two lines","Zeige Zeiten auf zwei Zeilen" }, |
1533 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, | 1533 | { "Save using LOCAL storage","Speichere nutze LOCAL Pfad" }, |
1534 | { "Duration","Dauer" }, | ||
1535 | { " day"," Tag" }, | ||
1534 | { "","" }, | 1536 | { "","" }, |
1535 | { "","" }, | 1537 | { "","" }, |
1536 | { "","" }, | 1538 | { "","" }, |
1537 | { "","" }, | 1539 | { "","" }, |
1538 | { "","" }, | 1540 | { "","" }, |
1539 | { "","" }, | 1541 | { "","" }, |
1540 | { "","" }, | 1542 | { "","" }, |
1541 | { "","" }, | 1543 | { "","" }, |
1542 | { "","" }, | 1544 | { "","" }, |
1543 | { "","" }, | 1545 | { "","" }, |
diff --git a/korganizer/koeditorgeneraltodo.cpp b/korganizer/koeditorgeneraltodo.cpp index 965cf47..10d9a8c 100644 --- a/korganizer/koeditorgeneraltodo.cpp +++ b/korganizer/koeditorgeneraltodo.cpp | |||
@@ -1,508 +1,507 @@ | |||
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 | 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 <qfiledialog.h> | 25 | #include <qfiledialog.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qvbox.h> | 27 | #include <qvbox.h> |
28 | #include <qbuttongroup.h> | 28 | #include <qbuttongroup.h> |
29 | #include <qvgroupbox.h> | 29 | #include <qvgroupbox.h> |
30 | #include <qwidgetstack.h> | 30 | #include <qwidgetstack.h> |
31 | #include <qdatetime.h> | 31 | #include <qdatetime.h> |
32 | #include <qapplication.h> | 32 | #include <qapplication.h> |
33 | 33 | ||
34 | #include <kglobal.h> | 34 | #include <kglobal.h> |
35 | #include <klocale.h> | 35 | #include <klocale.h> |
36 | #include <kiconloader.h> | 36 | #include <kiconloader.h> |
37 | #include <kmessagebox.h> | 37 | #include <kmessagebox.h> |
38 | #include <kdebug.h> | 38 | #include <kdebug.h> |
39 | #include <krestrictedline.h> | 39 | #include <krestrictedline.h> |
40 | #include <kstandarddirs.h> | 40 | #include <kstandarddirs.h> |
41 | #include <kfiledialog.h> | 41 | #include <kfiledialog.h> |
42 | #include <kdialog.h> | 42 | #include <kdialog.h> |
43 | 43 | ||
44 | #include <libkcal/todo.h> | 44 | #include <libkcal/todo.h> |
45 | 45 | ||
46 | #include <libkdepim/kdateedit.h> | 46 | #include <libkdepim/kdateedit.h> |
47 | 47 | ||
48 | #include "koprefs.h" | 48 | #include "koprefs.h" |
49 | #include "ktimeedit.h" | 49 | #include "ktimeedit.h" |
50 | 50 | ||
51 | #include "koeditorgeneraltodo.h" | 51 | #include "koeditorgeneraltodo.h" |
52 | #include "kolocationbox.h" | 52 | #include "kolocationbox.h" |
53 | 53 | ||
54 | KOEditorGeneralTodo::KOEditorGeneralTodo(QObject* parent, | 54 | KOEditorGeneralTodo::KOEditorGeneralTodo(QObject* parent, |
55 | const char* name) | 55 | const char* name) |
56 | : KOEditorGeneral( parent, name) | 56 | : KOEditorGeneral( parent, name) |
57 | { | 57 | { |
58 | } | 58 | } |
59 | 59 | ||
60 | KOEditorGeneralTodo::~KOEditorGeneralTodo() | 60 | KOEditorGeneralTodo::~KOEditorGeneralTodo() |
61 | { | 61 | { |
62 | } | 62 | } |
63 | 63 | ||
64 | void KOEditorGeneralTodo::finishSetup() | 64 | void KOEditorGeneralTodo::finishSetup() |
65 | { | 65 | { |
66 | 66 | ||
67 | // QWidget::setTabOrder(mSummaryEdit, mLocationEdit); | 67 | // QWidget::setTabOrder(mSummaryEdit, mLocationEdit); |
68 | // QWidget::setTabOrder(mLocationEdit, mDueCheck); | 68 | // QWidget::setTabOrder(mLocationEdit, mDueCheck); |
69 | // QWidget::setTabOrder(mDueCheck, mDueDateEdit); | 69 | // QWidget::setTabOrder(mDueCheck, mDueDateEdit); |
70 | // QWidget::setTabOrder(mDueDateEdit, mDueTimeEdit); | 70 | // QWidget::setTabOrder(mDueDateEdit, mDueTimeEdit); |
71 | // QWidget::setTabOrder(mDueTimeEdit, mStartCheck); | 71 | // QWidget::setTabOrder(mDueTimeEdit, mStartCheck); |
72 | // QWidget::setTabOrder(mStartCheck, mStartDateEdit); | 72 | // QWidget::setTabOrder(mStartCheck, mStartDateEdit); |
73 | // QWidget::setTabOrder(mStartDateEdit, mStartTimeEdit); | 73 | // QWidget::setTabOrder(mStartDateEdit, mStartTimeEdit); |
74 | // QWidget::setTabOrder(mStartTimeEdit, mTimeButton); | 74 | // QWidget::setTabOrder(mStartTimeEdit, mTimeButton); |
75 | // QWidget::setTabOrder(mTimeButton, mCompletedCombo); | 75 | // QWidget::setTabOrder(mTimeButton, mCompletedCombo); |
76 | // QWidget::setTabOrder(mCompletedCombo, mPriorityCombo); | 76 | // QWidget::setTabOrder(mCompletedCombo, mPriorityCombo); |
77 | // QWidget::setTabOrder(mPriorityCombo, mAlarmButton); | 77 | // QWidget::setTabOrder(mPriorityCombo, mAlarmButton); |
78 | // QWidget::setTabOrder(mAlarmButton, mCategoriesButton); | 78 | // QWidget::setTabOrder(mAlarmButton, mCategoriesButton); |
79 | // QWidget::setTabOrder(mCategoriesButton, mSecrecyCombo); | 79 | // QWidget::setTabOrder(mCategoriesButton, mSecrecyCombo); |
80 | // QWidget::setTabOrder(mSecrecyCombo, mDescriptionEdit); | 80 | // QWidget::setTabOrder(mSecrecyCombo, mDescriptionEdit); |
81 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); | 81 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); |
82 | mSummaryEdit->setFocus(); | 82 | mSummaryEdit->setFocus(); |
83 | } | 83 | } |
84 | 84 | ||
85 | void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout) | 85 | void KOEditorGeneralTodo::initTime(QWidget *parent,QBoxLayout *topLayout) |
86 | { | 86 | { |
87 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); | 87 | QBoxLayout *timeLayout = new QVBoxLayout(topLayout); |
88 | 88 | ||
89 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, | 89 | QGroupBox *timeGroupBox = new QGroupBox(1,QGroupBox::Horizontal, |
90 | i18n("Date && Time"),parent); | 90 | i18n("Date && Time"),parent); |
91 | timeLayout->addWidget(timeGroupBox); | 91 | timeLayout->addWidget(timeGroupBox); |
92 | timeGroupBox->layout()->setSpacing( KDialog::spacingHint()-2 ); | 92 | timeGroupBox->layout()->setSpacing( KDialog::spacingHint()-2 ); |
93 | timeGroupBox->layout()->setMargin( KDialog::marginHint() ); | 93 | timeGroupBox->layout()->setMargin( KDialog::marginHint() ); |
94 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); | 94 | QFrame *timeBoxFrame = new QFrame(timeGroupBox); |
95 | 95 | ||
96 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,3,3); | 96 | QGridLayout *layoutTimeBox = new QGridLayout(timeBoxFrame,3,3); |
97 | layoutTimeBox->setSpacing(KDialog::spacingHintSmall()); | 97 | layoutTimeBox->setSpacing(KDialog::spacingHintSmall()); |
98 | layoutTimeBox->setColStretch( 1, 1 ); | 98 | layoutTimeBox->setColStretch( 1, 1 ); |
99 | 99 | ||
100 | mStartCheck = new QCheckBox(i18n("Start:"),timeBoxFrame); | ||
101 | layoutTimeBox->addWidget(mStartCheck,0,0); | ||
102 | connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(enableStartEdit(bool))); | ||
103 | |||
104 | mStartDateEdit = new KDateEdit(timeBoxFrame); | ||
105 | layoutTimeBox->addWidget(mStartDateEdit,0,1); | ||
106 | |||
107 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); | ||
108 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); | ||
109 | |||
100 | mDueCheck = new QCheckBox(i18n("Due:"),timeBoxFrame); | 110 | mDueCheck = new QCheckBox(i18n("Due:"),timeBoxFrame); |
101 | layoutTimeBox->addWidget(mDueCheck,1,0); | 111 | layoutTimeBox->addWidget(mDueCheck,1,0); |
102 | connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(enableDueEdit(bool))); | 112 | connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(enableDueEdit(bool))); |
103 | connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(showAlarm())); | 113 | connect(mDueCheck,SIGNAL(toggled(bool)),SLOT(showAlarm())); |
104 | 114 | ||
105 | 115 | ||
106 | mDueDateEdit = new KDateEdit(timeBoxFrame); | 116 | mDueDateEdit = new KDateEdit(timeBoxFrame); |
107 | layoutTimeBox->addWidget(mDueDateEdit,1,1); | 117 | layoutTimeBox->addWidget(mDueDateEdit,1,1); |
108 | 118 | ||
109 | mDueTimeEdit = new KOTimeEdit(timeBoxFrame); | 119 | mDueTimeEdit = new KOTimeEdit(timeBoxFrame); |
110 | layoutTimeBox->addWidget(mDueTimeEdit,1,2); | 120 | layoutTimeBox->addWidget(mDueTimeEdit,1,2); |
111 | 121 | ||
112 | 122 | ||
113 | mStartCheck = new QCheckBox(i18n("Start:"),timeBoxFrame); | ||
114 | layoutTimeBox->addWidget(mStartCheck,0,0); | ||
115 | connect(mStartCheck,SIGNAL(toggled(bool)),SLOT(enableStartEdit(bool))); | ||
116 | |||
117 | mStartDateEdit = new KDateEdit(timeBoxFrame); | ||
118 | layoutTimeBox->addWidget(mStartDateEdit,0,1); | ||
119 | |||
120 | mStartTimeEdit = new KOTimeEdit(timeBoxFrame); | ||
121 | layoutTimeBox->addWidget(mStartTimeEdit,0,2); | ||
122 | |||
123 | |||
124 | mTimeButton = new QCheckBox(i18n("Time associated"),timeBoxFrame); | 123 | mTimeButton = new QCheckBox(i18n("Time associated"),timeBoxFrame); |
125 | layoutTimeBox->addMultiCellWidget(mTimeButton,2,2,0,1); | 124 | layoutTimeBox->addMultiCellWidget(mTimeButton,2,2,0,1); |
126 | 125 | ||
127 | connect(mTimeButton,SIGNAL(toggled(bool)),SLOT(enableTimeEdits(bool))); | 126 | connect(mTimeButton,SIGNAL(toggled(bool)),SLOT(enableTimeEdits(bool))); |
128 | connect(mDueDateEdit,SIGNAL(setTimeTo(QTime)),mDueTimeEdit,SLOT(setTime(QTime))); | 127 | connect(mDueDateEdit,SIGNAL(setTimeTo(QTime)),mDueTimeEdit,SLOT(setTime(QTime))); |
129 | connect(mStartDateEdit,SIGNAL(setTimeTo(QTime)),mStartTimeEdit,SLOT(setTime(QTime))); | 128 | connect(mStartDateEdit,SIGNAL(setTimeTo(QTime)),mStartTimeEdit,SLOT(setTime(QTime))); |
130 | connect(mStartDateEdit, SIGNAL(dateChanged(QDate)), | 129 | connect(mStartDateEdit, SIGNAL(dateChanged(QDate)), |
131 | this, SLOT(startDateChanged(QDate))); | 130 | this, SLOT(startDateChanged(QDate))); |
132 | // some more layouting | 131 | // some more layouting |
133 | //layoutTimeBox->setColStretch(3,1); | 132 | //layoutTimeBox->setColStretch(3,1); |
134 | } | 133 | } |
135 | 134 | ||
136 | 135 | ||
137 | void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout) | 136 | void KOEditorGeneralTodo::initCompletion(QWidget *parent, QBoxLayout *topLayout) |
138 | { | 137 | { |
139 | mCompletedCombo = new QComboBox(parent); | 138 | mCompletedCombo = new QComboBox(parent); |
140 | // xgettext:no-c-format | 139 | // xgettext:no-c-format |
141 | mCompletedCombo->insertItem(i18n(" 0 %")); | 140 | mCompletedCombo->insertItem(i18n(" 0 %")); |
142 | // xgettext:no-c-format | 141 | // xgettext:no-c-format |
143 | mCompletedCombo->insertItem(i18n(" 20 %")); | 142 | mCompletedCombo->insertItem(i18n(" 20 %")); |
144 | // xgettext:no-c-format | 143 | // xgettext:no-c-format |
145 | mCompletedCombo->insertItem(i18n(" 40 %")); | 144 | mCompletedCombo->insertItem(i18n(" 40 %")); |
146 | // xgettext:no-c-format | 145 | // xgettext:no-c-format |
147 | mCompletedCombo->insertItem(i18n(" 60 %")); | 146 | mCompletedCombo->insertItem(i18n(" 60 %")); |
148 | // xgettext:no-c-format | 147 | // xgettext:no-c-format |
149 | mCompletedCombo->insertItem(i18n(" 80 %")); | 148 | mCompletedCombo->insertItem(i18n(" 80 %")); |
150 | // xgettext:no-c-format | 149 | // xgettext:no-c-format |
151 | mCompletedCombo->insertItem(i18n("100 %")); | 150 | mCompletedCombo->insertItem(i18n("100 %")); |
152 | connect(mCompletedCombo,SIGNAL(activated(int)),SLOT(completedChanged(int))); | 151 | connect(mCompletedCombo,SIGNAL(activated(int)),SLOT(completedChanged(int))); |
153 | topLayout->addWidget(mCompletedCombo); | 152 | topLayout->addWidget(mCompletedCombo); |
154 | 153 | ||
155 | mCompletedLabel = new QLabel(i18n("completed"),parent); | 154 | mCompletedLabel = new QLabel(i18n("completed"),parent); |
156 | topLayout->addWidget(mCompletedLabel); | 155 | topLayout->addWidget(mCompletedLabel); |
157 | 156 | ||
158 | mCompleteDateEdit = new KDateEdit(parent); | 157 | mCompleteDateEdit = new KDateEdit(parent); |
159 | topLayout->addWidget(mCompleteDateEdit ); | 158 | topLayout->addWidget(mCompleteDateEdit ); |
160 | 159 | ||
161 | mCompleteTimeEdit = new KOTimeEdit(parent); | 160 | mCompleteTimeEdit = new KOTimeEdit(parent); |
162 | topLayout->addWidget( mCompleteTimeEdit); | 161 | topLayout->addWidget( mCompleteTimeEdit); |
163 | 162 | ||
164 | mCompletedCombo->setSizePolicy( QSizePolicy( QSizePolicy::Preferred,QSizePolicy::Preferred) ); | 163 | mCompletedCombo->setSizePolicy( QSizePolicy( QSizePolicy::Preferred,QSizePolicy::Preferred) ); |
165 | mCompletedLabel->setSizePolicy( QSizePolicy( QSizePolicy::Expanding,QSizePolicy::Preferred) ); | 164 | mCompletedLabel->setSizePolicy( QSizePolicy( QSizePolicy::Expanding,QSizePolicy::Preferred) ); |
166 | connect(mCompleteDateEdit,SIGNAL(setTimeTo(QTime)),mCompleteTimeEdit,SLOT(setTime(QTime))); | 165 | connect(mCompleteDateEdit,SIGNAL(setTimeTo(QTime)),mCompleteTimeEdit,SLOT(setTime(QTime))); |
167 | 166 | ||
168 | if ( QApplication::desktop()->width() <= 480 ) { | 167 | if ( QApplication::desktop()->width() <= 480 ) { |
169 | if ( QApplication::desktop()->width() < 320 ) | 168 | if ( QApplication::desktop()->width() < 320 ) |
170 | mCompleteDateEdit->setMaximumWidth( 85 ); | 169 | mCompleteDateEdit->setMaximumWidth( 85 ); |
171 | else | 170 | else |
172 | mCompleteDateEdit->setMaximumWidth( 140 ); | 171 | mCompleteDateEdit->setMaximumWidth( 140 ); |
173 | topLayout->setSpacing( 0 ); | 172 | topLayout->setSpacing( 0 ); |
174 | } | 173 | } |
175 | } | 174 | } |
176 | 175 | ||
177 | void KOEditorGeneralTodo::initPriority(QWidget *parent, QBoxLayout *topLayout) | 176 | void KOEditorGeneralTodo::initPriority(QWidget *parent, QBoxLayout *topLayout) |
178 | { | 177 | { |
179 | 178 | ||
180 | QHBox* h = new QHBox ( parent ); | 179 | QHBox* h = new QHBox ( parent ); |
181 | topLayout->addWidget( h ); | 180 | topLayout->addWidget( h ); |
182 | QLabel *priorityLabel = new QLabel(i18n("Priority:"), h); | 181 | QLabel *priorityLabel = new QLabel(i18n("Priority:"), h); |
183 | // topLayout->addWidget(priorityLabel); | 182 | // topLayout->addWidget(priorityLabel); |
184 | mPriorityCombo = new QComboBox( h ); | 183 | mPriorityCombo = new QComboBox( h ); |
185 | mPriorityCombo->insertItem(i18n("1 (high)")); | 184 | mPriorityCombo->insertItem(i18n("1 (high)")); |
186 | mPriorityCombo->insertItem(i18n("2")); | 185 | mPriorityCombo->insertItem(i18n("2")); |
187 | mPriorityCombo->insertItem(i18n("3")); | 186 | mPriorityCombo->insertItem(i18n("3")); |
188 | mPriorityCombo->insertItem(i18n("4")); | 187 | mPriorityCombo->insertItem(i18n("4")); |
189 | mPriorityCombo->insertItem(i18n("5 (low)")); | 188 | mPriorityCombo->insertItem(i18n("5 (low)")); |
190 | //topLayout->addWidget(mPriorityCombo); | 189 | //topLayout->addWidget(mPriorityCombo); |
191 | } | 190 | } |
192 | 191 | ||
193 | void KOEditorGeneralTodo::initStatus(QWidget *parent,QBoxLayout *topLayout) | 192 | void KOEditorGeneralTodo::initStatus(QWidget *parent,QBoxLayout *topLayout) |
194 | { | 193 | { |
195 | QBoxLayout *statusLayout = new QHBoxLayout(topLayout); | 194 | QBoxLayout *statusLayout = new QHBoxLayout(topLayout); |
196 | 195 | ||
197 | initCompletion( parent, statusLayout ); | 196 | initCompletion( parent, statusLayout ); |
198 | 197 | ||
199 | statusLayout->addStretch( 1 ); | 198 | statusLayout->addStretch( 1 ); |
200 | 199 | ||
201 | initPriority( parent, statusLayout ); | 200 | initPriority( parent, statusLayout ); |
202 | } | 201 | } |
203 | 202 | ||
204 | void KOEditorGeneralTodo::setDefaults(QDateTime due,bool allDay) | 203 | void KOEditorGeneralTodo::setDefaults(QDateTime due,bool allDay) |
205 | { | 204 | { |
206 | 205 | ||
207 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); | 206 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); |
208 | mLocationEdit->load(KOLocationBox::LOCATION); | 207 | mLocationEdit->load(KOLocationBox::LOCATION); |
209 | KOEditorGeneral::setDefaults(allDay); | 208 | KOEditorGeneral::setDefaults(allDay); |
210 | 209 | ||
211 | mTimeButton->setChecked( !allDay ); | 210 | mTimeButton->setChecked( !allDay ); |
212 | if(mTimeButton->isChecked()) { | 211 | if(mTimeButton->isChecked()) { |
213 | mTimeButton->setEnabled(true); | 212 | mTimeButton->setEnabled(true); |
214 | } | 213 | } |
215 | else { | 214 | else { |
216 | mTimeButton->setEnabled(false); | 215 | mTimeButton->setEnabled(false); |
217 | } | 216 | } |
218 | 217 | ||
219 | enableTimeEdits( !allDay ); | 218 | enableTimeEdits( !allDay ); |
220 | if ( due.isValid() ) { | 219 | if ( due.isValid() ) { |
221 | mDueCheck->setChecked(true); | 220 | mDueCheck->setChecked(true); |
222 | enableDueEdit(true); | 221 | enableDueEdit(true); |
223 | alarmDisable(false); | 222 | alarmDisable(false); |
224 | } else { | 223 | } else { |
225 | mDueCheck->setChecked(false); | 224 | mDueCheck->setChecked(false); |
226 | enableDueEdit(false); | 225 | enableDueEdit(false); |
227 | due = QDateTime::currentDateTime().addDays(7); | 226 | due = QDateTime::currentDateTime().addDays(7); |
228 | alarmDisable(true); | 227 | alarmDisable(true); |
229 | } | 228 | } |
230 | 229 | ||
231 | 230 | ||
232 | mStartCheck->setChecked(false); | 231 | mStartCheck->setChecked(false); |
233 | enableStartEdit(false); | 232 | enableStartEdit(false); |
234 | 233 | ||
235 | mDueDateEdit->setDate(due.date()); | 234 | mDueDateEdit->setDate(due.date()); |
236 | mDueTimeEdit->setTime(due.time()); | 235 | mDueTimeEdit->setTime(due.time()); |
237 | due = due.addDays(-7); | 236 | due = due.addDays(-7); |
238 | mStartDateEdit->setDate(due.date()); | 237 | mStartDateEdit->setDate(due.date()); |
239 | mStartTimeEdit->setTime(due.time()); | 238 | mStartTimeEdit->setTime(due.time()); |
240 | 239 | ||
241 | mPriorityCombo->setCurrentItem(2); | 240 | mPriorityCombo->setCurrentItem(2); |
242 | mCompletedLabel->setText(i18n(" completed"));; | 241 | mCompletedLabel->setText(i18n(" completed"));; |
243 | mCompletedCombo->setCurrentItem(0); | 242 | mCompletedCombo->setCurrentItem(0); |
244 | mCompleteDateEdit->hide(); | 243 | mCompleteDateEdit->hide(); |
245 | mCompleteTimeEdit->hide(); | 244 | mCompleteTimeEdit->hide(); |
246 | } | 245 | } |
247 | 246 | ||
248 | void KOEditorGeneralTodo::readTodo(Todo *todo) | 247 | void KOEditorGeneralTodo::readTodo(Todo *todo) |
249 | { | 248 | { |
250 | 249 | ||
251 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); | 250 | mSummaryEdit->load(KOLocationBox::SUMMARYTODO); |
252 | mLocationEdit->load(KOLocationBox::LOCATION); | 251 | mLocationEdit->load(KOLocationBox::LOCATION); |
253 | KOEditorGeneral::readIncidence(todo); | 252 | KOEditorGeneral::readIncidence(todo); |
254 | 253 | ||
255 | QDateTime dueDT; | 254 | QDateTime dueDT; |
256 | 255 | ||
257 | if (todo->hasDueDate()) { | 256 | if (todo->hasDueDate()) { |
258 | enableAlarmEdit(true); | 257 | enableAlarmEdit(true); |
259 | dueDT = todo->dtDue(); | 258 | dueDT = todo->dtDue(); |
260 | mDueDateEdit->setDate(todo->dtDue().date()); | 259 | mDueDateEdit->setDate(todo->dtDue().date()); |
261 | mDueTimeEdit->setTime(todo->dtDue().time()); | 260 | mDueTimeEdit->setTime(todo->dtDue().time()); |
262 | mDueCheck->setChecked(true); | 261 | mDueCheck->setChecked(true); |
263 | } else { | 262 | } else { |
264 | alarmDisable(true); | 263 | alarmDisable(true); |
265 | mDueDateEdit->setEnabled(false); | 264 | mDueDateEdit->setEnabled(false); |
266 | mDueTimeEdit->setEnabled(false); | 265 | mDueTimeEdit->setEnabled(false); |
267 | mDueDateEdit->setDate(QDate::currentDate()); | 266 | mDueDateEdit->setDate(QDate::currentDate()); |
268 | mDueTimeEdit->setTime(QTime::currentTime()); | 267 | mDueTimeEdit->setTime(QTime::currentTime()); |
269 | mDueCheck->setChecked(false); | 268 | mDueCheck->setChecked(false); |
270 | } | 269 | } |
271 | 270 | ||
272 | if (todo->hasStartDate()) { | 271 | if (todo->hasStartDate()) { |
273 | mStartDateEdit->setDate(todo->dtStart().date()); | 272 | mStartDateEdit->setDate(todo->dtStart().date()); |
274 | mStartTimeEdit->setTime(todo->dtStart().time()); | 273 | mStartTimeEdit->setTime(todo->dtStart().time()); |
275 | mStartCheck->setChecked(true); | 274 | mStartCheck->setChecked(true); |
276 | } else { | 275 | } else { |
277 | mStartDateEdit->setEnabled(false); | 276 | mStartDateEdit->setEnabled(false); |
278 | mStartTimeEdit->setEnabled(false); | 277 | mStartTimeEdit->setEnabled(false); |
279 | mStartDateEdit->setDate(QDate::currentDate()); | 278 | mStartDateEdit->setDate(QDate::currentDate()); |
280 | mStartTimeEdit->setTime(QTime::currentTime()); | 279 | mStartTimeEdit->setTime(QTime::currentTime()); |
281 | mStartCheck->setChecked(false); | 280 | mStartCheck->setChecked(false); |
282 | } | 281 | } |
283 | 282 | ||
284 | mTimeButton->setChecked( !todo->doesFloat() ); | 283 | mTimeButton->setChecked( !todo->doesFloat() ); |
285 | 284 | ||
286 | mCompletedCombo->setCurrentItem(todo->percentComplete() / 20); | 285 | mCompletedCombo->setCurrentItem(todo->percentComplete() / 20); |
287 | if (todo->isCompleted() && todo->hasCompletedDate()) { | 286 | if (todo->isCompleted() && todo->hasCompletedDate()) { |
288 | mCompleted = todo->completed(); | 287 | mCompleted = todo->completed(); |
289 | } | 288 | } |
290 | setCompletedDate(); | 289 | setCompletedDate(); |
291 | 290 | ||
292 | mPriorityCombo->setCurrentItem(todo->priority()-1); | 291 | mPriorityCombo->setCurrentItem(todo->priority()-1); |
293 | } | 292 | } |
294 | 293 | ||
295 | void KOEditorGeneralTodo::writeTodo(Todo *todo) | 294 | void KOEditorGeneralTodo::writeTodo(Todo *todo) |
296 | { | 295 | { |
297 | KOEditorGeneral::writeIncidence(todo); | 296 | KOEditorGeneral::writeIncidence(todo); |
298 | 297 | ||
299 | // temp. until something better happens. | 298 | // temp. until something better happens. |
300 | QString tmpStr; | 299 | QString tmpStr; |
301 | 300 | ||
302 | todo->setHasDueDate(mDueCheck->isChecked()); | 301 | todo->setHasDueDate(mDueCheck->isChecked()); |
303 | todo->setHasStartDate(mStartCheck->isChecked()); | 302 | todo->setHasStartDate(mStartCheck->isChecked()); |
304 | 303 | ||
305 | QDate tmpDate; | 304 | QDate tmpDate; |
306 | QTime tmpTime; | 305 | QTime tmpTime; |
307 | QDateTime tmpDT; | 306 | QDateTime tmpDT; |
308 | if ( mTimeButton->isChecked() ) { | 307 | if ( mTimeButton->isChecked() ) { |
309 | todo->setFloats(false); | 308 | todo->setFloats(false); |
310 | 309 | ||
311 | // set due date/time | 310 | // set due date/time |
312 | tmpDate = mDueDateEdit->date(); | 311 | tmpDate = mDueDateEdit->date(); |
313 | tmpTime = mDueTimeEdit->getTime(); | 312 | tmpTime = mDueTimeEdit->getTime(); |
314 | tmpDT.setDate(tmpDate); | 313 | tmpDT.setDate(tmpDate); |
315 | tmpDT.setTime(tmpTime); | 314 | tmpDT.setTime(tmpTime); |
316 | todo->setDtDue(tmpDT); | 315 | todo->setDtDue(tmpDT); |
317 | 316 | ||
318 | // set start date/time | 317 | // set start date/time |
319 | tmpDate = mStartDateEdit->date(); | 318 | tmpDate = mStartDateEdit->date(); |
320 | tmpTime = mStartTimeEdit->getTime(); | 319 | tmpTime = mStartTimeEdit->getTime(); |
321 | tmpDT.setDate(tmpDate); | 320 | tmpDT.setDate(tmpDate); |
322 | tmpDT.setTime(tmpTime); | 321 | tmpDT.setTime(tmpTime); |
323 | todo->setDtStart(tmpDT); | 322 | todo->setDtStart(tmpDT); |
324 | } else { | 323 | } else { |
325 | todo->setFloats(true); | 324 | todo->setFloats(true); |
326 | 325 | ||
327 | // need to change this. | 326 | // need to change this. |
328 | tmpDate = mDueDateEdit->date(); | 327 | tmpDate = mDueDateEdit->date(); |
329 | tmpTime.setHMS(0,0,0); | 328 | tmpTime.setHMS(0,0,0); |
330 | tmpDT.setDate(tmpDate); | 329 | tmpDT.setDate(tmpDate); |
331 | tmpDT.setTime(tmpTime); | 330 | tmpDT.setTime(tmpTime); |
332 | todo->setDtDue(tmpDT); | 331 | todo->setDtDue(tmpDT); |
333 | 332 | ||
334 | tmpDate = mStartDateEdit->date(); | 333 | tmpDate = mStartDateEdit->date(); |
335 | tmpTime.setHMS(0,0,0); | 334 | tmpTime.setHMS(0,0,0); |
336 | tmpDT.setDate(tmpDate); | 335 | tmpDT.setDate(tmpDate); |
337 | tmpDT.setTime(tmpTime); | 336 | tmpDT.setTime(tmpTime); |
338 | todo->setDtStart(tmpDT); | 337 | todo->setDtStart(tmpDT); |
339 | } | 338 | } |
340 | todo->setPriority(mPriorityCombo->currentItem()+1); | 339 | todo->setPriority(mPriorityCombo->currentItem()+1); |
341 | 340 | ||
342 | // set completion state | 341 | // set completion state |
343 | if ( mCompletedCombo->currentItem() == 5 ) { | 342 | if ( mCompletedCombo->currentItem() == 5 ) { |
344 | QDateTime comp ( mCompleteDateEdit->date(), mCompleteTimeEdit->getTime() ); | 343 | QDateTime comp ( mCompleteDateEdit->date(), mCompleteTimeEdit->getTime() ); |
345 | if ( comp.isValid () ) { | 344 | if ( comp.isValid () ) { |
346 | todo->setPercentComplete(100); | 345 | todo->setPercentComplete(100); |
347 | todo->setCompleted(comp); | 346 | todo->setCompleted(comp); |
348 | } else { | 347 | } else { |
349 | todo->setPercentComplete( 100 ); | 348 | todo->setPercentComplete( 100 ); |
350 | if ( mCompleted.isValid() ) | 349 | if ( mCompleted.isValid() ) |
351 | todo->setCompleted(mCompleted); | 350 | todo->setCompleted(mCompleted); |
352 | } | 351 | } |
353 | } else { | 352 | } else { |
354 | todo->setPercentComplete(mCompletedCombo->currentItem() * 20); | 353 | todo->setPercentComplete(mCompletedCombo->currentItem() * 20); |
355 | } | 354 | } |
356 | 355 | ||
357 | mSummaryEdit->save(KOLocationBox::SUMMARYTODO); | 356 | mSummaryEdit->save(KOLocationBox::SUMMARYTODO); |
358 | } | 357 | } |
359 | 358 | ||
360 | void KOEditorGeneralTodo::enableDueEdit(bool enable) | 359 | void KOEditorGeneralTodo::enableDueEdit(bool enable) |
361 | { | 360 | { |
362 | mDueDateEdit->setEnabled( enable ); | 361 | mDueDateEdit->setEnabled( enable ); |
363 | 362 | ||
364 | if(mDueCheck->isChecked() || mStartCheck->isChecked()) { | 363 | if(mDueCheck->isChecked() || mStartCheck->isChecked()) { |
365 | mTimeButton->setEnabled(true); | 364 | mTimeButton->setEnabled(true); |
366 | } | 365 | } |
367 | else { | 366 | else { |
368 | mTimeButton->setEnabled(false); | 367 | mTimeButton->setEnabled(false); |
369 | mTimeButton->setChecked(false); | 368 | mTimeButton->setChecked(false); |
370 | } | 369 | } |
371 | 370 | ||
372 | if (enable) { | 371 | if (enable) { |
373 | mDueTimeEdit->setEnabled( mTimeButton->isChecked() ); | 372 | mDueTimeEdit->setEnabled( mTimeButton->isChecked() ); |
374 | } else { | 373 | } else { |
375 | mDueTimeEdit->setEnabled( false ); | 374 | mDueTimeEdit->setEnabled( false ); |
376 | } | 375 | } |
377 | emit datesChecked(); | 376 | emit datesChecked(); |
378 | } | 377 | } |
379 | 378 | ||
380 | void KOEditorGeneralTodo::enableStartEdit( bool enable ) | 379 | void KOEditorGeneralTodo::enableStartEdit( bool enable ) |
381 | { | 380 | { |
382 | mStartDateEdit->setEnabled( enable ); | 381 | mStartDateEdit->setEnabled( enable ); |
383 | 382 | ||
384 | if(mDueCheck->isChecked() || mStartCheck->isChecked()) { | 383 | if(mDueCheck->isChecked() || mStartCheck->isChecked()) { |
385 | mTimeButton->setEnabled(true); | 384 | mTimeButton->setEnabled(true); |
386 | } | 385 | } |
387 | else { | 386 | else { |
388 | mTimeButton->setEnabled(false); | 387 | mTimeButton->setEnabled(false); |
389 | mTimeButton->setChecked(false); | 388 | mTimeButton->setChecked(false); |
390 | } | 389 | } |
391 | 390 | ||
392 | if (enable) { | 391 | if (enable) { |
393 | mStartTimeEdit->setEnabled( mTimeButton->isChecked() ); | 392 | mStartTimeEdit->setEnabled( mTimeButton->isChecked() ); |
394 | } else { | 393 | } else { |
395 | mStartTimeEdit->setEnabled( false ); | 394 | mStartTimeEdit->setEnabled( false ); |
396 | } | 395 | } |
397 | emit datesChecked(); | 396 | emit datesChecked(); |
398 | } | 397 | } |
399 | void KOEditorGeneralTodo::startDateChanged(QDate newdate) | 398 | void KOEditorGeneralTodo::startDateChanged(QDate newdate) |
400 | { | 399 | { |
401 | if ( mDueCheck->isChecked() ) | 400 | if ( mDueCheck->isChecked() ) |
402 | emit dateTimesChanged(newdate,mDueDateEdit->date()); | 401 | emit dateTimesChanged(newdate,mDueDateEdit->date()); |
403 | } | 402 | } |
404 | void KOEditorGeneralTodo::enableTimeEdits(bool enable) | 403 | void KOEditorGeneralTodo::enableTimeEdits(bool enable) |
405 | { | 404 | { |
406 | if(mStartCheck->isChecked()) { | 405 | if(mStartCheck->isChecked()) { |
407 | mStartTimeEdit->setEnabled( enable ); | 406 | mStartTimeEdit->setEnabled( enable ); |
408 | } | 407 | } |
409 | if(mDueCheck->isChecked()) { | 408 | if(mDueCheck->isChecked()) { |
410 | mDueTimeEdit->setEnabled( enable ); | 409 | mDueTimeEdit->setEnabled( enable ); |
411 | } | 410 | } |
412 | } | 411 | } |
413 | 412 | ||
414 | void KOEditorGeneralTodo::showAlarm() | 413 | void KOEditorGeneralTodo::showAlarm() |
415 | { | 414 | { |
416 | if ( mDueCheck->isChecked() ) { | 415 | if ( mDueCheck->isChecked() ) { |
417 | alarmDisable(false); | 416 | alarmDisable(false); |
418 | } | 417 | } |
419 | else { | 418 | else { |
420 | alarmDisable(true); | 419 | alarmDisable(true); |
421 | } | 420 | } |
422 | } | 421 | } |
423 | 422 | ||
424 | bool KOEditorGeneralTodo::validateInput() | 423 | bool KOEditorGeneralTodo::validateInput() |
425 | { | 424 | { |
426 | if (mDueCheck->isChecked()) { | 425 | if (mDueCheck->isChecked()) { |
427 | if (!mDueDateEdit->inputIsValid()) { | 426 | if (!mDueDateEdit->inputIsValid()) { |
428 | KMessageBox::sorry(0,i18n("Please specify a valid due date.")); | 427 | KMessageBox::sorry(0,i18n("Please specify a valid due date.")); |
429 | return false; | 428 | return false; |
430 | } | 429 | } |
431 | } | 430 | } |
432 | 431 | ||
433 | if (mStartCheck->isChecked()) { | 432 | if (mStartCheck->isChecked()) { |
434 | if (!mStartDateEdit->inputIsValid()) { | 433 | if (!mStartDateEdit->inputIsValid()) { |
435 | KMessageBox::sorry(0,i18n("Please specify a valid start date.")); | 434 | KMessageBox::sorry(0,i18n("Please specify a valid start date.")); |
436 | return false; | 435 | return false; |
437 | } | 436 | } |
438 | } | 437 | } |
439 | 438 | ||
440 | if (mStartCheck->isChecked() && mDueCheck->isChecked()) { | 439 | if (mStartCheck->isChecked() && mDueCheck->isChecked()) { |
441 | QDateTime startDate; | 440 | QDateTime startDate; |
442 | QDateTime dueDate; | 441 | QDateTime dueDate; |
443 | startDate.setDate(mStartDateEdit->date()); | 442 | startDate.setDate(mStartDateEdit->date()); |
444 | dueDate.setDate(mDueDateEdit->date()); | 443 | dueDate.setDate(mDueDateEdit->date()); |
445 | if (mTimeButton->isChecked()) { | 444 | if (mTimeButton->isChecked()) { |
446 | startDate.setTime(mStartTimeEdit->getTime()); | 445 | startDate.setTime(mStartTimeEdit->getTime()); |
447 | dueDate.setTime(mDueTimeEdit->getTime()); | 446 | dueDate.setTime(mDueTimeEdit->getTime()); |
448 | } | 447 | } |
449 | if (startDate > dueDate) { | 448 | if (startDate > dueDate) { |
450 | KMessageBox::sorry(0, | 449 | KMessageBox::sorry(0, |
451 | i18n("The start date cannot be after the due date.")); | 450 | i18n("The start date cannot be after the due date.")); |
452 | return false; | 451 | return false; |
453 | } | 452 | } |
454 | } | 453 | } |
455 | 454 | ||
456 | return KOEditorGeneral::validateInput(); | 455 | return KOEditorGeneral::validateInput(); |
457 | } | 456 | } |
458 | 457 | ||
459 | void KOEditorGeneralTodo::completedChanged(int index) | 458 | void KOEditorGeneralTodo::completedChanged(int index) |
460 | { | 459 | { |
461 | if (index == 5) { | 460 | if (index == 5) { |
462 | //get rid of milli sec | 461 | //get rid of milli sec |
463 | mCompleted = QDateTime::currentDateTime(); | 462 | mCompleted = QDateTime::currentDateTime(); |
464 | } | 463 | } |
465 | setCompletedDate(); | 464 | setCompletedDate(); |
466 | } | 465 | } |
467 | 466 | ||
468 | void KOEditorGeneralTodo::setCompletedDate() | 467 | void KOEditorGeneralTodo::setCompletedDate() |
469 | { | 468 | { |
470 | if (mCompletedCombo->currentItem() == 5 && mCompleted.isValid()) { | 469 | if (mCompletedCombo->currentItem() == 5 && mCompleted.isValid()) { |
471 | if ( QApplication::desktop()->width() < 480 ) { | 470 | if ( QApplication::desktop()->width() < 480 ) { |
472 | mCompletedLabel->setText(i18n(" on")); | 471 | mCompletedLabel->setText(i18n(" on")); |
473 | } | 472 | } |
474 | else | 473 | else |
475 | mCompletedLabel->setText(i18n(" completed on ")); | 474 | mCompletedLabel->setText(i18n(" completed on ")); |
476 | mCompleteDateEdit->show(); | 475 | mCompleteDateEdit->show(); |
477 | mCompleteTimeEdit->show(); | 476 | mCompleteTimeEdit->show(); |
478 | mCompleteTimeEdit->setTime( mCompleted.time() ); | 477 | mCompleteTimeEdit->setTime( mCompleted.time() ); |
479 | mCompleteDateEdit->setDate( mCompleted.date() ); | 478 | mCompleteDateEdit->setDate( mCompleted.date() ); |
480 | } else { | 479 | } else { |
481 | mCompletedLabel->setText(i18n(" completed")); | 480 | mCompletedLabel->setText(i18n(" completed")); |
482 | mCompleteDateEdit->hide(); | 481 | mCompleteDateEdit->hide(); |
483 | mCompleteTimeEdit->hide(); | 482 | mCompleteTimeEdit->hide(); |
484 | } | 483 | } |
485 | } | 484 | } |
486 | 485 | ||
487 | void KOEditorGeneralTodo::modified (Todo* todo, int modification) | 486 | void KOEditorGeneralTodo::modified (Todo* todo, int modification) |
488 | { | 487 | { |
489 | switch (modification) { | 488 | switch (modification) { |
490 | case KOGlobals::PRIORITY_MODIFIED: | 489 | case KOGlobals::PRIORITY_MODIFIED: |
491 | mPriorityCombo->setCurrentItem(todo->priority()-1); | 490 | mPriorityCombo->setCurrentItem(todo->priority()-1); |
492 | break; | 491 | break; |
493 | case KOGlobals::COMPLETION_MODIFIED: | 492 | case KOGlobals::COMPLETION_MODIFIED: |
494 | mCompletedCombo->setCurrentItem(todo->percentComplete() / 20); | 493 | mCompletedCombo->setCurrentItem(todo->percentComplete() / 20); |
495 | if (todo->isCompleted() && todo->hasCompletedDate()) { | 494 | if (todo->isCompleted() && todo->hasCompletedDate()) { |
496 | mCompleted = todo->completed(); | 495 | mCompleted = todo->completed(); |
497 | } | 496 | } |
498 | setCompletedDate(); | 497 | setCompletedDate(); |
499 | break; | 498 | break; |
500 | case KOGlobals::CATEGORY_MODIFIED: | 499 | case KOGlobals::CATEGORY_MODIFIED: |
501 | setCategories (todo->categoriesStr ()); | 500 | setCategories (todo->categoriesStr ()); |
502 | break; | 501 | break; |
503 | case KOGlobals::UNKNOWN_MODIFIED: // fall through | 502 | case KOGlobals::UNKNOWN_MODIFIED: // fall through |
504 | default: | 503 | default: |
505 | readTodo( todo ); | 504 | readTodo( todo ); |
506 | break; | 505 | break; |
507 | } | 506 | } |
508 | } | 507 | } |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index e7a5e0e..e560ce4 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -1,1328 +1,1323 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 1999 Preston Brown | 3 | Copyright (c) 1999 Preston Brown |
4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <qlistview.h> | 25 | #include <qlistview.h> |
26 | #include <qlayout.h> | 26 | #include <qlayout.h> |
27 | #include <qlabel.h> | 27 | #include <qlabel.h> |
28 | #include <qpopupmenu.h> | 28 | #include <qpopupmenu.h> |
29 | #include <qprogressbar.h> | 29 | #include <qprogressbar.h> |
30 | #include <qfileinfo.h> | 30 | #include <qfileinfo.h> |
31 | #include <qmessagebox.h> | 31 | #include <qmessagebox.h> |
32 | #include <qdialog.h> | 32 | #include <qdialog.h> |
33 | #include <qtextstream.h> | 33 | #include <qtextstream.h> |
34 | #include <qdir.h> | 34 | #include <qdir.h> |
35 | #include <qwhatsthis.h> | 35 | #include <qwhatsthis.h> |
36 | #include <qregexp.h> | 36 | #include <qregexp.h> |
37 | #include <qpainter.h> | 37 | #include <qpainter.h> |
38 | #include <qpaintdevicemetrics.h> | 38 | #include <qpaintdevicemetrics.h> |
39 | 39 | ||
40 | #include <klocale.h> | 40 | #include <klocale.h> |
41 | #include <kdebug.h> | 41 | #include <kdebug.h> |
42 | #include <kiconloader.h> | 42 | #include <kiconloader.h> |
43 | #include <kglobal.h> | 43 | #include <kglobal.h> |
44 | 44 | ||
45 | #include <libkdepim/kpimglobalprefs.h> | 45 | #include <libkdepim/kpimglobalprefs.h> |
46 | #include <libkcal/calendar.h> | 46 | #include <libkcal/calendar.h> |
47 | #include <libkcal/calendarlocal.h> | 47 | #include <libkcal/calendarlocal.h> |
48 | #include <libkcal/icalformat.h> | 48 | #include <libkcal/icalformat.h> |
49 | #include <libkcal/vcalformat.h> | 49 | #include <libkcal/vcalformat.h> |
50 | #include <libkcal/recurrence.h> | 50 | #include <libkcal/recurrence.h> |
51 | #include <libkcal/filestorage.h> | 51 | #include <libkcal/filestorage.h> |
52 | #include <libkdepim/categoryselectdialog.h> | 52 | #include <libkdepim/categoryselectdialog.h> |
53 | #include <libkcal/kincidenceformatter.h> | 53 | #include <libkcal/kincidenceformatter.h> |
54 | #ifndef DESKTOP_VERSION | 54 | #ifndef DESKTOP_VERSION |
55 | #include <qpe/qpeapplication.h> | 55 | #include <qpe/qpeapplication.h> |
56 | #else | 56 | #else |
57 | #include <qapplication.h> | 57 | #include <qapplication.h> |
58 | #endif | 58 | #endif |
59 | 59 | ||
60 | #ifndef KORG_NOPRINTER | 60 | #ifndef KORG_NOPRINTER |
61 | #include "calprinter.h" | 61 | #include "calprinter.h" |
62 | #endif | 62 | #endif |
63 | #include "koglobals.h" | 63 | #include "koglobals.h" |
64 | #include "koprefs.h" | 64 | #include "koprefs.h" |
65 | #include "kfiledialog.h" | 65 | #include "kfiledialog.h" |
66 | 66 | ||
67 | #include "kolistview.h" | 67 | #include "kolistview.h" |
68 | #include "koeventviewer.h" | 68 | #include "koeventviewer.h" |
69 | 69 | ||
70 | extern QPixmap* sgListViewCompletedPix[6]; | 70 | extern QPixmap* sgListViewCompletedPix[6]; |
71 | extern QPixmap* sgListViewJournalPix; | 71 | extern QPixmap* sgListViewJournalPix; |
72 | 72 | ||
73 | class KOListViewWhatsThis :public QWhatsThis | 73 | class KOListViewWhatsThis :public QWhatsThis |
74 | { | 74 | { |
75 | public: | 75 | public: |
76 | KOListViewWhatsThis( QWidget *wid, KOListView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; | 76 | KOListViewWhatsThis( QWidget *wid, KOListView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; |
77 | 77 | ||
78 | protected: | 78 | protected: |
79 | virtual QString text( const QPoint& p) | 79 | virtual QString text( const QPoint& p) |
80 | { | 80 | { |
81 | return _view->getWhatsThisText(p) ; | 81 | return _view->getWhatsThisText(p) ; |
82 | } | 82 | } |
83 | private: | 83 | private: |
84 | QWidget* _wid; | 84 | QWidget* _wid; |
85 | KOListView * _view; | 85 | KOListView * _view; |
86 | }; | 86 | }; |
87 | 87 | ||
88 | 88 | ||
89 | ListItemVisitor::ListItemVisitor(KOListViewItem *item, QDate date ) | 89 | ListItemVisitor::ListItemVisitor(KOListViewItem *item, QDate date ) |
90 | { | 90 | { |
91 | mItem = item; | 91 | mItem = item; |
92 | mDate = date; | 92 | mDate = date; |
93 | } | 93 | } |
94 | 94 | ||
95 | ListItemVisitor::~ListItemVisitor() | 95 | ListItemVisitor::~ListItemVisitor() |
96 | { | 96 | { |
97 | } | 97 | } |
98 | 98 | ||
99 | bool ListItemVisitor::visit(Event *e) | 99 | bool ListItemVisitor::visit(Event *e) |
100 | { | 100 | { |
101 | bool ok = false; | 101 | bool ok = false; |
102 | QString start, end; | 102 | QString start, end; |
103 | QDate ds, de; | 103 | QDate ds, de; |
104 | if ( e->doesRecur() ) { | 104 | if ( e->doesRecur() ) { |
105 | ds = e->getNextOccurence( QDateTime( mDate, QTime(0,0,0)), &ok ).date(); | 105 | ds = e->getNextOccurence( QDateTime( mDate, QTime(0,0,0)), &ok ).date(); |
106 | if ( ok ) { | 106 | if ( ok ) { |
107 | int days = e->dtStart().date().daysTo(e->dtEnd().date() ); | 107 | int days = e->dtStart().date().daysTo(e->dtEnd().date() ); |
108 | start = KGlobal::locale()->formatDate(ds,true); | 108 | start = KGlobal::locale()->formatDate(ds,true); |
109 | de = ds.addDays( days); | 109 | de = ds.addDays( days); |
110 | end = KGlobal::locale()->formatDate(de,true); | 110 | end = KGlobal::locale()->formatDate(de,true); |
111 | } | 111 | } |
112 | 112 | ||
113 | } | 113 | } |
114 | if ( ! ok ) { | 114 | if ( ! ok ) { |
115 | start =e->dtStartDateStr(); | 115 | start =e->dtStartDateStr(); |
116 | end = e->dtEndDateStr(); | 116 | end = e->dtEndDateStr(); |
117 | ds = e->dtStart().date(); | 117 | ds = e->dtStart().date(); |
118 | de = e->dtEnd().date(); | 118 | de = e->dtEnd().date(); |
119 | } | 119 | } |
120 | mItem->setText(0,e->summary()); | 120 | mItem->setText(0,e->summary()); |
121 | mItem->setText(1,start); | 121 | mItem->setText(1,start); |
122 | if ( e->doesFloat() ) | 122 | if ( e->doesFloat() ) |
123 | mItem->setText(2,"---"); | 123 | mItem->setText(2,"---"); |
124 | else | 124 | else |
125 | mItem->setText(2,e->dtStartTimeStr()); | 125 | mItem->setText(2,e->dtStartTimeStr()); |
126 | mItem->setText(3,end); | 126 | mItem->setText(3,end); |
127 | if ( e->doesFloat() ) | 127 | if ( e->doesFloat() ) |
128 | mItem->setText(4,"---"); | 128 | mItem->setText(4,"---"); |
129 | else | 129 | else |
130 | mItem->setText(4,e->dtEndTimeStr()); | 130 | mItem->setText(4,e->dtEndTimeStr()); |
131 | mItem->setText(5, e->durationText()); | ||
131 | if ( e->isAlarmEnabled() ) { | 132 | if ( e->isAlarmEnabled() ) { |
132 | mItem->setText(5,e->alarms().first()->offsetText() ); | 133 | mItem->setText(6,e->alarms().first()->offsetText() ); |
133 | } else { | 134 | } else { |
134 | mItem->setText(5, i18n("No")); | 135 | mItem->setText(6, i18n("No")); |
135 | } | 136 | } |
136 | mItem->setText(6, e->recurrenceText()); | 137 | mItem->setText(7, e->recurrenceText()); |
137 | if( ! e->doesRecur() ) | 138 | if( ! e->doesRecur() ) |
138 | mItem->setSortKey( 6, "-" ); | 139 | mItem->setSortKey( 7, "-" ); |
139 | mItem->setText(7,"---"); | 140 | mItem->setText(8, e->cancelled() ? i18n("Yes") : i18n("No")); |
140 | mItem->setText(8,"---"); | 141 | mItem->setText(9,e->categoriesStr()); |
141 | mItem->setText(9, e->cancelled() ? i18n("Yes") : i18n("No")); | 142 | mItem->setText(10, KOPrefs::instance()->calName( e->calID() )); |
142 | mItem->setText(10,e->categoriesStr()); | 143 | mItem->setText(11, KGlobal::locale()->formatDateTime( e->lastModified(), true, true )); |
143 | mItem->setText(11, KOPrefs::instance()->calName( e->calID() )); | ||
144 | mItem->setText(12, KGlobal::locale()->formatDateTime( e->lastModified(), true, true )); | ||
145 | 144 | ||
146 | QString key; | 145 | QString key; |
147 | QDate d = e->lastModified().date(); | 146 | QDate d = e->lastModified().date(); |
148 | QTime t = e->lastModified().time(); | 147 | QTime t = e->lastModified().time(); |
149 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),t.hour(),t.minute(),t.second() ); | 148 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),t.hour(),t.minute(),t.second() ); |
150 | mItem->setSortKey(12,key); | 149 | mItem->setSortKey(12,key); |
151 | t = e->doesFloat() ? QTime(0,0) : e->dtStart().time(); | 150 | t = e->doesFloat() ? QTime(0,0) : e->dtStart().time(); |
152 | key.sprintf("%04d%02d%02d%02d%02d",ds.year(),ds.month(),ds.day(),t.hour(),t.minute()); | 151 | key.sprintf("%04d%02d%02d%02d%02d",ds.year(),ds.month(),ds.day(),t.hour(),t.minute()); |
153 | mItem->setSortKey(1,key); | 152 | mItem->setSortKey(1,key); |
154 | 153 | ||
155 | t = e->doesFloat() ? QTime(0,0) : e->dtEnd().time(); | 154 | t = e->doesFloat() ? QTime(0,0) : e->dtEnd().time(); |
156 | key.sprintf("%04d%02d%02d%02d%02d",de.year(),de.month(),de.day(),t.hour(),t.minute()); | 155 | key.sprintf("%04d%02d%02d%02d%02d",de.year(),de.month(),de.day(),t.hour(),t.minute()); |
157 | mItem->setSortKey(3,key); | 156 | mItem->setSortKey(3,key); |
158 | return true; | 157 | return true; |
159 | } | 158 | } |
160 | 159 | ||
161 | bool ListItemVisitor::visit(Todo *t) | 160 | bool ListItemVisitor::visit(Todo *t) |
162 | { | 161 | { |
163 | mItem->setText(0,t->summary()); | 162 | mItem->setText(0,t->summary()); |
164 | if ( t->isCompleted() ) { | 163 | if ( t->isCompleted() ) { |
165 | mItem->setSortKey(0,"99"+ t->summary().left(10)); | 164 | mItem->setSortKey(0,"99"+ t->summary().left(10)); |
166 | } else | 165 | } else |
167 | mItem->setSortKey(0,QString::number( t->percentComplete()+1 )+ t->summary().left(10)); | 166 | mItem->setSortKey(0,QString::number( t->percentComplete()+1 )+ t->summary().left(10)); |
168 | mItem->setPixmap( 0, *(sgListViewCompletedPix[t->percentComplete()/20])); | 167 | mItem->setPixmap( 0, *(sgListViewCompletedPix[t->percentComplete()/20])); |
169 | if (t->hasStartDate()) { | 168 | if (t->hasStartDate()) { |
170 | mItem->setText(1,t->dtStartDateStr()); | 169 | mItem->setText(1,t->dtStartDateStr()); |
171 | if (t->doesFloat()) { | 170 | if (t->doesFloat()) { |
172 | mItem->setText(2,"---"); | 171 | mItem->setText(2,"---"); |
173 | } else { | 172 | } else { |
174 | mItem->setText(2,t->dtStartTimeStr()); | 173 | mItem->setText(2,t->dtStartTimeStr()); |
175 | } | 174 | } |
176 | } else { | 175 | } else { |
177 | mItem->setText(1,"---"); | 176 | mItem->setText(1,"---"); |
178 | mItem->setText(2,"---"); | 177 | mItem->setText(2,"---"); |
179 | } | 178 | } |
180 | mItem->setText(3,"---"); | ||
181 | mItem->setText(4,"---"); | ||
182 | if ( t->isAlarmEnabled() ) { | 179 | if ( t->isAlarmEnabled() ) { |
183 | mItem->setText(5,t->alarms().first()->offsetText() ); | 180 | mItem->setText(6,t->alarms().first()->offsetText() ); |
184 | } else { | 181 | } else { |
185 | mItem->setText(5, i18n("No")); | 182 | mItem->setText(6, i18n("No")); |
186 | } | 183 | } |
187 | mItem->setText(6, t->recurrenceText()); | 184 | mItem->setText(7, t->recurrenceText()); |
188 | if( ! t->doesRecur() ) | 185 | if( ! t->doesRecur() ) |
189 | mItem->setSortKey( 6, "-" ); | 186 | mItem->setSortKey( 7, "-" ); |
190 | if (t->hasDueDate()) { | 187 | if (t->hasDueDate()) { |
191 | mItem->setText(7,t->dtDueDateStr()); | 188 | mItem->setText(3,t->dtDueDateStr()); |
192 | if (t->doesFloat()) { | 189 | if (t->doesFloat()) { |
193 | mItem->setText(8,"---"); | 190 | mItem->setText(4,"---"); |
194 | } else { | 191 | } else { |
195 | mItem->setText(8,t->dtDueTimeStr()); | 192 | mItem->setText(4,t->dtDueTimeStr()); |
196 | } | 193 | } |
197 | } else { | 194 | } else { |
198 | mItem->setText(7,"---"); | 195 | mItem->setText(3,"---"); |
199 | mItem->setText(8,"---"); | 196 | mItem->setText(4,"---"); |
200 | } | 197 | } |
201 | mItem->setText(9, t->cancelled() ? i18n("Yes") : i18n("No")); | 198 | mItem->setText(5, t->durationText()); |
202 | mItem->setText(10,t->categoriesStr()); | 199 | mItem->setText(8, t->cancelled() ? i18n("Yes") : i18n("No")); |
203 | mItem->setText(11, KOPrefs::instance()->calName( t->calID() )); | 200 | mItem->setText(9,t->categoriesStr()); |
204 | mItem->setText(12, KGlobal::locale()->formatDateTime( t->lastModified(), true, true )); | 201 | mItem->setText(10, KOPrefs::instance()->calName( t->calID() )); |
202 | mItem->setText(11, KGlobal::locale()->formatDateTime( t->lastModified(), true, true )); | ||
205 | QString key; | 203 | QString key; |
206 | QDate d = t->lastModified().date(); | 204 | QDate d = t->lastModified().date(); |
207 | QTime tm = t->lastModified().time(); | 205 | QTime tm = t->lastModified().time(); |
208 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute(),tm.second() ); | 206 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute(),tm.second() ); |
209 | mItem->setSortKey(12,key); | 207 | mItem->setSortKey(11,key); |
210 | if (t->hasDueDate()) { | 208 | if (t->hasDueDate()) { |
211 | d = t->dtDue().date(); | 209 | d = t->dtDue().date(); |
212 | tm = t->doesFloat() ? QTime(0,0) : t->dtDue().time(); | 210 | tm = t->doesFloat() ? QTime(0,0) : t->dtDue().time(); |
213 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); | 211 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); |
214 | mItem->setSortKey(7,key); | 212 | mItem->setSortKey(3,key); |
215 | } | 213 | } |
216 | if ( t->hasStartDate() ) { | 214 | if ( t->hasStartDate() ) { |
217 | d = t->dtStart().date(); | 215 | d = t->dtStart().date(); |
218 | tm = t->doesFloat() ? QTime(0,0) : t->dtStart().time(); | 216 | tm = t->doesFloat() ? QTime(0,0) : t->dtStart().time(); |
219 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); | 217 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); |
220 | mItem->setSortKey(1,key); | 218 | mItem->setSortKey(1,key); |
221 | } | 219 | } |
222 | return true; | 220 | return true; |
223 | } | 221 | } |
224 | 222 | ||
225 | bool ListItemVisitor::visit(Journal * j) | 223 | bool ListItemVisitor::visit(Journal * j) |
226 | { | 224 | { |
227 | 225 | ||
228 | QString des; | 226 | QString des; |
229 | mItem->setPixmap( 0, *sgListViewJournalPix); | 227 | mItem->setPixmap( 0, *sgListViewJournalPix); |
230 | if ( !j->summary().isEmpty() ) { | 228 | if ( !j->summary().isEmpty() ) { |
231 | des = j->summary(); | 229 | des = j->summary(); |
232 | } else { | 230 | } else { |
233 | des = j->description().left(30); | 231 | des = j->description().left(30); |
234 | des = des.simplifyWhiteSpace (); | 232 | des = des.simplifyWhiteSpace (); |
235 | des.replace (QRegExp ("\\n"),"" ); | 233 | des.replace (QRegExp ("\\n"),"" ); |
236 | des.replace (QRegExp ("\\r"),"" ); | 234 | des.replace (QRegExp ("\\r"),"" ); |
237 | } | 235 | } |
238 | mItem->setText(0,des.left(25)); | 236 | mItem->setText(0,des.left(25)); |
239 | mItem->setSortKey(0,"0"+ des.left(25)); | 237 | mItem->setSortKey(0,"0"+ des.left(25)); |
240 | mItem->setText(1,j->dtStartDateStr()); | 238 | mItem->setText(1,j->dtStartDateStr()); |
241 | mItem->setText(2,"---"); | 239 | mItem->setText(2,"---"); |
242 | mItem->setText(3,"---"); | 240 | mItem->setText(3,"---"); |
243 | mItem->setText(4,"---"); | 241 | mItem->setText(4,"---"); |
244 | mItem->setText(5,"---"); | 242 | mItem->setText(5,"---"); |
245 | mItem->setText(6,"---"); | 243 | mItem->setText(6,"---"); |
246 | mItem->setText(7,j->dtStartDateStr()); | 244 | mItem->setText(7,"---"); |
247 | mItem->setText(8,"---"); | 245 | mItem->setText(8,"---"); |
248 | mItem->setText(9,"---"); | 246 | mItem->setText(9,j->categoriesStr()); |
249 | mItem->setText(10,j->categoriesStr()); | 247 | mItem->setText(10, KOPrefs::instance()->calName( j->calID() )); |
250 | mItem->setText(11, KOPrefs::instance()->calName( j->calID() )); | 248 | mItem->setText(11, KGlobal::locale()->formatDateTime( j->lastModified(), true, true )); |
251 | mItem->setText(12, KGlobal::locale()->formatDateTime( j->lastModified(), true, true )); | ||
252 | 249 | ||
253 | QString key; | 250 | QString key; |
254 | QDate d = j->lastModified().date(); | 251 | QDate d = j->lastModified().date(); |
255 | QTime tm = j->lastModified().time(); | 252 | QTime tm = j->lastModified().time(); |
256 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute(),tm.second() ); | 253 | key.sprintf("%04d%02d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute(),tm.second() ); |
257 | mItem->setSortKey(12,key); | 254 | mItem->setSortKey(12,key); |
258 | d = j->dtStart().date(); | 255 | d = j->dtStart().date(); |
259 | key.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 256 | key.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
260 | mItem->setSortKey(1,key); | 257 | mItem->setSortKey(1,key); |
261 | mItem->setSortKey(7,key); | 258 | mItem->setSortKey(7,key); |
262 | 259 | ||
263 | return true; | 260 | return true; |
264 | } | 261 | } |
265 | 262 | ||
266 | KOListView::KOListView(Calendar *calendar, QWidget *parent, | 263 | KOListView::KOListView(Calendar *calendar, QWidget *parent, |
267 | const char *name) | 264 | const char *name) |
268 | : KOEventView(calendar, parent, name) | 265 | : KOEventView(calendar, parent, name) |
269 | { | 266 | { |
270 | 267 | ||
271 | mActiveItem = 0; | 268 | mActiveItem = 0; |
272 | mForceShowCompletedTodos = false; | 269 | mForceShowCompletedTodos = false; |
273 | mListView = new KOListViewListView(this); | 270 | mListView = new KOListViewListView(this); |
274 | mListView->addColumn(i18n("Summary")); | 271 | mListView->addColumn(i18n("Summary")); |
275 | mListView->addColumn(i18n("Start Date")); | 272 | mListView->addColumn(i18n("Start Date")); |
276 | mListView->addColumn(i18n("Start Time")); | 273 | mListView->addColumn(i18n("Start Time")); |
277 | mListView->addColumn(i18n("End Date")); | 274 | mListView->addColumn(i18n("End/Due Date")); |
278 | mListView->addColumn(i18n("End Time")); | 275 | mListView->addColumn(i18n("End/Due Time")); |
276 | mListView->addColumn(i18n("Duration")); | ||
279 | mListView->addColumn(i18n("Alarm")); // alarm set? | 277 | mListView->addColumn(i18n("Alarm")); // alarm set? |
280 | mListView->addColumn(i18n("Recurs")); // recurs? | 278 | mListView->addColumn(i18n("Recurs")); // recurs? |
281 | mListView->addColumn(i18n("Due Date")); | ||
282 | mListView->addColumn(i18n("Due Time")); | ||
283 | mListView->addColumn(i18n("Cancelled")); | 279 | mListView->addColumn(i18n("Cancelled")); |
284 | mListView->addColumn(i18n("Categories")); | 280 | mListView->addColumn(i18n("Categories")); |
285 | mListView->addColumn(i18n("Calendar")); | 281 | mListView->addColumn(i18n("Calendar")); |
286 | mListView->addColumn(i18n("Last Modified")); | 282 | mListView->addColumn(i18n("Last Modified")); |
287 | 283 | ||
288 | mListView->setColumnAlignment(0,AlignLeft); | 284 | mListView->setColumnAlignment(0,AlignLeft); |
289 | mListView->setColumnAlignment(1,AlignLeft); | 285 | mListView->setColumnAlignment(1,AlignLeft); |
290 | mListView->setColumnAlignment(2,AlignHCenter); | 286 | mListView->setColumnAlignment(2,AlignHCenter); |
291 | mListView->setColumnAlignment(3,AlignLeft); | 287 | mListView->setColumnAlignment(3,AlignLeft); |
292 | mListView->setColumnAlignment(4,AlignHCenter); | 288 | mListView->setColumnAlignment(4,AlignHCenter); |
293 | mListView->setColumnAlignment(5,AlignLeft); | 289 | mListView->setColumnAlignment(5,AlignLeft); |
294 | mListView->setColumnAlignment(6,AlignLeft); | 290 | mListView->setColumnAlignment(6,AlignLeft); |
295 | mListView->setColumnAlignment(7,AlignLeft); | 291 | mListView->setColumnAlignment(7,AlignLeft); |
296 | mListView->setColumnAlignment(8,AlignLeft); | 292 | mListView->setColumnAlignment(8,AlignLeft); |
297 | mListView->setColumnAlignment(9,AlignLeft); | 293 | mListView->setColumnAlignment(9,AlignLeft); |
298 | mListView->setColumnAlignment(10,AlignLeft); | 294 | mListView->setColumnAlignment(10,AlignLeft); |
299 | mListView->setColumnAlignment(11,AlignLeft); | 295 | mListView->setColumnAlignment(11,AlignLeft); |
300 | mListView->setColumnAlignment(12,AlignLeft); | ||
301 | mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this); | 296 | mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this); |
302 | 297 | ||
303 | int iii = 0; | 298 | int iii = 0; |
304 | for ( iii = 0; iii< 13 ; ++iii ) | 299 | for ( iii = 0; iii< 12 ; ++iii ) |
305 | mListView->setColumnWidthMode( iii, QListView::Manual ); | 300 | mListView->setColumnWidthMode( iii, QListView::Manual ); |
306 | 301 | ||
307 | QBoxLayout *layoutTop = new QVBoxLayout(this); | 302 | QBoxLayout *layoutTop = new QVBoxLayout(this); |
308 | layoutTop->addWidget(mListView); | 303 | layoutTop->addWidget(mListView); |
309 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); | 304 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); |
310 | mPopupMenu = eventPopup(); | 305 | mPopupMenu = eventPopup(); |
311 | QPopupMenu* selPopup = new QPopupMenu ( this ); | 306 | QPopupMenu* selPopup = new QPopupMenu ( this ); |
312 | mPopupMenu->insertSeparator(); | 307 | mPopupMenu->insertSeparator(); |
313 | 308 | ||
314 | selPopup->insertItem(i18n("All"),this, | 309 | selPopup->insertItem(i18n("All"),this, |
315 | SLOT(allSelection())); | 310 | SLOT(allSelection())); |
316 | selPopup->insertItem(i18n("None"),this, | 311 | selPopup->insertItem(i18n("None"),this, |
317 | SLOT(clearSelection())); | 312 | SLOT(clearSelection())); |
318 | selPopup->insertItem(i18n("Delete selected..."),this, | 313 | selPopup->insertItem(i18n("Delete selected..."),this, |
319 | SLOT(deleteAll())); | 314 | SLOT(deleteAll())); |
320 | mPopupMenu->insertItem(i18n("Selection"), selPopup ); | 315 | mPopupMenu->insertItem(i18n("Selection"), selPopup ); |
321 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 316 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
322 | i18n("Hide all selected"),this, | 317 | i18n("Hide all selected"),this, |
323 | SLOT(hideAll()),true); | 318 | SLOT(hideAll()),true); |
324 | 319 | ||
325 | selPopup->insertSeparator(); | 320 | selPopup->insertSeparator(); |
326 | QPopupMenu * exportPO = new QPopupMenu ( this ); | 321 | QPopupMenu * exportPO = new QPopupMenu ( this ); |
327 | selPopup->insertItem( i18n("Export"), exportPO ); | 322 | selPopup->insertItem( i18n("Export"), exportPO ); |
328 | #ifdef DESKTOP_VERSION | 323 | #ifdef DESKTOP_VERSION |
329 | mPopupMenu->insertSeparator(); | 324 | mPopupMenu->insertSeparator(); |
330 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 325 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
331 | i18n("Print complete list..."),this, | 326 | i18n("Print complete list..."),this, |
332 | SLOT(printList()),true); | 327 | SLOT(printList()),true); |
333 | #endif | 328 | #endif |
334 | mCalPopup = new QPopupMenu ( this ); | 329 | mCalPopup = new QPopupMenu ( this ); |
335 | selPopup->insertItem( i18n("Set Calendar"), mCalPopup ); | 330 | selPopup->insertItem( i18n("Set Calendar"), mCalPopup ); |
336 | 331 | ||
337 | selPopup->insertItem(i18n("Set categories")+"...",this, | 332 | selPopup->insertItem(i18n("Set categories")+"...",this, |
338 | SLOT(setCat()) ); | 333 | SLOT(setCat()) ); |
339 | selPopup->insertItem( i18n("Set alarm..."),this, | 334 | selPopup->insertItem( i18n("Set alarm..."),this, |
340 | SLOT(setAlarm())); | 335 | SLOT(setAlarm())); |
341 | #if 0 | 336 | #if 0 |
342 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 337 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
343 | i18n("Set categories")+"...",this, | 338 | i18n("Set categories")+"...",this, |
344 | SLOT(setCat()),true); | 339 | SLOT(setCat()),true); |
345 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 340 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
346 | i18n("Set alarm..."),this, | 341 | i18n("Set alarm..."),this, |
347 | SLOT(setAlarm()),true); | 342 | SLOT(setAlarm()),true); |
348 | #endif | 343 | #endif |
349 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, | 344 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, |
350 | SLOT( populateCalPopup() )); | 345 | SLOT( populateCalPopup() )); |
351 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, | 346 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, |
352 | SLOT( setCalendar( int ) )); | 347 | SLOT( setCalendar( int ) )); |
353 | QObject::connect(mPopupMenu,SIGNAL(categoryChanged( Incidence * )),this, | 348 | QObject::connect(mPopupMenu,SIGNAL(categoryChanged( Incidence * )),this, |
354 | SLOT( catChanged( Incidence * ) )); | 349 | SLOT( catChanged( Incidence * ) )); |
355 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, | 350 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, |
356 | SLOT(saveToFile())); | 351 | SLOT(saveToFile())); |
357 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, | 352 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, |
358 | SLOT(saveToFileVCS())); | 353 | SLOT(saveToFileVCS())); |
359 | exportPO->insertItem( i18n("Journal/Details..."),this, | 354 | exportPO->insertItem( i18n("Journal/Details..."),this, |
360 | SLOT(saveDescriptionToFile())); | 355 | SLOT(saveDescriptionToFile())); |
361 | // mPopupMenu->insertSeparator(); | 356 | // mPopupMenu->insertSeparator(); |
362 | // mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 357 | // mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
363 | // i18n("Add Categ. to selected..."),this, | 358 | // i18n("Add Categ. to selected..."),this, |
364 | // SLOT(addCat()),true); | 359 | // SLOT(addCat()),true); |
365 | //mPopupMenu->insertSeparator(); | 360 | //mPopupMenu->insertSeparator(); |
366 | #ifndef DESKTOP_VERSION | 361 | #ifndef DESKTOP_VERSION |
367 | selPopup->insertSeparator(); | 362 | selPopup->insertSeparator(); |
368 | selPopup->insertItem( i18n("Beam via IR..."),this, | 363 | selPopup->insertItem( i18n("Beam via IR..."),this, |
369 | SLOT(beamSelected())); | 364 | SLOT(beamSelected())); |
370 | #if 0 | 365 | #if 0 |
371 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 366 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
372 | i18n("Beam via IR"),this, | 367 | i18n("Beam via IR"),this, |
373 | SLOT(beamSelected()),true); | 368 | SLOT(beamSelected()),true); |
374 | #endif | 369 | #endif |
375 | #endif | 370 | #endif |
376 | /* | 371 | /* |
377 | mPopupMenu = new QPopupMenu; | 372 | mPopupMenu = new QPopupMenu; |
378 | mPopupMenu->insertItem(i18n("Edit Event"), this, | 373 | mPopupMenu->insertItem(i18n("Edit Event"), this, |
379 | SLOT (editEvent())); | 374 | SLOT (editEvent())); |
380 | mPopupMenu->insertItem(SmallIcon("delete"), i18n("Delete Event"), this, | 375 | mPopupMenu->insertItem(SmallIcon("delete"), i18n("Delete Event"), this, |
381 | SLOT (deleteEvent())); | 376 | SLOT (deleteEvent())); |
382 | mPopupMenu->insertSeparator(); | 377 | mPopupMenu->insertSeparator(); |
383 | mPopupMenu->insertItem(i18n("Show Dates"), this, | 378 | mPopupMenu->insertItem(i18n("Show Dates"), this, |
384 | SLOT(showDates())); | 379 | SLOT(showDates())); |
385 | mPopupMenu->insertItem(i18n("Hide Dates"), this, | 380 | mPopupMenu->insertItem(i18n("Hide Dates"), this, |
386 | SLOT(hideDates())); | 381 | SLOT(hideDates())); |
387 | */ | 382 | */ |
388 | QObject::connect(mListView,SIGNAL( newEvent()), | 383 | QObject::connect(mListView,SIGNAL( newEvent()), |
389 | this,SIGNAL(signalNewEvent())); | 384 | this,SIGNAL(signalNewEvent())); |
390 | QObject::connect(mListView,SIGNAL(doubleClicked(QListViewItem *)), | 385 | QObject::connect(mListView,SIGNAL(doubleClicked(QListViewItem *)), |
391 | this,SLOT(defaultItemAction(QListViewItem *))); | 386 | this,SLOT(defaultItemAction(QListViewItem *))); |
392 | QObject::connect(mListView,SIGNAL(rightButtonPressed( QListViewItem *, | 387 | QObject::connect(mListView,SIGNAL(rightButtonPressed( QListViewItem *, |
393 | const QPoint &, int )), | 388 | const QPoint &, int )), |
394 | this,SLOT(popupMenu(QListViewItem *,const QPoint &,int))); | 389 | this,SLOT(popupMenu(QListViewItem *,const QPoint &,int))); |
395 | QObject::connect(mListView,SIGNAL(currentChanged(QListViewItem *)), | 390 | QObject::connect(mListView,SIGNAL(currentChanged(QListViewItem *)), |
396 | SLOT(processSelectionChange(QListViewItem *))); | 391 | SLOT(processSelectionChange(QListViewItem *))); |
397 | QObject::connect(mListView,SIGNAL(showIncidence(Incidence *)), | 392 | QObject::connect(mListView,SIGNAL(showIncidence(Incidence *)), |
398 | SIGNAL(showIncidenceSignal(Incidence *)) ); | 393 | SIGNAL(showIncidenceSignal(Incidence *)) ); |
399 | 394 | ||
400 | readSettings(KOGlobals::config(),"KOListView Layout"); | 395 | readSettings(KOGlobals::config(),"KOListView Layout"); |
401 | } | 396 | } |
402 | 397 | ||
403 | KOListView::~KOListView() | 398 | KOListView::~KOListView() |
404 | { | 399 | { |
405 | delete mPopupMenu; | 400 | delete mPopupMenu; |
406 | #if QT_VERSION >= 0x030000 | 401 | #if QT_VERSION >= 0x030000 |
407 | 402 | ||
408 | #else | 403 | #else |
409 | delete mKOListViewWhatsThis; | 404 | delete mKOListViewWhatsThis; |
410 | #endif | 405 | #endif |
411 | } | 406 | } |
412 | 407 | ||
413 | void KOListView::catChanged( Incidence* inc) | 408 | void KOListView::catChanged( Incidence* inc) |
414 | { | 409 | { |
415 | KOListViewItem* item = getItemForEvent(inc); | 410 | KOListViewItem* item = getItemForEvent(inc); |
416 | if (item) { | 411 | if (item) { |
417 | ListItemVisitor v(item, mStartDate ); | 412 | ListItemVisitor v(item, mStartDate ); |
418 | inc->accept(v); | 413 | inc->accept(v); |
419 | } | 414 | } |
420 | } | 415 | } |
421 | QString KOListView::getWhatsThisText(QPoint p) | 416 | QString KOListView::getWhatsThisText(QPoint p) |
422 | { | 417 | { |
423 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); | 418 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); |
424 | if ( item ) | 419 | if ( item ) |
425 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), | 420 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), |
426 | KOPrefs::instance()->mWTshowDetails, | 421 | KOPrefs::instance()->mWTshowDetails, |
427 | KOPrefs::instance()->mWTshowCreated, | 422 | KOPrefs::instance()->mWTshowCreated, |
428 | KOPrefs::instance()->mWTshowChanged); | 423 | KOPrefs::instance()->mWTshowChanged); |
429 | return i18n("That is the list view" ); | 424 | return i18n("That is the list view" ); |
430 | 425 | ||
431 | } | 426 | } |
432 | 427 | ||
433 | void KOListView::setCalendar( int c ) | 428 | void KOListView::setCalendar( int c ) |
434 | { | 429 | { |
435 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), | 430 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), |
436 | i18n("This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!").arg( KOPrefs::instance()->calName( c ) ), | 431 | i18n("This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!").arg( KOPrefs::instance()->calName( c ) ), |
437 | i18n("Continue"), i18n("Cancel"), 0, | 432 | i18n("Continue"), i18n("Cancel"), 0, |
438 | 0, 1 ); | 433 | 0, 1 ); |
439 | if ( result != 0 ) { | 434 | if ( result != 0 ) { |
440 | return; | 435 | return; |
441 | } | 436 | } |
442 | 437 | ||
443 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 438 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
444 | int icount = delSel.count(); | 439 | int icount = delSel.count(); |
445 | if ( icount ) { | 440 | if ( icount ) { |
446 | Incidence *incidence = delSel.first(); | 441 | Incidence *incidence = delSel.first(); |
447 | while ( incidence ) { | 442 | while ( incidence ) { |
448 | incidence->setCalID( c ); | 443 | incidence->setCalID( c ); |
449 | KOListViewItem * item = getItemForEvent( incidence ); | 444 | KOListViewItem * item = getItemForEvent( incidence ); |
450 | if ( item ) { | 445 | if ( item ) { |
451 | ListItemVisitor v(item, mStartDate ); | 446 | ListItemVisitor v(item, mStartDate ); |
452 | incidence->accept(v); | 447 | incidence->accept(v); |
453 | } | 448 | } |
454 | incidence = delSel.next(); | 449 | incidence = delSel.next(); |
455 | } | 450 | } |
456 | } | 451 | } |
457 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 452 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
458 | KopiCalendarFile * cal = calendars.first(); | 453 | KopiCalendarFile * cal = calendars.first(); |
459 | while ( cal ) { | 454 | while ( cal ) { |
460 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); | 455 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); |
461 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); | 456 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); |
462 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); | 457 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); |
463 | if ( cal->isStandard ) | 458 | if ( cal->isStandard ) |
464 | mCalendar->setDefaultCalendar( cal->mCalNumber ); | 459 | mCalendar->setDefaultCalendar( cal->mCalNumber ); |
465 | cal = calendars.next(); | 460 | cal = calendars.next(); |
466 | } | 461 | } |
467 | mCalendar->setSyncEventsReadOnly(); | 462 | mCalendar->setSyncEventsReadOnly(); |
468 | mCalendar->reInitAlarmSettings(); | 463 | mCalendar->reInitAlarmSettings(); |
469 | 464 | ||
470 | } | 465 | } |
471 | void KOListView::populateCalPopup() | 466 | void KOListView::populateCalPopup() |
472 | { | 467 | { |
473 | mCalPopup->clear(); | 468 | mCalPopup->clear(); |
474 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | 469 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); |
475 | while ( kkf ) { | 470 | while ( kkf ) { |
476 | int index = mCalPopup->insertItem( kkf->mName+"...", kkf->mCalNumber); | 471 | int index = mCalPopup->insertItem( kkf->mName+"...", kkf->mCalNumber); |
477 | if ( kkf->mErrorOnLoad || kkf->isReadOnly ) | 472 | if ( kkf->mErrorOnLoad || kkf->isReadOnly ) |
478 | mCalPopup->setItemEnabled( index, false ); | 473 | mCalPopup->setItemEnabled( index, false ); |
479 | kkf = KOPrefs::instance()->mCalendars.next(); | 474 | kkf = KOPrefs::instance()->mCalendars.next(); |
480 | } | 475 | } |
481 | } | 476 | } |
482 | void KOListView::updateList() | 477 | void KOListView::updateList() |
483 | { | 478 | { |
484 | // qDebug(" KOListView::updateList() "); | 479 | // qDebug(" KOListView::updateList() "); |
485 | 480 | ||
486 | } | 481 | } |
487 | 482 | ||
488 | void KOListView::clearList() | 483 | void KOListView::clearList() |
489 | { | 484 | { |
490 | clear (); | 485 | clear (); |
491 | } | 486 | } |
492 | 487 | ||
493 | void KOListView::setCat() | 488 | void KOListView::setCat() |
494 | { | 489 | { |
495 | 490 | ||
496 | bool set = true; | 491 | bool set = true; |
497 | int result = KMessageBox::warningYesNoCancel(this, | 492 | int result = KMessageBox::warningYesNoCancel(this, |
498 | i18n("Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?"), | 493 | i18n("Do you want to <b>add</b> categories to the selected items or <b>reset</b> the list (i.e. remove current categories)?"), |
499 | i18n("Set categories"), | 494 | i18n("Set categories"), |
500 | i18n("Add"), | 495 | i18n("Add"), |
501 | i18n("Reset")); | 496 | i18n("Reset")); |
502 | if (result == KMessageBox::Cancel) return; | 497 | if (result == KMessageBox::Cancel) return; |
503 | if (result == KMessageBox::Yes) set = false; | 498 | if (result == KMessageBox::Yes) set = false; |
504 | setCategories( set ); | 499 | setCategories( set ); |
505 | } | 500 | } |
506 | 501 | ||
507 | void KOListView::setAlarm() | 502 | void KOListView::setAlarm() |
508 | { | 503 | { |
509 | KOAlarmPrefs kap( this); | 504 | KOAlarmPrefs kap( this); |
510 | if ( !kap.exec() ) | 505 | if ( !kap.exec() ) |
511 | return; | 506 | return; |
512 | QPtrList<Incidence> delSel = getSelectedIncidences( true, true, false, true ); // no journals, only due todos | 507 | QPtrList<Incidence> delSel = getSelectedIncidences( true, true, false, true ); // no journals, only due todos |
513 | Incidence* inc = delSel.first(); | 508 | Incidence* inc = delSel.first(); |
514 | int count = 0; | 509 | int count = 0; |
515 | while ( inc ) { | 510 | while ( inc ) { |
516 | ++count; | 511 | ++count; |
517 | if (kap.mAlarmButton->isChecked()) { | 512 | if (kap.mAlarmButton->isChecked()) { |
518 | if (inc->alarms().count() == 0) | 513 | if (inc->alarms().count() == 0) |
519 | inc->newAlarm(); | 514 | inc->newAlarm(); |
520 | Alarm *alarm = inc->alarms().first(); | 515 | Alarm *alarm = inc->alarms().first(); |
521 | alarm->setEnabled(true); | 516 | alarm->setEnabled(true); |
522 | int j = kap.mAlarmTimeEdit->value()* -60; | 517 | int j = kap.mAlarmTimeEdit->value()* -60; |
523 | if (kap.mAlarmIncrCombo->currentItem() == 1) | 518 | if (kap.mAlarmIncrCombo->currentItem() == 1) |
524 | j = j * 60; | 519 | j = j * 60; |
525 | else if (kap.mAlarmIncrCombo->currentItem() == 2) | 520 | else if (kap.mAlarmIncrCombo->currentItem() == 2) |
526 | j = j * (60 * 24); | 521 | j = j * (60 * 24); |
527 | alarm->setStartOffset( j ); | 522 | alarm->setStartOffset( j ); |
528 | 523 | ||
529 | if (!kap.mAlarmProgram.isEmpty() && kap.mAlarmProgramButton->isOn()) { | 524 | if (!kap.mAlarmProgram.isEmpty() && kap.mAlarmProgramButton->isOn()) { |
530 | alarm->setProcedureAlarm(kap.mAlarmProgram); | 525 | alarm->setProcedureAlarm(kap.mAlarmProgram); |
531 | } | 526 | } |
532 | else if (!kap.mAlarmSound.isEmpty() && kap.mAlarmSoundButton->isOn()) | 527 | else if (!kap.mAlarmSound.isEmpty() && kap.mAlarmSoundButton->isOn()) |
533 | alarm->setAudioAlarm(kap.mAlarmSound); | 528 | alarm->setAudioAlarm(kap.mAlarmSound); |
534 | else | 529 | else |
535 | alarm->setType(Alarm::Invalid); | 530 | alarm->setType(Alarm::Invalid); |
536 | } else { | 531 | } else { |
537 | QPtrList<Alarm> alarms = inc->alarms(); | 532 | QPtrList<Alarm> alarms = inc->alarms(); |
538 | Alarm *alarm; | 533 | Alarm *alarm; |
539 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { | 534 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { |
540 | alarm->setEnabled(false); | 535 | alarm->setEnabled(false); |
541 | alarm->setType(Alarm::Invalid); | 536 | alarm->setType(Alarm::Invalid); |
542 | } | 537 | } |
543 | } | 538 | } |
544 | KOListViewItem* item = getItemForEvent(inc); | 539 | KOListViewItem* item = getItemForEvent(inc); |
545 | if (item) { | 540 | if (item) { |
546 | ListItemVisitor v(item, mStartDate ); | 541 | ListItemVisitor v(item, mStartDate ); |
547 | inc->accept(v); | 542 | inc->accept(v); |
548 | } | 543 | } |
549 | inc = delSel.next(); | 544 | inc = delSel.next(); |
550 | } | 545 | } |
551 | topLevelWidget()->setCaption( i18n("Changed alarm for %1 items").arg( count ) ); | 546 | topLevelWidget()->setCaption( i18n("Changed alarm for %1 items").arg( count ) ); |
552 | qDebug("KO: Set alarm for %d items", count); | 547 | qDebug("KO: Set alarm for %d items", count); |
553 | calendar()->reInitAlarmSettings(); | 548 | calendar()->reInitAlarmSettings(); |
554 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 549 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
555 | } | 550 | } |
556 | void KOListView::setCategories( bool removeOld ) | 551 | void KOListView::setCategories( bool removeOld ) |
557 | { | 552 | { |
558 | 553 | ||
559 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); | 554 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); |
560 | csd->setColorEnabled(); | 555 | csd->setColorEnabled(); |
561 | if (! csd->exec()) { | 556 | if (! csd->exec()) { |
562 | delete csd; | 557 | delete csd; |
563 | return; | 558 | return; |
564 | } | 559 | } |
565 | QStringList catList = csd->selectedCategories(); | 560 | QStringList catList = csd->selectedCategories(); |
566 | delete csd; | 561 | delete csd; |
567 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; | 562 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; |
568 | Incidence* inc = delSel.first(); | 563 | Incidence* inc = delSel.first(); |
569 | while ( inc ) { | 564 | while ( inc ) { |
570 | if ( removeOld ) { | 565 | if ( removeOld ) { |
571 | inc->setCategories( catList, false ); | 566 | inc->setCategories( catList, false ); |
572 | } else { | 567 | } else { |
573 | inc->addCategories( catList, false ); | 568 | inc->addCategories( catList, false ); |
574 | } | 569 | } |
575 | KOListViewItem* item = getItemForEvent(inc); | 570 | KOListViewItem* item = getItemForEvent(inc); |
576 | if (item) { | 571 | if (item) { |
577 | ListItemVisitor v(item, mStartDate ); | 572 | ListItemVisitor v(item, mStartDate ); |
578 | inc->accept(v); | 573 | inc->accept(v); |
579 | } | 574 | } |
580 | inc = delSel.next(); | 575 | inc = delSel.next(); |
581 | } | 576 | } |
582 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 577 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
583 | } | 578 | } |
584 | 579 | ||
585 | void KOListView::beamSelected() | 580 | void KOListView::beamSelected() |
586 | { | 581 | { |
587 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 582 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
588 | if ( delSel.count() ) | 583 | if ( delSel.count() ) |
589 | emit beamIncidenceList( delSel ); | 584 | emit beamIncidenceList( delSel ); |
590 | } | 585 | } |
591 | 586 | ||
592 | void KOListView::saveDescriptionToFile() | 587 | void KOListView::saveDescriptionToFile() |
593 | { | 588 | { |
594 | 589 | ||
595 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), | 590 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), |
596 | i18n("This saves the text/details of selected\nJournals and Events/Todos\nto a text file."), | 591 | i18n("This saves the text/details of selected\nJournals and Events/Todos\nto a text file."), |
597 | i18n("Continue"), i18n("Cancel"), 0, | 592 | i18n("Continue"), i18n("Cancel"), 0, |
598 | 0, 1 ); | 593 | 0, 1 ); |
599 | if ( result != 0 ) { | 594 | if ( result != 0 ) { |
600 | return; | 595 | return; |
601 | } | 596 | } |
602 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 597 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
603 | int icount = delSel.count(); | 598 | int icount = delSel.count(); |
604 | if ( icount ) { | 599 | if ( icount ) { |
605 | QString fn = KOPrefs::instance()->mLastSaveFile; | 600 | QString fn = KOPrefs::instance()->mLastSaveFile; |
606 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); | 601 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); |
607 | 602 | ||
608 | if ( fn == "" ) | 603 | if ( fn == "" ) |
609 | return; | 604 | return; |
610 | QFileInfo info; | 605 | QFileInfo info; |
611 | info.setFile( fn ); | 606 | info.setFile( fn ); |
612 | QString mes; | 607 | QString mes; |
613 | bool createbup = true; | 608 | bool createbup = true; |
614 | if ( info. exists() ) { | 609 | if ( info. exists() ) { |
615 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 610 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
616 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 611 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
617 | i18n("Overwrite!"), i18n("Cancel"), 0, | 612 | i18n("Overwrite!"), i18n("Cancel"), 0, |
618 | 0, 1 ); | 613 | 0, 1 ); |
619 | if ( result != 0 ) { | 614 | if ( result != 0 ) { |
620 | createbup = false; | 615 | createbup = false; |
621 | } | 616 | } |
622 | } | 617 | } |
623 | if ( createbup ) { | 618 | if ( createbup ) { |
624 | QString text = i18n("KO/Pi Description/Journal save file.\nSave date: ") + | 619 | QString text = i18n("KO/Pi Description/Journal save file.\nSave date: ") + |
625 | KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(), false); | 620 | KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(), false); |
626 | Incidence *incidence = delSel.first(); | 621 | Incidence *incidence = delSel.first(); |
627 | icount = 0; | 622 | icount = 0; |
628 | while ( incidence ) { | 623 | while ( incidence ) { |
629 | if ( incidence->typeID() == journalID ) { | 624 | if ( incidence->typeID() == journalID ) { |
630 | text += "\n************************************\n"; | 625 | text += "\n************************************\n"; |
631 | if ( !incidence->summary().isEmpty() ) | 626 | if ( !incidence->summary().isEmpty() ) |
632 | text += i18n("Journal: %1 from ").arg( incidence->summary() ) +incidence->dtStartDateStr( false ); | 627 | text += i18n("Journal: %1 from ").arg( incidence->summary() ) +incidence->dtStartDateStr( false ); |
633 | else | 628 | else |
634 | text += i18n("Journal from: ") +incidence->dtStartDateStr( false ); | 629 | text += i18n("Journal from: ") +incidence->dtStartDateStr( false ); |
635 | if ( !incidence->location().isEmpty() ) | 630 | if ( !incidence->location().isEmpty() ) |
636 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; | 631 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; |
637 | text +="\n" + i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); | 632 | text +="\n" + i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); |
638 | text +="\n" + i18n("Description: ") + "\n"+ incidence->description(); | 633 | text +="\n" + i18n("Description: ") + "\n"+ incidence->description(); |
639 | ++icount; | 634 | ++icount; |
640 | 635 | ||
641 | } else { | 636 | } else { |
642 | if ( !incidence->description().isEmpty() ) { | 637 | if ( !incidence->description().isEmpty() ) { |
643 | text += "\n************************************\n"; | 638 | text += "\n************************************\n"; |
644 | if ( incidence->typeID() == todoID ) | 639 | if ( incidence->typeID() == todoID ) |
645 | text += i18n("To-Do: "); | 640 | text += i18n("To-Do: "); |
646 | text += incidence->summary(); | 641 | text += incidence->summary(); |
647 | if ( !incidence->location().isEmpty() ) | 642 | if ( !incidence->location().isEmpty() ) |
648 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; | 643 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; |
649 | if ( incidence->hasStartDate() ) | 644 | if ( incidence->hasStartDate() ) |
650 | text +="\n"+ i18n("Start Date: ") + incidence->dtStartStr( false ); | 645 | text +="\n"+ i18n("Start Date: ") + incidence->dtStartStr( false ); |
651 | text +="\n"+ i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); | 646 | text +="\n"+ i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); |
652 | text += "\n" + i18n("Description: ") + "\n" + incidence->description(); | 647 | text += "\n" + i18n("Description: ") + "\n" + incidence->description(); |
653 | ++icount; | 648 | ++icount; |
654 | 649 | ||
655 | } | 650 | } |
656 | } | 651 | } |
657 | incidence = delSel.next(); | 652 | incidence = delSel.next(); |
658 | } | 653 | } |
659 | QFile file( fn ); | 654 | QFile file( fn ); |
660 | if (!file.open( IO_WriteOnly ) ) { | 655 | if (!file.open( IO_WriteOnly ) ) { |
661 | topLevelWidget()->setCaption(i18n("File open error - nothing saved!") ); | 656 | topLevelWidget()->setCaption(i18n("File open error - nothing saved!") ); |
662 | return; | 657 | return; |
663 | } | 658 | } |
664 | QTextStream ts( &file ); | 659 | QTextStream ts( &file ); |
665 | ts << text; | 660 | ts << text; |
666 | file.close(); | 661 | file.close(); |
667 | //qDebug("%s ", text.latin1()); | 662 | //qDebug("%s ", text.latin1()); |
668 | mes = i18n("KO/Pi:Saved %1 descriptions/journals").arg(icount ); | 663 | mes = i18n("KO/Pi:Saved %1 descriptions/journals").arg(icount ); |
669 | KOPrefs::instance()->mLastSaveFile = fn; | 664 | KOPrefs::instance()->mLastSaveFile = fn; |
670 | topLevelWidget()->setCaption(mes); | 665 | topLevelWidget()->setCaption(mes); |
671 | } | 666 | } |
672 | } | 667 | } |
673 | } | 668 | } |
674 | void KOListView::saveToFileVCS() | 669 | void KOListView::saveToFileVCS() |
675 | { | 670 | { |
676 | writeToFile( false ); | 671 | writeToFile( false ); |
677 | } | 672 | } |
678 | void KOListView::saveToFile() | 673 | void KOListView::saveToFile() |
679 | { | 674 | { |
680 | writeToFile( true ); | 675 | writeToFile( true ); |
681 | } | 676 | } |
682 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos ) | 677 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos ) |
683 | { | 678 | { |
684 | QPtrList<Incidence> delSel ; | 679 | QPtrList<Incidence> delSel ; |
685 | bool addSubTodos = false; | 680 | bool addSubTodos = false; |
686 | bool askSubTodos = true; | 681 | bool askSubTodos = true; |
687 | QListViewItem *item = mListView->firstChild (); | 682 | QListViewItem *item = mListView->firstChild (); |
688 | while ( item ) { | 683 | while ( item ) { |
689 | if ( item->isSelected() ) { | 684 | if ( item->isSelected() ) { |
690 | Incidence* inc = ((KOListViewItem *)item)->data(); | 685 | Incidence* inc = ((KOListViewItem *)item)->data(); |
691 | if ( ( addSubTodos && delSel.findRef( inc ) == -1) || !addSubTodos ) { | 686 | if ( ( addSubTodos && delSel.findRef( inc ) == -1) || !addSubTodos ) { |
692 | if ( (inc->typeID() == todoID && includeTodos) || | 687 | if ( (inc->typeID() == todoID && includeTodos) || |
693 | (inc->typeID() == eventID && includeEvents) || | 688 | (inc->typeID() == eventID && includeEvents) || |
694 | (inc->typeID() == journalID && includeJournals) ) { | 689 | (inc->typeID() == journalID && includeJournals) ) { |
695 | if ( inc->typeID() == todoID && onlyDueTodos ) { | 690 | if ( inc->typeID() == todoID && onlyDueTodos ) { |
696 | if ( ((Todo*)inc)->hasDueDate() ) | 691 | if ( ((Todo*)inc)->hasDueDate() ) |
697 | delSel.append( inc ); | 692 | delSel.append( inc ); |
698 | } else | 693 | } else |
699 | delSel.append( inc ); | 694 | delSel.append( inc ); |
700 | 695 | ||
701 | } | 696 | } |
702 | } | 697 | } |
703 | if ( inc->typeID() == todoID ) { | 698 | if ( inc->typeID() == todoID ) { |
704 | Todo * todo = (Todo*) inc; | 699 | Todo * todo = (Todo*) inc; |
705 | if ( todo->relations().count() ) { | 700 | if ( todo->relations().count() ) { |
706 | if ( askSubTodos ) { | 701 | if ( askSubTodos ) { |
707 | int result = KMessageBox::warningYesNoCancel(this, | 702 | int result = KMessageBox::warningYesNoCancel(this, |
708 | i18n("One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?"), | 703 | i18n("One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?"), |
709 | i18n("Todo has subtodos"), | 704 | i18n("Todo has subtodos"), |
710 | i18n("Yes"), | 705 | i18n("Yes"), |
711 | i18n("No")); | 706 | i18n("No")); |
712 | if ( result == KMessageBox::Cancel ) { | 707 | if ( result == KMessageBox::Cancel ) { |
713 | delSel.clear(); | 708 | delSel.clear(); |
714 | return delSel; | 709 | return delSel; |
715 | } | 710 | } |
716 | if (result == KMessageBox::Yes) | 711 | if (result == KMessageBox::Yes) |
717 | addSubTodos = true; | 712 | addSubTodos = true; |
718 | askSubTodos = false; | 713 | askSubTodos = false; |
719 | } | 714 | } |
720 | if ( addSubTodos ) { | 715 | if ( addSubTodos ) { |
721 | QPtrList<Incidence> tempSel ; | 716 | QPtrList<Incidence> tempSel ; |
722 | inc->addRelationsToList( &tempSel ); | 717 | inc->addRelationsToList( &tempSel ); |
723 | Incidence* tempinc = tempSel.first(); | 718 | Incidence* tempinc = tempSel.first(); |
724 | while ( tempinc ) { | 719 | while ( tempinc ) { |
725 | if ( delSel.findRef( tempinc ) == -1 ) { | 720 | if ( delSel.findRef( tempinc ) == -1 ) { |
726 | if ( tempinc->typeID() == todoID && onlyDueTodos ) { | 721 | if ( tempinc->typeID() == todoID && onlyDueTodos ) { |
727 | if ( ((Todo*)tempinc)->hasDueDate() ) | 722 | if ( ((Todo*)tempinc)->hasDueDate() ) |
728 | delSel.append( tempinc ); | 723 | delSel.append( tempinc ); |
729 | } else | 724 | } else |
730 | delSel.append( tempinc ); | 725 | delSel.append( tempinc ); |
731 | } | 726 | } |
732 | tempinc = tempSel.next(); | 727 | tempinc = tempSel.next(); |
733 | } | 728 | } |
734 | } | 729 | } |
735 | } | 730 | } |
736 | } | 731 | } |
737 | } | 732 | } |
738 | item = item->nextSibling(); | 733 | item = item->nextSibling(); |
739 | } | 734 | } |
740 | return delSel; | 735 | return delSel; |
741 | } | 736 | } |
742 | 737 | ||
743 | void KOListView::writeToFile( bool iCal ) | 738 | void KOListView::writeToFile( bool iCal ) |
744 | { | 739 | { |
745 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; | 740 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; |
746 | if ( !iCal ) { | 741 | if ( !iCal ) { |
747 | bool journal = false; | 742 | bool journal = false; |
748 | Incidence *incidence = delSel.first(); | 743 | Incidence *incidence = delSel.first(); |
749 | while ( incidence ) { | 744 | while ( incidence ) { |
750 | if ( incidence->typeID() == journalID ) { | 745 | if ( incidence->typeID() == journalID ) { |
751 | journal = true; | 746 | journal = true; |
752 | break; | 747 | break; |
753 | } | 748 | } |
754 | incidence = delSel.next(); | 749 | incidence = delSel.next(); |
755 | } | 750 | } |
756 | if ( journal ) { | 751 | if ( journal ) { |
757 | int result = KMessageBox::warningContinueCancel(this, | 752 | int result = KMessageBox::warningContinueCancel(this, |
758 | i18n("The journal entries can not be\nexported to a vCalendar file."), | 753 | i18n("The journal entries can not be\nexported to a vCalendar file."), |
759 | i18n("Data Loss Warning"),i18n("Proceed"),i18n("Cancel"), | 754 | i18n("Data Loss Warning"),i18n("Proceed"),i18n("Cancel"), |
760 | true); | 755 | true); |
761 | if (result != KMessageBox::Continue) return; | 756 | if (result != KMessageBox::Continue) return; |
762 | } | 757 | } |
763 | } | 758 | } |
764 | if ( delSel.count() ) { | 759 | if ( delSel.count() ) { |
765 | QString fn = KOPrefs::instance()->mLastSaveFile; | 760 | QString fn = KOPrefs::instance()->mLastSaveFile; |
766 | QString extension; | 761 | QString extension; |
767 | if ( iCal ) { | 762 | if ( iCal ) { |
768 | if ( fn.right( 4 ).lower() == ".vcs" ) { | 763 | if ( fn.right( 4 ).lower() == ".vcs" ) { |
769 | fn = fn.left( fn.length() -3) + "ics"; | 764 | fn = fn.left( fn.length() -3) + "ics"; |
770 | } | 765 | } |
771 | } else { | 766 | } else { |
772 | if ( fn.right( 4 ).lower() == ".ics" ) { | 767 | if ( fn.right( 4 ).lower() == ".ics" ) { |
773 | fn = fn.left( fn.length() -3) + "vcs"; | 768 | fn = fn.left( fn.length() -3) + "vcs"; |
774 | } | 769 | } |
775 | } | 770 | } |
776 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); | 771 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); |
777 | 772 | ||
778 | if ( fn == "" ) | 773 | if ( fn == "" ) |
779 | return; | 774 | return; |
780 | QFileInfo info; | 775 | QFileInfo info; |
781 | info.setFile( fn ); | 776 | info.setFile( fn ); |
782 | QString mes; | 777 | QString mes; |
783 | bool createbup = true; | 778 | bool createbup = true; |
784 | if ( info. exists() ) { | 779 | if ( info. exists() ) { |
785 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 780 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
786 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 781 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
787 | i18n("Overwrite!"), i18n("Cancel"), 0, | 782 | i18n("Overwrite!"), i18n("Cancel"), 0, |
788 | 0, 1 ); | 783 | 0, 1 ); |
789 | if ( result != 0 ) { | 784 | if ( result != 0 ) { |
790 | createbup = false; | 785 | createbup = false; |
791 | } | 786 | } |
792 | } | 787 | } |
793 | if ( createbup ) { | 788 | if ( createbup ) { |
794 | CalendarLocal cal; | 789 | CalendarLocal cal; |
795 | cal.setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 790 | cal.setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
796 | Incidence *incidence = delSel.first(); | 791 | Incidence *incidence = delSel.first(); |
797 | while ( incidence ) { | 792 | while ( incidence ) { |
798 | cal.addIncidence( incidence->clone() ); | 793 | cal.addIncidence( incidence->clone() ); |
799 | incidence = delSel.next(); | 794 | incidence = delSel.next(); |
800 | } | 795 | } |
801 | if ( iCal ) { | 796 | if ( iCal ) { |
802 | ICalFormat format; | 797 | ICalFormat format; |
803 | format.save( &cal, fn ); | 798 | format.save( &cal, fn ); |
804 | } else { | 799 | } else { |
805 | 800 | ||
806 | VCalFormat format; | 801 | VCalFormat format; |
807 | format.save( &cal, fn ); | 802 | format.save( &cal, fn ); |
808 | } | 803 | } |
809 | mes = i18n("KO/Pi:Saved %1").arg(fn ); | 804 | mes = i18n("KO/Pi:Saved %1").arg(fn ); |
810 | KOPrefs::instance()->mLastSaveFile = fn; | 805 | KOPrefs::instance()->mLastSaveFile = fn; |
811 | topLevelWidget()->setCaption(mes); | 806 | topLevelWidget()->setCaption(mes); |
812 | } | 807 | } |
813 | } | 808 | } |
814 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 809 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
815 | } | 810 | } |
816 | void KOListView::hideAll() | 811 | void KOListView::hideAll() |
817 | { | 812 | { |
818 | QPtrList<QListViewItem> delSel ; | 813 | QPtrList<QListViewItem> delSel ; |
819 | QListViewItem *item = mListView->firstChild (); | 814 | QListViewItem *item = mListView->firstChild (); |
820 | while ( item ) { | 815 | while ( item ) { |
821 | if ( item->isSelected() ) { | 816 | if ( item->isSelected() ) { |
822 | delSel.append(item); | 817 | delSel.append(item); |
823 | } | 818 | } |
824 | item = item->nextSibling(); | 819 | item = item->nextSibling(); |
825 | } | 820 | } |
826 | item = delSel.first() ; | 821 | item = delSel.first() ; |
827 | while ( item ) { | 822 | while ( item ) { |
828 | QListViewItem * del = item; | 823 | QListViewItem * del = item; |
829 | item = delSel.next(); | 824 | item = delSel.next(); |
830 | delete del; | 825 | delete del; |
831 | } | 826 | } |
832 | } | 827 | } |
833 | void KOListView::printList() | 828 | void KOListView::printList() |
834 | { | 829 | { |
835 | mListView->printList(); | 830 | mListView->printList(); |
836 | } | 831 | } |
837 | void KOListView::deleteAll() | 832 | void KOListView::deleteAll() |
838 | { | 833 | { |
839 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;; | 834 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed;; |
840 | if ( delSel.count() ) { | 835 | if ( delSel.count() ) { |
841 | int icount = delSel.count(); | 836 | int icount = delSel.count(); |
842 | Incidence *incidence = delSel.first(); | 837 | Incidence *incidence = delSel.first(); |
843 | Incidence *toDelete; | 838 | Incidence *toDelete; |
844 | KOPrefs *p = KOPrefs::instance(); | 839 | KOPrefs *p = KOPrefs::instance(); |
845 | bool confirm = p->mConfirm; | 840 | bool confirm = p->mConfirm; |
846 | QString mess; | 841 | QString mess; |
847 | mess = mess.sprintf( i18n("You have %d item(s) selected.\n"), icount ); | 842 | mess = mess.sprintf( i18n("You have %d item(s) selected.\n"), icount ); |
848 | if ( KMessageBox::Continue == KMessageBox::warningContinueCancel(this, mess + i18n("All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n"), i18n("KO/Pi Confirmation"),i18n("Delete")) ) { | 843 | if ( KMessageBox::Continue == KMessageBox::warningContinueCancel(this, mess + i18n("All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n"), i18n("KO/Pi Confirmation"),i18n("Delete")) ) { |
849 | p->mConfirm = false; | 844 | p->mConfirm = false; |
850 | int delCounter = 0; | 845 | int delCounter = 0; |
851 | QDialog dia ( this, "p-dialog", true ); | 846 | QDialog dia ( this, "p-dialog", true ); |
852 | QLabel lab (i18n("Close dialog to abort deletion!"), &dia ); | 847 | QLabel lab (i18n("Close dialog to abort deletion!"), &dia ); |
853 | QVBoxLayout lay( &dia ); | 848 | QVBoxLayout lay( &dia ); |
854 | lay.setMargin(7); | 849 | lay.setMargin(7); |
855 | lay.setSpacing(7); | 850 | lay.setSpacing(7); |
856 | lay.addWidget( &lab); | 851 | lay.addWidget( &lab); |
857 | QProgressBar bar( icount, &dia ); | 852 | QProgressBar bar( icount, &dia ); |
858 | lay.addWidget( &bar); | 853 | lay.addWidget( &bar); |
859 | int w = 220; | 854 | int w = 220; |
860 | int h = 50; | 855 | int h = 50; |
861 | int dw = QApplication::desktop()->width(); | 856 | int dw = QApplication::desktop()->width(); |
862 | int dh = QApplication::desktop()->height(); | 857 | int dh = QApplication::desktop()->height(); |
863 | dia.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 858 | dia.setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
864 | //dia.resize( 240,50 ); | 859 | //dia.resize( 240,50 ); |
865 | dia.show(); | 860 | dia.show(); |
866 | KOPrefs::instance()->mGlobalUpdateDisabled = true; | 861 | KOPrefs::instance()->mGlobalUpdateDisabled = true; |
867 | while ( incidence ) { | 862 | while ( incidence ) { |
868 | bar.setProgress( delCounter ); | 863 | bar.setProgress( delCounter ); |
869 | mess = mess.sprintf( i18n("Deleting item %d ..."), ++delCounter ); | 864 | mess = mess.sprintf( i18n("Deleting item %d ..."), ++delCounter ); |
870 | dia.setCaption( mess ); | 865 | dia.setCaption( mess ); |
871 | qApp->processEvents(); | 866 | qApp->processEvents(); |
872 | toDelete = (incidence); | 867 | toDelete = (incidence); |
873 | incidence = delSel.next(); | 868 | incidence = delSel.next(); |
874 | emit deleteIncidenceSignal(toDelete ); | 869 | emit deleteIncidenceSignal(toDelete ); |
875 | if ( dia.result() != 0 ) | 870 | if ( dia.result() != 0 ) |
876 | break; | 871 | break; |
877 | 872 | ||
878 | } | 873 | } |
879 | KOPrefs::instance()->mGlobalUpdateDisabled = false; | 874 | KOPrefs::instance()->mGlobalUpdateDisabled = false; |
880 | emit deleteIncidenceSignal( 0 ); | 875 | emit deleteIncidenceSignal( 0 ); |
881 | mess = mess.sprintf( i18n("%d items remaining in list."), count() ); | 876 | mess = mess.sprintf( i18n("%d items remaining in list."), count() ); |
882 | topLevelWidget ()->setCaption( mess ); | 877 | topLevelWidget ()->setCaption( mess ); |
883 | p->mConfirm = confirm; | 878 | p->mConfirm = confirm; |
884 | } | 879 | } |
885 | } | 880 | } |
886 | 881 | ||
887 | 882 | ||
888 | } | 883 | } |
889 | int KOListView::maxDatesHint() | 884 | int KOListView::maxDatesHint() |
890 | { | 885 | { |
891 | return 0; | 886 | return 0; |
892 | } | 887 | } |
893 | 888 | ||
894 | int KOListView::currentDateCount() | 889 | int KOListView::currentDateCount() |
895 | { | 890 | { |
896 | return 0; | 891 | return 0; |
897 | } | 892 | } |
898 | 893 | ||
899 | QPtrList<Incidence> KOListView::selectedIncidences() | 894 | QPtrList<Incidence> KOListView::selectedIncidences() |
900 | { | 895 | { |
901 | QPtrList<Incidence> eventList; | 896 | QPtrList<Incidence> eventList; |
902 | QListViewItem *item = mListView->firstChild (); | 897 | QListViewItem *item = mListView->firstChild (); |
903 | while ( item ) { | 898 | while ( item ) { |
904 | if ( item->isSelected() ) { | 899 | if ( item->isSelected() ) { |
905 | eventList.append(((KOListViewItem *)item)->data()); | 900 | eventList.append(((KOListViewItem *)item)->data()); |
906 | } | 901 | } |
907 | 902 | ||
908 | item = item->nextSibling(); | 903 | item = item->nextSibling(); |
909 | } | 904 | } |
910 | 905 | ||
911 | // // QListViewItem *item = mListView->selectedItem(); | 906 | // // QListViewItem *item = mListView->selectedItem(); |
912 | //if (item) eventList.append(((KOListViewItem *)item)->data()); | 907 | //if (item) eventList.append(((KOListViewItem *)item)->data()); |
913 | 908 | ||
914 | return eventList; | 909 | return eventList; |
915 | } | 910 | } |
916 | 911 | ||
917 | DateList KOListView::selectedDates() | 912 | DateList KOListView::selectedDates() |
918 | { | 913 | { |
919 | DateList eventList; | 914 | DateList eventList; |
920 | return eventList; | 915 | return eventList; |
921 | } | 916 | } |
922 | 917 | ||
923 | void KOListView::showDates(bool show) | 918 | void KOListView::showDates(bool show) |
924 | { | 919 | { |
925 | // Shouldn't we set it to a value greater 0? When showDates is called with | 920 | // Shouldn't we set it to a value greater 0? When showDates is called with |
926 | // show == true at first, then the columnwidths are set to zero. | 921 | // show == true at first, then the columnwidths are set to zero. |
927 | static int oldColWidth1 = 0; | 922 | static int oldColWidth1 = 0; |
928 | static int oldColWidth3 = 0; | 923 | static int oldColWidth3 = 0; |
929 | 924 | ||
930 | if (!show) { | 925 | if (!show) { |
931 | oldColWidth1 = mListView->columnWidth(1); | 926 | oldColWidth1 = mListView->columnWidth(1); |
932 | oldColWidth3 = mListView->columnWidth(3); | 927 | oldColWidth3 = mListView->columnWidth(3); |
933 | mListView->setColumnWidth(1, 0); | 928 | mListView->setColumnWidth(1, 0); |
934 | mListView->setColumnWidth(3, 0); | 929 | mListView->setColumnWidth(3, 0); |
935 | } else { | 930 | } else { |
936 | mListView->setColumnWidth(1, oldColWidth1); | 931 | mListView->setColumnWidth(1, oldColWidth1); |
937 | mListView->setColumnWidth(3, oldColWidth3); | 932 | mListView->setColumnWidth(3, oldColWidth3); |
938 | } | 933 | } |
939 | mListView->repaint(); | 934 | mListView->repaint(); |
940 | } | 935 | } |
941 | 936 | ||
942 | void KOListView::printPreview(CalPrinter *calPrinter, const QDate &fd, | 937 | void KOListView::printPreview(CalPrinter *calPrinter, const QDate &fd, |
943 | const QDate &td) | 938 | const QDate &td) |
944 | { | 939 | { |
945 | #ifndef KORG_NOPRINTER | 940 | #ifndef KORG_NOPRINTER |
946 | calPrinter->preview(CalPrinter::Day, fd, td); | 941 | calPrinter->preview(CalPrinter::Day, fd, td); |
947 | #endif | 942 | #endif |
948 | } | 943 | } |
949 | 944 | ||
950 | void KOListView::showDates() | 945 | void KOListView::showDates() |
951 | { | 946 | { |
952 | showDates(true); | 947 | showDates(true); |
953 | } | 948 | } |
954 | 949 | ||
955 | void KOListView::hideDates() | 950 | void KOListView::hideDates() |
956 | { | 951 | { |
957 | showDates(false); | 952 | showDates(false); |
958 | } | 953 | } |
959 | 954 | ||
960 | void KOListView::resetFocus() | 955 | void KOListView::resetFocus() |
961 | { | 956 | { |
962 | topLevelWidget()->setActiveWindow(); | 957 | topLevelWidget()->setActiveWindow(); |
963 | topLevelWidget()->raise(); | 958 | topLevelWidget()->raise(); |
964 | mListView->setFocus(); | 959 | mListView->setFocus(); |
965 | } | 960 | } |
966 | void KOListView::updateView() | 961 | void KOListView::updateView() |
967 | { | 962 | { |
968 | mListView->setFocus(); | 963 | mListView->setFocus(); |
969 | if ( mListView->firstChild () ) { | 964 | if ( mListView->firstChild () ) { |
970 | mListView->setCurrentItem( mListView->firstChild () ); | 965 | mListView->setCurrentItem( mListView->firstChild () ); |
971 | } | 966 | } |
972 | processSelectionChange( mListView->firstChild () ); | 967 | processSelectionChange( mListView->firstChild () ); |
973 | } | 968 | } |
974 | void KOListView::updateConfig() | 969 | void KOListView::updateConfig() |
975 | { | 970 | { |
976 | 971 | ||
977 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); | 972 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); |
978 | updateView(); | 973 | updateView(); |
979 | 974 | ||
980 | } | 975 | } |
981 | void KOListView::setStartDate(const QDate &start) | 976 | void KOListView::setStartDate(const QDate &start) |
982 | { | 977 | { |
983 | mStartDate = start; | 978 | mStartDate = start; |
984 | } | 979 | } |
985 | 980 | ||
986 | void KOListView::showDates(const QDate &start, const QDate &end) | 981 | void KOListView::showDates(const QDate &start, const QDate &end) |
987 | { | 982 | { |
988 | clear(); | 983 | clear(); |
989 | mStartDate = start; | 984 | mStartDate = start; |
990 | QDate date = start; | 985 | QDate date = start; |
991 | while( date <= end ) { | 986 | while( date <= end ) { |
992 | addEvents(calendar()->events(date)); | 987 | addEvents(calendar()->events(date)); |
993 | addTodos(calendar()->todos(date)); | 988 | addTodos(calendar()->todos(date)); |
994 | addJournals( calendar()->journals4Date(date) ); | 989 | addJournals( calendar()->journals4Date(date) ); |
995 | date = date.addDays( 1 ); | 990 | date = date.addDays( 1 ); |
996 | } | 991 | } |
997 | //emit incidenceSelected( 0 ); | 992 | //emit incidenceSelected( 0 ); |
998 | updateView(); | 993 | updateView(); |
999 | 994 | ||
1000 | } | 995 | } |
1001 | 996 | ||
1002 | void KOListView::addEvents(QPtrList<Event> eventList) | 997 | void KOListView::addEvents(QPtrList<Event> eventList) |
1003 | { | 998 | { |
1004 | 999 | ||
1005 | Event *ev; | 1000 | Event *ev; |
1006 | for(ev = eventList.first(); ev; ev = eventList.next()) { | 1001 | for(ev = eventList.first(); ev; ev = eventList.next()) { |
1007 | addIncidence(ev); | 1002 | addIncidence(ev); |
1008 | } | 1003 | } |
1009 | if ( !mListView->currentItem() ){ | 1004 | if ( !mListView->currentItem() ){ |
1010 | updateView(); | 1005 | updateView(); |
1011 | } | 1006 | } |
1012 | } | 1007 | } |
1013 | 1008 | ||
1014 | void KOListView::addTodos(QPtrList<Todo> eventList) | 1009 | void KOListView::addTodos(QPtrList<Todo> eventList) |
1015 | { | 1010 | { |
1016 | Todo *ev; | 1011 | Todo *ev; |
1017 | for(ev = eventList.first(); ev; ev = eventList.next()) { | 1012 | for(ev = eventList.first(); ev; ev = eventList.next()) { |
1018 | addIncidence(ev); | 1013 | addIncidence(ev); |
1019 | } | 1014 | } |
1020 | if ( !mListView->currentItem() ){ | 1015 | if ( !mListView->currentItem() ){ |
1021 | updateView(); | 1016 | updateView(); |
1022 | } | 1017 | } |
1023 | } | 1018 | } |
1024 | void KOListView::addJournals(QPtrList<Journal> eventList) | 1019 | void KOListView::addJournals(QPtrList<Journal> eventList) |
1025 | { | 1020 | { |
1026 | Journal *ev; | 1021 | Journal *ev; |
1027 | for(ev = eventList.first(); ev; ev = eventList.next()) { | 1022 | for(ev = eventList.first(); ev; ev = eventList.next()) { |
1028 | addIncidence(ev); | 1023 | addIncidence(ev); |
1029 | } | 1024 | } |
1030 | if ( !mListView->currentItem() ){ | 1025 | if ( !mListView->currentItem() ){ |
1031 | updateView(); | 1026 | updateView(); |
1032 | } | 1027 | } |
1033 | } | 1028 | } |
1034 | 1029 | ||
1035 | void KOListView::showCompletedTodos() | 1030 | void KOListView::showCompletedTodos() |
1036 | { | 1031 | { |
1037 | mForceShowCompletedTodos = true; | 1032 | mForceShowCompletedTodos = true; |
1038 | } | 1033 | } |
1039 | void KOListView::addIncidence(Incidence *incidence) | 1034 | void KOListView::addIncidence(Incidence *incidence) |
1040 | { | 1035 | { |
1041 | if ( mUidDict.find( incidence->uid() ) ) return; | 1036 | if ( mUidDict.find( incidence->uid() ) ) return; |
1042 | 1037 | ||
1043 | // mListView->setFont ( KOPrefs::instance()->mListViewFont ); | 1038 | // mListView->setFont ( KOPrefs::instance()->mListViewFont ); |
1044 | if ( incidence->typeID() == todoID ) { | 1039 | if ( incidence->typeID() == todoID ) { |
1045 | if ( ! mForceShowCompletedTodos ) { | 1040 | if ( ! mForceShowCompletedTodos ) { |
1046 | if ( !KOPrefs::instance()->mShowCompletedTodo && ((Todo*)incidence)->isCompleted() ) | 1041 | if ( !KOPrefs::instance()->mShowCompletedTodo && ((Todo*)incidence)->isCompleted() ) |
1047 | return; | 1042 | return; |
1048 | } | 1043 | } |
1049 | } | 1044 | } |
1050 | mUidDict.insert( incidence->uid(), incidence ); | 1045 | mUidDict.insert( incidence->uid(), incidence ); |
1051 | KOListViewItem *item = new KOListViewItem( incidence, mListView ); | 1046 | KOListViewItem *item = new KOListViewItem( incidence, mListView ); |
1052 | ListItemVisitor v(item, mStartDate ); | 1047 | ListItemVisitor v(item, mStartDate ); |
1053 | if (incidence->accept(v)) { | 1048 | if (incidence->accept(v)) { |
1054 | return; | 1049 | return; |
1055 | } | 1050 | } |
1056 | else delete item; | 1051 | else delete item; |
1057 | } | 1052 | } |
1058 | 1053 | ||
1059 | void KOListView::showEvents(QPtrList<Event> eventList) | 1054 | void KOListView::showEvents(QPtrList<Event> eventList) |
1060 | { | 1055 | { |
1061 | clear(); | 1056 | clear(); |
1062 | 1057 | ||
1063 | addEvents(eventList); | 1058 | addEvents(eventList); |
1064 | 1059 | ||
1065 | // After new creation of list view no events are selected. | 1060 | // After new creation of list view no events are selected. |
1066 | emit incidenceSelected( 0 ); | 1061 | emit incidenceSelected( 0 ); |
1067 | } | 1062 | } |
1068 | int KOListView::count() | 1063 | int KOListView::count() |
1069 | { | 1064 | { |
1070 | return mListView->childCount(); | 1065 | return mListView->childCount(); |
1071 | } | 1066 | } |
1072 | 1067 | ||
1073 | void KOListView::changeEventDisplay(Event *event, int action) | 1068 | void KOListView::changeEventDisplay(Event *event, int action) |
1074 | { | 1069 | { |
1075 | KOListViewItem *item; | 1070 | KOListViewItem *item; |
1076 | 1071 | ||
1077 | switch(action) { | 1072 | switch(action) { |
1078 | case KOGlobals::EVENTADDED: | 1073 | case KOGlobals::EVENTADDED: |
1079 | addIncidence( event ); | 1074 | addIncidence( event ); |
1080 | break; | 1075 | break; |
1081 | case KOGlobals::EVENTEDITED: | 1076 | case KOGlobals::EVENTEDITED: |
1082 | item = getItemForEvent(event); | 1077 | item = getItemForEvent(event); |
1083 | if (item) { | 1078 | if (item) { |
1084 | ListItemVisitor v(item, mStartDate ); | 1079 | ListItemVisitor v(item, mStartDate ); |
1085 | ((Incidence*)event)->accept(v); | 1080 | ((Incidence*)event)->accept(v); |
1086 | } | 1081 | } |
1087 | break; | 1082 | break; |
1088 | case KOGlobals::EVENTDELETED: | 1083 | case KOGlobals::EVENTDELETED: |
1089 | item = getItemForEvent(event); | 1084 | item = getItemForEvent(event); |
1090 | if (item) { | 1085 | if (item) { |
1091 | mUidDict.remove( event->uid() ); | 1086 | mUidDict.remove( event->uid() ); |
1092 | delete item; | 1087 | delete item; |
1093 | } | 1088 | } |
1094 | break; | 1089 | break; |
1095 | default: | 1090 | default: |
1096 | ; | 1091 | ; |
1097 | } | 1092 | } |
1098 | } | 1093 | } |
1099 | 1094 | ||
1100 | KOListViewItem *KOListView::getItemForEvent(Incidence *event) | 1095 | KOListViewItem *KOListView::getItemForEvent(Incidence *event) |
1101 | { | 1096 | { |
1102 | KOListViewItem *item = (KOListViewItem *)mListView->firstChild(); | 1097 | KOListViewItem *item = (KOListViewItem *)mListView->firstChild(); |
1103 | while (item) { | 1098 | while (item) { |
1104 | if (item->data() == event) return item; | 1099 | if (item->data() == event) return item; |
1105 | item = (KOListViewItem *)item->nextSibling(); | 1100 | item = (KOListViewItem *)item->nextSibling(); |
1106 | } | 1101 | } |
1107 | return 0; | 1102 | return 0; |
1108 | } | 1103 | } |
1109 | 1104 | ||
1110 | void KOListView::defaultItemAction(QListViewItem *i) | 1105 | void KOListView::defaultItemAction(QListViewItem *i) |
1111 | { | 1106 | { |
1112 | KOListViewItem *item = static_cast<KOListViewItem *>( i ); | 1107 | KOListViewItem *item = static_cast<KOListViewItem *>( i ); |
1113 | if ( item ) defaultAction( item->data() ); | 1108 | if ( item ) defaultAction( item->data() ); |
1114 | 1109 | ||
1115 | } | 1110 | } |
1116 | 1111 | ||
1117 | void KOListView::popupMenu(QListViewItem *item,const QPoint &,int) | 1112 | void KOListView::popupMenu(QListViewItem *item,const QPoint &,int) |
1118 | { | 1113 | { |
1119 | mActiveItem = (KOListViewItem *)item; | 1114 | mActiveItem = (KOListViewItem *)item; |
1120 | if (mActiveItem) { | 1115 | if (mActiveItem) { |
1121 | Incidence *incidence = mActiveItem->data(); | 1116 | Incidence *incidence = mActiveItem->data(); |
1122 | mPopupMenu->enableDefault( !mListView->hasMultiSelection( item ) ); | 1117 | mPopupMenu->enableDefault( !mListView->hasMultiSelection( item ) ); |
1123 | mPopupMenu->showIncidencePopup(incidence); | 1118 | mPopupMenu->showIncidencePopup(incidence); |
1124 | 1119 | ||
1125 | /* | 1120 | /* |
1126 | if ( incidence && incidence->type() == "Event" ) { | 1121 | if ( incidence && incidence->type() == "Event" ) { |
1127 | Event *event = static_cast<Event *>( incidence ); | 1122 | Event *event = static_cast<Event *>( incidence ); |
1128 | mPopupMenu->showEventPopup(event); | 1123 | mPopupMenu->showEventPopup(event); |
1129 | } | 1124 | } |
1130 | */ | 1125 | */ |
1131 | } | 1126 | } |
1132 | } | 1127 | } |
1133 | 1128 | ||
1134 | void KOListView::readSettings(KConfig *config, QString setting) | 1129 | void KOListView::readSettings(KConfig *config, QString setting) |
1135 | { | 1130 | { |
1136 | // qDebug("KOListView::readSettings "); | 1131 | // qDebug("KOListView::readSettings "); |
1137 | mListView->restoreLayout(config,setting); | 1132 | mListView->restoreLayout(config,setting); |
1138 | } | 1133 | } |
1139 | 1134 | ||
1140 | void KOListView::writeSettings(KConfig *config, QString setting) | 1135 | void KOListView::writeSettings(KConfig *config, QString setting) |
1141 | { | 1136 | { |
1142 | // qDebug("KOListView::writeSettings "); | 1137 | // qDebug("KOListView::writeSettings "); |
1143 | mListView->saveLayout(config, setting); | 1138 | mListView->saveLayout(config, setting); |
1144 | } | 1139 | } |
1145 | 1140 | ||
1146 | void KOListView::processSelectionChange(QListViewItem *) | 1141 | void KOListView::processSelectionChange(QListViewItem *) |
1147 | { | 1142 | { |
1148 | 1143 | ||
1149 | KOListViewItem *item = | 1144 | KOListViewItem *item = |
1150 | static_cast<KOListViewItem *>( mListView->currentItem() ); | 1145 | static_cast<KOListViewItem *>( mListView->currentItem() ); |
1151 | 1146 | ||
1152 | if ( !item ) { | 1147 | if ( !item ) { |
1153 | emit incidenceSelected( 0 ); | 1148 | emit incidenceSelected( 0 ); |
1154 | } else { | 1149 | } else { |
1155 | emit incidenceSelected( item->data() ); | 1150 | emit incidenceSelected( item->data() ); |
1156 | } | 1151 | } |
1157 | } | 1152 | } |
1158 | 1153 | ||
1159 | void KOListView::clearSelection() | 1154 | void KOListView::clearSelection() |
1160 | { | 1155 | { |
1161 | mListView->selectAll( false ); | 1156 | mListView->selectAll( false ); |
1162 | } | 1157 | } |
1163 | void KOListView::allSelection() | 1158 | void KOListView::allSelection() |
1164 | { | 1159 | { |
1165 | mListView->selectAll( true ); | 1160 | mListView->selectAll( true ); |
1166 | } | 1161 | } |
1167 | 1162 | ||
1168 | void KOListView::clear() | 1163 | void KOListView::clear() |
1169 | { | 1164 | { |
1170 | mListView->clear(); | 1165 | mListView->clear(); |
1171 | mUidDict.clear(); | 1166 | mUidDict.clear(); |
1172 | } | 1167 | } |
1173 | 1168 | ||
1174 | Incidence* KOListView::currentItem() | 1169 | Incidence* KOListView::currentItem() |
1175 | { | 1170 | { |
1176 | if ( mListView->currentItem() ) | 1171 | if ( mListView->currentItem() ) |
1177 | return ((KOListViewItem*) mListView->currentItem())->data(); | 1172 | return ((KOListViewItem*) mListView->currentItem())->data(); |
1178 | return 0; | 1173 | return 0; |
1179 | } | 1174 | } |
1180 | void KOListView::keyPressEvent ( QKeyEvent *e) | 1175 | void KOListView::keyPressEvent ( QKeyEvent *e) |
1181 | { | 1176 | { |
1182 | 1177 | ||
1183 | if ( e->key() == Qt::Key_Delete || e->key() == Qt::Key_Backspace ) { | 1178 | if ( e->key() == Qt::Key_Delete || e->key() == Qt::Key_Backspace ) { |
1184 | deleteAll(); | 1179 | deleteAll(); |
1185 | return; | 1180 | return; |
1186 | } | 1181 | } |
1187 | 1182 | ||
1188 | e->ignore(); | 1183 | e->ignore(); |
1189 | } | 1184 | } |
1190 | void KOListViewListView::keyPressEvent ( QKeyEvent *e) | 1185 | void KOListViewListView::keyPressEvent ( QKeyEvent *e) |
1191 | { | 1186 | { |
1192 | 1187 | ||
1193 | switch ( e->key() ) { | 1188 | switch ( e->key() ) { |
1194 | case Qt::Key_Down: | 1189 | case Qt::Key_Down: |
1195 | if ( e->state() == ShiftButton ) { | 1190 | if ( e->state() == ShiftButton ) { |
1196 | QListViewItem* cn = currentItem(); | 1191 | QListViewItem* cn = currentItem(); |
1197 | if ( !cn ) | 1192 | if ( !cn ) |
1198 | cn = firstChild(); | 1193 | cn = firstChild(); |
1199 | if ( !cn ) | 1194 | if ( !cn ) |
1200 | return; | 1195 | return; |
1201 | while ( cn->nextSibling() ) | 1196 | while ( cn->nextSibling() ) |
1202 | cn = cn->nextSibling(); | 1197 | cn = cn->nextSibling(); |
1203 | setCurrentItem ( cn ); | 1198 | setCurrentItem ( cn ); |
1204 | ensureItemVisible ( cn ); | 1199 | ensureItemVisible ( cn ); |
1205 | 1200 | ||
1206 | e->accept(); | 1201 | e->accept(); |
1207 | return; | 1202 | return; |
1208 | } | 1203 | } |
1209 | if ( e->state() == ControlButton ) { | 1204 | if ( e->state() == ControlButton ) { |
1210 | int count = childCount (); | 1205 | int count = childCount (); |
1211 | int jump = count / 5; | 1206 | int jump = count / 5; |
1212 | QListViewItem* cn; | 1207 | QListViewItem* cn; |
1213 | cn = currentItem(); | 1208 | cn = currentItem(); |
1214 | if ( ! cn ) | 1209 | if ( ! cn ) |
1215 | return; | 1210 | return; |
1216 | if ( jump == 0 ) | 1211 | if ( jump == 0 ) |
1217 | jump = 1; | 1212 | jump = 1; |
1218 | while ( jump && cn->nextSibling() ) { | 1213 | while ( jump && cn->nextSibling() ) { |
1219 | cn = cn->nextSibling(); | 1214 | cn = cn->nextSibling(); |
1220 | --jump; | 1215 | --jump; |
1221 | } | 1216 | } |
1222 | setCurrentItem ( cn ); | 1217 | setCurrentItem ( cn ); |
1223 | ensureItemVisible ( cn ); | 1218 | ensureItemVisible ( cn ); |
1224 | 1219 | ||
1225 | } else | 1220 | } else |
1226 | QListView::keyPressEvent ( e ) ; | 1221 | QListView::keyPressEvent ( e ) ; |
1227 | e->accept(); | 1222 | e->accept(); |
1228 | break; | 1223 | break; |
1229 | 1224 | ||
1230 | case Qt::Key_Up: | 1225 | case Qt::Key_Up: |
1231 | if ( e->state() == ShiftButton ) { | 1226 | if ( e->state() == ShiftButton ) { |
1232 | QListViewItem* cn = firstChild(); | 1227 | QListViewItem* cn = firstChild(); |
1233 | if ( cn ) { | 1228 | if ( cn ) { |
1234 | setCurrentItem ( cn ); | 1229 | setCurrentItem ( cn ); |
1235 | ensureItemVisible ( cn ); | 1230 | ensureItemVisible ( cn ); |
1236 | } | 1231 | } |
1237 | e->accept(); | 1232 | e->accept(); |
1238 | return; | 1233 | return; |
1239 | } | 1234 | } |
1240 | if ( e->state() == ControlButton ) { | 1235 | if ( e->state() == ControlButton ) { |
1241 | int count = childCount (); | 1236 | int count = childCount (); |
1242 | int jump = count / 5; | 1237 | int jump = count / 5; |
1243 | QListViewItem* cn; | 1238 | QListViewItem* cn; |
1244 | cn = currentItem(); | 1239 | cn = currentItem(); |
1245 | if ( ! cn ) | 1240 | if ( ! cn ) |
1246 | return; | 1241 | return; |
1247 | if ( jump == 0 ) | 1242 | if ( jump == 0 ) |
1248 | jump = 1; | 1243 | jump = 1; |
1249 | while ( jump && cn->itemAbove ()) { | 1244 | while ( jump && cn->itemAbove ()) { |
1250 | cn = cn->itemAbove (); | 1245 | cn = cn->itemAbove (); |
1251 | --jump; | 1246 | --jump; |
1252 | } | 1247 | } |
1253 | setCurrentItem ( cn ); | 1248 | setCurrentItem ( cn ); |
1254 | ensureItemVisible ( cn ); | 1249 | ensureItemVisible ( cn ); |
1255 | } else | 1250 | } else |
1256 | QListView::keyPressEvent ( e ) ; | 1251 | QListView::keyPressEvent ( e ) ; |
1257 | e->accept(); | 1252 | e->accept(); |
1258 | break; | 1253 | break; |
1259 | case Qt::Key_I: { | 1254 | case Qt::Key_I: { |
1260 | QListViewItem* cn; | 1255 | QListViewItem* cn; |
1261 | cn = currentItem(); | 1256 | cn = currentItem(); |
1262 | if ( cn ) { | 1257 | if ( cn ) { |
1263 | KOListViewItem* ci = (KOListViewItem*)( cn ); | 1258 | KOListViewItem* ci = (KOListViewItem*)( cn ); |
1264 | if ( ci ){ | 1259 | if ( ci ){ |
1265 | //emit showIncidence( ci->data()); | 1260 | //emit showIncidence( ci->data()); |
1266 | cn = cn->nextSibling(); | 1261 | cn = cn->nextSibling(); |
1267 | if ( cn ) { | 1262 | if ( cn ) { |
1268 | setCurrentItem ( cn ); | 1263 | setCurrentItem ( cn ); |
1269 | ensureItemVisible ( cn ); | 1264 | ensureItemVisible ( cn ); |
1270 | } | 1265 | } |
1271 | emit showIncidence( ci->data()); | 1266 | emit showIncidence( ci->data()); |
1272 | } | 1267 | } |
1273 | } | 1268 | } |
1274 | e->accept(); | 1269 | e->accept(); |
1275 | } | 1270 | } |
1276 | break; | 1271 | break; |
1277 | case Qt::Key_Return: | 1272 | case Qt::Key_Return: |
1278 | case Qt::Key_Enter: | 1273 | case Qt::Key_Enter: |
1279 | { | 1274 | { |
1280 | QListViewItem* cn; | 1275 | QListViewItem* cn; |
1281 | cn = currentItem(); | 1276 | cn = currentItem(); |
1282 | if ( cn ) { | 1277 | if ( cn ) { |
1283 | KOListViewItem* ci = (KOListViewItem*)( cn ); | 1278 | KOListViewItem* ci = (KOListViewItem*)( cn ); |
1284 | if ( ci ){ | 1279 | if ( ci ){ |
1285 | if ( e->state() == ShiftButton ) | 1280 | if ( e->state() == ShiftButton ) |
1286 | ci->setSelected( false ); | 1281 | ci->setSelected( false ); |
1287 | else | 1282 | else |
1288 | ci->setSelected( true ); | 1283 | ci->setSelected( true ); |
1289 | cn = cn->nextSibling(); | 1284 | cn = cn->nextSibling(); |
1290 | if ( cn ) { | 1285 | if ( cn ) { |
1291 | setCurrentItem ( cn ); | 1286 | setCurrentItem ( cn ); |
1292 | ensureItemVisible ( cn ); | 1287 | ensureItemVisible ( cn ); |
1293 | } | 1288 | } |
1294 | } | 1289 | } |
1295 | } | 1290 | } |
1296 | e->accept(); | 1291 | e->accept(); |
1297 | } | 1292 | } |
1298 | break; | 1293 | break; |
1299 | default: | 1294 | default: |
1300 | e->ignore(); | 1295 | e->ignore(); |
1301 | } | 1296 | } |
1302 | } | 1297 | } |
1303 | KOListViewListView::KOListViewListView(KOListView * lv ) | 1298 | KOListViewListView::KOListViewListView(KOListView * lv ) |
1304 | : KListView( lv, "kolistlistview", false ) | 1299 | : KListView( lv, "kolistlistview", false ) |
1305 | { | 1300 | { |
1306 | mYMousePos = 0; | 1301 | mYMousePos = 0; |
1307 | mPopupTimer = new QTimer(this); | 1302 | mPopupTimer = new QTimer(this); |
1308 | connect(mPopupTimer , SIGNAL(timeout()), this, SLOT(popupMenu())); | 1303 | connect(mPopupTimer , SIGNAL(timeout()), this, SLOT(popupMenu())); |
1309 | #ifndef DESKTOP_VERSION | 1304 | #ifndef DESKTOP_VERSION |
1310 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold ); | 1305 | //QPEApplication::setStylusOperation(viewport(), QPEApplication::RightOnHold ); |
1311 | #endif | 1306 | #endif |
1312 | setSelectionMode( QListView::Multi ); | 1307 | setSelectionMode( QListView::Multi ); |
1313 | setMultiSelection( true); | 1308 | setMultiSelection( true); |
1314 | } | 1309 | } |
1315 | bool KOListViewListView::hasMultiSelection(QListViewItem* item) | 1310 | bool KOListViewListView::hasMultiSelection(QListViewItem* item) |
1316 | { | 1311 | { |
1317 | QListViewItem *qitem = firstChild (); | 1312 | QListViewItem *qitem = firstChild (); |
1318 | while ( qitem ) { | 1313 | while ( qitem ) { |
1319 | if ( qitem->isSelected() && item != qitem ) | 1314 | if ( qitem->isSelected() && item != qitem ) |
1320 | return true; | 1315 | return true; |
1321 | qitem = qitem->nextSibling(); | 1316 | qitem = qitem->nextSibling(); |
1322 | } | 1317 | } |
1323 | return false; | 1318 | return false; |
1324 | } | 1319 | } |
1325 | void KOListViewListView::contentsMouseDoubleClickEvent(QMouseEvent *e) | 1320 | void KOListViewListView::contentsMouseDoubleClickEvent(QMouseEvent *e) |
1326 | { | 1321 | { |
1327 | if (!e) return; | 1322 | if (!e) return; |
1328 | QPoint vp = contentsToViewport(e->pos()); | 1323 | QPoint vp = contentsToViewport(e->pos()); |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 77d0ac8..98a820d 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1,1252 +1,1255 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | 2 | ||
3 | #include <qaction.h> | 3 | #include <qaction.h> |
4 | #include <qpopupmenu.h> | 4 | #include <qpopupmenu.h> |
5 | #include <qpainter.h> | 5 | #include <qpainter.h> |
6 | #include <qwhatsthis.h> | 6 | #include <qwhatsthis.h> |
7 | #include <qpushbutton.h> | 7 | #include <qpushbutton.h> |
8 | #include <qmessagebox.h> | 8 | #include <qmessagebox.h> |
9 | #include <qlineedit.h> | 9 | #include <qlineedit.h> |
10 | #include <qtextcodec.h> | 10 | #include <qtextcodec.h> |
11 | #include <qfile.h> | 11 | #include <qfile.h> |
12 | #include <qdir.h> | 12 | #include <qdir.h> |
13 | #include <qapp.h> | 13 | #include <qapp.h> |
14 | #include <qfileinfo.h> | 14 | #include <qfileinfo.h> |
15 | #include <qlabel.h> | 15 | #include <qlabel.h> |
16 | #include <qspinbox.h> | 16 | #include <qspinbox.h> |
17 | #include <qcheckbox.h> | 17 | #include <qcheckbox.h> |
18 | #include <qmap.h> | 18 | #include <qmap.h> |
19 | #include <qwmatrix.h> | 19 | #include <qwmatrix.h> |
20 | #include <qtextbrowser.h> | 20 | #include <qtextbrowser.h> |
21 | #include <qtextstream.h> | 21 | #include <qtextstream.h> |
22 | #ifndef DESKTOP_VERSION | 22 | #ifndef DESKTOP_VERSION |
23 | #include <qpe/global.h> | 23 | #include <qpe/global.h> |
24 | #include <qpe/qpetoolbar.h> | 24 | #include <qpe/qpetoolbar.h> |
25 | #include <qpe/resource.h> | 25 | #include <qpe/resource.h> |
26 | #include <qpe/qpeapplication.h> | 26 | #include <qpe/qpeapplication.h> |
27 | #include <qtopia/alarmserver.h> | 27 | #include <qtopia/alarmserver.h> |
28 | #include <qtopia/qcopenvelope_qws.h> | 28 | #include <qtopia/qcopenvelope_qws.h> |
29 | #include <unistd.h> // for sleep | 29 | #include <unistd.h> // for sleep |
30 | #else | 30 | #else |
31 | #include <qtoolbar.h> | 31 | #include <qtoolbar.h> |
32 | #include <qapplication.h> | 32 | #include <qapplication.h> |
33 | //#include <resource.h> | 33 | //#include <resource.h> |
34 | 34 | ||
35 | #endif | 35 | #endif |
36 | #include <libkcal/calendarlocal.h> | 36 | #include <libkcal/calendarlocal.h> |
37 | #include <libkcal/todo.h> | 37 | #include <libkcal/todo.h> |
38 | #include <libkcal/phoneformat.h> | 38 | #include <libkcal/phoneformat.h> |
39 | #include <libkdepim/ksyncprofile.h> | 39 | #include <libkdepim/ksyncprofile.h> |
40 | #include <libkdepim/phoneaccess.h> | 40 | #include <libkdepim/phoneaccess.h> |
41 | #include <libkcal/kincidenceformatter.h> | 41 | #include <libkcal/kincidenceformatter.h> |
42 | #include <libkdepim/kpimglobalprefs.h> | 42 | #include <libkdepim/kpimglobalprefs.h> |
43 | 43 | ||
44 | #include "calendarview.h" | 44 | #include "calendarview.h" |
45 | #include "koviewmanager.h" | 45 | #include "koviewmanager.h" |
46 | #include "datenavigator.h" | 46 | #include "datenavigator.h" |
47 | #include "koagendaview.h" | 47 | #include "koagendaview.h" |
48 | #include "kojournalview.h" | 48 | #include "kojournalview.h" |
49 | #include "koagenda.h" | 49 | #include "koagenda.h" |
50 | #include "kodialogmanager.h" | 50 | #include "kodialogmanager.h" |
51 | #include "kdialogbase.h" | 51 | #include "kdialogbase.h" |
52 | #include "kapplication.h" | 52 | #include "kapplication.h" |
53 | #include "kofilterview.h" | 53 | #include "kofilterview.h" |
54 | #include "kstandarddirs.h" | 54 | #include "kstandarddirs.h" |
55 | #include "koprefs.h" | 55 | #include "koprefs.h" |
56 | #include "kfiledialog.h" | 56 | #include "kfiledialog.h" |
57 | #include "koglobals.h" | 57 | #include "koglobals.h" |
58 | #include "kglobal.h" | 58 | #include "kglobal.h" |
59 | #include "ktoolbar.h" | 59 | #include "ktoolbar.h" |
60 | #include "klocale.h" | 60 | #include "klocale.h" |
61 | #include "kconfig.h" | 61 | #include "kconfig.h" |
62 | #include "externalapphandler.h" | 62 | #include "externalapphandler.h" |
63 | #include <kglobalsettings.h> | 63 | #include <kglobalsettings.h> |
64 | 64 | ||
65 | using namespace KCal; | 65 | using namespace KCal; |
66 | #ifndef _WIN32_ | 66 | #ifndef _WIN32_ |
67 | #include <unistd.h> | 67 | #include <unistd.h> |
68 | #else | 68 | #else |
69 | #ifdef _OL_IMPORT_ | 69 | #ifdef _OL_IMPORT_ |
70 | #include "koimportoldialog.h" | 70 | #include "koimportoldialog.h" |
71 | #endif | 71 | #endif |
72 | #endif | 72 | #endif |
73 | #include "mainwindow.h" | 73 | #include "mainwindow.h" |
74 | 74 | ||
75 | 75 | ||
76 | class KOex2phonePrefs : public QDialog | 76 | class KOex2phonePrefs : public QDialog |
77 | { | 77 | { |
78 | public: | 78 | public: |
79 | KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) : | 79 | KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) : |
80 | QDialog( parent, name, true ) | 80 | QDialog( parent, name, true ) |
81 | { | 81 | { |
82 | setCaption( i18n("Export to phone options") ); | 82 | setCaption( i18n("Export to phone options") ); |
83 | QVBoxLayout* lay = new QVBoxLayout( this ); | 83 | QVBoxLayout* lay = new QVBoxLayout( this ); |
84 | lay->setSpacing( 3 ); | 84 | lay->setSpacing( 3 ); |
85 | lay->setMargin( 3 ); | 85 | lay->setMargin( 3 ); |
86 | QLabel *lab; | 86 | QLabel *lab; |
87 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); | 87 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); |
88 | lab->setAlignment (AlignHCenter ); | 88 | lab->setAlignment (AlignHCenter ); |
89 | QHBox* temphb; | 89 | QHBox* temphb; |
90 | temphb = new QHBox( this ); | 90 | temphb = new QHBox( this ); |
91 | new QLabel( i18n("I/O device: "), temphb ); | 91 | new QLabel( i18n("I/O device: "), temphb ); |
92 | mPhoneDevice = new QLineEdit( temphb); | 92 | mPhoneDevice = new QLineEdit( temphb); |
93 | lay->addWidget( temphb ); | 93 | lay->addWidget( temphb ); |
94 | temphb = new QHBox( this ); | 94 | temphb = new QHBox( this ); |
95 | new QLabel( i18n("Connection: "), temphb ); | 95 | new QLabel( i18n("Connection: "), temphb ); |
96 | mPhoneConnection = new QLineEdit( temphb); | 96 | mPhoneConnection = new QLineEdit( temphb); |
97 | lay->addWidget( temphb ); | 97 | lay->addWidget( temphb ); |
98 | temphb = new QHBox( this ); | 98 | temphb = new QHBox( this ); |
99 | new QLabel( i18n("Model(opt.): "), temphb ); | 99 | new QLabel( i18n("Model(opt.): "), temphb ); |
100 | mPhoneModel = new QLineEdit( temphb); | 100 | mPhoneModel = new QLineEdit( temphb); |
101 | lay->addWidget( temphb ); | 101 | lay->addWidget( temphb ); |
102 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); | 102 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); |
103 | mWriteBackFuture->setChecked( true ); | 103 | mWriteBackFuture->setChecked( true ); |
104 | lay->addWidget( mWriteBackFuture ); | 104 | lay->addWidget( mWriteBackFuture ); |
105 | temphb = new QHBox( this ); | 105 | temphb = new QHBox( this ); |
106 | new QLabel( i18n("Max. weeks in future: ") , temphb ); | 106 | new QLabel( i18n("Max. weeks in future: ") , temphb ); |
107 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); | 107 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); |
108 | mWriteBackFutureWeeks->setValue( 8 ); | 108 | mWriteBackFutureWeeks->setValue( 8 ); |
109 | lay->addWidget( temphb ); | 109 | lay->addWidget( temphb ); |
110 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); | 110 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); |
111 | lab->setAlignment (AlignHCenter ); | 111 | lab->setAlignment (AlignHCenter ); |
112 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); | 112 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); |
113 | lay->addWidget( ok ); | 113 | lay->addWidget( ok ); |
114 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 114 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
115 | lay->addWidget( cancel ); | 115 | lay->addWidget( cancel ); |
116 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 116 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
117 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 117 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
118 | resize( 220, 240 ); | 118 | resize( 220, 240 ); |
119 | qApp->processEvents(); | 119 | qApp->processEvents(); |
120 | int dw = QApplication::desktop()->width(); | 120 | int dw = QApplication::desktop()->width(); |
121 | int dh = QApplication::desktop()->height(); | 121 | int dh = QApplication::desktop()->height(); |
122 | move( (dw-width())/2, (dh - height() )/2 ); | 122 | move( (dw-width())/2, (dh - height() )/2 ); |
123 | } | 123 | } |
124 | 124 | ||
125 | public: | 125 | public: |
126 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; | 126 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; |
127 | QCheckBox* mWriteBackFuture; | 127 | QCheckBox* mWriteBackFuture; |
128 | QSpinBox* mWriteBackFutureWeeks; | 128 | QSpinBox* mWriteBackFutureWeeks; |
129 | }; | 129 | }; |
130 | 130 | ||
131 | QPixmap* sgListViewCompletedPix[6]; | 131 | QPixmap* sgListViewCompletedPix[6]; |
132 | QPixmap* sgListViewJournalPix; | 132 | QPixmap* sgListViewJournalPix; |
133 | 133 | ||
134 | 134 | ||
135 | int globalFlagBlockStartup; | 135 | int globalFlagBlockStartup; |
136 | MainWindow::MainWindow( QWidget *parent, const char *name ) : | 136 | MainWindow::MainWindow( QWidget *parent, const char *name ) : |
137 | QMainWindow( parent, name ) | 137 | QMainWindow( parent, name ) |
138 | { | 138 | { |
139 | sgListViewCompletedPix[5] = &listviewPix; | 139 | sgListViewCompletedPix[5] = &listviewPix; |
140 | sgListViewCompletedPix[0] = &listviewPix0; | 140 | sgListViewCompletedPix[0] = &listviewPix0; |
141 | sgListViewCompletedPix[1] = &listviewPix20; | 141 | sgListViewCompletedPix[1] = &listviewPix20; |
142 | sgListViewCompletedPix[2] = &listviewPix40; | 142 | sgListViewCompletedPix[2] = &listviewPix40; |
143 | sgListViewCompletedPix[3] = &listviewPix60; | 143 | sgListViewCompletedPix[3] = &listviewPix60; |
144 | sgListViewCompletedPix[4] = &listviewPix80; | 144 | sgListViewCompletedPix[4] = &listviewPix80; |
145 | //int size = 12; | 145 | //int size = 12; |
146 | { | 146 | { |
147 | sgListViewCompletedPix[5]->resize( 11, 11 ); | 147 | sgListViewCompletedPix[5]->resize( 11, 11 ); |
148 | sgListViewCompletedPix[5]->fill( Qt::white ); | 148 | sgListViewCompletedPix[5]->fill( Qt::white ); |
149 | QPainter p ( sgListViewCompletedPix[5] ); | 149 | QPainter p ( sgListViewCompletedPix[5] ); |
150 | p.drawRect( 0,0,11,11); | 150 | p.drawRect( 0,0,11,11); |
151 | p.drawLine ( 2, 5, 4 , 7 ) ; | 151 | p.drawLine ( 2, 5, 4 , 7 ) ; |
152 | p.drawLine ( 4 , 7 , 8, 3) ; | 152 | p.drawLine ( 4 , 7 , 8, 3) ; |
153 | int iii = 0; | 153 | int iii = 0; |
154 | for ( iii = 0; iii < 5; ++iii ) { | 154 | for ( iii = 0; iii < 5; ++iii ) { |
155 | sgListViewCompletedPix[iii]->resize( 11, 11 ); | 155 | sgListViewCompletedPix[iii]->resize( 11, 11 ); |
156 | sgListViewCompletedPix[iii]->fill( Qt::white ); | 156 | sgListViewCompletedPix[iii]->fill( Qt::white ); |
157 | QPainter p ( sgListViewCompletedPix[iii] ); | 157 | QPainter p ( sgListViewCompletedPix[iii] ); |
158 | p.drawRect( 0,0,11,11); | 158 | p.drawRect( 0,0,11,11); |
159 | if ( iii ) | 159 | if ( iii ) |
160 | p.fillRect( 1,1,iii*2,9,Qt::gray ); | 160 | p.fillRect( 1,1,iii*2,9,Qt::gray ); |
161 | } | 161 | } |
162 | sgListViewJournalPix = &journalPix; | 162 | sgListViewJournalPix = &journalPix; |
163 | sgListViewJournalPix->resize( 11, 11 ); | 163 | sgListViewJournalPix->resize( 11, 11 ); |
164 | sgListViewJournalPix->fill( Qt::white ); | 164 | sgListViewJournalPix->fill( Qt::white ); |
165 | { | 165 | { |
166 | QPainter p ( sgListViewJournalPix ); | 166 | QPainter p ( sgListViewJournalPix ); |
167 | p.drawRect( 0,0,11,11); | 167 | p.drawRect( 0,0,11,11); |
168 | p.drawLine( 2,3,5,3); | 168 | p.drawLine( 2,3,5,3); |
169 | p.drawLine( 2,5,8,5); | 169 | p.drawLine( 2,5,8,5); |
170 | p.drawLine( 2,7,6,7); | 170 | p.drawLine( 2,7,6,7); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | mClosed = false; | 173 | mClosed = false; |
174 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 174 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
175 | QString confFile = locateLocal("config","korganizerrc"); | 175 | QString confFile = locateLocal("config","korganizerrc"); |
176 | QFileInfo finf ( confFile ); | 176 | QFileInfo finf ( confFile ); |
177 | bool showWarning = !finf.exists(); | 177 | bool showWarning = !finf.exists(); |
178 | setIcon(SmallIcon( "ko24" ) ); | 178 | setIcon(SmallIcon( "ko24" ) ); |
179 | mBlockAtStartup = true; | 179 | mBlockAtStartup = true; |
180 | mFlagKeyPressed = false; | 180 | mFlagKeyPressed = false; |
181 | setCaption("KO/Pi"); | 181 | setCaption("KO/Pi"); |
182 | KOPrefs *p = KOPrefs::instance(); | 182 | KOPrefs *p = KOPrefs::instance(); |
183 | //KPimGlobalPrefs::instance()->setGlobalConfig(); | 183 | //KPimGlobalPrefs::instance()->setGlobalConfig(); |
184 | p->mCurrentDisplayedView = 0; | 184 | p->mCurrentDisplayedView = 0; |
185 | if ( p->mHourSize > 22 ) | 185 | if ( p->mHourSize > 22 ) |
186 | p->mHourSize = 22; | 186 | p->mHourSize = 22; |
187 | QMainWindow::ToolBarDock tbd; | 187 | QMainWindow::ToolBarDock tbd; |
188 | if ( p->mToolBarHor ) { | 188 | if ( p->mToolBarHor ) { |
189 | if ( p->mToolBarUp ) | 189 | if ( p->mToolBarUp ) |
190 | tbd = Bottom; | 190 | tbd = Bottom; |
191 | else | 191 | else |
192 | tbd = Top; | 192 | tbd = Top; |
193 | } | 193 | } |
194 | else { | 194 | else { |
195 | if ( p->mToolBarUp ) | 195 | if ( p->mToolBarUp ) |
196 | tbd = Right; | 196 | tbd = Right; |
197 | else | 197 | else |
198 | tbd = Left; | 198 | tbd = Left; |
199 | } | 199 | } |
200 | if ( KOPrefs::instance()->mUseAppColors ) | 200 | if ( KOPrefs::instance()->mUseAppColors ) |
201 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); | 201 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); |
202 | globalFlagBlockStartup = 1; | 202 | globalFlagBlockStartup = 1; |
203 | iconToolBar = new QPEToolBar( this ); | 203 | iconToolBar = new QPEToolBar( this ); |
204 | addToolBar (iconToolBar , tbd ); | 204 | addToolBar (iconToolBar , tbd ); |
205 | 205 | ||
206 | #ifdef DESKTOP_VERSION | 206 | #ifdef DESKTOP_VERSION |
207 | if ( KOPrefs::instance()->mShowIconFilter ) | 207 | if ( KOPrefs::instance()->mShowIconFilter ) |
208 | #else | 208 | #else |
209 | if ( KOPrefs::instance()->mShowIconFilter || !p->mShowIconOnetoolbar ) | 209 | if ( KOPrefs::instance()->mShowIconFilter || !p->mShowIconOnetoolbar ) |
210 | #endif | 210 | #endif |
211 | 211 | ||
212 | { | 212 | { |
213 | if ( p->mToolBarHorF ) { | 213 | if ( p->mToolBarHorF ) { |
214 | if ( p->mToolBarUpF ) | 214 | if ( p->mToolBarUpF ) |
215 | tbd = Bottom; | 215 | tbd = Bottom; |
216 | else | 216 | else |
217 | tbd = Top; | 217 | tbd = Top; |
218 | } | 218 | } |
219 | else { | 219 | else { |
220 | if ( p->mToolBarUpF ) | 220 | if ( p->mToolBarUpF ) |
221 | tbd = Right; | 221 | tbd = Right; |
222 | else | 222 | else |
223 | tbd = Left; | 223 | tbd = Left; |
224 | } | 224 | } |
225 | filterToolBar = new QPEToolBar ( this ); | 225 | filterToolBar = new QPEToolBar ( this ); |
226 | filterMenubar = new KMenuBar( 0 ); | 226 | filterMenubar = new KMenuBar( 0 ); |
227 | QFontMetrics fm ( filterMenubar->font() ); | 227 | QFontMetrics fm ( filterMenubar->font() ); |
228 | 228 | #ifndef DESKTOP_VERSION | |
229 | filterToolBar->setFocusPolicy( NoFocus ); | ||
230 | filterMenubar->setFocusPolicy( NoFocus ); | ||
231 | #endif | ||
229 | filterPopupMenu = new QPopupMenu( this ); | 232 | filterPopupMenu = new QPopupMenu( this ); |
230 | filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 ); | 233 | filterMenubar->insertItem( i18n("No Filter"), filterPopupMenu,0 ); |
231 | QString addTest = "A"; | 234 | QString addTest = "A"; |
232 | filterMenubar->setMinimumWidth( fm.width( i18n("No Filter")+addTest ) ); | 235 | filterMenubar->setMinimumWidth( fm.width( i18n("No Filter")+addTest ) ); |
233 | #ifdef DESKTOP_VERSION | 236 | #ifdef DESKTOP_VERSION |
234 | addTest = "AAABBBCCCx"; | 237 | addTest = "AAABBBCCCx"; |
235 | #else | 238 | #else |
236 | addTest = "AAx"; | 239 | addTest = "AAx"; |
237 | #endif | 240 | #endif |
238 | filterMenubar->setMaximumWidth( fm.width( i18n("No Filter")+addTest ) ); | 241 | filterMenubar->setMaximumWidth( fm.width( i18n("No Filter")+addTest ) ); |
239 | addToolBar (filterToolBar , tbd ); | 242 | addToolBar (filterToolBar , tbd ); |
240 | connect ( filterPopupMenu , SIGNAL( activated ( int ) ), this, SLOT (selectFilterPopup( int ) ) ); | 243 | connect ( filterPopupMenu , SIGNAL( activated ( int ) ), this, SLOT (selectFilterPopup( int ) ) ); |
241 | connect ( filterPopupMenu , SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenuPopup() ) ); | 244 | connect ( filterPopupMenu , SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenuPopup() ) ); |
242 | if ( !KOPrefs::instance()->mShowIconFilter && !p->mShowIconOnetoolbar ) | 245 | if ( !KOPrefs::instance()->mShowIconFilter && !p->mShowIconOnetoolbar ) |
243 | filterToolBar->hide(); | 246 | filterToolBar->hide(); |
244 | } else { | 247 | } else { |
245 | filterToolBar = 0; | 248 | filterToolBar = 0; |
246 | filterMenubar = 0; | 249 | filterMenubar = 0; |
247 | filterPopupMenu = 0; | 250 | filterPopupMenu = 0; |
248 | } | 251 | } |
249 | if ( p->mShowIconOnetoolbar ) { | 252 | if ( p->mShowIconOnetoolbar ) { |
250 | viewToolBar = iconToolBar ; | 253 | viewToolBar = iconToolBar ; |
251 | navigatorToolBar = iconToolBar ; | 254 | navigatorToolBar = iconToolBar ; |
252 | } else { | 255 | } else { |
253 | #ifndef DESKTOP_VERSION | 256 | #ifndef DESKTOP_VERSION |
254 | setToolBarsMovable( false ); | 257 | setToolBarsMovable( false ); |
255 | #endif | 258 | #endif |
256 | if ( p->mToolBarHorV ) { | 259 | if ( p->mToolBarHorV ) { |
257 | if ( p->mToolBarUpV ) | 260 | if ( p->mToolBarUpV ) |
258 | tbd = Bottom; | 261 | tbd = Bottom; |
259 | else | 262 | else |
260 | tbd = Top; | 263 | tbd = Top; |
261 | } | 264 | } |
262 | else { | 265 | else { |
263 | if ( p->mToolBarUpV ) | 266 | if ( p->mToolBarUpV ) |
264 | tbd = Right; | 267 | tbd = Right; |
265 | else | 268 | else |
266 | tbd = Left; | 269 | tbd = Left; |
267 | } | 270 | } |
268 | viewToolBar = new QPEToolBar( this ); | 271 | viewToolBar = new QPEToolBar( this ); |
269 | addToolBar (viewToolBar , tbd ); | 272 | addToolBar (viewToolBar , tbd ); |
270 | if ( p->mToolBarHorN ) { | 273 | if ( p->mToolBarHorN ) { |
271 | if ( p->mToolBarUpN ) | 274 | if ( p->mToolBarUpN ) |
272 | tbd = Bottom; | 275 | tbd = Bottom; |
273 | else | 276 | else |
274 | tbd = Top; | 277 | tbd = Top; |
275 | } | 278 | } |
276 | else { | 279 | else { |
277 | if ( p->mToolBarUpN ) | 280 | if ( p->mToolBarUpN ) |
278 | tbd = Right; | 281 | tbd = Right; |
279 | else | 282 | else |
280 | tbd = Left; | 283 | tbd = Left; |
281 | } | 284 | } |
282 | navigatorToolBar = new QPEToolBar( this ); | 285 | navigatorToolBar = new QPEToolBar( this ); |
283 | addToolBar (navigatorToolBar , tbd ); | 286 | addToolBar (navigatorToolBar , tbd ); |
284 | } | 287 | } |
285 | 288 | ||
286 | 289 | ||
287 | 290 | ||
288 | mCalendarModifiedFlag = false; | 291 | mCalendarModifiedFlag = false; |
289 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); | 292 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); |
290 | splash->setAlignment ( AlignCenter ); | 293 | splash->setAlignment ( AlignCenter ); |
291 | setCentralWidget( splash ); | 294 | setCentralWidget( splash ); |
292 | #ifndef DESKTOP_VERSION | 295 | #ifndef DESKTOP_VERSION |
293 | showMaximized(); | 296 | showMaximized(); |
294 | #endif | 297 | #endif |
295 | 298 | ||
296 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); | 299 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); |
297 | setDefaultPreferences(); | 300 | setDefaultPreferences(); |
298 | mCalendar = new CalendarLocal(); | 301 | mCalendar = new CalendarLocal(); |
299 | mView = new CalendarView( mCalendar, this,"mCalendar " ); | 302 | mView = new CalendarView( mCalendar, this,"mCalendar " ); |
300 | mView->hide(); | 303 | mView->hide(); |
301 | //mView->resize(splash->size() ); | 304 | //mView->resize(splash->size() ); |
302 | initActions(); | 305 | initActions(); |
303 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); | 306 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); |
304 | mSyncManager->setBlockSave(false); | 307 | mSyncManager->setBlockSave(false); |
305 | mView->setSyncManager(mSyncManager); | 308 | mView->setSyncManager(mSyncManager); |
306 | #ifndef DESKTOP_VERSION | 309 | #ifndef DESKTOP_VERSION |
307 | iconToolBar->show(); | 310 | iconToolBar->show(); |
308 | qApp->processEvents(); | 311 | qApp->processEvents(); |
309 | #endif | 312 | #endif |
310 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); | 313 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); |
311 | int vh = height() ; | 314 | int vh = height() ; |
312 | int vw = width(); | 315 | int vw = width(); |
313 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); | 316 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); |
314 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 317 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
315 | vh -= iconToolBar->height(); | 318 | vh -= iconToolBar->height(); |
316 | } else { | 319 | } else { |
317 | vw -= iconToolBar->height(); | 320 | vw -= iconToolBar->height(); |
318 | } | 321 | } |
319 | //mView->setMaximumSize( splash->size() ); | 322 | //mView->setMaximumSize( splash->size() ); |
320 | //mView->resize( splash->size() ); | 323 | //mView->resize( splash->size() ); |
321 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 324 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
322 | mView->readSettings(); | 325 | mView->readSettings(); |
323 | bool newFile = false; | 326 | bool newFile = false; |
324 | if( !QFile::exists( defaultFileName() ) ) { | 327 | if( !QFile::exists( defaultFileName() ) ) { |
325 | QFileInfo finfo ( defaultFileName() ); | 328 | QFileInfo finfo ( defaultFileName() ); |
326 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); | 329 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); |
327 | QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n"; | 330 | QString message = "You are starting KO/Pi for the\nfirst time after updating to a\nversion >= 1.9.1. The location of the\ndefault calendar file has changed.\nA mycalendar.ics file was detected\nat the old location.\nThis file will be loaded now\nand stored at the new location!\n(Config file location has changed, too!)\nPlease read menu Help-What's New!\n"; |
328 | finfo.setFile( oldFile ); | 331 | finfo.setFile( oldFile ); |
329 | if (finfo.exists() ) { | 332 | if (finfo.exists() ) { |
330 | KMessageBox::information( this, message); | 333 | KMessageBox::information( this, message); |
331 | mView->openCalendar( oldFile ); | 334 | mView->openCalendar( oldFile ); |
332 | qApp->processEvents(); | 335 | qApp->processEvents(); |
333 | } else { | 336 | } else { |
334 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); | 337 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); |
335 | finfo.setFile( oldFile ); | 338 | finfo.setFile( oldFile ); |
336 | if (finfo.exists() ) { | 339 | if (finfo.exists() ) { |
337 | KMessageBox::information( this, message); | 340 | KMessageBox::information( this, message); |
338 | mView->openCalendar( oldFile ); | 341 | mView->openCalendar( oldFile ); |
339 | qApp->processEvents(); | 342 | qApp->processEvents(); |
340 | } | 343 | } |
341 | } | 344 | } |
342 | mView->saveCalendar( defaultFileName() ); | 345 | mView->saveCalendar( defaultFileName() ); |
343 | newFile = true; | 346 | newFile = true; |
344 | } | 347 | } |
345 | 348 | ||
346 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 349 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
347 | mView->loadCalendars(); | 350 | mView->loadCalendars(); |
348 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 351 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
349 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); | 352 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); |
350 | 353 | ||
351 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { | 354 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { |
352 | KOPrefs::instance()->setAllDefaults(); | 355 | KOPrefs::instance()->setAllDefaults(); |
353 | } | 356 | } |
354 | processIncidenceSelection( 0 ); | 357 | processIncidenceSelection( 0 ); |
355 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), | 358 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), |
356 | SLOT( processIncidenceSelection( Incidence * ) ) ); | 359 | SLOT( processIncidenceSelection( Incidence * ) ) ); |
357 | connect( mView, SIGNAL( modifiedChanged( bool ) ), | 360 | connect( mView, SIGNAL( modifiedChanged( bool ) ), |
358 | SLOT( slotModifiedChanged( bool ) ) ); | 361 | SLOT( slotModifiedChanged( bool ) ) ); |
359 | 362 | ||
360 | 363 | ||
361 | connect( mView, SIGNAL( tempDisableBR(bool) ), | 364 | connect( mView, SIGNAL( tempDisableBR(bool) ), |
362 | SLOT( disableBR(bool) ) ); | 365 | SLOT( disableBR(bool) ) ); |
363 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); | 366 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); |
364 | mView->setModified( false ); | 367 | mView->setModified( false ); |
365 | mBlockAtStartup = false; | 368 | mBlockAtStartup = false; |
366 | mView->setModified( false ); | 369 | mView->setModified( false ); |
367 | setCentralWidget( mView ); | 370 | setCentralWidget( mView ); |
368 | globalFlagBlockStartup = 0; | 371 | globalFlagBlockStartup = 0; |
369 | mView->show(); | 372 | mView->show(); |
370 | delete splash; | 373 | delete splash; |
371 | if ( newFile ) | 374 | if ( newFile ) |
372 | mView->updateConfig(); | 375 | mView->updateConfig(); |
373 | // qApp->processEvents(); | 376 | // qApp->processEvents(); |
374 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 377 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
375 | //fillSyncMenu(); | 378 | //fillSyncMenu(); |
376 | 379 | ||
377 | 380 | ||
378 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); | 381 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); |
379 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); | 382 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); |
380 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); | 383 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); |
381 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); | 384 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); |
382 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); | 385 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); |
383 | mSyncManager->setDefaultFileName( sentSyncFile()); | 386 | mSyncManager->setDefaultFileName( sentSyncFile()); |
384 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); | 387 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); |
385 | mSyncManager->fillSyncMenu(); | 388 | mSyncManager->fillSyncMenu(); |
386 | 389 | ||
387 | 390 | ||
388 | 391 | ||
389 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); | 392 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); |
390 | if ( showWarning ) { | 393 | if ( showWarning ) { |
391 | KMessageBox::information( this, | 394 | KMessageBox::information( this, |
392 | "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); | 395 | "You are starting KO/Pi for the first time.\nPlease read menu: Help-What's New,\nif you did an update!\nPlease choose your timezone in the \nConfigure Dialog TAB Time Zone!\nPlease choose your language\nin the TAB Locale!\nYou get the Configure Dialog\nvia Menu: Actions - Configure....\nClick OK to show the Configure Dialog!\n", "KO/Pi information"); |
393 | qApp->processEvents(); | 396 | qApp->processEvents(); |
394 | mView->dialogManager()->showSyncOptions(); | 397 | mView->dialogManager()->showSyncOptions(); |
395 | } | 398 | } |
396 | 399 | ||
397 | //US listen for result adressed from Ka/Pi | 400 | //US listen for result adressed from Ka/Pi |
398 | #ifndef DESKTOP_VERSION | 401 | #ifndef DESKTOP_VERSION |
399 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 402 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
400 | #endif | 403 | #endif |
401 | #ifndef DESKTOP_VERSION | 404 | #ifndef DESKTOP_VERSION |
402 | infrared = 0; | 405 | infrared = 0; |
403 | #endif | 406 | #endif |
404 | updateFilterToolbar(); | 407 | updateFilterToolbar(); |
405 | updateWeek( mView->startDate() ); | 408 | updateWeek( mView->startDate() ); |
406 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 409 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
407 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | 410 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); |
408 | mBRdisabled = false; | 411 | mBRdisabled = false; |
409 | //toggleBeamReceive(); | 412 | //toggleBeamReceive(); |
410 | 413 | ||
411 | QTimer::singleShot( 1000, mView, SLOT ( checkFiles() )); | 414 | QTimer::singleShot( 1000, mView, SLOT ( checkFiles() )); |
412 | } | 415 | } |
413 | MainWindow::~MainWindow() | 416 | MainWindow::~MainWindow() |
414 | { | 417 | { |
415 | //qDebug("MainWindow::~MainWindow() "); | 418 | //qDebug("MainWindow::~MainWindow() "); |
416 | //save toolbar location | 419 | //save toolbar location |
417 | delete mCalendar; | 420 | delete mCalendar; |
418 | delete mSyncManager; | 421 | delete mSyncManager; |
419 | #ifndef DESKTOP_VERSION | 422 | #ifndef DESKTOP_VERSION |
420 | if ( infrared ) | 423 | if ( infrared ) |
421 | delete infrared; | 424 | delete infrared; |
422 | #endif | 425 | #endif |
423 | 426 | ||
424 | 427 | ||
425 | } | 428 | } |
426 | void MainWindow::slotResetFocus() | 429 | void MainWindow::slotResetFocus() |
427 | { | 430 | { |
428 | //qDebug(" CalendarView::slotResetFocus() %x %x %x %x", qApp->focusWidget(), menuBar1, mView,iconToolBar); | 431 | //qDebug(" CalendarView::slotResetFocus() %x %x %x %x", qApp->focusWidget(), menuBar1, mView,iconToolBar); |
429 | mFocusLoop = 3; | 432 | mFocusLoop = 3; |
430 | QTimer::singleShot( 0, this, SLOT(slotResetFocusLoop() )); | 433 | QTimer::singleShot( 0, this, SLOT(slotResetFocusLoop() )); |
431 | } | 434 | } |
432 | void MainWindow::slotResetFocusLoop() | 435 | void MainWindow::slotResetFocusLoop() |
433 | { | 436 | { |
434 | --mFocusLoop; | 437 | --mFocusLoop; |
435 | QWidget* fw = mView->viewManager()->currentView(); | 438 | QWidget* fw = mView->viewManager()->currentView(); |
436 | if ( fw ) { | 439 | if ( fw ) { |
437 | //qDebug("loop "); | 440 | //qDebug("loop "); |
438 | fw->setFocus(); | 441 | fw->setFocus(); |
439 | if ( qApp->focusWidget() != fw && mFocusLoop > 0 ) | 442 | if ( qApp->focusWidget() != fw && mFocusLoop > 0 ) |
440 | QTimer::singleShot( 0, this, SLOT(slotResetFocusLoop() )); | 443 | QTimer::singleShot( 0, this, SLOT(slotResetFocusLoop() )); |
441 | } | 444 | } |
442 | 445 | ||
443 | } | 446 | } |
444 | void MainWindow::disableBR(bool b) | 447 | void MainWindow::disableBR(bool b) |
445 | { | 448 | { |
446 | #ifndef DESKTOP_VERSION | 449 | #ifndef DESKTOP_VERSION |
447 | if ( b ) { | 450 | if ( b ) { |
448 | if ( infrared ) { | 451 | if ( infrared ) { |
449 | toggleBeamReceive(); | 452 | toggleBeamReceive(); |
450 | mBRdisabled = true; | 453 | mBRdisabled = true; |
451 | } | 454 | } |
452 | mBRdisabled = true; | 455 | mBRdisabled = true; |
453 | } else { | 456 | } else { |
454 | if ( mBRdisabled ) { | 457 | if ( mBRdisabled ) { |
455 | mBRdisabled = false; | 458 | mBRdisabled = false; |
456 | //makes no sense,because other cal ap is probably running | 459 | //makes no sense,because other cal ap is probably running |
457 | // toggleBeamReceive(); | 460 | // toggleBeamReceive(); |
458 | } | 461 | } |
459 | } | 462 | } |
460 | #endif | 463 | #endif |
461 | 464 | ||
462 | } | 465 | } |
463 | bool MainWindow::beamReceiveEnabled() | 466 | bool MainWindow::beamReceiveEnabled() |
464 | { | 467 | { |
465 | #ifndef DESKTOP_VERSION | 468 | #ifndef DESKTOP_VERSION |
466 | return ( infrared != 0 ); | 469 | return ( infrared != 0 ); |
467 | #endif | 470 | #endif |
468 | return false; | 471 | return false; |
469 | } | 472 | } |
470 | 473 | ||
471 | void MainWindow::toggleBeamReceive() | 474 | void MainWindow::toggleBeamReceive() |
472 | { | 475 | { |
473 | if ( mBRdisabled ) | 476 | if ( mBRdisabled ) |
474 | return; | 477 | return; |
475 | #ifndef DESKTOP_VERSION | 478 | #ifndef DESKTOP_VERSION |
476 | if ( infrared ) { | 479 | if ( infrared ) { |
477 | qDebug("KO: Disable BeamReceive "); | 480 | qDebug("KO: Disable BeamReceive "); |
478 | delete infrared; | 481 | delete infrared; |
479 | infrared = 0; | 482 | infrared = 0; |
480 | brAction->setOn(false); | 483 | brAction->setOn(false); |
481 | return; | 484 | return; |
482 | } | 485 | } |
483 | qDebug("KO: Enable BeamReceive "); | 486 | qDebug("KO: Enable BeamReceive "); |
484 | brAction->setOn(true); | 487 | brAction->setOn(true); |
485 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; | 488 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; |
486 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); | 489 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); |
487 | #endif | 490 | #endif |
488 | } | 491 | } |
489 | void MainWindow::showMaximized () | 492 | void MainWindow::showMaximized () |
490 | { | 493 | { |
491 | #ifndef DESKTOP_VERSION | 494 | #ifndef DESKTOP_VERSION |
492 | if ( ! globalFlagBlockStartup ) | 495 | if ( ! globalFlagBlockStartup ) |
493 | if ( mClosed ) | 496 | if ( mClosed ) |
494 | mView->goToday(); | 497 | mView->goToday(); |
495 | #endif | 498 | #endif |
496 | QWidget::showMaximized () ; | 499 | QWidget::showMaximized () ; |
497 | mClosed = false; | 500 | mClosed = false; |
498 | } | 501 | } |
499 | void MainWindow::closeEvent( QCloseEvent* ce ) | 502 | void MainWindow::closeEvent( QCloseEvent* ce ) |
500 | { | 503 | { |
501 | 504 | ||
502 | 505 | ||
503 | 506 | ||
504 | if ( ! KOPrefs::instance()->mAskForQuit ) { | 507 | if ( ! KOPrefs::instance()->mAskForQuit ) { |
505 | saveOnClose(); | 508 | saveOnClose(); |
506 | mClosed = true; | 509 | mClosed = true; |
507 | ce->accept(); | 510 | ce->accept(); |
508 | return; | 511 | return; |
509 | 512 | ||
510 | } | 513 | } |
511 | 514 | ||
512 | switch( QMessageBox::information( this, "KO/Pi", | 515 | switch( QMessageBox::information( this, "KO/Pi", |
513 | i18n("Do you really want\nto close KO/Pi?"), | 516 | i18n("Do you really want\nto close KO/Pi?"), |
514 | i18n("Close"), i18n("No"), | 517 | i18n("Close"), i18n("No"), |
515 | 0, 0 ) ) { | 518 | 0, 0 ) ) { |
516 | case 0: | 519 | case 0: |
517 | saveOnClose(); | 520 | saveOnClose(); |
518 | mClosed = true; | 521 | mClosed = true; |
519 | ce->accept(); | 522 | ce->accept(); |
520 | break; | 523 | break; |
521 | case 1: | 524 | case 1: |
522 | ce->ignore(); | 525 | ce->ignore(); |
523 | break; | 526 | break; |
524 | case 2: | 527 | case 2: |
525 | 528 | ||
526 | default: | 529 | default: |
527 | break; | 530 | break; |
528 | } | 531 | } |
529 | 532 | ||
530 | 533 | ||
531 | } | 534 | } |
532 | 535 | ||
533 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | 536 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) |
534 | { | 537 | { |
535 | QDataStream stream( data, IO_ReadOnly ); | 538 | QDataStream stream( data, IO_ReadOnly ); |
536 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); | 539 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); |
537 | //QString datamess; | 540 | //QString datamess; |
538 | //qDebug("message "); | 541 | //qDebug("message "); |
539 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); | 542 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); |
540 | 543 | ||
541 | if ( cmsg == "setDocument(QString)" ) { | 544 | if ( cmsg == "setDocument(QString)" ) { |
542 | QDataStream stream( data, IO_ReadOnly ); | 545 | QDataStream stream( data, IO_ReadOnly ); |
543 | QString fileName; | 546 | QString fileName; |
544 | stream >> fileName; | 547 | stream >> fileName; |
545 | //qDebug("filename %s ", fileName.latin1()); | 548 | //qDebug("filename %s ", fileName.latin1()); |
546 | showMaximized(); | 549 | showMaximized(); |
547 | raise(); | 550 | raise(); |
548 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; | 551 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; |
549 | mSyncManager->slotSyncMenu( 1002 ); | 552 | mSyncManager->slotSyncMenu( 1002 ); |
550 | return; | 553 | return; |
551 | } | 554 | } |
552 | 555 | ||
553 | if ( cmsg == "-writeFile" ) { | 556 | if ( cmsg == "-writeFile" ) { |
554 | // I made from the "-writeFile" an "-writeAlarm" | 557 | // I made from the "-writeFile" an "-writeAlarm" |
555 | mView->viewManager()->showWhatsNextView(); | 558 | mView->viewManager()->showWhatsNextView(); |
556 | mCalendar->checkAlarmForIncidence( 0, true); | 559 | mCalendar->checkAlarmForIncidence( 0, true); |
557 | showMaximized(); | 560 | showMaximized(); |
558 | raise(); | 561 | raise(); |
559 | return; | 562 | return; |
560 | 563 | ||
561 | } | 564 | } |
562 | if ( cmsg == "-writeFileSilent" ) { | 565 | if ( cmsg == "-writeFileSilent" ) { |
563 | // I made from the "-writeFile" an "-writeAlarm" | 566 | // I made from the "-writeFile" an "-writeAlarm" |
564 | // mView->viewManager()->showWhatsNextView(); | 567 | // mView->viewManager()->showWhatsNextView(); |
565 | mCalendar->checkAlarmForIncidence( 0, true); | 568 | mCalendar->checkAlarmForIncidence( 0, true); |
566 | //showMaximized(); | 569 | //showMaximized(); |
567 | //raise(); | 570 | //raise(); |
568 | hide(); | 571 | hide(); |
569 | return; | 572 | return; |
570 | } | 573 | } |
571 | if ( cmsg == "-newCountdown" ) { | 574 | if ( cmsg == "-newCountdown" ) { |
572 | qDebug("newCountdown "); | 575 | qDebug("newCountdown "); |
573 | 576 | ||
574 | } | 577 | } |
575 | QString msg ; | 578 | QString msg ; |
576 | QString allmsg = cmsg; | 579 | QString allmsg = cmsg; |
577 | while ( allmsg.length() > 0 ) { | 580 | while ( allmsg.length() > 0 ) { |
578 | int nextC = allmsg.find( "-", 1 ); | 581 | int nextC = allmsg.find( "-", 1 ); |
579 | if ( nextC == -1 ) { | 582 | if ( nextC == -1 ) { |
580 | msg = allmsg; | 583 | msg = allmsg; |
581 | allmsg = ""; | 584 | allmsg = ""; |
582 | } else{ | 585 | } else{ |
583 | msg = allmsg.left( nextC ); | 586 | msg = allmsg.left( nextC ); |
584 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); | 587 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); |
585 | } | 588 | } |
586 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); | 589 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); |
587 | if ( msg == "-newEvent" ) { | 590 | if ( msg == "-newEvent" ) { |
588 | QTimer::singleShot( 0, mView, SLOT ( newEvent())); | 591 | QTimer::singleShot( 0, mView, SLOT ( newEvent())); |
589 | } | 592 | } |
590 | if ( msg == "-newTodo" ) { | 593 | if ( msg == "-newTodo" ) { |
591 | QTimer::singleShot( 0, mView, SLOT ( newTodo())); | 594 | QTimer::singleShot( 0, mView, SLOT ( newTodo())); |
592 | } | 595 | } |
593 | if ( msg == "-showWN" ) { | 596 | if ( msg == "-showWN" ) { |
594 | mView->viewManager()->showWhatsNextView(); | 597 | mView->viewManager()->showWhatsNextView(); |
595 | } | 598 | } |
596 | if ( msg == "-showTodo" ) { | 599 | if ( msg == "-showTodo" ) { |
597 | mView->viewManager()->showTodoView(); | 600 | mView->viewManager()->showTodoView(); |
598 | } | 601 | } |
599 | if ( msg == "-showList" ) { | 602 | if ( msg == "-showList" ) { |
600 | mView->viewManager()->showListView(); | 603 | mView->viewManager()->showListView(); |
601 | } | 604 | } |
602 | else if ( msg == "-showDay" ) { | 605 | else if ( msg == "-showDay" ) { |
603 | mView->viewManager()->showDayView(); | 606 | mView->viewManager()->showDayView(); |
604 | } | 607 | } |
605 | else if ( msg == "-showWWeek" ) { | 608 | else if ( msg == "-showWWeek" ) { |
606 | mView->viewManager()->showWorkWeekView(); | 609 | mView->viewManager()->showWorkWeekView(); |
607 | } | 610 | } |
608 | else if ( msg == "-ringSync" ) { | 611 | else if ( msg == "-ringSync" ) { |
609 | QTimer::singleShot( 0, this, SLOT (startMultiSync())); | 612 | QTimer::singleShot( 0, this, SLOT (startMultiSync())); |
610 | } | 613 | } |
611 | else if ( msg == "-showWeek" ) { | 614 | else if ( msg == "-showWeek" ) { |
612 | mView->viewManager()->showWeekView(); | 615 | mView->viewManager()->showWeekView(); |
613 | } | 616 | } |
614 | else if ( msg == "-showTodo" ) { | 617 | else if ( msg == "-showTodo" ) { |
615 | mView->viewManager()->showTodoView(); | 618 | mView->viewManager()->showTodoView(); |
616 | } | 619 | } |
617 | else if ( msg == "-showJournal" ) { | 620 | else if ( msg == "-showJournal" ) { |
618 | mView->dateNavigator()->selectDates( 1 ); | 621 | mView->dateNavigator()->selectDates( 1 ); |
619 | mView->dateNavigator()->selectToday(); | 622 | mView->dateNavigator()->selectToday(); |
620 | mView->viewManager()->showJournalView(); | 623 | mView->viewManager()->showJournalView(); |
621 | } | 624 | } |
622 | else if ( msg == "-showKO" ) { | 625 | else if ( msg == "-showKO" ) { |
623 | mView->viewManager()->showNextXView(); | 626 | mView->viewManager()->showNextXView(); |
624 | } | 627 | } |
625 | else if ( msg == "-showWNext" ) { | 628 | else if ( msg == "-showWNext" ) { |
626 | mView->viewManager()->showWhatsNextView(); | 629 | mView->viewManager()->showWhatsNextView(); |
627 | } | 630 | } |
628 | else if ( msg == "nextView()" ) { | 631 | else if ( msg == "nextView()" ) { |
629 | mView->viewManager()->showNextView(); | 632 | mView->viewManager()->showNextView(); |
630 | } | 633 | } |
631 | else if ( msg == "-showNextXView" ) { | 634 | else if ( msg == "-showNextXView" ) { |
632 | mView->viewManager()->showNextXView(); | 635 | mView->viewManager()->showNextXView(); |
633 | } | 636 | } |
634 | 637 | ||
635 | 638 | ||
636 | } | 639 | } |
637 | 640 | ||
638 | showMaximized(); | 641 | showMaximized(); |
639 | raise(); | 642 | raise(); |
640 | } | 643 | } |
641 | void MainWindow::startMultiSync() | 644 | void MainWindow::startMultiSync() |
642 | { | 645 | { |
643 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); | 646 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); |
644 | if ( QMessageBox::information( this, i18n("KDE-Pim Sync"), | 647 | if ( QMessageBox::information( this, i18n("KDE-Pim Sync"), |
645 | question, | 648 | question, |
646 | i18n("Yes"), i18n("No"), | 649 | i18n("Yes"), i18n("No"), |
647 | 0, 0 ) != 0 ) { | 650 | 0, 0 ) != 0 ) { |
648 | setCaption(i18n("Aborted! Nothing synced!")); | 651 | setCaption(i18n("Aborted! Nothing synced!")); |
649 | return; | 652 | return; |
650 | } | 653 | } |
651 | mSyncManager->multiSync( false ); | 654 | mSyncManager->multiSync( false ); |
652 | #ifndef DESKTOP_VERSION | 655 | #ifndef DESKTOP_VERSION |
653 | QCopEnvelope e("QPE/Application/kapi", "doRingSync"); | 656 | QCopEnvelope e("QPE/Application/kapi", "doRingSync"); |
654 | #endif | 657 | #endif |
655 | } | 658 | } |
656 | QPixmap MainWindow::loadPixmap( QString name ) | 659 | QPixmap MainWindow::loadPixmap( QString name ) |
657 | { | 660 | { |
658 | return SmallIcon( name ); | 661 | return SmallIcon( name ); |
659 | 662 | ||
660 | } | 663 | } |
661 | void MainWindow::setUsesBigPixmaps ( bool b ) | 664 | void MainWindow::setUsesBigPixmaps ( bool b ) |
662 | { | 665 | { |
663 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); | 666 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); |
664 | if ( b ) | 667 | if ( b ) |
665 | qDebug("KO: BigPixmaps are not supported "); | 668 | qDebug("KO: BigPixmaps are not supported "); |
666 | } | 669 | } |
667 | void MainWindow::initActions() | 670 | void MainWindow::initActions() |
668 | { | 671 | { |
669 | //KOPrefs::instance()->mShowFullMenu | 672 | //KOPrefs::instance()->mShowFullMenu |
670 | iconToolBar->clear(); | 673 | iconToolBar->clear(); |
671 | KOPrefs *p = KOPrefs::instance(); | 674 | KOPrefs *p = KOPrefs::instance(); |
672 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 675 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
673 | 676 | ||
674 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 677 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
675 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 678 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
676 | mCurrentItemMenu = new QPopupMenu ( this ); | 679 | mCurrentItemMenu = new QPopupMenu ( this ); |
677 | QPopupMenu *nextConflictMenu = new QPopupMenu ( this ); | 680 | QPopupMenu *nextConflictMenu = new QPopupMenu ( this ); |
678 | QPopupMenu *importMenu = new QPopupMenu( this ); | 681 | QPopupMenu *importMenu = new QPopupMenu( this ); |
679 | QPopupMenu *importMenu_X = new QPopupMenu( this ); | 682 | QPopupMenu *importMenu_X = new QPopupMenu( this ); |
680 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); | 683 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); |
681 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); | 684 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); |
682 | selectFilterMenu = new QPopupMenu( this ); | 685 | selectFilterMenu = new QPopupMenu( this ); |
683 | selectFilterMenu->setCheckable( true ); | 686 | selectFilterMenu->setCheckable( true ); |
684 | syncMenu = new QPopupMenu( this ); | 687 | syncMenu = new QPopupMenu( this ); |
685 | configureAgendaMenu = new QPopupMenu( this ); | 688 | configureAgendaMenu = new QPopupMenu( this ); |
686 | configureToolBarMenu = new QPopupMenu( this ); | 689 | configureToolBarMenu = new QPopupMenu( this ); |
687 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 690 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
688 | QIconSet icon; | 691 | QIconSet icon; |
689 | int pixWid = 22, pixHei = 22; | 692 | int pixWid = 22, pixHei = 22; |
690 | QString pathString = ""; | 693 | QString pathString = ""; |
691 | if ( !p->mToolBarMiniIcons ) { | 694 | if ( !p->mToolBarMiniIcons ) { |
692 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { | 695 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { |
693 | pathString += "icons16/"; | 696 | pathString += "icons16/"; |
694 | pixWid = 18; pixHei = 16; | 697 | pixWid = 18; pixHei = 16; |
695 | } | 698 | } |
696 | } else { | 699 | } else { |
697 | pathString += "iconsmini/"; | 700 | pathString += "iconsmini/"; |
698 | pixWid = 18; pixHei = 16; | 701 | pixWid = 18; pixHei = 16; |
699 | } | 702 | } |
700 | 703 | ||
701 | if ( KOPrefs::instance()->mShowFullMenu ) { | 704 | if ( KOPrefs::instance()->mShowFullMenu ) { |
702 | menuBar1 = new KMenuBar( this );//menuBar(); | 705 | menuBar1 = new KMenuBar( this );//menuBar(); |
703 | //setMenuBar( menuBar1 ); | 706 | //setMenuBar( menuBar1 ); |
704 | menuBar1->show(); | 707 | menuBar1->show(); |
705 | menuBar1->insertItem( i18n("File"), importMenu ); | 708 | menuBar1->insertItem( i18n("File"), importMenu ); |
706 | menuBar1->insertItem( i18n("View"), viewMenu ); | 709 | menuBar1->insertItem( i18n("View"), viewMenu ); |
707 | menuBar1->insertItem( i18n("Edit"), mCurrentItemMenu ); | 710 | menuBar1->insertItem( i18n("Edit"), mCurrentItemMenu ); |
708 | menuBar1->insertItem( i18n("Action"), actionMenu ); | 711 | menuBar1->insertItem( i18n("Action"), actionMenu ); |
709 | #ifdef DESKTOP_VERSION | 712 | #ifdef DESKTOP_VERSION |
710 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); | 713 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); |
711 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 714 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
712 | #else | 715 | #else |
713 | menuBar1->insertItem( i18n("Sync"), syncMenu ); | 716 | menuBar1->insertItem( i18n("Sync"), syncMenu ); |
714 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); | 717 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); |
715 | #endif | 718 | #endif |
716 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 719 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
717 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); | 720 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); |
718 | menuBar1->insertItem( i18n("Help"), helpMenu ); | 721 | menuBar1->insertItem( i18n("Help"), helpMenu ); |
719 | } else { | 722 | } else { |
720 | menuBar1 = new KMenuBar( iconToolBar ); | 723 | menuBar1 = new KMenuBar( iconToolBar ); |
721 | QPopupMenu *menuBar = new QPopupMenu( this ); | 724 | QPopupMenu *menuBar = new QPopupMenu( this ); |
722 | icon = loadPixmap( pathString + "z_menu" ); | 725 | icon = loadPixmap( pathString + "z_menu" ); |
723 | menuBar1->insertItem( icon.pixmap(), menuBar); | 726 | menuBar1->insertItem( icon.pixmap(), menuBar); |
724 | //menuBar1->insertItem( i18n("ME"), menuBar); | 727 | //menuBar1->insertItem( i18n("ME"), menuBar); |
725 | menuBar->insertItem( i18n("File"), importMenu ); | 728 | menuBar->insertItem( i18n("File"), importMenu ); |
726 | menuBar->insertItem( i18n("View"), viewMenu ); | 729 | menuBar->insertItem( i18n("View"), viewMenu ); |
727 | menuBar->insertItem( i18n("Edit"), mCurrentItemMenu ); | 730 | menuBar->insertItem( i18n("Edit"), mCurrentItemMenu ); |
728 | menuBar->insertItem( i18n("Action"), actionMenu ); | 731 | menuBar->insertItem( i18n("Action"), actionMenu ); |
729 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); | 732 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); |
730 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 733 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
731 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 734 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
732 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); | 735 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); |
733 | menuBar->insertItem( i18n("Help"), helpMenu ); | 736 | menuBar->insertItem( i18n("Help"), helpMenu ); |
734 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); | 737 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); |
735 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); | 738 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); |
736 | connect ( menuBar, SIGNAL( aboutToHide () ), this, SLOT ( slotResetFocus() ) ); | 739 | connect ( menuBar, SIGNAL( aboutToHide () ), this, SLOT ( slotResetFocus() ) ); |
737 | } | 740 | } |
738 | connect ( menuBar1, SIGNAL( lostFocus () ), this, SLOT ( slotResetFocus() ) ); | 741 | connect ( menuBar1, SIGNAL( lostFocus () ), this, SLOT ( slotResetFocus() ) ); |
739 | //connect ( menuBar1, SIGNAL( lostFocus () ), this, SLOT ( slotResetFocus() ) ); | 742 | //connect ( menuBar1, SIGNAL( lostFocus () ), this, SLOT ( slotResetFocus() ) ); |
740 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 743 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
741 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); | 744 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); |
742 | 745 | ||
743 | 746 | ||
744 | mWeekBgColor = iconToolBar->backgroundColor(); | 747 | mWeekBgColor = iconToolBar->backgroundColor(); |
745 | mWeekPixmap.resize( pixWid , pixHei ); | 748 | mWeekPixmap.resize( pixWid , pixHei ); |
746 | mWeekPixmap.fill( mWeekBgColor ); | 749 | mWeekPixmap.fill( mWeekBgColor ); |
747 | icon = mWeekPixmap; | 750 | icon = mWeekPixmap; |
748 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); | 751 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); |
749 | if ( p-> mShowIconWeekNum ) | 752 | if ( p-> mShowIconWeekNum ) |
750 | mWeekAction->addTo( iconToolBar ); | 753 | mWeekAction->addTo( iconToolBar ); |
751 | mWeekFont = font(); | 754 | mWeekFont = font(); |
752 | 755 | ||
753 | int fontPoint = mWeekFont.pointSize(); | 756 | int fontPoint = mWeekFont.pointSize(); |
754 | QFontMetrics f( mWeekFont ); | 757 | QFontMetrics f( mWeekFont ); |
755 | int fontWid = f.width( "30" ); | 758 | int fontWid = f.width( "30" ); |
756 | while ( fontWid > pixWid ) { | 759 | while ( fontWid > pixWid ) { |
757 | --fontPoint; | 760 | --fontPoint; |
758 | mWeekFont.setPointSize( fontPoint ); | 761 | mWeekFont.setPointSize( fontPoint ); |
759 | QFontMetrics f( mWeekFont ); | 762 | QFontMetrics f( mWeekFont ); |
760 | fontWid = f.width( "30" ); | 763 | fontWid = f.width( "30" ); |
761 | //qDebug("dec-- "); | 764 | //qDebug("dec-- "); |
762 | } | 765 | } |
763 | 766 | ||
764 | connect( mWeekAction, SIGNAL( activated() ), | 767 | connect( mWeekAction, SIGNAL( activated() ), |
765 | this, SLOT( weekAction() ) ); | 768 | this, SLOT( weekAction() ) ); |
766 | 769 | ||
767 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); | 770 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); |
768 | if ( p->mShowIconFilterview ) { | 771 | if ( p->mShowIconFilterview ) { |
769 | icon = loadPixmap( pathString + "filter" ); | 772 | icon = loadPixmap( pathString + "filter" ); |
770 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); | 773 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); |
771 | connect( actionFilterMenuTB, SIGNAL( activated() ), | 774 | connect( actionFilterMenuTB, SIGNAL( activated() ), |
772 | this, SLOT( fillFilterMenuTB() ) ); | 775 | this, SLOT( fillFilterMenuTB() ) ); |
773 | actionFilterMenuTB->addTo( iconToolBar ); | 776 | actionFilterMenuTB->addTo( iconToolBar ); |
774 | selectFilterMenuTB = new QPopupMenu( this ); | 777 | selectFilterMenuTB = new QPopupMenu( this ); |
775 | selectFilterMenuTB->setCheckable( true ); | 778 | selectFilterMenuTB->setCheckable( true ); |
776 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 779 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
777 | } | 780 | } |
778 | 781 | ||
779 | //#endif | 782 | //#endif |
780 | // ****************** | 783 | // ****************** |
781 | QAction *action; | 784 | QAction *action; |
782 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); | 785 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); |
783 | configureToolBarMenu->setCheckable( true ); | 786 | configureToolBarMenu->setCheckable( true ); |
784 | 787 | ||
785 | 788 | ||
786 | configureAgendaMenu->setCheckable( true ); | 789 | configureAgendaMenu->setCheckable( true ); |
787 | int iii ; | 790 | int iii ; |
788 | for ( iii = 1;iii<= 10 ;++iii ){ | 791 | for ( iii = 1;iii<= 10 ;++iii ){ |
789 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); | 792 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); |
790 | } | 793 | } |
791 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); | 794 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); |
792 | 795 | ||
793 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), | 796 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), |
794 | this, SLOT( showConfigureAgenda( ) ) ); | 797 | this, SLOT( showConfigureAgenda( ) ) ); |
795 | icon = loadPixmap( pathString + "today" ); | 798 | icon = loadPixmap( pathString + "today" ); |
796 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | 799 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); |
797 | today_action->addTo( actionMenu ); | 800 | today_action->addTo( actionMenu ); |
798 | connect( today_action, SIGNAL( activated() ), | 801 | connect( today_action, SIGNAL( activated() ), |
799 | mView, SLOT( goToday() ) ); | 802 | mView, SLOT( goToday() ) ); |
800 | 803 | ||
801 | icon = loadPixmap( pathString + "picker" ); | 804 | icon = loadPixmap( pathString + "picker" ); |
802 | QAction* dPickerAction = new QAction( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this ); | 805 | QAction* dPickerAction = new QAction( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this ); |
803 | dPickerAction->addTo( actionMenu ); | 806 | dPickerAction->addTo( actionMenu ); |
804 | connect( dPickerAction, SIGNAL( activated() ), | 807 | connect( dPickerAction, SIGNAL( activated() ), |
805 | mView, SLOT( showDatePicker() ) ); | 808 | mView, SLOT( showDatePicker() ) ); |
806 | 809 | ||
807 | icon = loadPixmap( pathString + "search" ); | 810 | icon = loadPixmap( pathString + "search" ); |
808 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); | 811 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); |
809 | search_action->addTo( actionMenu ); | 812 | search_action->addTo( actionMenu ); |
810 | connect( search_action, SIGNAL( activated() ), | 813 | connect( search_action, SIGNAL( activated() ), |
811 | mView->dialogManager(), SLOT( showSearchDialog() ) ); | 814 | mView->dialogManager(), SLOT( showSearchDialog() ) ); |
812 | actionMenu->insertItem( i18n("Show next conflict for"), nextConflictMenu ); | 815 | actionMenu->insertItem( i18n("Show next conflict for"), nextConflictMenu ); |
813 | 816 | ||
814 | action = new QAction( "Undo Delete", i18n("All events"), 0, this ); | 817 | action = new QAction( "Undo Delete", i18n("All events"), 0, this ); |
815 | action->addTo( nextConflictMenu ); | 818 | action->addTo( nextConflictMenu ); |
816 | connect( action, SIGNAL( activated() ), | 819 | connect( action, SIGNAL( activated() ), |
817 | mView, SLOT( conflictAll() ) ); | 820 | mView, SLOT( conflictAll() ) ); |
818 | 821 | ||
819 | action = new QAction( "Undo Delete", i18n("Allday events"), 0, this ); | 822 | action = new QAction( "Undo Delete", i18n("Allday events"), 0, this ); |
820 | action->addTo( nextConflictMenu ); | 823 | action->addTo( nextConflictMenu ); |
821 | connect( action, SIGNAL( activated() ), | 824 | connect( action, SIGNAL( activated() ), |
822 | mView, SLOT( conflictAllday() ) ); | 825 | mView, SLOT( conflictAllday() ) ); |
823 | 826 | ||
824 | action = new QAction( "Undo Delete", i18n("Events with time"), 0, this ); | 827 | action = new QAction( "Undo Delete", i18n("Events with time"), 0, this ); |
825 | action->addTo( nextConflictMenu ); | 828 | action->addTo( nextConflictMenu ); |
826 | connect( action, SIGNAL( activated() ), | 829 | connect( action, SIGNAL( activated() ), |
827 | mView, SLOT( conflictNotAll() ) ); | 830 | mView, SLOT( conflictNotAll() ) ); |
828 | 831 | ||
829 | actionMenu->insertSeparator(); | 832 | actionMenu->insertSeparator(); |
830 | 833 | ||
831 | icon = loadPixmap( pathString + "newevent" ); | 834 | icon = loadPixmap( pathString + "newevent" ); |
832 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 835 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
833 | ne_action->addTo( mCurrentItemMenu ); | 836 | ne_action->addTo( mCurrentItemMenu ); |
834 | connect( ne_action, SIGNAL( activated() ), | 837 | connect( ne_action, SIGNAL( activated() ), |
835 | mView, SLOT( newEvent() ) ); | 838 | mView, SLOT( newEvent() ) ); |
836 | icon = loadPixmap( pathString + "newtodo" ); | 839 | icon = loadPixmap( pathString + "newtodo" ); |
837 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); | 840 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); |
838 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); | 841 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); |
839 | nt_action->addTo( mCurrentItemMenu ); | 842 | nt_action->addTo( mCurrentItemMenu ); |
840 | connect( nt_action, SIGNAL( activated() ), | 843 | connect( nt_action, SIGNAL( activated() ), |
841 | mView, SLOT( newTodo() ) ); | 844 | mView, SLOT( newTodo() ) ); |
842 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, | 845 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, |
843 | this ); | 846 | this ); |
844 | mNewSubTodoAction->addTo( mCurrentItemMenu ); | 847 | mNewSubTodoAction->addTo( mCurrentItemMenu ); |
845 | connect( mNewSubTodoAction, SIGNAL( activated() ), | 848 | connect( mNewSubTodoAction, SIGNAL( activated() ), |
846 | mView, SLOT( newSubTodo() ) ); | 849 | mView, SLOT( newSubTodo() ) ); |
847 | 850 | ||
848 | mCurrentItemMenu->insertSeparator(); | 851 | mCurrentItemMenu->insertSeparator(); |
849 | icon = loadPixmap( pathString + "newevent" ); | 852 | icon = loadPixmap( pathString + "newevent" ); |
850 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 853 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
851 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); | 854 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); |
852 | configureToolBarMenu->insertSeparator(); | 855 | configureToolBarMenu->insertSeparator(); |
853 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); | 856 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); |
854 | configureToolBarMenu->insertSeparator(); | 857 | configureToolBarMenu->insertSeparator(); |
855 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); | 858 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); |
856 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 859 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
857 | 860 | ||
858 | //actionMenu->insertItem ( i18n("Selected Item"), mCurrentItemMenu); | 861 | //actionMenu->insertItem ( i18n("Selected Item"), mCurrentItemMenu); |
859 | mShowAction = new QAction( "show_incidence", i18n("Show"), 0, this ); | 862 | mShowAction = new QAction( "show_incidence", i18n("Show"), 0, this ); |
860 | mShowAction->addTo( mCurrentItemMenu ); | 863 | mShowAction->addTo( mCurrentItemMenu ); |
861 | connect( mShowAction, SIGNAL( activated() ), | 864 | connect( mShowAction, SIGNAL( activated() ), |
862 | mView, SLOT( showIncidence() ) ); | 865 | mView, SLOT( showIncidence() ) ); |
863 | 866 | ||
864 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); | 867 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); |
865 | mEditAction->addTo( mCurrentItemMenu ); | 868 | mEditAction->addTo( mCurrentItemMenu ); |
866 | connect( mEditAction, SIGNAL( activated() ), | 869 | connect( mEditAction, SIGNAL( activated() ), |
867 | mView, SLOT( editIncidence() ) ); | 870 | mView, SLOT( editIncidence() ) ); |
868 | 871 | ||
869 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); | 872 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); |
870 | mDeleteAction->addTo( mCurrentItemMenu ); | 873 | mDeleteAction->addTo( mCurrentItemMenu ); |
871 | connect( mDeleteAction, SIGNAL( activated() ), | 874 | connect( mDeleteAction, SIGNAL( activated() ), |
872 | mView, SLOT( deleteIncidence() ) ); | 875 | mView, SLOT( deleteIncidence() ) ); |
873 | 876 | ||
874 | 877 | ||
875 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); | 878 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); |
876 | mCloneAction->addTo( mCurrentItemMenu ); | 879 | mCloneAction->addTo( mCurrentItemMenu ); |
877 | connect( mCloneAction, SIGNAL( activated() ), | 880 | connect( mCloneAction, SIGNAL( activated() ), |
878 | mView, SLOT( cloneIncidence() ) ); | 881 | mView, SLOT( cloneIncidence() ) ); |
879 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); | 882 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); |
880 | mMoveAction->addTo( mCurrentItemMenu ); | 883 | mMoveAction->addTo( mCurrentItemMenu ); |
881 | connect( mMoveAction, SIGNAL( activated() ), | 884 | connect( mMoveAction, SIGNAL( activated() ), |
882 | mView, SLOT( moveIncidence() ) ); | 885 | mView, SLOT( moveIncidence() ) ); |
883 | #ifndef DESKTOP_VERSION | 886 | #ifndef DESKTOP_VERSION |
884 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); | 887 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); |
885 | mBeamAction->addTo(mCurrentItemMenu ); | 888 | mBeamAction->addTo(mCurrentItemMenu ); |
886 | connect( mBeamAction, SIGNAL( activated() ), | 889 | connect( mBeamAction, SIGNAL( activated() ), |
887 | mView, SLOT( beamIncidence() ) ); | 890 | mView, SLOT( beamIncidence() ) ); |
888 | #endif | 891 | #endif |
889 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); | 892 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); |
890 | mCancelAction->addTo( mCurrentItemMenu ); | 893 | mCancelAction->addTo( mCurrentItemMenu ); |
891 | connect( mCancelAction, SIGNAL( activated() ), | 894 | connect( mCancelAction, SIGNAL( activated() ), |
892 | mView, SLOT( toggleCancelIncidence() ) ); | 895 | mView, SLOT( toggleCancelIncidence() ) ); |
893 | 896 | ||
894 | 897 | ||
895 | mCurrentItemMenu->insertSeparator(); | 898 | mCurrentItemMenu->insertSeparator(); |
896 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); | 899 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); |
897 | action->addTo( mCurrentItemMenu ); | 900 | action->addTo( mCurrentItemMenu ); |
898 | connect( action, SIGNAL( activated() ), | 901 | connect( action, SIGNAL( activated() ), |
899 | mView, SLOT( undo_delete() ) ); | 902 | mView, SLOT( undo_delete() ) ); |
900 | 903 | ||
901 | // *********************** | 904 | // *********************** |
902 | if ( KOPrefs::instance()->mVerticalScreen ) { | 905 | if ( KOPrefs::instance()->mVerticalScreen ) { |
903 | icon = SmallIcon( "1updownarrow" ); | 906 | icon = SmallIcon( "1updownarrow" ); |
904 | } else { | 907 | } else { |
905 | icon = SmallIcon("1leftrightarrow" ); | 908 | icon = SmallIcon("1leftrightarrow" ); |
906 | } | 909 | } |
907 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); | 910 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); |
908 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); | 911 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); |
909 | FSaction->addTo( viewMenu ); | 912 | FSaction->addTo( viewMenu ); |
910 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); | 913 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); |
911 | 914 | ||
912 | 915 | ||
913 | icon = loadPixmap( pathString + "filter" ); | 916 | icon = loadPixmap( pathString + "filter" ); |
914 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); | 917 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); |
915 | icon = loadPixmap( pathString + "configure" ); | 918 | icon = loadPixmap( pathString + "configure" ); |
916 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); | 919 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); |
917 | action->addTo( viewMenu ); | 920 | action->addTo( viewMenu ); |
918 | connect( action, SIGNAL( activated() ), | 921 | connect( action, SIGNAL( activated() ), |
919 | mView, SLOT( toggleFilter() ) ); | 922 | mView, SLOT( toggleFilter() ) ); |
920 | mToggleFilter = action; | 923 | mToggleFilter = action; |
921 | icon = loadPixmap( pathString + "navi" ); | 924 | icon = loadPixmap( pathString + "navi" ); |
922 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); | 925 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); |
923 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); | 926 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); |
924 | action->addTo( viewMenu ); | 927 | action->addTo( viewMenu ); |
925 | connect( action, SIGNAL( activated() ), | 928 | connect( action, SIGNAL( activated() ), |
926 | mView, SLOT( toggleDateNavigatorWidget() ) ); | 929 | mView, SLOT( toggleDateNavigatorWidget() ) ); |
927 | mToggleNav = action ; | 930 | mToggleNav = action ; |
928 | icon = loadPixmap( pathString + "allday" ); | 931 | icon = loadPixmap( pathString + "allday" ); |
929 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); | 932 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); |
930 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); | 933 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); |
931 | action->addTo( viewMenu ); | 934 | action->addTo( viewMenu ); |
932 | connect( action, SIGNAL( activated() ), | 935 | connect( action, SIGNAL( activated() ), |
933 | mView, SLOT( toggleAllDaySize() ) ); | 936 | mView, SLOT( toggleAllDaySize() ) ); |
934 | mToggleAllday = action; | 937 | mToggleAllday = action; |
935 | 938 | ||
936 | 939 | ||
937 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 940 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
938 | mToggleNav, SLOT( setEnabled ( bool ) ) ); | 941 | mToggleNav, SLOT( setEnabled ( bool ) ) ); |
939 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 942 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
940 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); | 943 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); |
941 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 944 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
942 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); | 945 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); |
943 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 946 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
944 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); | 947 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); |
945 | 948 | ||
946 | 949 | ||
947 | dPickerAction->addTo( iconToolBar ); | 950 | dPickerAction->addTo( iconToolBar ); |
948 | viewMenu->insertSeparator(); | 951 | viewMenu->insertSeparator(); |
949 | 952 | ||
950 | if ( p-> mShowIconToggleFull ) | 953 | if ( p-> mShowIconToggleFull ) |
951 | FSaction->addTo( iconToolBar ); | 954 | FSaction->addTo( iconToolBar ); |
952 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); | 955 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); |
953 | 956 | ||
954 | //******************** | 957 | //******************** |
955 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); | 958 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); |
956 | 959 | ||
957 | 960 | ||
958 | icon = loadPixmap( pathString + "whatsnext" ); | 961 | icon = loadPixmap( pathString + "whatsnext" ); |
959 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); | 962 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); |
960 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); | 963 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); |
961 | whatsnext_action->addTo( viewMenu ); | 964 | whatsnext_action->addTo( viewMenu ); |
962 | connect( whatsnext_action, SIGNAL( activated() ), | 965 | connect( whatsnext_action, SIGNAL( activated() ), |
963 | mView->viewManager(), SLOT( showWhatsNextView() ) ); | 966 | mView->viewManager(), SLOT( showWhatsNextView() ) ); |
964 | 967 | ||
965 | icon = loadPixmap( pathString + "xdays" ); | 968 | icon = loadPixmap( pathString + "xdays" ); |
966 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); | 969 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); |
967 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); | 970 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); |
968 | xdays_action->addTo( viewMenu ); | 971 | xdays_action->addTo( viewMenu ); |
969 | connect( xdays_action, SIGNAL( activated() ), | 972 | connect( xdays_action, SIGNAL( activated() ), |
970 | mView->viewManager(), SLOT( showNextXView() ) ); | 973 | mView->viewManager(), SLOT( showNextXView() ) ); |
971 | 974 | ||
972 | 975 | ||
973 | icon = loadPixmap( pathString + "journal" ); | 976 | icon = loadPixmap( pathString + "journal" ); |
974 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); | 977 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); |
975 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); | 978 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); |
976 | viewjournal_action->addTo( viewMenu ); | 979 | viewjournal_action->addTo( viewMenu ); |
977 | connect( viewjournal_action, SIGNAL( activated() ), | 980 | connect( viewjournal_action, SIGNAL( activated() ), |
978 | mView->viewManager(), SLOT( showJournalView() ) ); | 981 | mView->viewManager(), SLOT( showJournalView() ) ); |
979 | 982 | ||
980 | 983 | ||
981 | icon = loadPixmap( pathString + "day" ); | 984 | icon = loadPixmap( pathString + "day" ); |
982 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); | 985 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); |
983 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); | 986 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); |
984 | day1_action->addTo( viewMenu ); | 987 | day1_action->addTo( viewMenu ); |
985 | // action->addTo( toolBar ); | 988 | // action->addTo( toolBar ); |
986 | connect( day1_action, SIGNAL( activated() ), | 989 | connect( day1_action, SIGNAL( activated() ), |
987 | mView->viewManager(), SLOT( showDayView() ) ); | 990 | mView->viewManager(), SLOT( showDayView() ) ); |
988 | 991 | ||
989 | icon = loadPixmap( pathString + "workweek" ); | 992 | icon = loadPixmap( pathString + "workweek" ); |
990 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); | 993 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); |
991 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); | 994 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); |
992 | day5_action->addTo( viewMenu ); | 995 | day5_action->addTo( viewMenu ); |
993 | connect( day5_action, SIGNAL( activated() ), | 996 | connect( day5_action, SIGNAL( activated() ), |
994 | mView->viewManager(), SLOT( showWorkWeekView() ) ); | 997 | mView->viewManager(), SLOT( showWorkWeekView() ) ); |
995 | 998 | ||
996 | icon = loadPixmap( pathString + "week" ); | 999 | icon = loadPixmap( pathString + "week" ); |
997 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); | 1000 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); |
998 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); | 1001 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); |
999 | day7_action->addTo( viewMenu ); | 1002 | day7_action->addTo( viewMenu ); |
1000 | connect( day7_action, SIGNAL( activated() ), | 1003 | connect( day7_action, SIGNAL( activated() ), |
1001 | mView->viewManager(), SLOT( showWeekView() ) ); | 1004 | mView->viewManager(), SLOT( showWeekView() ) ); |
1002 | 1005 | ||
1003 | icon = loadPixmap( pathString + "workweek2" ); | 1006 | icon = loadPixmap( pathString + "workweek2" ); |
1004 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); | 1007 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); |
1005 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); | 1008 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); |
1006 | day6_action->addTo( viewMenu ); | 1009 | day6_action->addTo( viewMenu ); |
1007 | connect( day6_action, SIGNAL( activated() ), | 1010 | connect( day6_action, SIGNAL( activated() ), |
1008 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); | 1011 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); |
1009 | 1012 | ||
1010 | icon = loadPixmap( pathString + "month" ); | 1013 | icon = loadPixmap( pathString + "month" ); |
1011 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); | 1014 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); |
1012 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); | 1015 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); |
1013 | month_action->addTo( viewMenu ); | 1016 | month_action->addTo( viewMenu ); |
1014 | connect( month_action, SIGNAL( activated() ), | 1017 | connect( month_action, SIGNAL( activated() ), |
1015 | mView->viewManager(), SLOT( showMonthView() ) ); | 1018 | mView->viewManager(), SLOT( showMonthView() ) ); |
1016 | 1019 | ||
1017 | icon = loadPixmap( pathString + "list" ); | 1020 | icon = loadPixmap( pathString + "list" ); |
1018 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); | 1021 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); |
1019 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); | 1022 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); |
1020 | showlist_action->addTo( viewMenu ); | 1023 | showlist_action->addTo( viewMenu ); |
1021 | connect( showlist_action, SIGNAL( activated() ), | 1024 | connect( showlist_action, SIGNAL( activated() ), |
1022 | mView->viewManager(), SLOT( showListView() ) ); | 1025 | mView->viewManager(), SLOT( showListView() ) ); |
1023 | 1026 | ||
1024 | icon = loadPixmap( pathString + "todo" ); | 1027 | icon = loadPixmap( pathString + "todo" ); |
1025 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); | 1028 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); |
1026 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); | 1029 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); |
1027 | todoview_action->addTo( viewMenu ); | 1030 | todoview_action->addTo( viewMenu ); |
1028 | connect( todoview_action, SIGNAL( activated() ), | 1031 | connect( todoview_action, SIGNAL( activated() ), |
1029 | mView->viewManager(), SLOT( showTodoView() ) ); | 1032 | mView->viewManager(), SLOT( showTodoView() ) ); |
1030 | 1033 | ||
1031 | 1034 | ||
1032 | 1035 | ||
1033 | #if 0 | 1036 | #if 0 |
1034 | action = new QAction( "view_timespan", "Time Span", 0, this ); | 1037 | action = new QAction( "view_timespan", "Time Span", 0, this ); |
1035 | action->addTo( viewMenu ); | 1038 | action->addTo( viewMenu ); |
1036 | connect( action, SIGNAL( activated() ), | 1039 | connect( action, SIGNAL( activated() ), |
1037 | mView->viewManager(), SLOT( showTimeSpanView() ) ); | 1040 | mView->viewManager(), SLOT( showTimeSpanView() ) ); |
1038 | #endif | 1041 | #endif |
1039 | 1042 | ||
1040 | 1043 | ||
1041 | 1044 | ||
1042 | action = new QAction( "purge_completed", i18n("Purge Completed..."), 0, | 1045 | action = new QAction( "purge_completed", i18n("Purge Completed..."), 0, |
1043 | this ); | 1046 | this ); |
1044 | action->addTo( actionMenu ); | 1047 | action->addTo( actionMenu ); |
1045 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); | 1048 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); |
1046 | 1049 | ||
1047 | 1050 | ||
1048 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); | 1051 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); |
1049 | 1052 | ||
1050 | 1053 | ||
1051 | 1054 | ||
1052 | actionMenu->insertSeparator(); | 1055 | actionMenu->insertSeparator(); |
1053 | action = new QAction( "manage cat", i18n("Edit category list..."), 0, | 1056 | action = new QAction( "manage cat", i18n("Edit category list..."), 0, |
1054 | this ); | 1057 | this ); |
1055 | action->addTo( actionMenu ); | 1058 | action->addTo( actionMenu ); |
1056 | connect( action, SIGNAL( activated() ), mView, SLOT( editCategories() ) ); | 1059 | connect( action, SIGNAL( activated() ), mView, SLOT( editCategories() ) ); |
1057 | 1060 | ||
1058 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | 1061 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
1059 | this ); | 1062 | this ); |
1060 | action->addTo( actionMenu ); | 1063 | action->addTo( actionMenu ); |
1061 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 1064 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
1062 | 1065 | ||
1063 | 1066 | ||
1064 | actionMenu->insertSeparator(); | 1067 | actionMenu->insertSeparator(); |
1065 | icon = loadPixmap( pathString + "configure" ); | 1068 | icon = loadPixmap( pathString + "configure" ); |
1066 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); | 1069 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); |
1067 | action->addTo( actionMenu ); | 1070 | action->addTo( actionMenu ); |
1068 | connect( action, SIGNAL( activated() ), | 1071 | connect( action, SIGNAL( activated() ), |
1069 | mView, SLOT( edit_options() ) ); | 1072 | mView, SLOT( edit_options() ) ); |
1070 | action = new QAction( i18n("Configure"),icon, i18n("Configure Calendar Files..."), 0, this ); | 1073 | action = new QAction( i18n("Configure"),icon, i18n("Configure Calendar Files..."), 0, this ); |
1071 | action->addTo( actionMenu ); | 1074 | action->addTo( actionMenu ); |
1072 | connect( action, SIGNAL( activated() ), | 1075 | connect( action, SIGNAL( activated() ), |
1073 | this, SLOT( calHint() ) ); | 1076 | this, SLOT( calHint() ) ); |
1074 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); | 1077 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); |
1075 | action->addTo( actionMenu ); | 1078 | action->addTo( actionMenu ); |
1076 | connect( action, SIGNAL( activated() ), | 1079 | connect( action, SIGNAL( activated() ), |
1077 | mView, SLOT( edit_global_options() ) ); | 1080 | mView, SLOT( edit_global_options() ) ); |
1078 | if ( KOPrefs::instance()->mShowFullMenu ) { | 1081 | if ( KOPrefs::instance()->mShowFullMenu ) { |
1079 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); | 1082 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); |
1080 | 1083 | ||
1081 | } | 1084 | } |
1082 | // actionMenu->insertSeparator(); | 1085 | // actionMenu->insertSeparator(); |
1083 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, | 1086 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, |
1084 | this ); | 1087 | this ); |
1085 | action->addTo( importMenu_X ); | 1088 | action->addTo( importMenu_X ); |
1086 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); | 1089 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); |
1087 | action = new QAction( "import_quick", i18n("Import last file"), 0, | 1090 | action = new QAction( "import_quick", i18n("Import last file"), 0, |
1088 | this ); | 1091 | this ); |
1089 | action->addTo( importMenu_X ); | 1092 | action->addTo( importMenu_X ); |
1090 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); | 1093 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); |
1091 | importMenu_X->insertSeparator(); | 1094 | importMenu_X->insertSeparator(); |
1092 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, | 1095 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, |
1093 | this ); | 1096 | this ); |
1094 | action->addTo( importMenu_X ); | 1097 | action->addTo( importMenu_X ); |
1095 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); | 1098 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); |
1096 | //#ifndef DESKTOP_VERSION | 1099 | //#ifndef DESKTOP_VERSION |
1097 | importMenu_X->insertSeparator(); | 1100 | importMenu_X->insertSeparator(); |
1098 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, | 1101 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, |
1099 | this ); | 1102 | this ); |
1100 | action->addTo( importMenu_X ); | 1103 | action->addTo( importMenu_X ); |
1101 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 1104 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
1102 | //#else | 1105 | //#else |
1103 | #ifdef _OL_IMPORT_ | 1106 | #ifdef _OL_IMPORT_ |
1104 | importMenu_X->insertSeparator(); | 1107 | importMenu_X->insertSeparator(); |
1105 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 1108 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
1106 | this ); | 1109 | this ); |
1107 | action->addTo( importMenu_X ); | 1110 | action->addTo( importMenu_X ); |
1108 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); | 1111 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); |
1109 | #endif | 1112 | #endif |
1110 | //#endif | 1113 | //#endif |
1111 | 1114 | ||
1112 | //importMenu->insertSeparator(); | 1115 | //importMenu->insertSeparator(); |
1113 | #if 0 | 1116 | #if 0 |
1114 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 1117 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
1115 | this ); | 1118 | this ); |
1116 | action->addTo( importMenu ); | 1119 | action->addTo( importMenu ); |
1117 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 1120 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
1118 | #endif | 1121 | #endif |
1119 | action = new QAction( "save_cal", i18n("Save Backup..."), 0, | 1122 | action = new QAction( "save_cal", i18n("Save Backup..."), 0, |
1120 | this ); | 1123 | this ); |
1121 | action->addTo( importMenu ); | 1124 | action->addTo( importMenu ); |
1122 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 1125 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
1123 | importMenu->insertSeparator(); | 1126 | importMenu->insertSeparator(); |
1124 | importMenu->insertItem( i18n("Import"), importMenu_X ); | 1127 | importMenu->insertItem( i18n("Import"), importMenu_X ); |
1125 | //importMenu->insertSeparator(); | 1128 | //importMenu->insertSeparator(); |
1126 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 1129 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
1127 | this ); | 1130 | this ); |
1128 | action->addTo( exportMenu_X ); | 1131 | action->addTo( exportMenu_X ); |
1129 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 1132 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); |
1130 | 1133 | ||
1131 | 1134 | ||
1132 | //LR | 1135 | //LR |
1133 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 1136 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
1134 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1137 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1135 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1138 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1136 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 1139 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
1137 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); | 1140 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); |
1138 | 1141 | ||
1139 | importMenu->insertItem( i18n("Export"), exportMenu_X ); | 1142 | importMenu->insertItem( i18n("Export"), exportMenu_X ); |
1140 | mPrintSelAction = 0; | 1143 | mPrintSelAction = 0; |
1141 | #ifndef DESKTOP_VERSION | 1144 | #ifndef DESKTOP_VERSION |
1142 | //importMenu->insertSeparator(); | 1145 | //importMenu->insertSeparator(); |
1143 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 1146 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
1144 | this ); | 1147 | this ); |
1145 | brAction->addTo( beamMenu_X ); | 1148 | brAction->addTo( beamMenu_X ); |
1146 | brAction->setToggleAction (true ) ; | 1149 | brAction->setToggleAction (true ) ; |
1147 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 1150 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
1148 | 1151 | ||
1149 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 1152 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
1150 | this ); | 1153 | this ); |
1151 | action->addTo( beamMenu_X ); | 1154 | action->addTo( beamMenu_X ); |
1152 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 1155 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
1153 | 1156 | ||
1154 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 1157 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
1155 | this ); | 1158 | this ); |
1156 | action->addTo( beamMenu_X ); | 1159 | action->addTo( beamMenu_X ); |
1157 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 1160 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
1158 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); | 1161 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); |
1159 | #else | 1162 | #else |
1160 | //importMenu->insertSeparator(); | 1163 | //importMenu->insertSeparator(); |
1161 | icon = loadPixmap( pathString + "print" ); | 1164 | icon = loadPixmap( pathString + "print" ); |
1162 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 1165 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
1163 | action->addTo( beamMenu_X ); | 1166 | action->addTo( beamMenu_X ); |
1164 | connect( action, SIGNAL( activated() ), | 1167 | connect( action, SIGNAL( activated() ), |
1165 | this, SLOT( printCal() ) ); | 1168 | this, SLOT( printCal() ) ); |
1166 | 1169 | ||
1167 | icon = loadPixmap( pathString + "week" ); | 1170 | icon = loadPixmap( pathString + "week" ); |
1168 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 1171 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
1169 | action->addTo( beamMenu_X ); | 1172 | action->addTo( beamMenu_X ); |
1170 | connect( action, SIGNAL( activated() ), | 1173 | connect( action, SIGNAL( activated() ), |
1171 | this, SLOT( printSel() ) ); | 1174 | this, SLOT( printSel() ) ); |
1172 | icon = loadPixmap( pathString + "whatsnext" ); | 1175 | icon = loadPixmap( pathString + "whatsnext" ); |
1173 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 1176 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
1174 | action->addTo( beamMenu_X ); | 1177 | action->addTo( beamMenu_X ); |
1175 | connect( action, SIGNAL( activated() ), | 1178 | connect( action, SIGNAL( activated() ), |
1176 | mView->viewManager(), SLOT( slotprintWNV() ) ); | 1179 | mView->viewManager(), SLOT( slotprintWNV() ) ); |
1177 | 1180 | ||
1178 | 1181 | ||
1179 | icon = loadPixmap( pathString + "list" ); | 1182 | icon = loadPixmap( pathString + "list" ); |
1180 | action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); | 1183 | action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); |
1181 | action->addTo( beamMenu_X ); | 1184 | action->addTo( beamMenu_X ); |
1182 | connect( action, SIGNAL( activated() ), | 1185 | connect( action, SIGNAL( activated() ), |
1183 | this, SLOT( printListView() ) ); | 1186 | this, SLOT( printListView() ) ); |
1184 | 1187 | ||
1185 | icon = loadPixmap( pathString + "newevent" ); | 1188 | icon = loadPixmap( pathString + "newevent" ); |
1186 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); | 1189 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); |
1187 | action->addTo( beamMenu_X ); | 1190 | action->addTo( beamMenu_X ); |
1188 | connect( action, SIGNAL( activated() ), | 1191 | connect( action, SIGNAL( activated() ), |
1189 | mView, SLOT( slotprintSelInc() ) ); | 1192 | mView, SLOT( slotprintSelInc() ) ); |
1190 | mPrintSelAction = action; | 1193 | mPrintSelAction = action; |
1191 | importMenu->insertItem( i18n("Print"), beamMenu_X ); | 1194 | importMenu->insertItem( i18n("Print"), beamMenu_X ); |
1192 | #endif | 1195 | #endif |
1193 | 1196 | ||
1194 | importMenu->insertSeparator(); | 1197 | importMenu->insertSeparator(); |
1195 | action = new QAction( "beam all", i18n("Save"), 0, | 1198 | action = new QAction( "beam all", i18n("Save"), 0, |
1196 | this ); | 1199 | this ); |
1197 | action->addTo( importMenu ); | 1200 | action->addTo( importMenu ); |
1198 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 1201 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
1199 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 1202 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
1200 | this ); | 1203 | this ); |
1201 | action->addTo( importMenu ); | 1204 | action->addTo( importMenu ); |
1202 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 1205 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
1203 | 1206 | ||
1204 | //menuBar->insertItem( "Configure",configureMenu ); | 1207 | //menuBar->insertItem( "Configure",configureMenu ); |
1205 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 1208 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
1206 | icon = loadPixmap( "korganizer/korganizer" ); | 1209 | icon = loadPixmap( "korganizer/korganizer" ); |
1207 | 1210 | ||
1208 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 1211 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
1209 | action->addTo( helpMenu ); | 1212 | action->addTo( helpMenu ); |
1210 | connect( action, SIGNAL( activated() ), | 1213 | connect( action, SIGNAL( activated() ), |
1211 | SLOT( whatsNew() ) ); | 1214 | SLOT( whatsNew() ) ); |
1212 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 1215 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
1213 | action->addTo( helpMenu ); | 1216 | action->addTo( helpMenu ); |
1214 | connect( action, SIGNAL( activated() ), | 1217 | connect( action, SIGNAL( activated() ), |
1215 | SLOT( features() ) ); | 1218 | SLOT( features() ) ); |
1216 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 1219 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
1217 | action->addTo( helpMenu ); | 1220 | action->addTo( helpMenu ); |
1218 | connect( action, SIGNAL( activated() ), | 1221 | connect( action, SIGNAL( activated() ), |
1219 | SLOT( keyBindings() ) ); | 1222 | SLOT( keyBindings() ) ); |
1220 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); | 1223 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); |
1221 | action->addTo( helpMenu ); | 1224 | action->addTo( helpMenu ); |
1222 | connect( action, SIGNAL( activated() ), | 1225 | connect( action, SIGNAL( activated() ), |
1223 | SLOT( storagehowto() ) ); | 1226 | SLOT( storagehowto() ) ); |
1224 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); | 1227 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); |
1225 | action->addTo( helpMenu ); | 1228 | action->addTo( helpMenu ); |
1226 | connect( action, SIGNAL( activated() ), | 1229 | connect( action, SIGNAL( activated() ), |
1227 | SLOT( timetrackinghowto() ) ); | 1230 | SLOT( timetrackinghowto() ) ); |
1228 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 1231 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
1229 | action->addTo( helpMenu ); | 1232 | action->addTo( helpMenu ); |
1230 | connect( action, SIGNAL( activated() ), | 1233 | connect( action, SIGNAL( activated() ), |
1231 | SLOT( synchowto() ) ); | 1234 | SLOT( synchowto() ) ); |
1232 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 1235 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
1233 | action->addTo( helpMenu ); | 1236 | action->addTo( helpMenu ); |
1234 | connect( action, SIGNAL( activated() ), | 1237 | connect( action, SIGNAL( activated() ), |
1235 | SLOT( kdesynchowto() ) ); | 1238 | SLOT( kdesynchowto() ) ); |
1236 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 1239 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
1237 | action->addTo( helpMenu ); | 1240 | action->addTo( helpMenu ); |
1238 | connect( action, SIGNAL( activated() ), | 1241 | connect( action, SIGNAL( activated() ), |
1239 | SLOT( multisynchowto() ) ); | 1242 | SLOT( multisynchowto() ) ); |
1240 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 1243 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
1241 | action->addTo( helpMenu ); | 1244 | action->addTo( helpMenu ); |
1242 | connect( action, SIGNAL( activated() ), | 1245 | connect( action, SIGNAL( activated() ), |
1243 | SLOT( aboutAutoSaving() ) ); | 1246 | SLOT( aboutAutoSaving() ) ); |
1244 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 1247 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
1245 | action->addTo( helpMenu ); | 1248 | action->addTo( helpMenu ); |
1246 | connect( action, SIGNAL( activated() ), | 1249 | connect( action, SIGNAL( activated() ), |
1247 | SLOT( aboutKnownBugs() ) ); | 1250 | SLOT( aboutKnownBugs() ) ); |
1248 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 1251 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
1249 | action->addTo( helpMenu ); | 1252 | action->addTo( helpMenu ); |
1250 | connect( action, SIGNAL( activated() ), | 1253 | connect( action, SIGNAL( activated() ), |
1251 | SLOT( usertrans() ) ); | 1254 | SLOT( usertrans() ) ); |
1252 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 1255 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
diff --git a/libkcal/alarm.cpp b/libkcal/alarm.cpp index 79e0464..3157214 100644 --- a/libkcal/alarm.cpp +++ b/libkcal/alarm.cpp | |||
@@ -1,483 +1,483 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 1998 Preston Brown | 3 | Copyright (c) 1998 Preston Brown |
4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This library is free software; you can redistribute it and/or | 6 | This library is free software; you can redistribute it and/or |
7 | modify it under the terms of the GNU Library General Public | 7 | modify it under the terms of the GNU Library General Public |
8 | License as published by the Free Software Foundation; either | 8 | License as published by the Free Software Foundation; either |
9 | version 2 of the License, or (at your option) any later version. | 9 | version 2 of the License, or (at your option) any later version. |
10 | 10 | ||
11 | This library is distributed in the hope that it will be useful, | 11 | This library is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | Library General Public License for more details. | 14 | Library General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU Library General Public License | 16 | You should have received a copy of the GNU Library General Public License |
17 | along with this library; see the file COPYING.LIB. If not, write to | 17 | along with this library; see the file COPYING.LIB. If not, write to |
18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 18 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
19 | Boston, MA 02111-1307, USA. | 19 | Boston, MA 02111-1307, USA. |
20 | */ | 20 | */ |
21 | 21 | ||
22 | #include <kdebug.h> | 22 | #include <kdebug.h> |
23 | #include <klocale.h> | 23 | #include <klocale.h> |
24 | 24 | ||
25 | #include "incidence.h" | 25 | #include "incidence.h" |
26 | #include "todo.h" | 26 | #include "todo.h" |
27 | 27 | ||
28 | #include "alarm.h" | 28 | #include "alarm.h" |
29 | 29 | ||
30 | using namespace KCal; | 30 | using namespace KCal; |
31 | #include <qwidget.h> | 31 | #include <qwidget.h> |
32 | Alarm::Alarm(Incidence *parent) | 32 | Alarm::Alarm(Incidence *parent) |
33 | : mParent(parent), | 33 | : mParent(parent), |
34 | mType(Audio), | 34 | mType(Audio), |
35 | mDescription(""), // to make operator==() not fail | 35 | mDescription(""), // to make operator==() not fail |
36 | mFile(""), // to make operator==() not fail | 36 | mFile(""), // to make operator==() not fail |
37 | mMailSubject(""), // to make operator==() not fail | 37 | mMailSubject(""), // to make operator==() not fail |
38 | mAlarmSnoozeTime(5), | 38 | mAlarmSnoozeTime(5), |
39 | mAlarmRepeatCount(0), | 39 | mAlarmRepeatCount(0), |
40 | mEndOffset(false), | 40 | mEndOffset(false), |
41 | mHasTime(false), | 41 | mHasTime(false), |
42 | mAlarmEnabled(false) | 42 | mAlarmEnabled(false) |
43 | { | 43 | { |
44 | 44 | ||
45 | } | 45 | } |
46 | 46 | ||
47 | Alarm::~Alarm() | 47 | Alarm::~Alarm() |
48 | { | 48 | { |
49 | } | 49 | } |
50 | 50 | ||
51 | bool Alarm::operator==( const Alarm& rhs ) const | 51 | bool Alarm::operator==( const Alarm& rhs ) const |
52 | { | 52 | { |
53 | 53 | ||
54 | if ( mType != rhs.mType || | 54 | if ( mType != rhs.mType || |
55 | mAlarmSnoozeTime != rhs.mAlarmSnoozeTime || | 55 | mAlarmSnoozeTime != rhs.mAlarmSnoozeTime || |
56 | mAlarmRepeatCount != rhs.mAlarmRepeatCount || | 56 | mAlarmRepeatCount != rhs.mAlarmRepeatCount || |
57 | mAlarmEnabled != rhs.mAlarmEnabled || | 57 | mAlarmEnabled != rhs.mAlarmEnabled || |
58 | mHasTime != rhs.mHasTime) | 58 | mHasTime != rhs.mHasTime) |
59 | return false; | 59 | return false; |
60 | 60 | ||
61 | #if 0 | 61 | #if 0 |
62 | if ( mType != rhs.mType ) { | 62 | if ( mType != rhs.mType ) { |
63 | 63 | ||
64 | qDebug("aaa1 "); | 64 | qDebug("aaa1 "); |
65 | return false; | 65 | return false; |
66 | } | 66 | } |
67 | 67 | ||
68 | if ( mAlarmSnoozeTime != rhs.mAlarmSnoozeTime ) { | 68 | if ( mAlarmSnoozeTime != rhs.mAlarmSnoozeTime ) { |
69 | 69 | ||
70 | qDebug("aaa2 "); | 70 | qDebug("aaa2 "); |
71 | return false; | 71 | return false; |
72 | } | 72 | } |
73 | 73 | ||
74 | 74 | ||
75 | if ( mAlarmRepeatCount != rhs.mAlarmRepeatCount ) { | 75 | if ( mAlarmRepeatCount != rhs.mAlarmRepeatCount ) { |
76 | 76 | ||
77 | qDebug("aaa3 "); | 77 | qDebug("aaa3 "); |
78 | return false; | 78 | return false; |
79 | } | 79 | } |
80 | 80 | ||
81 | if ( mAlarmEnabled != rhs.mAlarmEnabled ) { | 81 | if ( mAlarmEnabled != rhs.mAlarmEnabled ) { |
82 | 82 | ||
83 | qDebug("aaa4 "); | 83 | qDebug("aaa4 "); |
84 | return false; | 84 | return false; |
85 | } | 85 | } |
86 | 86 | ||
87 | if ( mHasTime != rhs.mHasTime ) { | 87 | if ( mHasTime != rhs.mHasTime ) { |
88 | 88 | ||
89 | qDebug("aaa5 "); | 89 | qDebug("aaa5 "); |
90 | return false; | 90 | return false; |
91 | } | 91 | } |
92 | #endif | 92 | #endif |
93 | 93 | ||
94 | 94 | ||
95 | if (mHasTime) { | 95 | if (mHasTime) { |
96 | if (mAlarmTime != rhs.mAlarmTime) | 96 | if (mAlarmTime != rhs.mAlarmTime) |
97 | return false; | 97 | return false; |
98 | } else { | 98 | } else { |
99 | if (mOffset != rhs.mOffset || | 99 | if (mOffset != rhs.mOffset || |
100 | mEndOffset != rhs.mEndOffset) | 100 | mEndOffset != rhs.mEndOffset) |
101 | return false; | 101 | return false; |
102 | } | 102 | } |
103 | switch (mType) { | 103 | switch (mType) { |
104 | case Display: | 104 | case Display: |
105 | return mDescription == rhs.mDescription; | 105 | return mDescription == rhs.mDescription; |
106 | 106 | ||
107 | case Email: | 107 | case Email: |
108 | return mDescription == rhs.mDescription && | 108 | return mDescription == rhs.mDescription && |
109 | mMailAttachFiles == rhs.mMailAttachFiles && | 109 | mMailAttachFiles == rhs.mMailAttachFiles && |
110 | mMailAddresses == rhs.mMailAddresses && | 110 | mMailAddresses == rhs.mMailAddresses && |
111 | mMailSubject == rhs.mMailSubject; | 111 | mMailSubject == rhs.mMailSubject; |
112 | 112 | ||
113 | case Procedure: | 113 | case Procedure: |
114 | return mFile == rhs.mFile && | 114 | return mFile == rhs.mFile && |
115 | mDescription == rhs.mDescription; | 115 | mDescription == rhs.mDescription; |
116 | 116 | ||
117 | case Audio: | 117 | case Audio: |
118 | return mFile == rhs.mFile; | 118 | return mFile == rhs.mFile; |
119 | 119 | ||
120 | case Invalid: | 120 | case Invalid: |
121 | break; | 121 | break; |
122 | } | 122 | } |
123 | return false; | 123 | return false; |
124 | } | 124 | } |
125 | 125 | ||
126 | void Alarm::setType(Alarm::Type type) | 126 | void Alarm::setType(Alarm::Type type) |
127 | { | 127 | { |
128 | if (type == mType) | 128 | if (type == mType) |
129 | return; | 129 | return; |
130 | 130 | ||
131 | switch (type) { | 131 | switch (type) { |
132 | case Display: | 132 | case Display: |
133 | mDescription = ""; | 133 | mDescription = ""; |
134 | break; | 134 | break; |
135 | case Procedure: | 135 | case Procedure: |
136 | mFile = mDescription = ""; | 136 | mFile = mDescription = ""; |
137 | break; | 137 | break; |
138 | case Audio: | 138 | case Audio: |
139 | mFile = ""; | 139 | mFile = ""; |
140 | break; | 140 | break; |
141 | case Email: | 141 | case Email: |
142 | mMailSubject = mDescription = ""; | 142 | mMailSubject = mDescription = ""; |
143 | mMailAddresses.clear(); | 143 | mMailAddresses.clear(); |
144 | mMailAttachFiles.clear(); | 144 | mMailAttachFiles.clear(); |
145 | break; | 145 | break; |
146 | case Invalid: | 146 | case Invalid: |
147 | break; | 147 | break; |
148 | default: | 148 | default: |
149 | return; | 149 | return; |
150 | } | 150 | } |
151 | mType = type; | 151 | mType = type; |
152 | mParent->updated(); | 152 | mParent->updated(); |
153 | } | 153 | } |
154 | 154 | ||
155 | Alarm::Type Alarm::type() const | 155 | Alarm::Type Alarm::type() const |
156 | { | 156 | { |
157 | return mType; | 157 | return mType; |
158 | } | 158 | } |
159 | 159 | ||
160 | void Alarm::setAudioAlarm(const QString &audioFile) | 160 | void Alarm::setAudioAlarm(const QString &audioFile) |
161 | { | 161 | { |
162 | mType = Audio; | 162 | mType = Audio; |
163 | mFile = audioFile; | 163 | mFile = audioFile; |
164 | mParent->updated(); | 164 | mParent->updated(); |
165 | } | 165 | } |
166 | 166 | ||
167 | void Alarm::setAudioFile(const QString &audioFile) | 167 | void Alarm::setAudioFile(const QString &audioFile) |
168 | { | 168 | { |
169 | if (mType == Audio) { | 169 | if (mType == Audio) { |
170 | mFile = audioFile; | 170 | mFile = audioFile; |
171 | mParent->updated(); | 171 | mParent->updated(); |
172 | } | 172 | } |
173 | } | 173 | } |
174 | 174 | ||
175 | QString Alarm::audioFile() const | 175 | QString Alarm::audioFile() const |
176 | { | 176 | { |
177 | return (mType == Audio) ? mFile : QString::null; | 177 | return (mType == Audio) ? mFile : QString::null; |
178 | } | 178 | } |
179 | 179 | ||
180 | void Alarm::setProcedureAlarm(const QString &programFile, const QString &arguments) | 180 | void Alarm::setProcedureAlarm(const QString &programFile, const QString &arguments) |
181 | { | 181 | { |
182 | mType = Procedure; | 182 | mType = Procedure; |
183 | mFile = programFile; | 183 | mFile = programFile; |
184 | mDescription = arguments; | 184 | mDescription = arguments; |
185 | mParent->updated(); | 185 | mParent->updated(); |
186 | } | 186 | } |
187 | 187 | ||
188 | void Alarm::setProgramFile(const QString &programFile) | 188 | void Alarm::setProgramFile(const QString &programFile) |
189 | { | 189 | { |
190 | if (mType == Procedure) { | 190 | if (mType == Procedure) { |
191 | mFile = programFile; | 191 | mFile = programFile; |
192 | mParent->updated(); | 192 | mParent->updated(); |
193 | } | 193 | } |
194 | } | 194 | } |
195 | 195 | ||
196 | QString Alarm::programFile() const | 196 | QString Alarm::programFile() const |
197 | { | 197 | { |
198 | return (mType == Procedure) ? mFile : QString::null; | 198 | return (mType == Procedure) ? mFile : QString::null; |
199 | } | 199 | } |
200 | 200 | ||
201 | void Alarm::setProgramArguments(const QString &arguments) | 201 | void Alarm::setProgramArguments(const QString &arguments) |
202 | { | 202 | { |
203 | if (mType == Procedure) { | 203 | if (mType == Procedure) { |
204 | mDescription = arguments; | 204 | mDescription = arguments; |
205 | mParent->updated(); | 205 | mParent->updated(); |
206 | } | 206 | } |
207 | } | 207 | } |
208 | 208 | ||
209 | QString Alarm::programArguments() const | 209 | QString Alarm::programArguments() const |
210 | { | 210 | { |
211 | return (mType == Procedure) ? mDescription : QString::null; | 211 | return (mType == Procedure) ? mDescription : QString::null; |
212 | } | 212 | } |
213 | 213 | ||
214 | void Alarm::setEmailAlarm(const QString &subject, const QString &text, | 214 | void Alarm::setEmailAlarm(const QString &subject, const QString &text, |
215 | const QValueList<Person> &addressees, const QStringList &attachments) | 215 | const QValueList<Person> &addressees, const QStringList &attachments) |
216 | { | 216 | { |
217 | mType = Email; | 217 | mType = Email; |
218 | mMailSubject = subject; | 218 | mMailSubject = subject; |
219 | mDescription = text; | 219 | mDescription = text; |
220 | mMailAddresses = addressees; | 220 | mMailAddresses = addressees; |
221 | mMailAttachFiles = attachments; | 221 | mMailAttachFiles = attachments; |
222 | mParent->updated(); | 222 | mParent->updated(); |
223 | } | 223 | } |
224 | 224 | ||
225 | void Alarm::setMailAddress(const Person &mailAddress) | 225 | void Alarm::setMailAddress(const Person &mailAddress) |
226 | { | 226 | { |
227 | if (mType == Email) { | 227 | if (mType == Email) { |
228 | mMailAddresses.clear(); | 228 | mMailAddresses.clear(); |
229 | mMailAddresses += mailAddress; | 229 | mMailAddresses += mailAddress; |
230 | mParent->updated(); | 230 | mParent->updated(); |
231 | } | 231 | } |
232 | } | 232 | } |
233 | 233 | ||
234 | void Alarm::setMailAddresses(const QValueList<Person> &mailAddresses) | 234 | void Alarm::setMailAddresses(const QValueList<Person> &mailAddresses) |
235 | { | 235 | { |
236 | if (mType == Email) { | 236 | if (mType == Email) { |
237 | mMailAddresses = mailAddresses; | 237 | mMailAddresses = mailAddresses; |
238 | mParent->updated(); | 238 | mParent->updated(); |
239 | } | 239 | } |
240 | } | 240 | } |
241 | 241 | ||
242 | void Alarm::addMailAddress(const Person &mailAddress) | 242 | void Alarm::addMailAddress(const Person &mailAddress) |
243 | { | 243 | { |
244 | if (mType == Email) { | 244 | if (mType == Email) { |
245 | mMailAddresses += mailAddress; | 245 | mMailAddresses += mailAddress; |
246 | mParent->updated(); | 246 | mParent->updated(); |
247 | } | 247 | } |
248 | } | 248 | } |
249 | 249 | ||
250 | QValueList<Person> Alarm::mailAddresses() const | 250 | QValueList<Person> Alarm::mailAddresses() const |
251 | { | 251 | { |
252 | return (mType == Email) ? mMailAddresses : QValueList<Person>(); | 252 | return (mType == Email) ? mMailAddresses : QValueList<Person>(); |
253 | } | 253 | } |
254 | 254 | ||
255 | void Alarm::setMailSubject(const QString &mailAlarmSubject) | 255 | void Alarm::setMailSubject(const QString &mailAlarmSubject) |
256 | { | 256 | { |
257 | if (mType == Email) { | 257 | if (mType == Email) { |
258 | mMailSubject = mailAlarmSubject; | 258 | mMailSubject = mailAlarmSubject; |
259 | mParent->updated(); | 259 | mParent->updated(); |
260 | } | 260 | } |
261 | } | 261 | } |
262 | 262 | ||
263 | QString Alarm::mailSubject() const | 263 | QString Alarm::mailSubject() const |
264 | { | 264 | { |
265 | return (mType == Email) ? mMailSubject : QString::null; | 265 | return (mType == Email) ? mMailSubject : QString::null; |
266 | } | 266 | } |
267 | 267 | ||
268 | void Alarm::setMailAttachment(const QString &mailAttachFile) | 268 | void Alarm::setMailAttachment(const QString &mailAttachFile) |
269 | { | 269 | { |
270 | if (mType == Email) { | 270 | if (mType == Email) { |
271 | mMailAttachFiles.clear(); | 271 | mMailAttachFiles.clear(); |
272 | mMailAttachFiles += mailAttachFile; | 272 | mMailAttachFiles += mailAttachFile; |
273 | mParent->updated(); | 273 | mParent->updated(); |
274 | } | 274 | } |
275 | } | 275 | } |
276 | 276 | ||
277 | void Alarm::setMailAttachments(const QStringList &mailAttachFiles) | 277 | void Alarm::setMailAttachments(const QStringList &mailAttachFiles) |
278 | { | 278 | { |
279 | if (mType == Email) { | 279 | if (mType == Email) { |
280 | mMailAttachFiles = mailAttachFiles; | 280 | mMailAttachFiles = mailAttachFiles; |
281 | mParent->updated(); | 281 | mParent->updated(); |
282 | } | 282 | } |
283 | } | 283 | } |
284 | 284 | ||
285 | void Alarm::addMailAttachment(const QString &mailAttachFile) | 285 | void Alarm::addMailAttachment(const QString &mailAttachFile) |
286 | { | 286 | { |
287 | if (mType == Email) { | 287 | if (mType == Email) { |
288 | mMailAttachFiles += mailAttachFile; | 288 | mMailAttachFiles += mailAttachFile; |
289 | mParent->updated(); | 289 | mParent->updated(); |
290 | } | 290 | } |
291 | } | 291 | } |
292 | 292 | ||
293 | QStringList Alarm::mailAttachments() const | 293 | QStringList Alarm::mailAttachments() const |
294 | { | 294 | { |
295 | return (mType == Email) ? mMailAttachFiles : QStringList(); | 295 | return (mType == Email) ? mMailAttachFiles : QStringList(); |
296 | } | 296 | } |
297 | 297 | ||
298 | void Alarm::setMailText(const QString &text) | 298 | void Alarm::setMailText(const QString &text) |
299 | { | 299 | { |
300 | if (mType == Email) { | 300 | if (mType == Email) { |
301 | mDescription = text; | 301 | mDescription = text; |
302 | mParent->updated(); | 302 | mParent->updated(); |
303 | } | 303 | } |
304 | } | 304 | } |
305 | 305 | ||
306 | QString Alarm::mailText() const | 306 | QString Alarm::mailText() const |
307 | { | 307 | { |
308 | return (mType == Email) ? mDescription : QString::null; | 308 | return (mType == Email) ? mDescription : QString::null; |
309 | } | 309 | } |
310 | 310 | ||
311 | void Alarm::setDisplayAlarm(const QString &text) | 311 | void Alarm::setDisplayAlarm(const QString &text) |
312 | { | 312 | { |
313 | mType = Display; | 313 | mType = Display; |
314 | mDescription = text; | 314 | mDescription = text; |
315 | mParent->updated(); | 315 | mParent->updated(); |
316 | } | 316 | } |
317 | 317 | ||
318 | void Alarm::setText(const QString &text) | 318 | void Alarm::setText(const QString &text) |
319 | { | 319 | { |
320 | if (mType == Display) { | 320 | if (mType == Display) { |
321 | mDescription = text; | 321 | mDescription = text; |
322 | mParent->updated(); | 322 | mParent->updated(); |
323 | } | 323 | } |
324 | } | 324 | } |
325 | 325 | ||
326 | QString Alarm::text() const | 326 | QString Alarm::text() const |
327 | { | 327 | { |
328 | return (mType == Display) ? mDescription : QString::null; | 328 | return (mType == Display) ? mDescription : QString::null; |
329 | } | 329 | } |
330 | 330 | ||
331 | void Alarm::setTime(const QDateTime &alarmTime) | 331 | void Alarm::setTime(const QDateTime &alarmTime) |
332 | { | 332 | { |
333 | mAlarmTime = alarmTime; | 333 | mAlarmTime = alarmTime; |
334 | mHasTime = true; | 334 | mHasTime = true; |
335 | 335 | ||
336 | mParent->updated(); | 336 | mParent->updated(); |
337 | } | 337 | } |
338 | int Alarm::offset() | 338 | int Alarm::offset() |
339 | { | 339 | { |
340 | if ( hasTime() ) { | 340 | if ( hasTime() ) { |
341 | if (mParent->typeID() == todoID ) { | 341 | if (mParent->typeID() == todoID ) { |
342 | Todo *t = static_cast<Todo*>(mParent); | 342 | Todo *t = static_cast<Todo*>(mParent); |
343 | return t->dtDue().secsTo( mAlarmTime ) ; | 343 | return t->dtDue().secsTo( mAlarmTime ) ; |
344 | } else | 344 | } else |
345 | return mParent->dtStart().secsTo( mAlarmTime ) ; | 345 | return mParent->dtStart().secsTo( mAlarmTime ) ; |
346 | } | 346 | } |
347 | else | 347 | else |
348 | { | 348 | { |
349 | return mOffset.asSeconds(); | 349 | return mOffset.asSeconds(); |
350 | } | 350 | } |
351 | 351 | ||
352 | } | 352 | } |
353 | QString Alarm::offsetText() | 353 | QString Alarm::offsetText() |
354 | { | 354 | { |
355 | int min = -offset()/60; | 355 | int min = -offset()/60; |
356 | int hours = min /60; | 356 | int hours = min /60; |
357 | min = min % 60; | 357 | min = min % 60; |
358 | int days = hours /24; | 358 | int days = hours /24; |
359 | hours = hours % 24; | 359 | hours = hours % 24; |
360 | QString message; | 360 | QString message; |
361 | //qDebug("%d %d %d ", days, hours, min ); | 361 | //qDebug("%d %d %d ", days, hours, min ); |
362 | if ( days > 0 ) | 362 | if ( days > 0 ) |
363 | message += i18n("%1d").arg( days ); | 363 | message += i18n("%1d").arg( days ); |
364 | if ( hours > 0 ) { | 364 | if ( hours > 0 ) { |
365 | if ( !message.isEmpty() ) message += "/"; | 365 | if ( !message.isEmpty() ) message += "/"; |
366 | message += i18n("%1h").arg( hours ); | 366 | message += i18n("%1h").arg( hours ); |
367 | } | 367 | } |
368 | if ( min > 0 ) { | 368 | if ( min > 0 ) { |
369 | if ( !message.isEmpty() ) message += "/"; | 369 | if ( !message.isEmpty() ) message += "/"; |
370 | message += i18n("%1min").arg( min ); | 370 | message += i18n("%1min").arg( min ); |
371 | } | 371 | } |
372 | if ( message.isEmpty() ) | 372 | if ( message.isEmpty() ) |
373 | message = i18n("%1min").arg( 0 ); | 373 | message = i18n("%1min").arg( 0 ); |
374 | if ( !mParent->alarmEnabled() ) | 374 | if ( !mParent->alarmEnabled() ) |
375 | return "!"+message + i18n("(disabled)"); | 375 | return "!"+message + i18n("(disabled)"); |
376 | return message; | 376 | return message; |
377 | } | 377 | } |
378 | 378 | ||
379 | 379 | ||
380 | QDateTime Alarm::time() const | 380 | QDateTime Alarm::time() const |
381 | { | 381 | { |
382 | if ( hasTime() ) | 382 | if ( hasTime() ) |
383 | return mAlarmTime; | 383 | return mAlarmTime; |
384 | else | 384 | else |
385 | { | 385 | { |
386 | if (mParent->typeID() == todoID ) { | 386 | if (mParent->typeID() == todoID ) { |
387 | Todo *t = static_cast<Todo*>(mParent); | 387 | Todo *t = static_cast<Todo*>(mParent); |
388 | return mOffset.end( t->dtDue() ); | 388 | return mOffset.end( t->dtDue() ); |
389 | } else if (mEndOffset) { | 389 | } else if (mEndOffset) { |
390 | return mOffset.end( mParent->dtEnd() ); | 390 | return mOffset.end( mParent->dtEnd() ); |
391 | } else { | 391 | } else { |
392 | return mOffset.end( mParent->dtStart() ); | 392 | return mOffset.end( mParent->dtStart() ); |
393 | } | 393 | } |
394 | } | 394 | } |
395 | } | 395 | } |
396 | 396 | ||
397 | bool Alarm::hasTime() const | 397 | bool Alarm::hasTime() const |
398 | { | 398 | { |
399 | return mHasTime; | 399 | return mHasTime; |
400 | } | 400 | } |
401 | 401 | ||
402 | void Alarm::setSnoozeTime(int alarmSnoozeTime) | 402 | void Alarm::setSnoozeTime(int alarmSnoozeTime) |
403 | { | 403 | { |
404 | mAlarmSnoozeTime = alarmSnoozeTime; | 404 | mAlarmSnoozeTime = alarmSnoozeTime; |
405 | mParent->updated(); | 405 | mParent->updated(); |
406 | } | 406 | } |
407 | 407 | ||
408 | int Alarm::snoozeTime() const | 408 | int Alarm::snoozeTime() const |
409 | { | 409 | { |
410 | return mAlarmSnoozeTime; | 410 | return mAlarmSnoozeTime; |
411 | } | 411 | } |
412 | 412 | ||
413 | void Alarm::setRepeatCount(int alarmRepeatCount) | 413 | void Alarm::setRepeatCount(int alarmRepeatCount) |
414 | { | 414 | { |
415 | kdDebug(5800) << "Alarm::setRepeatCount(): " << alarmRepeatCount << endl; | 415 | kdDebug(5800) << "Alarm::setRepeatCount(): " << alarmRepeatCount << endl; |
416 | 416 | ||
417 | mAlarmRepeatCount = alarmRepeatCount; | 417 | mAlarmRepeatCount = alarmRepeatCount; |
418 | mParent->updated(); | 418 | mParent->updated(); |
419 | } | 419 | } |
420 | 420 | ||
421 | int Alarm::repeatCount() const | 421 | int Alarm::repeatCount() const |
422 | { | 422 | { |
423 | kdDebug(5800) << "Alarm::repeatCount(): " << mAlarmRepeatCount << endl; | 423 | kdDebug(5800) << "Alarm::repeatCount(): " << mAlarmRepeatCount << endl; |
424 | return mAlarmRepeatCount; | 424 | return mAlarmRepeatCount; |
425 | } | 425 | } |
426 | 426 | ||
427 | void Alarm::toggleAlarm() | 427 | void Alarm::toggleAlarm() |
428 | { | 428 | { |
429 | mAlarmEnabled = !mAlarmEnabled; | 429 | mAlarmEnabled = !mAlarmEnabled; |
430 | mParent->updated(); | 430 | mParent->updated(); |
431 | } | 431 | } |
432 | 432 | ||
433 | void Alarm::setEnabled(bool enable) | 433 | void Alarm::setEnabled(bool enable) |
434 | { | 434 | { |
435 | mAlarmEnabled = enable; | 435 | mAlarmEnabled = enable; |
436 | mParent->updated(); | 436 | mParent->updated(); |
437 | } | 437 | } |
438 | 438 | ||
439 | bool Alarm::enabled() const | 439 | bool Alarm::enabled() const |
440 | { | 440 | { |
441 | return mAlarmEnabled; | 441 | return mAlarmEnabled; |
442 | } | 442 | } |
443 | 443 | ||
444 | void Alarm::setStartOffset( const Duration &offset ) | 444 | void Alarm::setStartOffset( const Duration &offset ) |
445 | { | 445 | { |
446 | mOffset = offset; | 446 | mOffset = offset; |
447 | mEndOffset = false; | 447 | mEndOffset = false; |
448 | mHasTime = false; | 448 | mHasTime = false; |
449 | mParent->updated(); | 449 | mParent->updated(); |
450 | } | 450 | } |
451 | 451 | ||
452 | Duration Alarm::startOffset() const | 452 | Duration Alarm::startOffset() const |
453 | { | 453 | { |
454 | return (mHasTime || mEndOffset) ? 0 : mOffset; | 454 | return (mHasTime || mEndOffset) ? 0 : mOffset; |
455 | } | 455 | } |
456 | 456 | ||
457 | bool Alarm::hasStartOffset() const | 457 | bool Alarm::hasStartOffset() const |
458 | { | 458 | { |
459 | return !mHasTime && !mEndOffset; | 459 | return !mHasTime && !mEndOffset; |
460 | } | 460 | } |
461 | 461 | ||
462 | bool Alarm::hasEndOffset() const | 462 | bool Alarm::hasEndOffset() const |
463 | { | 463 | { |
464 | return !mHasTime && mEndOffset; | 464 | return !mHasTime && mEndOffset; |
465 | } | 465 | } |
466 | 466 | ||
467 | void Alarm::setEndOffset( const Duration &offset ) | 467 | void Alarm::setEndOffset( const Duration &offset ) |
468 | { | 468 | { |
469 | mOffset = offset; | 469 | mOffset = offset; |
470 | mEndOffset = true; | 470 | mEndOffset = true; |
471 | mHasTime = false; | 471 | mHasTime = false; |
472 | mParent->updated(); | 472 | mParent->updated(); |
473 | } | 473 | } |
474 | 474 | ||
475 | Duration Alarm::endOffset() const | 475 | Duration Alarm::endOffset() const |
476 | { | 476 | { |
477 | return (mHasTime || !mEndOffset) ? 0 : mOffset; | 477 | return (mHasTime || !mEndOffset) ? 0 : mOffset; |
478 | } | 478 | } |
479 | 479 | ||
480 | void Alarm::setParent( Incidence *parent ) | 480 | void Alarm::setParent( Incidence *parent ) |
481 | { | 481 | { |
482 | mParent = parent; | 482 | mParent = parent; |
483 | } | 483 | } |
diff --git a/libkcal/event.cpp b/libkcal/event.cpp index 0766fd9..fdf5657 100644 --- a/libkcal/event.cpp +++ b/libkcal/event.cpp | |||
@@ -1,416 +1,424 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <kglobal.h> | 21 | #include <kglobal.h> |
22 | #include <klocale.h> | 22 | #include <klocale.h> |
23 | #include <kdebug.h> | 23 | #include <kdebug.h> |
24 | 24 | ||
25 | #include "event.h" | 25 | #include "event.h" |
26 | 26 | ||
27 | using namespace KCal; | 27 | using namespace KCal; |
28 | 28 | ||
29 | Event::Event() : | 29 | Event::Event() : |
30 | mHasEndDate( false ), mTransparency( Opaque ) | 30 | mHasEndDate( false ), mTransparency( Opaque ) |
31 | { | 31 | { |
32 | } | 32 | } |
33 | 33 | ||
34 | Event::Event(const Event &e) : Incidence(e) | 34 | Event::Event(const Event &e) : Incidence(e) |
35 | { | 35 | { |
36 | mDtEnd = e.mDtEnd; | 36 | mDtEnd = e.mDtEnd; |
37 | mHasEndDate = e.mHasEndDate; | 37 | mHasEndDate = e.mHasEndDate; |
38 | mTransparency = e.mTransparency; | 38 | mTransparency = e.mTransparency; |
39 | } | 39 | } |
40 | 40 | ||
41 | Event::~Event() | 41 | Event::~Event() |
42 | { | 42 | { |
43 | } | 43 | } |
44 | 44 | ||
45 | Incidence *Event::clone() | 45 | Incidence *Event::clone() |
46 | { | 46 | { |
47 | return new Event(*this); | 47 | return new Event(*this); |
48 | } | 48 | } |
49 | 49 | ||
50 | bool KCal::operator==( const Event& e1, const Event& e2 ) | 50 | bool KCal::operator==( const Event& e1, const Event& e2 ) |
51 | { | 51 | { |
52 | return operator==( (const Incidence&)e1, (const Incidence&)e2 ) && | 52 | return operator==( (const Incidence&)e1, (const Incidence&)e2 ) && |
53 | e1.dtEnd() == e2.dtEnd() && | 53 | e1.dtEnd() == e2.dtEnd() && |
54 | e1.hasEndDate() == e2.hasEndDate() && | 54 | e1.hasEndDate() == e2.hasEndDate() && |
55 | e1.transparency() == e2.transparency(); | 55 | e1.transparency() == e2.transparency(); |
56 | } | 56 | } |
57 | 57 | ||
58 | 58 | ||
59 | bool Event::contains ( Event* from ) | 59 | bool Event::contains ( Event* from ) |
60 | { | 60 | { |
61 | 61 | ||
62 | if ( !from->summary().isEmpty() ) | 62 | if ( !from->summary().isEmpty() ) |
63 | if ( !summary().startsWith( from->summary() )) | 63 | if ( !summary().startsWith( from->summary() )) |
64 | return false; | 64 | return false; |
65 | if ( from->dtStart().isValid() ) | 65 | if ( from->dtStart().isValid() ) |
66 | if (dtStart() != from->dtStart() ) | 66 | if (dtStart() != from->dtStart() ) |
67 | return false; | 67 | return false; |
68 | if ( from->dtEnd().isValid() ) | 68 | if ( from->dtEnd().isValid() ) |
69 | if ( dtEnd() != from->dtEnd() ) | 69 | if ( dtEnd() != from->dtEnd() ) |
70 | return false; | 70 | return false; |
71 | if ( !from->location().isEmpty() ) | 71 | if ( !from->location().isEmpty() ) |
72 | if ( !location().startsWith( from->location() ) ) | 72 | if ( !location().startsWith( from->location() ) ) |
73 | return false; | 73 | return false; |
74 | if ( !from->description().isEmpty() ) | 74 | if ( !from->description().isEmpty() ) |
75 | if ( !description().startsWith( from->description() )) | 75 | if ( !description().startsWith( from->description() )) |
76 | return false; | 76 | return false; |
77 | if ( from->alarms().count() ) { | 77 | if ( from->alarms().count() ) { |
78 | Alarm *a = from->alarms().first(); | 78 | Alarm *a = from->alarms().first(); |
79 | if ( a->enabled() ){ | 79 | if ( a->enabled() ){ |
80 | if ( !alarms().count() ) | 80 | if ( !alarms().count() ) |
81 | return false; | 81 | return false; |
82 | Alarm *b = alarms().first(); | 82 | Alarm *b = alarms().first(); |
83 | if( ! b->enabled() ) | 83 | if( ! b->enabled() ) |
84 | return false; | 84 | return false; |
85 | if ( ! (a->offset() == b->offset() )) | 85 | if ( ! (a->offset() == b->offset() )) |
86 | return false; | 86 | return false; |
87 | } | 87 | } |
88 | } | 88 | } |
89 | QStringList cat = categories(); | 89 | QStringList cat = categories(); |
90 | QStringList catFrom = from->categories(); | 90 | QStringList catFrom = from->categories(); |
91 | QString nCat; | 91 | QString nCat; |
92 | unsigned int iii; | 92 | unsigned int iii; |
93 | for ( iii = 0; iii < catFrom.count();++iii ) { | 93 | for ( iii = 0; iii < catFrom.count();++iii ) { |
94 | nCat = catFrom[iii]; | 94 | nCat = catFrom[iii]; |
95 | if ( !nCat.isEmpty() ) | 95 | if ( !nCat.isEmpty() ) |
96 | if ( !cat.contains( nCat )) { | 96 | if ( !cat.contains( nCat )) { |
97 | return false; | 97 | return false; |
98 | } | 98 | } |
99 | } | 99 | } |
100 | if ( from->doesRecur() ) | 100 | if ( from->doesRecur() ) |
101 | if ( from->doesRecur() != doesRecur() && ! (from->doesRecur()== Recurrence::rYearlyMonth && doesRecur()== Recurrence::rYearlyDay) ) | 101 | if ( from->doesRecur() != doesRecur() && ! (from->doesRecur()== Recurrence::rYearlyMonth && doesRecur()== Recurrence::rYearlyDay) ) |
102 | return false; | 102 | return false; |
103 | return true; | 103 | return true; |
104 | } | 104 | } |
105 | 105 | ||
106 | void Event::setDtEnd(const QDateTime &dtEnd) | 106 | void Event::setDtEnd(const QDateTime &dtEnd) |
107 | { | 107 | { |
108 | if (mReadOnly) return; | 108 | if (mReadOnly) return; |
109 | 109 | ||
110 | mDtEnd = getEvenTime( dtEnd ); | 110 | mDtEnd = getEvenTime( dtEnd ); |
111 | 111 | ||
112 | setHasEndDate(true); | 112 | setHasEndDate(true); |
113 | setHasDuration(false); | 113 | setHasDuration(false); |
114 | 114 | ||
115 | updated(); | 115 | updated(); |
116 | } | 116 | } |
117 | 117 | ||
118 | QDateTime Event::dtEnd() const | 118 | QDateTime Event::dtEnd() const |
119 | { | 119 | { |
120 | if (hasEndDate()) return mDtEnd; | 120 | if (hasEndDate()) return mDtEnd; |
121 | if (hasDuration()) return dtStart().addSecs(duration()); | 121 | if (hasDuration()) return dtStart().addSecs(duration()); |
122 | 122 | ||
123 | return dtStart(); | 123 | return dtStart(); |
124 | } | 124 | } |
125 | 125 | ||
126 | QString Event::dtEndTimeStr() const | 126 | QString Event::dtEndTimeStr() const |
127 | { | 127 | { |
128 | return KGlobal::locale()->formatTime(mDtEnd.time()); | 128 | return KGlobal::locale()->formatTime(mDtEnd.time()); |
129 | } | 129 | } |
130 | 130 | ||
131 | QString Event::dtEndDateStr(bool shortfmt) const | 131 | QString Event::dtEndDateStr(bool shortfmt) const |
132 | { | 132 | { |
133 | return KGlobal::locale()->formatDate(mDtEnd.date(),shortfmt); | 133 | return KGlobal::locale()->formatDate(mDtEnd.date(),shortfmt); |
134 | } | 134 | } |
135 | 135 | ||
136 | QString Event::dtEndStr(bool shortfmt) const | 136 | QString Event::dtEndStr(bool shortfmt) const |
137 | { | 137 | { |
138 | return KGlobal::locale()->formatDateTime(mDtEnd, shortfmt); | 138 | return KGlobal::locale()->formatDateTime(mDtEnd, shortfmt); |
139 | } | 139 | } |
140 | 140 | ||
141 | void Event::setHasEndDate(bool b) | 141 | void Event::setHasEndDate(bool b) |
142 | { | 142 | { |
143 | mHasEndDate = b; | 143 | mHasEndDate = b; |
144 | } | 144 | } |
145 | 145 | ||
146 | bool Event::hasEndDate() const | 146 | bool Event::hasEndDate() const |
147 | { | 147 | { |
148 | return mHasEndDate; | 148 | return mHasEndDate; |
149 | } | 149 | } |
150 | 150 | ||
151 | bool Event::isMultiDay() const | 151 | bool Event::isMultiDay() const |
152 | { | 152 | { |
153 | bool multi = !(dtStart().date() == dtEnd().date()); | 153 | bool multi = !(dtStart().date() == dtEnd().date()); |
154 | return multi; | 154 | return multi; |
155 | } | 155 | } |
156 | 156 | ||
157 | void Event::setTransparency(Event::Transparency transparency) | 157 | void Event::setTransparency(Event::Transparency transparency) |
158 | { | 158 | { |
159 | if (mReadOnly) return; | 159 | if (mReadOnly) return; |
160 | mTransparency = transparency; | 160 | mTransparency = transparency; |
161 | updated(); | 161 | updated(); |
162 | } | 162 | } |
163 | 163 | ||
164 | Event::Transparency Event::transparency() const | 164 | Event::Transparency Event::transparency() const |
165 | { | 165 | { |
166 | return mTransparency; | 166 | return mTransparency; |
167 | } | 167 | } |
168 | 168 | ||
169 | void Event::setDuration(int seconds) | 169 | void Event::setDuration(int seconds) |
170 | { | 170 | { |
171 | setHasEndDate(false); | 171 | setHasEndDate(false); |
172 | Incidence::setDuration(seconds); | 172 | Incidence::setDuration(seconds); |
173 | } | 173 | } |
174 | bool Event::matchTime(QDateTime*startDT, QDateTime* endDT) | 174 | bool Event::matchTime(QDateTime*startDT, QDateTime* endDT) |
175 | { | 175 | { |
176 | if ( cancelled() ) return false; | 176 | if ( cancelled() ) return false; |
177 | if ( ! doesRecur() ) { | 177 | if ( ! doesRecur() ) { |
178 | if ( doesFloat() ) { | 178 | if ( doesFloat() ) { |
179 | if ( mDtEnd.addDays( 1 ) < *startDT) | 179 | if ( mDtEnd.addDays( 1 ) < *startDT) |
180 | return false; | 180 | return false; |
181 | if ( endDT && mDtStart > * endDT) | 181 | if ( endDT && mDtStart > * endDT) |
182 | return false; | 182 | return false; |
183 | } else { | 183 | } else { |
184 | if ( mDtEnd < *startDT ) | 184 | if ( mDtEnd < *startDT ) |
185 | return false; | 185 | return false; |
186 | if ( endDT && mDtStart > * endDT) | 186 | if ( endDT && mDtStart > * endDT) |
187 | return false; | 187 | return false; |
188 | } | 188 | } |
189 | } else { | 189 | } else { |
190 | if ( endDT && mDtStart > * endDT) | 190 | if ( endDT && mDtStart > * endDT) |
191 | return false; | 191 | return false; |
192 | } | 192 | } |
193 | return true; | 193 | return true; |
194 | } | 194 | } |
195 | bool Event::isOverlapping ( Event* testEvent, QDateTime* overlapDT, QDateTime* startDT ) | 195 | bool Event::isOverlapping ( Event* testEvent, QDateTime* overlapDT, QDateTime* startDT ) |
196 | { | 196 | { |
197 | if ( testEvent == this ) | 197 | if ( testEvent == this ) |
198 | return false; | 198 | return false; |
199 | if ( ! doesRecur() && !testEvent->doesRecur() ) { | 199 | if ( ! doesRecur() && !testEvent->doesRecur() ) { |
200 | QDateTime te; | 200 | QDateTime te; |
201 | if ( testEvent->doesFloat() ) | 201 | if ( testEvent->doesFloat() ) |
202 | te = testEvent->mDtEnd.addDays( 1 ); | 202 | te = testEvent->mDtEnd.addDays( 1 ); |
203 | else | 203 | else |
204 | te = testEvent->mDtEnd; | 204 | te = testEvent->mDtEnd; |
205 | QDateTime e; | 205 | QDateTime e; |
206 | if ( doesFloat() ) | 206 | if ( doesFloat() ) |
207 | e = mDtEnd.addDays( 1 ); | 207 | e = mDtEnd.addDays( 1 ); |
208 | else | 208 | else |
209 | e = mDtEnd; | 209 | e = mDtEnd; |
210 | if ( mDtStart < te && testEvent->mDtStart < e ) { | 210 | if ( mDtStart < te && testEvent->mDtStart < e ) { |
211 | if ( mDtStart < testEvent->mDtStart ) | 211 | if ( mDtStart < testEvent->mDtStart ) |
212 | *overlapDT = testEvent->mDtStart; | 212 | *overlapDT = testEvent->mDtStart; |
213 | else | 213 | else |
214 | *overlapDT = mDtStart; | 214 | *overlapDT = mDtStart; |
215 | if ( startDT ) | 215 | if ( startDT ) |
216 | return (*overlapDT >= *startDT ); | 216 | return (*overlapDT >= *startDT ); |
217 | return true; | 217 | return true; |
218 | } | 218 | } |
219 | return false; | 219 | return false; |
220 | } | 220 | } |
221 | if ( !doesFloat() && !testEvent->doesFloat() && !isMultiDay() && !testEvent->isMultiDay() ) { | 221 | if ( !doesFloat() && !testEvent->doesFloat() && !isMultiDay() && !testEvent->isMultiDay() ) { |
222 | if ( mDtStart.time() >= testEvent->mDtEnd.time() || testEvent->mDtStart.time() >= mDtEnd.time() ) { | 222 | if ( mDtStart.time() >= testEvent->mDtEnd.time() || testEvent->mDtStart.time() >= mDtEnd.time() ) { |
223 | // no need to test. times mismatch | 223 | // no need to test. times mismatch |
224 | //fprintf(stderr,"timi "); | 224 | //fprintf(stderr,"timi "); |
225 | return false; | 225 | return false; |
226 | } | 226 | } |
227 | } | 227 | } |
228 | Event *nonRecur = 0; | 228 | Event *nonRecur = 0; |
229 | Event *recurEvent = 0; | 229 | Event *recurEvent = 0; |
230 | if ( ! doesRecur() ) { | 230 | if ( ! doesRecur() ) { |
231 | nonRecur = this; | 231 | nonRecur = this; |
232 | recurEvent = testEvent; | 232 | recurEvent = testEvent; |
233 | } | 233 | } |
234 | else if ( !testEvent->doesRecur() ) { | 234 | else if ( !testEvent->doesRecur() ) { |
235 | nonRecur = testEvent; | 235 | nonRecur = testEvent; |
236 | recurEvent = this; | 236 | recurEvent = this; |
237 | } | 237 | } |
238 | if ( nonRecur ) { | 238 | if ( nonRecur ) { |
239 | QDateTime enr; | 239 | QDateTime enr; |
240 | if ( nonRecur->doesFloat() ) | 240 | if ( nonRecur->doesFloat() ) |
241 | enr = nonRecur->mDtEnd.addDays( 1 ); | 241 | enr = nonRecur->mDtEnd.addDays( 1 ); |
242 | else | 242 | else |
243 | enr = nonRecur->mDtEnd; | 243 | enr = nonRecur->mDtEnd; |
244 | if ( enr < recurEvent->mDtStart ) | 244 | if ( enr < recurEvent->mDtStart ) |
245 | return false; | 245 | return false; |
246 | if ( startDT && enr < *startDT ) | 246 | if ( startDT && enr < *startDT ) |
247 | return false; | 247 | return false; |
248 | 248 | ||
249 | int recDuration = recurEvent->mDtStart.secsTo( recurEvent->mDtEnd ); | 249 | int recDuration = recurEvent->mDtStart.secsTo( recurEvent->mDtEnd ); |
250 | if ( recurEvent->doesFloat() ) | 250 | if ( recurEvent->doesFloat() ) |
251 | recDuration += 86400; | 251 | recDuration += 86400; |
252 | bool ok = false; | 252 | bool ok = false; |
253 | QDateTime recStart; | 253 | QDateTime recStart; |
254 | if ( startDT ) { | 254 | if ( startDT ) { |
255 | recStart = recurEvent->recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); | 255 | recStart = recurEvent->recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); |
256 | } | 256 | } |
257 | if ( recStart.isValid() ) { | 257 | if ( recStart.isValid() ) { |
258 | //qDebug("%s start at %s ", startDT-> toString().latin1(), recStart.toString().latin1()); | 258 | //qDebug("%s start at %s ", startDT-> toString().latin1(), recStart.toString().latin1()); |
259 | recStart = recStart.addSecs( -300); | 259 | recStart = recStart.addSecs( -300); |
260 | } | 260 | } |
261 | else | 261 | else |
262 | recStart = recurEvent->mDtStart.addSecs( -300); | 262 | recStart = recurEvent->mDtStart.addSecs( -300); |
263 | ok = true; | 263 | ok = true; |
264 | 264 | ||
265 | while ( ok ) { | 265 | while ( ok ) { |
266 | recStart = recurEvent->getNextOccurence( recStart.addSecs( 60 ), &ok ); | 266 | recStart = recurEvent->getNextOccurence( recStart.addSecs( 60 ), &ok ); |
267 | if ( ok ) { | 267 | if ( ok ) { |
268 | if ( recStart > enr ) | 268 | if ( recStart > enr ) |
269 | return false; | 269 | return false; |
270 | QDateTime recEnd = recStart.addSecs( recDuration ); | 270 | QDateTime recEnd = recStart.addSecs( recDuration ); |
271 | if ( nonRecur->mDtStart < recEnd && recStart < nonRecur->mDtEnd ) { | 271 | if ( nonRecur->mDtStart < recEnd && recStart < nonRecur->mDtEnd ) { |
272 | if ( nonRecur->mDtStart < recStart ) | 272 | if ( nonRecur->mDtStart < recStart ) |
273 | *overlapDT = recStart; | 273 | *overlapDT = recStart; |
274 | else | 274 | else |
275 | *overlapDT = nonRecur->mDtStart; | 275 | *overlapDT = nonRecur->mDtStart; |
276 | if ( startDT ) { | 276 | if ( startDT ) { |
277 | if ( *overlapDT >= *startDT ) | 277 | if ( *overlapDT >= *startDT ) |
278 | return true; | 278 | return true; |
279 | } else | 279 | } else |
280 | return true; | 280 | return true; |
281 | } | 281 | } |
282 | } | 282 | } |
283 | } | 283 | } |
284 | return false; | 284 | return false; |
285 | } | 285 | } |
286 | if ( !doesFloat() && !testEvent->doesFloat() && !isMultiDay() && !testEvent->isMultiDay() ) { | 286 | if ( !doesFloat() && !testEvent->doesFloat() && !isMultiDay() && !testEvent->isMultiDay() ) { |
287 | if ( recurrence()->doesRecur() == Recurrence::rWeekly && testEvent->recurrence()->doesRecur() == Recurrence::rWeekly ) { | 287 | if ( recurrence()->doesRecur() == Recurrence::rWeekly && testEvent->recurrence()->doesRecur() == Recurrence::rWeekly ) { |
288 | bool found = false; | 288 | bool found = false; |
289 | uint i; | 289 | uint i; |
290 | for ( i=0; i< recurrence()->days().size();++i ) { | 290 | for ( i=0; i< recurrence()->days().size();++i ) { |
291 | found = found || (recurrence()->days().testBit( i ) && testEvent->recurrence()->days().testBit( i ) ); | 291 | found = found || (recurrence()->days().testBit( i ) && testEvent->recurrence()->days().testBit( i ) ); |
292 | } | 292 | } |
293 | if ( ! found ) { | 293 | if ( ! found ) { |
294 | //qDebug("recurring days mismatch %s -- %s", summary().latin1(),testEvent->summary().latin1()); | 294 | //qDebug("recurring days mismatch %s -- %s", summary().latin1(),testEvent->summary().latin1()); |
295 | return false; | 295 | return false; |
296 | } | 296 | } |
297 | 297 | ||
298 | } | 298 | } |
299 | } | 299 | } |
300 | bool ok = true; | 300 | bool ok = true; |
301 | QDateTime incidenceStart;// = mDtStart; | 301 | QDateTime incidenceStart;// = mDtStart; |
302 | QDateTime testincidenceStart;// = testEvent->mDtStart; | 302 | QDateTime testincidenceStart;// = testEvent->mDtStart; |
303 | if ( startDT ) { | 303 | if ( startDT ) { |
304 | incidenceStart = recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); | 304 | incidenceStart = recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); |
305 | testincidenceStart = testEvent->recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); | 305 | testincidenceStart = testEvent->recurrence()->getPreviousDateTime( startDT->addSecs( 61 ), &ok ); |
306 | } | 306 | } |
307 | if ( !testincidenceStart.isValid() ) | 307 | if ( !testincidenceStart.isValid() ) |
308 | testincidenceStart = testEvent->mDtStart; | 308 | testincidenceStart = testEvent->mDtStart; |
309 | if ( !incidenceStart.isValid() ) | 309 | if ( !incidenceStart.isValid() ) |
310 | incidenceStart = mDtStart; | 310 | incidenceStart = mDtStart; |
311 | int duration = mDtStart.secsTo( mDtEnd ); | 311 | int duration = mDtStart.secsTo( mDtEnd ); |
312 | if ( doesFloat() ) | 312 | if ( doesFloat() ) |
313 | duration += 86400; | 313 | duration += 86400; |
314 | int testduration = testEvent->mDtStart.secsTo( testEvent->mDtEnd ); | 314 | int testduration = testEvent->mDtStart.secsTo( testEvent->mDtEnd ); |
315 | if ( testEvent->doesFloat() ) | 315 | if ( testEvent->doesFloat() ) |
316 | testduration += 86400; | 316 | testduration += 86400; |
317 | bool computeThis = false; | 317 | bool computeThis = false; |
318 | if ( incidenceStart < testincidenceStart ) | 318 | if ( incidenceStart < testincidenceStart ) |
319 | computeThis = true; | 319 | computeThis = true; |
320 | if ( computeThis ) | 320 | if ( computeThis ) |
321 | incidenceStart = incidenceStart.addSecs( -300 ); | 321 | incidenceStart = incidenceStart.addSecs( -300 ); |
322 | else | 322 | else |
323 | testincidenceStart = testincidenceStart.addSecs( -300 ); | 323 | testincidenceStart = testincidenceStart.addSecs( -300 ); |
324 | int count = 0; | 324 | int count = 0; |
325 | ok = true; | 325 | ok = true; |
326 | int countbreak = 2000; | 326 | int countbreak = 2000; |
327 | QDateTime stopSearch; | 327 | QDateTime stopSearch; |
328 | bool testStop = false; | 328 | bool testStop = false; |
329 | if ( startDT ) { | 329 | if ( startDT ) { |
330 | stopSearch = startDT->addDays( 365*3 ); | 330 | stopSearch = startDT->addDays( 365*3 ); |
331 | testStop = true; | 331 | testStop = true; |
332 | } | 332 | } |
333 | while ( ok ) { | 333 | while ( ok ) { |
334 | ++count; | 334 | ++count; |
335 | if ( count > countbreak ) break; | 335 | if ( count > countbreak ) break; |
336 | if ( computeThis ) { | 336 | if ( computeThis ) { |
337 | if ( testStop ) | 337 | if ( testStop ) |
338 | if ( testincidenceStart > stopSearch ) | 338 | if ( testincidenceStart > stopSearch ) |
339 | break; | 339 | break; |
340 | incidenceStart = getNextOccurence( incidenceStart.addSecs( 60 ), &ok ); | 340 | incidenceStart = getNextOccurence( incidenceStart.addSecs( 60 ), &ok ); |
341 | } | 341 | } |
342 | else { | 342 | else { |
343 | if ( testStop ) | 343 | if ( testStop ) |
344 | if ( incidenceStart > stopSearch ) | 344 | if ( incidenceStart > stopSearch ) |
345 | break; | 345 | break; |
346 | testincidenceStart = testEvent->getNextOccurence( testincidenceStart.addSecs( 60 ), &ok ); | 346 | testincidenceStart = testEvent->getNextOccurence( testincidenceStart.addSecs( 60 ), &ok ); |
347 | } | 347 | } |
348 | if ( ok ) { | 348 | if ( ok ) { |
349 | if ( incidenceStart < testincidenceStart.addSecs( testduration ) && testincidenceStart < incidenceStart.addSecs( duration ) ) { | 349 | if ( incidenceStart < testincidenceStart.addSecs( testduration ) && testincidenceStart < incidenceStart.addSecs( duration ) ) { |
350 | if ( incidenceStart < testincidenceStart ) | 350 | if ( incidenceStart < testincidenceStart ) |
351 | *overlapDT = testincidenceStart; | 351 | *overlapDT = testincidenceStart; |
352 | else | 352 | else |
353 | *overlapDT = incidenceStart; | 353 | *overlapDT = incidenceStart; |
354 | if ( startDT ) { | 354 | if ( startDT ) { |
355 | if ( *overlapDT >= *startDT ) | 355 | if ( *overlapDT >= *startDT ) |
356 | return true; | 356 | return true; |
357 | } else | 357 | } else |
358 | return true; | 358 | return true; |
359 | } | 359 | } |
360 | computeThis = ( incidenceStart < testincidenceStart ); | 360 | computeThis = ( incidenceStart < testincidenceStart ); |
361 | } | 361 | } |
362 | 362 | ||
363 | } | 363 | } |
364 | //qDebug("%d rec counter stopped at %d - %s %s", ok ,count, summary().latin1(),testEvent->summary().latin1() ); | 364 | //qDebug("%d rec counter stopped at %d - %s %s", ok ,count, summary().latin1(),testEvent->summary().latin1() ); |
365 | return false; | 365 | return false; |
366 | } | 366 | } |
367 | QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const | 367 | QDateTime Event::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const |
368 | { | 368 | { |
369 | *ok = false; | 369 | *ok = false; |
370 | if ( !alarmEnabled() ) | 370 | if ( !alarmEnabled() ) |
371 | return QDateTime (); | 371 | return QDateTime (); |
372 | bool yes; | 372 | bool yes; |
373 | QDateTime incidenceStart = getNextOccurence( start_dt, &yes ); | 373 | QDateTime incidenceStart = getNextOccurence( start_dt, &yes ); |
374 | if ( ! yes || cancelled() ) { | 374 | if ( ! yes || cancelled() ) { |
375 | *ok = false; | 375 | *ok = false; |
376 | return QDateTime (); | 376 | return QDateTime (); |
377 | } | 377 | } |
378 | 378 | ||
379 | bool enabled = false; | 379 | bool enabled = false; |
380 | Alarm* alarm; | 380 | Alarm* alarm; |
381 | int off = 0; | 381 | int off = 0; |
382 | QDateTime alarmStart = QDateTime::currentDateTime().addDays( 3650 );; | 382 | QDateTime alarmStart = QDateTime::currentDateTime().addDays( 3650 );; |
383 | // if ( QDateTime::currentDateTime() > incidenceStart ){ | 383 | // if ( QDateTime::currentDateTime() > incidenceStart ){ |
384 | // *ok = false; | 384 | // *ok = false; |
385 | // return incidenceStart; | 385 | // return incidenceStart; |
386 | // } | 386 | // } |
387 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { | 387 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { |
388 | if (alarm->enabled()) { | 388 | if (alarm->enabled()) { |
389 | if ( alarm->hasTime () ) { | 389 | if ( alarm->hasTime () ) { |
390 | if ( alarm->time() < alarmStart ) { | 390 | if ( alarm->time() < alarmStart ) { |
391 | alarmStart = alarm->time(); | 391 | alarmStart = alarm->time(); |
392 | enabled = true; | 392 | enabled = true; |
393 | off = alarmStart.secsTo( incidenceStart ); | 393 | off = alarmStart.secsTo( incidenceStart ); |
394 | } | 394 | } |
395 | 395 | ||
396 | } else { | 396 | } else { |
397 | int secs = alarm->startOffset().asSeconds(); | 397 | int secs = alarm->startOffset().asSeconds(); |
398 | if ( incidenceStart.addSecs( secs ) < alarmStart ) { | 398 | if ( incidenceStart.addSecs( secs ) < alarmStart ) { |
399 | alarmStart = incidenceStart.addSecs( secs ); | 399 | alarmStart = incidenceStart.addSecs( secs ); |
400 | enabled = true; | 400 | enabled = true; |
401 | off = -secs; | 401 | off = -secs; |
402 | } | 402 | } |
403 | } | 403 | } |
404 | } | 404 | } |
405 | } | 405 | } |
406 | if ( enabled ) { | 406 | if ( enabled ) { |
407 | if ( alarmStart > start_dt ) { | 407 | if ( alarmStart > start_dt ) { |
408 | *ok = true; | 408 | *ok = true; |
409 | * offset = off; | 409 | * offset = off; |
410 | return alarmStart; | 410 | return alarmStart; |
411 | } | 411 | } |
412 | } | 412 | } |
413 | *ok = false; | 413 | *ok = false; |
414 | return QDateTime (); | 414 | return QDateTime (); |
415 | 415 | ||
416 | } | 416 | } |
417 | |||
418 | QString Event::durationText() | ||
419 | { | ||
420 | int sec = mDtStart.secsTo( mDtEnd ); | ||
421 | if ( doesFloat() ) | ||
422 | sec += 86400; | ||
423 | return durationText4Time( sec ); | ||
424 | } | ||
diff --git a/libkcal/event.h b/libkcal/event.h index 2da9770..6a58618 100644 --- a/libkcal/event.h +++ b/libkcal/event.h | |||
@@ -1,94 +1,95 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #ifndef EVENT_H | 21 | #ifndef EVENT_H |
22 | #define EVENT_H | 22 | #define EVENT_H |
23 | // | 23 | // |
24 | // Event component, representing a VEVENT object | 24 | // Event component, representing a VEVENT object |
25 | // | 25 | // |
26 | 26 | ||
27 | #include "incidence.h" | 27 | #include "incidence.h" |
28 | namespace KCal { | 28 | namespace KCal { |
29 | 29 | ||
30 | /** | 30 | /** |
31 | This class provides an Event in the sense of RFC2445. | 31 | This class provides an Event in the sense of RFC2445. |
32 | */ | 32 | */ |
33 | class Event : public Incidence | 33 | class Event : public Incidence |
34 | { | 34 | { |
35 | public: | 35 | public: |
36 | enum Transparency { Opaque, Transparent }; | 36 | enum Transparency { Opaque, Transparent }; |
37 | typedef ListBase<Event> List; | 37 | typedef ListBase<Event> List; |
38 | Event(); | 38 | Event(); |
39 | Event(const Event &); | 39 | Event(const Event &); |
40 | ~Event(); | 40 | ~Event(); |
41 | bool matchTime(QDateTime*startDT, QDateTime* endDT); | 41 | bool matchTime(QDateTime*startDT, QDateTime* endDT); |
42 | 42 | ||
43 | QCString type() const { return "Event"; } | 43 | QCString type() const { return "Event"; } |
44 | IncTypeID typeID() const { return eventID; } | 44 | IncTypeID typeID() const { return eventID; } |
45 | 45 | ||
46 | Incidence *clone(); | 46 | Incidence *clone(); |
47 | QDateTime getNextAlarmDateTime( bool * ok, int * offset ,QDateTime start_dt ) const; | 47 | QDateTime getNextAlarmDateTime( bool * ok, int * offset ,QDateTime start_dt ) const; |
48 | 48 | ||
49 | /** for setting an event's ending date/time with a QDateTime. */ | 49 | /** for setting an event's ending date/time with a QDateTime. */ |
50 | void setDtEnd(const QDateTime &dtEnd); | 50 | void setDtEnd(const QDateTime &dtEnd); |
51 | /** Return the event's ending date/time as a QDateTime. */ | 51 | /** Return the event's ending date/time as a QDateTime. */ |
52 | virtual QDateTime dtEnd() const; | 52 | virtual QDateTime dtEnd() const; |
53 | /** returns an event's end time as a string formatted according to the | 53 | /** returns an event's end time as a string formatted according to the |
54 | users locale settings */ | 54 | users locale settings */ |
55 | QString dtEndTimeStr() const; | 55 | QString dtEndTimeStr() const; |
56 | /** returns an event's end date as a string formatted according to the | 56 | /** returns an event's end date as a string formatted according to the |
57 | users locale settings */ | 57 | users locale settings */ |
58 | QString dtEndDateStr(bool shortfmt=true) const; | 58 | QString dtEndDateStr(bool shortfmt=true) const; |
59 | /** returns an event's end date and time as a string formatted according | 59 | /** returns an event's end date and time as a string formatted according |
60 | to the users locale settings */ | 60 | to the users locale settings */ |
61 | QString dtEndStr(bool shortfmt=true) const; | 61 | QString dtEndStr(bool shortfmt=true) const; |
62 | void setHasEndDate(bool); | 62 | void setHasEndDate(bool); |
63 | /** Return whether the event has an end date/time. */ | 63 | /** Return whether the event has an end date/time. */ |
64 | bool hasEndDate() const; | 64 | bool hasEndDate() const; |
65 | 65 | ||
66 | /** Return true if the event spans multiple days, otherwise return false. */ | 66 | /** Return true if the event spans multiple days, otherwise return false. */ |
67 | bool isMultiDay() const; | 67 | bool isMultiDay() const; |
68 | 68 | ||
69 | /** set the event's time transparency level. */ | 69 | /** set the event's time transparency level. */ |
70 | void setTransparency(Transparency transparency); | 70 | void setTransparency(Transparency transparency); |
71 | /** get the event's time transparency level. */ | 71 | /** get the event's time transparency level. */ |
72 | Transparency transparency() const; | 72 | Transparency transparency() const; |
73 | 73 | ||
74 | void setDuration(int seconds); | 74 | void setDuration(int seconds); |
75 | 75 | ||
76 | bool contains ( Event*); | 76 | bool contains ( Event*); |
77 | 77 | ||
78 | bool isOverlapping ( Event*, QDateTime*, QDateTime* ); | 78 | bool isOverlapping ( Event*, QDateTime*, QDateTime* ); |
79 | QString durationText(); | ||
79 | 80 | ||
80 | private: | 81 | private: |
81 | bool accept(Visitor &v) { return v.visit(this); } | 82 | bool accept(Visitor &v) { return v.visit(this); } |
82 | 83 | ||
83 | QDateTime mDtEnd; | 84 | QDateTime mDtEnd; |
84 | bool mHasEndDate; | 85 | bool mHasEndDate; |
85 | Transparency mTransparency; | 86 | Transparency mTransparency; |
86 | }; | 87 | }; |
87 | 88 | ||
88 | bool operator==( const Event&, const Event& ); | 89 | bool operator==( const Event&, const Event& ); |
89 | 90 | ||
90 | 91 | ||
91 | } | 92 | } |
92 | 93 | ||
93 | 94 | ||
94 | #endif | 95 | #endif |
diff --git a/libkcal/incidence.cpp b/libkcal/incidence.cpp index 4643a3a..201f593 100644 --- a/libkcal/incidence.cpp +++ b/libkcal/incidence.cpp | |||
@@ -1,811 +1,840 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <kglobal.h> | 21 | #include <kglobal.h> |
22 | #include <klocale.h> | 22 | #include <klocale.h> |
23 | #include <kdebug.h> | 23 | #include <kdebug.h> |
24 | 24 | ||
25 | #include "calformat.h" | 25 | #include "calformat.h" |
26 | 26 | ||
27 | #include "incidence.h" | 27 | #include "incidence.h" |
28 | #include "todo.h" | 28 | #include "todo.h" |
29 | 29 | ||
30 | using namespace KCal; | 30 | using namespace KCal; |
31 | 31 | ||
32 | Incidence::Incidence() : | 32 | Incidence::Incidence() : |
33 | IncidenceBase(), | 33 | IncidenceBase(), |
34 | mRelatedTo(0), mSecrecy(SecrecyPublic), mPriority(3) | 34 | mRelatedTo(0), mSecrecy(SecrecyPublic), mPriority(3) |
35 | { | 35 | { |
36 | mRecurrence = 0;//new Recurrence(this); | 36 | mRecurrence = 0;//new Recurrence(this); |
37 | mCancelled = false; | 37 | mCancelled = false; |
38 | recreate(); | 38 | recreate(); |
39 | mHasStartDate = true; | 39 | mHasStartDate = true; |
40 | mAlarms.setAutoDelete(true); | 40 | mAlarms.setAutoDelete(true); |
41 | mAttachments.setAutoDelete(true); | 41 | mAttachments.setAutoDelete(true); |
42 | mHasRecurrenceID = false; | 42 | mHasRecurrenceID = false; |
43 | mHoliday = false; | 43 | mHoliday = false; |
44 | mBirthday = false; | 44 | mBirthday = false; |
45 | mAnniversary = false; | 45 | mAnniversary = false; |
46 | 46 | ||
47 | } | 47 | } |
48 | 48 | ||
49 | Incidence::Incidence( const Incidence &i ) : IncidenceBase( i ) | 49 | Incidence::Incidence( const Incidence &i ) : IncidenceBase( i ) |
50 | { | 50 | { |
51 | // TODO: reenable attributes currently commented out. | 51 | // TODO: reenable attributes currently commented out. |
52 | mRevision = i.mRevision; | 52 | mRevision = i.mRevision; |
53 | mCreated = i.mCreated; | 53 | mCreated = i.mCreated; |
54 | mDescription = i.mDescription; | 54 | mDescription = i.mDescription; |
55 | mSummary = i.mSummary; | 55 | mSummary = i.mSummary; |
56 | mCategories = i.mCategories; | 56 | mCategories = i.mCategories; |
57 | // Incidence *mRelatedTo; Incidence *mRelatedTo; | 57 | // Incidence *mRelatedTo; Incidence *mRelatedTo; |
58 | mRelatedTo = 0; | 58 | mRelatedTo = 0; |
59 | mRelatedToUid = i.mRelatedToUid; | 59 | mRelatedToUid = i.mRelatedToUid; |
60 | // QPtrList<Incidence> mRelations; QPtrList<Incidence> mRelations; | 60 | // QPtrList<Incidence> mRelations; QPtrList<Incidence> mRelations; |
61 | mExDates = i.mExDates; | 61 | mExDates = i.mExDates; |
62 | mAttachments = i.mAttachments; | 62 | mAttachments = i.mAttachments; |
63 | mResources = i.mResources; | 63 | mResources = i.mResources; |
64 | mSecrecy = i.mSecrecy; | 64 | mSecrecy = i.mSecrecy; |
65 | mPriority = i.mPriority; | 65 | mPriority = i.mPriority; |
66 | mLocation = i.mLocation; | 66 | mLocation = i.mLocation; |
67 | mCancelled = i.mCancelled; | 67 | mCancelled = i.mCancelled; |
68 | mHasStartDate = i.mHasStartDate; | 68 | mHasStartDate = i.mHasStartDate; |
69 | QPtrListIterator<Alarm> it( i.mAlarms ); | 69 | QPtrListIterator<Alarm> it( i.mAlarms ); |
70 | const Alarm *a; | 70 | const Alarm *a; |
71 | while( (a = it.current()) ) { | 71 | while( (a = it.current()) ) { |
72 | Alarm *b = new Alarm( *a ); | 72 | Alarm *b = new Alarm( *a ); |
73 | b->setParent( this ); | 73 | b->setParent( this ); |
74 | mAlarms.append( b ); | 74 | mAlarms.append( b ); |
75 | 75 | ||
76 | ++it; | 76 | ++it; |
77 | } | 77 | } |
78 | mAlarms.setAutoDelete(true); | 78 | mAlarms.setAutoDelete(true); |
79 | mHasRecurrenceID = i.mHasRecurrenceID; | 79 | mHasRecurrenceID = i.mHasRecurrenceID; |
80 | mRecurrenceID = i.mRecurrenceID; | 80 | mRecurrenceID = i.mRecurrenceID; |
81 | if ( i.mRecurrence ) | 81 | if ( i.mRecurrence ) |
82 | mRecurrence = new Recurrence( *(i.mRecurrence), this ); | 82 | mRecurrence = new Recurrence( *(i.mRecurrence), this ); |
83 | else | 83 | else |
84 | mRecurrence = 0; | 84 | mRecurrence = 0; |
85 | mHoliday = i.mHoliday ; | 85 | mHoliday = i.mHoliday ; |
86 | mBirthday = i.mBirthday; | 86 | mBirthday = i.mBirthday; |
87 | mAnniversary = i.mAnniversary; | 87 | mAnniversary = i.mAnniversary; |
88 | } | 88 | } |
89 | 89 | ||
90 | Incidence::~Incidence() | 90 | Incidence::~Incidence() |
91 | { | 91 | { |
92 | 92 | ||
93 | Incidence *ev; | 93 | Incidence *ev; |
94 | QPtrList<Incidence> Relations = relations(); | 94 | QPtrList<Incidence> Relations = relations(); |
95 | for (ev=Relations.first();ev;ev=Relations.next()) { | 95 | for (ev=Relations.first();ev;ev=Relations.next()) { |
96 | if (ev->relatedTo() == this) ev->setRelatedTo(0); | 96 | if (ev->relatedTo() == this) ev->setRelatedTo(0); |
97 | } | 97 | } |
98 | if (relatedTo()) relatedTo()->removeRelation(this); | 98 | if (relatedTo()) relatedTo()->removeRelation(this); |
99 | if ( mRecurrence ) | 99 | if ( mRecurrence ) |
100 | delete mRecurrence; | 100 | delete mRecurrence; |
101 | 101 | ||
102 | } | 102 | } |
103 | QString Incidence::durationText() | ||
104 | { | ||
105 | return "---"; | ||
106 | } | ||
107 | QString Incidence::durationText4Time( int offset ) | ||
108 | { | ||
109 | int min = offset/60; | ||
110 | int hours = min /60; | ||
111 | min = min % 60; | ||
112 | int days = hours /24; | ||
113 | hours = hours % 24; | ||
114 | |||
115 | if ( doesFloat() || ( min == 0 && hours == 0 ) ) { | ||
116 | if ( days == 1 ) | ||
117 | return "1" + i18n(" day"); | ||
118 | else | ||
119 | return QString::number( days )+ i18n(" days"); | ||
103 | 120 | ||
121 | } | ||
122 | QString message = QString::number ( hours ) +":"; | ||
123 | if ( min < 10 ) message += "0"; | ||
124 | message += QString::number ( min ); | ||
125 | if ( days > 0 ) { | ||
126 | if ( days == 1 ) | ||
127 | message = "1" + i18n(" day") + " "+message; | ||
128 | else | ||
129 | message = QString::number( days )+ i18n(" days") + " "+message; | ||
130 | } | ||
131 | return message; | ||
132 | } | ||
104 | bool Incidence::isHoliday() const | 133 | bool Incidence::isHoliday() const |
105 | { | 134 | { |
106 | return mHoliday; | 135 | return mHoliday; |
107 | } | 136 | } |
108 | bool Incidence::isBirthday() const | 137 | bool Incidence::isBirthday() const |
109 | { | 138 | { |
110 | 139 | ||
111 | return mBirthday ; | 140 | return mBirthday ; |
112 | } | 141 | } |
113 | bool Incidence::isAnniversary() const | 142 | bool Incidence::isAnniversary() const |
114 | { | 143 | { |
115 | return mAnniversary ; | 144 | return mAnniversary ; |
116 | 145 | ||
117 | } | 146 | } |
118 | 147 | ||
119 | bool Incidence::hasRecurrenceID() const | 148 | bool Incidence::hasRecurrenceID() const |
120 | { | 149 | { |
121 | return mHasRecurrenceID; | 150 | return mHasRecurrenceID; |
122 | } | 151 | } |
123 | 152 | ||
124 | void Incidence::setHasRecurrenceID( bool b ) | 153 | void Incidence::setHasRecurrenceID( bool b ) |
125 | { | 154 | { |
126 | mHasRecurrenceID = b; | 155 | mHasRecurrenceID = b; |
127 | } | 156 | } |
128 | 157 | ||
129 | void Incidence::setRecurrenceID(QDateTime d) | 158 | void Incidence::setRecurrenceID(QDateTime d) |
130 | { | 159 | { |
131 | mRecurrenceID = d; | 160 | mRecurrenceID = d; |
132 | mHasRecurrenceID = true; | 161 | mHasRecurrenceID = true; |
133 | updated(); | 162 | updated(); |
134 | } | 163 | } |
135 | QDateTime Incidence::recurrenceID () const | 164 | QDateTime Incidence::recurrenceID () const |
136 | { | 165 | { |
137 | return mRecurrenceID; | 166 | return mRecurrenceID; |
138 | } | 167 | } |
139 | 168 | ||
140 | bool Incidence::cancelled() const | 169 | bool Incidence::cancelled() const |
141 | { | 170 | { |
142 | return mCancelled; | 171 | return mCancelled; |
143 | } | 172 | } |
144 | void Incidence::setCancelled( bool b ) | 173 | void Incidence::setCancelled( bool b ) |
145 | { | 174 | { |
146 | mCancelled = b; | 175 | mCancelled = b; |
147 | updated(); | 176 | updated(); |
148 | } | 177 | } |
149 | bool Incidence::hasStartDate() const | 178 | bool Incidence::hasStartDate() const |
150 | { | 179 | { |
151 | return mHasStartDate; | 180 | return mHasStartDate; |
152 | } | 181 | } |
153 | 182 | ||
154 | void Incidence::setHasStartDate(bool f) | 183 | void Incidence::setHasStartDate(bool f) |
155 | { | 184 | { |
156 | if (mReadOnly) return; | 185 | if (mReadOnly) return; |
157 | mHasStartDate = f; | 186 | mHasStartDate = f; |
158 | updated(); | 187 | updated(); |
159 | } | 188 | } |
160 | 189 | ||
161 | // A string comparison that considers that null and empty are the same | 190 | // A string comparison that considers that null and empty are the same |
162 | static bool stringCompare( const QString& s1, const QString& s2 ) | 191 | static bool stringCompare( const QString& s1, const QString& s2 ) |
163 | { | 192 | { |
164 | if ( s1.isEmpty() && s2.isEmpty() ) | 193 | if ( s1.isEmpty() && s2.isEmpty() ) |
165 | return true; | 194 | return true; |
166 | return s1 == s2; | 195 | return s1 == s2; |
167 | } | 196 | } |
168 | 197 | ||
169 | bool KCal::operator==( const Incidence& i1, const Incidence& i2 ) | 198 | bool KCal::operator==( const Incidence& i1, const Incidence& i2 ) |
170 | { | 199 | { |
171 | 200 | ||
172 | if( i1.alarms().count() != i2.alarms().count() ) { | 201 | if( i1.alarms().count() != i2.alarms().count() ) { |
173 | return false; // no need to check further | 202 | return false; // no need to check further |
174 | } | 203 | } |
175 | if ( i1.alarms().count() > 0 ) { | 204 | if ( i1.alarms().count() > 0 ) { |
176 | if ( !( *(i1.alarms().first()) == *(i2.alarms().first())) ) | 205 | if ( !( *(i1.alarms().first()) == *(i2.alarms().first())) ) |
177 | { | 206 | { |
178 | qDebug("alarm not equal "); | 207 | qDebug("alarm not equal "); |
179 | return false; | 208 | return false; |
180 | } | 209 | } |
181 | } | 210 | } |
182 | #if 0 | 211 | #if 0 |
183 | QPtrListIterator<Alarm> a1( i1.alarms() ); | 212 | QPtrListIterator<Alarm> a1( i1.alarms() ); |
184 | QPtrListIterator<Alarm> a2( i2.alarms() ); | 213 | QPtrListIterator<Alarm> a2( i2.alarms() ); |
185 | for( ; a1.current() && a2.current(); ++a1, ++a2 ) { | 214 | for( ; a1.current() && a2.current(); ++a1, ++a2 ) { |
186 | if( *a1.current() == *a2.current() ) { | 215 | if( *a1.current() == *a2.current() ) { |
187 | continue; | 216 | continue; |
188 | } | 217 | } |
189 | else { | 218 | else { |
190 | return false; | 219 | return false; |
191 | } | 220 | } |
192 | } | 221 | } |
193 | #endif | 222 | #endif |
194 | 223 | ||
195 | if ( i1.hasRecurrenceID() == i2.hasRecurrenceID() ) { | 224 | if ( i1.hasRecurrenceID() == i2.hasRecurrenceID() ) { |
196 | if ( i1.hasRecurrenceID() ) { | 225 | if ( i1.hasRecurrenceID() ) { |
197 | if ( i1.recurrenceID() != i2.recurrenceID() ) | 226 | if ( i1.recurrenceID() != i2.recurrenceID() ) |
198 | return false; | 227 | return false; |
199 | } | 228 | } |
200 | 229 | ||
201 | } else { | 230 | } else { |
202 | return false; | 231 | return false; |
203 | } | 232 | } |
204 | 233 | ||
205 | if ( ! operator==( (const IncidenceBase&)i1, (const IncidenceBase&)i2 ) ) | 234 | if ( ! operator==( (const IncidenceBase&)i1, (const IncidenceBase&)i2 ) ) |
206 | return false; | 235 | return false; |
207 | if ( i1.hasStartDate() == i2.hasStartDate() ) { | 236 | if ( i1.hasStartDate() == i2.hasStartDate() ) { |
208 | if ( i1.hasStartDate() ) { | 237 | if ( i1.hasStartDate() ) { |
209 | if ( i1.dtStart() != i2.dtStart() ) | 238 | if ( i1.dtStart() != i2.dtStart() ) |
210 | return false; | 239 | return false; |
211 | } | 240 | } |
212 | } else { | 241 | } else { |
213 | return false; | 242 | return false; |
214 | } | 243 | } |
215 | if ( i1.mRecurrence != 0 && i2.mRecurrence != 0 ) { | 244 | if ( i1.mRecurrence != 0 && i2.mRecurrence != 0 ) { |
216 | if (!( *i1.mRecurrence == *i2.mRecurrence) ) { | 245 | if (!( *i1.mRecurrence == *i2.mRecurrence) ) { |
217 | //qDebug("recurrence is NOT equal "); | 246 | //qDebug("recurrence is NOT equal "); |
218 | return false; | 247 | return false; |
219 | } | 248 | } |
220 | } else { | 249 | } else { |
221 | // one ( or both ) recurrence is 0 | 250 | // one ( or both ) recurrence is 0 |
222 | if ( i1.mRecurrence == 0 ) { | 251 | if ( i1.mRecurrence == 0 ) { |
223 | if ( i2.mRecurrence != 0 && i2.mRecurrence->doesRecur() != Recurrence::rNone ) | 252 | if ( i2.mRecurrence != 0 && i2.mRecurrence->doesRecur() != Recurrence::rNone ) |
224 | return false; | 253 | return false; |
225 | } else { | 254 | } else { |
226 | // i1.mRecurrence != 0 | 255 | // i1.mRecurrence != 0 |
227 | // i2.mRecurrence == 0 | 256 | // i2.mRecurrence == 0 |
228 | if ( i1.mRecurrence->doesRecur() != Recurrence::rNone ) | 257 | if ( i1.mRecurrence->doesRecur() != Recurrence::rNone ) |
229 | return false; | 258 | return false; |
230 | } | 259 | } |
231 | } | 260 | } |
232 | 261 | ||
233 | return | 262 | return |
234 | // i1.created() == i2.created() && | 263 | // i1.created() == i2.created() && |
235 | stringCompare( i1.description(), i2.description() ) && | 264 | stringCompare( i1.description(), i2.description() ) && |
236 | stringCompare( i1.summary(), i2.summary() ) && | 265 | stringCompare( i1.summary(), i2.summary() ) && |
237 | i1.categories() == i2.categories() && | 266 | i1.categories() == i2.categories() && |
238 | // no need to compare mRelatedTo | 267 | // no need to compare mRelatedTo |
239 | stringCompare( i1.relatedToUid(), i2.relatedToUid() ) && | 268 | stringCompare( i1.relatedToUid(), i2.relatedToUid() ) && |
240 | // i1.relations() == i2.relations() && | 269 | // i1.relations() == i2.relations() && |
241 | i1.exDates() == i2.exDates() && | 270 | i1.exDates() == i2.exDates() && |
242 | i1.attachments() == i2.attachments() && | 271 | i1.attachments() == i2.attachments() && |
243 | i1.resources() == i2.resources() && | 272 | i1.resources() == i2.resources() && |
244 | i1.secrecy() == i2.secrecy() && | 273 | i1.secrecy() == i2.secrecy() && |
245 | i1.priority() == i2.priority() && | 274 | i1.priority() == i2.priority() && |
246 | i1.cancelled() == i2.cancelled() && | 275 | i1.cancelled() == i2.cancelled() && |
247 | stringCompare( i1.location(), i2.location() ); | 276 | stringCompare( i1.location(), i2.location() ); |
248 | } | 277 | } |
249 | 278 | ||
250 | Incidence* Incidence::recreateCloneException( QDate d ) | 279 | Incidence* Incidence::recreateCloneException( QDate d ) |
251 | { | 280 | { |
252 | Incidence* newInc = clone(); | 281 | Incidence* newInc = clone(); |
253 | newInc->recreate(); | 282 | newInc->recreate(); |
254 | if ( doesRecur() ) { | 283 | if ( doesRecur() ) { |
255 | addExDate( d ); | 284 | addExDate( d ); |
256 | newInc->recurrence()->unsetRecurs(); | 285 | newInc->recurrence()->unsetRecurs(); |
257 | if ( typeID() == eventID ) { | 286 | if ( typeID() == eventID ) { |
258 | int len = dtStart().secsTo( ((Event*)this)->dtEnd()); | 287 | int len = dtStart().secsTo( ((Event*)this)->dtEnd()); |
259 | QTime tim = dtStart().time(); | 288 | QTime tim = dtStart().time(); |
260 | newInc->setDtStart( QDateTime(d, tim) ); | 289 | newInc->setDtStart( QDateTime(d, tim) ); |
261 | ((Event*)newInc)->setDtEnd( newInc->dtStart().addSecs( len ) ); | 290 | ((Event*)newInc)->setDtEnd( newInc->dtStart().addSecs( len ) ); |
262 | } else { | 291 | } else { |
263 | int len = dtStart().secsTo( ((Todo*)this)->dtDue()); | 292 | int len = dtStart().secsTo( ((Todo*)this)->dtDue()); |
264 | QTime tim = ((Todo*)this)->dtDue().time(); | 293 | QTime tim = ((Todo*)this)->dtDue().time(); |
265 | ((Todo*)newInc)->setDtDue( QDateTime(d, tim) ); | 294 | ((Todo*)newInc)->setDtDue( QDateTime(d, tim) ); |
266 | ((Todo*)newInc)->setDtStart( ((Todo*)newInc)->dtDue().addSecs( -len ) ); | 295 | ((Todo*)newInc)->setDtStart( ((Todo*)newInc)->dtDue().addSecs( -len ) ); |
267 | ((Todo*)this)->setRecurDates(); | 296 | ((Todo*)this)->setRecurDates(); |
268 | } | 297 | } |
269 | newInc->setExDates( DateList () ); | 298 | newInc->setExDates( DateList () ); |
270 | } | 299 | } |
271 | return newInc; | 300 | return newInc; |
272 | } | 301 | } |
273 | 302 | ||
274 | void Incidence::recreate() | 303 | void Incidence::recreate() |
275 | { | 304 | { |
276 | setCreated(QDateTime::currentDateTime()); | 305 | setCreated(QDateTime::currentDateTime()); |
277 | 306 | ||
278 | setUid(CalFormat::createUniqueId()); | 307 | setUid(CalFormat::createUniqueId()); |
279 | 308 | ||
280 | setRevision(0); | 309 | setRevision(0); |
281 | setIDStr( ":" ); | 310 | setIDStr( ":" ); |
282 | setLastModified(QDateTime::currentDateTime()); | 311 | setLastModified(QDateTime::currentDateTime()); |
283 | } | 312 | } |
284 | void Incidence::cloneRelations( Incidence * newInc ) | 313 | void Incidence::cloneRelations( Incidence * newInc ) |
285 | { | 314 | { |
286 | // newInc is already a clone of this incidence | 315 | // newInc is already a clone of this incidence |
287 | Incidence * inc; | 316 | Incidence * inc; |
288 | Incidence * cloneInc; | 317 | Incidence * cloneInc; |
289 | QPtrList<Incidence> Relations = relations(); | 318 | QPtrList<Incidence> Relations = relations(); |
290 | for (inc=Relations.first();inc;inc=Relations.next()) { | 319 | for (inc=Relations.first();inc;inc=Relations.next()) { |
291 | cloneInc = inc->clone(); | 320 | cloneInc = inc->clone(); |
292 | cloneInc->recreate(); | 321 | cloneInc->recreate(); |
293 | cloneInc->setRelatedTo( newInc ); | 322 | cloneInc->setRelatedTo( newInc ); |
294 | inc->cloneRelations( cloneInc ); | 323 | inc->cloneRelations( cloneInc ); |
295 | } | 324 | } |
296 | } | 325 | } |
297 | void Incidence::setReadOnly( bool readOnly ) | 326 | void Incidence::setReadOnly( bool readOnly ) |
298 | { | 327 | { |
299 | IncidenceBase::setReadOnly( readOnly ); | 328 | IncidenceBase::setReadOnly( readOnly ); |
300 | if ( mRecurrence ) | 329 | if ( mRecurrence ) |
301 | mRecurrence->setRecurReadOnly( readOnly); | 330 | mRecurrence->setRecurReadOnly( readOnly); |
302 | } | 331 | } |
303 | void Incidence::setLastModifiedSubInvalid() | 332 | void Incidence::setLastModifiedSubInvalid() |
304 | { | 333 | { |
305 | mLastModifiedSub = QDateTime(); | 334 | mLastModifiedSub = QDateTime(); |
306 | if ( mRelatedTo ) | 335 | if ( mRelatedTo ) |
307 | mRelatedTo->setLastModifiedSubInvalid(); | 336 | mRelatedTo->setLastModifiedSubInvalid(); |
308 | } | 337 | } |
309 | QDateTime Incidence::lastModifiedSub() | 338 | QDateTime Incidence::lastModifiedSub() |
310 | { | 339 | { |
311 | if ( !mRelations.count() ) | 340 | if ( !mRelations.count() ) |
312 | return lastModified(); | 341 | return lastModified(); |
313 | if ( mLastModifiedSub.isValid() ) | 342 | if ( mLastModifiedSub.isValid() ) |
314 | return mLastModifiedSub; | 343 | return mLastModifiedSub; |
315 | mLastModifiedSub = lastModified(); | 344 | mLastModifiedSub = lastModified(); |
316 | Incidence * inc; | 345 | Incidence * inc; |
317 | QPtrList<Incidence> Relations = relations(); | 346 | QPtrList<Incidence> Relations = relations(); |
318 | for (inc=Relations.first();inc;inc=Relations.next()) { | 347 | for (inc=Relations.first();inc;inc=Relations.next()) { |
319 | if ( inc->lastModifiedSub() > mLastModifiedSub ) | 348 | if ( inc->lastModifiedSub() > mLastModifiedSub ) |
320 | mLastModifiedSub = inc->lastModifiedSub(); | 349 | mLastModifiedSub = inc->lastModifiedSub(); |
321 | } | 350 | } |
322 | return mLastModifiedSub; | 351 | return mLastModifiedSub; |
323 | } | 352 | } |
324 | void Incidence::setCreated(QDateTime created) | 353 | void Incidence::setCreated(QDateTime created) |
325 | { | 354 | { |
326 | if (mReadOnly) return; | 355 | if (mReadOnly) return; |
327 | mCreated = getEvenTime(created); | 356 | mCreated = getEvenTime(created); |
328 | } | 357 | } |
329 | 358 | ||
330 | QDateTime Incidence::created() const | 359 | QDateTime Incidence::created() const |
331 | { | 360 | { |
332 | return mCreated; | 361 | return mCreated; |
333 | } | 362 | } |
334 | 363 | ||
335 | void Incidence::setRevision(int rev) | 364 | void Incidence::setRevision(int rev) |
336 | { | 365 | { |
337 | if (mReadOnly) return; | 366 | if (mReadOnly) return; |
338 | mRevision = rev; | 367 | mRevision = rev; |
339 | 368 | ||
340 | updated(); | 369 | updated(); |
341 | } | 370 | } |
342 | 371 | ||
343 | int Incidence::revision() const | 372 | int Incidence::revision() const |
344 | { | 373 | { |
345 | return mRevision; | 374 | return mRevision; |
346 | } | 375 | } |
347 | 376 | ||
348 | void Incidence::setDtStart(const QDateTime &dtStart) | 377 | void Incidence::setDtStart(const QDateTime &dtStart) |
349 | { | 378 | { |
350 | 379 | ||
351 | QDateTime dt = getEvenTime(dtStart); | 380 | QDateTime dt = getEvenTime(dtStart); |
352 | 381 | ||
353 | if ( mRecurrence ) | 382 | if ( mRecurrence ) |
354 | mRecurrence->setRecurStart( dt); | 383 | mRecurrence->setRecurStart( dt); |
355 | IncidenceBase::setDtStart( dt ); | 384 | IncidenceBase::setDtStart( dt ); |
356 | } | 385 | } |
357 | 386 | ||
358 | void Incidence::setDescription(const QString &description) | 387 | void Incidence::setDescription(const QString &description) |
359 | { | 388 | { |
360 | if (mReadOnly) return; | 389 | if (mReadOnly) return; |
361 | mDescription = description; | 390 | mDescription = description; |
362 | updated(); | 391 | updated(); |
363 | } | 392 | } |
364 | 393 | ||
365 | QString Incidence::description() const | 394 | QString Incidence::description() const |
366 | { | 395 | { |
367 | return mDescription; | 396 | return mDescription; |
368 | } | 397 | } |
369 | 398 | ||
370 | 399 | ||
371 | void Incidence::setSummary(const QString &summary) | 400 | void Incidence::setSummary(const QString &summary) |
372 | { | 401 | { |
373 | if (mReadOnly) return; | 402 | if (mReadOnly) return; |
374 | mSummary = summary; | 403 | mSummary = summary; |
375 | updated(); | 404 | updated(); |
376 | } | 405 | } |
377 | 406 | ||
378 | QString Incidence::summary() const | 407 | QString Incidence::summary() const |
379 | { | 408 | { |
380 | return mSummary; | 409 | return mSummary; |
381 | } | 410 | } |
382 | void Incidence::checkCategories() | 411 | void Incidence::checkCategories() |
383 | { | 412 | { |
384 | mHoliday = mCategories.contains("Holiday") || mCategories.contains(i18n("Holiday")); | 413 | mHoliday = mCategories.contains("Holiday") || mCategories.contains(i18n("Holiday")); |
385 | mBirthday = mCategories.contains("Birthday") || mCategories.contains(i18n("Birthday")); | 414 | mBirthday = mCategories.contains("Birthday") || mCategories.contains(i18n("Birthday")); |
386 | mAnniversary = mCategories.contains("Anniversary") || mCategories.contains(i18n("Anniversary")); | 415 | mAnniversary = mCategories.contains("Anniversary") || mCategories.contains(i18n("Anniversary")); |
387 | } | 416 | } |
388 | 417 | ||
389 | void Incidence::addCategories(const QStringList &categories, bool addToRelations ) //addToRelations = false | 418 | void Incidence::addCategories(const QStringList &categories, bool addToRelations ) //addToRelations = false |
390 | { | 419 | { |
391 | if (mReadOnly) return; | 420 | if (mReadOnly) return; |
392 | int i; | 421 | int i; |
393 | for( i = 0; i < categories.count(); ++i ) { | 422 | for( i = 0; i < categories.count(); ++i ) { |
394 | if ( !mCategories.contains (categories[i])) | 423 | if ( !mCategories.contains (categories[i])) |
395 | mCategories.append( categories[i] ); | 424 | mCategories.append( categories[i] ); |
396 | } | 425 | } |
397 | checkCategories(); | 426 | checkCategories(); |
398 | updated(); | 427 | updated(); |
399 | if ( addToRelations ) { | 428 | if ( addToRelations ) { |
400 | Incidence * inc; | 429 | Incidence * inc; |
401 | QPtrList<Incidence> Relations = relations(); | 430 | QPtrList<Incidence> Relations = relations(); |
402 | for (inc=Relations.first();inc;inc=Relations.next()) { | 431 | for (inc=Relations.first();inc;inc=Relations.next()) { |
403 | inc->addCategories( categories, true ); | 432 | inc->addCategories( categories, true ); |
404 | } | 433 | } |
405 | } | 434 | } |
406 | } | 435 | } |
407 | 436 | ||
408 | void Incidence::setCategories(const QStringList &categories, bool setForRelations ) //setForRelations = false | 437 | void Incidence::setCategories(const QStringList &categories, bool setForRelations ) //setForRelations = false |
409 | { | 438 | { |
410 | if (mReadOnly) return; | 439 | if (mReadOnly) return; |
411 | mCategories = categories; | 440 | mCategories = categories; |
412 | checkCategories(); | 441 | checkCategories(); |
413 | updated(); | 442 | updated(); |
414 | if ( setForRelations ) { | 443 | if ( setForRelations ) { |
415 | Incidence * inc; | 444 | Incidence * inc; |
416 | QPtrList<Incidence> Relations = relations(); | 445 | QPtrList<Incidence> Relations = relations(); |
417 | for (inc=Relations.first();inc;inc=Relations.next()) { | 446 | for (inc=Relations.first();inc;inc=Relations.next()) { |
418 | inc->setCategories( categories, true ); | 447 | inc->setCategories( categories, true ); |
419 | } | 448 | } |
420 | } | 449 | } |
421 | } | 450 | } |
422 | 451 | ||
423 | // TODO: remove setCategories(QString) function | 452 | // TODO: remove setCategories(QString) function |
424 | void Incidence::setCategories(const QString &catStr) | 453 | void Incidence::setCategories(const QString &catStr) |
425 | { | 454 | { |
426 | if (mReadOnly) return; | 455 | if (mReadOnly) return; |
427 | mCategories.clear(); | 456 | mCategories.clear(); |
428 | 457 | ||
429 | if (catStr.isEmpty()) return; | 458 | if (catStr.isEmpty()) return; |
430 | 459 | ||
431 | mCategories = QStringList::split(",",catStr); | 460 | mCategories = QStringList::split(",",catStr); |
432 | 461 | ||
433 | QStringList::Iterator it; | 462 | QStringList::Iterator it; |
434 | for(it = mCategories.begin();it != mCategories.end(); ++it) { | 463 | for(it = mCategories.begin();it != mCategories.end(); ++it) { |
435 | *it = (*it).stripWhiteSpace(); | 464 | *it = (*it).stripWhiteSpace(); |
436 | } | 465 | } |
437 | checkCategories(); | 466 | checkCategories(); |
438 | updated(); | 467 | updated(); |
439 | } | 468 | } |
440 | // using this makes filtering 3 times faster | 469 | // using this makes filtering 3 times faster |
441 | QStringList* Incidence::categoriesP() | 470 | QStringList* Incidence::categoriesP() |
442 | { | 471 | { |
443 | return &mCategories; | 472 | return &mCategories; |
444 | } | 473 | } |
445 | 474 | ||
446 | QStringList Incidence::categories() const | 475 | QStringList Incidence::categories() const |
447 | { | 476 | { |
448 | return mCategories; | 477 | return mCategories; |
449 | } | 478 | } |
450 | 479 | ||
451 | QString Incidence::categoriesStr() | 480 | QString Incidence::categoriesStr() |
452 | { | 481 | { |
453 | return mCategories.join(","); | 482 | return mCategories.join(","); |
454 | } | 483 | } |
455 | QString Incidence::categoriesStrWithSpace() | 484 | QString Incidence::categoriesStrWithSpace() |
456 | { | 485 | { |
457 | return mCategories.join(", "); | 486 | return mCategories.join(", "); |
458 | } | 487 | } |
459 | 488 | ||
460 | void Incidence::setRelatedToUid(const QString &relatedToUid) | 489 | void Incidence::setRelatedToUid(const QString &relatedToUid) |
461 | { | 490 | { |
462 | if (mReadOnly) return; | 491 | if (mReadOnly) return; |
463 | mRelatedToUid = relatedToUid; | 492 | mRelatedToUid = relatedToUid; |
464 | } | 493 | } |
465 | 494 | ||
466 | QString Incidence::relatedToUid() const | 495 | QString Incidence::relatedToUid() const |
467 | { | 496 | { |
468 | return mRelatedToUid; | 497 | return mRelatedToUid; |
469 | } | 498 | } |
470 | 499 | ||
471 | void Incidence::setRelatedTo(Incidence *relatedTo) | 500 | void Incidence::setRelatedTo(Incidence *relatedTo) |
472 | { | 501 | { |
473 | //qDebug("Incidence::setRelatedTo %d ", relatedTo); | 502 | //qDebug("Incidence::setRelatedTo %d ", relatedTo); |
474 | //qDebug("setRelatedTo(Incidence *relatedTo) %s %s", summary().latin1(), relatedTo->summary().latin1() ); | 503 | //qDebug("setRelatedTo(Incidence *relatedTo) %s %s", summary().latin1(), relatedTo->summary().latin1() ); |
475 | if (mReadOnly || mRelatedTo == relatedTo) return; | 504 | if (mReadOnly || mRelatedTo == relatedTo) return; |
476 | if(mRelatedTo) { | 505 | if(mRelatedTo) { |
477 | // updated(); | 506 | // updated(); |
478 | mRelatedTo->removeRelation(this); | 507 | mRelatedTo->removeRelation(this); |
479 | } | 508 | } |
480 | mRelatedTo = relatedTo; | 509 | mRelatedTo = relatedTo; |
481 | if (mRelatedTo) { | 510 | if (mRelatedTo) { |
482 | mRelatedTo->addRelation(this); | 511 | mRelatedTo->addRelation(this); |
483 | mRelatedToUid = mRelatedTo->uid(); | 512 | mRelatedToUid = mRelatedTo->uid(); |
484 | } else { | 513 | } else { |
485 | mRelatedToUid = ""; | 514 | mRelatedToUid = ""; |
486 | } | 515 | } |
487 | } | 516 | } |
488 | 517 | ||
489 | Incidence *Incidence::relatedTo() const | 518 | Incidence *Incidence::relatedTo() const |
490 | { | 519 | { |
491 | return mRelatedTo; | 520 | return mRelatedTo; |
492 | } | 521 | } |
493 | 522 | ||
494 | QPtrList<Incidence> Incidence::relations() const | 523 | QPtrList<Incidence> Incidence::relations() const |
495 | { | 524 | { |
496 | return mRelations; | 525 | return mRelations; |
497 | } | 526 | } |
498 | 527 | ||
499 | void Incidence::addRelationsToList(QPtrList<Incidence> *rel) | 528 | void Incidence::addRelationsToList(QPtrList<Incidence> *rel) |
500 | { | 529 | { |
501 | Incidence* inc; | 530 | Incidence* inc; |
502 | QPtrList<Incidence> Relations = relations(); | 531 | QPtrList<Incidence> Relations = relations(); |
503 | for (inc=Relations.first();inc;inc=Relations.next()) { | 532 | for (inc=Relations.first();inc;inc=Relations.next()) { |
504 | inc->addRelationsToList( rel ); | 533 | inc->addRelationsToList( rel ); |
505 | } | 534 | } |
506 | if ( rel->findRef( this ) == -1 ) | 535 | if ( rel->findRef( this ) == -1 ) |
507 | rel->append( this ); | 536 | rel->append( this ); |
508 | } | 537 | } |
509 | 538 | ||
510 | void Incidence::addRelation(Incidence *event) | 539 | void Incidence::addRelation(Incidence *event) |
511 | { | 540 | { |
512 | setLastModifiedSubInvalid(); | 541 | setLastModifiedSubInvalid(); |
513 | if( mRelations.findRef( event ) == -1 ) { | 542 | if( mRelations.findRef( event ) == -1 ) { |
514 | mRelations.append(event); | 543 | mRelations.append(event); |
515 | //updated(); | 544 | //updated(); |
516 | } | 545 | } |
517 | } | 546 | } |
518 | 547 | ||
519 | void Incidence::removeRelation(Incidence *event) | 548 | void Incidence::removeRelation(Incidence *event) |
520 | { | 549 | { |
521 | setLastModifiedSubInvalid(); | 550 | setLastModifiedSubInvalid(); |
522 | mRelations.removeRef(event); | 551 | mRelations.removeRef(event); |
523 | // if (event->getRelatedTo() == this) event->setRelatedTo(0); | 552 | // if (event->getRelatedTo() == this) event->setRelatedTo(0); |
524 | } | 553 | } |
525 | 554 | ||
526 | bool Incidence::recursOn(const QDate &qd) const | 555 | bool Incidence::recursOn(const QDate &qd) const |
527 | { | 556 | { |
528 | if (mRecurrence && mRecurrence->recursOnPure(qd) && !isException(qd)) return true; | 557 | if (mRecurrence && mRecurrence->recursOnPure(qd) && !isException(qd)) return true; |
529 | else return false; | 558 | else return false; |
530 | } | 559 | } |
531 | 560 | ||
532 | void Incidence::setExDates(const DateList &exDates) | 561 | void Incidence::setExDates(const DateList &exDates) |
533 | { | 562 | { |
534 | if (mReadOnly) return; | 563 | if (mReadOnly) return; |
535 | mExDates = exDates; | 564 | mExDates = exDates; |
536 | recurrence()->setRecurExDatesCount(mExDates.count()); | 565 | recurrence()->setRecurExDatesCount(mExDates.count()); |
537 | 566 | ||
538 | updated(); | 567 | updated(); |
539 | } | 568 | } |
540 | 569 | ||
541 | void Incidence::addExDate(const QDate &date) | 570 | void Incidence::addExDate(const QDate &date) |
542 | { | 571 | { |
543 | if (mReadOnly) return; | 572 | if (mReadOnly) return; |
544 | mExDates.append(date); | 573 | mExDates.append(date); |
545 | 574 | ||
546 | recurrence()->setRecurExDatesCount(mExDates.count()); | 575 | recurrence()->setRecurExDatesCount(mExDates.count()); |
547 | 576 | ||
548 | updated(); | 577 | updated(); |
549 | } | 578 | } |
550 | 579 | ||
551 | DateList Incidence::exDates() const | 580 | DateList Incidence::exDates() const |
552 | { | 581 | { |
553 | return mExDates; | 582 | return mExDates; |
554 | } | 583 | } |
555 | 584 | ||
556 | bool Incidence::isException(const QDate &date) const | 585 | bool Incidence::isException(const QDate &date) const |
557 | { | 586 | { |
558 | DateList::ConstIterator it; | 587 | DateList::ConstIterator it; |
559 | for( it = mExDates.begin(); it != mExDates.end(); ++it ) { | 588 | for( it = mExDates.begin(); it != mExDates.end(); ++it ) { |
560 | if ( (*it) == date ) { | 589 | if ( (*it) == date ) { |
561 | return true; | 590 | return true; |
562 | } | 591 | } |
563 | } | 592 | } |
564 | 593 | ||
565 | return false; | 594 | return false; |
566 | } | 595 | } |
567 | 596 | ||
568 | void Incidence::addAttachment(Attachment *attachment) | 597 | void Incidence::addAttachment(Attachment *attachment) |
569 | { | 598 | { |
570 | if (mReadOnly || !attachment) return; | 599 | if (mReadOnly || !attachment) return; |
571 | mAttachments.append(attachment); | 600 | mAttachments.append(attachment); |
572 | updated(); | 601 | updated(); |
573 | } | 602 | } |
574 | 603 | ||
575 | void Incidence::deleteAttachment(Attachment *attachment) | 604 | void Incidence::deleteAttachment(Attachment *attachment) |
576 | { | 605 | { |
577 | mAttachments.removeRef(attachment); | 606 | mAttachments.removeRef(attachment); |
578 | } | 607 | } |
579 | 608 | ||
580 | void Incidence::deleteAttachments(const QString& mime) | 609 | void Incidence::deleteAttachments(const QString& mime) |
581 | { | 610 | { |
582 | Attachment *at = mAttachments.first(); | 611 | Attachment *at = mAttachments.first(); |
583 | while (at) { | 612 | while (at) { |
584 | if (at->mimeType() == mime) | 613 | if (at->mimeType() == mime) |
585 | mAttachments.remove(); | 614 | mAttachments.remove(); |
586 | else | 615 | else |
587 | at = mAttachments.next(); | 616 | at = mAttachments.next(); |
588 | } | 617 | } |
589 | } | 618 | } |
590 | 619 | ||
591 | QPtrList<Attachment> Incidence::attachments() const | 620 | QPtrList<Attachment> Incidence::attachments() const |
592 | { | 621 | { |
593 | return mAttachments; | 622 | return mAttachments; |
594 | } | 623 | } |
595 | 624 | ||
596 | QPtrList<Attachment> Incidence::attachments(const QString& mime) const | 625 | QPtrList<Attachment> Incidence::attachments(const QString& mime) const |
597 | { | 626 | { |
598 | QPtrList<Attachment> attachments; | 627 | QPtrList<Attachment> attachments; |
599 | QPtrListIterator<Attachment> it( mAttachments ); | 628 | QPtrListIterator<Attachment> it( mAttachments ); |
600 | Attachment *at; | 629 | Attachment *at; |
601 | while ( (at = it.current()) ) { | 630 | while ( (at = it.current()) ) { |
602 | if (at->mimeType() == mime) | 631 | if (at->mimeType() == mime) |
603 | attachments.append(at); | 632 | attachments.append(at); |
604 | ++it; | 633 | ++it; |
605 | } | 634 | } |
606 | 635 | ||
607 | return attachments; | 636 | return attachments; |
608 | } | 637 | } |
609 | 638 | ||
610 | void Incidence::setResources(const QStringList &resources) | 639 | void Incidence::setResources(const QStringList &resources) |
611 | { | 640 | { |
612 | if (mReadOnly) return; | 641 | if (mReadOnly) return; |
613 | mResources = resources; | 642 | mResources = resources; |
614 | updated(); | 643 | updated(); |
615 | } | 644 | } |
616 | 645 | ||
617 | QStringList Incidence::resources() const | 646 | QStringList Incidence::resources() const |
618 | { | 647 | { |
619 | return mResources; | 648 | return mResources; |
620 | } | 649 | } |
621 | 650 | ||
622 | 651 | ||
623 | void Incidence::setPriority(int priority) | 652 | void Incidence::setPriority(int priority) |
624 | { | 653 | { |
625 | if (mReadOnly) return; | 654 | if (mReadOnly) return; |
626 | mPriority = priority; | 655 | mPriority = priority; |
627 | updated(); | 656 | updated(); |
628 | } | 657 | } |
629 | 658 | ||
630 | int Incidence::priority() const | 659 | int Incidence::priority() const |
631 | { | 660 | { |
632 | return mPriority; | 661 | return mPriority; |
633 | } | 662 | } |
634 | 663 | ||
635 | void Incidence::setSecrecy(int sec) | 664 | void Incidence::setSecrecy(int sec) |
636 | { | 665 | { |
637 | if (mReadOnly) return; | 666 | if (mReadOnly) return; |
638 | mSecrecy = sec; | 667 | mSecrecy = sec; |
639 | updated(); | 668 | updated(); |
640 | } | 669 | } |
641 | 670 | ||
642 | int Incidence::secrecy() const | 671 | int Incidence::secrecy() const |
643 | { | 672 | { |
644 | return mSecrecy; | 673 | return mSecrecy; |
645 | } | 674 | } |
646 | 675 | ||
647 | QString Incidence::secrecyStr() const | 676 | QString Incidence::secrecyStr() const |
648 | { | 677 | { |
649 | return secrecyName(mSecrecy); | 678 | return secrecyName(mSecrecy); |
650 | } | 679 | } |
651 | 680 | ||
652 | QString Incidence::secrecyName(int secrecy) | 681 | QString Incidence::secrecyName(int secrecy) |
653 | { | 682 | { |
654 | switch (secrecy) { | 683 | switch (secrecy) { |
655 | case SecrecyPublic: | 684 | case SecrecyPublic: |
656 | return i18n("Public"); | 685 | return i18n("Public"); |
657 | break; | 686 | break; |
658 | case SecrecyPrivate: | 687 | case SecrecyPrivate: |
659 | return i18n("Private"); | 688 | return i18n("Private"); |
660 | break; | 689 | break; |
661 | case SecrecyConfidential: | 690 | case SecrecyConfidential: |
662 | return i18n("Confidential"); | 691 | return i18n("Confidential"); |
663 | break; | 692 | break; |
664 | default: | 693 | default: |
665 | return i18n("Undefined"); | 694 | return i18n("Undefined"); |
666 | break; | 695 | break; |
667 | } | 696 | } |
668 | } | 697 | } |
669 | 698 | ||
670 | QStringList Incidence::secrecyList() | 699 | QStringList Incidence::secrecyList() |
671 | { | 700 | { |
672 | QStringList list; | 701 | QStringList list; |
673 | list << secrecyName(SecrecyPublic); | 702 | list << secrecyName(SecrecyPublic); |
674 | list << secrecyName(SecrecyPrivate); | 703 | list << secrecyName(SecrecyPrivate); |
675 | list << secrecyName(SecrecyConfidential); | 704 | list << secrecyName(SecrecyConfidential); |
676 | 705 | ||
677 | return list; | 706 | return list; |
678 | } | 707 | } |
679 | 708 | ||
680 | 709 | ||
681 | QPtrList<Alarm> Incidence::alarms() const | 710 | QPtrList<Alarm> Incidence::alarms() const |
682 | { | 711 | { |
683 | return mAlarms; | 712 | return mAlarms; |
684 | } | 713 | } |
685 | 714 | ||
686 | Alarm* Incidence::newAlarm() | 715 | Alarm* Incidence::newAlarm() |
687 | { | 716 | { |
688 | Alarm* alarm = new Alarm(this); | 717 | Alarm* alarm = new Alarm(this); |
689 | mAlarms.append(alarm); | 718 | mAlarms.append(alarm); |
690 | // updated(); | 719 | // updated(); |
691 | return alarm; | 720 | return alarm; |
692 | } | 721 | } |
693 | 722 | ||
694 | void Incidence::addAlarm(Alarm *alarm) | 723 | void Incidence::addAlarm(Alarm *alarm) |
695 | { | 724 | { |
696 | mAlarms.append(alarm); | 725 | mAlarms.append(alarm); |
697 | updated(); | 726 | updated(); |
698 | } | 727 | } |
699 | 728 | ||
700 | void Incidence::removeAlarm(Alarm *alarm) | 729 | void Incidence::removeAlarm(Alarm *alarm) |
701 | { | 730 | { |
702 | mAlarms.removeRef(alarm); | 731 | mAlarms.removeRef(alarm); |
703 | updated(); | 732 | updated(); |
704 | } | 733 | } |
705 | 734 | ||
706 | void Incidence::clearAlarms() | 735 | void Incidence::clearAlarms() |
707 | { | 736 | { |
708 | mAlarms.clear(); | 737 | mAlarms.clear(); |
709 | updated(); | 738 | updated(); |
710 | } | 739 | } |
711 | 740 | ||
712 | bool Incidence::isAlarmEnabled() const | 741 | bool Incidence::isAlarmEnabled() const |
713 | { | 742 | { |
714 | Alarm* alarm; | 743 | Alarm* alarm; |
715 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { | 744 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { |
716 | if (alarm->enabled()) | 745 | if (alarm->enabled()) |
717 | return true; | 746 | return true; |
718 | } | 747 | } |
719 | return false; | 748 | return false; |
720 | } | 749 | } |
721 | #include <stdlib.h> | 750 | #include <stdlib.h> |
722 | Recurrence *Incidence::recurrence() | 751 | Recurrence *Incidence::recurrence() |
723 | { | 752 | { |
724 | if ( ! mRecurrence ) { | 753 | if ( ! mRecurrence ) { |
725 | mRecurrence = new Recurrence(this); | 754 | mRecurrence = new Recurrence(this); |
726 | qDebug("creating new recurence "); | 755 | qDebug("creating new recurence "); |
727 | //abort(); | 756 | //abort(); |
728 | } | 757 | } |
729 | return mRecurrence; | 758 | return mRecurrence; |
730 | } | 759 | } |
731 | void Incidence::setRecurrence( Recurrence * r) | 760 | void Incidence::setRecurrence( Recurrence * r) |
732 | { | 761 | { |
733 | if ( mRecurrence ) | 762 | if ( mRecurrence ) |
734 | delete mRecurrence; | 763 | delete mRecurrence; |
735 | mRecurrence = r; | 764 | mRecurrence = r; |
736 | } | 765 | } |
737 | 766 | ||
738 | void Incidence::setLocation(const QString &location) | 767 | void Incidence::setLocation(const QString &location) |
739 | { | 768 | { |
740 | if (mReadOnly) return; | 769 | if (mReadOnly) return; |
741 | mLocation = location; | 770 | mLocation = location; |
742 | updated(); | 771 | updated(); |
743 | } | 772 | } |
744 | 773 | ||
745 | QString Incidence::location() const | 774 | QString Incidence::location() const |
746 | { | 775 | { |
747 | return mLocation; | 776 | return mLocation; |
748 | } | 777 | } |
749 | QString Incidence::recurrenceText() const | 778 | QString Incidence::recurrenceText() const |
750 | { | 779 | { |
751 | if ( mRecurrence ) return mRecurrence->recurrenceText(); | 780 | if ( mRecurrence ) return mRecurrence->recurrenceText(); |
752 | return i18n("No"); | 781 | return i18n("No"); |
753 | } | 782 | } |
754 | 783 | ||
755 | ushort Incidence::doesRecur() const | 784 | ushort Incidence::doesRecur() const |
756 | { | 785 | { |
757 | if ( mRecurrence ) return mRecurrence->doesRecur(); | 786 | if ( mRecurrence ) return mRecurrence->doesRecur(); |
758 | else return Recurrence::rNone; | 787 | else return Recurrence::rNone; |
759 | } | 788 | } |
760 | 789 | ||
761 | QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const | 790 | QDateTime Incidence::getNextOccurence( const QDateTime& dt, bool* ok ) const |
762 | { | 791 | { |
763 | QDateTime incidenceStart = dt; | 792 | QDateTime incidenceStart = dt; |
764 | *ok = false; | 793 | *ok = false; |
765 | if ( doesRecur() ) { | 794 | if ( doesRecur() ) { |
766 | bool last; | 795 | bool last; |
767 | mRecurrence->getPreviousDateTime( incidenceStart , &last ); | 796 | mRecurrence->getPreviousDateTime( incidenceStart , &last ); |
768 | int count = 0; | 797 | int count = 0; |
769 | if ( !last ) { | 798 | if ( !last ) { |
770 | while ( !last ) { | 799 | while ( !last ) { |
771 | ++count; | 800 | ++count; |
772 | incidenceStart = mRecurrence->getNextDateTime( incidenceStart, &last ); | 801 | incidenceStart = mRecurrence->getNextDateTime( incidenceStart, &last ); |
773 | if ( recursOn( incidenceStart.date() ) ) { | 802 | if ( recursOn( incidenceStart.date() ) ) { |
774 | last = true; // exit while llop | 803 | last = true; // exit while llop |
775 | } else { | 804 | } else { |
776 | if ( last ) { // no alarm on last recurrence | 805 | if ( last ) { // no alarm on last recurrence |
777 | return QDateTime (); | 806 | return QDateTime (); |
778 | } | 807 | } |
779 | int year = incidenceStart.date().year(); | 808 | int year = incidenceStart.date().year(); |
780 | // workaround for bug in recurrence | 809 | // workaround for bug in recurrence |
781 | if ( count == 100 || year < 1000 || year > 5000 ) { | 810 | if ( count == 100 || year < 1000 || year > 5000 ) { |
782 | return QDateTime (); | 811 | return QDateTime (); |
783 | } | 812 | } |
784 | incidenceStart = incidenceStart.addSecs( 1 ); | 813 | incidenceStart = incidenceStart.addSecs( 1 ); |
785 | } | 814 | } |
786 | } | 815 | } |
787 | } else { | 816 | } else { |
788 | return QDateTime (); | 817 | return QDateTime (); |
789 | } | 818 | } |
790 | } else { | 819 | } else { |
791 | if ( hasStartDate () ) { | 820 | if ( hasStartDate () ) { |
792 | incidenceStart = dtStart(); | 821 | incidenceStart = dtStart(); |
793 | } | 822 | } |
794 | if ( typeID() == todoID ) { | 823 | if ( typeID() == todoID ) { |
795 | if ( ((Todo*)this)->hasDueDate() ) | 824 | if ( ((Todo*)this)->hasDueDate() ) |
796 | incidenceStart = ((Todo*)this)->dtDue(); | 825 | incidenceStart = ((Todo*)this)->dtDue(); |
797 | } | 826 | } |
798 | } | 827 | } |
799 | if ( incidenceStart > dt ) | 828 | if ( incidenceStart > dt ) |
800 | *ok = true; | 829 | *ok = true; |
801 | return incidenceStart; | 830 | return incidenceStart; |
802 | } | 831 | } |
803 | QDateTime Incidence::dtStart() const | 832 | QDateTime Incidence::dtStart() const |
804 | { | 833 | { |
805 | if ( doesRecur() ) { | 834 | if ( doesRecur() ) { |
806 | if ( typeID() == todoID ) { | 835 | if ( typeID() == todoID ) { |
807 | ((Todo*)this)->checkSetCompletedFalse(); | 836 | ((Todo*)this)->checkSetCompletedFalse(); |
808 | } | 837 | } |
809 | } | 838 | } |
810 | return mDtStart; | 839 | return mDtStart; |
811 | } | 840 | } |
diff --git a/libkcal/incidence.h b/libkcal/incidence.h index 8519f01..88df217 100644 --- a/libkcal/incidence.h +++ b/libkcal/incidence.h | |||
@@ -1,322 +1,323 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | #ifndef INCIDENCE_H | 20 | #ifndef INCIDENCE_H |
21 | #define INCIDENCE_H | 21 | #define INCIDENCE_H |
22 | // | 22 | // |
23 | // Incidence - base class of calendaring components | 23 | // Incidence - base class of calendaring components |
24 | // | 24 | // |
25 | 25 | ||
26 | #include <qdatetime.h> | 26 | #include <qdatetime.h> |
27 | #include <qstringlist.h> | 27 | #include <qstringlist.h> |
28 | #include <qvaluelist.h> | 28 | #include <qvaluelist.h> |
29 | 29 | ||
30 | #include "recurrence.h" | 30 | #include "recurrence.h" |
31 | #include "alarm.h" | 31 | #include "alarm.h" |
32 | #include "attachment.h" | 32 | #include "attachment.h" |
33 | #include "listbase.h" | 33 | #include "listbase.h" |
34 | #include "incidencebase.h" | 34 | #include "incidencebase.h" |
35 | 35 | ||
36 | namespace KCal { | 36 | namespace KCal { |
37 | 37 | ||
38 | class Event; | 38 | class Event; |
39 | class Todo; | 39 | class Todo; |
40 | class Journal; | 40 | class Journal; |
41 | 41 | ||
42 | /** | 42 | /** |
43 | This class provides the base class common to all calendar components. | 43 | This class provides the base class common to all calendar components. |
44 | */ | 44 | */ |
45 | class Incidence : public IncidenceBase | 45 | class Incidence : public IncidenceBase |
46 | { | 46 | { |
47 | public: | 47 | public: |
48 | /** | 48 | /** |
49 | This class provides the interface for a visitor of calendar components. It | 49 | This class provides the interface for a visitor of calendar components. It |
50 | serves as base class for concrete visitors, which implement certain actions on | 50 | serves as base class for concrete visitors, which implement certain actions on |
51 | calendar components. It allows to add functions, which operate on the concrete | 51 | calendar components. It allows to add functions, which operate on the concrete |
52 | types of calendar components, without changing the calendar component classes. | 52 | types of calendar components, without changing the calendar component classes. |
53 | */ | 53 | */ |
54 | class Visitor | 54 | class Visitor |
55 | { | 55 | { |
56 | public: | 56 | public: |
57 | /** Destruct Incidence::Visitor */ | 57 | /** Destruct Incidence::Visitor */ |
58 | virtual ~Visitor() {} | 58 | virtual ~Visitor() {} |
59 | 59 | ||
60 | /** | 60 | /** |
61 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions | 61 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions |
62 | on an Event object. | 62 | on an Event object. |
63 | */ | 63 | */ |
64 | virtual bool visit(Event *) { return false; } | 64 | virtual bool visit(Event *) { return false; } |
65 | /** | 65 | /** |
66 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions | 66 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions |
67 | on an Todo object. | 67 | on an Todo object. |
68 | */ | 68 | */ |
69 | virtual bool visit(Todo *) { return false; } | 69 | virtual bool visit(Todo *) { return false; } |
70 | /** | 70 | /** |
71 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions | 71 | Reimplement this function in your concrete subclass of IncidenceVisitor to perform actions |
72 | on an Journal object. | 72 | on an Journal object. |
73 | */ | 73 | */ |
74 | virtual bool visit(Journal *) { return false; } | 74 | virtual bool visit(Journal *) { return false; } |
75 | 75 | ||
76 | protected: | 76 | protected: |
77 | /** Constructor is protected to prevent direct creation of visitor base class. */ | 77 | /** Constructor is protected to prevent direct creation of visitor base class. */ |
78 | Visitor() {} | 78 | Visitor() {} |
79 | }; | 79 | }; |
80 | 80 | ||
81 | /** | 81 | /** |
82 | This class implements a visitor for adding an Incidence to a resource | 82 | This class implements a visitor for adding an Incidence to a resource |
83 | supporting addEvent(), addTodo() and addJournal() calls. | 83 | supporting addEvent(), addTodo() and addJournal() calls. |
84 | */ | 84 | */ |
85 | template<class T> | 85 | template<class T> |
86 | class AddVisitor : public Visitor | 86 | class AddVisitor : public Visitor |
87 | { | 87 | { |
88 | public: | 88 | public: |
89 | AddVisitor( T *r ) : mResource( r ) {} | 89 | AddVisitor( T *r ) : mResource( r ) {} |
90 | bool visit( Event *e ) { return mResource->addEvent( e ); } | 90 | bool visit( Event *e ) { return mResource->addEvent( e ); } |
91 | bool visit( Todo *t ) { return mResource->addTodo( t ); } | 91 | bool visit( Todo *t ) { return mResource->addTodo( t ); } |
92 | bool visit( Journal *j ) { return mResource->addJournal( j ); } | 92 | bool visit( Journal *j ) { return mResource->addJournal( j ); } |
93 | 93 | ||
94 | private: | 94 | private: |
95 | T *mResource; | 95 | T *mResource; |
96 | }; | 96 | }; |
97 | 97 | ||
98 | /** enumeration for describing an event's secrecy. */ | 98 | /** enumeration for describing an event's secrecy. */ |
99 | enum { SecrecyPublic = 0, SecrecyPrivate = 1, SecrecyConfidential = 2 }; | 99 | enum { SecrecyPublic = 0, SecrecyPrivate = 1, SecrecyConfidential = 2 }; |
100 | typedef ListBase<Incidence> List; | 100 | typedef ListBase<Incidence> List; |
101 | Incidence(); | 101 | Incidence(); |
102 | Incidence(const Incidence &); | 102 | Incidence(const Incidence &); |
103 | ~Incidence(); | 103 | ~Incidence(); |
104 | 104 | ||
105 | /** | 105 | /** |
106 | Accept IncidenceVisitor. A class taking part in the visitor mechanism has to | 106 | Accept IncidenceVisitor. A class taking part in the visitor mechanism has to |
107 | provide this implementation: | 107 | provide this implementation: |
108 | <pre> | 108 | <pre> |
109 | bool accept(Visitor &v) { return v.visit(this); } | 109 | bool accept(Visitor &v) { return v.visit(this); } |
110 | </pre> | 110 | </pre> |
111 | */ | 111 | */ |
112 | virtual bool accept(Visitor &) { return false; } | 112 | virtual bool accept(Visitor &) { return false; } |
113 | 113 | ||
114 | virtual Incidence *clone() = 0; | 114 | virtual Incidence *clone() = 0; |
115 | virtual void cloneRelations( Incidence * ); | 115 | virtual void cloneRelations( Incidence * ); |
116 | void addRelationsToList(QPtrList<Incidence> *rel); | 116 | void addRelationsToList(QPtrList<Incidence> *rel); |
117 | virtual QDateTime getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const = 0; | 117 | virtual QDateTime getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const = 0; |
118 | void setReadOnly( bool ); | 118 | void setReadOnly( bool ); |
119 | 119 | ||
120 | /** | 120 | /** |
121 | Recreate event. The event is made a new unique event, but already stored | 121 | Recreate event. The event is made a new unique event, but already stored |
122 | event information is preserved. Sets uniquie id, creation date, last | 122 | event information is preserved. Sets uniquie id, creation date, last |
123 | modification date and revision number. | 123 | modification date and revision number. |
124 | */ | 124 | */ |
125 | void recreate(); | 125 | void recreate(); |
126 | Incidence* recreateCloneException(QDate); | 126 | Incidence* recreateCloneException(QDate); |
127 | 127 | ||
128 | /** set creation date */ | 128 | /** set creation date */ |
129 | void setCreated(QDateTime); | 129 | void setCreated(QDateTime); |
130 | /** return time and date of creation. */ | 130 | /** return time and date of creation. */ |
131 | QDateTime created() const; | 131 | QDateTime created() const; |
132 | 132 | ||
133 | /** set the number of revisions this event has seen */ | 133 | /** set the number of revisions this event has seen */ |
134 | void setRevision(int rev); | 134 | void setRevision(int rev); |
135 | /** return the number of revisions this event has seen */ | 135 | /** return the number of revisions this event has seen */ |
136 | int revision() const; | 136 | int revision() const; |
137 | 137 | ||
138 | /** Set starting date/time. */ | 138 | /** Set starting date/time. */ |
139 | virtual void setDtStart(const QDateTime &dtStart); | 139 | virtual void setDtStart(const QDateTime &dtStart); |
140 | /** Return the incidence's ending date/time as a QDateTime. */ | 140 | /** Return the incidence's ending date/time as a QDateTime. */ |
141 | virtual QDateTime dtEnd() const { return QDateTime(); } | 141 | virtual QDateTime dtEnd() const { return QDateTime(); } |
142 | 142 | ||
143 | /** sets the event's lengthy description. */ | 143 | /** sets the event's lengthy description. */ |
144 | void setDescription(const QString &description); | 144 | void setDescription(const QString &description); |
145 | /** returns a reference to the event's description. */ | 145 | /** returns a reference to the event's description. */ |
146 | QString description() const; | 146 | QString description() const; |
147 | 147 | ||
148 | /** sets the event's short summary. */ | 148 | /** sets the event's short summary. */ |
149 | void setSummary(const QString &summary); | 149 | void setSummary(const QString &summary); |
150 | /** returns a reference to the event's summary. */ | 150 | /** returns a reference to the event's summary. */ |
151 | QString summary() const; | 151 | QString summary() const; |
152 | 152 | ||
153 | /** set event's applicable categories */ | 153 | /** set event's applicable categories */ |
154 | void setCategories(const QStringList &categories, bool setForRelations = false); | 154 | void setCategories(const QStringList &categories, bool setForRelations = false); |
155 | void addCategories(const QStringList &categories, bool addToRelations = false); | 155 | void addCategories(const QStringList &categories, bool addToRelations = false); |
156 | /** set event's categories based on a comma delimited string */ | 156 | /** set event's categories based on a comma delimited string */ |
157 | void setCategories(const QString &catStr); | 157 | void setCategories(const QString &catStr); |
158 | /** return categories in a list */ | 158 | /** return categories in a list */ |
159 | QStringList categories() const; | 159 | QStringList categories() const; |
160 | QStringList* categoriesP(); | 160 | QStringList* categoriesP(); |
161 | /** return categories as a comma separated string */ | 161 | /** return categories as a comma separated string */ |
162 | QString categoriesStr(); | 162 | QString categoriesStr(); |
163 | QString categoriesStrWithSpace(); | 163 | QString categoriesStrWithSpace(); |
164 | 164 | ||
165 | /** point at some other event to which the event relates. This function should | 165 | /** point at some other event to which the event relates. This function should |
166 | * only be used when constructing a calendar before the related Event | 166 | * only be used when constructing a calendar before the related Event |
167 | * exists. */ | 167 | * exists. */ |
168 | void setRelatedToUid(const QString &); | 168 | void setRelatedToUid(const QString &); |
169 | /** what event does this one relate to? This function should | 169 | /** what event does this one relate to? This function should |
170 | * only be used when constructing a calendar before the related Event | 170 | * only be used when constructing a calendar before the related Event |
171 | * exists. */ | 171 | * exists. */ |
172 | QString relatedToUid() const; | 172 | QString relatedToUid() const; |
173 | /** point at some other event to which the event relates */ | 173 | /** point at some other event to which the event relates */ |
174 | void setRelatedTo(Incidence *relatedTo); | 174 | void setRelatedTo(Incidence *relatedTo); |
175 | /** what event does this one relate to? */ | 175 | /** what event does this one relate to? */ |
176 | Incidence *relatedTo() const; | 176 | Incidence *relatedTo() const; |
177 | /** All events that are related to this event */ | 177 | /** All events that are related to this event */ |
178 | QPtrList<Incidence> relations() const; | 178 | QPtrList<Incidence> relations() const; |
179 | /** Add an event which is related to this event */ | 179 | /** Add an event which is related to this event */ |
180 | void addRelation(Incidence *); | 180 | void addRelation(Incidence *); |
181 | /** Remove event that is related to this event */ | 181 | /** Remove event that is related to this event */ |
182 | void removeRelation(Incidence *); | 182 | void removeRelation(Incidence *); |
183 | 183 | ||
184 | /** returns the list of dates which are exceptions to the recurrence rule */ | 184 | /** returns the list of dates which are exceptions to the recurrence rule */ |
185 | DateList exDates() const; | 185 | DateList exDates() const; |
186 | /** sets the list of dates which are exceptions to the recurrence rule */ | 186 | /** sets the list of dates which are exceptions to the recurrence rule */ |
187 | void setExDates(const DateList &_exDates); | 187 | void setExDates(const DateList &_exDates); |
188 | void setExDates(const char *dates); | 188 | void setExDates(const char *dates); |
189 | /** Add a date to the list of exceptions of the recurrence rule. */ | 189 | /** Add a date to the list of exceptions of the recurrence rule. */ |
190 | void addExDate(const QDate &date); | 190 | void addExDate(const QDate &date); |
191 | 191 | ||
192 | /** returns true if there is an exception for this date in the recurrence | 192 | /** returns true if there is an exception for this date in the recurrence |
193 | rule set, or false otherwise. */ | 193 | rule set, or false otherwise. */ |
194 | bool isException(const QDate &qd) const; | 194 | bool isException(const QDate &qd) const; |
195 | 195 | ||
196 | /** add attachment to this event */ | 196 | /** add attachment to this event */ |
197 | void addAttachment(Attachment *attachment); | 197 | void addAttachment(Attachment *attachment); |
198 | /** remove and delete a specific attachment */ | 198 | /** remove and delete a specific attachment */ |
199 | void deleteAttachment(Attachment *attachment); | 199 | void deleteAttachment(Attachment *attachment); |
200 | /** remove and delete all attachments with this mime type */ | 200 | /** remove and delete all attachments with this mime type */ |
201 | void deleteAttachments(const QString& mime); | 201 | void deleteAttachments(const QString& mime); |
202 | /** return list of all associated attachments */ | 202 | /** return list of all associated attachments */ |
203 | QPtrList<Attachment> attachments() const; | 203 | QPtrList<Attachment> attachments() const; |
204 | /** find a list of attachments with this mime type */ | 204 | /** find a list of attachments with this mime type */ |
205 | QPtrList<Attachment> attachments(const QString& mime) const; | 205 | QPtrList<Attachment> attachments(const QString& mime) const; |
206 | 206 | ||
207 | /** sets the event's status the value specified. See the enumeration | 207 | /** sets the event's status the value specified. See the enumeration |
208 | * above for possible values. */ | 208 | * above for possible values. */ |
209 | void setSecrecy(int); | 209 | void setSecrecy(int); |
210 | /** return the event's secrecy. */ | 210 | /** return the event's secrecy. */ |
211 | int secrecy() const; | 211 | int secrecy() const; |
212 | /** return the event's secrecy in string format. */ | 212 | /** return the event's secrecy in string format. */ |
213 | QString secrecyStr() const; | 213 | QString secrecyStr() const; |
214 | /** return list of all availbale secrecy classes */ | 214 | /** return list of all availbale secrecy classes */ |
215 | static QStringList secrecyList(); | 215 | static QStringList secrecyList(); |
216 | /** return human-readable name of secrecy class */ | 216 | /** return human-readable name of secrecy class */ |
217 | static QString secrecyName(int); | 217 | static QString secrecyName(int); |
218 | 218 | ||
219 | /** returns TRUE if the date specified is one on which the event will | 219 | /** returns TRUE if the date specified is one on which the event will |
220 | * recur. */ | 220 | * recur. */ |
221 | bool recursOn(const QDate &qd) const; | 221 | bool recursOn(const QDate &qd) const; |
222 | 222 | ||
223 | // VEVENT and VTODO, but not VJOURNAL (move to EventBase class?): | 223 | // VEVENT and VTODO, but not VJOURNAL (move to EventBase class?): |
224 | 224 | ||
225 | /** set resources used, such as Office, Car, etc. */ | 225 | /** set resources used, such as Office, Car, etc. */ |
226 | void setResources(const QStringList &resources); | 226 | void setResources(const QStringList &resources); |
227 | /** return list of current resources */ | 227 | /** return list of current resources */ |
228 | QStringList resources() const; | 228 | QStringList resources() const; |
229 | 229 | ||
230 | /** set the event's priority, 0 is undefined, 1 highest (decreasing order) */ | 230 | /** set the event's priority, 0 is undefined, 1 highest (decreasing order) */ |
231 | void setPriority(int priority); | 231 | void setPriority(int priority); |
232 | /** get the event's priority */ | 232 | /** get the event's priority */ |
233 | int priority() const; | 233 | int priority() const; |
234 | 234 | ||
235 | /** All alarms that are associated with this incidence */ | 235 | /** All alarms that are associated with this incidence */ |
236 | QPtrList<Alarm> alarms() const; | 236 | QPtrList<Alarm> alarms() const; |
237 | /** Create a new alarm which is associated with this incidence */ | 237 | /** Create a new alarm which is associated with this incidence */ |
238 | Alarm* newAlarm(); | 238 | Alarm* newAlarm(); |
239 | /** Add an alarm which is associated with this incidence */ | 239 | /** Add an alarm which is associated with this incidence */ |
240 | void addAlarm(Alarm*); | 240 | void addAlarm(Alarm*); |
241 | /** Remove an alarm that is associated with this incidence */ | 241 | /** Remove an alarm that is associated with this incidence */ |
242 | void removeAlarm(Alarm*); | 242 | void removeAlarm(Alarm*); |
243 | /** Remove all alarms that are associated with this incidence */ | 243 | /** Remove all alarms that are associated with this incidence */ |
244 | void clearAlarms(); | 244 | void clearAlarms(); |
245 | /** return whether any alarm associated with this incidence is enabled */ | 245 | /** return whether any alarm associated with this incidence is enabled */ |
246 | bool isAlarmEnabled() const; | 246 | bool isAlarmEnabled() const; |
247 | 247 | ||
248 | /** | 248 | /** |
249 | Return the recurrence rule associated with this incidence. If there is | 249 | Return the recurrence rule associated with this incidence. If there is |
250 | none, returns an appropriate (non-0) object. | 250 | none, returns an appropriate (non-0) object. |
251 | */ | 251 | */ |
252 | Recurrence *recurrence(); | 252 | Recurrence *recurrence(); |
253 | void setRecurrence(Recurrence * r); | 253 | void setRecurrence(Recurrence * r); |
254 | /** | 254 | /** |
255 | Forward to Recurrence::doesRecur(). | 255 | Forward to Recurrence::doesRecur(). |
256 | */ | 256 | */ |
257 | ushort doesRecur() const; | 257 | ushort doesRecur() const; |
258 | 258 | ||
259 | /** set the event's/todo's location. Do _not_ use it with journal */ | 259 | /** set the event's/todo's location. Do _not_ use it with journal */ |
260 | void setLocation(const QString &location); | 260 | void setLocation(const QString &location); |
261 | /** return the event's/todo's location. Do _not_ use it with journal */ | 261 | /** return the event's/todo's location. Do _not_ use it with journal */ |
262 | QString location() const; | 262 | QString location() const; |
263 | /** returns TRUE or FALSE depending on whether the todo has a start date */ | 263 | /** returns TRUE or FALSE depending on whether the todo has a start date */ |
264 | bool hasStartDate() const; | 264 | bool hasStartDate() const; |
265 | /** sets the event's hasStartDate value. */ | 265 | /** sets the event's hasStartDate value. */ |
266 | void setHasStartDate(bool f); | 266 | void setHasStartDate(bool f); |
267 | QDateTime getNextOccurence( const QDateTime& dt, bool* yes ) const; | 267 | QDateTime getNextOccurence( const QDateTime& dt, bool* yes ) const; |
268 | bool cancelled() const; | 268 | bool cancelled() const; |
269 | void setCancelled( bool b ); | 269 | void setCancelled( bool b ); |
270 | 270 | ||
271 | bool hasRecurrenceID() const; | 271 | bool hasRecurrenceID() const; |
272 | void setHasRecurrenceID( bool b ); | 272 | void setHasRecurrenceID( bool b ); |
273 | 273 | ||
274 | void setRecurrenceID(QDateTime); | 274 | void setRecurrenceID(QDateTime); |
275 | QDateTime recurrenceID () const; | 275 | QDateTime recurrenceID () const; |
276 | QDateTime dtStart() const; | 276 | QDateTime dtStart() const; |
277 | bool isHoliday() const; | 277 | bool isHoliday() const; |
278 | bool isBirthday() const; | 278 | bool isBirthday() const; |
279 | bool isAnniversary() const; | 279 | bool isAnniversary() const; |
280 | QDateTime lastModifiedSub(); | 280 | QDateTime lastModifiedSub(); |
281 | QString recurrenceText() const; | 281 | QString recurrenceText() const; |
282 | void setLastModifiedSubInvalid(); | 282 | void setLastModifiedSubInvalid(); |
283 | 283 | ||
284 | 284 | virtual QString durationText(); | |
285 | QString durationText4Time( int secs ); | ||
285 | Recurrence *mRecurrence; | 286 | Recurrence *mRecurrence; |
286 | protected: | 287 | protected: |
287 | QPtrList<Alarm> mAlarms; | 288 | QPtrList<Alarm> mAlarms; |
288 | QPtrList<Incidence> mRelations; | 289 | QPtrList<Incidence> mRelations; |
289 | QDateTime mRecurrenceID; | 290 | QDateTime mRecurrenceID; |
290 | bool mHasRecurrenceID; | 291 | bool mHasRecurrenceID; |
291 | private: | 292 | private: |
292 | void checkCategories(); | 293 | void checkCategories(); |
293 | bool mHoliday, mBirthday, mAnniversary; | 294 | bool mHoliday, mBirthday, mAnniversary; |
294 | int mRevision; | 295 | int mRevision; |
295 | bool mCancelled; | 296 | bool mCancelled; |
296 | 297 | ||
297 | // base components of jounal, event and todo | 298 | // base components of jounal, event and todo |
298 | QDateTime mCreated; | 299 | QDateTime mCreated; |
299 | QDateTime mLastModifiedSub; | 300 | QDateTime mLastModifiedSub; |
300 | QString mDescription; | 301 | QString mDescription; |
301 | QString mSummary; | 302 | QString mSummary; |
302 | QStringList mCategories; | 303 | QStringList mCategories; |
303 | Incidence *mRelatedTo; | 304 | Incidence *mRelatedTo; |
304 | QString mRelatedToUid; | 305 | QString mRelatedToUid; |
305 | DateList mExDates; | 306 | DateList mExDates; |
306 | QPtrList<Attachment> mAttachments; | 307 | QPtrList<Attachment> mAttachments; |
307 | QStringList mResources; | 308 | QStringList mResources; |
308 | bool mHasStartDate; // if todo has associated start date | 309 | bool mHasStartDate; // if todo has associated start date |
309 | 310 | ||
310 | int mSecrecy; | 311 | int mSecrecy; |
311 | int mPriority; // 1 = highest, 2 = less, etc. | 312 | int mPriority; // 1 = highest, 2 = less, etc. |
312 | 313 | ||
313 | //QPtrList<Alarm> mAlarms; | 314 | //QPtrList<Alarm> mAlarms; |
314 | 315 | ||
315 | QString mLocation; | 316 | QString mLocation; |
316 | }; | 317 | }; |
317 | 318 | ||
318 | bool operator==( const Incidence&, const Incidence& ); | 319 | bool operator==( const Incidence&, const Incidence& ); |
319 | 320 | ||
320 | } | 321 | } |
321 | 322 | ||
322 | #endif | 323 | #endif |
diff --git a/libkcal/todo.cpp b/libkcal/todo.cpp index 7bf756a..e4508a0 100644 --- a/libkcal/todo.cpp +++ b/libkcal/todo.cpp | |||
@@ -1,616 +1,626 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | 20 | ||
21 | #include <kglobal.h> | 21 | #include <kglobal.h> |
22 | #include <kglobalsettings.h> | 22 | #include <kglobalsettings.h> |
23 | #include <klocale.h> | 23 | #include <klocale.h> |
24 | #include <kdebug.h> | 24 | #include <kdebug.h> |
25 | #include <qregexp.h> | 25 | #include <qregexp.h> |
26 | #include <qfileinfo.h> | 26 | #include <qfileinfo.h> |
27 | 27 | ||
28 | #include "calendarlocal.h" | 28 | #include "calendarlocal.h" |
29 | #include "icalformat.h" | 29 | #include "icalformat.h" |
30 | #include "todo.h" | 30 | #include "todo.h" |
31 | 31 | ||
32 | using namespace KCal; | 32 | using namespace KCal; |
33 | 33 | ||
34 | Todo::Todo(): QObject(), Incidence() | 34 | Todo::Todo(): QObject(), Incidence() |
35 | { | 35 | { |
36 | // mStatus = TENTATIVE; | 36 | // mStatus = TENTATIVE; |
37 | 37 | ||
38 | mHasDueDate = false; | 38 | mHasDueDate = false; |
39 | setHasStartDate( false ); | 39 | setHasStartDate( false ); |
40 | mCompleted = getEvenTime(QDateTime::currentDateTime()); | 40 | mCompleted = getEvenTime(QDateTime::currentDateTime()); |
41 | mHasCompletedDate = false; | 41 | mHasCompletedDate = false; |
42 | mPercentComplete = 0; | 42 | mPercentComplete = 0; |
43 | mRunning = false; | 43 | mRunning = false; |
44 | mRunSaveTimer = 0; | 44 | mRunSaveTimer = 0; |
45 | } | 45 | } |
46 | 46 | ||
47 | Todo::Todo(const Todo &t) : QObject(),Incidence(t) | 47 | Todo::Todo(const Todo &t) : QObject(),Incidence(t) |
48 | { | 48 | { |
49 | mDtDue = t.mDtDue; | 49 | mDtDue = t.mDtDue; |
50 | mHasDueDate = t.mHasDueDate; | 50 | mHasDueDate = t.mHasDueDate; |
51 | mCompleted = t.mCompleted; | 51 | mCompleted = t.mCompleted; |
52 | mHasCompletedDate = t.mHasCompletedDate; | 52 | mHasCompletedDate = t.mHasCompletedDate; |
53 | mPercentComplete = t.mPercentComplete; | 53 | mPercentComplete = t.mPercentComplete; |
54 | mRunning = false; | 54 | mRunning = false; |
55 | mRunSaveTimer = 0; | 55 | mRunSaveTimer = 0; |
56 | } | 56 | } |
57 | 57 | ||
58 | Todo::~Todo() | 58 | Todo::~Todo() |
59 | { | 59 | { |
60 | setRunning( false ); | 60 | setRunning( false ); |
61 | //qDebug("Todo::~Todo() "); | 61 | //qDebug("Todo::~Todo() "); |
62 | } | 62 | } |
63 | 63 | ||
64 | void Todo::setRunningFalse( QString s ) | 64 | void Todo::setRunningFalse( QString s ) |
65 | { | 65 | { |
66 | if ( ! mRunning ) | 66 | if ( ! mRunning ) |
67 | return; | 67 | return; |
68 | mRunning = false; | 68 | mRunning = false; |
69 | if ( mRunSaveTimer ) | 69 | if ( mRunSaveTimer ) |
70 | mRunSaveTimer->stop(); | 70 | mRunSaveTimer->stop(); |
71 | saveRunningInfoToFile( s ); | 71 | saveRunningInfoToFile( s ); |
72 | } | 72 | } |
73 | void Todo::stopRunning() | 73 | void Todo::stopRunning() |
74 | { | 74 | { |
75 | if ( !mRunning ) | 75 | if ( !mRunning ) |
76 | return; | 76 | return; |
77 | if ( mRunSaveTimer ) | 77 | if ( mRunSaveTimer ) |
78 | mRunSaveTimer->stop(); | 78 | mRunSaveTimer->stop(); |
79 | mRunning = false; | 79 | mRunning = false; |
80 | } | 80 | } |
81 | void Todo::setRunning( bool run ) | 81 | void Todo::setRunning( bool run ) |
82 | { | 82 | { |
83 | if ( run == mRunning ) | 83 | if ( run == mRunning ) |
84 | return; | 84 | return; |
85 | //qDebug("Todo::setRunning %d ", run); | 85 | //qDebug("Todo::setRunning %d ", run); |
86 | if ( !mRunSaveTimer ) { | 86 | if ( !mRunSaveTimer ) { |
87 | mRunSaveTimer = new QTimer ( this ); | 87 | mRunSaveTimer = new QTimer ( this ); |
88 | connect ( mRunSaveTimer, SIGNAL( timeout() ), this , SLOT ( saveRunningInfoToFile() ) ); | 88 | connect ( mRunSaveTimer, SIGNAL( timeout() ), this , SLOT ( saveRunningInfoToFile() ) ); |
89 | } | 89 | } |
90 | mRunning = run; | 90 | mRunning = run; |
91 | if ( mRunning ) { | 91 | if ( mRunning ) { |
92 | mRunSaveTimer->start( 1000 * 60 * 5 ); // 5 min | 92 | mRunSaveTimer->start( 1000 * 60 * 5 ); // 5 min |
93 | mRunStart = QDateTime::currentDateTime(); | 93 | mRunStart = QDateTime::currentDateTime(); |
94 | } else { | 94 | } else { |
95 | mRunSaveTimer->stop(); | 95 | mRunSaveTimer->stop(); |
96 | saveRunningInfoToFile(); | 96 | saveRunningInfoToFile(); |
97 | } | 97 | } |
98 | } | 98 | } |
99 | void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) | 99 | void Todo::saveRunningInfo( QString comment, QDateTime start, QDateTime end ) |
100 | { | 100 | { |
101 | if ( !mRunning) return; | 101 | if ( !mRunning) return; |
102 | mRunning = false; | 102 | mRunning = false; |
103 | mRunStart = start; | 103 | mRunStart = start; |
104 | mRunEnd = end; | 104 | mRunEnd = end; |
105 | saveRunningInfoToFile( comment ); | 105 | saveRunningInfoToFile( comment ); |
106 | } | 106 | } |
107 | void Todo::saveRunningInfoToFile() | 107 | void Todo::saveRunningInfoToFile() |
108 | { | 108 | { |
109 | mRunEnd = QDateTime::currentDateTime(); | 109 | mRunEnd = QDateTime::currentDateTime(); |
110 | saveRunningInfoToFile( QString::null ); | 110 | saveRunningInfoToFile( QString::null ); |
111 | } | 111 | } |
112 | void Todo::saveRunningInfoToFile( QString comment ) | 112 | void Todo::saveRunningInfoToFile( QString comment ) |
113 | { | 113 | { |
114 | //qDebug("Todo::saveRunningInfoToFile() %s", summary().latin1()); | 114 | //qDebug("Todo::saveRunningInfoToFile() %s", summary().latin1()); |
115 | if ( mRunStart.secsTo ( mRunEnd) < 15 ) { | 115 | if ( mRunStart.secsTo ( mRunEnd) < 15 ) { |
116 | qDebug("Running time < 15 seconds. Skipped. "); | 116 | qDebug("Running time < 15 seconds. Skipped. "); |
117 | return; | 117 | return; |
118 | } | 118 | } |
119 | QString dir = KGlobalSettings::timeTrackerDir(); | 119 | QString dir = KGlobalSettings::timeTrackerDir(); |
120 | //qDebug("%s ", dir.latin1()); | 120 | //qDebug("%s ", dir.latin1()); |
121 | QString file = "%1%2%3-%4%5%6-"; | 121 | QString file = "%1%2%3-%4%5%6-"; |
122 | file = file.arg( mRunStart.date().year(), 4).arg( mRunStart.date().month(),2 ).arg( mRunStart.date().day(), 2 ).arg( mRunStart.time().hour(),2 ).arg( mRunStart.time().minute(),2 ).arg( mRunStart.time().second(),2 ); | 122 | file = file.arg( mRunStart.date().year(), 4).arg( mRunStart.date().month(),2 ).arg( mRunStart.date().day(), 2 ).arg( mRunStart.time().hour(),2 ).arg( mRunStart.time().minute(),2 ).arg( mRunStart.time().second(),2 ); |
123 | file.replace ( QRegExp (" "), "0" ); | 123 | file.replace ( QRegExp (" "), "0" ); |
124 | file += uid(); | 124 | file += uid(); |
125 | //qDebug("File %s ",file.latin1() ); | 125 | //qDebug("File %s ",file.latin1() ); |
126 | CalendarLocal cal; | 126 | CalendarLocal cal; |
127 | cal.setLocalTime(); | 127 | cal.setLocalTime(); |
128 | Todo * to = (Todo*) clone(); | 128 | Todo * to = (Todo*) clone(); |
129 | to->setFloats( false ); | 129 | to->setFloats( false ); |
130 | to->setDtStart( mRunStart ); | 130 | to->setDtStart( mRunStart ); |
131 | to->setHasStartDate( true ); | 131 | to->setHasStartDate( true ); |
132 | to->setDtDue( mRunEnd ); | 132 | to->setDtDue( mRunEnd ); |
133 | to->setHasDueDate( true ); | 133 | to->setHasDueDate( true ); |
134 | to->setUid( file ); | 134 | to->setUid( file ); |
135 | if ( !comment.isEmpty() ) { | 135 | if ( !comment.isEmpty() ) { |
136 | QString des = to->description(); | 136 | QString des = to->description(); |
137 | if ( des.isEmpty () ) | 137 | if ( des.isEmpty () ) |
138 | to->setDescription( "TT-Note: " + comment ); | 138 | to->setDescription( "TT-Note: " + comment ); |
139 | else | 139 | else |
140 | to->setDescription( "TT-Note: " + comment +"\n" + des ); | 140 | to->setDescription( "TT-Note: " + comment +"\n" + des ); |
141 | } | 141 | } |
142 | cal.addIncidence( to ); | 142 | cal.addIncidence( to ); |
143 | ICalFormat format( false ); | 143 | ICalFormat format( false ); |
144 | file = dir +"/" +file +".ics"; | 144 | file = dir +"/" +file +".ics"; |
145 | format.save( &cal, file ); | 145 | format.save( &cal, file ); |
146 | saveParents(); | 146 | saveParents(); |
147 | 147 | ||
148 | } | 148 | } |
149 | void Todo::saveParents() | 149 | void Todo::saveParents() |
150 | { | 150 | { |
151 | if (!relatedTo() ) | 151 | if (!relatedTo() ) |
152 | return; | 152 | return; |
153 | Incidence * inc = relatedTo(); | 153 | Incidence * inc = relatedTo(); |
154 | if ( inc->typeID() != todoID ) | 154 | if ( inc->typeID() != todoID ) |
155 | return; | 155 | return; |
156 | Todo* to = (Todo*)inc; | 156 | Todo* to = (Todo*)inc; |
157 | bool saveTodo = false; | 157 | bool saveTodo = false; |
158 | QString file = KGlobalSettings::timeTrackerDir() + "/"+ to->uid() + ".ics"; | 158 | QString file = KGlobalSettings::timeTrackerDir() + "/"+ to->uid() + ".ics"; |
159 | QFileInfo fi ( file ); | 159 | QFileInfo fi ( file ); |
160 | if ( fi.exists() ) { | 160 | if ( fi.exists() ) { |
161 | if ( fi.lastModified () < to->lastModified ()) | 161 | if ( fi.lastModified () < to->lastModified ()) |
162 | saveTodo = true; | 162 | saveTodo = true; |
163 | } else { | 163 | } else { |
164 | saveTodo = true; | 164 | saveTodo = true; |
165 | } | 165 | } |
166 | if ( saveTodo ) { | 166 | if ( saveTodo ) { |
167 | CalendarLocal cal; | 167 | CalendarLocal cal; |
168 | cal.setLocalTime(); | 168 | cal.setLocalTime(); |
169 | Todo * par = (Todo *) to->clone(); | 169 | Todo * par = (Todo *) to->clone(); |
170 | cal.addIncidence( par ); | 170 | cal.addIncidence( par ); |
171 | ICalFormat format( false ); | 171 | ICalFormat format( false ); |
172 | format.save( &cal, file ); | 172 | format.save( &cal, file ); |
173 | } | 173 | } |
174 | to->saveParents(); | 174 | to->saveParents(); |
175 | } | 175 | } |
176 | 176 | ||
177 | int Todo::runTime() | 177 | int Todo::runTime() |
178 | { | 178 | { |
179 | if ( !mRunning ) | 179 | if ( !mRunning ) |
180 | return 0; | 180 | return 0; |
181 | return mRunStart.secsTo( QDateTime::currentDateTime() ); | 181 | return mRunStart.secsTo( QDateTime::currentDateTime() ); |
182 | } | 182 | } |
183 | bool Todo::hasRunningSub() | 183 | bool Todo::hasRunningSub() |
184 | { | 184 | { |
185 | if ( mRunning ) | 185 | if ( mRunning ) |
186 | return true; | 186 | return true; |
187 | Incidence *aTodo; | 187 | Incidence *aTodo; |
188 | for (aTodo = mRelations.first(); aTodo; aTodo = mRelations.next()) { | 188 | for (aTodo = mRelations.first(); aTodo; aTodo = mRelations.next()) { |
189 | if ( ((Todo*)aTodo)->hasRunningSub() ) | 189 | if ( ((Todo*)aTodo)->hasRunningSub() ) |
190 | return true; | 190 | return true; |
191 | } | 191 | } |
192 | return false; | 192 | return false; |
193 | } | 193 | } |
194 | Incidence *Todo::clone() | 194 | Incidence *Todo::clone() |
195 | { | 195 | { |
196 | return new Todo(*this); | 196 | return new Todo(*this); |
197 | } | 197 | } |
198 | 198 | ||
199 | bool Todo::contains ( Todo* from ) | 199 | bool Todo::contains ( Todo* from ) |
200 | { | 200 | { |
201 | 201 | ||
202 | if ( !from->summary().isEmpty() ) | 202 | if ( !from->summary().isEmpty() ) |
203 | if ( !summary().startsWith( from->summary() )) | 203 | if ( !summary().startsWith( from->summary() )) |
204 | return false; | 204 | return false; |
205 | if ( from->hasStartDate() ) { | 205 | if ( from->hasStartDate() ) { |
206 | if ( !hasStartDate() ) | 206 | if ( !hasStartDate() ) |
207 | return false; | 207 | return false; |
208 | if ( from->dtStart() != dtStart()) | 208 | if ( from->dtStart() != dtStart()) |
209 | return false; | 209 | return false; |
210 | } | 210 | } |
211 | if ( from->hasDueDate() ){ | 211 | if ( from->hasDueDate() ){ |
212 | if ( !hasDueDate() ) | 212 | if ( !hasDueDate() ) |
213 | return false; | 213 | return false; |
214 | if ( from->dtDue() != dtDue()) | 214 | if ( from->dtDue() != dtDue()) |
215 | return false; | 215 | return false; |
216 | } | 216 | } |
217 | if ( !from->location().isEmpty() ) | 217 | if ( !from->location().isEmpty() ) |
218 | if ( !location().startsWith( from->location() ) ) | 218 | if ( !location().startsWith( from->location() ) ) |
219 | return false; | 219 | return false; |
220 | if ( !from->description().isEmpty() ) | 220 | if ( !from->description().isEmpty() ) |
221 | if ( !description().startsWith( from->description() )) | 221 | if ( !description().startsWith( from->description() )) |
222 | return false; | 222 | return false; |
223 | if ( from->alarms().count() ) { | 223 | if ( from->alarms().count() ) { |
224 | Alarm *a = from->alarms().first(); | 224 | Alarm *a = from->alarms().first(); |
225 | if ( a->enabled() ){ | 225 | if ( a->enabled() ){ |
226 | if ( !alarms().count() ) | 226 | if ( !alarms().count() ) |
227 | return false; | 227 | return false; |
228 | Alarm *b = alarms().first(); | 228 | Alarm *b = alarms().first(); |
229 | if( ! b->enabled() ) | 229 | if( ! b->enabled() ) |
230 | return false; | 230 | return false; |
231 | if ( ! (a->offset() == b->offset() )) | 231 | if ( ! (a->offset() == b->offset() )) |
232 | return false; | 232 | return false; |
233 | } | 233 | } |
234 | } | 234 | } |
235 | 235 | ||
236 | QStringList cat = categories(); | 236 | QStringList cat = categories(); |
237 | QStringList catFrom = from->categories(); | 237 | QStringList catFrom = from->categories(); |
238 | QString nCat; | 238 | QString nCat; |
239 | unsigned int iii; | 239 | unsigned int iii; |
240 | for ( iii = 0; iii < catFrom.count();++iii ) { | 240 | for ( iii = 0; iii < catFrom.count();++iii ) { |
241 | nCat = catFrom[iii]; | 241 | nCat = catFrom[iii]; |
242 | if ( !nCat.isEmpty() ) | 242 | if ( !nCat.isEmpty() ) |
243 | if ( !cat.contains( nCat )) { | 243 | if ( !cat.contains( nCat )) { |
244 | return false; | 244 | return false; |
245 | } | 245 | } |
246 | } | 246 | } |
247 | if ( from->isCompleted() ) { | 247 | if ( from->isCompleted() ) { |
248 | if ( !isCompleted() ) | 248 | if ( !isCompleted() ) |
249 | return false; | 249 | return false; |
250 | } | 250 | } |
251 | if( priority() != from->priority() ) | 251 | if( priority() != from->priority() ) |
252 | return false; | 252 | return false; |
253 | 253 | ||
254 | 254 | ||
255 | return true; | 255 | return true; |
256 | 256 | ||
257 | } | 257 | } |
258 | bool KCal::operator==( const Todo& t1, const Todo& t2 ) | 258 | bool KCal::operator==( const Todo& t1, const Todo& t2 ) |
259 | { | 259 | { |
260 | 260 | ||
261 | bool ret = operator==( (const Incidence&)t1, (const Incidence&)t2 ); | 261 | bool ret = operator==( (const Incidence&)t1, (const Incidence&)t2 ); |
262 | if ( ! ret ) | 262 | if ( ! ret ) |
263 | return false; | 263 | return false; |
264 | if ( t1.hasDueDate() == t2.hasDueDate() ) { | 264 | if ( t1.hasDueDate() == t2.hasDueDate() ) { |
265 | if ( t1.hasDueDate() ) { | 265 | if ( t1.hasDueDate() ) { |
266 | if ( t1.doesFloat() == t2.doesFloat() ) { | 266 | if ( t1.doesFloat() == t2.doesFloat() ) { |
267 | if ( t1.doesFloat() ) { | 267 | if ( t1.doesFloat() ) { |
268 | if ( t1.dtDue().date() != t2.dtDue().date() ) | 268 | if ( t1.dtDue().date() != t2.dtDue().date() ) |
269 | return false; | 269 | return false; |
270 | } else | 270 | } else |
271 | if ( t1.dtDue() != t2.dtDue() ) | 271 | if ( t1.dtDue() != t2.dtDue() ) |
272 | return false; | 272 | return false; |
273 | } else | 273 | } else |
274 | return false;// float != | 274 | return false;// float != |
275 | } | 275 | } |
276 | 276 | ||
277 | } else | 277 | } else |
278 | return false; | 278 | return false; |
279 | if ( t1.percentComplete() != t2.percentComplete() ) | 279 | if ( t1.percentComplete() != t2.percentComplete() ) |
280 | return false; | 280 | return false; |
281 | if ( t1.isCompleted() ) { | 281 | if ( t1.isCompleted() ) { |
282 | if ( t1.hasCompletedDate() == t2.hasCompletedDate() ) { | 282 | if ( t1.hasCompletedDate() == t2.hasCompletedDate() ) { |
283 | if ( t1.hasCompletedDate() ) { | 283 | if ( t1.hasCompletedDate() ) { |
284 | if ( t1.completed() != t2.completed() ) | 284 | if ( t1.completed() != t2.completed() ) |
285 | return false; | 285 | return false; |
286 | } | 286 | } |
287 | 287 | ||
288 | } else | 288 | } else |
289 | return false; | 289 | return false; |
290 | } | 290 | } |
291 | return true; | 291 | return true; |
292 | 292 | ||
293 | } | 293 | } |
294 | 294 | ||
295 | void Todo::setDtDue(const QDateTime &dtDue) | 295 | void Todo::setDtDue(const QDateTime &dtDue) |
296 | { | 296 | { |
297 | //int diffsecs = mDtDue.secsTo(dtDue); | 297 | //int diffsecs = mDtDue.secsTo(dtDue); |
298 | 298 | ||
299 | /*if (mReadOnly) return; | 299 | /*if (mReadOnly) return; |
300 | const QPtrList<Alarm>& alarms = alarms(); | 300 | const QPtrList<Alarm>& alarms = alarms(); |
301 | for (Alarm* alarm = alarms.first(); alarm; alarm = alarms.next()) { | 301 | for (Alarm* alarm = alarms.first(); alarm; alarm = alarms.next()) { |
302 | if (alarm->enabled()) { | 302 | if (alarm->enabled()) { |
303 | alarm->setTime(alarm->time().addSecs(diffsecs)); | 303 | alarm->setTime(alarm->time().addSecs(diffsecs)); |
304 | } | 304 | } |
305 | }*/ | 305 | }*/ |
306 | mDtDue = getEvenTime(dtDue); | 306 | mDtDue = getEvenTime(dtDue); |
307 | 307 | ||
308 | //kdDebug(5800) << "setDtDue says date is " << mDtDue.toString() << endl; | 308 | //kdDebug(5800) << "setDtDue says date is " << mDtDue.toString() << endl; |
309 | 309 | ||
310 | /*const QPtrList<Alarm>& alarms = alarms(); | 310 | /*const QPtrList<Alarm>& alarms = alarms(); |
311 | for (Alarm* alarm = alarms.first(); alarm; alarm = alarms.next()) | 311 | for (Alarm* alarm = alarms.first(); alarm; alarm = alarms.next()) |
312 | alarm->setAlarmStart(mDtDue);*/ | 312 | alarm->setAlarmStart(mDtDue);*/ |
313 | updated(); | 313 | updated(); |
314 | } | 314 | } |
315 | 315 | ||
316 | QDateTime Todo::dtDue() const | 316 | QDateTime Todo::dtDue() const |
317 | { | 317 | { |
318 | return mDtDue; | 318 | return mDtDue; |
319 | } | 319 | } |
320 | 320 | ||
321 | QString Todo::dtDueTimeStr() const | 321 | QString Todo::dtDueTimeStr() const |
322 | { | 322 | { |
323 | return KGlobal::locale()->formatTime(mDtDue.time()); | 323 | return KGlobal::locale()->formatTime(mDtDue.time()); |
324 | } | 324 | } |
325 | 325 | ||
326 | QString Todo::dtDueDateStr(bool shortfmt) const | 326 | QString Todo::dtDueDateStr(bool shortfmt) const |
327 | { | 327 | { |
328 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); | 328 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); |
329 | } | 329 | } |
330 | 330 | ||
331 | QString Todo::dtDueStr(bool shortfmt) const | 331 | QString Todo::dtDueStr(bool shortfmt) const |
332 | { | 332 | { |
333 | if ( doesFloat() ) | 333 | if ( doesFloat() ) |
334 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); | 334 | return KGlobal::locale()->formatDate(mDtDue.date(),shortfmt); |
335 | return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); | 335 | return KGlobal::locale()->formatDateTime(mDtDue, shortfmt); |
336 | } | 336 | } |
337 | // retval 0 : no found | 337 | // retval 0 : no found |
338 | // 1 : due for date found | 338 | // 1 : due for date found |
339 | // 2 : overdue for date found | 339 | // 2 : overdue for date found |
340 | int Todo::hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ) | 340 | int Todo::hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ) |
341 | { | 341 | { |
342 | int retval = 0; | 342 | int retval = 0; |
343 | if ( isCompleted() ) | 343 | if ( isCompleted() ) |
344 | return 0; | 344 | return 0; |
345 | if ( hasDueDate() ) { | 345 | if ( hasDueDate() ) { |
346 | if ( dtDue().date() < date ) | 346 | if ( dtDue().date() < date ) |
347 | return 2; | 347 | return 2; |
348 | // we do not return, because we may find an overdue sub todo | 348 | // we do not return, because we may find an overdue sub todo |
349 | if ( dtDue().date() == date ) | 349 | if ( dtDue().date() == date ) |
350 | retval = 1; | 350 | retval = 1; |
351 | } | 351 | } |
352 | if ( checkSubtodos ) { | 352 | if ( checkSubtodos ) { |
353 | Incidence *aTodo; | 353 | Incidence *aTodo; |
354 | for (aTodo = mRelations.first(); aTodo; aTodo = mRelations.next()) { | 354 | for (aTodo = mRelations.first(); aTodo; aTodo = mRelations.next()) { |
355 | int ret = ((Todo*)aTodo)->hasDueSubTodoForDate( date ,checkSubtodos ); | 355 | int ret = ((Todo*)aTodo)->hasDueSubTodoForDate( date ,checkSubtodos ); |
356 | if ( ret == 2 ) | 356 | if ( ret == 2 ) |
357 | return 2; | 357 | return 2; |
358 | if ( ret == 1) | 358 | if ( ret == 1) |
359 | retval = 1; | 359 | retval = 1; |
360 | } | 360 | } |
361 | } | 361 | } |
362 | return retval; | 362 | return retval; |
363 | } | 363 | } |
364 | int Todo::hasDueSubTodo( bool checkSubtodos ) //= true | 364 | int Todo::hasDueSubTodo( bool checkSubtodos ) //= true |
365 | { | 365 | { |
366 | return hasDueSubTodoForDate(QDate::currentDate(), checkSubtodos ); | 366 | return hasDueSubTodoForDate(QDate::currentDate(), checkSubtodos ); |
367 | } | 367 | } |
368 | bool Todo::hasDueDate() const | 368 | bool Todo::hasDueDate() const |
369 | { | 369 | { |
370 | return mHasDueDate; | 370 | return mHasDueDate; |
371 | } | 371 | } |
372 | 372 | ||
373 | void Todo::setHasDueDate(bool f) | 373 | void Todo::setHasDueDate(bool f) |
374 | { | 374 | { |
375 | if (mReadOnly) return; | 375 | if (mReadOnly) return; |
376 | mHasDueDate = f; | 376 | mHasDueDate = f; |
377 | updated(); | 377 | updated(); |
378 | } | 378 | } |
379 | 379 | ||
380 | 380 | ||
381 | #if 0 | 381 | #if 0 |
382 | void Todo::setStatus(const QString &statStr) | 382 | void Todo::setStatus(const QString &statStr) |
383 | { | 383 | { |
384 | if (mReadOnly) return; | 384 | if (mReadOnly) return; |
385 | QString ss(statStr.upper()); | 385 | QString ss(statStr.upper()); |
386 | 386 | ||
387 | if (ss == "X-ACTION") | 387 | if (ss == "X-ACTION") |
388 | mStatus = NEEDS_ACTION; | 388 | mStatus = NEEDS_ACTION; |
389 | else if (ss == "NEEDS ACTION") | 389 | else if (ss == "NEEDS ACTION") |
390 | mStatus = NEEDS_ACTION; | 390 | mStatus = NEEDS_ACTION; |
391 | else if (ss == "ACCEPTED") | 391 | else if (ss == "ACCEPTED") |
392 | mStatus = ACCEPTED; | 392 | mStatus = ACCEPTED; |
393 | else if (ss == "SENT") | 393 | else if (ss == "SENT") |
394 | mStatus = SENT; | 394 | mStatus = SENT; |
395 | else if (ss == "TENTATIVE") | 395 | else if (ss == "TENTATIVE") |
396 | mStatus = TENTATIVE; | 396 | mStatus = TENTATIVE; |
397 | else if (ss == "CONFIRMED") | 397 | else if (ss == "CONFIRMED") |
398 | mStatus = CONFIRMED; | 398 | mStatus = CONFIRMED; |
399 | else if (ss == "DECLINED") | 399 | else if (ss == "DECLINED") |
400 | mStatus = DECLINED; | 400 | mStatus = DECLINED; |
401 | else if (ss == "COMPLETED") | 401 | else if (ss == "COMPLETED") |
402 | mStatus = COMPLETED; | 402 | mStatus = COMPLETED; |
403 | else if (ss == "DELEGATED") | 403 | else if (ss == "DELEGATED") |
404 | mStatus = DELEGATED; | 404 | mStatus = DELEGATED; |
405 | 405 | ||
406 | updated(); | 406 | updated(); |
407 | } | 407 | } |
408 | 408 | ||
409 | void Todo::setStatus(int status) | 409 | void Todo::setStatus(int status) |
410 | { | 410 | { |
411 | if (mReadOnly) return; | 411 | if (mReadOnly) return; |
412 | mStatus = status; | 412 | mStatus = status; |
413 | updated(); | 413 | updated(); |
414 | } | 414 | } |
415 | 415 | ||
416 | int Todo::status() const | 416 | int Todo::status() const |
417 | { | 417 | { |
418 | return mStatus; | 418 | return mStatus; |
419 | } | 419 | } |
420 | 420 | ||
421 | QString Todo::statusStr() const | 421 | QString Todo::statusStr() const |
422 | { | 422 | { |
423 | switch(mStatus) { | 423 | switch(mStatus) { |
424 | case NEEDS_ACTION: | 424 | case NEEDS_ACTION: |
425 | return QString("NEEDS ACTION"); | 425 | return QString("NEEDS ACTION"); |
426 | break; | 426 | break; |
427 | case ACCEPTED: | 427 | case ACCEPTED: |
428 | return QString("ACCEPTED"); | 428 | return QString("ACCEPTED"); |
429 | break; | 429 | break; |
430 | case SENT: | 430 | case SENT: |
431 | return QString("SENT"); | 431 | return QString("SENT"); |
432 | break; | 432 | break; |
433 | case TENTATIVE: | 433 | case TENTATIVE: |
434 | return QString("TENTATIVE"); | 434 | return QString("TENTATIVE"); |
435 | break; | 435 | break; |
436 | case CONFIRMED: | 436 | case CONFIRMED: |
437 | return QString("CONFIRMED"); | 437 | return QString("CONFIRMED"); |
438 | break; | 438 | break; |
439 | case DECLINED: | 439 | case DECLINED: |
440 | return QString("DECLINED"); | 440 | return QString("DECLINED"); |
441 | break; | 441 | break; |
442 | case COMPLETED: | 442 | case COMPLETED: |
443 | return QString("COMPLETED"); | 443 | return QString("COMPLETED"); |
444 | break; | 444 | break; |
445 | case DELEGATED: | 445 | case DELEGATED: |
446 | return QString("DELEGATED"); | 446 | return QString("DELEGATED"); |
447 | break; | 447 | break; |
448 | } | 448 | } |
449 | return QString(""); | 449 | return QString(""); |
450 | } | 450 | } |
451 | #endif | 451 | #endif |
452 | 452 | ||
453 | bool Todo::isCompleted() const | 453 | bool Todo::isCompleted() const |
454 | { | 454 | { |
455 | if (mPercentComplete == 100) { | 455 | if (mPercentComplete == 100) { |
456 | return true; | 456 | return true; |
457 | } | 457 | } |
458 | else return false; | 458 | else return false; |
459 | } | 459 | } |
460 | 460 | ||
461 | void Todo::setCompleted(bool completed) | 461 | void Todo::setCompleted(bool completed) |
462 | { | 462 | { |
463 | if ( mHasRecurrenceID && completed && mPercentComplete != 100 ) { | 463 | if ( mHasRecurrenceID && completed && mPercentComplete != 100 ) { |
464 | if ( !setRecurDates() ) | 464 | if ( !setRecurDates() ) |
465 | completed = false; | 465 | completed = false; |
466 | } | 466 | } |
467 | if (completed) mPercentComplete = 100; | 467 | if (completed) mPercentComplete = 100; |
468 | else { | 468 | else { |
469 | mPercentComplete = 0; | 469 | mPercentComplete = 0; |
470 | mHasCompletedDate = false; | 470 | mHasCompletedDate = false; |
471 | } | 471 | } |
472 | updated(); | 472 | updated(); |
473 | } | 473 | } |
474 | 474 | ||
475 | QDateTime Todo::completed() const | 475 | QDateTime Todo::completed() const |
476 | { | 476 | { |
477 | return mCompleted; | 477 | return mCompleted; |
478 | } | 478 | } |
479 | 479 | ||
480 | QString Todo::completedStr( bool shortF ) const | 480 | QString Todo::completedStr( bool shortF ) const |
481 | { | 481 | { |
482 | return KGlobal::locale()->formatDateTime(mCompleted, shortF); | 482 | return KGlobal::locale()->formatDateTime(mCompleted, shortF); |
483 | } | 483 | } |
484 | 484 | ||
485 | void Todo::setCompleted(const QDateTime &completed) | 485 | void Todo::setCompleted(const QDateTime &completed) |
486 | { | 486 | { |
487 | //qDebug("Todo::setCompleted "); | 487 | //qDebug("Todo::setCompleted "); |
488 | if ( mHasCompletedDate ) { | 488 | if ( mHasCompletedDate ) { |
489 | // qDebug("has completed data - return "); | 489 | // qDebug("has completed data - return "); |
490 | return; | 490 | return; |
491 | } | 491 | } |
492 | mHasCompletedDate = true; | 492 | mHasCompletedDate = true; |
493 | mPercentComplete = 100; | 493 | mPercentComplete = 100; |
494 | mCompleted = getEvenTime(completed); | 494 | mCompleted = getEvenTime(completed); |
495 | updated(); | 495 | updated(); |
496 | } | 496 | } |
497 | 497 | ||
498 | bool Todo::hasCompletedDate() const | 498 | bool Todo::hasCompletedDate() const |
499 | { | 499 | { |
500 | return mHasCompletedDate; | 500 | return mHasCompletedDate; |
501 | } | 501 | } |
502 | 502 | ||
503 | int Todo::percentComplete() const | 503 | int Todo::percentComplete() const |
504 | { | 504 | { |
505 | return mPercentComplete; | 505 | return mPercentComplete; |
506 | } | 506 | } |
507 | bool Todo::setRecurDates() | 507 | bool Todo::setRecurDates() |
508 | { | 508 | { |
509 | if ( !mHasRecurrenceID ) | 509 | if ( !mHasRecurrenceID ) |
510 | return true; | 510 | return true; |
511 | int secs = mDtStart.secsTo( dtDue() ); | 511 | int secs = mDtStart.secsTo( dtDue() ); |
512 | bool ok; | 512 | bool ok; |
513 | qDebug("T:setRecurDates() "); | 513 | qDebug("T:setRecurDates() "); |
514 | //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); | 514 | //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); |
515 | QDateTime next = getNextOccurence( mRecurrenceID, &ok ); | 515 | QDateTime next = getNextOccurence( mRecurrenceID, &ok ); |
516 | if ( ok ) { | 516 | if ( ok ) { |
517 | mRecurrenceID = next; | 517 | mRecurrenceID = next; |
518 | mDtStart = next; | 518 | mDtStart = next; |
519 | setDtDue( next.addSecs( secs ) ); | 519 | setDtDue( next.addSecs( secs ) ); |
520 | if ( QDateTime::currentDateTime() > next) | 520 | if ( QDateTime::currentDateTime() > next) |
521 | return false; | 521 | return false; |
522 | } else { | 522 | } else { |
523 | setHasRecurrenceID( false ); | 523 | setHasRecurrenceID( false ); |
524 | recurrence()->unsetRecurs(); | 524 | recurrence()->unsetRecurs(); |
525 | } | 525 | } |
526 | return true; | 526 | return true; |
527 | } | 527 | } |
528 | void Todo::setPercentComplete(int v) | 528 | void Todo::setPercentComplete(int v) |
529 | { | 529 | { |
530 | if ( mHasRecurrenceID && v == 100 && mPercentComplete != 100 ) { | 530 | if ( mHasRecurrenceID && v == 100 && mPercentComplete != 100 ) { |
531 | if ( !setRecurDates() ) | 531 | if ( !setRecurDates() ) |
532 | v = 0; | 532 | v = 0; |
533 | } | 533 | } |
534 | mPercentComplete = v; | 534 | mPercentComplete = v; |
535 | if ( v != 100 ) | 535 | if ( v != 100 ) |
536 | mHasCompletedDate = false; | 536 | mHasCompletedDate = false; |
537 | updated(); | 537 | updated(); |
538 | } | 538 | } |
539 | QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const | 539 | QDateTime Todo::getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const |
540 | { | 540 | { |
541 | *ok = false; | 541 | *ok = false; |
542 | if ( ! hasDueDate() || cancelled() || !alarmEnabled() ) { | 542 | if ( ! hasDueDate() || cancelled() || !alarmEnabled() ) { |
543 | return QDateTime (); | 543 | return QDateTime (); |
544 | } | 544 | } |
545 | // if the recurring todo is set to complete and requested time < start time of todo | 545 | // if the recurring todo is set to complete and requested time < start time of todo |
546 | // we want to get the alarm. | 546 | // we want to get the alarm. |
547 | bool iscompleted = isCompleted(); | 547 | bool iscompleted = isCompleted(); |
548 | if ( iscompleted && doesRecur() ) { | 548 | if ( iscompleted && doesRecur() ) { |
549 | Todo * to = (Todo*) this; | 549 | Todo * to = (Todo*) this; |
550 | to->checkSetCompletedFalse(); | 550 | to->checkSetCompletedFalse(); |
551 | iscompleted = isCompleted(); | 551 | iscompleted = isCompleted(); |
552 | if ( hasStartDate() && start_dt < dtStart() ){ | 552 | if ( hasStartDate() && start_dt < dtStart() ){ |
553 | iscompleted = false; | 553 | iscompleted = false; |
554 | } | 554 | } |
555 | } | 555 | } |
556 | if ( iscompleted ) { | 556 | if ( iscompleted ) { |
557 | return QDateTime (); | 557 | return QDateTime (); |
558 | } | 558 | } |
559 | QDateTime incidenceStart; | 559 | QDateTime incidenceStart; |
560 | incidenceStart = dtDue(); | 560 | incidenceStart = dtDue(); |
561 | bool enabled = false; | 561 | bool enabled = false; |
562 | Alarm* alarm; | 562 | Alarm* alarm; |
563 | int off = 0; | 563 | int off = 0; |
564 | QDateTime alarmStart = QDateTime::currentDateTime().addDays( 3650 );; | 564 | QDateTime alarmStart = QDateTime::currentDateTime().addDays( 3650 );; |
565 | // if ( QDateTime::currentDateTime() > incidenceStart ){ | 565 | // if ( QDateTime::currentDateTime() > incidenceStart ){ |
566 | // *ok = false; | 566 | // *ok = false; |
567 | // return incidenceStart; | 567 | // return incidenceStart; |
568 | // } | 568 | // } |
569 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { | 569 | for (QPtrListIterator<Alarm> it(mAlarms); (alarm = it.current()) != 0; ++it) { |
570 | if (alarm->enabled()) { | 570 | if (alarm->enabled()) { |
571 | if ( alarm->hasTime () ) { | 571 | if ( alarm->hasTime () ) { |
572 | if ( alarm->time() < alarmStart ) { | 572 | if ( alarm->time() < alarmStart ) { |
573 | alarmStart = alarm->time(); | 573 | alarmStart = alarm->time(); |
574 | enabled = true; | 574 | enabled = true; |
575 | off = alarmStart.secsTo( incidenceStart ); | 575 | off = alarmStart.secsTo( incidenceStart ); |
576 | } | 576 | } |
577 | 577 | ||
578 | } else { | 578 | } else { |
579 | int secs = alarm->startOffset().asSeconds(); | 579 | int secs = alarm->startOffset().asSeconds(); |
580 | if ( incidenceStart.addSecs( secs ) < alarmStart ) { | 580 | if ( incidenceStart.addSecs( secs ) < alarmStart ) { |
581 | alarmStart = incidenceStart.addSecs( secs ); | 581 | alarmStart = incidenceStart.addSecs( secs ); |
582 | enabled = true; | 582 | enabled = true; |
583 | off = -secs; | 583 | off = -secs; |
584 | } | 584 | } |
585 | } | 585 | } |
586 | } | 586 | } |
587 | } | 587 | } |
588 | if ( enabled ) { | 588 | if ( enabled ) { |
589 | if ( alarmStart > start_dt ) { | 589 | if ( alarmStart > start_dt ) { |
590 | *ok = true; | 590 | *ok = true; |
591 | * offset = off; | 591 | * offset = off; |
592 | return alarmStart; | 592 | return alarmStart; |
593 | } | 593 | } |
594 | } | 594 | } |
595 | *ok = false; | 595 | *ok = false; |
596 | return QDateTime (); | 596 | return QDateTime (); |
597 | 597 | ||
598 | } | 598 | } |
599 | 599 | ||
600 | void Todo::checkSetCompletedFalse() | 600 | void Todo::checkSetCompletedFalse() |
601 | { | 601 | { |
602 | if ( !mHasRecurrenceID ) { | 602 | if ( !mHasRecurrenceID ) { |
603 | qDebug("ERROR 1 in Todo::checkSetCompletedFalse"); | 603 | qDebug("ERROR 1 in Todo::checkSetCompletedFalse"); |
604 | return; | 604 | return; |
605 | } | 605 | } |
606 | // qDebug("Todo::checkSetCompletedFalse()"); | 606 | // qDebug("Todo::checkSetCompletedFalse()"); |
607 | //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); | 607 | //qDebug("%s %s %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); |
608 | if ( mPercentComplete == 100 ) { | 608 | if ( mPercentComplete == 100 ) { |
609 | QDateTime dt = QDateTime::currentDateTime(); | 609 | QDateTime dt = QDateTime::currentDateTime(); |
610 | if ( dt > mDtStart && dt > mRecurrenceID ) { | 610 | if ( dt > mDtStart && dt > mRecurrenceID ) { |
611 | qDebug("start: %s --due: %s --recID: %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); | 611 | qDebug("start: %s --due: %s --recID: %s ",mDtStart.toString().latin1(), dtDue().toString().latin1(),mRecurrenceID.toString().latin1() ); |
612 | setCompleted( false ); | 612 | setCompleted( false ); |
613 | qDebug("Todo::checkSetCompletedFalse "); | 613 | qDebug("Todo::checkSetCompletedFalse "); |
614 | } | 614 | } |
615 | } | 615 | } |
616 | } | 616 | } |
617 | QString Todo::durationText() | ||
618 | { | ||
619 | if ( mHasDueDate && hasStartDate() ) { | ||
620 | int sec = dtStart().secsTo( dtDue() ); | ||
621 | if ( doesFloat() ) | ||
622 | sec += 86400; | ||
623 | return durationText4Time( sec ); | ||
624 | } | ||
625 | return "---"; | ||
626 | } | ||
diff --git a/libkcal/todo.h b/libkcal/todo.h index 425dfad..7feb32e 100644 --- a/libkcal/todo.h +++ b/libkcal/todo.h | |||
@@ -1,155 +1,156 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of libkcal. | 2 | This file is part of libkcal. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This library is free software; you can redistribute it and/or | 5 | This library is free software; you can redistribute it and/or |
6 | modify it under the terms of the GNU Library General Public | 6 | modify it under the terms of the GNU Library General Public |
7 | License as published by the Free Software Foundation; either | 7 | License as published by the Free Software Foundation; either |
8 | version 2 of the License, or (at your option) any later version. | 8 | version 2 of the License, or (at your option) any later version. |
9 | 9 | ||
10 | This library is distributed in the hope that it will be useful, | 10 | This library is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
13 | Library General Public License for more details. | 13 | Library General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU Library General Public License | 15 | You should have received a copy of the GNU Library General Public License |
16 | along with this library; see the file COPYING.LIB. If not, write to | 16 | along with this library; see the file COPYING.LIB. If not, write to |
17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, | 17 | the Free Software Foundation, Inc., 59 Temple Place - Suite 330, |
18 | Boston, MA 02111-1307, USA. | 18 | Boston, MA 02111-1307, USA. |
19 | */ | 19 | */ |
20 | #ifndef TODO_H | 20 | #ifndef TODO_H |
21 | #define TODO_H | 21 | #define TODO_H |
22 | // | 22 | // |
23 | // Todo component, representing a VTODO object | 23 | // Todo component, representing a VTODO object |
24 | // | 24 | // |
25 | 25 | ||
26 | #include "incidence.h" | 26 | #include "incidence.h" |
27 | 27 | ||
28 | #include <qtimer.h> | 28 | #include <qtimer.h> |
29 | 29 | ||
30 | namespace KCal { | 30 | namespace KCal { |
31 | 31 | ||
32 | /** | 32 | /** |
33 | This class provides a Todo in the sense of RFC2445. | 33 | This class provides a Todo in the sense of RFC2445. |
34 | */ | 34 | */ |
35 | class Todo : public QObject,public Incidence | 35 | class Todo : public QObject,public Incidence |
36 | { | 36 | { |
37 | Q_OBJECT | 37 | Q_OBJECT |
38 | public: | 38 | public: |
39 | Todo(); | 39 | Todo(); |
40 | Todo(const Todo &); | 40 | Todo(const Todo &); |
41 | ~Todo(); | 41 | ~Todo(); |
42 | typedef ListBase<Todo> List; | 42 | typedef ListBase<Todo> List; |
43 | QCString type() const { return "Todo"; } | 43 | QCString type() const { return "Todo"; } |
44 | IncTypeID typeID() const { return todoID; } | 44 | IncTypeID typeID() const { return todoID; } |
45 | 45 | ||
46 | /** Return an exact copy of this todo. */ | 46 | /** Return an exact copy of this todo. */ |
47 | Incidence *clone(); | 47 | Incidence *clone(); |
48 | QDateTime getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const; | 48 | QDateTime getNextAlarmDateTime( bool * ok, int * offset, QDateTime start_dt ) const; |
49 | 49 | ||
50 | /** for setting the todo's due date/time with a QDateTime. */ | 50 | /** for setting the todo's due date/time with a QDateTime. */ |
51 | void setDtDue(const QDateTime &dtDue); | 51 | void setDtDue(const QDateTime &dtDue); |
52 | /** returns an event's Due date/time as a QDateTime. */ | 52 | /** returns an event's Due date/time as a QDateTime. */ |
53 | QDateTime dtDue() const; | 53 | QDateTime dtDue() const; |
54 | /** returns an event's due time as a string formatted according to the | 54 | /** returns an event's due time as a string formatted according to the |
55 | users locale settings */ | 55 | users locale settings */ |
56 | QString dtDueTimeStr() const; | 56 | QString dtDueTimeStr() const; |
57 | /** returns an event's due date as a string formatted according to the | 57 | /** returns an event's due date as a string formatted according to the |
58 | users locale settings */ | 58 | users locale settings */ |
59 | QString dtDueDateStr(bool shortfmt=true) const; | 59 | QString dtDueDateStr(bool shortfmt=true) const; |
60 | /** returns an event's due date and time as a string formatted according | 60 | /** returns an event's due date and time as a string formatted according |
61 | to the users locale settings */ | 61 | to the users locale settings */ |
62 | QString dtDueStr(bool shortfmt=true) const; | 62 | QString dtDueStr(bool shortfmt=true) const; |
63 | 63 | ||
64 | /** returns TRUE or FALSE depending on whether the todo has a due date */ | 64 | /** returns TRUE or FALSE depending on whether the todo has a due date */ |
65 | bool hasDueDate() const; | 65 | bool hasDueDate() const; |
66 | /** sets the event's hasDueDate value. */ | 66 | /** sets the event's hasDueDate value. */ |
67 | void setHasDueDate(bool f); | 67 | void setHasDueDate(bool f); |
68 | 68 | ||
69 | /* | 69 | /* |
70 | Looks for a subtodo (including itself ) which is not complete and is | 70 | Looks for a subtodo (including itself ) which is not complete and is |
71 | - overdue, or | 71 | - overdue, or |
72 | - due today. | 72 | - due today. |
73 | It returns 0 for nothing found, | 73 | It returns 0 for nothing found, |
74 | 1 for found a todo which is due today and no overdue found | 74 | 1 for found a todo which is due today and no overdue found |
75 | 2 for found a overdue todo | 75 | 2 for found a overdue todo |
76 | */ | 76 | */ |
77 | int hasDueSubTodo( bool checkSubtodos = true ); | 77 | int hasDueSubTodo( bool checkSubtodos = true ); |
78 | /* same as above, but a specific date can be specified*/ | 78 | /* same as above, but a specific date can be specified*/ |
79 | int hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ); | 79 | int hasDueSubTodoForDate( const QDate & date, bool checkSubtodos ); |
80 | 80 | ||
81 | 81 | ||
82 | /** sets the event's status to the string specified. The string | 82 | /** sets the event's status to the string specified. The string |
83 | * must be a recognized value for the status field, i.e. a string | 83 | * must be a recognized value for the status field, i.e. a string |
84 | * equivalent of the possible status enumerations previously described. */ | 84 | * equivalent of the possible status enumerations previously described. */ |
85 | // void setStatus(const QString &statStr); | 85 | // void setStatus(const QString &statStr); |
86 | /** sets the event's status to the value specified. See the enumeration | 86 | /** sets the event's status to the value specified. See the enumeration |
87 | * above for possible values. */ | 87 | * above for possible values. */ |
88 | // void setStatus(int); | 88 | // void setStatus(int); |
89 | /** return the event's status. */ | 89 | /** return the event's status. */ |
90 | // int status() const; | 90 | // int status() const; |
91 | /** return the event's status in string format. */ | 91 | /** return the event's status in string format. */ |
92 | // QString statusStr() const; | 92 | // QString statusStr() const; |
93 | 93 | ||
94 | /** return, if this todo is completed */ | 94 | /** return, if this todo is completed */ |
95 | bool isCompleted() const; | 95 | bool isCompleted() const; |
96 | /** set completed state of this todo */ | 96 | /** set completed state of this todo */ |
97 | void setCompleted(bool); | 97 | void setCompleted(bool); |
98 | 98 | ||
99 | /** | 99 | /** |
100 | Return how many percent of the task are completed. Returns a value | 100 | Return how many percent of the task are completed. Returns a value |
101 | between 0 and 100. | 101 | between 0 and 100. |
102 | */ | 102 | */ |
103 | int percentComplete() const; | 103 | int percentComplete() const; |
104 | /** | 104 | /** |
105 | Set how many percent of the task are completed. Valid values are in the | 105 | Set how many percent of the task are completed. Valid values are in the |
106 | range from 0 to 100. | 106 | range from 0 to 100. |
107 | */ | 107 | */ |
108 | void setPercentComplete(int); | 108 | void setPercentComplete(int); |
109 | 109 | ||
110 | /** return date and time when todo was completed */ | 110 | /** return date and time when todo was completed */ |
111 | QDateTime completed() const; | 111 | QDateTime completed() const; |
112 | QString completedStr(bool shortF = true) const; | 112 | QString completedStr(bool shortF = true) const; |
113 | /** set date and time of completion */ | 113 | /** set date and time of completion */ |
114 | void setCompleted(const QDateTime &completed); | 114 | void setCompleted(const QDateTime &completed); |
115 | 115 | ||
116 | /** Return true, if todo has a date associated with completion */ | 116 | /** Return true, if todo has a date associated with completion */ |
117 | bool hasCompletedDate() const; | 117 | bool hasCompletedDate() const; |
118 | bool contains ( Todo*); | 118 | bool contains ( Todo*); |
119 | void checkSetCompletedFalse(); | 119 | void checkSetCompletedFalse(); |
120 | bool setRecurDates(); | 120 | bool setRecurDates(); |
121 | bool isRunning() {return mRunning;} | 121 | bool isRunning() {return mRunning;} |
122 | bool hasRunningSub(); | 122 | bool hasRunningSub(); |
123 | void setRunning( bool ); | 123 | void setRunning( bool ); |
124 | void setRunningFalse( QString ); | 124 | void setRunningFalse( QString ); |
125 | void stopRunning(); | 125 | void stopRunning(); |
126 | int runTime(); | 126 | int runTime(); |
127 | QDateTime runStart () const { return mRunStart;} | 127 | QDateTime runStart () const { return mRunStart;} |
128 | void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); | 128 | void saveRunningInfo( QString comment, QDateTime start, QDateTime end ); |
129 | public slots: | 129 | public slots: |
130 | void saveRunningInfoToFile( QString st ); | 130 | void saveRunningInfoToFile( QString st ); |
131 | void saveRunningInfoToFile( ); | 131 | void saveRunningInfoToFile( ); |
132 | void saveParents(); | 132 | void saveParents(); |
133 | QString durationText(); | ||
133 | private: | 134 | private: |
134 | bool mRunning; | 135 | bool mRunning; |
135 | QTimer * mRunSaveTimer; | 136 | QTimer * mRunSaveTimer; |
136 | QDateTime mRunStart; | 137 | QDateTime mRunStart; |
137 | QDateTime mRunEnd; | 138 | QDateTime mRunEnd; |
138 | bool accept(Visitor &v) { return v.visit(this); } | 139 | bool accept(Visitor &v) { return v.visit(this); } |
139 | 140 | ||
140 | QDateTime mDtDue; // due date of todo | 141 | QDateTime mDtDue; // due date of todo |
141 | 142 | ||
142 | bool mHasDueDate; // if todo has associated due date | 143 | bool mHasDueDate; // if todo has associated due date |
143 | 144 | ||
144 | // int mStatus; // confirmed/delegated/tentative/etc | 145 | // int mStatus; // confirmed/delegated/tentative/etc |
145 | 146 | ||
146 | QDateTime mCompleted; | 147 | QDateTime mCompleted; |
147 | bool mHasCompletedDate; | 148 | bool mHasCompletedDate; |
148 | 149 | ||
149 | int mPercentComplete; | 150 | int mPercentComplete; |
150 | }; | 151 | }; |
151 | 152 | ||
152 | bool operator==( const Todo&, const Todo& ); | 153 | bool operator==( const Todo&, const Todo& ); |
153 | } | 154 | } |
154 | 155 | ||
155 | #endif | 156 | #endif |