author | zautrix <zautrix> | 2005-07-28 10:38:58 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-07-28 10:38:58 (UTC) |
commit | fee4c893fe8fd01af1b55c1ccd40213fc18a36b4 (patch) (unidiff) | |
tree | 83a3018d54d60e880d441a6f91ef8fe54254aaff | |
parent | 27ffa2e08ebb38e71f613af3a214750442418e2c (diff) | |
download | kdepimpi-fee4c893fe8fd01af1b55c1ccd40213fc18a36b4.zip kdepimpi-fee4c893fe8fd01af1b55c1ccd40213fc18a36b4.tar.gz kdepimpi-fee4c893fe8fd01af1b55c1ccd40213fc18a36b4.tar.bz2 |
fixxxx
-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,753 +1,753 @@ | |||
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" }, |
@@ -1150,394 +1150,396 @@ | |||
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,507 +1,506 @@ | |||
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 | } |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index e7a5e0e..e560ce4 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -1,688 +1,683 @@ | |||
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 ) { |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 77d0ac8..98a820d 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1,612 +1,615 @@ | |||
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(); |
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 | |||
@@ -33,384 +33,392 @@ Event::Event() : | |||
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,487 +1,516 @@ | |||
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 | } |
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 | |||
@@ -233,384 +233,394 @@ bool Todo::contains ( Todo* from ) | |||
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 |