-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 15 | ||||
-rw-r--r-- | desktop/rpm/kdepim_rpm | 2 | ||||
-rw-r--r-- | korganizer/calendarview.cpp | 11 | ||||
-rw-r--r-- | korganizer/calendarview.h | 1 | ||||
-rw-r--r-- | korganizer/kolistview.cpp | 3 | ||||
-rw-r--r-- | korganizer/kotodoview.cpp | 4 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 171 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 1 | ||||
-rw-r--r-- | version | 2 |
9 files changed, 128 insertions, 82 deletions
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 3daf215..2bfdb2f 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -1,932 +1,931 @@ | |||
1 | { "10 minutes","10 Minuten" }, | 1 | { "10 minutes","10 Minuten" }, |
2 | { "10th","10." }, | 2 | { "10th","10." }, |
3 | { "11th","11." }, | 3 | { "11th","11." }, |
4 | { "12 pm Format","12 AM/PM Format" }, | 4 | { "12 pm Format","12 AM/PM Format" }, |
5 | { "12th","12." }, | 5 | { "12th","12." }, |
6 | { "13th","13." }, | 6 | { "13th","13." }, |
7 | { "14th","14." }, | 7 | { "14th","14." }, |
8 | { "15th","15." }, | 8 | { "15th","15." }, |
9 | { "16th","16." }, | 9 | { "16th","16." }, |
10 | { "17th","17." }, | 10 | { "17th","17." }, |
11 | { "18th","18." }, | 11 | { "18th","18." }, |
12 | { "19th","19." }, | 12 | { "19th","19." }, |
13 | { "1 Day","1 Tag" }, | 13 | { "1 Day","1 Tag" }, |
14 | { "1 h","1 Std" }, | 14 | { "1 h","1 Std" }, |
15 | { "1 (high)","1 (hoch)" }, | 15 | { "1 (high)","1 (hoch)" }, |
16 | { "5 (low)","5" }, | 16 | { "5 (low)","5" }, |
17 | { "1st","1." }, | 17 | { "1st","1." }, |
18 | { "20th","20." }, | 18 | { "20th","20." }, |
19 | { "21st","21." }, | 19 | { "21st","21." }, |
20 | { "22nd","22." }, | 20 | { "22nd","22." }, |
21 | { "23rd","23." }, | 21 | { "23rd","23." }, |
22 | { "24:00 Hour Format","24:00 Stunden Format" }, | 22 | { "24:00 Hour Format","24:00 Stunden Format" }, |
23 | { "24th","24." }, | 23 | { "24th","24." }, |
24 | { "25th","25." }, | 24 | { "25th","25." }, |
25 | { "26th","26." }, | 25 | { "26th","26." }, |
26 | { "27th","27." }, | 26 | { "27th","27." }, |
27 | { "28th","28." }, | 27 | { "28th","28." }, |
28 | { "29th","29." }, | 28 | { "29th","29." }, |
29 | { "2nd","2." }, | 29 | { "2nd","2." }, |
30 | { "30 minutes","30 Minuten" }, | 30 | { "30 minutes","30 Minuten" }, |
31 | { "30th","30." }, | 31 | { "30th","30." }, |
32 | { "31st","31." }, | 32 | { "31st","31." }, |
33 | { "3rd","3." }, | 33 | { "3rd","3." }, |
34 | { "4th","4." }, | 34 | { "4th","4." }, |
35 | { "5 (lowest)","5 (Niedrigster)" }, | 35 | { "5 (lowest)","5 (Niedrigster)" }, |
36 | { "5th","5." }, | 36 | { "5th","5." }, |
37 | { "6th","6." }, | 37 | { "6th","6." }, |
38 | { "7th","7." }, | 38 | { "7th","7." }, |
39 | { "8th","8." }, | 39 | { "8th","8." }, |
40 | { "9th","9." }, | 40 | { "9th","9." }, |
41 | { "About...","Über..." }, | 41 | { "About...","Über..." }, |
42 | { "&Accept","&Akzeptieren" }, | 42 | { "&Accept","&Akzeptieren" }, |
43 | { "Accept","Akzeptieren" }, | 43 | { "Accept","Akzeptieren" }, |
44 | { "Accept A&ll","A&lles Akzepieren" }, | 44 | { "Accept A&ll","A&lles Akzepieren" }, |
45 | { "Access:","Zugriff:" }, | 45 | { "Access:","Zugriff:" }, |
46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, | 46 | { "A corresponding event is missing in your calendar!","Ein zugehöriger Termin fehlt in ihrem Kalender!" }, |
47 | { "Actions","Aktionen" }, | 47 | { "Actions","Aktionen" }, |
48 | { "Add Filter","Filter Hinzufügen" }, | 48 | { "Add Filter","Filter Hinzufügen" }, |
49 | { "&Add","Hinzufügen" }, | 49 | { "&Add","Hinzufügen" }, |
50 | { "Add","Hinzufügen" }, | 50 | { "Add","Hinzufügen" }, |
51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, | 51 | { "Additional email addresses:","Zusätzliche E-Mail Adressen:" }, |
52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, | 52 | { "Additional email address:","Zusätzliche E-Mail Adresse:" }, |
53 | { "&Addressbook","&Adressbuch" }, | 53 | { "&Addressbook","&Adressbuch" }, |
54 | { "Address &Book...","Adress&buch..." }, | 54 | { "Address &Book...","Adress&buch..." }, |
55 | { "Agenda Size","Agende Größe" }, | 55 | { "Agenda Size","Agende Größe" }, |
56 | { "Agenda Size:","Größe der Agenda:" }, | 56 | { "Agenda Size:","Größe der Agenda:" }, |
57 | { "Agenda view:","Agenda Ansicht:" }, | 57 | { "Agenda view:","Agenda Ansicht:" }, |
58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, | 58 | { "Agenda view background color:","Hintergrund der Agenda Ansicht:" }, |
59 | { "All attendees","Alle Teilnehmer" }, | 59 | { "All attendees","Alle Teilnehmer" }, |
60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, | 60 | { "AllDayAgenda Height:","Höhe Ganztages Agenda:" }, |
61 | { "All day event","Ganztägig" }, | 61 | { "All day event","Ganztägig" }, |
62 | { "Anonymous","Anonym" }, | 62 | { "Anonymous","Anonym" }, |
63 | { "Apply","Anwenden" }, | 63 | { "Apply","Anwenden" }, |
64 | { "Apr","Apr" }, | 64 | { "Apr","Apr" }, |
65 | { "April","April" }, | 65 | { "April","April" }, |
66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, | 66 | {"Ask for every entry on conflict","Frage bei Konflikten nach"}, |
67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, | 67 | { "Ask for preferences before syncing","Vor dem Syncronisieren nachfragen" }, |
68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, | 68 | { "Ask for quit when closing KO/Pi","Vor dem Beenden von KO/Pi nachfragen" }, |
69 | { "Attendees","Teilnehmer" }, | 69 | { "Attendees","Teilnehmer" }, |
70 | { "Aug","Aug" }, | 70 | { "Aug","Aug" }, |
71 | { "August","August" }, | 71 | { "August","August" }, |
72 | { "Auto-Save","Automatisches Abspeichern" }, | 72 | { "Auto-Save","Automatisches Abspeichern" }, |
73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, | 73 | { "Auto save delay in minutes:","Verzög.autom.Speichern in Min" }, |
74 | { "Auto saving...","Automatische Sicherung..." }, | 74 | { "Auto saving...","Automatische Sicherung..." }, |
75 | { "Begin on:","Starte mit:" }, | 75 | { "Begin on:","Starte mit:" }, |
76 | { "Begins on: %1","Starte mit: %1" }, | 76 | { "Begins on: %1","Starte mit: %1" }, |
77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, | 77 | { "<b>From:</b> %1 <b>To:</b> %2","<b>Vom:</b> %1 <b>Zum:</b> %2" }, |
78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, | 78 | { "<b>On:</b> %1","<b>Am:</b> %1" }, |
79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, | 79 | { "<b>On:</b> %1 <b>From:S</b> %2 <b>To:</b> %3","<b>Am:</b> %1 <b>Vom:S</b> %2 <b>Zum:</b> %3" }, |
80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, | 80 | { "<b>Original event:</b><p>","<b>Original Termin:</b><p>" }, |
81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, | 81 | { " - both are modified after last sync"," - beide wurden nach der letzten Syncronisation verändert" }, |
82 | { "Busy","Belegt" }, | 82 | { "Busy","Belegt" }, |
83 | { "&Cancel","Abbre&chen" }, | 83 | { "&Cancel","Abbre&chen" }, |
84 | { "Cancel","Abbrechen" }, | 84 | { "Cancel","Abbrechen" }, |
85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, | 85 | { "Cannot delete To-Do\nwhich has children.","Kann Todo nicht löschen,\n da noch Einträge vorhanden sind" }, |
86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, | 86 | { "Can't generate mail:\nNo event selected.","Kann e-Mail nicht erstellen:\nKein Termin ausgewählt." }, |
87 | { "Categories...","Kategorien..." }, | 87 | { "Categories...","Kategorien..." }, |
88 | { "Categories","Kategorien" }, | 88 | { "Categories","Kategorien" }, |
89 | { "Category","Kategorie" }, | 89 | { "Category","Kategorie" }, |
90 | { "Center View","Zentriere Ansicht" }, | 90 | { "Center View","Zentriere Ansicht" }, |
91 | { "Change","Ändere" }, | 91 | { "Change","Ändere" }, |
92 | { "Cinema","Kino" }, | 92 | { "Cinema","Kino" }, |
93 | { "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, | 93 | { "Click to add a new Todo","Hier klicken, um ein neues Todo anzulegen" }, |
94 | { "Clone Item","Klone Eintrag" }, | 94 | { "Clone Item","Klone Eintrag" }, |
95 | { "&Close","S&chließen" }, | 95 | { "&Close","S&chließen" }, |
96 | { "Close","Schließen" }, | 96 | { "Close","Schließen" }, |
97 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, | 97 | { "Close this dialog to abort deletion!","Zum Abbrechen des Löschvorganges Dialog schließen!" }, |
98 | { "Colors","Farben" }, | 98 | { "Colors","Farben" }, |
99 | { "completed","erledigt" }, | 99 | { "completed","erledigt" }, |
100 | { "completed on %1","erledigt am %1" }, | 100 | { "completed on %1","erledigt am %1" }, |
101 | { "Complete","Erledigt" }, | 101 | { "Complete","Erledigt" }, |
102 | { "Confidential","Vertraulich" }, | 102 | { "Confidential","Vertraulich" }, |
103 | { "Configure...","Einstellungen..." }, | 103 | { "Configure...","Einstellungen..." }, |
104 | { "Confirm &deletes","Löschvogang bestätigen" }, | 104 | { "Confirm &deletes","Löschvogang bestätigen" }, |
105 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, | 105 | { "Couldn't load calendar\n '%1'.","Kann Kalender\n '%1' nicht laden." }, |
106 | { "Counter-event Viewer","Terminzähler Ansicht" }, | 106 | { "Counter-event Viewer","Terminzähler Ansicht" }, |
107 | { "Daily ending hour:","Feierabend:" }, | 107 | { "Daily ending hour:","Feierabend:" }, |
108 | { "Daily starting hour:","Anfangszeit:" }, | 108 | { "Daily starting hour:","Anfangszeit:" }, |
109 | { "Daily","Täglich" }, | 109 | { "Daily","Täglich" }, |
110 | { "Date Format","Datums Format" }, | 110 | { "Date Format","Datums Format" }, |
111 | { "Date Format:","Datums Format:" }, | 111 | { "Date Format:","Datums Format:" }, |
112 | { "DateNavigator:(nr)","Datums Navigator" }, | 112 | { "DateNavigator:(nr)","Datums Navigator" }, |
113 | { "Dates: ","Datum: " }, | 113 | { "Dates: ","Datum: " }, |
114 | { "Date && Time","Datum && Zeit" }, | 114 | { "Date && Time","Datum && Zeit" }, |
115 | { "Day begins at:","Der Tag beginnt um:" }, | 115 | { "Day begins at:","Der Tag beginnt um:" }, |
116 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, | 116 | { "Days in Next-X-Days:","Tage in Nächste-X-Tage:" }, |
117 | { "Days in What's Next:","Tage in What's Next:" }, | 117 | { "Days in What's Next:","Tage in What's Next:" }, |
118 | { "day(s)","Tag(e)" }, | 118 | { "day(s)","Tag(e)" }, |
119 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, | 119 | { "Days to show in Next-X-Days view:","Welche Tage in Nächste-X-Tagen anzeigen:" }, |
120 | { "day","Tag" }, | 120 | { "day","Tag" }, |
121 | { "Dec","Dez" }, | 121 | { "Dec","Dez" }, |
122 | { "December","Dezember" }, | 122 | { "December","Dezember" }, |
123 | { "Default alarm time:","Standard Alarmzeit:" }, | 123 | { "Default alarm time:","Standard Alarmzeit:" }, |
124 | { "Default appointment time:","Standard Termin Startzeit:" }, | 124 | { "Default appointment time:","Standard Termin Startzeit:" }, |
125 | { "Default event color:","Standard Terminfarbe:" }, | 125 | { "Default event color:","Standard Terminfarbe:" }, |
126 | { "Default","Standard" }, | 126 | { "Default","Standard" }, |
127 | { "Def. duration of new app.:","Standard Termin Länge:" }, | 127 | { "Def. duration of new app.:","Standard Termin Länge:" }, |
128 | { "Delete All","Lösche alles" }, | 128 | { "Delete All","Lösche alles" }, |
129 | { "Delete all selected","Lösche alle Selektierten" }, | 129 | { "Delete all selected","Lösche alle Selektierten" }, |
130 | { "Delete Current","Aktuellen löschen" }, | 130 | { "Delete Current","Aktuellen löschen" }, |
131 | { "Delete Event...","Lösche Termin..." }, | 131 | { "Delete Event...","Lösche Termin..." }, |
132 | { "Delete Event","Lösche Termin" }, | 132 | { "Delete Event","Lösche Termin" }, |
133 | { "&Delete","Löschen" }, | 133 | { "&Delete","Löschen" }, |
134 | { "Delete...","Löschen..." }, | 134 | { "Delete...","Löschen..." }, |
135 | { "Delete","Löschen" }, | 135 | { "Delete","Löschen" }, |
136 | { "Delete Todo...","Lösche Todo..." }, | 136 | { "Delete Todo...","Lösche Todo..." }, |
137 | { "Delete To-Do","Lösche Todo" }, | 137 | { "Delete To-Do","Lösche Todo" }, |
138 | { "Deleting item %d ...","Lösche Eintrag %d..." }, | 138 | { "Deleting item %d ...","Lösche Eintrag %d..." }, |
139 | { "Descriptions","Beschreibungen" }, | 139 | { "Descriptions","Beschreibungen" }, |
140 | { "Deselect all","Deselektiere Alle" }, | 140 | { "Deselect all","Deselektiere Alle" }, |
141 | { "Details","Details" }, | 141 | { "Details","Details" }, |
142 | { "Dinner","Abendessen" }, | 142 | { "Dinner","Abendessen" }, |
143 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, | 143 | { "Do you really want\nto close KO/Pi?","Möchten Sie wirklich\nKO/PI verlassen?" }, |
144 | { "Due Date","Fällig am" }, | 144 | { "Due Date","Fällig am" }, |
145 | { "Due: ","Fällig: "}, | 145 | { "Due: ","Fällig: "}, |
146 | { "Due Time","Fällig um" }, | 146 | { "Due Time","Fällig um" }, |
147 | { "Due:","Fällig:"}, | 147 | { "Due:","Fällig:"}, |
148 | { "Duration: ","Dauer: " }, | 148 | { "Duration: ","Dauer: " }, |
149 | { "Edit...","Bearbeite..." }, | 149 | { "Edit...","Bearbeite..." }, |
150 | { "Edit","Bearbeite" }, | 150 | { "Edit","Bearbeite" }, |
151 | { "Edit Event...","Bearbeite Termin..." }, | 151 | { "Edit Event...","Bearbeite Termin..." }, |
152 | { "Edit Event","Bearbeite Termin" }, | 152 | { "Edit Event","Bearbeite Termin" }, |
153 | { "Edit exceptions","Bearbeite Ausnahmen" }, | 153 | { "Edit exceptions","Bearbeite Ausnahmen" }, |
154 | { "EditorBox:","Editor Fenster:" }, | 154 | { "EditorBox:","Editor Fenster:" }, |
155 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, | 155 | { "Edit Recurrence Range","Bearbeite Wiederholung" }, |
156 | { "Edit Todo...","Berabeite Todo..." }, | 156 | { "Edit Todo...","Berabeite Todo..." }, |
157 | { "Edit To-Do","Todo bearbeiten" }, | 157 | { "Edit To-Do","Todo bearbeiten" }, |
158 | { "E&mail address:","E&mail Adresse:" }, | 158 | { "E&mail address:","E&mail Adresse:" }, |
159 | { "(EmptyEmail)","(KeineEmail)" }, | 159 | { "(EmptyEmail)","(KeineEmail)" }, |
160 | { "(EmptyName)","(KeinName)" }, | 160 | { "(EmptyName)","(KeinName)" }, |
161 | { "Enable Recurrence","Wiederholung anschalten" }, | 161 | { "Enable Recurrence","Wiederholung anschalten" }, |
162 | { "End after","Endet nach"}, | 162 | { "End after","Endet nach"}, |
163 | { "End by:","Endet am"}, | 163 | { "End by:","Endet am"}, |
164 | { "End Date","End Datum" }, | 164 | { "End Date","End Datum" }, |
165 | { "End:","Ende:" }, | 165 | { "End:","Ende:" }, |
166 | { "End Time","End Zeit" }, | 166 | { "End Time","End Zeit" }, |
167 | { "English","Englisch" }, | 167 | { "English","Englisch" }, |
168 | { "Event","Termin" }, | 168 | { "Event","Termin" }, |
169 | { "Event list","Termin Liste" }, | 169 | { "Event list","Termin Liste" }, |
170 | { "Events","Termine" }, | 170 | { "Events","Termine" }, |
171 | { "Event Viewer:","Termin Übersicht:" }, | 171 | { "Event Viewer:","Termin Übersicht:" }, |
172 | { "every","jede" }, | 172 | { "every","jede" }, |
173 | { "Exceptions...","Ausnahmen..." }, | 173 | { "Exceptions...","Ausnahmen..." }, |
174 | { "Exceptions","Ausnahmen" }, | 174 | { "Exceptions","Ausnahmen" }, |
175 | { "Exclude holidays","Ohne freie Tage" }, | 175 | { "Exclude holidays","Ohne freie Tage" }, |
176 | { "Exclude Saturdays","Ohne Samstage" }, | 176 | { "Exclude Saturdays","Ohne Samstage" }, |
177 | { "Feb","Feb" }, | 177 | { "Feb","Feb" }, |
178 | { "February","Februar" }, | 178 | { "February","Februar" }, |
179 | { "&Find","Suche!" }, | 179 | { "&Find","Suche!" }, |
180 | { "Fonts","Schriftart" }, | 180 | { "Fonts","Schriftart" }, |
181 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, | 181 | { "Force take local entry always","Erzwinge:Nimm immer lokalen Eintrag" }, |
182 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, | 182 | { "Force take remote entry always","Erzwinge:Nimm immer fernen Eintrag"}, |
183 | { "Free","Frei" }, | 183 | { "Free","Frei" }, |
184 | { "Friday","Freitag" }, | 184 | { "Friday","Freitag" }, |
185 | { "Fri","Fr" }, | 185 | { "Fri","Fr" }, |
186 | { "From:","Vom:" }, | 186 | { "From:","Vom:" }, |
187 | { "Full &name:","Vor- und &Nachname:" }, | 187 | { "Full &name:","Vor- und &Nachname:" }, |
188 | { "General","Allgemein" }, | 188 | { "General","Allgemein" }, |
189 | { "German","Deutsch" }, | 189 | { "German","Deutsch" }, |
190 | { "Gifts","Geschenke" }, | 190 | { "Gifts","Geschenke" }, |
191 | { "Go to Today","Heute anzeigen" }, | 191 | { "Go to Today","Heute anzeigen" }, |
192 | { "Help","Hilfe" }, | 192 | { "Help","Hilfe" }, |
193 | { "Hide Dates","Daten ausblenden" }, | 193 | { "Hide Dates","Daten ausblenden" }, |
194 | { "Highlight color:","Markierungen:" }, | 194 | { "Highlight color:","Markierungen:" }, |
195 | { "Holiday color:","Freie Tage:" }, | 195 | { "Holiday color:","Freie Tage:" }, |
196 | { "hour(s)","Stunde(n)" }, | 196 | { "hour(s)","Stunde(n)" }, |
197 | { "In %1 days: ","In %1 Tagen: " }, | 197 | { "In %1 days: ","In %1 Tagen: " }, |
198 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, | 198 | { "Incomplete Todo:","Unerledigte Aufgaben:" }, |
199 | { "Information","Information" }, | 199 | { "Information","Information" }, |
200 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, | 200 | { "Invalid search expression,\ncannot perform ","Kann Suche nicht ausführen" }, |
201 | { "Jan","Jan" }, | 201 | { "Jan","Jan" }, |
202 | { "January","Januar" }, | 202 | { "January","Januar" }, |
203 | { "JournalView:","Journal Ansicht:" }, | 203 | { "JournalView:","Journal Ansicht:" }, |
204 | { "Journals","Journale" }, | 204 | { "Journals","Journale" }, |
205 | { "Jul","Jul" }, | 205 | { "Jul","Jul" }, |
206 | { "July","Juli" }, | 206 | { "July","Juli" }, |
207 | { "Jump to date","Springe zum Datum" }, | 207 | { "Jump to date","Springe zum Datum" }, |
208 | { "June","Juni" }, | 208 | { "June","Juni" }, |
209 | { "Jun","Jun" }, | 209 | { "Jun","Jun" }, |
210 | { "Key Bindings...","Tastenzuordnung..." }, | 210 | { "Key Bindings...","Tastenzuordnung..." }, |
211 | { "Kids","Kinder" }, | 211 | { "Kids","Kinder" }, |
212 | { "Known Problems...","Bekannte Probleme..." }, | 212 | { "Known Problems...","Bekannte Probleme..." }, |
213 | { "KO/Pi Find ","KO/Pi Suchdialog " }, | 213 | { "KO/Pi Find ","KO/Pi Suchdialog " }, |
214 | { "KO/Pi Find: ","KO/Pi Suchen: " }, | 214 | { "KO/Pi Find: ","KO/Pi Suchen: " }, |
215 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, | 215 | { "KO/Pi is starting ... "," KO/Pi startet ... \n... Zeit für eine Kaffeepause ..." }, |
216 | { "Language:(needs restart)","Sprache (Neustart!)" }, | 216 | { "Language:(needs restart)","Sprache (Neustart!)" }, |
217 | { "Language:","Sprache" }, | 217 | { "Language:","Sprache" }, |
218 | { "Large","Etwas mehr" }, | 218 | { "Large","Etwas mehr" }, |
219 | { "List View:","Listenansicht:" }, | 219 | { "List View:","Listenansicht:" }, |
220 | { "List View","Listenansicht" }, | 220 | { "List View","Listenansicht" }, |
221 | { "Load/Save","Laden/Speichern" }, | 221 | { "Load/Save","Laden/Speichern" }, |
222 | { "Load Template","Lade Vorlage" }, | 222 | { "Load Template","Lade Vorlage" }, |
223 | { "Locale","Localisation" }, | 223 | { "Locale","Localisation" }, |
224 | { "Local temp file:","Lokale temp. Datei:" }, | 224 | { "Local temp file:","Lokale temp. Datei:" }, |
225 | { "Location: ","Ort: " }, | 225 | { "Location: ","Ort: " }, |
226 | { "Location:","Ort:" }, | 226 | { "Location:","Ort:" }, |
227 | { "Mail client","Mail Programm" }, | 227 | { "Mail client","Mail Programm" }, |
228 | { "Mail Client","Mail Programm" }, | 228 | { "Mail Client","Mail Programm" }, |
229 | { "March","März" }, | 229 | { "March","März" }, |
230 | { "Mar","Mär" }, | 230 | { "Mar","Mär" }, |
231 | { "May","Mai" }, | 231 | { "May","Mai" }, |
232 | { "M. Bains line:","M. Bains Linie:" }, | 232 | { "M. Bains line:","M. Bains Linie:" }, |
233 | { "Medium","Medium" }, | 233 | { "Medium","Medium" }, |
234 | { "Method","Methode" }, | 234 | { "Method","Methode" }, |
235 | { "minute(s)","Minute(n)" }, | 235 | { "minute(s)","Minute(n)" }, |
236 | { "Monday","Montag" }, | 236 | { "Monday","Montag" }, |
237 | { "Mon","Mo" }, | 237 | { "Mon","Mo" }, |
238 | { "Monthly","Monatlich" }, | 238 | { "Monthly","Monatlich" }, |
239 | { "Month not long enough","Monat ist nicht lang genug" }, | 239 | { "Month not long enough","Monat ist nicht lang genug" }, |
240 | { "month(s)","Monat(e)" }, | 240 | { "month(s)","Monat(e)" }, |
241 | { "Month view:","Monatsansicht:" }, | 241 | { "Month view:","Monatsansicht:" }, |
242 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, | 242 | { "Month view uses category colors","Monatsansicht zeigt Kategorie Farben" }, |
243 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, | 243 | { "Todo view uses category colors","To-Do Ansicht zeigt Kategorie Farben" }, |
244 | { "Move &Down","Nach unten verschieben" }, | 244 | { "Move &Down","Nach unten verschieben" }, |
245 | { "Move &Up","Nach oben verschieben" }, | 245 | { "Move &Up","Nach oben verschieben" }, |
246 | { "Name:","Name:" }, | 246 | { "Name:","Name:" }, |
247 | { "Name","Name" }, | 247 | { "Name","Name" }, |
248 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, | 248 | { "\nAre you sure you want\nto delete this event?","\nSind Sie sicher, dass Sie\nden Termin löschen möchten?" }, |
249 | { "%n Days","%n Tage" }, | 249 | { "%n Days","%n Tage" }, |
250 | { "Never","Nie" }, | 250 | { "Never","Nie" }, |
251 | { "New event...","Neuer Termin..." }, | 251 | { "New event...","Neuer Termin..." }, |
252 | { "New event","Neuer Termin" }, | 252 | { "New event","Neuer Termin" }, |
253 | { "New Event...","Neuer Termin..." }, | 253 | { "New Event...","Neuer Termin..." }, |
254 | { "New Events/Todos should","Neue Termine/Todos sollten" }, | 254 | { "New Events/Todos should","Neue Termine/Todos sollten" }, |
255 | { "&New","&Neu" }, | 255 | { "&New","&Neu" }, |
256 | { "New","Neu", }, | 256 | { "New","Neu", }, |
257 | { "New Sub-Todo...","Neues Sub-Todo..." }, | 257 | { "New Sub-Todo...","Neues Sub-Todo..." }, |
258 | { "New Todo...","Neues Todo..." }, | 258 | { "New Todo...","Neues Todo..." }, |
259 | { "Next Alarm: ","Nächster Alarm: ", }, | 259 | { "Next Alarm: ","Nächster Alarm: ", }, |
260 | { "&Next Day","&Nächster Tag", }, | 260 | { "&Next Day","&Nächster Tag", }, |
261 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, | 261 | { "Next days view uses full window","Nächste-X-Tage nutzt Vollbild" }, |
262 | { "Next month","Nächster Monat" }, | 262 | { "Next month","Nächster Monat" }, |
263 | { "&Next Week","&Nächste Woche" }, | 263 | { "&Next Week","&Nächste Woche" }, |
264 | { "Next year","Nächstes Jahr" }, | 264 | { "Next year","Nächstes Jahr" }, |
265 | { "Next Year","Nächstes Jahr" }, | 265 | { "Next Year","Nächstes Jahr" }, |
266 | { "%n h","%n Std" }, | 266 | { "%n h","%n Std" }, |
267 | { "No ending date","Kein End-Datum", }, | 267 | { "No ending date","Kein End-Datum", }, |
268 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, | 268 | { "No event, nothing to do.","Kein Termin, nichts zu tun.", }, |
269 | { "No event selected.","Kein Termin selektiert" }, | 269 | { "No event selected.","Kein Termin selektiert" }, |
270 | { "No","Nein" }, | 270 | { "No","Nein" }, |
271 | { "No program set","Kein Programm ausgewählt", }, | 271 | { "No program set","Kein Programm ausgewählt", }, |
272 | { "Normal","Normal" }, | 272 | { "Normal","Normal" }, |
273 | { "[No selection]","Keine Selektion", }, | 273 | { "[No selection]","Keine Selektion", }, |
274 | { "No sound set","Kein Sound ausgewählt", }, | 274 | { "No sound set","Kein Sound ausgewählt", }, |
275 | { "no time ","keine Zeit ", }, | 275 | { "no time ","keine Zeit ", }, |
276 | { "no time","keine Zeit", }, | 276 | { "no time","keine Zeit", }, |
277 | { "No Time","Keine Zeit" }, | 277 | { "No Time","Keine Zeit" }, |
278 | { "November","November" }, | 278 | { "November","November" }, |
279 | { "Nov","Nov", }, | 279 | { "Nov","Nov", }, |
280 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, | 280 | { "\nThis event recurs\nover multiple dates.\n","\nDieser Termin wiederholt sich an mehreren Tagen.\n" }, |
281 | { "occurrence(s)","Vorkommen" }, | 281 | { "occurrence(s)","Vorkommen" }, |
282 | { "October","Oktober" }, | 282 | { "October","Oktober" }, |
283 | { "Oct","Okt", }, | 283 | { "Oct","Okt", }, |
284 | { "O-due!","Ü-fällig! " }, | 284 | { "O-due!","Ü-fällig! " }, |
285 | { "&OK","&OK" }, | 285 | { "&OK","&OK" }, |
286 | { "Ok+Show!","Ok+Anzeigen" }, | 286 | { "Ok+Show!","Ok+Anzeigen" }, |
287 | { "Organizer: %1","Organisator %1" }, | 287 | { "Organizer: %1","Organisator %1" }, |
288 | { "Organizer","Organisator" }, | 288 | { "Organizer","Organisator" }, |
289 | { "Owner: ","Besitzer: " }, | 289 | { "Owner: ","Besitzer: " }, |
290 | { "Owner:","Besitzer:" }, | 290 | { "Owner:","Besitzer:" }, |
291 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 291 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
292 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, | 292 | { "Pick a date to display","Wähle einen Tag zum anzeigen aus" }, |
293 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, | 293 | { "Please specify a valid due date.","Bitte gültiges Fälligkeitsdatum angeben."}, |
294 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, | 294 | { "Please specify a valid end date,\nfor example '%1'.","Bitte gültiges Enddatum angeben,\nz.B.'%1'." }, |
295 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, | 295 | { "Please specify a valid start date.","Bitte gültiges Startdatum angeben." }, |
296 | { "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, | 296 | { "Please specify a valid start date,\nfor example '%1'.","Bitte gültiges Startdatum angeben,\nz.B. '%1'." }, |
297 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, | 297 | { "Please specify a valid start time.","Bitte gültige Startzeit angeben."}, |
298 | { "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, | 298 | { "Please specify a valid start time,\nfor example '%1'.","Bitte gültige Startzeit angeben,\nz.B. '%1'." }, |
299 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, | 299 | { "Preferences - some settings need a restart (nr)","Einstellungen - teilweise Neustart erforderlich (bn)" }, |
300 | { "&Previous Day","Vorheriger Tag" }, | 300 | { "&Previous Day","Vorheriger Tag" }, |
301 | { "Previous month","Vorheriger Monat" }, | 301 | { "Previous month","Vorheriger Monat" }, |
302 | { "Previous Month","Vorheriger Monat" }, | 302 | { "Previous Month","Vorheriger Monat" }, |
303 | { "&Previous Week","Vorherige Woche" }, | 303 | { "&Previous Week","Vorherige Woche" }, |
304 | { "Previous year","Vorheriges Jahr" }, | 304 | { "Previous year","Vorheriges Jahr" }, |
305 | { "Previous Year","Vorheriges Jahr" }, | 305 | { "Previous Year","Vorheriges Jahr" }, |
306 | { "Printing","Drucken" }, | 306 | { "Printing","Drucken" }, |
307 | { "Priority:","Priorität:" }, | 307 | { "Priority:","Priorität:" }, |
308 | { "Private","Privat" }, | 308 | { "Private","Privat" }, |
309 | { "Proceed","Weiter" }, | 309 | { "Proceed","Weiter" }, |
310 | { "Public","Öffentlich" }, | 310 | { "Public","Öffentlich" }, |
311 | { "Purge","Entferne" }, | 311 | { "Purge","Entferne" }, |
312 | { "Purge Completed","Entferne erledigte Todos" }, | 312 | { "Purge Completed...","Entferne erledigte Todos..." }, |
313 | { "Purge Todos","Todos bereinigen" }, | 313 | { "Purge Todos","Todos bereinigen" }, |
314 | { "read-only","schreibgeschützt" }, | 314 | { "read-only","schreibgeschützt" }, |
315 | { "Recur every","Wiederh. alle" }, | 315 | { "Recur every","Wiederh. alle" }, |
316 | { "Recur in the month of","Wiederh. im Monat" }, | 316 | { "Recur in the month of","Wiederh. im Monat" }, |
317 | { "Recur on the","Wiederh. am" }, | 317 | { "Recur on the","Wiederh. am" }, |
318 | { "Recur on this day","Wiederh. am diesen Tag" }, | 318 | { "Recur on this day","Wiederh. am diesen Tag" }, |
319 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, | 319 | { "Recurrence Range...","Wiederholungs Zeitraum..." }, |
320 | { "Recurrence Range","Wiederholungs Zeitraum" }, | 320 | { "Recurrence Range","Wiederholungs Zeitraum" }, |
321 | { "Recurrence Rule","Wiederholungs Regel" }, | 321 | { "Recurrence Rule","Wiederholungs Regel" }, |
322 | { "Recurrence","Wiederholung" }, | 322 | { "Recurrence","Wiederholung" }, |
323 | { "Recurs","Wiederholung" }, | 323 | { "Recurs","Wiederholung" }, |
324 | {"&Reject","Abweisen"}, | 324 | {"&Reject","Abweisen"}, |
325 | { "Reminder:","Alarm:" }, | 325 | { "Reminder:","Alarm:" }, |
326 | { "Rem.:","Alarm:" }, | 326 | { "Rem.:","Alarm:" }, |
327 | { "Rem.","Alarm:" }, | 327 | { "Rem.","Alarm:" }, |
328 | { "Remote file:","Remote Datei:"}, | 328 | { "Remote file:","Remote Datei:"}, |
329 | { "Remote IP:","Remote (ferne) IP:" }, | 329 | { "Remote IP:","Remote (ferne) IP:" }, |
330 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, | 330 | { "Remote syncing (via ssh/scp) network settings ","Remote Sync (via ssh/scp) Netzwerk Einstellungen " }, |
331 | { "Remote user:","Remote Benutzer"}, | 331 | { "Remote user:","Remote Benutzer"}, |
332 | { "&Remove","Entfe&rnen" }, | 332 | { "&Remove","Entfe&rnen" }, |
333 | { "Remove","Entfernen" }, | 333 | { "Remove","Entfernen" }, |
334 | { "Request response","Bemerkung anfordern" }, | 334 | { "Request response","Bemerkung anfordern" }, |
335 | { "Role:","Rolle:" }, | 335 | { "Role:","Rolle:" }, |
336 | { "Role","Rolle" }, | 336 | { "Role","Rolle" }, |
337 | { "Sat","Sa" }, | 337 | { "Sat","Sa" }, |
338 | { "Saturday","Samstag" }, | 338 | { "Saturday","Samstag" }, |
339 | { "Search for:","Suche nach:" }, | 339 | { "Search for:","Suche nach:" }, |
340 | { "Search In","Suche in" }, | 340 | { "Search In","Suche in" }, |
341 | { "Search...","Suche..." }, | 341 | { "Search...","Suche..." }, |
342 | { "Search","Suche" }, | 342 | { "Search","Suche" }, |
343 | { "Select Addresses","Wähle Adressen" }, | 343 | { "Select Addresses","Wähle Adressen" }, |
344 | { "Select all","Selektiere Alle" }, | 344 | { "Select all","Selektiere Alle" }, |
345 | { "Select a month","Wähle Monat" }, | 345 | { "Select a month","Wähle Monat" }, |
346 | { "Select a week","Wähle Woche" }, | 346 | { "Select a week","Wähle Woche" }, |
347 | { "Select a year","Wähle Jahr" }, | 347 | { "Select a year","Wähle Jahr" }, |
348 | { "Send directly","Sende direkt" }, | 348 | { "Send directly","Sende direkt" }, |
349 | { "&Send Messages","&Sende Nachrichten", }, | 349 | { "&Send Messages","&Sende Nachrichten", }, |
350 | { "Sep","Sep" }, | 350 | { "Sep","Sep" }, |
351 | { "September","September" }, | 351 | { "September","September" }, |
352 | { "Shopping","Einkaufen" }, | 352 | { "Shopping","Einkaufen" }, |
353 | { "Show Dates","Zeige Daten" }, | 353 | { "Show Dates","Zeige Daten" }, |
354 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, | 354 | { "Show events that recur daily in date nav.","Zeige tägl.wiederh.Term.in Datums Nav." }, |
355 | { "Show Event...","Zeige Termin..." }, | 355 | { "Show Event...","Zeige Termin..." }, |
356 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, | 356 | { "Show ev. that recur weekly in date nav.","Zeige wöch.wiederh.Term.in Datums Nav." }, |
357 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, | 357 | { "Show Marcus Bains line","Zeige Marcus Bains Linie" }, |
358 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, | 358 | { "Show summary after syncing","Zeige Zusammenfassung nach Sync." }, |
359 | { "Show time as:","Zeige Zeit als" }, | 359 | { "Show time as:","Zeige Zeit als" }, |
360 | { "Show Todo...","Zeige To-Do" }, | 360 | { "Show Todo...","Zeige To-Do" }, |
361 | { "Vertical screen layout(Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, | 361 | { "Vertical screen layout(Needs restart)","Vertikaler Bildschirm-Layout (Neustart!)" }, |
362 | { "&Show","Zeige" }, | 362 | { "&Show","Zeige" }, |
363 | { "Show...","Zeige..." }, | 363 | { "Show...","Zeige..." }, |
364 | { "Show","Zeige" }, | 364 | { "Show","Zeige" }, |
365 | { "Small","Klein" }, | 365 | { "Small","Klein" }, |
366 | { "Sorry","Entschuldigung" }, | 366 | { "Sorry","Entschuldigung" }, |
367 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, | 367 | {"Sorry, the copy command failed!\nCommand was:\n","Der Kopierbefehl schlug fehl!\nBefehl war:\n"}, |
368 | { "Start:","Start:" }, | 368 | { "Start:","Start:" }, |
369 | { "Start Date","Start Datum" }, | 369 | { "Start Date","Start Datum" }, |
370 | { "Start date: %1","Start Datum: %1" }, | 370 | { "Start date: %1","Start Datum: %1" }, |
371 | { "Start Time","Start Zeit" }, | 371 | { "Start Time","Start Zeit" }, |
372 | { "Status:","Status:" }, | 372 | { "Status:","Status:" }, |
373 | { "Status","Status:" }, | 373 | { "Status","Status:" }, |
374 | { "Summaries","Titel" }, | 374 | { "Summaries","Titel" }, |
375 | { "Summary:","Titel:" }, | 375 | { "Summary:","Titel:" }, |
376 | { "Summary","Titel" }, | 376 | { "Summary","Titel" }, |
377 | { "Sunday","Sonntag" }, | 377 | { "Sunday","Sonntag" }, |
378 | { "Sun","So" }, | 378 | { "Sun","So" }, |
379 | { "Sync preferences:","Sync Einstellungen" }, | 379 | { "Sync preferences:","Sync Einstellungen" }, |
380 | { "Sync Prefs","Sync Einstellungen" }, | 380 | { "Sync Prefs","Sync Einstellungen" }, |
381 | { "Syncronize","Daten abgleich" }, | 381 | { "Syncronize","Daten abgleich" }, |
382 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, | 382 | { "Take local entry on conflict","Nimm lokalen Eintrag beim Konflikt" }, |
383 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, | 383 | { "Take newest entry on conflict","Nimm neuesten Eintrag beim Konflikt" }, |
384 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, | 384 | { "Take remote entry on conflict","Nimm fernen Eintrag beim Konflikt" }, |
385 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, | 385 | { "Template '%1' does not contain a valid Todo.","Template '%1' enthält kein gültiges To-Do" }, |
386 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, | 386 | { "Template does not contain a valid Event.","Template '%1' enthält keinen gültigen Termin" }, |
387 | { "Template...","Vorlage..." }, | 387 | { "Template...","Vorlage..." }, |
388 | { "This day","Dieser Tag" }, | 388 | { "This day","Dieser Tag" }, |
389 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, | 389 | { "This is an experimental feature. ","Dieses Feature ist experimentel" }, |
390 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, | 390 | { "This item will be\npermanently deleted.","Dieser Eintrag wird\nkomplett gelöscht." }, |
391 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, | 391 | { "This item will be permanently deleted.", "Dieser Eintrag wird komplett gelöscht." }, |
392 | { "Thu","Do" }, | 392 | { "Thu","Do" }, |
393 | { "Thursday","Donnerstag" }, | 393 | { "Thursday","Donnerstag" }, |
394 | { "Time associated","Mit Zeit" }, | 394 | { "Time associated","Mit Zeit" }, |
395 | { "Time bar:","Uhrzeit Zeile:" }, | 395 | { "Time bar:","Uhrzeit Zeile:" }, |
396 | { "Time && Date","Zeit und Datum" }, | 396 | { "Time && Date","Zeit und Datum" }, |
397 | { "Time Format","Zeit Format" }, | 397 | { "Time Format","Zeit Format" }, |
398 | { "Time Format(nr):","Zeit Format(Neustart!)" }, | 398 | { "Time Format(nr):","Zeit Format(Neustart!)" }, |
399 | { "Date Labels:","Datumsleiste:" }, | 399 | { "Date Labels:","Datumsleiste:" }, |
400 | { "Time: ","Zeit: " }, | 400 | { "Time: ","Zeit: " }, |
401 | { "Timezone:","Zeitzone:" }, | 401 | { "Timezone:","Zeitzone:" }, |
402 | { "To: ","Bis: " }, | 402 | { "To: ","Bis: " }, |
403 | { "To:","Bis:" }, | 403 | { "To:","Bis:" }, |
404 | { "Today: ","Heute: " }, | 404 | { "Today: ","Heute: " }, |
405 | { "Todo due today color:","Heute fällige To-Do's" }, | 405 | { "Todo due today color:","Heute fällige To-Do's" }, |
406 | { "To-do items:","To-Do items:" }, | 406 | { "To-do items:","To-Do items:" }, |
407 | { "Todo overdue color:","Überfällige To-Do's" }, | 407 | { "Todo overdue color:","Überfällige To-Do's" }, |
408 | { "Todo","Todo" }, | 408 | { "Todo","Todo" }, |
409 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, | 409 | { "To-do view shows completed Todos","To-do Ansicht zeigt erledigte To-dos" }, |
410 | { "ToDoView:","Todo Ansicht:" }, | 410 | { "ToDoView:","Todo Ansicht:" }, |
411 | { "Toggle Alarm","Wechsle Alarm" }, | 411 | { "Toggle Alarm","Wechsle Alarm" }, |
412 | { "Toggle Allday","Umschalten Ganztag" }, | 412 | { "Toggle Allday","Umschalten Ganztag" }, |
413 | { "Tomorrow: ","Morgen: " }, | 413 | { "Tomorrow: ","Morgen: " }, |
414 | { "Tue","Di" }, | 414 | { "Tue","Di" }, |
415 | { "Tuesday","Dienstag" }, | 415 | { "Tuesday","Dienstag" }, |
416 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, | 416 | { "Two entries are in conflict, if: ","Zwei Einträge haben einen Konflikt, wenn:" }, |
417 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, | 417 | { "Unable to find template '%1'.","Kann Vorlage '%1' nicht finden." }, |
418 | { "Unknown","Unbekannt" }, | 418 | { "Unknown","Unbekannt" }, |
419 | { "Up","Hinauf" }, | 419 | { "Up","Hinauf" }, |
420 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, | 420 | { "Use password (if not, ask when syncing)","Passwort: (sonst jedesmal anfragen)" }, |
421 | { "User defined","Benutzerdefiniert" }, | 421 | { "User defined","Benutzerdefiniert" }, |
422 | { "User long date:","Format langes Datum:" }, | 422 | { "User long date:","Format langes Datum:" }, |
423 | { "User short date:","Forma kurzes Datum:" }, | 423 | { "User short date:","Forma kurzes Datum:" }, |
424 | { "View","Ansicht" }, | 424 | { "View","Ansicht" }, |
425 | { "View Fonts","Schriftarten Ansichten" }, | 425 | { "View Fonts","Schriftarten Ansichten" }, |
426 | { "Views","Ansichten" }, | 426 | { "Views","Ansichten" }, |
427 | { "Wed","Mi" }, | 427 | { "Wed","Mi" }, |
428 | { "Wednesday","Mittwoch" }, | 428 | { "Wednesday","Mittwoch" }, |
429 | { "Week %1","Woche %1" }, | 429 | { "Week %1","Woche %1" }, |
430 | { "Weekly","Wöchentlich" }, | 430 | { "Weekly","Wöchentlich" }, |
431 | { "Week starts on Sunday","Woche beginnt Sonntags" }, | 431 | { "Week starts on Sunday","Woche beginnt Sonntags" }, |
432 | { "What's Next View:","What's Next Anz." }, | 432 | { "What's Next View:","What's Next Anz." }, |
433 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, | 433 | { "What's next ?","Was kommt als nächstes?(What's Next)" }, |
434 | { "Working Hours","Tägliche Arbeitszeit" }, | 434 | { "Working Hours","Tägliche Arbeitszeit" }, |
435 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, | 435 | { "Working hours color:","Arbeitszeit in der Agenda Ansicht:" }, |
436 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, | 436 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, |
437 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, | 437 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, |
438 | { "Yearly","Jährlich" }, | 438 | { "Yearly","Jährlich" }, |
439 | { "year(s)","Jahr(e)" }, | 439 | { "year(s)","Jahr(e)" }, |
440 | { "Yes","Ja" }, | 440 | { "Yes","Ja" }, |
441 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, | 441 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, |
442 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, | 442 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, |
443 | { "week(s) on:","Woche(n) am: " }, | 443 | { "week(s) on:","Woche(n) am: " }, |
444 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 444 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
445 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 445 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
446 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 446 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
447 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 447 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
448 | { "Daylight start:","Sommerzeit Start:" }, | 448 | { "Daylight start:","Sommerzeit Start:" }, |
449 | { "Daylight end:","Sommerzeit Ende:" }, | 449 | { "Daylight end:","Sommerzeit Ende:" }, |
450 | { "Time Zone","Zeitzone" }, | 450 | { "Time Zone","Zeitzone" }, |
451 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 451 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
452 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, | 452 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, |
453 | { "minutely","minütlich" }, | 453 | { "minutely","minütlich" }, |
454 | { "hourly","stündlich" }, | 454 | { "hourly","stündlich" }, |
455 | { "daily","täglich" }, | 455 | { "daily","täglich" }, |
456 | { "weekly","wöchentlich" }, | 456 | { "weekly","wöchentlich" }, |
457 | { "monthly","monatlich" }, | 457 | { "monthly","monatlich" }, |
458 | { "day-monthly","tag-monatlich" }, | 458 | { "day-monthly","tag-monatlich" }, |
459 | { "month-yearly","monat-jährlich" }, | 459 | { "month-yearly","monat-jährlich" }, |
460 | { "day-yearly","tag-jährlich" }, | 460 | { "day-yearly","tag-jährlich" }, |
461 | { "position-yearly","pos-jährlich" }, | 461 | { "position-yearly","pos-jährlich" }, |
462 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, | 462 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, |
463 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, | 463 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, |
464 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, | 464 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, |
465 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, | 465 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, |
466 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, | 466 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, |
467 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, | 467 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, |
468 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, | 468 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, |
469 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, | 469 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, |
470 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, | 470 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, |
471 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, | 471 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, |
472 | { "ViewChange","Ansichtswechsel" }, | 472 | { "ViewChange","Ansichtswechsel" }, |
473 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, | 473 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, |
474 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, | 474 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, |
475 | { "File","Datei" }, | 475 | { "File","Datei" }, |
476 | { "Clone...","Dupliziere.." }, | 476 | { "Clone...","Dupliziere..." }, |
477 | { "Move...","Bewege..." }, | 477 | { "Move...","Bewege..." }, |
478 | { "Beam...","Sende via IR..." }, | 478 | { "Beam...","Sende via IR..." }, |
479 | { "&Clone...","Dupliziere.." }, | 479 | { "&Clone...","Dupliziere.." }, |
480 | { "&Move...","Bewege..." }, | 480 | { "&Move...","Bewege..." }, |
481 | { "&Beam...","Sende via IR..." }, | 481 | { "&Beam...","Sende via IR..." }, |
482 | { "Show Completed","Zeige erledigte Todos" }, | 482 | { "Show Completed","Zeige erledigte Todos" }, |
483 | { "Show Quick Todo","Zeige Quick Todo" }, | 483 | { "Show Quick Todo","Zeige Quick Todo" }, |
484 | { "Unparent Todo","Un-sub Todo" }, | 484 | { "Unparent Todo","Un-sub Todo" }, |
485 | { "Save selected to file...","Speichere Selektierte..." }, | 485 | { "Save selected to file...","Speichere Selektierte..." }, |
486 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, | 486 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, |
487 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, | 487 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, |
488 | { "Beam selected via IR","Sende Selekt. via IR..." }, | 488 | { "Beam selected via IR","Sende Selekt. via IR..." }, |
489 | { "Search","Suchen" }, | 489 | { "Search","Suchen" }, |
490 | { "Date Picker","Datum auswählen" }, | 490 | { "Date Picker","Datum auswählen" }, |
491 | { "Day View","Tagesansicht" }, | 491 | { "Day View","Tagesansicht" }, |
492 | { "Work Week","Arbeitswoche" }, | 492 | { "Work Week","Arbeitswoche" }, |
493 | { "Week","Wochenansicht" }, | 493 | { "Week","Wochenansicht" }, |
494 | { "Month","Monatsansicht" }, | 494 | { "Month","Monatsansicht" }, |
495 | { "Todo View","Todo Liste" }, | 495 | { "Todo View","Todo Liste" }, |
496 | { "Journal","Journal" }, | 496 | { "Journal","Journal" }, |
497 | { "Next days","Nächste Tage" }, | 497 | { "Next days","Nächste Tage" }, |
498 | { "Print agenda selection...","Drucke Agendaselektion..." }, | 498 | { "Print agenda selection...","Drucke Agendaselektion..." }, |
499 | { "Toggle DateNavigator","Navigator umschalten" }, | 499 | { "Toggle DateNavigator","Navigator umschalten" }, |
500 | { "Toggle FilterView","Filteransicht umschalten" }, | 500 | { "Toggle FilterView","Filteransicht umschalten" }, |
501 | { "Prev. month","Vorheriger Monat" }, | 501 | { "Prev. month","Vorheriger Monat" }, |
502 | { "Go backward","Gehe zurück" }, | 502 | { "Go backward","Gehe zurück" }, |
503 | { "Go forward","Gehe weiter" }, | 503 | { "Go forward","Gehe weiter" }, |
504 | { "Synchronize","Synchronisieren" }, | 504 | { "Synchronize","Synchronisieren" }, |
505 | { "AgendaSize","Agendagröße" }, | 505 | { "AgendaSize","Agendagröße" }, |
506 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, | 506 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, |
507 | { "Import last file","Importiere letzte Datei" }, | 507 | { "Import last file","Importiere letzte Datei" }, |
508 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, | 508 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, |
509 | { "Load Calendar Backup","Lade Kalender Backup" }, | 509 | { "Load Calendar Backup","Lade Kalender Backup" }, |
510 | { "Save Calendar Backup","Speichere Kalender Backup" }, | 510 | { "Save Calendar Backup","Speichere Kalender Backup" }, |
511 | { "Export VCalendar","Exportiere VCalendar" }, | 511 | { "Export VCalendar","Exportiere VCalendar" }, |
512 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 512 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
513 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, | 513 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, |
514 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, | 514 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, |
515 | { "Remote via ssh","Über Netzwerk via ssh" }, | 515 | { "Remote via ssh","Über Netzwerk via ssh" }, |
516 | { "With local file","Mit lokaler Datei" }, | 516 | { "With local file","Mit lokaler Datei" }, |
517 | { "With last file","Mit letzter Datei" }, | 517 | { "With last file","Mit letzter Datei" }, |
518 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, | 518 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, |
519 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, | 519 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, |
520 | { "Save filename","Speichern: Dateinamen wählen" }, | 520 | { "Save filename","Speichern: Dateinamen wählen" }, |
521 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, | 521 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, |
522 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, | 522 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, |
523 | { "Overwrite!","Überschreibe!" }, | 523 | { "Overwrite!","Überschreibe!" }, |
524 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 524 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
525 | { "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" }, | 525 | { "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, |
526 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, | 526 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, |
527 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, | 527 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, |
528 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, | 528 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, |
529 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, | 529 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, |
530 | { "Size","Größe" }, | 530 | { "Size","Größe" }, |
531 | { "Date","Datum" }, | 531 | { "Date","Datum" }, |
532 | { "Mime Type","Datei Typ" }, | 532 | { "Mime Type","Datei Typ" }, |
533 | { "All Files","Alle Dateien" }, | 533 | { "All Files","Alle Dateien" }, |
534 | { "Files","Dateien" }, | 534 | { "Files","Dateien" }, |
535 | { "Documents","DoKumente" }, | 535 | { "Documents","DoKumente" }, |
536 | { "Select Categories","Selektiere Kategorien" }, | 536 | { "Select Categories","Selektiere Kategorien" }, |
537 | { " &Deselect All "," Auswahl aufheben " }, | 537 | { " &Deselect All "," Auswahl aufheben " }, |
538 | { "A&dd","Hinzu" }, | 538 | { "A&dd","Hinzu" }, |
539 | { "&Modify","Ändern" }, | 539 | { "&Modify","Ändern" }, |
540 | { "Edit Categories","Editiere Kategorien" }, | 540 | { "Edit Categories","Editiere Kategorien" }, |
541 | { " &Edit Categories "," &Editiere Kategorien " }, | 541 | { " &Edit Categories "," &Editiere Kategorien " }, |
542 | { "Beam Options","Beam Einstellungen" }, | 542 | { "Beam Options","Beam Einstellungen" }, |
543 | { " With timezone "," Mit Zeitzone " }, | 543 | { " With timezone "," Mit Zeitzone " }, |
544 | { " Local time ", " Lokale Zeit " }, | 544 | { " Local time ", " Lokale Zeit " }, |
545 | { "Manage new Categories","Verwalte neue Kategorien" }, | 545 | { "Manage new Categories","Verwalte neue Kategorien" }, |
546 | { "Add to category list","Füge zur Kategorieliste hinzu" }, | 546 | { "Add to category list","Füge zur Kategorieliste hinzu" }, |
547 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, | 547 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, |
548 | { "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, | ||
549 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, | 548 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, |
550 | { "File format","Datei Format" }, | 549 | { "File format","Datei Format" }, |
551 | { "Time format","Zeit Format" }, | 550 | { "Time format","Zeit Format" }, |
552 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, | 551 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, |
553 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, | 552 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, |
554 | { "h","Std" }, | 553 | { "h","Std" }, |
555 | { "min","Min" }, | 554 | { "min","Min" }, |
556 | { "hou","Std" }, | 555 | { "hou","Std" }, |
557 | { "day","Tag" }, | 556 | { "day","Tag" }, |
558 | { "French","Französich" }, | 557 | { "French","Französich" }, |
559 | { "Time","Zeit" }, | 558 | { "Time","Zeit" }, |
560 | { "Event Viewer","Termin Ansicht" }, | 559 | { "Event Viewer","Termin Ansicht" }, |
561 | { "Cancel Sync","Sync Abbrechen" }, | 560 | { "Cancel Sync","Sync Abbrechen" }, |
562 | { "Remote","Fern" }, | 561 | { "Remote","Fern" }, |
563 | { "Local","Lokal" }, | 562 | { "Local","Lokal" }, |
564 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, | 563 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, |
565 | { "Local: ","Lokal: " }, | 564 | { "Local: ","Lokal: " }, |
566 | { "Remote: ","Fern: " }, | 565 | { "Remote: ","Fern: " }, |
567 | { "Last modified: ","Zuletzt geändert: " }, | 566 | { "Last modified: ","Zuletzt geändert: " }, |
568 | { "Location: ","Ort: " }, | 567 | { "Location: ","Ort: " }, |
569 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, | 568 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, |
570 | { "<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>" }, |
571 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, | 570 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, |
572 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, | 571 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, |
573 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, | 572 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, |
574 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, | 573 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, |
575 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, | 574 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, |
576 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, | 575 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, |
577 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, | 576 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, |
578 | { "( %1 min before )","( %1 min vorher )" }, | 577 | { "( %1 min before )","( %1 min vorher )" }, |
579 | { "<b>Alarm on: ","<b>Alarm am: " }, | 578 | { "<b>Alarm on: ","<b>Alarm am: " }, |
580 | { "<b>Details: </b>","<b>Details: </b>" }, | 579 | { "<b>Details: </b>","<b>Details: </b>" }, |
581 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 580 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
582 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, | 581 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, |
583 | { "Organizer","Organisator" }, | 582 | { "Organizer","Organisator" }, |
584 | { "Save","Speichern" }, | 583 | { "Save","Speichern" }, |
585 | { "Exit (+save)","Beenden (+ speichern)" }, | 584 | { "Exit (+save)","Beenden (+ speichern)" }, |
586 | { "Home","Zuhause" }, | 585 | { "Home","Zuhause" }, |
587 | { "Office","Büro" }, | 586 | { "Office","Büro" }, |
588 | { "Library","Bibliothek" }, | 587 | { "Library","Bibliothek" }, |
589 | { "Doctor","Arzt" }, | 588 | { "Doctor","Arzt" }, |
590 | { "Beach","Strand" }, | 589 | { "Beach","Strand" }, |
591 | { "Conference room","Konferenzraum" }, | 590 | { "Conference room","Konferenzraum" }, |
592 | { "Drive Home","Heimfahrt" }, | 591 | { "Drive Home","Heimfahrt" }, |
593 | { "Watch TV","Tv gucken" }, | 592 | { "Watch TV","Tv gucken" }, |
594 | { "Phone call","Telefonanruf" }, | 593 | { "Phone call","Telefonanruf" }, |
595 | { "Pay bill","Rechnung bezahlen" }, | 594 | { "Pay bill","Rechnung bezahlen" }, |
596 | { "Read book","Buch lesen" }, | 595 | { "Read book","Buch lesen" }, |
597 | { "Watering plants","Pflanzen giessen" }, | 596 | { "Watering plants","Pflanzen giessen" }, |
598 | {"Appointment","Verabredung" }, | 597 | {"Appointment","Verabredung" }, |
599 | {"Birthday","Geburtstag" }, | 598 | {"Birthday","Geburtstag" }, |
600 | {"Business","Geschäft" }, | 599 | {"Business","Geschäft" }, |
601 | {"Business Travel","Geschäftsreise" }, | 600 | {"Business Travel","Geschäftsreise" }, |
602 | {"Cinema","Kino" }, | 601 | {"Cinema","Kino" }, |
603 | {"Customer","Kunde" }, | 602 | {"Customer","Kunde" }, |
604 | {"Break","Pause" }, | 603 | {"Break","Pause" }, |
605 | {"Breakfast","Frühstück" }, | 604 | {"Breakfast","Frühstück" }, |
606 | {"Competition","Wettkampf" }, | 605 | {"Competition","Wettkampf" }, |
607 | {"Dinner","Abendessen" }, | 606 | {"Dinner","Abendessen" }, |
608 | {"Education","Erziehung" }, | 607 | {"Education","Erziehung" }, |
609 | {"Family","Familie" }, | 608 | {"Family","Familie" }, |
610 | {"Favorites","Favoriten" }, | 609 | {"Favorites","Favoriten" }, |
611 | {"Festival","Festival" }, | 610 | {"Festival","Festival" }, |
612 | {"Fishing","Angeln" }, | 611 | {"Fishing","Angeln" }, |
613 | {"Flight","Flug" }, | 612 | {"Flight","Flug" }, |
614 | {"Gifts","Geschenk" }, | 613 | {"Gifts","Geschenk" }, |
615 | {"Holiday","Feiertag" }, | 614 | {"Holiday","Feiertag" }, |
616 | {"Holiday Cards","Ansichtskarten" }, | 615 | {"Holiday Cards","Ansichtskarten" }, |
617 | {"Hot Contacts","Heisse Kontakte" }, | 616 | {"Hot Contacts","Heisse Kontakte" }, |
618 | {"Hiking","Wandern" }, | 617 | {"Hiking","Wandern" }, |
619 | {"Hunting","Jagen" }, | 618 | {"Hunting","Jagen" }, |
620 | {"Key Customer","Wichtiger Kunde" }, | 619 | {"Key Customer","Wichtiger Kunde" }, |
621 | {"Kids","Kinder" }, | 620 | {"Kids","Kinder" }, |
622 | {"Lunch","Mittagessen" }, | 621 | {"Lunch","Mittagessen" }, |
623 | {"Meeting","Treffen" }, | 622 | {"Meeting","Treffen" }, |
624 | {"Miscellaneous","Verschiedenes" }, | 623 | {"Miscellaneous","Verschiedenes" }, |
625 | {"Partner","Partner" }, | 624 | {"Partner","Partner" }, |
626 | {"Party","Partie" }, | 625 | {"Party","Partie" }, |
627 | {"Personal","Privat" }, | 626 | {"Personal","Privat" }, |
628 | {"Personal Travel","Privatreise"}, | 627 | {"Personal Travel","Privatreise"}, |
629 | {"PHB","PHB" }, | 628 | {"PHB","PHB" }, |
630 | {"Phone Calls","Telefonanruf" }, | 629 | {"Phone Calls","Telefonanruf" }, |
631 | {"Projects","Projekt" }, | 630 | {"Projects","Projekt" }, |
632 | {"Recurring","Wiederholend" }, | 631 | {"Recurring","Wiederholend" }, |
633 | {"School","Schule" }, | 632 | {"School","Schule" }, |
634 | {"Shopping","Einkaufen" }, | 633 | {"Shopping","Einkaufen" }, |
635 | {"Speach","Rede" }, | 634 | {"Speach","Rede" }, |
636 | {"Special Occasion","Spez.Gelegenheit" }, | 635 | {"Special Occasion","Spez.Gelegenheit" }, |
637 | {"Sports","Sport" }, | 636 | {"Sports","Sport" }, |
638 | {"Talk","Vortrag" }, | 637 | {"Talk","Vortrag" }, |
639 | {"Travel","Reise" }, | 638 | {"Travel","Reise" }, |
640 | {"TV","TV" }, | 639 | {"TV","TV" }, |
641 | {"Germany","Deutschland" }, | 640 | {"Germany","Deutschland" }, |
642 | {"Sweden","Schweden" }, | 641 | {"Sweden","Schweden" }, |
643 | {"Forest","Wald" }, | 642 | {"Forest","Wald" }, |
644 | { "Desert","Wüste" }, | 643 | { "Desert","Wüste" }, |
645 | { "Kitchen","Küche" }, | 644 | { "Kitchen","Küche" }, |
646 | { "Lake","See" }, | 645 | { "Lake","See" }, |
647 | {"University","Universität"}, | 646 | {"University","Universität"}, |
648 | {"Vacation","Urlaub" }, | 647 | {"Vacation","Urlaub" }, |
649 | {"VIP","VIP" }, | 648 | {"VIP","VIP" }, |
650 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, | 649 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, |
651 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, | 650 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, |
652 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, | 651 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, |
653 | { "Cancelled","Gecancelt" }, | 652 | { "Cancelled","Gecancelt" }, |
654 | { "Multiple sync","Mehrfach Sync" }, | 653 | { "Multiple sync","Mehrfach Sync" }, |
655 | { "Local file","Lokale Datei" }, | 654 | { "Local file","Lokale Datei" }, |
656 | { "Last file","Letzte Datei" }, | 655 | { "Last file","Letzte Datei" }, |
657 | { "Keys + Colors...","Tasten + Farben..." }, | 656 | { "Keys + Colors...","Tasten + Farben..." }, |
658 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, | 657 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, |
659 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 658 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
660 | { "Choose...","Wähle..." }, | 659 | { "Choose...","Wähle..." }, |
661 | { "Use colors for application:","Setze Farben für Programm:" }, | 660 | { "Use colors for application:","Setze Farben für Programm:" }, |
662 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 661 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
663 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 662 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
664 | { "Show parent To-Do's","Zeige Ober-Todos" }, | 663 | { "Show parent To-Do's","Zeige Ober-Todos" }, |
665 | { "Show location","Zeige Orte" }, | 664 | { "Show location","Zeige Orte" }, |
666 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 665 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
667 | { "Show in every cell ","Zeige in jeder Zelle " }, | 666 | { "Show in every cell ","Zeige in jeder Zelle " }, |
668 | { "short month","kurzen Monat" }, | 667 | { "short month","kurzen Monat" }, |
669 | { "icons","Icons" }, | 668 | { "icons","Icons" }, |
670 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 669 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
671 | { "Category colors are applied to text","Kategorie Farben färben Text" }, | 670 | { "Category colors are applied to text","Kategorie Farben färben Text" }, |
672 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 671 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
673 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 672 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
674 | { "Day color even months","Tagesfarbe gerade Monate" }, | 673 | { "Day color even months","Tagesfarbe gerade Monate" }, |
675 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 674 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
676 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 675 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
677 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, | 676 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, |
678 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 677 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
679 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, | 678 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, |
680 | { "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" }, | 679 | { "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" }, |
681 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, | 680 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, |
682 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, | 681 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, |
683 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, | 682 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, |
684 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, | 683 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, |
685 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, | 684 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, |
686 | { "New profile","Neues Profil" }, | 685 | { "New profile","Neues Profil" }, |
687 | { "Clone profile","Klone Profil" }, | 686 | { "Clone profile","Klone Profil" }, |
688 | { "Delete profile","Lösche Profil" }, | 687 | { "Delete profile","Lösche Profil" }, |
689 | { "Profile:","Profil:" }, | 688 | { "Profile:","Profil:" }, |
690 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, | 689 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, |
691 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 690 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
692 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 691 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
693 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 692 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
694 | { "Write back file","Schreibe Datei zurück" }, | 693 | { "Write back file","Schreibe Datei zurück" }, |
695 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 694 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
696 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 695 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
697 | { "Local device name:","Name dieses Gerätes:" }, | 696 | { "Local device name:","Name dieses Gerätes:" }, |
698 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 697 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
699 | { "Sync preferences","Synchronisations Einstellungen" }, | 698 | { "Sync preferences","Synchronisations Einstellungen" }, |
700 | { "Profile kind","Profil Art" }, | 699 | { "Profile kind","Profil Art" }, |
701 | { "Local file","Lokale Datei" }, | 700 | { "Local file","Lokale Datei" }, |
702 | { "Local file:","Lokale Datei:" }, | 701 | { "Local file:","Lokale Datei:" }, |
703 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 702 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
704 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 703 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
705 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 704 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
706 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 705 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
707 | { "Device","Gerät:" }, | 706 | { "Device","Gerät:" }, |
708 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 707 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
709 | { "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" }, | 708 | { "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" }, |
710 | { "Synchronization successful","Synchronisation erfolgreich" }, | 709 | { "Synchronization successful","Synchronisation erfolgreich" }, |
711 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 710 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
712 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 711 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
713 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 712 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
714 | { "Enter password","Passwort eingeben" }, | 713 | { "Enter password","Passwort eingeben" }, |
715 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 714 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
716 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 715 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
717 | { "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" }, | 716 | { "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" }, |
718 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 717 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
719 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 718 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
720 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, | 719 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, |
721 | { "Enter filter name:","Neuer Filter Name:" }, | 720 | { "Enter filter name:","Neuer Filter Name:" }, |
722 | { "Add Filter","Filter hinzufügen" }, | 721 | { "Add Filter","Filter hinzufügen" }, |
723 | { "Question","Frage" }, | 722 | { "Question","Frage" }, |
724 | { "Filter position: ","Filter Position: " }, | 723 | { "Filter position: ","Filter Position: " }, |
725 | { "Month View","Monatsansicht" }, | 724 | { "Month View","Monatsansicht" }, |
726 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, | 725 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, |
727 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 726 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
728 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 727 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
729 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, | 728 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, |
730 | { "Access: ","Zugriff: " }, | 729 | { "Access: ","Zugriff: " }, |
731 | { "Needs Action","Aktion notwendig" }, | 730 | { "Needs Action","Aktion notwendig" }, |
732 | { "Accepted","Akzeptiert" }, | 731 | { "Accepted","Akzeptiert" }, |
733 | { "Declined","Abgelehnt" }, | 732 | { "Declined","Abgelehnt" }, |
734 | { "Tentative","Vorläufig" }, | 733 | { "Tentative","Vorläufig" }, |
735 | { "Delegated","Beauftragt" }, | 734 | { "Delegated","Beauftragt" }, |
736 | { "Completed","Vollständig" }, | 735 | { "Completed","Vollständig" }, |
737 | { "In Process","In Bearbeitung" }, | 736 | { "In Process","In Bearbeitung" }, |
738 | { "Participant","Teilnehmer" }, | 737 | { "Participant","Teilnehmer" }, |
739 | { "Optional Participant","Möglicher Teilnehmer" }, | 738 | { "Optional Participant","Möglicher Teilnehmer" }, |
740 | { "Observer","Beobachter" }, | 739 | { "Observer","Beobachter" }, |
741 | { "Chair","Vorsitzender" }, | 740 | { "Chair","Vorsitzender" }, |
742 | { "Not supported \non desktop!\n","" }, | 741 | { "Not supported \non desktop!\n","" }, |
743 | { "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) " }, | 742 | { "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) " }, |
744 | { "Date range: ","Datums Zeitspanne: " }, | 743 | { "Date range: ","Datums Zeitspanne: " }, |
745 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, | 744 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, |
746 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, | 745 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, |
747 | { "Add / remove events","Add./entferne Termine" }, | 746 | { "Add / remove events","Add./entferne Termine" }, |
748 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, | 747 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, |
749 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, | 748 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, |
750 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, | 749 | { "\nThe file on disk has changed!\nFile size: %1 bytes.\nLast modified: %2\nDo you want to:\n\n - Save and overwrite file?\n - Sync with file, then save?\n - Cancel without saving? \n","\nDie gepeicherte Datei wurde verändert!\nDatei Grösse: %1 Bytes.\nZuletzt geändert: %2\nMöchten Sie:\n\n - Speichern und die Datei überschreiben?\n - Mit Datei Synchronisieren, dann speichern?\n - Abbrechen ohne zu speichern? \n" }, |
751 | { "Overwrite","Überschreiben" }, | 750 | { "Overwrite","Überschreiben" }, |
752 | { "Sync+save","Syncen+speichern" }, | 751 | { "Sync+save","Syncen+speichern" }, |
753 | { "Default","Standard" }, | 752 | { "Default","Standard" }, |
754 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 753 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
755 | { " %d items?"," %d Einträge?" }, | 754 | { " %d items?"," %d Einträge?" }, |
756 | { "\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?" }, | 755 | { "\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?" }, |
757 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 756 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
758 | { "Current","Aktuelle" }, | 757 | { "Current","Aktuelle" }, |
759 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, | 758 | { "\nThis event recurs\nover multiple dates.\nDo you want to delete\nall it's recurrences,\nor only the current one on:\n","\nDieses ist ein\nwiederholender Termin!\nMöchten sie alle Wiederholungen\nlöschen, oder nur die aktuelle am:\n" }, |
760 | { "All","Alle" }, | 759 | { "All","Alle" }, |
761 | { "Data Loss Warning","Datenverlust Warnung" }, | 760 | { "Data Loss Warning","Datenverlust Warnung" }, |
762 | { "Proceed","Weitermachen" }, | 761 | { "Proceed","Weitermachen" }, |
763 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 762 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
764 | { "Filter disabled ","Filter abgeschaltet" }, | 763 | { "Filter disabled ","Filter abgeschaltet" }, |
765 | { "Filter selected: ","Gewählter Filter: " }, | 764 | { "Filter selected: ","Gewählter Filter: " }, |
766 | { "Toggle Cancel","Gecancelt ändern" }, | 765 | { "Toggle Cancel","Gecancelt ändern" }, |
767 | { "&Toggle Cancel","Gecancel&t ändern" }, | 766 | { "&Toggle Cancel","Gecancel&t ändern" }, |
768 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 767 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
769 | { "Stretched TB","Gedehnte TB" }, | 768 | { "Stretched TB","Gedehnte TB" }, |
770 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 769 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
771 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 770 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
772 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, | 771 | { "When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing","Wenn ein Kalender doppelt importiert\nwird, werden doppelte Einträge ignoriert!\nSie können eine Backup Datei anlegen unter\nDatei - Speichere Kalender Backup\num den Import rückgängig machen zu können.\n" }, |
773 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 772 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
774 | { "Imported file successfully","Datei erfolgreich importiert" }, | 773 | { "Imported file successfully","Datei erfolgreich importiert" }, |
775 | { "Error importing file","Fehler beim Importieren der Datei" }, | 774 | { "Error importing file","Fehler beim Importieren der Datei" }, |
776 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 775 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
777 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, | 776 | { "Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n","Zu speichernde Datei\existiert bereits!\nExist. Datei vom:\n%1\nÜberschreiben?\n" }, |
778 | { "Overwrite!","Überschreiben!" }, | 777 | { "Overwrite!","Überschreiben!" }, |
779 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, | 778 | { "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n","Import Datei \n...%1\nvom:\n%2\nDuplizierte Einträge\nwerden nicht importiert!\n" }, |
780 | { "Load backup filename","Lade Backup Dateiname" }, | 779 | { "Load backup filename","Lade Backup Dateiname" }, |
781 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 780 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
782 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 781 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
783 | { "Save backup filename","Speichere Backup Dateiname" }, | 782 | { "Save backup filename","Speichere Backup Dateiname" }, |
784 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, | 783 | { "Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n","Backup Datei\nexistiert bereits!\nAlte Backup Datei vom:\n%1\nÜberschreiben?\n" }, |
785 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 784 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
786 | { "Details of attendee","Teilnehmerdetails" }, | 785 | { "Details of attendee","Teilnehmerdetails" }, |
787 | { "Work phone:\n","Telefon Arbeit:\n" }, | 786 | { "Work phone:\n","Telefon Arbeit:\n" }, |
788 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 787 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
789 | { "Home phone:\n","Telefon privat:\n" }, | 788 | { "Home phone:\n","Telefon privat:\n" }, |
790 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 789 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
791 | { "Email:\n","Email:\n" }, | 790 | { "Email:\n","Email:\n" }, |
792 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, | 791 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, |
793 | { "Audio Al.: ","Audio Al.: " }, | 792 | { "Audio Al.: ","Audio Al.: " }, |
794 | { "Proc.Al.: ","Proz.Al.: " }, | 793 | { "Proc.Al.: ","Proz.Al.: " }, |
795 | { "No sound set","Kein Sound definiert" }, | 794 | { "No sound set","Kein Sound definiert" }, |
796 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 795 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
797 | { "No program set","Kein Programm definiert" }, | 796 | { "No program set","Kein Programm definiert" }, |
798 | { "Running '%1'","Ausführen '%1'" }, | 797 | { "Running '%1'","Ausführen '%1'" }, |
799 | { "Playing '%1'","Abspielen '%1'" }, | 798 | { "Playing '%1'","Abspielen '%1'" }, |
800 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 799 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, |
801 | { "Load!","Laden!" }, | 800 | { "Load!","Laden!" }, |
802 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, | 801 | { "Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n","Backup Datei vom:\n%1\nDas Laden der Backup Datei\nlöscht die aktuellen Daten!\n" }, |
803 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 802 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
804 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 803 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
805 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 804 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
806 | { "Features + hints...","Eigenschaften + Tipps..." }, | 805 | { "Features + hints...","Eigenschaften + Tipps..." }, |
807 | { "User translation...","Benutzer Übersetzung..." }, | 806 | { "User translation...","Benutzer Übersetzung..." }, |
808 | { "Sync HowTo...","Synchronisation HowTo..." }, | 807 | { "Sync HowTo...","Synchronisation HowTo..." }, |
809 | { "Print calendar...","Drucke Kalender..." }, | 808 | { "Print calendar...","Drucke Kalender..." }, |
810 | { "Anniversary","Jahrestag" }, | 809 | { "Anniversary","Jahrestag" }, |
811 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, | 810 | { "When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n","Wenn Geburtstage mehrfach importiert\nwerden, werden doppelte Einträge ignoriert\nwenn sie nicht verändert wurden.\n" }, |
812 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 811 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
813 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 812 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
814 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 813 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
815 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 814 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
816 | { "(%1 min before)","(%1 min vorher)" }, | 815 | { "(%1 min before)","(%1 min vorher)" }, |
817 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 816 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
818 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 817 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
819 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, | 818 | { "This saves the text/details of selected\nJournals and Events/Todos\nto a text file.","Das speichert den Text bzw.\ndie Details von selektierten\nJournalen und Events/Todos\nin eine Textdatei." }, |
820 | { "Continue","Weitermachen" }, | 819 | { "Continue","Weitermachen" }, |
821 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 820 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
822 | { "Attendee:","Teilnehmer:" }, | 821 | { "Attendee:","Teilnehmer:" }, |
823 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 822 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
824 | { "On day ","Am Tag " }, | 823 | { "On day ","Am Tag " }, |
825 | { "%1 of ","%1 des Monats" }, | 824 | { "%1 of ","%1 des Monats" }, |
826 | { "%1 of the year","%1 des Jahres" }, | 825 | { "%1 of the year","%1 des Jahres" }, |
827 | { "Anonymous","Anonymo" }, | 826 | { "Anonymous","Anonymo" }, |
828 | { "nobody@nowhere","niemand@nirgendwo" }, | 827 | { "nobody@nowhere","niemand@nirgendwo" }, |
829 | { "calendar.html","calendar.html" }, | 828 | { "calendar.html","calendar.html" }, |
830 | { " Local Time"," Lokale Zeit" }, | 829 | { " Local Time"," Lokale Zeit" }, |
831 | { "Unknown Name","Unbekannter Name" }, | 830 | { "Unknown Name","Unbekannter Name" }, |
832 | { "unknown@nowhere","unbekannt@nirgendwo" }, | 831 | { "unknown@nowhere","unbekannt@nirgendwo" }, |
833 | { "Beam via IR!","Beam via IR!" }, | 832 | { "Beam via IR!","Beam via IR!" }, |
834 | { "Next Month","Nächster Monat" }, | 833 | { "Next Month","Nächster Monat" }, |
835 | { "Prio","Prio" }, | 834 | { "Prio","Prio" }, |
836 | { "Reparent Todo","Mache Sub-Todo" }, | 835 | { "Reparent Todo","Mache Sub-Todo" }, |
837 | { "tomorrow","morgen" }, | 836 | { "tomorrow","morgen" }, |
838 | { "today","heute" }, | 837 | { "today","heute" }, |
839 | { "yesterday","gestern" }, | 838 | { "yesterday","gestern" }, |
840 | { "Ok","Ok" }, | 839 | { "Ok","Ok" }, |
841 | { "Ok+Agenda","Ok+Agenda" }, | 840 | { "Ok+Agenda","Ok+Agenda" }, |
842 | { "Email","Email" }, | 841 | { "Email","Email" }, |
843 | { "RSVP","RSVP" }, | 842 | { "RSVP","RSVP" }, |
844 | { "Email:","Email:" }, | 843 | { "Email:","Email:" }, |
845 | { "Appointment Time ","Termin Zeit " }, | 844 | { "Appointment Time ","Termin Zeit " }, |
846 | { "2","2" }, | 845 | { "2","2" }, |
847 | { "3","3" }, | 846 | { "3","3" }, |
848 | { "4","4" }, | 847 | { "4","4" }, |
849 | { " 0 %"," 0 %" }, | 848 | { " 0 %"," 0 %" }, |
850 | { " 20 %"," 20 %" }, | 849 | { " 20 %"," 20 %" }, |
851 | { " 40 %"," 40 %" }, | 850 | { " 40 %"," 40 %" }, |
852 | { " 60 %"," 60 %" }, | 851 | { " 60 %"," 60 %" }, |
853 | { " 80 %"," 80 %" }, | 852 | { " 80 %"," 80 %" }, |
854 | { "100 %","100 %" }, | 853 | { "100 %","100 %" }, |
855 | { "Filter","Filter" }, | 854 | { "Filter","Filter" }, |
856 | { "Configure","Konfiguriere" }, | 855 | { "Configure","Konfiguriere" }, |
857 | { "What's Next","What's Next" }, | 856 | { "What's Next","What's Next" }, |
858 | { "Complete calendar...","Kompletten Kalender..." }, | 857 | { "Complete calendar...","Kompletten Kalender..." }, |
859 | { "Filtered calendar...","Gefilterten Kalender..." }, | 858 | { "Filtered calendar...","Gefilterten Kalender..." }, |
860 | { "Export to phone","Exportiere zum Handy" }, | 859 | { "Export to phone","Exportiere zum Handy" }, |
861 | { "Beam receive enabled","Beam Empfang an" }, | 860 | { "Beam receive enabled","Beam Empfang an" }, |
862 | { "What's new?","Was ist neu?" }, | 861 | { "What's new?","Was ist neu?" }, |
863 | { "FAQ...","FAQ..." }, | 862 | { "FAQ...","FAQ..." }, |
864 | { "Licence...","Licence..." }, | 863 | { "Licence...","Licence..." }, |
865 | { "What's This?","What's This?" }, | 864 | { "What's This?","What's This?" }, |
866 | { "&Edit...","&Editiere..." }, | 865 | { "&Edit...","&Editiere..." }, |
867 | { "Oktober","Oktober" }, | 866 | { "Oktober","Oktober" }, |
868 | { "Title","Titel" }, | 867 | { "Title","Titel" }, |
869 | { "%1 %","%1 %" }, | 868 | { "%1 %","%1 %" }, |
870 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 869 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
871 | { "Import!","Importiere!" }, | 870 | { "Import!","Importiere!" }, |
872 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 871 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
873 | { "Export to phone options","Export ans Handy Optionen" }, | 872 | { "Export to phone options","Export ans Handy Optionen" }, |
874 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 873 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
875 | { "I/O device: ","I/O device: " }, | 874 | { "I/O device: ","I/O device: " }, |
876 | { "Connection: ","Connection: " }, | 875 | { "Connection: ","Connection: " }, |
877 | { "Model(opt.): ","Model(opt.): " }, | 876 | { "Model(opt.): ","Model(opt.): " }, |
878 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 877 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
879 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 878 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
880 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, | 879 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nTodo/Kalender Daten auf dem Handy!" }, |
881 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 880 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
882 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 881 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
883 | { "Writing to phone...","Sende Daten ans Handy..." }, | 882 | { "Writing to phone...","Sende Daten ans Handy..." }, |
884 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 883 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
885 | { "Retry","Nochmal versuchen" }, | 884 | { "Retry","Nochmal versuchen" }, |
886 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 885 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
887 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 886 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
888 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 887 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
889 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 888 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
890 | { "Preferences","Vorlieben" }, | 889 | { "Preferences","Vorlieben" }, |
891 | { "Global","Global" }, | 890 | { "Global","Global" }, |
892 | { "Phone","Phone" }, | 891 | { "Phone","Phone" }, |
893 | { "SMS","SMS" }, | 892 | { "SMS","SMS" }, |
894 | { "Fax","Fax" }, | 893 | { "Fax","Fax" }, |
895 | { "Pager","Pager" }, | 894 | { "Pager","Pager" }, |
896 | { "SIP","SIP" }, | 895 | { "SIP","SIP" }, |
897 | { "Italian","Italienisch" }, | 896 | { "Italian","Italienisch" }, |
898 | { "24:00","24:00" }, | 897 | { "24:00","24:00" }, |
899 | { "12:00am","12:00am" }, | 898 | { "12:00am","12:00am" }, |
900 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 899 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
901 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 900 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
902 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 901 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
903 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 902 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
904 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 903 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
905 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 904 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
906 | { "Used Mail Client","Benutzter Mail Client" }, | 905 | { "Used Mail Client","Benutzter Mail Client" }, |
907 | { "Channel:","Channel:" }, | 906 | { "Channel:","Channel:" }, |
908 | { "Message:","Message:" }, | 907 | { "Message:","Message:" }, |
909 | { "Parameters:","Parameter:" }, | 908 | { "Parameters:","Parameter:" }, |
910 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 909 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
911 | { "extra Message:","extra Message:" }, | 910 | { "extra Message:","extra Message:" }, |
912 | { "extra Parameters:","extra Parameter:" }, | 911 | { "extra Parameters:","extra Parameter:" }, |
913 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 912 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
914 | { "External Apps.","Externe Appl." }, | 913 | { "External Apps.","Externe Appl." }, |
915 | { "24 hours","24 Std." }, | 914 | { "24 hours","24 Std." }, |
916 | { "3 hours","3 Std." }, | 915 | { "3 hours","3 Std." }, |
917 | { "1 hour","1 Std." }, | 916 | { "1 hour","1 Std." }, |
918 | { "15 minutes","15 Min." }, | 917 | { "15 minutes","15 Min." }, |
919 | { "5 minutes","5 Min." }, | 918 | { "5 minutes","5 Min." }, |
920 | { "1 minute","1 Min." }, | 919 | { "1 minute","1 Min." }, |
921 | { "23","23" }, | 920 | { "23","23" }, |
922 | { "Mon 15","Mon 15" }, | 921 | { "Mon 15","Mon 15" }, |
923 | { "Configure KO","Konfiguriere KO" }, | 922 | { "Configure KO","Konfiguriere KO" }, |
924 | { "Event text","Termin Text" }, | 923 | { "Event text","Termin Text" }, |
925 | { "ToDo","Todo" }, | 924 | { "ToDo","Todo" }, |
926 | { "Today","Heute" }, | 925 | { "Today","Heute" }, |
927 | { "What's Next View","What's Next Ansicht" }, | 926 | { "What's Next View","What's Next Ansicht" }, |
928 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 927 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
929 | { "Alarm","Alarm" }, | 928 | { "Alarm","Alarm" }, |
930 | { "Used %1 Client","Benutzter %1 Client" }, | 929 | { "Used %1 Client","Benutzter %1 Client" }, |
931 | { "No email client installed","Kein Email Klient installiert" }, | 930 | { "No email client installed","Kein Email Klient installiert" }, |
932 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 931 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
@@ -1085,388 +1084,398 @@ | |||
1085 | { "Language","Sprache" }, | 1084 | { "Language","Sprache" }, |
1086 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1085 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1087 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1086 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1088 | { "Show events that are done","Zeige abgelaufene Termine" }, | 1087 | { "Show events that are done","Zeige abgelaufene Termine" }, |
1089 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1088 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1090 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1089 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1091 | { "KO/Pi","KO/Pi" }, | 1090 | { "KO/Pi","KO/Pi" }, |
1092 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1091 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1093 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1092 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1094 | { "Sound.Al.: ","Sound.Al.: " }, | 1093 | { "Sound.Al.: ","Sound.Al.: " }, |
1095 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1094 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1096 | { "Restore","Wiederherstellen" }, | 1095 | { "Restore","Wiederherstellen" }, |
1097 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1096 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1098 | { "% completed","% erledigt" }, | 1097 | { "% completed","% erledigt" }, |
1099 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1098 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1100 | { "Set complete","Setze auf erledigt" }, | 1099 | { "Set complete","Setze auf erledigt" }, |
1101 | { "(cancelled)","(gecancelt)" }, | 1100 | { "(cancelled)","(gecancelt)" }, |
1102 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1101 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1103 | { " Local time "," Locale Zeit " }, | 1102 | { " Local time "," Locale Zeit " }, |
1104 | { "Form2","Form2" }, | 1103 | { "Form2","Form2" }, |
1105 | { "Filter enabled","Filter angeschaltet" }, | 1104 | { "Filter enabled","Filter angeschaltet" }, |
1106 | { "Edit Filters","Ändere Filter" }, | 1105 | { "Edit Filters","Ändere Filter" }, |
1107 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1106 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1108 | { "Agenda","Agenda" }, | 1107 | { "Agenda","Agenda" }, |
1109 | { " ("," (" }, | 1108 | { " ("," (" }, |
1110 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1109 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1111 | { "Print","Print" }, | 1110 | { "Print","Print" }, |
1112 | { "&Setup Printer...","Drucker &Setup..." }, | 1111 | { "&Setup Printer...","Drucker &Setup..." }, |
1113 | { "View Type","Zeige Typ" }, | 1112 | { "View Type","Zeige Typ" }, |
1114 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1113 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1115 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1114 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1116 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1115 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1117 | { "Portrait","Portrait" }, | 1116 | { "Portrait","Portrait" }, |
1118 | { "Landscape","Landschaft" }, | 1117 | { "Landscape","Landschaft" }, |
1119 | { "Print day","Drucke Tag" }, | 1118 | { "Print day","Drucke Tag" }, |
1120 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1119 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1121 | { "Date && Time Range","Datum && Zeitspanne" }, | 1120 | { "Date && Time Range","Datum && Zeitspanne" }, |
1122 | { "&End date:","&Enddatum:" }, | 1121 | { "&End date:","&Enddatum:" }, |
1123 | { "&Start date:","&Startdatum:" }, | 1122 | { "&Start date:","&Startdatum:" }, |
1124 | { "Start &time:","Startzeit:" }, | 1123 | { "Start &time:","Startzeit:" }, |
1125 | { "End ti&me:","Endzeit:" }, | 1124 | { "End ti&me:","Endzeit:" }, |
1126 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1125 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1127 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1126 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1128 | { "Alt+D","Alt+D" }, | 1127 | { "Alt+D","Alt+D" }, |
1129 | { "&Use colors","Nutze Farben" }, | 1128 | { "&Use colors","Nutze Farben" }, |
1130 | { "Alt+U","Alt+U" }, | 1129 | { "Alt+U","Alt+U" }, |
1131 | { "Print week","Drucke Woche" }, | 1130 | { "Print week","Drucke Woche" }, |
1132 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1131 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1133 | { "Use &colors","Nutze Farben" }, | 1132 | { "Use &colors","Nutze Farben" }, |
1134 | { "Type of View","Typ der Ansicht" }, | 1133 | { "Type of View","Typ der Ansicht" }, |
1135 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1134 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1136 | { "Alt+F","Alt+F" }, | 1135 | { "Alt+F","Alt+F" }, |
1137 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1136 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1138 | { "Alt+T","Alt+T" }, | 1137 | { "Alt+T","Alt+T" }, |
1139 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1138 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1140 | { "Print month","Drucke Monat" }, | 1139 | { "Print month","Drucke Monat" }, |
1141 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1140 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1142 | { "&Start month:","&Startmonat:" }, | 1141 | { "&Start month:","&Startmonat:" }, |
1143 | { "&End month:","&Endmonat:" }, | 1142 | { "&End month:","&Endmonat:" }, |
1144 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1143 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1145 | { "Print todos","Drucke Todos" }, | 1144 | { "Print todos","Drucke Todos" }, |
1146 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1145 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1147 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1146 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1148 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1147 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1149 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1148 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1150 | { "Items to Print","Zu druckende Items" }, | 1149 | { "Items to Print","Zu druckende Items" }, |
1151 | { "&From:","Von:" }, | 1150 | { "&From:","Von:" }, |
1152 | { "&To:","Bis:" }, | 1151 | { "&To:","Bis:" }, |
1153 | { "Print &all todo items","Drucke alle Todo Items" }, | 1152 | { "Print &all todo items","Drucke alle Todo Items" }, |
1154 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1153 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1155 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1154 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1156 | { "Todo List","Todo Liste" }, | 1155 | { "Todo List","Todo Liste" }, |
1157 | { "&Title:","&Titel:" }, | 1156 | { "&Title:","&Titel:" }, |
1158 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, | 1157 | { "Co&nnect subtodos with its parent","Verbinde Untertodos mit ihren Ober-Todos" }, |
1159 | { "Todo list","Todo Liste" }, | 1158 | { "Todo list","Todo Liste" }, |
1160 | { "&Print...","Drucke..." }, | 1159 | { "&Print...","Drucke..." }, |
1161 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1160 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1162 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1161 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1163 | { "OK","OK" }, | 1162 | { "OK","OK" }, |
1164 | { "FilterEditor","FilterEditor" }, | 1163 | { "FilterEditor","FilterEditor" }, |
1165 | { "Include","Inclusive" }, | 1164 | { "Include","Inclusive" }, |
1166 | { "Exclude","Exclusive" }, | 1165 | { "Exclude","Exclusive" }, |
1167 | { "Edit Selection...","Editiere Auswahl" }, | 1166 | { "Edit Selection...","Editiere Auswahl" }, |
1168 | { "recurring events","wiederholende Termine" }, | 1167 | { "recurring events","wiederholende Termine" }, |
1169 | { "recurr. events","wiederh.Termine" }, | 1168 | { "recurr. events","wiederh.Termine" }, |
1170 | { "completed to-dos","erledigte Todos" }, | 1169 | { "completed to-dos","erledigte Todos" }, |
1171 | { "events","Termine" }, | 1170 | { "events","Termine" }, |
1172 | { "todos","Todos" }, | 1171 | { "todos","Todos" }, |
1173 | { "journals","Journale" }, | 1172 | { "journals","Journale" }, |
1174 | { "public","öffentl." }, | 1173 | { "public","öffentl." }, |
1175 | { "private","privat" }, | 1174 | { "private","privat" }, |
1176 | { "confidential","vertraul." }, | 1175 | { "confidential","vertraul." }, |
1177 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, | 1176 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Untertodos.\nAlle erledigten Untertodos\nwerden auch gelöscht!" }, |
1178 | { "Yesterday","Gestern" }, | 1177 | { "Yesterday","Gestern" }, |
1179 | { "Day after tomorrow","Übermorgen" }, | 1178 | { "Day after tomorrow","Übermorgen" }, |
1180 | { "Tomorrow","Morgen" }, | 1179 | { "Tomorrow","Morgen" }, |
1181 | { "Day before yesterday","Vorgestern" }, | 1180 | { "Day before yesterday","Vorgestern" }, |
1182 | { "Size %1","Größe %1" }, | 1181 | { "Size %1","Größe %1" }, |
1183 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1182 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1184 | { " (%1 y.)"," (%1 J.)" }, | 1183 | { " (%1 y.)"," (%1 J.)" }, |
1185 | { "Allday:","Ganztägig:" }, | 1184 | { "Allday:","Ganztägig:" }, |
1186 | { "compl.todos","erled.Todos" }, | 1185 | { "compl.todos","erled.Todos" }, |
1187 | { "Day view","Tagesansicht" }, | 1186 | { "Day view","Tagesansicht" }, |
1188 | { "Next days","Nächste Tage" }, | 1187 | { "Next days","Nächste Tage" }, |
1189 | { "Next week","Nächste Woche" }, | 1188 | { "Next week","Nächste Woche" }, |
1190 | { "Next two weeks","Nächste zwei Wochen" }, | 1189 | { "Next two weeks","Nächste zwei Wochen" }, |
1191 | { "This month","Dieser Monat" }, | 1190 | { "This month","Dieser Monat" }, |
1192 | { "Journal view","Journal" }, | 1191 | { "Journal view","Journal" }, |
1193 | { "Display all opened","Zeige alle geöffnet" }, | 1192 | { "Display all opened","Zeige alle geöffnet" }, |
1194 | { "Display all closed","Zeige alle geschlossen" }, | 1193 | { "Display all closed","Zeige alle geschlossen" }, |
1195 | { "Display all flat","Zeige alle flach" }, | 1194 | { "Display all flat","Zeige alle flach" }, |
1196 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1195 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1197 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1196 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1198 | { "Select week %1-%2","Wähle Woche %1-%2" }, | 1197 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1199 | { "Select Week","Wähle Woche" }, | 1198 | { "Select Week","Wähle Woche" }, |
1200 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1199 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1201 | { "Set Alarm!","Setze Alarm!" }, | 1200 | { "Set Alarm!","Setze Alarm!" }, |
1202 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, | 1201 | { "Changed alarm for %1 items","Alarm für %1 Items geändert" }, |
1203 | { " and "," und " }, | 1202 | { " and "," und " }, |
1204 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1203 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1205 | { "Mail to selected","Mail an Ausgewählte" }, | 1204 | { "Mail to selected","Mail an Ausgewählte" }, |
1206 | { "Mail to all","Mail an Alle" }, | 1205 | { "Mail to all","Mail an Alle" }, |
1207 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1206 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1208 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1207 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1209 | { " on"," am" }, | 1208 | { " on"," am" }, |
1210 | { " completed on "," erledigt am " }, | 1209 | { " completed on "," erledigt am " }, |
1211 | { "Save as Event template","Speichere als Vorlage" }, | 1210 | { "Save as Event template","Speichere als Vorlage" }, |
1212 | { "Load Event template","Lade Termin Vorlage" }, | 1211 | { "Load Event template","Lade Termin Vorlage" }, |
1213 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1212 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1214 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1213 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1215 | { "Sub todos:<br>","Unter Todos:<br>" }, | 1214 | { "Sub todos:<br>","Unter Todos:<br>" }, |
1216 | { "Parent todo:<br>","Über Todo:<br>" }, | 1215 | { "Parent todo:<br>","Über Todo:<br>" }, |
1217 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, | 1216 | { "Set current as color category","Setze Gewählte als Farbkategorie" }, |
1218 | { " completed"," erledigt" }, | 1217 | { " completed"," erledigt" }, |
1219 | { "(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!" }, | 1218 | { "(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!" }, |
1220 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, | 1219 | { "Syncing aborted. Nothing synced.","Syncing abgebrochen.Nichts wurde gesynct." }, |
1221 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, | 1220 | { "Connected! Sending request for remote file ...","Verbunden! Sende Daten Anfrage..." }, |
1222 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, | 1221 | { "Trying to connect to remote...","Versuche mit Gegenstelle zu verbinden..." }, |
1223 | { "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?" }, | 1222 | { "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?" }, |
1224 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, | 1223 | { "ERROR: Receiving remote file failed.","FEHLER: Empfang der entfernten Daten fehlgeschlagen." }, |
1225 | { "Error","Fehler" }, | 1224 | { "Error","Fehler" }, |
1226 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, | 1225 | { ""You entered an invalid date!\n Date changed to current date.","Ungültiges Datum eingegeben.\nSetze heutiges Datum." }, |
1227 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, | 1226 | { "You entered an invalid date!\n Will use current date instead.","Ungültiges Datum eingegeben.\nSetze stattdessen heutiges Datum." }, |
1228 | { "Warning","Warnung" }, | 1227 | { "Warning","Warnung" }, |
1229 | { "Select week number","Wähle Wochen Nummer" }, | 1228 | { "Select week number","Wähle Wochen Nummer" }, |
1230 | { "Februar","Februar" }, | 1229 | { "Februar","Februar" }, |
1231 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, | 1230 | { "Click on the week number to\nshow week zoomed","Klicke auf die Wochennummer\num die Woche groß zu zeigen" }, |
1232 | { "W","W" }, | 1231 | { "W","W" }, |
1233 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, | 1232 | { "Click on this to\nselect week number","Klicke hierauf um\ndie Woche auszuwählen" }, |
1234 | { "T: %1","T: %1" }, | 1233 | { "T: %1","T: %1" }, |
1235 | { "Start: ","Start: " }, | 1234 | { "Start: ","Start: " }, |
1236 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, | 1235 | { "Pi-Sync options for device: ","Pi-Sync Einstellungen für Gerät: " }, |
1237 | { "Password for remote access:","Passwort für fernen Zugriff:" }, | 1236 | { "Password for remote access:","Passwort für fernen Zugriff:" }, |
1238 | { "Remote IP address:","Ferne IP Adresse:" }, | 1237 | { "Remote IP address:","Ferne IP Adresse:" }, |
1239 | { "Remote port number:","Ferne Port Nummer:" }, | 1238 | { "Remote port number:","Ferne Port Nummer:" }, |
1240 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, | 1239 | { "Remote file saved to temp file.","Ferne Daten in temp Datei gespeichert." }, |
1241 | { "Remote from: ","Fern von: " }, | 1240 | { "Remote from: ","Fern von: " }, |
1242 | { "Local from: ","Lokal von: " }, | 1241 | { "Local from: ","Lokal von: " }, |
1243 | { "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" }, | 1242 | { "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" }, |
1244 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, | 1243 | { "Local calendar changed!\n","Lokaler Kalender geändert!\n" }, |
1245 | { "Write back","Schreibe zurück" }, | 1244 | { "Write back","Schreibe zurück" }, |
1246 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, | 1245 | { "KO/Pi Synchronization","KO/Pi Synchronisation" }, |
1247 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, | 1246 | { "Pi-Sync succesful!","Pi-Sync erfolgreich!" }, |
1248 | { "Received sync request","Sync Anfrage erhalten" }, | 1247 | { "Received sync request","Sync Anfrage erhalten" }, |
1249 | { "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." }, | 1248 | { "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." }, |
1250 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, | 1249 | { "Saving Data to temp file ...","Speichere Daten in temp Datei..." }, |
1251 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, | 1250 | { "Data saved to temp file!","Daten in temp Datei gespeichert!" }, |
1252 | { "Sending file...","Sende Datei..." }, | 1251 | { "Sending file...","Sende Datei..." }, |
1253 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, | 1252 | { "Waiting for synced file...","Warte auf gesyncte Daten..." }, |
1254 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, | 1253 | { "Receiving synced file...","Gesyncte Daten erhalten..." }, |
1255 | { "Received %1 bytes","%1 Bytes erhalten" }, | 1254 | { "Received %1 bytes","%1 Bytes erhalten" }, |
1256 | { "Writing file to disk...","Speichere Datei..." }, | 1255 | { "Writing file to disk...","Speichere Datei..." }, |
1257 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, | 1256 | { "Pi-Sync successful!","Pi-Sync erfolgreich!" }, |
1258 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, | 1257 | { "Clock skew of\nsyncing devices\nis %1 seconds!","Uhrzeitunterschied der\nsyncenden Geräte\nist %1 Sekunden!" }, |
1259 | { "Synchronize!","Synchronisiere!" }, | 1258 | { "Synchronize!","Synchronisiere!" }, |
1260 | { "High clock skew!","Großer Uhrzeitunterschied!" }, | 1259 | { "High clock skew!","Großer Uhrzeitunterschied!" }, |
1261 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, | 1260 | { "ADJUST\nYOUR\nCLOCKS!","JUSTIERE\nDIE\nUHREN!" }, |
1262 | { "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!" }, | 1261 | { "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!" }, |
1263 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, | 1262 | { "This is a %1 recurring todo.","Das ist eine %1 wiederholende Aufgabe." }, |
1264 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, | 1263 | { "<p><b>Start on:</b> %1</p>","<p><b>Start am:</b> %1</p>" }, |
1265 | { "List week view","Listenwochenansicht" }, | 1264 | { "List week view","Listenwochenansicht" }, |
1266 | { "List week","Listenwochenansicht" }, | 1265 | { "List week","Listenwochenansicht" }, |
1267 | { "Next Week","Nächste Woche" }, | 1266 | { "Next Week","Nächste Woche" }, |
1268 | { "Previous Week","Vorherige Woche" }, | 1267 | { "Previous Week","Vorherige Woche" }, |
1269 | { "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." }, | 1268 | { "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." }, |
1270 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, | 1269 | { "Show in todo/event viewer:","Zeige in Termin/Todo Anzeige:" }, |
1271 | { "Details","Details" }, | 1270 | { "Details","Details" }, |
1272 | { "Created time","Erstellt Zeit" }, | 1271 | { "Created time","Erstellt Zeit" }, |
1273 | { "Last modified time","Geändert Zeit" }, | 1272 | { "Last modified time","Geändert Zeit" }, |
1274 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, | 1273 | { "Show in What'sThis quick overview:","Zeige in What'sThis Schnellübersicht:" }, |
1275 | { "View Options","Anzeige Optionen" }, | 1274 | { "View Options","Anzeige Optionen" }, |
1276 | { "<b>Created: ","<b>Erstellt am: " }, | 1275 | { "<b>Created: ","<b>Erstellt am: " }, |
1277 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, | 1276 | { "<b>Last modified: ","<b>Zuletzt geändert am: " }, |
1278 | { "Journal: ","Journal: " }, | 1277 | { "Journal: ","Journal: " }, |
1279 | { "yearly","jährlich" }, | 1278 | { "yearly","jährlich" }, |
1280 | { "(%1) ","%1-" }, | 1279 | { "(%1) ","%1-" }, |
1281 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, | 1280 | { "<p><b>K</b>: Week view in Month view syle</p>\n","<p><b>K</b>: Wochenansicht in Art der Monatsansicht</p>\n" }, |
1282 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, | 1281 | { "Enable tooltips displaying summary of ev.","Titel-Tooltips anzeigen" }, |
1283 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, | 1282 | { "Enable scrollbars in month view cells","Scrollbar in Zellen anzeigen" }, |
1284 | { "Summary/Loc.","Titel/Ort" }, | 1283 | { "Summary/Loc.","Titel/Ort" }, |
1285 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, | 1284 | { "No items found. Use '*' and '?' where needed.","Nichts gefunden. Benutze '*' and '?' wo benötigt." }, |
1286 | { "Week Number","Wochennummer" }, | 1285 | { "Week Number","Wochennummer" }, |
1287 | { "Import","Importiere" }, | 1286 | { "Import","Importiere" }, |
1288 | { "Export","Exportiere" }, | 1287 | { "Export","Exportiere" }, |
1289 | { "Beam","Beame" }, | 1288 | { "Beam","Beame" }, |
1290 | { "Export selected","Exportiere Selektierte" }, | 1289 | { "Export selected","Exportiere Selektierte" }, |
1291 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, | 1290 | { "As iCal (ics) file...","Als iCal (ics) Datei..." }, |
1292 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, | 1291 | { "As vCal (vcs) file...","Als vCal (vcs) Datei..." }, |
1293 | { "Journal/Details...","Journale/Details..." }, | 1292 | { "Journal/Details...","Journale/Details..." }, |
1294 | { "Agenda View","Agenda Ansicht" }, | 1293 | { "Agenda View","Agenda Ansicht" }, |
1295 | { "Show current time","Zeige aktuelle Zeit" }, | 1294 | { "Show current time","Zeige aktuelle Zeit" }, |
1296 | { "Edit new item","Bearbeite neuen Eintrag" }, | 1295 | { "Edit new item","Bearbeite neuen Eintrag" }, |
1297 | { "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" }, | 1296 | { "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" }, |
1298 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, | 1297 | { "There is no next alarm.","Es gibt keinen nächsten Alarm." }, |
1299 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, | 1298 | { "%1 %2 - %3 (next event/todo with alarm)","%1 %2 - %3 (nächster Termin/Todo mit Alarm)" }, |
1300 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, | 1299 | { "The next alarm is in:\n","Der nächste Alarm ist in:\n" }, |
1301 | { "%1 days\n","%1 Tagen\n" }, | 1300 | { "%1 days\n","%1 Tagen\n" }, |
1302 | { "1 day\n","1 Tag\n" }, | 1301 | { "1 day\n","1 Tag\n" }, |
1303 | { "%1 hours\n","%1 Stunden\n" }, | 1302 | { "%1 hours\n","%1 Stunden\n" }, |
1304 | { "1 hour\n","1 Stunde\n" }, | 1303 | { "1 hour\n","1 Stunde\n" }, |
1305 | { "%1 minutes\n","%1 Minuten\n" }, | 1304 | { "%1 minutes\n","%1 Minuten\n" }, |
1306 | { "1 minute\n","1 Minute\n" }, | 1305 | { "1 minute\n","1 Minute\n" }, |
1307 | { "Only one toolbar","Nur eine Toolbar" }, | 1306 | { "Only one toolbar","Nur eine Toolbar" }, |
1308 | { "Print","Drucke" }, | 1307 | { "Print","Drucke" }, |
1309 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, | 1308 | { "Print selected event / todo...","Drucke ausgewählten Termin / Todo..." }, |
1310 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, | 1309 | { "There is nothing selected!","Es ist nichts ausgewählt!" }, |
1311 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, | 1310 | { "\n\nDo you really want to print this item?","\n\nMöchten Sie wirklich diesen Eintrag ausdrucken? " }, |
1312 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, | 1311 | { "KO/Pi Print Confirmation","KO/Pi Druckbestätigung" }, |
1313 | { "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" }, | 1312 | { "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" }, |
1314 | { "KO/Pi Printout","KO/Pi Ausdruck" }, | 1313 | { "KO/Pi Printout","KO/Pi Ausdruck" }, |
1315 | { "Print unscaled","Drucke unskaliert" }, | 1314 | { "Print unscaled","Drucke unskaliert" }, |
1316 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, | 1315 | { "Print scaled down to fit one page","Drucke runterskaliert um auf eine Seite zu passen." }, |
1317 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, | 1316 | { "Print scaled up/down to fit one page","Drucke hoch/runterskaliert um genau auf eine Seite zu passen." }, |
1318 | { "Printout Mode","Druck Modus" }, | 1317 | { "Printout Mode","Druck Modus" }, |
1319 | { "Filter menu icon","Filtermenu Icon" }, | 1318 | { "Filter menu icon","Filtermenu Icon" }, |
1320 | { "<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" }, | 1319 | { "<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" }, |
1321 | { "<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" }, | 1320 | { "<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" }, |
1322 | { "%1d","%1t" }, | 1321 | { "%1d","%1t" }, |
1323 | { "%1h","%1std" }, | 1322 | { "%1h","%1std" }, |
1324 | { "%1min","%1min" }, | 1323 | { "%1min","%1min" }, |
1325 | { "( %1 before )","( %1 vorher )" }, | 1324 | { "( %1 before )","( %1 vorher )" }, |
1326 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, | 1325 | { "The next alarm is in\nless than one minute!","Der nächste Alarm kommt in\nweniger als einer Minute!" }, |
1327 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, | 1326 | { "\nThe internal alarm notification is disabled!\n","\nDie interne Alarmbenachrichtigung ist ausgeschaltet!\n" }, |
1328 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, | 1327 | { "Enable it in the settings menu, TAB alarm.","Schalten Sie sie an im Menu Einstellungen, TAB Alarm." }, |
1329 | { "Show Sync Events","Zeige Sync-Ereignisse" }, | 1328 | { "Show Sync Events","Zeige Sync-Ereignisse" }, |
1330 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, | 1329 | { "Use short date in WN+Event view","Zeige Kurzdatum in WN+Terminanzeige" }, |
1331 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, | 1330 | { "Number of max.displayed todo prios:","Anzahl max.angezeigter Todo-Prios:" }, |
1332 | { " on "," am " }, | 1331 | { " on "," am " }, |
1333 | { "On: ","Am: " }, | 1332 | { "On: ","Am: " }, |
1334 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, | 1333 | { "<i>The recurrence is computed from the start datetime!</i>","<i>Die Wiederholung wird vom Startwert aus berechnet!</i>" }, |
1335 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, | 1334 | { "Start/Stop todo...","Starte/Stoppe Todo..." }, |
1336 | { "Color for running todos:","Farbe für laufende Todos:" }, | 1335 | { "Color for running todos:","Farbe für laufende Todos:" }, |
1337 | { "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?" }, | 1336 | { "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?" }, |
1338 | { "Todo is started","Todo ist gestartet" }, | 1337 | { "Todo is started","Todo ist gestartet" }, |
1339 | { "Stop todo","Stoppe Todo" }, | 1338 | { "Stop todo","Stoppe Todo" }, |
1340 | { "Todo is stopped","Todo ist gestoppt" }, | 1339 | { "Todo is stopped","Todo ist gestoppt" }, |
1341 | { "Start todo","Starte Todo" }, | 1340 | { "Start todo","Starte Todo" }, |
1342 | { "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?" }, | 1341 | { "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?" }, |
1343 | { "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?" }, | 1342 | { "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?" }, |
1344 | { "Todo has subtodos","Todo hat Untertodos" }, | 1343 | { "Todo has subtodos","Todo hat Untertodos" }, |
1345 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, | 1344 | { "Block popup until mouse button release","Sperre Popup bis Mausknopf losgelassen" }, |
1346 | { "Colors","Farben" }, | 1345 | { "Colors","Farben" }, |
1347 | { "Click on new parent item","Klicke auf neues Übertodo" }, | 1346 | { "Click on new parent item","Klicke auf neues Übertodo" }, |
1348 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, | 1347 | { "Reparenting aborted!","Übertodo setzen abgebrochen" }, |
1349 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, | 1348 | { "Cannot move Todo to itself\nor a child of itself","Kann nicht Todo auf\nsich selbst oder\nein Untertodo verschieben" }, |
1350 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, | 1349 | { "Recursive reparenting not possible!","Rekursives Verschieben nicht möglich" }, |
1351 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, | 1350 | { "Delete all completed todos?\n(Completed recurring todos\nwill not be deleted!)","Entferne alle erledigten Todos?\n(Erledigte wiederholende Todos\nwerden nicht gelöscht!)" }, |
1352 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 1351 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
1353 | { "times","Zeiten" }, | 1352 | { "times","Zeiten" }, |
1354 | { "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?" }, | 1353 | { "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?" }, |
1355 | { "Backup enabled","Backup angeschaltet" }, | 1354 | { "Backup enabled","Backup angeschaltet" }, |
1356 | { "Use standard backup dir","Standard Backupverzeichnis" }, | 1355 | { "Use standard backup dir","Standard Backupverzeichnis" }, |
1357 | { "Number of Backups:","Anzahl der Backups" }, | 1356 | { "Number of Backups:","Anzahl der Backups" }, |
1358 | { "Make backup every ","Mache ein Backup alle " }, | 1357 | { "Make backup every ","Mache ein Backup alle " }, |
1359 | { " days"," Tage" }, | 1358 | { " days"," Tage" }, |
1360 | { "Creating backup ... please wait ...","Erstelle Backup ... bitte warten ..." }, | 1359 | { "Creating backup ... please wait ...","Erstelle Backup ... bitte warten ..." }, |
1361 | { "Backup Failed!","Backup Problem!" }, | 1360 | { "Backup Failed!","Backup Problem!" }, |
1362 | { "Try again now","Versuche jetzt nochmal" }, | 1361 | { "Try again now","Versuche jetzt nochmal" }, |
1363 | { "Try again later","Versuche später nochmal" }, | 1362 | { "Try again later","Versuche später nochmal" }, |
1364 | { "Try again tomorrow","Versuche morgen nochmal" }, | 1363 | { "Try again tomorrow","Versuche morgen nochmal" }, |
1365 | { "Disable backup","Schalte Backup ab" }, | 1364 | { "Disable backup","Schalte Backup ab" }, |
1366 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 1365 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
1367 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 1366 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
1368 | { "Choose action","Wähle Aktion" }, | 1367 | { "Choose action","Wähle Aktion" }, |
1369 | { "Comment for todo:","Kommentar zum Todo:" }, | 1368 | { "Comment for todo:","Kommentar zum Todo:" }, |
1370 | { "Stop+note","Stop+Notiz" }, | 1369 | { "Stop+note","Stop+Notiz" }, |
1371 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, | 1370 | { "Agenda view shows completed todos","Agenda Ansicht zeigt erledigte Todos" }, |
1372 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, | 1371 | { "KO/Pi: Missing alarms!","KO/Pi: Verpasste Alarme!" }, |
1373 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, | 1372 | { "You missed the alarms for the following events or todos:","Sie verpassten die Alarme für folgende Termine oder Todos:" }, |
1374 | { "Print complete list","Drucke komplette Liste" }, | 1373 | { "Print complete list","Drucke komplette Liste" }, |
1375 | { "Hide all selected","Verstecke Selektierte" }, | 1374 | { "Hide all selected","Verstecke Selektierte" }, |
1376 | { "Add items","hinzufügen" }, | 1375 | { "Add items","hinzufügen" }, |
1377 | { "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?" }, | 1376 | { "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?" }, |
1378 | { "Print List View...","Drucke Listenansicht..." }, | 1377 | { "Print List View...","Drucke Listenansicht..." }, |
1379 | { "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." }, | 1378 | { "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." }, |
1380 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, | 1379 | { "Configure KO/Pi...","Konfiguriere KO/Pi..." }, |
1381 | { "Global Settings...","Globale Einstellungen..." }, | 1380 | { "Global Settings...","Globale Einstellungen..." }, |
1382 | { "<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" }, | 1381 | { "<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" }, |
1383 | { "(disabled)","(abgeschaltet)" }, | 1382 | { "(disabled)","(abgeschaltet)" }, |
1384 | { "New Calendar","Neuer Kalender" }, | 1383 | { "New Calendar","Neuer Kalender" }, |
1385 | { "Calendar","Kalender" }, | 1384 | { "Calendar","Kalender" }, |
1386 | { "Filter selector","Filterauswahl" }, | 1385 | { "Filter selector","Filterauswahl" }, |
1387 | { "Filtermenu","Filtermenu" }, | 1386 | { "Filtermenu","Filtermenu" }, |
1388 | { "Toggle Fullscreen","Vollbild umschalten" }, | 1387 | { "Toggle Fullscreen","Vollbild umschalten" }, |
1389 | { "Toggle Resource View","Resourcenansicht umschalten" }, | 1388 | { "Toggle Resource View","Resourcenansicht umschalten" }, |
1390 | { "Storage HowTo...","Speicherort HowTo..." }, | 1389 | { "Storage HowTo...","Speicherort HowTo..." }, |
1391 | { "Timetracking HowTo...","Timetracking HowTo..." }, | 1390 | { "Timetracking HowTo...","Timetracking HowTo..." }, |
1392 | { "Juni","Juni" }, | 1391 | { "Juni","Juni" }, |
1393 | { "Juli","Juli" }, | 1392 | { "Juli","Juli" }, |
1394 | { "ToDo:","ToDo:" }, | 1393 | { "ToDo:","ToDo:" }, |
1395 | { "Set Calendar","Setze Kalender" }, | 1394 | { "Set Calendar","Setze Kalender" }, |
1396 | { "Todo: %1","Todo: %1" }, | 1395 | { "Todo: %1","Todo: %1" }, |
1397 | { ": (Prio ",": (Prio " }, | 1396 | { ": (Prio ",": (Prio " }, |
1398 | { "Todos","Todos" }, | 1397 | { "Todos","Todos" }, |
1399 | { "Todo Viewer","Todo Viewer" }, | 1398 | { "Todo Viewer","Todo Viewer" }, |
1400 | { "Todo ","Todo " }, | 1399 | { "Todo ","Todo " }, |
1401 | { " Calendar \n Resource "," Kalender \n Resource " }, | 1400 | { " Calendar \n Resource "," Kalender \n Resource " }, |
1402 | { " Color "," Farbe " }, | 1401 | { " Color "," Farbe " }, |
1403 | { "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!)" }, | 1402 | { "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!)" }, |
1404 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, | 1403 | { "The calendar <b>%1</b> is displaying file <b>%2</b>","Der Kalender <b>%1</b> zeigt die Datei <b>%2</b>" }, |
1405 | { "Add new Calendar","Füge Kalender hinzu" }, | 1404 | { "Add new Calendar","Füge Kalender hinzu" }, |
1406 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, | 1405 | { "<b>Name of new calendar:</b>","<b>Name des Kalenders:</b>" }, |
1407 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, | 1406 | { "<b>Local ical (*.ics) file:</b>","<b>Lokale ical (*.ics) Datei:</b>" }, |
1408 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, | 1407 | { "Sorry, the calendar name is empty!","Sorry, der Kalendername ist leer!" }, |
1409 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, | 1408 | { "Sorry, the file name is empty!","Sorry, der Dateiname ist leer!" }, |
1410 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, | 1409 | { "Error loading calendar file\n%1.","Fehler beim Laden der Kalenderdatei\n%1." }, |
1411 | { "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>" }, | 1410 | { "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>" }, |
1412 | { "Global application font for all apps:","Globale Schriftart:" }, | 1411 | { "Global application font for all apps:","Globale Schriftart:" }, |
1413 | { "Application Font","Applikationsschriftart" }, | 1412 | { "Application Font","Applikationsschriftart" }, |
1414 | { "Kx/Pi","Kx/Pi" }, | 1413 | { "Kx/Pi","Kx/Pi" }, |
1415 | { "Backup","Backup" }, | 1414 | { "Backup","Backup" }, |
1416 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, | 1415 | { "KDE-Pim Global Settings","KDE-Pim Globale Einstellungen" }, |
1417 | { "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!" }, | 1416 | { "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!" }, |
1418 | { "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!" }, | 1417 | { "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!" }, |
1419 | { "Choose Color","Wähle Farbe" }, | 1418 | { "Choose Color","Wähle Farbe" }, |
1420 | { " OK "," OK " }, | 1419 | { " OK "," OK " }, |
1421 | { " Cancel "," Abbrechen " }, | 1420 | { " Cancel "," Abbrechen " }, |
1422 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, | 1421 | { "Matching items will be added to list","Passende werden zur Liste hinzugefügt" }, |
1423 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, | 1422 | { "Matching items will be removed from list","Passende werden von der Liste entfernt" }, |
1424 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, | 1423 | { "Search on displayed list only","Suche auf der dargestellten Liste" }, |
1425 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, | 1424 | { "List will be cleared before search","Liste wird vor der Suche gelöscht" }, |
1426 | { "<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>" }, | 1425 | { "<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>" }, |
1427 | { "%1\nis running!","%1\nist am Laufen!" }, | 1426 | { "%1\nis running!","%1\nist am Laufen!" }, |
1428 | { "Additional Comment:","Zusätzlicher Kommentar:" }, | 1427 | { "Additional Comment:","Zusätzlicher Kommentar:" }, |
1429 | { "Stop and save","Stopp und Speichern" }, | 1428 | { "Stop and save","Stopp und Speichern" }, |
1430 | { "Continue running","Weiter laufen lassen" }, | 1429 | { "Continue running","Weiter laufen lassen" }, |
1431 | { "Stop - do not save","Stopp - nicht Speichern" }, | 1430 | { "Stop - do not save","Stopp - nicht Speichern" }, |
1432 | { "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?" }, | 1431 | { "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?" }, |
1433 | { "Time mismatch!","Zeiten stimmen nicht!" }, | 1432 | { "Time mismatch!","Zeiten stimmen nicht!" }, |
1434 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, | 1433 | { "The start time is\nafter the end time!","Die Startzeit ist\nhinter der Endzeit!" }, |
1435 | { "Yes, stop todo","Ja, stoppe Todo" }, | 1434 | { "Yes, stop todo","Ja, stoppe Todo" }, |
1436 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, | 1435 | { "Todo stopped - no data saved because runtime was < 15 sec!","Todo gestoppt - nichts gespeichert da Laufzeit < 15 sec!" }, |
1437 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, | 1436 | { "Todo started! Double click again to stop!","Todo gestartet! Doppelklicke um es zu stoppen!" }, |
1438 | { "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." }, | 1437 | { "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." }, |
1439 | { "Spouse","Ehegatte" }, | 1438 | { "Spouse","Ehegatte" }, |
1440 | { "Notes","Notizen" }, | 1439 | { "Notes","Notizen" }, |
1441 | { "Messanger","Messanger" }, | 1440 | { "Messanger","Messanger" }, |
1442 | { "Assistant","Assistent" }, | 1441 | { "Assistant","Assistent" }, |
1443 | { "Manager","Manager" }, | 1442 | { "Manager","Manager" }, |
1444 | { "Secrecy","Sichtbar" }, | 1443 | { "Secrecy","Sichtbar" }, |
1445 | { "male","männlich" }, | 1444 | { "male","männlich" }, |
1446 | { "female","weiblich" }, | 1445 | { "female","weiblich" }, |
1447 | { "Hide!","Verbergen!" }, | 1446 | { "Hide!","Verbergen!" }, |
1448 | { "Show!","Anzeigen!" }, | 1447 | { "Show!","Anzeigen!" }, |
1449 | { "Details","Details" }, | 1448 | { "Details","Details" }, |
1450 | { "Profession","Beruf" }, | 1449 | { "Profession","Beruf" }, |
1451 | { "Children","Kinder" }, | 1450 | { "Children","Kinder" }, |
1452 | { "Department","Abteilung" }, | 1451 | { "Department","Abteilung" }, |
1453 | { "Backup cancelled","Backup abgebrochen" }, | 1452 | { "Backup cancelled","Backup abgebrochen" }, |
1454 | { "Backup globally disabled","Backup global abgeschaltet" }, | 1453 | { "Backup globally disabled","Backup global abgeschaltet" }, |
1455 | { "Backup succesfully finished","Backup erfolgreich beendet" }, | 1454 | { "Backup succesfully finished","Backup erfolgreich beendet" }, |
1456 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, | 1455 | { "(Hint: You can enable automatic backup in the global settings!)","(Hinweis: Sie können ein automatisches Backup in den globalen Einstellungen konfigurieren!)" }, |
1457 | { "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" }, | 1456 | { "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" }, |
1458 | { "Birthdays","Geburtstage" }, | 1457 | { "Birthdays","Geburtstage" }, |
1459 | { "KO/Pi import information!","KO/Pi Import Information!" }, | 1458 | { "KO/Pi import information!","KO/Pi Import Information!" }, |
1460 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, | 1459 | { "Start this todo\nand stop all running","Starte dieses Todo\nund stoppe alle Laufenden" }, |
1461 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, | 1460 | { "Cancel - do not start"," Abbrechen - Todo nicht starten" }, |
1462 | { "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?"" }, | 1461 | { "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?"" }, |
1463 | { "Reload","Neu laden" }, | 1462 | { "Reload","Neu laden" }, |
1464 | { "Timezone settings","Zeitzoneneinstellung" }, | 1463 | { "Timezone settings","Zeitzoneneinstellung" }, |
1465 | { "Title: ","Titel: " }, | 1464 | { "Title: ","Titel: " }, |
1466 | { "Journal from: ","Journal vom: " }, | 1465 | { "Journal from: ","Journal vom: " }, |
1467 | { "Journal: %1 from ","Journal: %1 vom " }, | 1466 | { "Journal: %1 from ","Journal: %1 vom " }, |
1468 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, | 1467 | { "<b>Click here to edit categories: </b>","<b>Klicke hier um Kategorien zu ändern: </b>" }, |
1468 | { "Selected Item","Ausgewähltes Item" }, | ||
1469 | { "Select Date...","Wähle Datum..." }, | ||
1470 | { "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:" }, | ||
1471 | { "Change category list now!","Ändere Kategorieliste jetzt!" }, | ||
1472 | { "Edit category list...","Ändere Kategorieliste..." }, | ||
1473 | { "Toolbar changes needs a restart!","Neustart benötigt für Toolbaränderungen!" }, | ||
1474 | { "","" }, | ||
1475 | { "","" }, | ||
1476 | { "","" }, | ||
1477 | { "","" }, | ||
1469 | { "","" }, | 1478 | { "","" }, |
1470 | { "","" }, | 1479 | { "","" }, |
1471 | { "","" }, | 1480 | { "","" }, |
1472 | { "","" }, \ No newline at end of file | 1481 | { "","" }, \ No newline at end of file |
diff --git a/desktop/rpm/kdepim_rpm b/desktop/rpm/kdepim_rpm index 279bbd4..d29ab72 100644 --- a/desktop/rpm/kdepim_rpm +++ b/desktop/rpm/kdepim_rpm | |||
@@ -1,84 +1,84 @@ | |||
1 | Summary: A collection of PIM programs | 1 | Summary: A collection of PIM programs |
2 | Name: KDE-Pim-Pi | 2 | Name: KDE-Pim-Pi |
3 | Version: 2.1.11 | 3 | Version: 2.1.12 |
4 | Release: SuSE_9.2 | 4 | Release: SuSE_9.2 |
5 | Copyright:GPL | 5 | Copyright:GPL |
6 | Group: Productivity/Pim | 6 | Group: Productivity/Pim |
7 | Source:http://sourceforge.net/projects/kdepimpi/ | 7 | Source:http://sourceforge.net/projects/kdepimpi/ |
8 | URL:http://sourceforge.net/projects/kdepimpi/ | 8 | URL:http://sourceforge.net/projects/kdepimpi/ |
9 | Packager: zautrix | 9 | Packager: zautrix |
10 | 10 | ||
11 | %description | 11 | %description |
12 | This package contains the platform-independent PIM programs from | 12 | This package contains the platform-independent PIM programs from |
13 | www.pi-sync.info, compiled for SuSE 9.2: | 13 | www.pi-sync.info, compiled for SuSE 9.2: |
14 | KTimeTacker/Pi | 14 | KTimeTacker/Pi |
15 | KPhone/Pi | 15 | KPhone/Pi |
16 | KAddressbook/Pi | 16 | KAddressbook/Pi |
17 | KOrganizer/Pi | 17 | KOrganizer/Pi |
18 | PasswordManager/Pi | 18 | PasswordManager/Pi |
19 | KOPieMail/Pi | 19 | KOPieMail/Pi |
20 | 20 | ||
21 | These applications do not need anything from the KDE-desktop | 21 | These applications do not need anything from the KDE-desktop |
22 | at all to run on Linux. However, there is a dependency from | 22 | at all to run on Linux. However, there is a dependency from |
23 | two KDE libs, because a small command line program is included | 23 | two KDE libs, because a small command line program is included |
24 | to make it possible to sync with the KDE-desktop applications. | 24 | to make it possible to sync with the KDE-desktop applications. |
25 | 25 | ||
26 | These applications are independent from the KDE-desktop | 26 | These applications are independent from the KDE-desktop |
27 | environment. That means, nothing of your existing | 27 | environment. That means, nothing of your existing |
28 | KDE-desktop setup will be changed, or any data | 28 | KDE-desktop setup will be changed, or any data |
29 | (calendar-addressbook) used by the KDE-desktop | 29 | (calendar-addressbook) used by the KDE-desktop |
30 | applications will be changed or accessed. | 30 | applications will be changed or accessed. |
31 | These applications stores their data and config in | 31 | These applications stores their data and config in |
32 | $HOME/kdepim/ | 32 | $HOME/kdepim/ |
33 | However, because the same file format is used, | 33 | However, because the same file format is used, |
34 | an easy exchange of data with the KDE-desktop | 34 | an easy exchange of data with the KDE-desktop |
35 | is possible. | 35 | is possible. |
36 | A small command line program is included | 36 | A small command line program is included |
37 | to make it possible to sync with the KDE-desktop applications. | 37 | to make it possible to sync with the KDE-desktop applications. |
38 | You do not need to call this program from the commandline, | 38 | You do not need to call this program from the commandline, |
39 | it is called from the KDE-Pim/Pi apps when you choose there: | 39 | it is called from the KDE-Pim/Pi apps when you choose there: |
40 | Sync with KDE_Desktop. | 40 | Sync with KDE_Desktop. |
41 | If something is going wrong, please start the | 41 | If something is going wrong, please start the |
42 | KDE-Pim/Pi program itself from the console to get detailed output. | 42 | KDE-Pim/Pi program itself from the console to get detailed output. |
43 | 43 | ||
44 | After installation, you should have a | 44 | After installation, you should have a |
45 | PIM-pi | 45 | PIM-pi |
46 | folder in your KDE start menu, where you can | 46 | folder in your KDE start menu, where you can |
47 | start the applications from. | 47 | start the applications from. |
48 | 48 | ||
49 | These programs makes it possible to sync your Zaurus easily | 49 | These programs makes it possible to sync your Zaurus easily |
50 | (with the KDE-Pim/Pi programs running on the Zaurus) | 50 | (with the KDE-Pim/Pi programs running on the Zaurus) |
51 | with the KDE-desktop calendar/addressbook data. | 51 | with the KDE-desktop calendar/addressbook data. |
52 | If you want to use that, you have to update your | 52 | If you want to use that, you have to update your |
53 | KDE-desktop to version 3.3.0 or higher. | 53 | KDE-desktop to version 3.3.0 or higher. |
54 | SuSE 9.2 contains KDE 3.3.0 such that no update is needed. | 54 | SuSE 9.2 contains KDE 3.3.0 such that no update is needed. |
55 | Actually - after the (non difficult) configuration is set up - | 55 | Actually - after the (non difficult) configuration is set up - |
56 | with two mouseklicks on the Zaurus, | 56 | with two mouseklicks on the Zaurus, |
57 | the Zaurus syncs with the corresponding KDE-Pim/Pi | 57 | the Zaurus syncs with the corresponding KDE-Pim/Pi |
58 | program on the Linux Desktop which syncs automatically | 58 | program on the Linux Desktop which syncs automatically |
59 | with the KDE-desktop data. | 59 | with the KDE-desktop data. |
60 | 60 | ||
61 | If you want to use the KDE-desktop calendar/addressbook applications, | 61 | If you want to use the KDE-desktop calendar/addressbook applications, |
62 | just install these apps in this package and use them as a syncing tool for the | 62 | just install these apps in this package and use them as a syncing tool for the |
63 | Zaurus <-> KDE-desktop sync. | 63 | Zaurus <-> KDE-desktop sync. |
64 | The sync requires a network connection from your Zaurus to | 64 | The sync requires a network connection from your Zaurus to |
65 | the PC. A detailed Sync HowTo is available in the | 65 | the PC. A detailed Sync HowTo is available in the |
66 | Help menu of the applications. | 66 | Help menu of the applications. |
67 | 67 | ||
68 | These applications makes it also possible, that you can sync | 68 | These applications makes it also possible, that you can sync |
69 | (or just export the data to) your mobile phone with your | 69 | (or just export the data to) your mobile phone with your |
70 | data of the KDE-desktop calendar/addressbook applications. | 70 | data of the KDE-desktop calendar/addressbook applications. |
71 | This is tested and working for Nokia mobile phones, | 71 | This is tested and working for Nokia mobile phones, |
72 | it may work with others as well. | 72 | it may work with others as well. |
73 | (More info about that: -> Sync HowTo) | 73 | (More info about that: -> Sync HowTo) |
74 | 74 | ||
75 | NOTE: | 75 | NOTE: |
76 | When using SuSE 9.1 you have to update your KDE to 3.3.x | 76 | When using SuSE 9.1 you have to update your KDE to 3.3.x |
77 | and you have to make an online update in SuSE 9.1 to make it | 77 | and you have to make an online update in SuSE 9.1 to make it |
78 | possible to get the infrared connection working, such that | 78 | possible to get the infrared connection working, such that |
79 | you can sync your (Nokia) mobile phone via infrared. | 79 | you can sync your (Nokia) mobile phone via infrared. |
80 | 80 | ||
81 | %files | 81 | %files |
82 | /opt/kde3/share/applnk/PIM-pi/ | 82 | /opt/kde3/share/applnk/PIM-pi/ |
83 | /opt/kdepimpi/ | 83 | /opt/kdepimpi/ |
84 | /usr/lib/libmicro* | 84 | /usr/lib/libmicro* |
diff --git a/korganizer/calendarview.cpp b/korganizer/calendarview.cpp index d0de233..c0f3be7 100644 --- a/korganizer/calendarview.cpp +++ b/korganizer/calendarview.cpp | |||
@@ -1,708 +1,709 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | 3 | ||
4 | Requires the Qt and KDE widget libraries, available at no cost at | 4 | Requires the Qt and KDE widget libraries, available at no cost at |
5 | http://www.troll.no and http://www.kde.org respectively | 5 | http://www.troll.no and http://www.kde.org respectively |
6 | 6 | ||
7 | Copyright (c) 1997, 1998, 1999 | 7 | Copyright (c) 1997, 1998, 1999 |
8 | Preston Brown (preton.brown@yale.edu) | 8 | Preston Brown (preton.brown@yale.edu) |
9 | Fester Zigterman (F.J.F.ZigtermanRustenburg@student.utwente.nl) | 9 | Fester Zigterman (F.J.F.ZigtermanRustenburg@student.utwente.nl) |
10 | Ian Dawes (iadawes@globalserve.net) | 10 | Ian Dawes (iadawes@globalserve.net) |
11 | Laszlo Boloni (boloni@cs.purdue.edu) | 11 | Laszlo Boloni (boloni@cs.purdue.edu) |
12 | 12 | ||
13 | Copyright (c) 2000, 2001, 2002 | 13 | Copyright (c) 2000, 2001, 2002 |
14 | Cornelius Schumacher <schumacher@kde.org> | 14 | Cornelius Schumacher <schumacher@kde.org> |
15 | 15 | ||
16 | This program is free software; you can redistribute it and/or modify | 16 | This program is free software; you can redistribute it and/or modify |
17 | it under the terms of the GNU General Public License as published by | 17 | it under the terms of the GNU General Public License as published by |
18 | the Free Software Foundation; either version 2 of the License, or | 18 | the Free Software Foundation; either version 2 of the License, or |
19 | (at your option) any later version. | 19 | (at your option) any later version. |
20 | 20 | ||
21 | This program is distributed in the hope that it will be useful, | 21 | This program is distributed in the hope that it will be useful, |
22 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 22 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the | 23 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the |
24 | GNU General Public License for more details. | 24 | GNU General Public License for more details. |
25 | 25 | ||
26 | You should have received a copy of the GNU General Public License | 26 | You should have received a copy of the GNU General Public License |
27 | along with this program; if not, write to the Free Software | 27 | along with this program; if not, write to the Free Software |
28 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 28 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
29 | */ | 29 | */ |
30 | 30 | ||
31 | #include <stdlib.h> | 31 | #include <stdlib.h> |
32 | 32 | ||
33 | #include <qapplication.h> | 33 | #include <qapplication.h> |
34 | #include <qradiobutton.h> | 34 | #include <qradiobutton.h> |
35 | #include <qbuttongroup.h> | 35 | #include <qbuttongroup.h> |
36 | #include <qlayout.h> | 36 | #include <qlayout.h> |
37 | #include <qclipboard.h> | 37 | #include <qclipboard.h> |
38 | #include <qcursor.h> | 38 | #include <qcursor.h> |
39 | #include <qmessagebox.h> | 39 | #include <qmessagebox.h> |
40 | #include <qprogressbar.h> | 40 | #include <qprogressbar.h> |
41 | #include <qmultilineedit.h> | 41 | #include <qmultilineedit.h> |
42 | #include <qtimer.h> | 42 | #include <qtimer.h> |
43 | #include <qwidgetstack.h> | 43 | #include <qwidgetstack.h> |
44 | #include <qptrlist.h> | 44 | #include <qptrlist.h> |
45 | #include <qregexp.h> | 45 | #include <qregexp.h> |
46 | #include <qgroupbox.h> | 46 | #include <qgroupbox.h> |
47 | #include <qfile.h> | 47 | #include <qfile.h> |
48 | #include <qdir.h> | 48 | #include <qdir.h> |
49 | #ifndef KORG_NOSPLITTER | 49 | #ifndef KORG_NOSPLITTER |
50 | #include <qsplitter.h> | 50 | #include <qsplitter.h> |
51 | #endif | 51 | #endif |
52 | 52 | ||
53 | #include <kglobal.h> | 53 | #include <kglobal.h> |
54 | #include <kdebug.h> | 54 | #include <kdebug.h> |
55 | #include <kstandarddirs.h> | 55 | #include <kstandarddirs.h> |
56 | #include <kfiledialog.h> | 56 | #include <kfiledialog.h> |
57 | #include <kmessagebox.h> | 57 | #include <kmessagebox.h> |
58 | #include <knotifyclient.h> | 58 | #include <knotifyclient.h> |
59 | #include <kconfig.h> | 59 | #include <kconfig.h> |
60 | 60 | ||
61 | #include <libkdepim/ksyncprefsdialog.h> | 61 | #include <libkdepim/ksyncprefsdialog.h> |
62 | #include <krun.h> | 62 | #include <krun.h> |
63 | #include <kdirwatch.h> | 63 | #include <kdirwatch.h> |
64 | #include <libkdepim/kdatepicker.h> | 64 | #include <libkdepim/kdatepicker.h> |
65 | #include <libkdepim/ksyncprofile.h> | 65 | #include <libkdepim/ksyncprofile.h> |
66 | #include <libkdepim/kpimglobalprefs.h> | 66 | #include <libkdepim/kpimglobalprefs.h> |
67 | 67 | ||
68 | #include <libkcal/vcaldrag.h> | 68 | #include <libkcal/vcaldrag.h> |
69 | #include <libkcal/icaldrag.h> | 69 | #include <libkcal/icaldrag.h> |
70 | #include <libkcal/icalformat.h> | 70 | #include <libkcal/icalformat.h> |
71 | #include <libkcal/vcalformat.h> | 71 | #include <libkcal/vcalformat.h> |
72 | #include <libkcal/scheduler.h> | 72 | #include <libkcal/scheduler.h> |
73 | #include <libkcal/calendarlocal.h> | 73 | #include <libkcal/calendarlocal.h> |
74 | #include <libkcal/journal.h> | 74 | #include <libkcal/journal.h> |
75 | #include <libkcal/calfilter.h> | 75 | #include <libkcal/calfilter.h> |
76 | #include <libkcal/attendee.h> | 76 | #include <libkcal/attendee.h> |
77 | #include <libkcal/dndfactory.h> | 77 | #include <libkcal/dndfactory.h> |
78 | #include <libkcal/freebusy.h> | 78 | #include <libkcal/freebusy.h> |
79 | #include <libkcal/filestorage.h> | 79 | #include <libkcal/filestorage.h> |
80 | #include <libkcal/calendarresources.h> | 80 | #include <libkcal/calendarresources.h> |
81 | #include <libkcal/qtopiaformat.h> | 81 | #include <libkcal/qtopiaformat.h> |
82 | #include "../kalarmd/alarmdialog.h" | 82 | #include "../kalarmd/alarmdialog.h" |
83 | 83 | ||
84 | #ifndef DESKTOP_VERSION | 84 | #ifndef DESKTOP_VERSION |
85 | #include <libkcal/sharpformat.h> | 85 | #include <libkcal/sharpformat.h> |
86 | #include <externalapphandler.h> | 86 | #include <externalapphandler.h> |
87 | #endif | 87 | #endif |
88 | #include <libkcal/phoneformat.h> | 88 | #include <libkcal/phoneformat.h> |
89 | #ifndef KORG_NOMAIL | 89 | #ifndef KORG_NOMAIL |
90 | #include "komailclient.h" | 90 | #include "komailclient.h" |
91 | #endif | 91 | #endif |
92 | #ifndef KORG_NOPRINTER | 92 | #ifndef KORG_NOPRINTER |
93 | #include "calprinter.h" | 93 | #include "calprinter.h" |
94 | #endif | 94 | #endif |
95 | #ifndef KORG_NOPLUGINS | 95 | #ifndef KORG_NOPLUGINS |
96 | #include "kocore.h" | 96 | #include "kocore.h" |
97 | #endif | 97 | #endif |
98 | #include "koeventeditor.h" | 98 | #include "koeventeditor.h" |
99 | #include "kotodoeditor.h" | 99 | #include "kotodoeditor.h" |
100 | #include "koprefs.h" | 100 | #include "koprefs.h" |
101 | #include "koeventviewerdialog.h" | 101 | #include "koeventviewerdialog.h" |
102 | #include "publishdialog.h" | 102 | #include "publishdialog.h" |
103 | #include "kofilterview.h" | 103 | #include "kofilterview.h" |
104 | #include "koglobals.h" | 104 | #include "koglobals.h" |
105 | #include "koviewmanager.h" | 105 | #include "koviewmanager.h" |
106 | #include "koagendaview.h" | 106 | #include "koagendaview.h" |
107 | #include "kodialogmanager.h" | 107 | #include "kodialogmanager.h" |
108 | #include "outgoingdialog.h" | 108 | #include "outgoingdialog.h" |
109 | #include "incomingdialog.h" | 109 | #include "incomingdialog.h" |
110 | #include "datenavigatorcontainer.h" | 110 | #include "datenavigatorcontainer.h" |
111 | #include "statusdialog.h" | 111 | #include "statusdialog.h" |
112 | #include "kdatenavigator.h" | 112 | #include "kdatenavigator.h" |
113 | #include "kotodoview.h" | 113 | #include "kotodoview.h" |
114 | #include "datenavigator.h" | 114 | #include "datenavigator.h" |
115 | #include "resourceview.h" | 115 | #include "resourceview.h" |
116 | #include "navigatorbar.h" | 116 | #include "navigatorbar.h" |
117 | #include "searchdialog.h" | 117 | #include "searchdialog.h" |
118 | #include "mainwindow.h" | 118 | #include "mainwindow.h" |
119 | #include "categoryeditdialog.h" | ||
119 | 120 | ||
120 | #include "calendarview.h" | 121 | #include "calendarview.h" |
121 | #ifndef DESKTOP_VERSION | 122 | #ifndef DESKTOP_VERSION |
122 | #include <qtopia/alarmserver.h> | 123 | #include <qtopia/alarmserver.h> |
123 | #endif | 124 | #endif |
124 | #ifndef _WIN32_ | 125 | #ifndef _WIN32_ |
125 | #include <stdlib.h> | 126 | #include <stdlib.h> |
126 | #include <stdio.h> | 127 | #include <stdio.h> |
127 | #include <unistd.h> | 128 | #include <unistd.h> |
128 | #else | 129 | #else |
129 | #include <qprocess.h> | 130 | #include <qprocess.h> |
130 | #endif | 131 | #endif |
131 | 132 | ||
132 | #ifdef DESKTOP_VERSION | 133 | #ifdef DESKTOP_VERSION |
133 | #include <kabc/stdaddressbook.h> | 134 | #include <kabc/stdaddressbook.h> |
134 | #endif | 135 | #endif |
135 | using namespace KOrg; | 136 | using namespace KOrg; |
136 | using namespace KCal; | 137 | using namespace KCal; |
137 | extern int globalFlagBlockAgenda; | 138 | extern int globalFlagBlockAgenda; |
138 | extern int globalFlagBlockStartup; | 139 | extern int globalFlagBlockStartup; |
139 | 140 | ||
140 | 141 | ||
141 | MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Incidence> alarms,QDateTime start ) : QTextBrowser(parent) | 142 | MissedAlarmTextBrowser::MissedAlarmTextBrowser(QWidget *parent, QPtrList<Incidence> alarms,QDateTime start ) : QTextBrowser(parent) |
142 | 143 | ||
143 | { | 144 | { |
144 | mAlarms = alarms; | 145 | mAlarms = alarms; |
145 | viewport()->setBackgroundColor( QColor( 255, 255, 255 ) ); | 146 | viewport()->setBackgroundColor( QColor( 255, 255, 255 ) ); |
146 | QString mText = "<table width=\"100%\">\n"; | 147 | QString mText = "<table width=\"100%\">\n"; |
147 | //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; | 148 | //mText += "<tr bgcolor=\"#3679AD\"><td><h2>"; |
148 | #ifdef DESKTOP_VERSION | 149 | #ifdef DESKTOP_VERSION |
149 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>"; | 150 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h2>"; |
150 | #else | 151 | #else |
151 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h3>"; | 152 | mText += "<tr bgcolor=\"#5699CD\"><td align=\"center\"><h3>"; |
152 | #endif | 153 | #endif |
153 | // mText += "<img src=\""; | 154 | // mText += "<img src=\""; |
154 | // mText += ipath; | 155 | // mText += ipath; |
155 | // mText += "\">"; | 156 | // mText += "\">"; |
156 | //mEventDate = QDate::currentDate(); | 157 | //mEventDate = QDate::currentDate(); |
157 | #ifdef DESKTOP_VERSION | 158 | #ifdef DESKTOP_VERSION |
158 | mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h2>"; | 159 | mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h2>"; |
159 | #else | 160 | #else |
160 | mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h3>"; | 161 | mText += "<font color=\"#FFFFFF\"> <em>" + i18n("You missed the alarms for the following events or todos:")+"</em></font></h3>"; |
161 | #endif | 162 | #endif |
162 | //mText += "</td></tr>\n<tr bgcolor=\"#FF997D\"><td>"; | 163 | //mText += "</td></tr>\n<tr bgcolor=\"#FF997D\"><td>"; |
163 | 164 | ||
164 | Incidence * inc = getNextInc( start ); | 165 | Incidence * inc = getNextInc( start ); |
165 | int time = 0; | 166 | int time = 0; |
166 | //mText += "<table>"; | 167 | //mText += "<table>"; |
167 | while ( inc ) { | 168 | while ( inc ) { |
168 | QDateTime dt ; | 169 | QDateTime dt ; |
169 | QString tempText = "<a "; | 170 | QString tempText = "<a "; |
170 | bool ok; | 171 | bool ok; |
171 | dt = inc->getNextOccurence( start, &ok ); | 172 | dt = inc->getNextOccurence( start, &ok ); |
172 | if ( !ok ) continue; | 173 | if ( !ok ) continue; |
173 | if ( inc->typeID() == eventID ) { | 174 | if ( inc->typeID() == eventID ) { |
174 | tempText += "href=\"event:"; | 175 | tempText += "href=\"event:"; |
175 | } else if ( inc->typeID() == todoID ) { | 176 | } else if ( inc->typeID() == todoID ) { |
176 | tempText += "href=\"todo:"; | 177 | tempText += "href=\"todo:"; |
177 | } | 178 | } |
178 | tempText += inc->uid() + "\">"; | 179 | tempText += inc->uid() + "\">"; |
179 | if ( inc->typeID() == todoID ) | 180 | if ( inc->typeID() == todoID ) |
180 | tempText += i18n("Todo: "); | 181 | tempText += i18n("Todo: "); |
181 | if ( inc->summary().length() > 0 ) | 182 | if ( inc->summary().length() > 0 ) |
182 | tempText += inc->summary(); | 183 | tempText += inc->summary(); |
183 | else | 184 | else |
184 | tempText += i18n("-no summary-"); | 185 | tempText += i18n("-no summary-"); |
185 | QString timestr; | 186 | QString timestr; |
186 | if (!inc->doesFloat()) | 187 | if (!inc->doesFloat()) |
187 | timestr = KGlobal::locale()->formatDateTime( dt, KOPrefs::instance()->mShortDateInViewer) +": "; | 188 | timestr = KGlobal::locale()->formatDateTime( dt, KOPrefs::instance()->mShortDateInViewer) +": "; |
188 | else | 189 | else |
189 | timestr = KGlobal::locale()->formatDate( dt.date() , KOPrefs::instance()->mShortDateInViewer) +": "; | 190 | timestr = KGlobal::locale()->formatDate( dt.date() , KOPrefs::instance()->mShortDateInViewer) +": "; |
190 | if ( dt.date() < QDate::currentDate() && time == 0 ) { | 191 | if ( dt.date() < QDate::currentDate() && time == 0 ) { |
191 | mText += "</td></tr>\n<tr bgcolor=\"#FF997D\"><td>"; | 192 | mText += "</td></tr>\n<tr bgcolor=\"#FF997D\"><td>"; |
192 | mText += "<table>"; | 193 | mText += "<table>"; |
193 | time = 1; | 194 | time = 1; |
194 | } | 195 | } |
195 | if ( dt.date() == QDate::currentDate() && time <= 1 ) { | 196 | if ( dt.date() == QDate::currentDate() && time <= 1 ) { |
196 | if ( time > 0 ) | 197 | if ( time > 0 ) |
197 | mText +="</table>"; | 198 | mText +="</table>"; |
198 | mText += "</td></tr>\n<tr bgcolor=\"#FFDC64\"><td>"; | 199 | mText += "</td></tr>\n<tr bgcolor=\"#FFDC64\"><td>"; |
199 | mText += "<table>"; | 200 | mText += "<table>"; |
200 | time = 2; | 201 | time = 2; |
201 | 202 | ||
202 | } | 203 | } |
203 | if ( dt.date() > QDate::currentDate() && time <= 2 ) { | 204 | if ( dt.date() > QDate::currentDate() && time <= 2 ) { |
204 | if ( time > 0 ) | 205 | if ( time > 0 ) |
205 | mText +="</table>"; | 206 | mText +="</table>"; |
206 | mText += "</td></tr>\n<tr bgcolor=\"#6AFF6A\"><td>"; | 207 | mText += "</td></tr>\n<tr bgcolor=\"#6AFF6A\"><td>"; |
207 | mText += "<table>"; | 208 | mText += "<table>"; |
208 | time = 3; | 209 | time = 3; |
209 | } | 210 | } |
210 | mText +="<tr><td><b>"; | 211 | mText +="<tr><td><b>"; |
211 | mText += timestr; | 212 | mText += timestr; |
212 | mText += "</b></td><td>"; | 213 | mText += "</b></td><td>"; |
213 | mText += tempText; | 214 | mText += tempText; |
214 | mText += "</td></tr>\n"; | 215 | mText += "</td></tr>\n"; |
215 | inc = getNextInc( start ); | 216 | inc = getNextInc( start ); |
216 | } | 217 | } |
217 | mText +="</table>"; | 218 | mText +="</table>"; |
218 | setText( mText ); | 219 | setText( mText ); |
219 | } | 220 | } |
220 | 221 | ||
221 | MissedAlarmTextBrowser::~MissedAlarmTextBrowser() | 222 | MissedAlarmTextBrowser::~MissedAlarmTextBrowser() |
222 | { | 223 | { |
223 | //qDebug("delete MissedAlarmTextBrowser::~MissedAlarmTextBrowser() "); | 224 | //qDebug("delete MissedAlarmTextBrowser::~MissedAlarmTextBrowser() "); |
224 | } | 225 | } |
225 | Incidence * MissedAlarmTextBrowser::getNextInc( QDateTime start ) | 226 | Incidence * MissedAlarmTextBrowser::getNextInc( QDateTime start ) |
226 | { | 227 | { |
227 | QDateTime dt ; | 228 | QDateTime dt ; |
228 | Incidence * retInc; | 229 | Incidence * retInc; |
229 | Incidence * inc = mAlarms.first(); | 230 | Incidence * inc = mAlarms.first(); |
230 | if ( inc == 0 ) | 231 | if ( inc == 0 ) |
231 | return 0; | 232 | return 0; |
232 | bool ok; | 233 | bool ok; |
233 | dt = inc->getNextOccurence( start, &ok ); | 234 | dt = inc->getNextOccurence( start, &ok ); |
234 | if ( ! ok ) return 0; | 235 | if ( ! ok ) return 0; |
235 | QDateTime dtn ; | 236 | QDateTime dtn ; |
236 | retInc = inc; | 237 | retInc = inc; |
237 | inc = mAlarms.next(); | 238 | inc = mAlarms.next(); |
238 | while ( inc ) { | 239 | while ( inc ) { |
239 | dtn = inc->getNextOccurence( start, &ok ); | 240 | dtn = inc->getNextOccurence( start, &ok ); |
240 | if ( ! ok ) return 0; | 241 | if ( ! ok ) return 0; |
241 | if ( dtn < dt ) { | 242 | if ( dtn < dt ) { |
242 | dt = dtn; | 243 | dt = dtn; |
243 | retInc = inc; | 244 | retInc = inc; |
244 | } | 245 | } |
245 | inc = mAlarms.next(); | 246 | inc = mAlarms.next(); |
246 | } | 247 | } |
247 | mAlarms.remove( retInc ); | 248 | mAlarms.remove( retInc ); |
248 | return retInc; | 249 | return retInc; |
249 | 250 | ||
250 | } | 251 | } |
251 | void MissedAlarmTextBrowser::setSource(const QString & n) | 252 | void MissedAlarmTextBrowser::setSource(const QString & n) |
252 | { | 253 | { |
253 | if (n.startsWith("event:")) { | 254 | if (n.startsWith("event:")) { |
254 | #ifdef DESKTOP_VERSION | 255 | #ifdef DESKTOP_VERSION |
255 | emit showIncidence(n.mid(8)); | 256 | emit showIncidence(n.mid(8)); |
256 | #else | 257 | #else |
257 | emit showIncidence(n.mid(6)); | 258 | emit showIncidence(n.mid(6)); |
258 | #endif | 259 | #endif |
259 | return; | 260 | return; |
260 | } else if (n.startsWith("todo:")) { | 261 | } else if (n.startsWith("todo:")) { |
261 | #ifdef DESKTOP_VERSION | 262 | #ifdef DESKTOP_VERSION |
262 | emit showIncidence(n.mid(7)); | 263 | emit showIncidence(n.mid(7)); |
263 | #else | 264 | #else |
264 | emit showIncidence(n.mid(5)); | 265 | emit showIncidence(n.mid(5)); |
265 | #endif | 266 | #endif |
266 | return; | 267 | return; |
267 | } | 268 | } |
268 | } | 269 | } |
269 | 270 | ||
270 | 271 | ||
271 | class KOBeamPrefs : public QDialog | 272 | class KOBeamPrefs : public QDialog |
272 | { | 273 | { |
273 | public: | 274 | public: |
274 | KOBeamPrefs( QWidget *parent=0, const char *name=0 ) : | 275 | KOBeamPrefs( QWidget *parent=0, const char *name=0 ) : |
275 | QDialog( parent, name, true ) | 276 | QDialog( parent, name, true ) |
276 | { | 277 | { |
277 | setCaption( i18n("Beam Options") ); | 278 | setCaption( i18n("Beam Options") ); |
278 | QVBoxLayout* lay = new QVBoxLayout( this ); | 279 | QVBoxLayout* lay = new QVBoxLayout( this ); |
279 | lay->setSpacing( 3 ); | 280 | lay->setSpacing( 3 ); |
280 | lay->setMargin( 3 ); | 281 | lay->setMargin( 3 ); |
281 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("File format"), this ); | 282 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("File format"), this ); |
282 | lay->addWidget( format ); | 283 | lay->addWidget( format ); |
283 | format->setExclusive ( true ) ; | 284 | format->setExclusive ( true ) ; |
284 | QButtonGroup* time = new QButtonGroup(1, Horizontal, i18n("Time format"), this ); | 285 | QButtonGroup* time = new QButtonGroup(1, Horizontal, i18n("Time format"), this ); |
285 | lay->addWidget( time ); time->setExclusive ( true ) ; | 286 | lay->addWidget( time ); time->setExclusive ( true ) ; |
286 | vcal = new QRadioButton(" vCalendar ", format ); | 287 | vcal = new QRadioButton(" vCalendar ", format ); |
287 | ical = new QRadioButton(" iCalendar ", format ); | 288 | ical = new QRadioButton(" iCalendar ", format ); |
288 | vcal->setChecked( true ); | 289 | vcal->setChecked( true ); |
289 | tz = new QRadioButton(i18n(" With timezone "), time ); | 290 | tz = new QRadioButton(i18n(" With timezone "), time ); |
290 | local = new QRadioButton(i18n(" Local time "), time ); | 291 | local = new QRadioButton(i18n(" Local time "), time ); |
291 | tz->setChecked( true ); | 292 | tz->setChecked( true ); |
292 | QPushButton * ok = new QPushButton( i18n("Beam via IR!"), this ); | 293 | QPushButton * ok = new QPushButton( i18n("Beam via IR!"), this ); |
293 | lay->addWidget( ok ); | 294 | lay->addWidget( ok ); |
294 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 295 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
295 | lay->addWidget( cancel ); | 296 | lay->addWidget( cancel ); |
296 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 297 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
297 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 298 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
298 | resize( 200, 200 ); | 299 | resize( 200, 200 ); |
299 | } | 300 | } |
300 | 301 | ||
301 | bool beamVcal() { return vcal->isChecked(); } | 302 | bool beamVcal() { return vcal->isChecked(); } |
302 | bool beamLocal() { return local->isChecked(); } | 303 | bool beamLocal() { return local->isChecked(); } |
303 | private: | 304 | private: |
304 | QRadioButton* vcal, *ical, *local, *tz; | 305 | QRadioButton* vcal, *ical, *local, *tz; |
305 | }; | 306 | }; |
306 | class KOCatPrefs : public QDialog | 307 | class KOCatPrefs : public QDialog |
307 | { | 308 | { |
308 | public: | 309 | public: |
309 | KOCatPrefs( QWidget *parent=0, const char *name=0 ) : | 310 | KOCatPrefs( QWidget *parent=0, const char *name=0 ) : |
310 | QDialog( parent, name, true ) | 311 | QDialog( parent, name, true ) |
311 | { | 312 | { |
312 | setCaption( i18n("Manage new Categories") ); | 313 | setCaption( i18n("Manage new Categories") ); |
313 | QVBoxLayout* lay = new QVBoxLayout( this ); | 314 | QVBoxLayout* lay = new QVBoxLayout( this ); |
314 | lay->setSpacing( 3 ); | 315 | lay->setSpacing( 3 ); |
315 | lay->setMargin( 3 ); | 316 | lay->setMargin( 3 ); |
316 | QLabel * lab = new QLabel( i18n("After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n "), this ); | 317 | QLabel * lab = new QLabel( i18n("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>:"), this ); |
317 | lay->addWidget( lab ); | 318 | lay->addWidget( lab ); |
318 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this ); | 319 | QButtonGroup* format = new QButtonGroup( 1, Horizontal, i18n("New categories not in list:"), this ); |
319 | lay->addWidget( format ); | 320 | lay->addWidget( format ); |
320 | format->setExclusive ( true ) ; | 321 | format->setExclusive ( true ) ; |
321 | addCatBut = new QRadioButton(i18n("Add to category list"), format ); | 322 | addCatBut = new QRadioButton(i18n("Add to category list"), format ); |
322 | new QRadioButton(i18n("Remove from Events/Todos"), format ); | 323 | new QRadioButton(i18n("Remove from Events/Todos"), format ); |
323 | addCatBut->setChecked( true ); | 324 | addCatBut->setChecked( true ); |
324 | QPushButton * ok = new QPushButton( i18n("OK"), this ); | 325 | QPushButton * ok = new QPushButton( i18n("Change category list now!"), this ); |
325 | lay->addWidget( ok ); | 326 | lay->addWidget( ok ); |
326 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 327 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
327 | lay->addWidget( cancel ); | 328 | lay->addWidget( cancel ); |
328 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 329 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
329 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 330 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
330 | resize( 200, 200 ); | 331 | resize( 200, 200 ); |
331 | } | 332 | } |
332 | 333 | ||
333 | bool addCat() { return addCatBut->isChecked(); } | 334 | bool addCat() { return addCatBut->isChecked(); } |
334 | private: | 335 | private: |
335 | QRadioButton* addCatBut; | 336 | QRadioButton* addCatBut; |
336 | }; | 337 | }; |
337 | 338 | ||
338 | 339 | ||
339 | 340 | ||
340 | CalendarView::CalendarView( CalendarResources *calendar, | 341 | CalendarView::CalendarView( CalendarResources *calendar, |
341 | QWidget *parent, const char *name ) | 342 | QWidget *parent, const char *name ) |
342 | : CalendarViewBase( parent, name ), | 343 | : CalendarViewBase( parent, name ), |
343 | mCalendar( calendar ), | 344 | mCalendar( calendar ), |
344 | mResourceManager( calendar->resourceManager() ) | 345 | mResourceManager( calendar->resourceManager() ) |
345 | { | 346 | { |
346 | 347 | ||
347 | mEventEditor = 0; | 348 | mEventEditor = 0; |
348 | mTodoEditor = 0; | 349 | mTodoEditor = 0; |
349 | 350 | ||
350 | init(); | 351 | init(); |
351 | } | 352 | } |
352 | 353 | ||
353 | CalendarView::CalendarView( Calendar *calendar, | 354 | CalendarView::CalendarView( Calendar *calendar, |
354 | QWidget *parent, const char *name ) | 355 | QWidget *parent, const char *name ) |
355 | : CalendarViewBase( parent, name ), | 356 | : CalendarViewBase( parent, name ), |
356 | mCalendar( calendar ), | 357 | mCalendar( calendar ), |
357 | mResourceManager( 0 ) | 358 | mResourceManager( 0 ) |
358 | { | 359 | { |
359 | 360 | ||
360 | mEventEditor = 0; | 361 | mEventEditor = 0; |
361 | mTodoEditor = 0; | 362 | mTodoEditor = 0; |
362 | init(); | 363 | init(); |
363 | } | 364 | } |
364 | 365 | ||
365 | void CalendarView::init() | 366 | void CalendarView::init() |
366 | { | 367 | { |
367 | mNextAlarmDateTime = QDateTime::currentDateTime(); | 368 | mNextAlarmDateTime = QDateTime::currentDateTime(); |
368 | setFocusPolicy ( NoFocus ); | 369 | setFocusPolicy ( NoFocus ); |
369 | mViewerCallerIsSearchDialog = false; | 370 | mViewerCallerIsSearchDialog = false; |
370 | mBlockShowDates = false; | 371 | mBlockShowDates = false; |
371 | 372 | ||
372 | mDatePickerMode = 0; | 373 | mDatePickerMode = 0; |
373 | mCurrentSyncDevice = ""; | 374 | mCurrentSyncDevice = ""; |
374 | mViewManager = new KOViewManager( this ); | 375 | mViewManager = new KOViewManager( this ); |
375 | mDialogManager = new KODialogManager( this ); | 376 | mDialogManager = new KODialogManager( this ); |
376 | mEventViewerDialog = 0; | 377 | mEventViewerDialog = 0; |
377 | mModified = false; | 378 | mModified = false; |
378 | mReadOnly = false; | 379 | mReadOnly = false; |
379 | mSelectedIncidence = 0; | 380 | mSelectedIncidence = 0; |
380 | mCalPrinter = 0; | 381 | mCalPrinter = 0; |
381 | mFilters.setAutoDelete(true); | 382 | mFilters.setAutoDelete(true); |
382 | 383 | ||
383 | mCalendar->registerObserver( this ); | 384 | mCalendar->registerObserver( this ); |
384 | // TODO: Make sure that view is updated, when calendar is changed. | 385 | // TODO: Make sure that view is updated, when calendar is changed. |
385 | 386 | ||
386 | mStorage = new FileStorage( mCalendar ); | 387 | mStorage = new FileStorage( mCalendar ); |
387 | mNavigator = new DateNavigator( this, "datevav", mViewManager ); | 388 | mNavigator = new DateNavigator( this, "datevav", mViewManager ); |
388 | 389 | ||
389 | QBoxLayout *topLayout = (QBoxLayout*)layout(); | 390 | QBoxLayout *topLayout = (QBoxLayout*)layout(); |
390 | #ifndef KORG_NOSPLITTER | 391 | #ifndef KORG_NOSPLITTER |
391 | // create the main layout frames. | 392 | // create the main layout frames. |
392 | mPanner = new QSplitter(QSplitter::Horizontal,this,"CalendarView::Panner"); | 393 | mPanner = new QSplitter(QSplitter::Horizontal,this,"CalendarView::Panner"); |
393 | topLayout->addWidget(mPanner); | 394 | topLayout->addWidget(mPanner); |
394 | 395 | ||
395 | mLeftSplitter = new QSplitter(QSplitter::Vertical,mPanner, | 396 | mLeftSplitter = new QSplitter(QSplitter::Vertical,mPanner, |
396 | "CalendarView::LeftFrame"); | 397 | "CalendarView::LeftFrame"); |
397 | mPanner->setResizeMode(mLeftSplitter,QSplitter::KeepSize); | 398 | mPanner->setResizeMode(mLeftSplitter,QSplitter::KeepSize); |
398 | 399 | ||
399 | mDateNavigator = new DateNavigatorContainer( mLeftSplitter, | 400 | mDateNavigator = new DateNavigatorContainer( mLeftSplitter, |
400 | "CalendarView::DateNavigator" ); | 401 | "CalendarView::DateNavigator" ); |
401 | 402 | ||
402 | mLeftSplitter->setResizeMode(mDateNavigator,QSplitter::KeepSize); | 403 | mLeftSplitter->setResizeMode(mDateNavigator,QSplitter::KeepSize); |
403 | mTodoList = new KOTodoView(mCalendar, mLeftSplitter, "todolist_small2"); | 404 | mTodoList = new KOTodoView(mCalendar, mLeftSplitter, "todolist_small2"); |
404 | mTodoList->setNavigator( mNavigator ); | 405 | mTodoList->setNavigator( mNavigator ); |
405 | mFilterView = new KOFilterView(&mFilters,mLeftSplitter,"CalendarView::FilterView"); | 406 | mFilterView = new KOFilterView(&mFilters,mLeftSplitter,"CalendarView::FilterView"); |
406 | 407 | ||
407 | #ifdef KORG_NORESOURCEVIEW | 408 | #ifdef KORG_NORESOURCEVIEW |
408 | mResourceView = 0; | 409 | mResourceView = 0; |
409 | #else | 410 | #else |
410 | if ( mResourceManager ) { | 411 | if ( mResourceManager ) { |
411 | mResourceView = new ResourceView( mResourceManager, mLeftSplitter ); | 412 | mResourceView = new ResourceView( mResourceManager, mLeftSplitter ); |
412 | mResourceView->updateView(); | 413 | mResourceView->updateView(); |
413 | connect( mResourceView, SIGNAL( resourcesChanged() ), | 414 | connect( mResourceView, SIGNAL( resourcesChanged() ), |
414 | SLOT( updateView() ) ); | 415 | SLOT( updateView() ) ); |
415 | } else { | 416 | } else { |
416 | mResourceView = 0; | 417 | mResourceView = 0; |
417 | } | 418 | } |
418 | #endif | 419 | #endif |
419 | QWidget *rightBox = new QWidget( mPanner ); | 420 | QWidget *rightBox = new QWidget( mPanner ); |
420 | QBoxLayout *rightLayout = new QVBoxLayout( rightBox ); | 421 | QBoxLayout *rightLayout = new QVBoxLayout( rightBox ); |
421 | 422 | ||
422 | mRightFrame = new QWidgetStack( rightBox ); | 423 | mRightFrame = new QWidgetStack( rightBox ); |
423 | rightLayout->addWidget( mRightFrame, 1 ); | 424 | rightLayout->addWidget( mRightFrame, 1 ); |
424 | 425 | ||
425 | mLeftFrame = mLeftSplitter; | 426 | mLeftFrame = mLeftSplitter; |
426 | #else | 427 | #else |
427 | //QWidget *mainBox = new QWidget( this ); | 428 | //QWidget *mainBox = new QWidget( this ); |
428 | //QWidget *leftFrame = new QWidget( mainBox ); | 429 | //QWidget *leftFrame = new QWidget( mainBox ); |
429 | //QBoxLayout * mainBoxLayout; | 430 | //QBoxLayout * mainBoxLayout; |
430 | if ( KOPrefs::instance()->mVerticalScreen ) { | 431 | if ( KOPrefs::instance()->mVerticalScreen ) { |
431 | //mainBoxLayout = new QVBoxLayout(mainBox); | 432 | //mainBoxLayout = new QVBoxLayout(mainBox); |
432 | //leftFrameLayout = new QHBoxLayout(leftFrame ); | 433 | //leftFrameLayout = new QHBoxLayout(leftFrame ); |
433 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Vertical, this ); | 434 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Vertical, this ); |
434 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | 435 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); |
435 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, mMainFrame);; | 436 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, mMainFrame);; |
436 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); | 437 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Right ); |
437 | } else { | 438 | } else { |
438 | //mainBoxLayout = new QHBoxLayout(mainBox); | 439 | //mainBoxLayout = new QHBoxLayout(mainBox); |
439 | //leftFrameLayout = new QVBoxLayout(leftFrame ); | 440 | //leftFrameLayout = new QVBoxLayout(leftFrame ); |
440 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, this); | 441 | mMainFrame = new KDGanttMinimizeSplitter( Qt::Horizontal, this); |
441 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Left); | 442 | mMainFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Left); |
442 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Vertical, mMainFrame); | 443 | mLeftFrame = new KDGanttMinimizeSplitter( Qt::Vertical, mMainFrame); |
443 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | 444 | mLeftFrame->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); |
444 | } | 445 | } |
445 | mMainFrame->setSizePolicy( QSizePolicy (QSizePolicy::Expanding,QSizePolicy::Expanding) ); | 446 | mMainFrame->setSizePolicy( QSizePolicy (QSizePolicy::Expanding,QSizePolicy::Expanding) ); |
446 | //QBoxLayout * leftFrameLayout; | 447 | //QBoxLayout * leftFrameLayout; |
447 | topLayout->addWidget( mMainFrame ); | 448 | topLayout->addWidget( mMainFrame ); |
448 | #ifdef DESKTOP_VERSION | 449 | #ifdef DESKTOP_VERSION |
449 | mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); | 450 | mDateScrollBar = new QScrollBar ( 0, 364, 1,30, 200,QScrollBar::Horizontal, this ); |
450 | topLayout->addWidget( mDateScrollBar ); | 451 | topLayout->addWidget( mDateScrollBar ); |
451 | connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); | 452 | connect( mDateScrollBar, SIGNAL( valueChanged ( int ) ),this, SLOT( scrollBarValue( int )) ); |
452 | if ( QApplication::desktop()->width() < 800 ) | 453 | if ( QApplication::desktop()->width() < 800 ) |
453 | mDateScrollBar->hide(); | 454 | mDateScrollBar->hide(); |
454 | #endif | 455 | #endif |
455 | //mainBoxLayout->addWidget (mLeftFrame); | 456 | //mainBoxLayout->addWidget (mLeftFrame); |
456 | mDateNavigator = new DateNavigatorContainer( mLeftFrame, | 457 | mDateNavigator = new DateNavigatorContainer( mLeftFrame, |
457 | "CalendarView::DateNavigator" ); | 458 | "CalendarView::DateNavigator" ); |
458 | #if 0 | 459 | #if 0 |
459 | // FIXME | 460 | // FIXME |
460 | mDateNavigator = new KDateNavigator(mLeftFrame, mCalendar, TRUE, | 461 | mDateNavigator = new KDateNavigator(mLeftFrame, mCalendar, TRUE, |
461 | "CalendarView::DateNavigator", QDate::currentDate()); | 462 | "CalendarView::DateNavigator", QDate::currentDate()); |
462 | #endif | 463 | #endif |
463 | // mDateNavigator->blockSignals( true ); | 464 | // mDateNavigator->blockSignals( true ); |
464 | //leftFrameLayout->addWidget( mDateNavigator ); | 465 | //leftFrameLayout->addWidget( mDateNavigator ); |
465 | mTodoList = new KOTodoView(mCalendar, mLeftFrame, "todolistsmall"); | 466 | mTodoList = new KOTodoView(mCalendar, mLeftFrame, "todolistsmall"); |
466 | mFilterView = new KOFilterView(&mFilters,mLeftFrame,"CalendarView::FilterView"); | 467 | mFilterView = new KOFilterView(&mFilters,mLeftFrame,"CalendarView::FilterView"); |
467 | mCalEditView = new KOCalEditView(mLeftFrame,"CalendarView::CaleditView"); | 468 | mCalEditView = new KOCalEditView(mLeftFrame,"CalendarView::CaleditView"); |
468 | connect( mCalEditView, SIGNAL( calendarEnabled (int,bool) ),mCalendar, SLOT( setCalendarEnabled(int,bool)) ); | 469 | connect( mCalEditView, SIGNAL( calendarEnabled (int,bool) ),mCalendar, SLOT( setCalendarEnabled(int,bool)) ); |
469 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); | 470 | connect( mCalEditView, SIGNAL( alarmEnabled(int,bool) ),mCalendar, SLOT( setAlarmEnabled(int,bool)) ); |
470 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),mCalendar, SLOT( setReadOnly(int,bool)) ); | 471 | connect( mCalEditView, SIGNAL( calendarReadonly(int,bool) ),mCalendar, SLOT( setReadOnly(int,bool)) ); |
471 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); | 472 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mCalendar, SLOT( setDefaultCalendar(int)) ); |
472 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); | 473 | connect( mCalEditView, SIGNAL( setCalendarDefault(int) ),mViewManager, SLOT( setDefaultCalendar(int)) ); |
473 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); | 474 | connect( mCalEditView, SIGNAL( removeCalendar(int) ),mCalendar, SLOT( setCalendarRemove(int)) ); |
474 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); | 475 | connect( mCalEditView, SIGNAL( calendarAdded(int) ),this, SLOT( addCalendarId(int)) ); |
475 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); | 476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateView()) ); |
476 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); | 477 | connect( mCalEditView, SIGNAL( needsUpdate() ),this, SLOT( updateUnmanagedViews()) ); |
477 | 478 | ||
478 | mTodoList->setNavigator( mNavigator ); | 479 | mTodoList->setNavigator( mNavigator ); |
479 | #if 0 | 480 | #if 0 |
480 | if ( QApplication::desktop()->width() < 480 ) { | 481 | if ( QApplication::desktop()->width() < 480 ) { |
481 | leftFrameLayout->addWidget(mFilterView); | 482 | leftFrameLayout->addWidget(mFilterView); |
482 | leftFrameLayout->addWidget(mTodoList, 2 ); | 483 | leftFrameLayout->addWidget(mTodoList, 2 ); |
483 | 484 | ||
484 | } else { | 485 | } else { |
485 | leftFrameLayout->addWidget(mTodoList,2 ); | 486 | leftFrameLayout->addWidget(mTodoList,2 ); |
486 | leftFrameLayout->addWidget(mFilterView ); | 487 | leftFrameLayout->addWidget(mFilterView ); |
487 | } | 488 | } |
488 | #endif | 489 | #endif |
489 | mFilterView->hide(); | 490 | mFilterView->hide(); |
490 | mCalEditView->hide(); | 491 | mCalEditView->hide(); |
491 | QWidget *rightBox = new QWidget( mMainFrame ); | 492 | QWidget *rightBox = new QWidget( mMainFrame ); |
492 | //mainBoxLayout->addWidget ( rightBox, 10 ); | 493 | //mainBoxLayout->addWidget ( rightBox, 10 ); |
493 | QBoxLayout *rightLayout = new QVBoxLayout( rightBox ); | 494 | QBoxLayout *rightLayout = new QVBoxLayout( rightBox ); |
494 | mRightFrame = new QWidgetStack( rightBox ); | 495 | mRightFrame = new QWidgetStack( rightBox ); |
495 | rightLayout->addWidget( mRightFrame, 10 ); | 496 | rightLayout->addWidget( mRightFrame, 10 ); |
496 | 497 | ||
497 | //mLeftFrame = (QWidget *)leftFrame; | 498 | //mLeftFrame = (QWidget *)leftFrame; |
498 | if ( KOPrefs::instance()->mVerticalScreen ) { | 499 | if ( KOPrefs::instance()->mVerticalScreen ) { |
499 | //mDateNavigator->setFixedHeight( mDateNavigator->sizeHint().height() ); | 500 | //mDateNavigator->setFixedHeight( mDateNavigator->sizeHint().height() ); |
500 | //mDateNavigator->setMinimumWidth( mDateNavigator->sizeHint().width() ); | 501 | //mDateNavigator->setMinimumWidth( mDateNavigator->sizeHint().width() ); |
501 | //mTodoList->setFixedHeight( mDateNavigator->sizeHint().height() ); | 502 | //mTodoList->setFixedHeight( mDateNavigator->sizeHint().height() ); |
502 | //leftFrame->setFixedHeight( mDateNavigator->sizeHint().height() ); | 503 | //leftFrame->setFixedHeight( mDateNavigator->sizeHint().height() ); |
503 | } else { | 504 | } else { |
504 | //mDateNavigator->setFixedWidth( mDateNavigator->sizeHint().width() ); | 505 | //mDateNavigator->setFixedWidth( mDateNavigator->sizeHint().width() ); |
505 | //mTodoList->setFixedWidth( mDateNavigator->sizeHint().width() ); | 506 | //mTodoList->setFixedWidth( mDateNavigator->sizeHint().width() ); |
506 | //leftFrame->setFixedWidth( mDateNavigator->sizeHint().width() ); | 507 | //leftFrame->setFixedWidth( mDateNavigator->sizeHint().width() ); |
507 | } | 508 | } |
508 | if ( !KOPrefs::instance()->mShowDateNavigator) | 509 | if ( !KOPrefs::instance()->mShowDateNavigator) |
509 | mDateNavigator->hide(); | 510 | mDateNavigator->hide(); |
510 | //qDebug("Calendarview Size %d %d ", width(), height()); | 511 | //qDebug("Calendarview Size %d %d ", width(), height()); |
511 | #endif | 512 | #endif |
512 | 513 | ||
513 | connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), | 514 | connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), |
514 | SLOT( showDates( const KCal::DateList & ) ) ); | 515 | SLOT( showDates( const KCal::DateList & ) ) ); |
515 | 516 | ||
516 | connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), | 517 | connect( mNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), |
517 | mDateNavigator, SLOT( selectDates( const KCal::DateList & ) ) ); | 518 | mDateNavigator, SLOT( selectDates( const KCal::DateList & ) ) ); |
518 | 519 | ||
519 | 520 | ||
520 | 521 | ||
521 | connect( mDateNavigator, SIGNAL( showMonth( const QDate & ) ), | 522 | connect( mDateNavigator, SIGNAL( showMonth( const QDate & ) ), |
522 | mViewManager, SLOT( showMonth( const QDate & ) ) ); | 523 | mViewManager, SLOT( showMonth( const QDate & ) ) ); |
523 | 524 | ||
524 | connect( mDateNavigator, SIGNAL( weekClicked( const QDate & ) ), | 525 | connect( mDateNavigator, SIGNAL( weekClicked( const QDate & ) ), |
525 | mNavigator, SLOT( selectWeek( const QDate & ) ) ); | 526 | mNavigator, SLOT( selectWeek( const QDate & ) ) ); |
526 | 527 | ||
527 | connect( mDateNavigator, SIGNAL( goPrevYear() ), | 528 | connect( mDateNavigator, SIGNAL( goPrevYear() ), |
528 | mNavigator, SLOT( selectPreviousYear() ) ); | 529 | mNavigator, SLOT( selectPreviousYear() ) ); |
529 | connect( mDateNavigator, SIGNAL( goNextYear() ), | 530 | connect( mDateNavigator, SIGNAL( goNextYear() ), |
530 | mNavigator, SLOT( selectNextYear() ) ); | 531 | mNavigator, SLOT( selectNextYear() ) ); |
531 | connect( mDateNavigator, SIGNAL( goPrevMonth() ), | 532 | connect( mDateNavigator, SIGNAL( goPrevMonth() ), |
532 | mNavigator, SLOT( selectPreviousMonth() ) ); | 533 | mNavigator, SLOT( selectPreviousMonth() ) ); |
533 | connect( mDateNavigator, SIGNAL( goNextMonth() ), | 534 | connect( mDateNavigator, SIGNAL( goNextMonth() ), |
534 | mNavigator, SLOT( selectNextMonth() ) ); | 535 | mNavigator, SLOT( selectNextMonth() ) ); |
535 | 536 | ||
536 | connect( mDateNavigator, SIGNAL( goPrevious() ), | 537 | connect( mDateNavigator, SIGNAL( goPrevious() ), |
537 | mNavigator, SLOT( selectPrevious() ) ); | 538 | mNavigator, SLOT( selectPrevious() ) ); |
538 | connect( mDateNavigator, SIGNAL( goNext() ), | 539 | connect( mDateNavigator, SIGNAL( goNext() ), |
539 | mNavigator, SLOT( selectNext() ) ); | 540 | mNavigator, SLOT( selectNext() ) ); |
540 | connect( mDateNavigator, SIGNAL( monthSelected ( int ) ), | 541 | connect( mDateNavigator, SIGNAL( monthSelected ( int ) ), |
541 | mNavigator, SLOT( slotMonthSelect( int ) ) ); | 542 | mNavigator, SLOT( slotMonthSelect( int ) ) ); |
542 | 543 | ||
543 | connect( mDateNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), | 544 | connect( mDateNavigator, SIGNAL( datesSelected( const KCal::DateList & ) ), |
544 | mNavigator, SLOT( selectDates( const KCal::DateList & ) ) ); | 545 | mNavigator, SLOT( selectDates( const KCal::DateList & ) ) ); |
545 | #if 0 | 546 | #if 0 |
546 | connect( mDateNavigator, SIGNAL( incidenceDropped( Incidence * ) ), | 547 | connect( mDateNavigator, SIGNAL( incidenceDropped( Incidence * ) ), |
547 | SLOT( incidenceAdded( Incidence *) ) ); | 548 | SLOT( incidenceAdded( Incidence *) ) ); |
548 | #endif | 549 | #endif |
549 | // connect(mDateNavigator,SIGNAL(dayPassed(QDate)),SLOT(updateView())); | 550 | // connect(mDateNavigator,SIGNAL(dayPassed(QDate)),SLOT(updateView())); |
550 | 551 | ||
551 | connect( this, SIGNAL( configChanged() ), | 552 | connect( this, SIGNAL( configChanged() ), |
552 | mDateNavigator, SLOT( updateConfig() ) ); | 553 | mDateNavigator, SLOT( updateConfig() ) ); |
553 | 554 | ||
554 | connect( mTodoList, SIGNAL( newTodoSignal() ), | 555 | connect( mTodoList, SIGNAL( newTodoSignal() ), |
555 | SLOT( newTodo() ) ); | 556 | SLOT( newTodo() ) ); |
556 | connect( mTodoList, SIGNAL( newSubTodoSignal( Todo *) ), | 557 | connect( mTodoList, SIGNAL( newSubTodoSignal( Todo *) ), |
557 | SLOT( newSubTodo( Todo * ) ) ); | 558 | SLOT( newSubTodo( Todo * ) ) ); |
558 | connect( mTodoList, SIGNAL( editTodoSignal( Todo * ) ), | 559 | connect( mTodoList, SIGNAL( editTodoSignal( Todo * ) ), |
559 | SLOT( editTodo( Todo * ) ) ); | 560 | SLOT( editTodo( Todo * ) ) ); |
560 | connect( mTodoList, SIGNAL( showTodoSignal( Todo * ) ), | 561 | connect( mTodoList, SIGNAL( showTodoSignal( Todo * ) ), |
561 | SLOT( showTodo( Todo *) ) ); | 562 | SLOT( showTodo( Todo *) ) ); |
562 | connect( mTodoList, SIGNAL( deleteTodoSignal( Todo *) ), | 563 | connect( mTodoList, SIGNAL( deleteTodoSignal( Todo *) ), |
563 | SLOT( deleteTodo( Todo *) ) ); | 564 | SLOT( deleteTodo( Todo *) ) ); |
564 | connect( this, SIGNAL( configChanged()), mTodoList, SLOT( updateConfig() ) ); | 565 | connect( this, SIGNAL( configChanged()), mTodoList, SLOT( updateConfig() ) ); |
565 | connect( mTodoList, SIGNAL( purgeCompletedSignal() ), | 566 | connect( mTodoList, SIGNAL( purgeCompletedSignal() ), |
566 | SLOT( purgeCompleted() ) ); | 567 | SLOT( purgeCompleted() ) ); |
567 | connect( mTodoList, SIGNAL( todoModifiedSignal( Todo *, int ) ), | 568 | connect( mTodoList, SIGNAL( todoModifiedSignal( Todo *, int ) ), |
568 | SIGNAL( todoModified( Todo *, int ) ) ); | 569 | SIGNAL( todoModified( Todo *, int ) ) ); |
569 | 570 | ||
570 | connect( mTodoList, SIGNAL( cloneTodoSignal( Incidence * ) ), | 571 | connect( mTodoList, SIGNAL( cloneTodoSignal( Incidence * ) ), |
571 | this, SLOT ( cloneIncidence( Incidence * ) ) ); | 572 | this, SLOT ( cloneIncidence( Incidence * ) ) ); |
572 | connect( mTodoList, SIGNAL( cancelTodoSignal( Incidence * ) ), | 573 | connect( mTodoList, SIGNAL( cancelTodoSignal( Incidence * ) ), |
573 | this, SLOT (cancelIncidence( Incidence * ) ) ); | 574 | this, SLOT (cancelIncidence( Incidence * ) ) ); |
574 | 575 | ||
575 | connect( mTodoList, SIGNAL( moveTodoSignal( Incidence * ) ), | 576 | connect( mTodoList, SIGNAL( moveTodoSignal( Incidence * ) ), |
576 | this, SLOT ( moveIncidence( Incidence * ) ) ); | 577 | this, SLOT ( moveIncidence( Incidence * ) ) ); |
577 | connect( mTodoList, SIGNAL( beamTodoSignal( Incidence * ) ), | 578 | connect( mTodoList, SIGNAL( beamTodoSignal( Incidence * ) ), |
578 | this, SLOT ( beamIncidence( Incidence * ) ) ); | 579 | this, SLOT ( beamIncidence( Incidence * ) ) ); |
579 | 580 | ||
580 | connect( mTodoList, SIGNAL( unparentTodoSignal( Todo * ) ), | 581 | connect( mTodoList, SIGNAL( unparentTodoSignal( Todo * ) ), |
581 | this, SLOT ( todo_unsub( Todo * ) ) ); | 582 | this, SLOT ( todo_unsub( Todo * ) ) ); |
582 | 583 | ||
583 | connect( mTodoList, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), | 584 | connect( mTodoList, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), |
584 | this, SLOT ( todo_resub( Todo *,Todo * ) ) ); | 585 | this, SLOT ( todo_resub( Todo *,Todo * ) ) ); |
585 | connect( this, SIGNAL( todoModified( Todo *, int )), mTodoList, | 586 | connect( this, SIGNAL( todoModified( Todo *, int )), mTodoList, |
586 | SLOT( updateTodo( Todo *, int ) ) ); | 587 | SLOT( updateTodo( Todo *, int ) ) ); |
587 | connect( this, SIGNAL( todoModified( Todo *, int )), this, | 588 | connect( this, SIGNAL( todoModified( Todo *, int )), this, |
588 | SLOT( changeTodoDisplay( Todo *, int ) ) ); | 589 | SLOT( changeTodoDisplay( Todo *, int ) ) ); |
589 | 590 | ||
590 | 591 | ||
591 | connect( mFilterView, SIGNAL( filterChanged() ), SLOT( updateFilter() ) ); | 592 | connect( mFilterView, SIGNAL( filterChanged() ), SLOT( updateFilter() ) ); |
592 | connect( mFilterView, SIGNAL( editFilters() ), SLOT( editFilters() ) ); | 593 | connect( mFilterView, SIGNAL( editFilters() ), SLOT( editFilters() ) ); |
593 | connect( mCalendar, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addAlarm(const QDateTime &, const QString & ) ) ); | 594 | connect( mCalendar, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addAlarm(const QDateTime &, const QString & ) ) ); |
594 | connect( mCalendar, SIGNAL( removeAlarm(const QDateTime &, const QString & ) ), SLOT( removeAlarm(const QDateTime &, const QString & ) ) ); | 595 | connect( mCalendar, SIGNAL( removeAlarm(const QDateTime &, const QString & ) ), SLOT( removeAlarm(const QDateTime &, const QString & ) ) ); |
595 | 596 | ||
596 | 597 | ||
597 | 598 | ||
598 | 599 | ||
599 | 600 | ||
600 | connect(QApplication::clipboard(),SIGNAL(dataChanged()), | 601 | connect(QApplication::clipboard(),SIGNAL(dataChanged()), |
601 | SLOT(checkClipboard())); | 602 | SLOT(checkClipboard())); |
602 | connect( mTodoList,SIGNAL( incidenceSelected( Incidence * ) ), | 603 | connect( mTodoList,SIGNAL( incidenceSelected( Incidence * ) ), |
603 | SLOT( processTodoListSelection( Incidence * ) ) ); | 604 | SLOT( processTodoListSelection( Incidence * ) ) ); |
604 | connect(mTodoList,SIGNAL(isModified(bool)),SLOT(setModified(bool))); | 605 | connect(mTodoList,SIGNAL(isModified(bool)),SLOT(setModified(bool))); |
605 | 606 | ||
606 | // kdDebug() << "CalendarView::CalendarView() done" << endl; | 607 | // kdDebug() << "CalendarView::CalendarView() done" << endl; |
607 | 608 | ||
608 | mDateFrame = new QVBox(0,0,WType_Popup); | 609 | mDateFrame = new QVBox(0,0,WType_Popup); |
609 | //mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); | 610 | //mDateFrame->setFrameStyle(QFrame::PopupPanel | QFrame::Raised); |
610 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); | 611 | mDateFrame->setFrameStyle( QFrame::WinPanel |QFrame::Raised ); |
611 | mDateFrame->setLineWidth(3); | 612 | mDateFrame->setLineWidth(3); |
612 | mDateFrame->hide(); | 613 | mDateFrame->hide(); |
613 | mDateFrame->setCaption( i18n( "Pick a date to display")); | 614 | mDateFrame->setCaption( i18n( "Pick a date to display")); |
614 | mDatePicker = new KDatePicker ( mDateFrame , QDate::currentDate() ); | 615 | mDatePicker = new KDatePicker ( mDateFrame , QDate::currentDate() ); |
615 | 616 | ||
616 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(slotSelectPickerDate(QDate))); | 617 | connect(mDatePicker,SIGNAL(dateSelected(QDate)),SLOT(slotSelectPickerDate(QDate))); |
617 | 618 | ||
618 | mEventEditor = mDialogManager->getEventEditor(); | 619 | mEventEditor = mDialogManager->getEventEditor(); |
619 | mTodoEditor = mDialogManager->getTodoEditor(); | 620 | mTodoEditor = mDialogManager->getTodoEditor(); |
620 | 621 | ||
621 | mFlagEditDescription = false; | 622 | mFlagEditDescription = false; |
622 | 623 | ||
623 | mSuspendTimer = new QTimer( this ); | 624 | mSuspendTimer = new QTimer( this ); |
624 | mAlarmTimer = new QTimer( this ); | 625 | mAlarmTimer = new QTimer( this ); |
625 | mRecheckAlarmTimer = new QTimer( this ); | 626 | mRecheckAlarmTimer = new QTimer( this ); |
626 | connect( mRecheckAlarmTimer, SIGNAL( timeout () ), SLOT( recheckTimerAlarm() ) ); | 627 | connect( mRecheckAlarmTimer, SIGNAL( timeout () ), SLOT( recheckTimerAlarm() ) ); |
627 | connect( mSuspendTimer, SIGNAL( timeout () ), SLOT( suspendAlarm() ) ); | 628 | connect( mSuspendTimer, SIGNAL( timeout () ), SLOT( suspendAlarm() ) ); |
628 | connect( mAlarmTimer, SIGNAL( timeout () ), SLOT( timerAlarm() ) ); | 629 | connect( mAlarmTimer, SIGNAL( timeout () ), SLOT( timerAlarm() ) ); |
629 | mAlarmDialog = new AlarmDialog( this ); | 630 | mAlarmDialog = new AlarmDialog( this ); |
630 | connect( mAlarmDialog, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addSuspendAlarm(const QDateTime &, const QString & ) ) ); | 631 | connect( mAlarmDialog, SIGNAL( addAlarm(const QDateTime &, const QString & ) ), SLOT( addSuspendAlarm(const QDateTime &, const QString & ) ) ); |
631 | mAlarmDialog->setServerNotification( false ); | 632 | mAlarmDialog->setServerNotification( false ); |
632 | mAlarmDialog->setSuspendTime( KOPrefs::instance()->mAlarmSuspendTime ); | 633 | mAlarmDialog->setSuspendTime( KOPrefs::instance()->mAlarmSuspendTime ); |
633 | 634 | ||
634 | 635 | ||
635 | #ifndef DESKTOP_VERSION | 636 | #ifndef DESKTOP_VERSION |
636 | //US listen for arriving address resultsets | 637 | //US listen for arriving address resultsets |
637 | connect(ExternalAppHandler::instance(), SIGNAL(receivedBirthdayListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&)), | 638 | connect(ExternalAppHandler::instance(), SIGNAL(receivedBirthdayListEvent(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&)), |
638 | this, SLOT(insertBirthdays(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&))); | 639 | this, SLOT(insertBirthdays(const QString&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&, const QStringList&))); |
639 | #endif | 640 | #endif |
640 | mDateNavigator->setCalendar( mCalendar ); | 641 | mDateNavigator->setCalendar( mCalendar ); |
641 | } | 642 | } |
642 | 643 | ||
643 | 644 | ||
644 | CalendarView::~CalendarView() | 645 | CalendarView::~CalendarView() |
645 | { | 646 | { |
646 | // kdDebug() << "~CalendarView()" << endl; | 647 | // kdDebug() << "~CalendarView()" << endl; |
647 | //qDebug("CalendarView::~CalendarView() "); | 648 | //qDebug("CalendarView::~CalendarView() "); |
648 | delete mDialogManager; | 649 | delete mDialogManager; |
649 | delete mViewManager; | 650 | delete mViewManager; |
650 | delete mStorage; | 651 | delete mStorage; |
651 | delete mDateFrame ; | 652 | delete mDateFrame ; |
652 | delete mEventViewerDialog; | 653 | delete mEventViewerDialog; |
653 | //kdDebug() << "~CalendarView() done" << endl; | 654 | //kdDebug() << "~CalendarView() done" << endl; |
654 | } | 655 | } |
655 | void CalendarView::setScrollBarStep(int val ) | 656 | void CalendarView::setScrollBarStep(int val ) |
656 | { | 657 | { |
657 | #ifdef DESKTOP_VERSION | 658 | #ifdef DESKTOP_VERSION |
658 | mDateScrollBar->setLineStep ( val ); | 659 | mDateScrollBar->setLineStep ( val ); |
659 | #endif | 660 | #endif |
660 | } | 661 | } |
661 | void CalendarView::scrollBarValue(int val ) | 662 | void CalendarView::scrollBarValue(int val ) |
662 | { | 663 | { |
663 | #ifdef DESKTOP_VERSION | 664 | #ifdef DESKTOP_VERSION |
664 | if ( QApplication::desktop()->width() < 800 ) return; | 665 | if ( QApplication::desktop()->width() < 800 ) return; |
665 | static bool block = false; | 666 | static bool block = false; |
666 | if ( block ) return; | 667 | if ( block ) return; |
667 | block = true; | 668 | block = true; |
668 | val = val/mDateScrollBar->lineStep ()*mDateScrollBar->lineStep(); | 669 | val = val/mDateScrollBar->lineStep ()*mDateScrollBar->lineStep(); |
669 | //qDebug("VAL %d ",val ); | 670 | //qDebug("VAL %d ",val ); |
670 | int count = mNavigator->selectedDates().count(); | 671 | int count = mNavigator->selectedDates().count(); |
671 | int year = mNavigator->selectedDates().first().year(); | 672 | int year = mNavigator->selectedDates().first().year(); |
672 | int day = mNavigator->selectedDates().first().dayOfYear(); | 673 | int day = mNavigator->selectedDates().first().dayOfYear(); |
673 | if ( val == day -1 ) { | 674 | if ( val == day -1 ) { |
674 | block = false; | 675 | block = false; |
675 | return; | 676 | return; |
676 | } | 677 | } |
677 | QDate d ( year,1,1 ); | 678 | QDate d ( year,1,1 ); |
678 | mNavigator->selectDates( d.addDays( val ), count ); | 679 | mNavigator->selectDates( d.addDays( val ), count ); |
679 | block = false; | 680 | block = false; |
680 | #endif | 681 | #endif |
681 | 682 | ||
682 | } | 683 | } |
683 | 684 | ||
684 | void CalendarView::checkAlarms() | 685 | void CalendarView::checkAlarms() |
685 | { | 686 | { |
686 | KConfig *config = KOGlobals::config(); | 687 | KConfig *config = KOGlobals::config(); |
687 | config->setGroup( "AppRun" ); | 688 | config->setGroup( "AppRun" ); |
688 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); | 689 | QDateTime dt ( QDate (2005,1,1), QTime( 0,0,0 ) ); |
689 | int daysto = dt.daysTo( QDate::currentDate() ); | 690 | int daysto = dt.daysTo( QDate::currentDate() ); |
690 | int days = config->readNumEntry( "LatestProgramStopDays" , daysto); | 691 | int days = config->readNumEntry( "LatestProgramStopDays" , daysto); |
691 | dt = dt.addDays( days ); | 692 | dt = dt.addDays( days ); |
692 | int secto = dt.secsTo( QDateTime::currentDateTime() ); | 693 | int secto = dt.secsTo( QDateTime::currentDateTime() ); |
693 | int secs = config->readNumEntry( "LatestProgramStopSecs" , secto) - 30; | 694 | int secs = config->readNumEntry( "LatestProgramStopSecs" , secto) - 30; |
694 | //qDebug("KO: Reading program stop %d ", secs); | 695 | //qDebug("KO: Reading program stop %d ", secs); |
695 | //secs -= ( 3600 * 24*3 ); // debug only | 696 | //secs -= ( 3600 * 24*3 ); // debug only |
696 | QDateTime latest = dt.addSecs ( secs ); | 697 | QDateTime latest = dt.addSecs ( secs ); |
697 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); | 698 | qDebug("KO: Last termination on %s ", latest.toString().latin1()); |
698 | //qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); | 699 | //qDebug("KO: Current Time %s ",QDateTime::currentDateTime().toString().latin1() ); |
699 | QPtrList<Incidence> el = mCalendar->rawIncidences(); | 700 | QPtrList<Incidence> el = mCalendar->rawIncidences(); |
700 | QPtrList<Incidence> al; | 701 | QPtrList<Incidence> al; |
701 | Incidence* inL = el.first(); | 702 | Incidence* inL = el.first(); |
702 | QDateTime cur = QDateTime::currentDateTime().addSecs(-59); | 703 | QDateTime cur = QDateTime::currentDateTime().addSecs(-59); |
703 | qDebug("KO: Checking alarm until %s ", cur.toString().latin1()); | 704 | qDebug("KO: Checking alarm until %s ", cur.toString().latin1()); |
704 | while ( inL ) { | 705 | while ( inL ) { |
705 | bool ok = false; | 706 | bool ok = false; |
706 | int offset = 0; | 707 | int offset = 0; |
707 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; | 708 | QDateTime next = inL->getNextAlarmDateTime(& ok, &offset, latest ) ; |
708 | if ( ok ) { | 709 | if ( ok ) { |
@@ -2437,768 +2438,774 @@ void CalendarView::readFilterSettings(KConfig *config) | |||
2437 | ++it; | 2438 | ++it; |
2438 | } | 2439 | } |
2439 | 2440 | ||
2440 | if (mFilters.count() == 0) { | 2441 | if (mFilters.count() == 0) { |
2441 | CalFilter *filter = new CalFilter(i18n("Default")); | 2442 | CalFilter *filter = new CalFilter(i18n("Default")); |
2442 | mFilters.append(filter); | 2443 | mFilters.append(filter); |
2443 | } | 2444 | } |
2444 | mFilterView->updateFilters(); | 2445 | mFilterView->updateFilters(); |
2445 | config->setGroup("FilterView"); | 2446 | config->setGroup("FilterView"); |
2446 | 2447 | ||
2447 | mFilterView->blockSignals(true); | 2448 | mFilterView->blockSignals(true); |
2448 | mFilterView->setFiltersEnabled(config->readBoolEntry("FilterEnabled")); | 2449 | mFilterView->setFiltersEnabled(config->readBoolEntry("FilterEnabled")); |
2449 | mFilterView->setSelectedFilter(config->readEntry("Current Filter")); | 2450 | mFilterView->setSelectedFilter(config->readEntry("Current Filter")); |
2450 | mFilterView->blockSignals(false); | 2451 | mFilterView->blockSignals(false); |
2451 | // We do it manually to avoid it being done twice by the above calls | 2452 | // We do it manually to avoid it being done twice by the above calls |
2452 | updateFilter(); | 2453 | updateFilter(); |
2453 | } | 2454 | } |
2454 | 2455 | ||
2455 | void CalendarView::writeFilterSettings(KConfig *config) | 2456 | void CalendarView::writeFilterSettings(KConfig *config) |
2456 | { | 2457 | { |
2457 | // kdDebug() << "CalendarView::writeFilterSettings()" << endl; | 2458 | // kdDebug() << "CalendarView::writeFilterSettings()" << endl; |
2458 | 2459 | ||
2459 | QStringList filterList; | 2460 | QStringList filterList; |
2460 | 2461 | ||
2461 | CalFilter *filter = mFilters.first(); | 2462 | CalFilter *filter = mFilters.first(); |
2462 | while(filter) { | 2463 | while(filter) { |
2463 | // kdDebug() << " fn: " << filter->name() << endl; | 2464 | // kdDebug() << " fn: " << filter->name() << endl; |
2464 | filterList << filter->name(); | 2465 | filterList << filter->name(); |
2465 | config->setGroup("Filter_" + filter->name().utf8()); | 2466 | config->setGroup("Filter_" + filter->name().utf8()); |
2466 | config->writeEntry("Criteria",filter->criteria()); | 2467 | config->writeEntry("Criteria",filter->criteria()); |
2467 | config->writeEntry("CategoryList",filter->categoryList()); | 2468 | config->writeEntry("CategoryList",filter->categoryList()); |
2468 | filter = mFilters.next(); | 2469 | filter = mFilters.next(); |
2469 | } | 2470 | } |
2470 | config->setGroup("General"); | 2471 | config->setGroup("General"); |
2471 | config->writeEntry("CalendarFilters",filterList); | 2472 | config->writeEntry("CalendarFilters",filterList); |
2472 | 2473 | ||
2473 | config->setGroup("FilterView"); | 2474 | config->setGroup("FilterView"); |
2474 | config->writeEntry("FilterEnabled",mFilterView->filtersEnabled()); | 2475 | config->writeEntry("FilterEnabled",mFilterView->filtersEnabled()); |
2475 | config->writeEntry("Current Filter",mFilterView->selectedFilter()->name()); | 2476 | config->writeEntry("Current Filter",mFilterView->selectedFilter()->name()); |
2476 | } | 2477 | } |
2477 | 2478 | ||
2478 | 2479 | ||
2479 | void CalendarView::goToday() | 2480 | void CalendarView::goToday() |
2480 | { | 2481 | { |
2481 | if ( mViewManager->currentView()->isMonthView() ) | 2482 | if ( mViewManager->currentView()->isMonthView() ) |
2482 | mNavigator->selectTodayMonth(); | 2483 | mNavigator->selectTodayMonth(); |
2483 | else | 2484 | else |
2484 | mNavigator->selectToday(); | 2485 | mNavigator->selectToday(); |
2485 | } | 2486 | } |
2486 | 2487 | ||
2487 | void CalendarView::goNext() | 2488 | void CalendarView::goNext() |
2488 | { | 2489 | { |
2489 | mNavigator->selectNext(); | 2490 | mNavigator->selectNext(); |
2490 | } | 2491 | } |
2491 | 2492 | ||
2492 | void CalendarView::goPrevious() | 2493 | void CalendarView::goPrevious() |
2493 | { | 2494 | { |
2494 | mNavigator->selectPrevious(); | 2495 | mNavigator->selectPrevious(); |
2495 | } | 2496 | } |
2496 | void CalendarView::goNextMonth() | 2497 | void CalendarView::goNextMonth() |
2497 | { | 2498 | { |
2498 | mNavigator->selectNextMonth(); | 2499 | mNavigator->selectNextMonth(); |
2499 | } | 2500 | } |
2500 | 2501 | ||
2501 | void CalendarView::goPreviousMonth() | 2502 | void CalendarView::goPreviousMonth() |
2502 | { | 2503 | { |
2503 | mNavigator->selectPreviousMonth(); | 2504 | mNavigator->selectPreviousMonth(); |
2504 | } | 2505 | } |
2505 | 2506 | ||
2506 | void CalendarView::updateConfig() | 2507 | void CalendarView::updateConfig() |
2507 | { | 2508 | { |
2508 | if ( KOPrefs::instance()->mUseAppColors ) | 2509 | if ( KOPrefs::instance()->mUseAppColors ) |
2509 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); | 2510 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); |
2510 | emit configChanged(); | 2511 | emit configChanged(); |
2511 | mTodoList->updateConfig(); | 2512 | mTodoList->updateConfig(); |
2512 | // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont); | 2513 | // mDateNavigator->setFont ( KOPrefs::instance()->mDateNavigatorFont); |
2513 | mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 2514 | mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
2514 | // To make the "fill window" configurations work | 2515 | // To make the "fill window" configurations work |
2515 | //mViewManager->raiseCurrentView(); | 2516 | //mViewManager->raiseCurrentView(); |
2516 | } | 2517 | } |
2517 | 2518 | ||
2518 | 2519 | ||
2519 | void CalendarView::eventChanged(Event *event) | 2520 | void CalendarView::eventChanged(Event *event) |
2520 | { | 2521 | { |
2521 | changeEventDisplay(event,KOGlobals::EVENTEDITED); | 2522 | changeEventDisplay(event,KOGlobals::EVENTEDITED); |
2522 | //updateUnmanagedViews(); | 2523 | //updateUnmanagedViews(); |
2523 | } | 2524 | } |
2524 | 2525 | ||
2525 | void CalendarView::eventAdded(Event *event) | 2526 | void CalendarView::eventAdded(Event *event) |
2526 | { | 2527 | { |
2527 | changeEventDisplay(event,KOGlobals::EVENTADDED); | 2528 | changeEventDisplay(event,KOGlobals::EVENTADDED); |
2528 | } | 2529 | } |
2529 | 2530 | ||
2530 | void CalendarView::eventToBeDeleted(Event *) | 2531 | void CalendarView::eventToBeDeleted(Event *) |
2531 | { | 2532 | { |
2532 | kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl; | 2533 | kdDebug() << "CalendarView::eventToBeDeleted(): to be implemented" << endl; |
2533 | } | 2534 | } |
2534 | 2535 | ||
2535 | void CalendarView::eventDeleted() | 2536 | void CalendarView::eventDeleted() |
2536 | { | 2537 | { |
2537 | changeEventDisplay(0,KOGlobals::EVENTDELETED); | 2538 | changeEventDisplay(0,KOGlobals::EVENTDELETED); |
2538 | } | 2539 | } |
2539 | void CalendarView::changeTodoDisplay(Todo *which, int action) | 2540 | void CalendarView::changeTodoDisplay(Todo *which, int action) |
2540 | { | 2541 | { |
2541 | changeIncidenceDisplay((Incidence *)which, action); | 2542 | changeIncidenceDisplay((Incidence *)which, action); |
2542 | mDateNavigator->updateView(); //LR | 2543 | mDateNavigator->updateView(); //LR |
2543 | //mDialogManager->updateSearchDialog(); | 2544 | //mDialogManager->updateSearchDialog(); |
2544 | 2545 | ||
2545 | if (which) { | 2546 | if (which) { |
2546 | mViewManager->updateWNview(); | 2547 | mViewManager->updateWNview(); |
2547 | //mTodoList->updateView(); | 2548 | //mTodoList->updateView(); |
2548 | } | 2549 | } |
2549 | 2550 | ||
2550 | } | 2551 | } |
2551 | 2552 | ||
2552 | void CalendarView::changeIncidenceDisplay(Incidence *which, int action) | 2553 | void CalendarView::changeIncidenceDisplay(Incidence *which, int action) |
2553 | { | 2554 | { |
2554 | updateUnmanagedViews(); | 2555 | updateUnmanagedViews(); |
2555 | //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); | 2556 | //qDebug(" CalendarView::changeIncidenceDisplay++++++++++++++++++++++++++ %d %d ",which, action ); |
2556 | if ( action == KOGlobals::EVENTDELETED ) { //delete | 2557 | if ( action == KOGlobals::EVENTDELETED ) { //delete |
2557 | mCalendar->checkAlarmForIncidence( 0, true ); | 2558 | mCalendar->checkAlarmForIncidence( 0, true ); |
2558 | if ( mEventViewerDialog ) | 2559 | if ( mEventViewerDialog ) |
2559 | mEventViewerDialog->hide(); | 2560 | mEventViewerDialog->hide(); |
2560 | } | 2561 | } |
2561 | else | 2562 | else |
2562 | mCalendar->checkAlarmForIncidence( which , false ); | 2563 | mCalendar->checkAlarmForIncidence( which , false ); |
2563 | } | 2564 | } |
2564 | 2565 | ||
2565 | // most of the changeEventDisplays() right now just call the view's | 2566 | // most of the changeEventDisplays() right now just call the view's |
2566 | // total update mode, but they SHOULD be recoded to be more refresh-efficient. | 2567 | // total update mode, but they SHOULD be recoded to be more refresh-efficient. |
2567 | void CalendarView::changeEventDisplay(Event *which, int action) | 2568 | void CalendarView::changeEventDisplay(Event *which, int action) |
2568 | { | 2569 | { |
2569 | // kdDebug() << "CalendarView::changeEventDisplay" << endl; | 2570 | // kdDebug() << "CalendarView::changeEventDisplay" << endl; |
2570 | changeIncidenceDisplay((Incidence *)which, action); | 2571 | changeIncidenceDisplay((Incidence *)which, action); |
2571 | mDateNavigator->updateView(); | 2572 | mDateNavigator->updateView(); |
2572 | //mDialogManager->updateSearchDialog(); | 2573 | //mDialogManager->updateSearchDialog(); |
2573 | 2574 | ||
2574 | if (which) { | 2575 | if (which) { |
2575 | // If there is an event view visible update the display | 2576 | // If there is an event view visible update the display |
2576 | mViewManager->currentView()->changeEventDisplay(which,action); | 2577 | mViewManager->currentView()->changeEventDisplay(which,action); |
2577 | // TODO: check, if update needed | 2578 | // TODO: check, if update needed |
2578 | // if (which->getTodoStatus()) { | 2579 | // if (which->getTodoStatus()) { |
2579 | mTodoList->updateView(); | 2580 | mTodoList->updateView(); |
2580 | // } | 2581 | // } |
2581 | } else { | 2582 | } else { |
2582 | mViewManager->currentView()->updateView(); | 2583 | mViewManager->currentView()->updateView(); |
2583 | } | 2584 | } |
2584 | } | 2585 | } |
2585 | 2586 | ||
2586 | 2587 | ||
2587 | void CalendarView::updateTodoViews() | 2588 | void CalendarView::updateTodoViews() |
2588 | { | 2589 | { |
2589 | mTodoList->updateView(); | 2590 | mTodoList->updateView(); |
2590 | mViewManager->currentView()->updateView(); | 2591 | mViewManager->currentView()->updateView(); |
2591 | 2592 | ||
2592 | } | 2593 | } |
2593 | 2594 | ||
2594 | 2595 | ||
2595 | void CalendarView::updateView(const QDate &start, const QDate &end) | 2596 | void CalendarView::updateView(const QDate &start, const QDate &end) |
2596 | { | 2597 | { |
2597 | #ifdef DESKTOP_VERSION | 2598 | #ifdef DESKTOP_VERSION |
2598 | mDateScrollBar->blockSignals( true ); | 2599 | mDateScrollBar->blockSignals( true ); |
2599 | mDateScrollBar->setValue( start.dayOfYear()-1); | 2600 | mDateScrollBar->setValue( start.dayOfYear()-1); |
2600 | mDateScrollBar->blockSignals( false ); | 2601 | mDateScrollBar->blockSignals( false ); |
2601 | #endif | 2602 | #endif |
2602 | mTodoList->updateView(); | 2603 | mTodoList->updateView(); |
2603 | mViewManager->updateView(start, end); | 2604 | mViewManager->updateView(start, end); |
2604 | //mDateNavigator->updateView(); | 2605 | //mDateNavigator->updateView(); |
2605 | } | 2606 | } |
2606 | 2607 | ||
2607 | void CalendarView::clearAllViews() | 2608 | void CalendarView::clearAllViews() |
2608 | { | 2609 | { |
2609 | mTodoList->clearList(); | 2610 | mTodoList->clearList(); |
2610 | mViewManager->clearAllViews(); | 2611 | mViewManager->clearAllViews(); |
2611 | SearchDialog * sd = mDialogManager->getSearchDialog(); | 2612 | SearchDialog * sd = mDialogManager->getSearchDialog(); |
2612 | if ( sd ) { | 2613 | if ( sd ) { |
2613 | KOListView* kol = sd->listview(); | 2614 | KOListView* kol = sd->listview(); |
2614 | if ( kol ) | 2615 | if ( kol ) |
2615 | kol->clearList(); | 2616 | kol->clearList(); |
2616 | } | 2617 | } |
2617 | } | 2618 | } |
2618 | void CalendarView::updateView() | 2619 | void CalendarView::updateView() |
2619 | { | 2620 | { |
2620 | DateList tmpList = mNavigator->selectedDates(); | 2621 | DateList tmpList = mNavigator->selectedDates(); |
2621 | 2622 | ||
2622 | if ( KOPrefs::instance()->mHideNonStartedTodos ) | 2623 | if ( KOPrefs::instance()->mHideNonStartedTodos ) |
2623 | mTodoList->updateView(); | 2624 | mTodoList->updateView(); |
2624 | // We assume that the navigator only selects consecutive days. | 2625 | // We assume that the navigator only selects consecutive days. |
2625 | updateView( tmpList.first(), tmpList.last() ); | 2626 | updateView( tmpList.first(), tmpList.last() ); |
2626 | } | 2627 | } |
2627 | 2628 | ||
2628 | void CalendarView::updateUnmanagedViews() | 2629 | void CalendarView::updateUnmanagedViews() |
2629 | { | 2630 | { |
2630 | mDateNavigator->updateDayMatrix(); | 2631 | mDateNavigator->updateDayMatrix(); |
2631 | } | 2632 | } |
2632 | 2633 | ||
2633 | int CalendarView::msgItemDelete(const QString name) | 2634 | int CalendarView::msgItemDelete(const QString name) |
2634 | { | 2635 | { |
2635 | return KMessageBox::warningContinueCancel(this,name +"\n\n"+ | 2636 | return KMessageBox::warningContinueCancel(this,name +"\n\n"+ |
2636 | i18n("This item will be\npermanently deleted."), | 2637 | i18n("This item will be\npermanently deleted."), |
2637 | i18n("KO/Pi Confirmation"),i18n("Delete")); | 2638 | i18n("KO/Pi Confirmation"),i18n("Delete")); |
2638 | } | 2639 | } |
2639 | 2640 | ||
2640 | 2641 | ||
2641 | void CalendarView::edit_cut() | 2642 | void CalendarView::edit_cut() |
2642 | { | 2643 | { |
2643 | Event *anEvent=0; | 2644 | Event *anEvent=0; |
2644 | 2645 | ||
2645 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); | 2646 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); |
2646 | 2647 | ||
2647 | if (mViewManager->currentView()->isEventView()) { | 2648 | if (mViewManager->currentView()->isEventView()) { |
2648 | if ( incidence && incidence->typeID() == eventID ) { | 2649 | if ( incidence && incidence->typeID() == eventID ) { |
2649 | anEvent = static_cast<Event *>(incidence); | 2650 | anEvent = static_cast<Event *>(incidence); |
2650 | } | 2651 | } |
2651 | } | 2652 | } |
2652 | 2653 | ||
2653 | if (!anEvent) { | 2654 | if (!anEvent) { |
2654 | KNotifyClient::beep(); | 2655 | KNotifyClient::beep(); |
2655 | return; | 2656 | return; |
2656 | } | 2657 | } |
2657 | DndFactory factory( mCalendar ); | 2658 | DndFactory factory( mCalendar ); |
2658 | factory.cutIncidence(anEvent); | 2659 | factory.cutIncidence(anEvent); |
2659 | changeEventDisplay(anEvent, KOGlobals::EVENTDELETED); | 2660 | changeEventDisplay(anEvent, KOGlobals::EVENTDELETED); |
2660 | } | 2661 | } |
2661 | 2662 | ||
2662 | void CalendarView::edit_copy() | 2663 | void CalendarView::edit_copy() |
2663 | { | 2664 | { |
2664 | Event *anEvent=0; | 2665 | Event *anEvent=0; |
2665 | 2666 | ||
2666 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); | 2667 | Incidence *incidence = mViewManager->currentView()->selectedIncidences().first(); |
2667 | 2668 | ||
2668 | if (mViewManager->currentView()->isEventView()) { | 2669 | if (mViewManager->currentView()->isEventView()) { |
2669 | if ( incidence && incidence->typeID() == eventID ) { | 2670 | if ( incidence && incidence->typeID() == eventID ) { |
2670 | anEvent = static_cast<Event *>(incidence); | 2671 | anEvent = static_cast<Event *>(incidence); |
2671 | } | 2672 | } |
2672 | } | 2673 | } |
2673 | 2674 | ||
2674 | if (!anEvent) { | 2675 | if (!anEvent) { |
2675 | KNotifyClient::beep(); | 2676 | KNotifyClient::beep(); |
2676 | return; | 2677 | return; |
2677 | } | 2678 | } |
2678 | DndFactory factory( mCalendar ); | 2679 | DndFactory factory( mCalendar ); |
2679 | factory.copyIncidence(anEvent); | 2680 | factory.copyIncidence(anEvent); |
2680 | } | 2681 | } |
2681 | 2682 | ||
2682 | void CalendarView::edit_paste() | 2683 | void CalendarView::edit_paste() |
2683 | { | 2684 | { |
2684 | QDate date = mNavigator->selectedDates().first(); | 2685 | QDate date = mNavigator->selectedDates().first(); |
2685 | 2686 | ||
2686 | DndFactory factory( mCalendar ); | 2687 | DndFactory factory( mCalendar ); |
2687 | Event *pastedEvent = (Event *)factory.pasteIncidence( date ); | 2688 | Event *pastedEvent = (Event *)factory.pasteIncidence( date ); |
2688 | 2689 | ||
2689 | changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED ); | 2690 | changeEventDisplay( pastedEvent, KOGlobals::EVENTADDED ); |
2690 | } | 2691 | } |
2691 | void CalendarView::edit_global_options() | 2692 | void CalendarView::edit_global_options() |
2692 | { | 2693 | { |
2693 | QString tz = KPimGlobalPrefs::instance()->mTimeZoneId; | 2694 | QString tz = KPimGlobalPrefs::instance()->mTimeZoneId; |
2694 | emit save(); | 2695 | emit save(); |
2695 | emit saveStopTimer(); | 2696 | emit saveStopTimer(); |
2696 | mDialogManager->showGlobalOptionsDialog(); | 2697 | mDialogManager->showGlobalOptionsDialog(); |
2697 | if ( tz != KPimGlobalPrefs::instance()->mTimeZoneId) { | 2698 | if ( tz != KPimGlobalPrefs::instance()->mTimeZoneId) { |
2698 | emit saveStopTimer(); | 2699 | emit saveStopTimer(); |
2699 | if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, i18n("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!"), | 2700 | if ( KMessageBox::Cancel == KMessageBox::warningContinueCancel(this, i18n("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!"), |
2700 | i18n("Timezone settings"),i18n("Reload"))) { | 2701 | i18n("Timezone settings"),i18n("Reload"))) { |
2701 | qDebug("KO: TZ reload cancelled "); | 2702 | qDebug("KO: TZ reload cancelled "); |
2702 | mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 2703 | mCalendar->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
2703 | return; | 2704 | return; |
2704 | } | 2705 | } |
2705 | qDebug("KO: Timezone change "); | 2706 | qDebug("KO: Timezone change "); |
2706 | loadCalendars(); | 2707 | loadCalendars(); |
2707 | setModified(true); | 2708 | setModified(true); |
2708 | } | 2709 | } |
2709 | else | 2710 | else |
2710 | qDebug("KO: No tz change "); | 2711 | qDebug("KO: No tz change "); |
2711 | } | 2712 | } |
2712 | void CalendarView::edit_options() | 2713 | void CalendarView::edit_options() |
2713 | { | 2714 | { |
2714 | mDialogManager->showOptionsDialog(); | 2715 | mDialogManager->showOptionsDialog(); |
2715 | } | 2716 | } |
2716 | 2717 | ||
2717 | 2718 | ||
2718 | void CalendarView::slotSelectPickerDate( QDate d) | 2719 | void CalendarView::slotSelectPickerDate( QDate d) |
2719 | { | 2720 | { |
2720 | mDateFrame->hide(); | 2721 | mDateFrame->hide(); |
2721 | if ( mDatePickerMode == 1 ) { | 2722 | if ( mDatePickerMode == 1 ) { |
2722 | mNavigator->slotDaySelect( d ); | 2723 | mNavigator->slotDaySelect( d ); |
2723 | } else if ( mDatePickerMode == 2 ) { | 2724 | } else if ( mDatePickerMode == 2 ) { |
2724 | if ( mMoveIncidence->typeID() == todoID ) { | 2725 | if ( mMoveIncidence->typeID() == todoID ) { |
2725 | Todo * to = (Todo *) mMoveIncidence; | 2726 | Todo * to = (Todo *) mMoveIncidence; |
2726 | QTime tim; | 2727 | QTime tim; |
2727 | int len = 0; | 2728 | int len = 0; |
2728 | if ( to->hasStartDate() && to->hasDueDate() ) | 2729 | if ( to->hasStartDate() && to->hasDueDate() ) |
2729 | len = to->dtStart().secsTo( to->dtDue()); | 2730 | len = to->dtStart().secsTo( to->dtDue()); |
2730 | if ( to->hasDueDate() ) | 2731 | if ( to->hasDueDate() ) |
2731 | tim = to->dtDue().time(); | 2732 | tim = to->dtDue().time(); |
2732 | else { | 2733 | else { |
2733 | tim = QTime ( 0,0,0 ); | 2734 | tim = QTime ( 0,0,0 ); |
2734 | to->setFloats( true ); | 2735 | to->setFloats( true ); |
2735 | to->setHasDueDate( true ); | 2736 | to->setHasDueDate( true ); |
2736 | } | 2737 | } |
2737 | QDateTime dt ( d,tim ); | 2738 | QDateTime dt ( d,tim ); |
2738 | to->setDtDue( dt ); | 2739 | to->setDtDue( dt ); |
2739 | 2740 | ||
2740 | if ( to->hasStartDate() ) { | 2741 | if ( to->hasStartDate() ) { |
2741 | if ( len>0 ) | 2742 | if ( len>0 ) |
2742 | to->setDtStart(to->dtDue().addSecs( -len )); | 2743 | to->setDtStart(to->dtDue().addSecs( -len )); |
2743 | else | 2744 | else |
2744 | if (to->dtStart() > to->dtDue() ) | 2745 | if (to->dtStart() > to->dtDue() ) |
2745 | to->setDtStart(to->dtDue().addDays( -3 )); | 2746 | to->setDtStart(to->dtDue().addDays( -3 )); |
2746 | } | 2747 | } |
2747 | 2748 | ||
2748 | todoChanged( to ); | 2749 | todoChanged( to ); |
2749 | } else { | 2750 | } else { |
2750 | if ( mMoveIncidence->doesRecur() ) { | 2751 | if ( mMoveIncidence->doesRecur() ) { |
2751 | #if 0 | 2752 | #if 0 |
2752 | // PENDING implement this | 2753 | // PENDING implement this |
2753 | Incidence* newInc = mMoveIncidence->recreateCloneException( mMoveIncidenceOldDate ); | 2754 | Incidence* newInc = mMoveIncidence->recreateCloneException( mMoveIncidenceOldDate ); |
2754 | mCalendar()->addIncidence( newInc ); | 2755 | mCalendar()->addIncidence( newInc ); |
2755 | if ( mMoveIncidence->typeID() == todoID ) | 2756 | if ( mMoveIncidence->typeID() == todoID ) |
2756 | emit todoMoved((Todo*)mMoveIncidence, KOGlobals::EVENTEDITED ); | 2757 | emit todoMoved((Todo*)mMoveIncidence, KOGlobals::EVENTEDITED ); |
2757 | else | 2758 | else |
2758 | emit incidenceChanged(mMoveIncidence, KOGlobals::EVENTEDITED); | 2759 | emit incidenceChanged(mMoveIncidence, KOGlobals::EVENTEDITED); |
2759 | mMoveIncidence = newInc; | 2760 | mMoveIncidence = newInc; |
2760 | 2761 | ||
2761 | #endif | 2762 | #endif |
2762 | } | 2763 | } |
2763 | QTime tim = mMoveIncidence->dtStart().time(); | 2764 | QTime tim = mMoveIncidence->dtStart().time(); |
2764 | int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd()); | 2765 | int secs = mMoveIncidence->dtStart().secsTo( mMoveIncidence->dtEnd()); |
2765 | QDateTime dt ( d,tim ); | 2766 | QDateTime dt ( d,tim ); |
2766 | mMoveIncidence->setDtStart( dt ); | 2767 | mMoveIncidence->setDtStart( dt ); |
2767 | ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) ); | 2768 | ((Event*)mMoveIncidence)->setDtEnd( dt.addSecs( secs ) ); |
2768 | changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED); | 2769 | changeEventDisplay((Event*)mMoveIncidence, KOGlobals::EVENTEDITED); |
2769 | } | 2770 | } |
2770 | 2771 | ||
2771 | mMoveIncidence->setRevision( mMoveIncidence->revision()+1 ); | 2772 | mMoveIncidence->setRevision( mMoveIncidence->revision()+1 ); |
2772 | } | 2773 | } |
2773 | } | 2774 | } |
2774 | 2775 | ||
2775 | void CalendarView::removeCategories() | 2776 | void CalendarView::removeCategories() |
2776 | { | 2777 | { |
2777 | QPtrList<Incidence> incList = mCalendar->rawIncidences(); | 2778 | QPtrList<Incidence> incList = mCalendar->rawIncidences(); |
2778 | QStringList catList = KOPrefs::instance()->mCustomCategories; | 2779 | QStringList catList = KOPrefs::instance()->mCustomCategories; |
2779 | QStringList catIncList; | 2780 | QStringList catIncList; |
2780 | QStringList newCatList; | 2781 | QStringList newCatList; |
2781 | Incidence* inc = incList.first(); | 2782 | Incidence* inc = incList.first(); |
2782 | int i; | 2783 | int i; |
2783 | int count = 0; | 2784 | int count = 0; |
2784 | while ( inc ) { | 2785 | while ( inc ) { |
2785 | newCatList.clear(); | 2786 | newCatList.clear(); |
2786 | catIncList = inc->categories() ; | 2787 | catIncList = inc->categories() ; |
2787 | for( i = 0; i< catIncList.count(); ++i ) { | 2788 | for( i = 0; i< catIncList.count(); ++i ) { |
2788 | if ( catList.contains (catIncList[i])) | 2789 | if ( catList.contains (catIncList[i])) |
2789 | newCatList.append( catIncList[i] ); | 2790 | newCatList.append( catIncList[i] ); |
2790 | } | 2791 | } |
2791 | newCatList.sort(); | 2792 | newCatList.sort(); |
2792 | inc->setCategories( newCatList.join(",") ); | 2793 | inc->setCategories( newCatList.join(",") ); |
2793 | inc = incList.next(); | 2794 | inc = incList.next(); |
2794 | } | 2795 | } |
2795 | } | 2796 | } |
2796 | 2797 | ||
2797 | int CalendarView::addCategories() | 2798 | int CalendarView::addCategories() |
2798 | { | 2799 | { |
2799 | QPtrList<Incidence> incList = mCalendar->rawIncidences(); | 2800 | QPtrList<Incidence> incList = mCalendar->rawIncidences(); |
2800 | QStringList catList = KOPrefs::instance()->mCustomCategories; | 2801 | QStringList catList = KOPrefs::instance()->mCustomCategories; |
2801 | QStringList catIncList; | 2802 | QStringList catIncList; |
2802 | Incidence* inc = incList.first(); | 2803 | Incidence* inc = incList.first(); |
2803 | int i; | 2804 | int i; |
2804 | int count = 0; | 2805 | int count = 0; |
2805 | while ( inc ) { | 2806 | while ( inc ) { |
2806 | catIncList = inc->categories() ; | 2807 | catIncList = inc->categories() ; |
2807 | for( i = 0; i< catIncList.count(); ++i ) { | 2808 | for( i = 0; i< catIncList.count(); ++i ) { |
2808 | if ( !catList.contains (catIncList[i])) { | 2809 | if ( !catList.contains (catIncList[i])) { |
2809 | catList.append( catIncList[i] ); | 2810 | catList.append( catIncList[i] ); |
2810 | //qDebug("add cat %s ", catIncList[i].latin1()); | 2811 | //qDebug("add cat %s ", catIncList[i].latin1()); |
2811 | ++count; | 2812 | ++count; |
2812 | } | 2813 | } |
2813 | } | 2814 | } |
2814 | inc = incList.next(); | 2815 | inc = incList.next(); |
2815 | } | 2816 | } |
2816 | catList.sort(); | 2817 | catList.sort(); |
2817 | KOPrefs::instance()->mCustomCategories = catList; | 2818 | KOPrefs::instance()->mCustomCategories = catList; |
2818 | return count; | 2819 | return count; |
2819 | } | 2820 | } |
2820 | 2821 | ||
2822 | void CalendarView::editCategories() | ||
2823 | { | ||
2824 | qDebug("CalendarView::editCategories() "); | ||
2825 | KPIM::CategoryEditDialog ced (KOPrefs::instance(),this ); | ||
2826 | ced.exec(); | ||
2827 | } | ||
2821 | void CalendarView::manageCategories() | 2828 | void CalendarView::manageCategories() |
2822 | { | 2829 | { |
2823 | KOCatPrefs* cp = new KOCatPrefs(); | 2830 | KOCatPrefs* cp = new KOCatPrefs(); |
2824 | cp->show(); | 2831 | cp->show(); |
2825 | int w =cp->sizeHint().width() ; | 2832 | int w =cp->sizeHint().width() ; |
2826 | int h = cp->sizeHint().height() ; | 2833 | int h = cp->sizeHint().height() ; |
2827 | int dw = QApplication::desktop()->width(); | 2834 | int dw = QApplication::desktop()->width(); |
2828 | int dh = QApplication::desktop()->height(); | 2835 | int dh = QApplication::desktop()->height(); |
2829 | cp->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); | 2836 | cp->setGeometry( (dw-w)/2, (dh - h )/2 ,w,h ); |
2830 | if ( !cp->exec() ) { | 2837 | if ( !cp->exec() ) { |
2831 | delete cp; | 2838 | delete cp; |
2832 | return; | 2839 | return; |
2833 | } | 2840 | } |
2834 | int count = 0; | 2841 | int count = 0; |
2835 | if ( cp->addCat() ) { | 2842 | if ( cp->addCat() ) { |
2836 | count = addCategories(); | 2843 | count = addCategories(); |
2837 | if ( count ) { | 2844 | if ( count ) { |
2838 | topLevelWidget()->setCaption(QString::number( count )+ i18n(" Categories added to list! ")); | 2845 | topLevelWidget()->setCaption(QString::number( count )+ i18n(" Categories added to list! ")); |
2839 | writeSettings(); | 2846 | writeSettings(); |
2840 | } else | 2847 | } else |
2841 | topLevelWidget()->setCaption(QString::number( 0 )+ i18n(" Categories added to list! ")); | 2848 | topLevelWidget()->setCaption(QString::number( 0 )+ i18n(" Categories added to list! ")); |
2842 | } else { | 2849 | } else { |
2843 | removeCategories(); | 2850 | removeCategories(); |
2844 | updateView(); | 2851 | updateView(); |
2845 | } | 2852 | } |
2846 | delete cp; | 2853 | delete cp; |
2847 | } | 2854 | } |
2848 | 2855 | ||
2849 | void CalendarView::beamIncidence(Incidence * Inc) | 2856 | void CalendarView::beamIncidence(Incidence * Inc) |
2850 | { | 2857 | { |
2851 | QPtrList<Incidence> delSel ; | 2858 | QPtrList<Incidence> delSel ; |
2852 | delSel.append(Inc); | 2859 | delSel.append(Inc); |
2853 | beamIncidenceList( delSel ); | 2860 | beamIncidenceList( delSel ); |
2854 | } | 2861 | } |
2855 | void CalendarView::beamCalendar() | 2862 | void CalendarView::beamCalendar() |
2856 | { | 2863 | { |
2857 | QPtrList<Incidence> delSel = mCalendar->rawIncidences(); | 2864 | QPtrList<Incidence> delSel = mCalendar->rawIncidences(); |
2858 | //qDebug("beamCalendar() "); | 2865 | //qDebug("beamCalendar() "); |
2859 | beamIncidenceList( delSel ); | 2866 | beamIncidenceList( delSel ); |
2860 | } | 2867 | } |
2861 | void CalendarView::beamFilteredCalendar() | 2868 | void CalendarView::beamFilteredCalendar() |
2862 | { | 2869 | { |
2863 | QPtrList<Incidence> delSel = mCalendar->incidences(); | 2870 | QPtrList<Incidence> delSel = mCalendar->incidences(); |
2864 | //qDebug("beamFilteredCalendar() "); | 2871 | //qDebug("beamFilteredCalendar() "); |
2865 | beamIncidenceList( delSel ); | 2872 | beamIncidenceList( delSel ); |
2866 | } | 2873 | } |
2867 | void CalendarView::beamIncidenceList(QPtrList<Incidence> delSel ) | 2874 | void CalendarView::beamIncidenceList(QPtrList<Incidence> delSel ) |
2868 | { | 2875 | { |
2869 | 2876 | ||
2870 | KOBeamPrefs beamDialog; | 2877 | KOBeamPrefs beamDialog; |
2871 | if ( beamDialog.exec () == QDialog::Rejected ) | 2878 | if ( beamDialog.exec () == QDialog::Rejected ) |
2872 | return; | 2879 | return; |
2873 | #ifdef DESKTOP_VERSION | 2880 | #ifdef DESKTOP_VERSION |
2874 | QString fn = locateLocal( "tmp", "kopibeamfile" ); | 2881 | QString fn = locateLocal( "tmp", "kopibeamfile" ); |
2875 | #else | 2882 | #else |
2876 | QString fn = "/tmp/kopibeamfile"; | 2883 | QString fn = "/tmp/kopibeamfile"; |
2877 | #endif | 2884 | #endif |
2878 | QString mes; | 2885 | QString mes; |
2879 | bool createbup = true; | 2886 | bool createbup = true; |
2880 | if ( createbup ) { | 2887 | if ( createbup ) { |
2881 | QString description = "\n"; | 2888 | QString description = "\n"; |
2882 | CalendarLocal* cal = new CalendarLocal(); | 2889 | CalendarLocal* cal = new CalendarLocal(); |
2883 | if ( beamDialog.beamLocal() ) | 2890 | if ( beamDialog.beamLocal() ) |
2884 | cal->setLocalTime(); | 2891 | cal->setLocalTime(); |
2885 | else | 2892 | else |
2886 | cal->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 2893 | cal->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
2887 | Incidence *incidence = delSel.first(); | 2894 | Incidence *incidence = delSel.first(); |
2888 | bool addText = false; | 2895 | bool addText = false; |
2889 | if ( delSel.count() < 10 ) | 2896 | if ( delSel.count() < 10 ) |
2890 | addText = true; | 2897 | addText = true; |
2891 | else { | 2898 | else { |
2892 | description.sprintf(i18n(" %d items?"),delSel.count() ); | 2899 | description.sprintf(i18n(" %d items?"),delSel.count() ); |
2893 | } | 2900 | } |
2894 | while ( incidence ) { | 2901 | while ( incidence ) { |
2895 | Incidence *in = incidence->clone(); | 2902 | Incidence *in = incidence->clone(); |
2896 | if ( ! in->summary().isEmpty() ) { | 2903 | if ( ! in->summary().isEmpty() ) { |
2897 | in->setDescription(""); | 2904 | in->setDescription(""); |
2898 | } else { | 2905 | } else { |
2899 | in->setSummary( in->description().left(20)); | 2906 | in->setSummary( in->description().left(20)); |
2900 | in->setDescription(""); | 2907 | in->setDescription(""); |
2901 | } | 2908 | } |
2902 | if ( addText ) | 2909 | if ( addText ) |
2903 | description += in->summary() + "\n"; | 2910 | description += in->summary() + "\n"; |
2904 | cal->addIncidence( in ); | 2911 | cal->addIncidence( in ); |
2905 | incidence = delSel.next(); | 2912 | incidence = delSel.next(); |
2906 | } | 2913 | } |
2907 | if ( beamDialog.beamVcal() ) { | 2914 | if ( beamDialog.beamVcal() ) { |
2908 | fn += ".vcs"; | 2915 | fn += ".vcs"; |
2909 | FileStorage storage( cal, fn, new VCalFormat ); | 2916 | FileStorage storage( cal, fn, new VCalFormat ); |
2910 | storage.save(); | 2917 | storage.save(); |
2911 | } else { | 2918 | } else { |
2912 | fn += ".ics"; | 2919 | fn += ".ics"; |
2913 | FileStorage storage( cal, fn, new ICalFormat( ) ); | 2920 | FileStorage storage( cal, fn, new ICalFormat( ) ); |
2914 | storage.save(); | 2921 | storage.save(); |
2915 | } | 2922 | } |
2916 | delete cal; | 2923 | delete cal; |
2917 | mes = i18n("KO/Pi: Ready for beaming"); | 2924 | mes = i18n("KO/Pi: Ready for beaming"); |
2918 | topLevelWidget()->setCaption(mes); | 2925 | topLevelWidget()->setCaption(mes); |
2919 | KApplication::convert2latin1( fn ); | 2926 | KApplication::convert2latin1( fn ); |
2920 | #ifndef DESKTOP_VERSION | 2927 | #ifndef DESKTOP_VERSION |
2921 | Ir *ir = new Ir( this ); | 2928 | Ir *ir = new Ir( this ); |
2922 | connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); | 2929 | connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); |
2923 | ir->send( fn, description, "text/x-vCalendar" ); | 2930 | ir->send( fn, description, "text/x-vCalendar" ); |
2924 | #endif | 2931 | #endif |
2925 | } | 2932 | } |
2926 | } | 2933 | } |
2927 | void CalendarView::beamDone( Ir *ir ) | 2934 | void CalendarView::beamDone( Ir *ir ) |
2928 | { | 2935 | { |
2929 | #ifndef DESKTOP_VERSION | 2936 | #ifndef DESKTOP_VERSION |
2930 | delete ir; | 2937 | delete ir; |
2931 | #endif | 2938 | #endif |
2932 | topLevelWidget()->setCaption( i18n("KO/Pi: Beaming done.") ); | 2939 | topLevelWidget()->setCaption( i18n("KO/Pi: Beaming done.") ); |
2933 | topLevelWidget()->raise(); | 2940 | topLevelWidget()->raise(); |
2934 | } | 2941 | } |
2935 | 2942 | ||
2936 | void CalendarView::moveIncidence(Incidence * inc ) | 2943 | void CalendarView::moveIncidence(Incidence * inc ) |
2937 | { | 2944 | { |
2938 | if ( !inc ) return; | 2945 | if ( !inc ) return; |
2939 | showDatePickerPopup(); | 2946 | showDatePickerPopup(); |
2940 | mDatePickerMode = 2; | 2947 | mDatePickerMode = 2; |
2941 | mMoveIncidence = inc ; | 2948 | mMoveIncidence = inc ; |
2942 | QDate da; | 2949 | QDate da; |
2943 | if ( mMoveIncidence->typeID() == todoID ) { | 2950 | if ( mMoveIncidence->typeID() == todoID ) { |
2944 | Todo * to = (Todo *) mMoveIncidence; | 2951 | Todo * to = (Todo *) mMoveIncidence; |
2945 | if ( to->hasDueDate() ) | 2952 | if ( to->hasDueDate() ) |
2946 | da = to->dtDue().date(); | 2953 | da = to->dtDue().date(); |
2947 | else | 2954 | else |
2948 | da = QDate::currentDate(); | 2955 | da = QDate::currentDate(); |
2949 | } else { | 2956 | } else { |
2950 | da = mMoveIncidence->dtStart().date(); | 2957 | da = mMoveIncidence->dtStart().date(); |
2951 | } | 2958 | } |
2952 | //PENDING set date for recurring incidence to date of recurrence | 2959 | //PENDING set date for recurring incidence to date of recurrence |
2953 | //mMoveIncidenceOldDate; | 2960 | //mMoveIncidenceOldDate; |
2954 | mDatePicker->setDate( da ); | 2961 | mDatePicker->setDate( da ); |
2955 | } | 2962 | } |
2956 | void CalendarView::showDatePickerPopup() | 2963 | void CalendarView::showDatePickerPopup() |
2957 | { | 2964 | { |
2958 | if ( mDateFrame->isVisible() ) | 2965 | if ( mDateFrame->isVisible() ) |
2959 | mDateFrame->hide(); | 2966 | mDateFrame->hide(); |
2960 | else { | 2967 | else { |
2961 | int offX = 0, offY = 0; | 2968 | int offX = 0, offY = 0; |
2962 | #ifdef DESKTOP_VERSION | 2969 | #ifdef DESKTOP_VERSION |
2963 | int w =mDatePicker->sizeHint().width() ; | 2970 | int w =mDatePicker->sizeHint().width() ; |
2964 | int h = mDatePicker->sizeHint().height() ; | 2971 | int h = mDatePicker->sizeHint().height() ; |
2965 | int dw = topLevelWidget()->width(); | 2972 | int dw = topLevelWidget()->width(); |
2966 | int dh = topLevelWidget()->height(); | 2973 | int dh = topLevelWidget()->height(); |
2967 | offX = topLevelWidget()->x(); | 2974 | offX = topLevelWidget()->x(); |
2968 | offY = topLevelWidget()->y(); | 2975 | offY = topLevelWidget()->y(); |
2969 | #else | 2976 | #else |
2970 | int w =mDatePicker->sizeHint().width() ; | 2977 | int w =mDatePicker->sizeHint().width() ; |
2971 | int h = mDatePicker->sizeHint().height() ; | 2978 | int h = mDatePicker->sizeHint().height() ; |
2972 | int dw = QApplication::desktop()->width(); | 2979 | int dw = QApplication::desktop()->width(); |
2973 | int dh = QApplication::desktop()->height(); | 2980 | int dh = QApplication::desktop()->height(); |
2974 | #endif | 2981 | #endif |
2975 | mDateFrame->setGeometry( (dw-w)/2+offX, (dh - h )/2+offY ,w,h ); | 2982 | mDateFrame->setGeometry( (dw-w)/2+offX, (dh - h )/2+offY ,w,h ); |
2976 | mDateFrame->show(); | 2983 | mDateFrame->show(); |
2977 | } | 2984 | } |
2978 | } | 2985 | } |
2979 | void CalendarView::showDatePicker( ) | 2986 | void CalendarView::showDatePicker( ) |
2980 | { | 2987 | { |
2981 | showDatePickerPopup(); | 2988 | showDatePickerPopup(); |
2982 | mDatePickerMode = 1; | 2989 | mDatePickerMode = 1; |
2983 | mDatePicker->setDate( mNavigator->selectedDates().first() ); | 2990 | mDatePicker->setDate( mNavigator->selectedDates().first() ); |
2984 | } | 2991 | } |
2985 | 2992 | ||
2986 | void CalendarView::showEventEditor() | 2993 | void CalendarView::showEventEditor() |
2987 | { | 2994 | { |
2988 | #ifdef DESKTOP_VERSION | 2995 | #ifdef DESKTOP_VERSION |
2989 | int x,y,w,h; | 2996 | int x,y,w,h; |
2990 | x = mEventEditor->geometry().x(); | 2997 | x = mEventEditor->geometry().x(); |
2991 | y = mEventEditor->geometry().y(); | 2998 | y = mEventEditor->geometry().y(); |
2992 | w = mEventEditor->width(); | 2999 | w = mEventEditor->width(); |
2993 | h = mEventEditor->height(); | 3000 | h = mEventEditor->height(); |
2994 | mEventEditor->show(); | 3001 | mEventEditor->show(); |
2995 | mEventEditor->setGeometry(x,y,w,h); | 3002 | mEventEditor->setGeometry(x,y,w,h); |
2996 | #else | 3003 | #else |
2997 | if ( mEventEditor->width() < QApplication::desktop()->width() -60 || mEventEditor->width() > QApplication::desktop()->width() ) { | 3004 | if ( mEventEditor->width() < QApplication::desktop()->width() -60 || mEventEditor->width() > QApplication::desktop()->width() ) { |
2998 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); | 3005 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); |
2999 | qDebug("KO: CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() ); | 3006 | qDebug("KO: CalendarView: recreate mEventEditor %d %d", mEventEditor->width(), QApplication::desktop()->width() ); |
3000 | qApp->processEvents(); | 3007 | qApp->processEvents(); |
3001 | delete mEventEditor; | 3008 | delete mEventEditor; |
3002 | mEventEditor = mDialogManager->getEventEditor(); | 3009 | mEventEditor = mDialogManager->getEventEditor(); |
3003 | topLevelWidget()->setCaption( i18n("") ); | 3010 | topLevelWidget()->setCaption( i18n("") ); |
3004 | } | 3011 | } |
3005 | mEventEditor->showMaximized(); | 3012 | mEventEditor->showMaximized(); |
3006 | #endif | 3013 | #endif |
3007 | } | 3014 | } |
3008 | void CalendarView::showTodoEditor() | 3015 | void CalendarView::showTodoEditor() |
3009 | { | 3016 | { |
3010 | #ifdef DESKTOP_VERSION | 3017 | #ifdef DESKTOP_VERSION |
3011 | int x,y,w,h; | 3018 | int x,y,w,h; |
3012 | x = mTodoEditor->geometry().x(); | 3019 | x = mTodoEditor->geometry().x(); |
3013 | y = mTodoEditor->geometry().y(); | 3020 | y = mTodoEditor->geometry().y(); |
3014 | w = mTodoEditor->width(); | 3021 | w = mTodoEditor->width(); |
3015 | h = mTodoEditor->height(); | 3022 | h = mTodoEditor->height(); |
3016 | mTodoEditor->show(); | 3023 | mTodoEditor->show(); |
3017 | mTodoEditor->setGeometry(x,y,w,h); | 3024 | mTodoEditor->setGeometry(x,y,w,h); |
3018 | #else | 3025 | #else |
3019 | if ( mTodoEditor->width() < QApplication::desktop()->width() -60|| mTodoEditor->width() > QApplication::desktop()->width() ) { | 3026 | if ( mTodoEditor->width() < QApplication::desktop()->width() -60|| mTodoEditor->width() > QApplication::desktop()->width() ) { |
3020 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); | 3027 | topLevelWidget()->setCaption( i18n("Recreating edit dialog. Please wait...") ); |
3021 | qDebug("KO: CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() ); | 3028 | qDebug("KO: CalendarView: recreate mTodoEditor %d %d ", mTodoEditor->width() ,QApplication::desktop()->width() ); |
3022 | qApp->processEvents(); | 3029 | qApp->processEvents(); |
3023 | delete mTodoEditor; | 3030 | delete mTodoEditor; |
3024 | mTodoEditor = mDialogManager->getTodoEditor(); | 3031 | mTodoEditor = mDialogManager->getTodoEditor(); |
3025 | topLevelWidget()->setCaption( i18n("") ); | 3032 | topLevelWidget()->setCaption( i18n("") ); |
3026 | } | 3033 | } |
3027 | mTodoEditor->showMaximized(); | 3034 | mTodoEditor->showMaximized(); |
3028 | #endif | 3035 | #endif |
3029 | } | 3036 | } |
3030 | 3037 | ||
3031 | void CalendarView::cloneIncidence() | 3038 | void CalendarView::cloneIncidence() |
3032 | { | 3039 | { |
3033 | Incidence *incidence = currentSelection(); | 3040 | Incidence *incidence = currentSelection(); |
3034 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 3041 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
3035 | if ( incidence ) { | 3042 | if ( incidence ) { |
3036 | cloneIncidence(incidence); | 3043 | cloneIncidence(incidence); |
3037 | } | 3044 | } |
3038 | } | 3045 | } |
3039 | void CalendarView::moveIncidence() | 3046 | void CalendarView::moveIncidence() |
3040 | { | 3047 | { |
3041 | Incidence *incidence = currentSelection(); | 3048 | Incidence *incidence = currentSelection(); |
3042 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 3049 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
3043 | if ( incidence ) { | 3050 | if ( incidence ) { |
3044 | moveIncidence(incidence); | 3051 | moveIncidence(incidence); |
3045 | } | 3052 | } |
3046 | } | 3053 | } |
3047 | void CalendarView::beamIncidence() | 3054 | void CalendarView::beamIncidence() |
3048 | { | 3055 | { |
3049 | Incidence *incidence = currentSelection(); | 3056 | Incidence *incidence = currentSelection(); |
3050 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 3057 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
3051 | if ( incidence ) { | 3058 | if ( incidence ) { |
3052 | beamIncidence(incidence); | 3059 | beamIncidence(incidence); |
3053 | } | 3060 | } |
3054 | } | 3061 | } |
3055 | void CalendarView::toggleCancelIncidence() | 3062 | void CalendarView::toggleCancelIncidence() |
3056 | { | 3063 | { |
3057 | Incidence *incidence = currentSelection(); | 3064 | Incidence *incidence = currentSelection(); |
3058 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); | 3065 | if ( !incidence ) incidence = mTodoList->selectedIncidences().first(); |
3059 | if ( incidence ) { | 3066 | if ( incidence ) { |
3060 | cancelIncidence(incidence); | 3067 | cancelIncidence(incidence); |
3061 | } | 3068 | } |
3062 | } | 3069 | } |
3063 | 3070 | ||
3064 | 3071 | ||
3065 | void CalendarView::cancelIncidence(Incidence * inc ) | 3072 | void CalendarView::cancelIncidence(Incidence * inc ) |
3066 | { | 3073 | { |
3067 | inc->setCancelled( ! inc->cancelled() ); | 3074 | inc->setCancelled( ! inc->cancelled() ); |
3068 | changeIncidenceDisplay( inc,KOGlobals::EVENTEDITED ); | 3075 | changeIncidenceDisplay( inc,KOGlobals::EVENTEDITED ); |
3069 | updateView(); | 3076 | updateView(); |
3070 | } | 3077 | } |
3071 | void CalendarView::cloneIncidence(Incidence * orgInc ) | 3078 | void CalendarView::cloneIncidence(Incidence * orgInc ) |
3072 | { | 3079 | { |
3073 | Incidence * newInc = orgInc->clone(); | 3080 | Incidence * newInc = orgInc->clone(); |
3074 | newInc->recreate(); | 3081 | newInc->recreate(); |
3075 | 3082 | ||
3076 | if ( newInc->typeID() == todoID ) { | 3083 | if ( newInc->typeID() == todoID ) { |
3077 | Todo* t = (Todo*) newInc; | 3084 | Todo* t = (Todo*) newInc; |
3078 | bool cloneSub = false; | 3085 | bool cloneSub = false; |
3079 | if ( orgInc->relations().count() ) { | 3086 | if ( orgInc->relations().count() ) { |
3080 | int result = KMessageBox::warningYesNoCancel(this, | 3087 | int result = KMessageBox::warningYesNoCancel(this, |
3081 | i18n("The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?").arg( newInc->summary().left ( 25 ) ), | 3088 | i18n("The todo\n%1\nwill be cloned!\nIt has subtodos!\nDo you want to clone\nall subtodos as well?").arg( newInc->summary().left ( 25 ) ), |
3082 | i18n("Todo has subtodos"), | 3089 | i18n("Todo has subtodos"), |
3083 | i18n("Yes"), | 3090 | i18n("Yes"), |
3084 | i18n("No")); | 3091 | i18n("No")); |
3085 | 3092 | ||
3086 | if ( result == KMessageBox::Cancel ) { | 3093 | if ( result == KMessageBox::Cancel ) { |
3087 | delete t; | 3094 | delete t; |
3088 | return; | 3095 | return; |
3089 | } | 3096 | } |
3090 | if (result == KMessageBox::Yes) cloneSub = true; | 3097 | if (result == KMessageBox::Yes) cloneSub = true; |
3091 | } | 3098 | } |
3092 | showTodoEditor(); | 3099 | showTodoEditor(); |
3093 | mTodoEditor->editTodo( t ); | 3100 | mTodoEditor->editTodo( t ); |
3094 | if ( mTodoEditor->exec() ) { | 3101 | if ( mTodoEditor->exec() ) { |
3095 | if ( cloneSub ) { | 3102 | if ( cloneSub ) { |
3096 | orgInc->cloneRelations( t ); | 3103 | orgInc->cloneRelations( t ); |
3097 | mCalendar->addIncidenceBranch( t ); | 3104 | mCalendar->addIncidenceBranch( t ); |
3098 | updateView(); | 3105 | updateView(); |
3099 | 3106 | ||
3100 | } else { | 3107 | } else { |
3101 | mCalendar->addTodo( t ); | 3108 | mCalendar->addTodo( t ); |
3102 | updateView(); | 3109 | updateView(); |
3103 | } | 3110 | } |
3104 | } else { | 3111 | } else { |
3105 | delete t; | 3112 | delete t; |
3106 | } | 3113 | } |
3107 | } | 3114 | } |
3108 | else { | 3115 | else { |
3109 | Event* e = (Event*) newInc; | 3116 | Event* e = (Event*) newInc; |
3110 | showEventEditor(); | 3117 | showEventEditor(); |
3111 | mEventEditor->editEvent( e ); | 3118 | mEventEditor->editEvent( e ); |
3112 | if ( mEventEditor->exec() ) { | 3119 | if ( mEventEditor->exec() ) { |
3113 | mCalendar->addEvent( e ); | 3120 | mCalendar->addEvent( e ); |
3114 | updateView(); | 3121 | updateView(); |
3115 | } else { | 3122 | } else { |
3116 | delete e; | 3123 | delete e; |
3117 | } | 3124 | } |
3118 | } | 3125 | } |
3119 | setActiveWindow(); | 3126 | setActiveWindow(); |
3120 | } | 3127 | } |
3121 | 3128 | ||
3122 | void CalendarView::newEvent() | 3129 | void CalendarView::newEvent() |
3123 | { | 3130 | { |
3124 | // TODO: Replace this code by a common eventDurationHint of KOBaseView. | 3131 | // TODO: Replace this code by a common eventDurationHint of KOBaseView. |
3125 | KOAgendaView *aView = mViewManager->agendaView(); | 3132 | KOAgendaView *aView = mViewManager->agendaView(); |
3126 | if (aView) { | 3133 | if (aView) { |
3127 | if (aView->selectionStart().isValid()) { | 3134 | if (aView->selectionStart().isValid()) { |
3128 | if (aView->selectedIsAllDay()) { | 3135 | if (aView->selectedIsAllDay()) { |
3129 | newEvent(aView->selectionStart(),aView->selectionEnd(),true); | 3136 | newEvent(aView->selectionStart(),aView->selectionEnd(),true); |
3130 | } else { | 3137 | } else { |
3131 | newEvent(aView->selectionStart(),aView->selectionEnd()); | 3138 | newEvent(aView->selectionStart(),aView->selectionEnd()); |
3132 | } | 3139 | } |
3133 | return; | 3140 | return; |
3134 | } | 3141 | } |
3135 | } | 3142 | } |
3136 | 3143 | ||
3137 | QDate date = mNavigator->selectedDates().first(); | 3144 | QDate date = mNavigator->selectedDates().first(); |
3138 | QDateTime current = QDateTime::currentDateTime(); | 3145 | QDateTime current = QDateTime::currentDateTime(); |
3139 | if ( date <= current.date() ) { | 3146 | if ( date <= current.date() ) { |
3140 | int hour = current.time().hour() +1; | 3147 | int hour = current.time().hour() +1; |
3141 | newEvent( QDateTime( current.date(), QTime( hour, 0, 0 ) ), | 3148 | newEvent( QDateTime( current.date(), QTime( hour, 0, 0 ) ), |
3142 | QDateTime( current.date(), QTime( hour+ KOPrefs::instance()->mDefaultDuration, 0, 0 ) ) ); | 3149 | QDateTime( current.date(), QTime( hour+ KOPrefs::instance()->mDefaultDuration, 0, 0 ) ) ); |
3143 | } else | 3150 | } else |
3144 | newEvent( QDateTime( date, QTime( KOPrefs::instance()->mStartTime, 0, 0 ) ), | 3151 | newEvent( QDateTime( date, QTime( KOPrefs::instance()->mStartTime, 0, 0 ) ), |
3145 | QDateTime( date, QTime( KOPrefs::instance()->mStartTime + | 3152 | QDateTime( date, QTime( KOPrefs::instance()->mStartTime + |
3146 | KOPrefs::instance()->mDefaultDuration, 0, 0 ) ) ); | 3153 | KOPrefs::instance()->mDefaultDuration, 0, 0 ) ) ); |
3147 | } | 3154 | } |
3148 | 3155 | ||
3149 | void CalendarView::newEvent(QDateTime fh) | 3156 | void CalendarView::newEvent(QDateTime fh) |
3150 | { | 3157 | { |
3151 | newEvent(fh, | 3158 | newEvent(fh, |
3152 | QDateTime(fh.addSecs(3600*KOPrefs::instance()->mDefaultDuration))); | 3159 | QDateTime(fh.addSecs(3600*KOPrefs::instance()->mDefaultDuration))); |
3153 | } | 3160 | } |
3154 | 3161 | ||
3155 | void CalendarView::newEvent(QDate dt) | 3162 | void CalendarView::newEvent(QDate dt) |
3156 | { | 3163 | { |
3157 | newEvent(QDateTime(dt, QTime(0,0,0)), | 3164 | newEvent(QDateTime(dt, QTime(0,0,0)), |
3158 | QDateTime(dt, QTime(0,0,0)), true); | 3165 | QDateTime(dt, QTime(0,0,0)), true); |
3159 | } | 3166 | } |
3160 | void CalendarView::newEvent(QDateTime fromHint, QDateTime toHint) | 3167 | void CalendarView::newEvent(QDateTime fromHint, QDateTime toHint) |
3161 | { | 3168 | { |
3162 | newEvent(fromHint, toHint, false); | 3169 | newEvent(fromHint, toHint, false); |
3163 | } | 3170 | } |
3164 | void CalendarView::newEvent(QDateTime fromHint, QDateTime toHint, bool allDay) | 3171 | void CalendarView::newEvent(QDateTime fromHint, QDateTime toHint, bool allDay) |
3165 | { | 3172 | { |
3166 | 3173 | ||
3167 | showEventEditor(); | 3174 | showEventEditor(); |
3168 | mEventEditor->newEvent(fromHint,toHint,allDay); | 3175 | mEventEditor->newEvent(fromHint,toHint,allDay); |
3169 | if ( mFilterView->filtersEnabled() ) { | 3176 | if ( mFilterView->filtersEnabled() ) { |
3170 | CalFilter *filter = mFilterView->selectedFilter(); | 3177 | CalFilter *filter = mFilterView->selectedFilter(); |
3171 | if (filter && filter->showCategories()) { | 3178 | if (filter && filter->showCategories()) { |
3172 | mEventEditor->setCategories(filter->categoryList().join(",") ); | 3179 | mEventEditor->setCategories(filter->categoryList().join(",") ); |
3173 | } | 3180 | } |
3174 | if ( filter ) | 3181 | if ( filter ) |
3175 | mEventEditor->setSecrecy( filter->getSecrecy() ); | 3182 | mEventEditor->setSecrecy( filter->getSecrecy() ); |
3176 | } | 3183 | } |
3177 | mEventEditor->exec(); | 3184 | mEventEditor->exec(); |
3178 | setActiveWindow(); | 3185 | setActiveWindow(); |
3179 | } | 3186 | } |
3180 | void CalendarView::todoAdded(Todo * t) | 3187 | void CalendarView::todoAdded(Todo * t) |
3181 | { | 3188 | { |
3182 | 3189 | ||
3183 | changeTodoDisplay ( t ,KOGlobals::EVENTADDED); | 3190 | changeTodoDisplay ( t ,KOGlobals::EVENTADDED); |
3184 | updateTodoViews(); | 3191 | updateTodoViews(); |
3185 | } | 3192 | } |
3186 | void CalendarView::todoChanged(Todo * t) | 3193 | void CalendarView::todoChanged(Todo * t) |
3187 | { | 3194 | { |
3188 | emit todoModified( t, 4 ); | 3195 | emit todoModified( t, 4 ); |
3189 | // updateTodoViews(); | 3196 | // updateTodoViews(); |
3190 | } | 3197 | } |
3191 | void CalendarView::todoToBeDeleted(Todo *) | 3198 | void CalendarView::todoToBeDeleted(Todo *) |
3192 | { | 3199 | { |
3193 | //qDebug("todoToBeDeleted(Todo *) "); | 3200 | //qDebug("todoToBeDeleted(Todo *) "); |
3194 | updateTodoViews(); | 3201 | updateTodoViews(); |
3195 | } | 3202 | } |
3196 | void CalendarView::todoDeleted() | 3203 | void CalendarView::todoDeleted() |
3197 | { | 3204 | { |
3198 | //qDebug(" todoDeleted()"); | 3205 | //qDebug(" todoDeleted()"); |
3199 | updateTodoViews(); | 3206 | updateTodoViews(); |
3200 | } | 3207 | } |
3201 | 3208 | ||
3202 | 3209 | ||
3203 | void CalendarView::newTodoDateTime( QDateTime dt, bool allday ) | 3210 | void CalendarView::newTodoDateTime( QDateTime dt, bool allday ) |
3204 | { | 3211 | { |
diff --git a/korganizer/calendarview.h b/korganizer/calendarview.h index f7e5366..3323a98 100644 --- a/korganizer/calendarview.h +++ b/korganizer/calendarview.h | |||
@@ -104,554 +104,555 @@ class MissedAlarmTextBrowser : public QTextBrowser { | |||
104 | 104 | ||
105 | class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer, public KSyncInterface | 105 | class CalendarView : public KOrg::CalendarViewBase, public KCal::Calendar::Observer, public KSyncInterface |
106 | { | 106 | { |
107 | Q_OBJECT | 107 | Q_OBJECT |
108 | public: | 108 | public: |
109 | /** | 109 | /** |
110 | Constructs a new calendar view widget. | 110 | Constructs a new calendar view widget. |
111 | 111 | ||
112 | @param calendar calendar document | 112 | @param calendar calendar document |
113 | @param parent parent window | 113 | @param parent parent window |
114 | @param name Qt internal widget object name | 114 | @param name Qt internal widget object name |
115 | */ | 115 | */ |
116 | CalendarView( CalendarResources *calendar, QWidget *parent = 0, | 116 | CalendarView( CalendarResources *calendar, QWidget *parent = 0, |
117 | const char *name = 0 ); | 117 | const char *name = 0 ); |
118 | CalendarView( Calendar *calendar, QWidget *parent = 0, | 118 | CalendarView( Calendar *calendar, QWidget *parent = 0, |
119 | const char *name = 0 ); | 119 | const char *name = 0 ); |
120 | virtual ~CalendarView(); | 120 | virtual ~CalendarView(); |
121 | 121 | ||
122 | Calendar *calendar() { return mCalendar; } | 122 | Calendar *calendar() { return mCalendar; } |
123 | 123 | ||
124 | KOViewManager *viewManager(); | 124 | KOViewManager *viewManager(); |
125 | KODialogManager *dialogManager(); | 125 | KODialogManager *dialogManager(); |
126 | 126 | ||
127 | QDate startDate(); | 127 | QDate startDate(); |
128 | QDate endDate(); | 128 | QDate endDate(); |
129 | 129 | ||
130 | QWidgetStack *viewStack(); | 130 | QWidgetStack *viewStack(); |
131 | QWidget *leftFrame(); | 131 | QWidget *leftFrame(); |
132 | 132 | ||
133 | DateNavigator *dateNavigator(); | 133 | DateNavigator *dateNavigator(); |
134 | KDateNavigator *dateNavigatorWidget(); | 134 | KDateNavigator *dateNavigatorWidget(); |
135 | 135 | ||
136 | void addView(KOrg::BaseView *); | 136 | void addView(KOrg::BaseView *); |
137 | void showView(KOrg::BaseView *); | 137 | void showView(KOrg::BaseView *); |
138 | KOEventViewerDialog* getEventViewerDialog(); | 138 | KOEventViewerDialog* getEventViewerDialog(); |
139 | Incidence *currentSelection(); | 139 | Incidence *currentSelection(); |
140 | 140 | ||
141 | signals: | 141 | signals: |
142 | void save (); | 142 | void save (); |
143 | void saveStopTimer (); | 143 | void saveStopTimer (); |
144 | void tempDisableBR(bool); | 144 | void tempDisableBR(bool); |
145 | /** This todo has been modified */ | 145 | /** This todo has been modified */ |
146 | void todoModified(Todo *, int); | 146 | void todoModified(Todo *, int); |
147 | 147 | ||
148 | /** when change is made to options dialog, the topwidget will catch this | 148 | /** when change is made to options dialog, the topwidget will catch this |
149 | * and emit this signal which notifies all widgets which have registered | 149 | * and emit this signal which notifies all widgets which have registered |
150 | * for notification to update their settings. */ | 150 | * for notification to update their settings. */ |
151 | void configChanged(); | 151 | void configChanged(); |
152 | /** emitted when the topwidget is closing down, so that any attached | 152 | /** emitted when the topwidget is closing down, so that any attached |
153 | child windows can also close. */ | 153 | child windows can also close. */ |
154 | void closingDown(); | 154 | void closingDown(); |
155 | /** emitted right before we die */ | 155 | /** emitted right before we die */ |
156 | void closed(QWidget *); | 156 | void closed(QWidget *); |
157 | 157 | ||
158 | /** Emitted when state of modified flag changes */ | 158 | /** Emitted when state of modified flag changes */ |
159 | void modifiedChanged(bool); | 159 | void modifiedChanged(bool); |
160 | void signalmodified(); | 160 | void signalmodified(); |
161 | 161 | ||
162 | /** Emitted when state of read-only flag changes */ | 162 | /** Emitted when state of read-only flag changes */ |
163 | void readOnlyChanged(bool); | 163 | void readOnlyChanged(bool); |
164 | 164 | ||
165 | /** Emitted when the unit of navigation changes */ | 165 | /** Emitted when the unit of navigation changes */ |
166 | void changeNavStringPrev(const QString &); | 166 | void changeNavStringPrev(const QString &); |
167 | void changeNavStringNext(const QString &); | 167 | void changeNavStringNext(const QString &); |
168 | 168 | ||
169 | /** Emitted when state of events selection has changed and user is organizer*/ | 169 | /** Emitted when state of events selection has changed and user is organizer*/ |
170 | void organizerEventsSelected(bool); | 170 | void organizerEventsSelected(bool); |
171 | /** Emitted when state of events selection has changed and user is attendee*/ | 171 | /** Emitted when state of events selection has changed and user is attendee*/ |
172 | void groupEventsSelected(bool); | 172 | void groupEventsSelected(bool); |
173 | /** | 173 | /** |
174 | Emitted when an incidence gets selected. If the selection is cleared the | 174 | Emitted when an incidence gets selected. If the selection is cleared the |
175 | signal is emitted with 0 as argument. | 175 | signal is emitted with 0 as argument. |
176 | */ | 176 | */ |
177 | void incidenceSelected( Incidence * ); | 177 | void incidenceSelected( Incidence * ); |
178 | /** Emitted, when a todoitem is selected or deselected. */ | 178 | /** Emitted, when a todoitem is selected or deselected. */ |
179 | void todoSelected( bool ); | 179 | void todoSelected( bool ); |
180 | 180 | ||
181 | /** | 181 | /** |
182 | Emitted, when clipboard content changes. Parameter indicates if paste | 182 | Emitted, when clipboard content changes. Parameter indicates if paste |
183 | is possible or not. | 183 | is possible or not. |
184 | */ | 184 | */ |
185 | void pasteEnabled(bool); | 185 | void pasteEnabled(bool); |
186 | 186 | ||
187 | /** Emitted, when the number of incoming messages has changed. */ | 187 | /** Emitted, when the number of incoming messages has changed. */ |
188 | void numIncomingChanged(int); | 188 | void numIncomingChanged(int); |
189 | 189 | ||
190 | /** Emitted, when the number of outgoing messages has changed. */ | 190 | /** Emitted, when the number of outgoing messages has changed. */ |
191 | void numOutgoingChanged(int); | 191 | void numOutgoingChanged(int); |
192 | 192 | ||
193 | /** Send status message, which can e.g. be displayed in the status bar. */ | 193 | /** Send status message, which can e.g. be displayed in the status bar. */ |
194 | void statusMessage(const QString &); | 194 | void statusMessage(const QString &); |
195 | 195 | ||
196 | void calendarViewExpanded( bool ); | 196 | void calendarViewExpanded( bool ); |
197 | void updateSearchDialog(); | 197 | void updateSearchDialog(); |
198 | void filtersUpdated(); | 198 | void filtersUpdated(); |
199 | 199 | ||
200 | 200 | ||
201 | public slots: | 201 | public slots: |
202 | void checkAlarms(); | 202 | void checkAlarms(); |
203 | void slotprintSelInc(); | 203 | void slotprintSelInc(); |
204 | void showNextAlarms(); | 204 | void showNextAlarms(); |
205 | void showOpenError(); | 205 | void showOpenError(); |
206 | void watchSavedFile(); | 206 | void watchSavedFile(); |
207 | void recheckTimerAlarm(); | 207 | void recheckTimerAlarm(); |
208 | void checkNextTimerAlarm(); | 208 | void checkNextTimerAlarm(); |
209 | void addAlarm(const QDateTime &qdt, const QString ¬i ); | 209 | void addAlarm(const QDateTime &qdt, const QString ¬i ); |
210 | void addSuspendAlarm(const QDateTime &qdt, const QString ¬i ); | 210 | void addSuspendAlarm(const QDateTime &qdt, const QString ¬i ); |
211 | void removeAlarm(const QDateTime &qdt, const QString ¬i ); | 211 | void removeAlarm(const QDateTime &qdt, const QString ¬i ); |
212 | 212 | ||
213 | /** options dialog made a changed to the configuration. we catch this | 213 | /** options dialog made a changed to the configuration. we catch this |
214 | * and notify all widgets which need to update their configuration. */ | 214 | * and notify all widgets which need to update their configuration. */ |
215 | void updateConfig(); | 215 | void updateConfig(); |
216 | 216 | ||
217 | void insertBirthdays(const QString& uid, const QStringList& birthdayList, | 217 | void insertBirthdays(const QString& uid, const QStringList& birthdayList, |
218 | const QStringList& anniversaryList, const QStringList& realNameList, | 218 | const QStringList& anniversaryList, const QStringList& realNameList, |
219 | const QStringList& emailList, const QStringList& assembledNameList, | 219 | const QStringList& emailList, const QStringList& assembledNameList, |
220 | const QStringList& uidList); | 220 | const QStringList& uidList); |
221 | 221 | ||
222 | /** | 222 | /** |
223 | Load calendar from file \a filename. If \a merge is true, load | 223 | Load calendar from file \a filename. If \a merge is true, load |
224 | calendar into existing one, if it is false, clear calendar, before | 224 | calendar into existing one, if it is false, clear calendar, before |
225 | loading. Return true, if calendar could be successfully loaded. | 225 | loading. Return true, if calendar could be successfully loaded. |
226 | */ | 226 | */ |
227 | bool openCalendar(QString filename, bool merge=false); | 227 | bool openCalendar(QString filename, bool merge=false); |
228 | bool loadCalendars(); | 228 | bool loadCalendars(); |
229 | bool saveCalendars(); | 229 | bool saveCalendars(); |
230 | bool restoreCalendarSettings(); | 230 | bool restoreCalendarSettings(); |
231 | bool addCalendar( KopiCalendarFile * ); | 231 | bool addCalendar( KopiCalendarFile * ); |
232 | void addCalendarId( int id ); | 232 | void addCalendarId( int id ); |
233 | bool syncCalendar(QString filename,int mode = 0 ); | 233 | bool syncCalendar(QString filename,int mode = 0 ); |
234 | 234 | ||
235 | /** | 235 | /** |
236 | Save calendar data to file. Return true if calendar could be | 236 | Save calendar data to file. Return true if calendar could be |
237 | successfully saved. | 237 | successfully saved. |
238 | */ | 238 | */ |
239 | bool saveCalendar(QString filename); | 239 | bool saveCalendar(QString filename); |
240 | 240 | ||
241 | /** | 241 | /** |
242 | Close calendar. Clear calendar data and reset views to display an empty | 242 | Close calendar. Clear calendar data and reset views to display an empty |
243 | calendar. | 243 | calendar. |
244 | */ | 244 | */ |
245 | void closeCalendar(); | 245 | void closeCalendar(); |
246 | 246 | ||
247 | /** Archive old events of calendar */ | 247 | /** Archive old events of calendar */ |
248 | void archiveCalendar(); | 248 | void archiveCalendar(); |
249 | 249 | ||
250 | void showIncidence(); | 250 | void showIncidence(); |
251 | void editIncidence(); | 251 | void editIncidence(); |
252 | void editIncidenceDescription(); | 252 | void editIncidenceDescription(); |
253 | void deleteIncidence(); | 253 | void deleteIncidence(); |
254 | void cloneIncidence(); | 254 | void cloneIncidence(); |
255 | void moveIncidence(); | 255 | void moveIncidence(); |
256 | void beamIncidence(); | 256 | void beamIncidence(); |
257 | void toggleCancelIncidence(); | 257 | void toggleCancelIncidence(); |
258 | 258 | ||
259 | /** create an editeventwin with supplied date/time, and if bool is true, | 259 | /** create an editeventwin with supplied date/time, and if bool is true, |
260 | * make the event take all day. */ | 260 | * make the event take all day. */ |
261 | void newEvent(QDateTime, QDateTime, bool allDay ); | 261 | void newEvent(QDateTime, QDateTime, bool allDay ); |
262 | void newEvent(QDateTime, QDateTime); | 262 | void newEvent(QDateTime, QDateTime); |
263 | void newEvent(QDateTime fh); | 263 | void newEvent(QDateTime fh); |
264 | void newEvent(QDate dt); | 264 | void newEvent(QDate dt); |
265 | /** create new event without having a date hint. Takes current date as | 265 | /** create new event without having a date hint. Takes current date as |
266 | default hint. */ | 266 | default hint. */ |
267 | void newEvent(); | 267 | void newEvent(); |
268 | void newFloatingEvent(); | 268 | void newFloatingEvent(); |
269 | 269 | ||
270 | /** Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method*/ | 270 | /** Create a read-only viewer dialog for the supplied incidence. It calls the correct showXXX method*/ |
271 | void showIncidence(Incidence *); | 271 | void showIncidence(Incidence *); |
272 | void showIncidence(QString uid); | 272 | void showIncidence(QString uid); |
273 | /** Create an editor for the supplied incidence. It calls the correct editXXX method*/ | 273 | /** Create an editor for the supplied incidence. It calls the correct editXXX method*/ |
274 | void editIncidence(Incidence *); | 274 | void editIncidence(Incidence *); |
275 | /** Delete the supplied incidence. It calls the correct deleteXXX method*/ | 275 | /** Delete the supplied incidence. It calls the correct deleteXXX method*/ |
276 | void deleteIncidence(Incidence *); | 276 | void deleteIncidence(Incidence *); |
277 | void cloneIncidence(Incidence *); | 277 | void cloneIncidence(Incidence *); |
278 | void cancelIncidence(Incidence *); | 278 | void cancelIncidence(Incidence *); |
279 | /** Create an editor for the supplied event. */ | 279 | /** Create an editor for the supplied event. */ |
280 | void editEvent(Event *); | 280 | void editEvent(Event *); |
281 | /** Delete the supplied event. */ | 281 | /** Delete the supplied event. */ |
282 | void deleteEvent(Event *); | 282 | void deleteEvent(Event *); |
283 | /** Delete the event with the given unique ID. Returns false, if event wasn't | 283 | /** Delete the event with the given unique ID. Returns false, if event wasn't |
284 | found. */ | 284 | found. */ |
285 | bool deleteEvent(const QString &uid); | 285 | bool deleteEvent(const QString &uid); |
286 | /** Create a read-only viewer dialog for the supplied event. */ | 286 | /** Create a read-only viewer dialog for the supplied event. */ |
287 | void showEvent(Event *); | 287 | void showEvent(Event *); |
288 | 288 | ||
289 | void editJournal(Journal *); | 289 | void editJournal(Journal *); |
290 | void showJournal(Journal *); | 290 | void showJournal(Journal *); |
291 | void deleteJournal(Journal *); | 291 | void deleteJournal(Journal *); |
292 | /** Create an editor dialog for a todo */ | 292 | /** Create an editor dialog for a todo */ |
293 | void editTodo(Todo *); | 293 | void editTodo(Todo *); |
294 | /** Create a read-only viewer dialog for the supplied todo */ | 294 | /** Create a read-only viewer dialog for the supplied todo */ |
295 | void showTodo(Todo *); | 295 | void showTodo(Todo *); |
296 | /** create new todo */ | 296 | /** create new todo */ |
297 | void newTodo(); | 297 | void newTodo(); |
298 | void newTodoDateTime(QDateTime, bool allday); | 298 | void newTodoDateTime(QDateTime, bool allday); |
299 | /** create new todo with a parent todo */ | 299 | /** create new todo with a parent todo */ |
300 | void newSubTodo(); | 300 | void newSubTodo(); |
301 | /** create new todo with a parent todo */ | 301 | /** create new todo with a parent todo */ |
302 | void newSubTodo(Todo *); | 302 | void newSubTodo(Todo *); |
303 | /** Delete todo */ | 303 | /** Delete todo */ |
304 | void deleteTodo(Todo *); | 304 | void deleteTodo(Todo *); |
305 | 305 | ||
306 | 306 | ||
307 | /** Check if clipboard contains vCalendar event. The signal pasteEnabled() is | 307 | /** Check if clipboard contains vCalendar event. The signal pasteEnabled() is |
308 | * emitted as result. */ | 308 | * emitted as result. */ |
309 | void checkClipboard(); | 309 | void checkClipboard(); |
310 | 310 | ||
311 | /** using the KConfig associated with the kapp variable, read in the | 311 | /** using the KConfig associated with the kapp variable, read in the |
312 | * settings from the config file. | 312 | * settings from the config file. |
313 | */ | 313 | */ |
314 | void readSettings(); | 314 | void readSettings(); |
315 | 315 | ||
316 | /** write current state to config file. */ | 316 | /** write current state to config file. */ |
317 | void writeSettings(); | 317 | void writeSettings(); |
318 | 318 | ||
319 | /** read settings for calendar filters */ | 319 | /** read settings for calendar filters */ |
320 | void readFilterSettings(KConfig *config); | 320 | void readFilterSettings(KConfig *config); |
321 | 321 | ||
322 | /** write settings for calendar filters */ | 322 | /** write settings for calendar filters */ |
323 | void writeFilterSettings(KConfig *config); | 323 | void writeFilterSettings(KConfig *config); |
324 | 324 | ||
325 | /** passes on the message that an event has changed to the currently | 325 | /** passes on the message that an event has changed to the currently |
326 | * activated view so that it can make appropriate display changes. */ | 326 | * activated view so that it can make appropriate display changes. */ |
327 | void changeEventDisplay(Event *, int); | 327 | void changeEventDisplay(Event *, int); |
328 | void changeIncidenceDisplay(Incidence *, int); | 328 | void changeIncidenceDisplay(Incidence *, int); |
329 | void changeTodoDisplay(Todo *, int); | 329 | void changeTodoDisplay(Todo *, int); |
330 | 330 | ||
331 | void eventAdded(Event *); | 331 | void eventAdded(Event *); |
332 | void eventChanged(Event *); | 332 | void eventChanged(Event *); |
333 | void eventToBeDeleted(Event *); | 333 | void eventToBeDeleted(Event *); |
334 | void eventDeleted(); | 334 | void eventDeleted(); |
335 | 335 | ||
336 | void todoAdded(Todo *); | 336 | void todoAdded(Todo *); |
337 | void todoChanged(Todo *); | 337 | void todoChanged(Todo *); |
338 | void todoToBeDeleted(Todo *); | 338 | void todoToBeDeleted(Todo *); |
339 | void todoDeleted(); | 339 | void todoDeleted(); |
340 | 340 | ||
341 | void updateView(const QDate &start, const QDate &end); | 341 | void updateView(const QDate &start, const QDate &end); |
342 | void updateView(); | 342 | void updateView(); |
343 | void clearAllViews(); | 343 | void clearAllViews(); |
344 | 344 | ||
345 | /** Full update of visible todo views */ | 345 | /** Full update of visible todo views */ |
346 | void updateTodoViews(); | 346 | void updateTodoViews(); |
347 | 347 | ||
348 | void updateUnmanagedViews(); | 348 | void updateUnmanagedViews(); |
349 | 349 | ||
350 | /** cut the current appointment to the clipboard */ | 350 | /** cut the current appointment to the clipboard */ |
351 | void edit_cut(); | 351 | void edit_cut(); |
352 | 352 | ||
353 | /** copy the current appointment(s) to the clipboard */ | 353 | /** copy the current appointment(s) to the clipboard */ |
354 | void edit_copy(); | 354 | void edit_copy(); |
355 | 355 | ||
356 | /** paste the current vobject(s) in the clipboard buffer into calendar */ | 356 | /** paste the current vobject(s) in the clipboard buffer into calendar */ |
357 | void edit_paste(); | 357 | void edit_paste(); |
358 | 358 | ||
359 | /** edit viewing and configuration options. */ | 359 | /** edit viewing and configuration options. */ |
360 | void edit_options(); | 360 | void edit_options(); |
361 | void edit_global_options(); | 361 | void edit_global_options(); |
362 | /** | 362 | /** |
363 | Functions for printing, previewing a print, and setting up printing | 363 | Functions for printing, previewing a print, and setting up printing |
364 | parameters. | 364 | parameters. |
365 | */ | 365 | */ |
366 | void print(); | 366 | void print(); |
367 | void printSetup(); | 367 | void printSetup(); |
368 | void printPreview(); | 368 | void printPreview(); |
369 | 369 | ||
370 | /** Export as iCalendar file */ | 370 | /** Export as iCalendar file */ |
371 | void exportICalendar(); | 371 | void exportICalendar(); |
372 | 372 | ||
373 | /** Export as vCalendar file */ | 373 | /** Export as vCalendar file */ |
374 | bool exportVCalendar( QString fn); | 374 | bool exportVCalendar( QString fn); |
375 | 375 | ||
376 | /** pop up a dialog to show an existing appointment. */ | 376 | /** pop up a dialog to show an existing appointment. */ |
377 | void appointment_show(); | 377 | void appointment_show(); |
378 | /** | 378 | /** |
379 | * pop up an Appointment Dialog to edit an existing appointment.Get | 379 | * pop up an Appointment Dialog to edit an existing appointment.Get |
380 | * information on the appointment from the list of unique IDs that is | 380 | * information on the appointment from the list of unique IDs that is |
381 | * currently in the View, called currIds. | 381 | * currently in the View, called currIds. |
382 | */ | 382 | */ |
383 | void appointment_edit(); | 383 | void appointment_edit(); |
384 | /** | 384 | /** |
385 | * pop up dialog confirming deletion of currently selected event in the | 385 | * pop up dialog confirming deletion of currently selected event in the |
386 | * View. | 386 | * View. |
387 | */ | 387 | */ |
388 | void appointment_delete(); | 388 | void appointment_delete(); |
389 | 389 | ||
390 | /** mails the currently selected event to a particular user as a vCalendar | 390 | /** mails the currently selected event to a particular user as a vCalendar |
391 | attachment. */ | 391 | attachment. */ |
392 | void action_mail(); | 392 | void action_mail(); |
393 | 393 | ||
394 | /* frees a subtodo from it's relation */ | 394 | /* frees a subtodo from it's relation */ |
395 | void todo_unsub( Todo * ); | 395 | void todo_unsub( Todo * ); |
396 | void todo_resub( Todo * parent, Todo * sub ); | 396 | void todo_resub( Todo * parent, Todo * sub ); |
397 | 397 | ||
398 | /** Take ownership of selected event. */ | 398 | /** Take ownership of selected event. */ |
399 | void takeOverEvent(); | 399 | void takeOverEvent(); |
400 | 400 | ||
401 | /** Take ownership of all events in calendar. */ | 401 | /** Take ownership of all events in calendar. */ |
402 | void takeOverCalendar(); | 402 | void takeOverCalendar(); |
403 | 403 | ||
404 | /** query whether or not the calendar is "dirty". */ | 404 | /** query whether or not the calendar is "dirty". */ |
405 | bool isModified(); | 405 | bool isModified(); |
406 | /** set the state of calendar. Modified means "dirty", i.e. needing a save. */ | 406 | /** set the state of calendar. Modified means "dirty", i.e. needing a save. */ |
407 | void setModified(bool modified=true); | 407 | void setModified(bool modified=true); |
408 | 408 | ||
409 | /** query if the calendar is read-only. */ | 409 | /** query if the calendar is read-only. */ |
410 | bool isReadOnly(); | 410 | bool isReadOnly(); |
411 | /** set state of calendar to read-only */ | 411 | /** set state of calendar to read-only */ |
412 | void setReadOnly(bool readOnly=true); | 412 | void setReadOnly(bool readOnly=true); |
413 | 413 | ||
414 | void eventUpdated(Incidence *); | 414 | void eventUpdated(Incidence *); |
415 | 415 | ||
416 | /* iTIP scheduling actions */ | 416 | /* iTIP scheduling actions */ |
417 | void schedule_publish(Incidence *incidence = 0); | 417 | void schedule_publish(Incidence *incidence = 0); |
418 | void schedule_request(Incidence *incidence = 0); | 418 | void schedule_request(Incidence *incidence = 0); |
419 | void schedule_refresh(Incidence *incidence = 0); | 419 | void schedule_refresh(Incidence *incidence = 0); |
420 | void schedule_cancel(Incidence *incidence = 0); | 420 | void schedule_cancel(Incidence *incidence = 0); |
421 | void schedule_add(Incidence *incidence = 0); | 421 | void schedule_add(Incidence *incidence = 0); |
422 | void schedule_reply(Incidence *incidence = 0); | 422 | void schedule_reply(Incidence *incidence = 0); |
423 | void schedule_counter(Incidence *incidence = 0); | 423 | void schedule_counter(Incidence *incidence = 0); |
424 | void schedule_declinecounter(Incidence *incidence = 0); | 424 | void schedule_declinecounter(Incidence *incidence = 0); |
425 | void schedule_publish_freebusy(int daysToPublish = 30); | 425 | void schedule_publish_freebusy(int daysToPublish = 30); |
426 | 426 | ||
427 | void openAddressbook(); | 427 | void openAddressbook(); |
428 | 428 | ||
429 | void editFilters(); | 429 | void editFilters(); |
430 | void toggleFilerEnabled(); | 430 | void toggleFilerEnabled(); |
431 | QPtrList<CalFilter> filters(); | 431 | QPtrList<CalFilter> filters(); |
432 | void toggleFilter(); | 432 | void toggleFilter(); |
433 | void showFilter(bool visible); | 433 | void showFilter(bool visible); |
434 | void updateFilter(); | 434 | void updateFilter(); |
435 | void filterEdited(); | 435 | void filterEdited(); |
436 | void selectFilter( int ); | 436 | void selectFilter( int ); |
437 | KOFilterView *filterView(); | 437 | KOFilterView *filterView(); |
438 | 438 | ||
439 | void showIntro(); | 439 | void showIntro(); |
440 | 440 | ||
441 | /** Move the curdatepient view date to today */ | 441 | /** Move the curdatepient view date to today */ |
442 | void goToday(); | 442 | void goToday(); |
443 | 443 | ||
444 | /** Move to the next date(s) in the current view */ | 444 | /** Move to the next date(s) in the current view */ |
445 | void goNext(); | 445 | void goNext(); |
446 | 446 | ||
447 | /** Move to the previous date(s) in the current view */ | 447 | /** Move to the previous date(s) in the current view */ |
448 | void goPrevious(); | 448 | void goPrevious(); |
449 | /** Move to the next date(s) in the current view */ | 449 | /** Move to the next date(s) in the current view */ |
450 | void goNextMonth(); | 450 | void goNextMonth(); |
451 | 451 | ||
452 | /** Move to the previous date(s) in the current view */ | 452 | /** Move to the previous date(s) in the current view */ |
453 | void goPreviousMonth(); | 453 | void goPreviousMonth(); |
454 | 454 | ||
455 | void toggleExpand(); | 455 | void toggleExpand(); |
456 | void toggleDateNavigatorWidget(); | 456 | void toggleDateNavigatorWidget(); |
457 | void toggleAllDaySize(); | 457 | void toggleAllDaySize(); |
458 | void dialogClosing(Incidence *); | 458 | void dialogClosing(Incidence *); |
459 | 459 | ||
460 | /** Look for new messages in the inbox */ | 460 | /** Look for new messages in the inbox */ |
461 | void lookForIncomingMessages(); | 461 | void lookForIncomingMessages(); |
462 | /** Look for new messages in the outbox */ | 462 | /** Look for new messages in the outbox */ |
463 | void lookForOutgoingMessages(); | 463 | void lookForOutgoingMessages(); |
464 | 464 | ||
465 | void processMainViewSelection( Incidence * ); | 465 | void processMainViewSelection( Incidence * ); |
466 | void processTodoListSelection( Incidence * ); | 466 | void processTodoListSelection( Incidence * ); |
467 | 467 | ||
468 | void processIncidenceSelection( Incidence * ); | 468 | void processIncidenceSelection( Incidence * ); |
469 | 469 | ||
470 | void purgeCompleted(); | 470 | void purgeCompleted(); |
471 | bool removeCompletedSubTodos( Todo* ); | 471 | bool removeCompletedSubTodos( Todo* ); |
472 | void slotCalendarChanged(); | 472 | void slotCalendarChanged(); |
473 | bool importBday(); | 473 | bool importBday(); |
474 | bool addAnniversary( QDate data, QString name, KCal::Attendee* a , bool birthday ); | 474 | bool addAnniversary( QDate data, QString name, KCal::Attendee* a , bool birthday ); |
475 | bool importQtopia( const QString &categoriesFile, | 475 | bool importQtopia( const QString &categoriesFile, |
476 | const QString &datebookFile, | 476 | const QString &datebookFile, |
477 | const QString &tasklistFile ); | 477 | const QString &tasklistFile ); |
478 | void syncExternal( int mode ); | 478 | void syncExternal( int mode ); |
479 | void slotSelectPickerDate( QDate ) ; | 479 | void slotSelectPickerDate( QDate ) ; |
480 | void showDatePicker() ; | 480 | void showDatePicker() ; |
481 | void showDatePickerPopup() ; | 481 | void showDatePickerPopup() ; |
482 | void moveIncidence(Incidence *) ; | 482 | void moveIncidence(Incidence *) ; |
483 | void beamIncidence(Incidence *) ; | 483 | void beamIncidence(Incidence *) ; |
484 | void beamCalendar() ; | 484 | void beamCalendar() ; |
485 | void beamFilteredCalendar() ; | 485 | void beamFilteredCalendar() ; |
486 | void beamIncidenceList(QPtrList<Incidence>) ; | 486 | void beamIncidenceList(QPtrList<Incidence>) ; |
487 | void manageCategories(); | 487 | void manageCategories(); |
488 | void editCategories(); | ||
488 | int addCategories(); | 489 | int addCategories(); |
489 | void removeCategories(); | 490 | void removeCategories(); |
490 | void setSyncDevice( QString ); | 491 | void setSyncDevice( QString ); |
491 | void setSyncName( QString ); | 492 | void setSyncName( QString ); |
492 | void showDay( QDate ); | 493 | void showDay( QDate ); |
493 | void undo_delete(); | 494 | void undo_delete(); |
494 | protected slots: | 495 | protected slots: |
495 | void resetFocus(); | 496 | void resetFocus(); |
496 | void scrollBarValue(int); | 497 | void scrollBarValue(int); |
497 | void slotViewerClosed(); | 498 | void slotViewerClosed(); |
498 | void timerAlarm(); | 499 | void timerAlarm(); |
499 | void suspendAlarm(); | 500 | void suspendAlarm(); |
500 | void beamDone( Ir *ir ); | 501 | void beamDone( Ir *ir ); |
501 | /** Select a view or adapt the current view to display the specified dates. */ | 502 | /** Select a view or adapt the current view to display the specified dates. */ |
502 | void showDates( const KCal::DateList & ); | 503 | void showDates( const KCal::DateList & ); |
503 | void selectWeekNum ( int ); | 504 | void selectWeekNum ( int ); |
504 | 505 | ||
505 | public: | 506 | public: |
506 | // show a standard warning | 507 | // show a standard warning |
507 | // returns KMsgBox::yesNoCancel() | 508 | // returns KMsgBox::yesNoCancel() |
508 | int msgCalModified(); | 509 | int msgCalModified(); |
509 | virtual bool sync(KSyncManager* manager, QString filename, int mode); | 510 | virtual bool sync(KSyncManager* manager, QString filename, int mode); |
510 | 511 | ||
511 | virtual bool syncExternal(KSyncManager* manager, QString resource); | 512 | virtual bool syncExternal(KSyncManager* manager, QString resource); |
512 | virtual void removeSyncInfo( QString syncProfile); | 513 | virtual void removeSyncInfo( QString syncProfile); |
513 | void setSyncManager(KSyncManager* manager); | 514 | void setSyncManager(KSyncManager* manager); |
514 | void setLoadedFileVersion(QDateTime); | 515 | void setLoadedFileVersion(QDateTime); |
515 | bool checkFileVersion(QString fn); | 516 | bool checkFileVersion(QString fn); |
516 | bool checkAllFileVersions(); | 517 | bool checkAllFileVersions(); |
517 | bool checkFileChanged(QString fn); | 518 | bool checkFileChanged(QString fn); |
518 | Event* getLastSyncEvent(); | 519 | Event* getLastSyncEvent(); |
519 | /** Adapt navigation units correpsonding to step size of navigation of the | 520 | /** Adapt navigation units correpsonding to step size of navigation of the |
520 | * current view. | 521 | * current view. |
521 | */ | 522 | */ |
522 | void adaptNavigationUnits(); | 523 | void adaptNavigationUnits(); |
523 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); | 524 | bool synchronizeCalendar( Calendar* local, Calendar* remote, int mode ); |
524 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); | 525 | int takeEvent( Incidence* local, Incidence* remote, int mode, bool full = false ); |
525 | //Attendee* getYourAttendee(Event *event); | 526 | //Attendee* getYourAttendee(Event *event); |
526 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} | 527 | void setBlockShowDates( bool b ) { mBlockShowDates = b ;} |
527 | void setScrollBarStep(int val ); | 528 | void setScrollBarStep(int val ); |
528 | 529 | ||
529 | protected: | 530 | protected: |
530 | void schedule(Scheduler::Method, Incidence *incidence = 0); | 531 | void schedule(Scheduler::Method, Incidence *incidence = 0); |
531 | 532 | ||
532 | // returns KMsgBox::OKCandel() | 533 | // returns KMsgBox::OKCandel() |
533 | int msgItemDelete(const QString name); | 534 | int msgItemDelete(const QString name); |
534 | void showEventEditor(); | 535 | void showEventEditor(); |
535 | void showTodoEditor(); | 536 | void showTodoEditor(); |
536 | Todo *selectedTodo(); | 537 | Todo *selectedTodo(); |
537 | private: | 538 | private: |
538 | #ifdef DESKTOP_VERSION | 539 | #ifdef DESKTOP_VERSION |
539 | QScrollBar * mDateScrollBar; | 540 | QScrollBar * mDateScrollBar; |
540 | #endif | 541 | #endif |
541 | QDateTime mNextAlarmDateTime; | 542 | QDateTime mNextAlarmDateTime; |
542 | bool mViewerCallerIsSearchDialog; | 543 | bool mViewerCallerIsSearchDialog; |
543 | bool mBlockShowDates; | 544 | bool mBlockShowDates; |
544 | KSyncManager* mSyncManager; | 545 | KSyncManager* mSyncManager; |
545 | AlarmDialog * mAlarmDialog; | 546 | AlarmDialog * mAlarmDialog; |
546 | QString mAlarmNotification; | 547 | QString mAlarmNotification; |
547 | QString mSuspendAlarmNotification; | 548 | QString mSuspendAlarmNotification; |
548 | QTimer* mSuspendTimer; | 549 | QTimer* mSuspendTimer; |
549 | QTimer* mAlarmTimer; | 550 | QTimer* mAlarmTimer; |
550 | QTimer* mRecheckAlarmTimer; | 551 | QTimer* mRecheckAlarmTimer; |
551 | void computeAlarm( QString ); | 552 | void computeAlarm( QString ); |
552 | void startAlarm( QString, QString ); | 553 | void startAlarm( QString, QString ); |
553 | void setSyncEventsReadOnly(); | 554 | void setSyncEventsReadOnly(); |
554 | 555 | ||
555 | QDateTime loadedFileVersion; | 556 | QDateTime loadedFileVersion; |
556 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); | 557 | void checkExternSyncEvent( QPtrList<Event> lastSync , Incidence* toDelete ); |
557 | void checkExternalId( Incidence * inc ); | 558 | void checkExternalId( Incidence * inc ); |
558 | int mGlobalSyncMode; | 559 | int mGlobalSyncMode; |
559 | QString mCurrentSyncDevice; | 560 | QString mCurrentSyncDevice; |
560 | QString mCurrentSyncName; | 561 | QString mCurrentSyncName; |
561 | void init(); | 562 | void init(); |
562 | int mDatePickerMode; | 563 | int mDatePickerMode; |
563 | bool mFlagEditDescription; | 564 | bool mFlagEditDescription; |
564 | QDateTime mLastCalendarSync; | 565 | QDateTime mLastCalendarSync; |
565 | void createPrinter(); | 566 | void createPrinter(); |
566 | 567 | ||
567 | void calendarModified( bool, Calendar * ); | 568 | void calendarModified( bool, Calendar * ); |
568 | 569 | ||
569 | CalPrinter *mCalPrinter; | 570 | CalPrinter *mCalPrinter; |
570 | 571 | ||
571 | QSplitter *mPanner; | 572 | QSplitter *mPanner; |
572 | QSplitter *mLeftSplitter; | 573 | QSplitter *mLeftSplitter; |
573 | KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame; | 574 | KDGanttMinimizeSplitter *mLeftFrame, *mMainFrame; |
574 | QWidgetStack *mRightFrame; | 575 | QWidgetStack *mRightFrame; |
575 | 576 | ||
576 | KDatePicker* mDatePicker; | 577 | KDatePicker* mDatePicker; |
577 | QVBox* mDateFrame; | 578 | QVBox* mDateFrame; |
578 | 579 | ||
579 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. | 580 | DateNavigatorContainer *mDateNavigator; // widget showing small month view. |
580 | 581 | ||
581 | KOFilterView *mFilterView; | 582 | KOFilterView *mFilterView; |
582 | KOCalEditView *mCalEditView; | 583 | KOCalEditView *mCalEditView; |
583 | 584 | ||
584 | ResourceView *mResourceView; | 585 | ResourceView *mResourceView; |
585 | 586 | ||
586 | // calendar object for this viewing instance | 587 | // calendar object for this viewing instance |
587 | Calendar *mCalendar; | 588 | Calendar *mCalendar; |
588 | 589 | ||
589 | CalendarResourceManager *mResourceManager; | 590 | CalendarResourceManager *mResourceManager; |
590 | 591 | ||
591 | FileStorage *mStorage; | 592 | FileStorage *mStorage; |
592 | 593 | ||
593 | DateNavigator *mNavigator; | 594 | DateNavigator *mNavigator; |
594 | 595 | ||
595 | KOViewManager *mViewManager; | 596 | KOViewManager *mViewManager; |
596 | KODialogManager *mDialogManager; | 597 | KODialogManager *mDialogManager; |
597 | 598 | ||
598 | // Calendar filters | 599 | // Calendar filters |
599 | QPtrList<CalFilter> mFilters; | 600 | QPtrList<CalFilter> mFilters; |
600 | 601 | ||
601 | // various housekeeping variables. | 602 | // various housekeeping variables. |
602 | bool mModified; // flag indicating if calendar is modified | 603 | bool mModified; // flag indicating if calendar is modified |
603 | bool mReadOnly; // flag indicating if calendar is read-only | 604 | bool mReadOnly; // flag indicating if calendar is read-only |
604 | QDate mSaveSingleDate; | 605 | QDate mSaveSingleDate; |
605 | 606 | ||
606 | Incidence *mSelectedIncidence; | 607 | Incidence *mSelectedIncidence; |
607 | Incidence *mMoveIncidence; | 608 | Incidence *mMoveIncidence; |
608 | QDate mMoveIncidenceOldDate; | 609 | QDate mMoveIncidenceOldDate; |
609 | KOTodoView *mTodoList; | 610 | KOTodoView *mTodoList; |
610 | KOEventEditor * mEventEditor; | 611 | KOEventEditor * mEventEditor; |
611 | KOTodoEditor * mTodoEditor; | 612 | KOTodoEditor * mTodoEditor; |
612 | KOEventViewerDialog * mEventViewerDialog; | 613 | KOEventViewerDialog * mEventViewerDialog; |
613 | void keyPressEvent ( QKeyEvent *e) ; | 614 | void keyPressEvent ( QKeyEvent *e) ; |
614 | //QMap<Incidence*,KOIncidenceEditor*> mDialogList; | 615 | //QMap<Incidence*,KOIncidenceEditor*> mDialogList; |
615 | }; | 616 | }; |
616 | 617 | ||
617 | 618 | ||
618 | class CalendarViewVisitor : public Incidence::Visitor | 619 | class CalendarViewVisitor : public Incidence::Visitor |
619 | { | 620 | { |
620 | public: | 621 | public: |
621 | CalendarViewVisitor() : mView( 0 ) {} | 622 | CalendarViewVisitor() : mView( 0 ) {} |
622 | 623 | ||
623 | bool act( Incidence *incidence, CalendarView *view ) | 624 | bool act( Incidence *incidence, CalendarView *view ) |
624 | { | 625 | { |
625 | mView = view; | 626 | mView = view; |
626 | return incidence->accept( *this ); | 627 | return incidence->accept( *this ); |
627 | } | 628 | } |
628 | 629 | ||
629 | protected: | 630 | protected: |
630 | CalendarView *mView; | 631 | CalendarView *mView; |
631 | }; | 632 | }; |
632 | 633 | ||
633 | class ShowIncidenceVisitor : public CalendarViewVisitor | 634 | class ShowIncidenceVisitor : public CalendarViewVisitor |
634 | { | 635 | { |
635 | protected: | 636 | protected: |
636 | bool visit( Event *event ) { mView->showEvent( event ); return true; } | 637 | bool visit( Event *event ) { mView->showEvent( event ); return true; } |
637 | bool visit( Todo *todo ) { mView->showTodo( todo ); return true; } | 638 | bool visit( Todo *todo ) { mView->showTodo( todo ); return true; } |
638 | bool visit( Journal * j ) { mView->showJournal( j );return true; } | 639 | bool visit( Journal * j ) { mView->showJournal( j );return true; } |
639 | }; | 640 | }; |
640 | 641 | ||
641 | class EditIncidenceVisitor : public CalendarViewVisitor | 642 | class EditIncidenceVisitor : public CalendarViewVisitor |
642 | { | 643 | { |
643 | protected: | 644 | protected: |
644 | bool visit( Event *event ) { mView->editEvent( event ); return true; } | 645 | bool visit( Event *event ) { mView->editEvent( event ); return true; } |
645 | bool visit( Todo *todo ) { mView->editTodo( todo ); return true; } | 646 | bool visit( Todo *todo ) { mView->editTodo( todo ); return true; } |
646 | bool visit( Journal *j ) { mView->editJournal( j); return true; } | 647 | bool visit( Journal *j ) { mView->editJournal( j); return true; } |
647 | }; | 648 | }; |
648 | 649 | ||
649 | class DeleteIncidenceVisitor : public CalendarViewVisitor | 650 | class DeleteIncidenceVisitor : public CalendarViewVisitor |
650 | { | 651 | { |
651 | protected: | 652 | protected: |
652 | bool visit( Event *event ) { mView->deleteEvent( event ); return true; } | 653 | bool visit( Event *event ) { mView->deleteEvent( event ); return true; } |
653 | bool visit( Todo *todo ) { mView->deleteTodo( todo ); return true; } | 654 | bool visit( Todo *todo ) { mView->deleteTodo( todo ); return true; } |
654 | bool visit( Journal * j) {mView->deleteJournal( j ); return true; } | 655 | bool visit( Journal * j) {mView->deleteJournal( j ); return true; } |
655 | }; | 656 | }; |
656 | 657 | ||
657 | #endif | 658 | #endif |
diff --git a/korganizer/kolistview.cpp b/korganizer/kolistview.cpp index 43e1113..517677c 100644 --- a/korganizer/kolistview.cpp +++ b/korganizer/kolistview.cpp | |||
@@ -57,769 +57,770 @@ | |||
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 | 71 | ||
72 | class KOListViewWhatsThis :public QWhatsThis | 72 | class KOListViewWhatsThis :public QWhatsThis |
73 | { | 73 | { |
74 | public: | 74 | public: |
75 | KOListViewWhatsThis( QWidget *wid, KOListView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; | 75 | KOListViewWhatsThis( QWidget *wid, KOListView* view ) : QWhatsThis( wid ), _wid(wid),_view (view) { }; |
76 | 76 | ||
77 | protected: | 77 | protected: |
78 | virtual QString text( const QPoint& p) | 78 | virtual QString text( const QPoint& p) |
79 | { | 79 | { |
80 | return _view->getWhatsThisText(p) ; | 80 | return _view->getWhatsThisText(p) ; |
81 | } | 81 | } |
82 | private: | 82 | private: |
83 | QWidget* _wid; | 83 | QWidget* _wid; |
84 | KOListView * _view; | 84 | KOListView * _view; |
85 | }; | 85 | }; |
86 | 86 | ||
87 | 87 | ||
88 | ListItemVisitor::ListItemVisitor(KOListViewItem *item, QDate date ) | 88 | ListItemVisitor::ListItemVisitor(KOListViewItem *item, QDate date ) |
89 | { | 89 | { |
90 | mItem = item; | 90 | mItem = item; |
91 | mDate = date; | 91 | mDate = date; |
92 | } | 92 | } |
93 | 93 | ||
94 | ListItemVisitor::~ListItemVisitor() | 94 | ListItemVisitor::~ListItemVisitor() |
95 | { | 95 | { |
96 | } | 96 | } |
97 | 97 | ||
98 | bool ListItemVisitor::visit(Event *e) | 98 | bool ListItemVisitor::visit(Event *e) |
99 | { | 99 | { |
100 | bool ok = false; | 100 | bool ok = false; |
101 | QString start, end; | 101 | QString start, end; |
102 | QDate ds, de; | 102 | QDate ds, de; |
103 | if ( e->doesRecur() ) { | 103 | if ( e->doesRecur() ) { |
104 | ds = e->getNextOccurence( QDateTime( mDate, QTime(0,0,0)), &ok ).date(); | 104 | ds = e->getNextOccurence( QDateTime( mDate, QTime(0,0,0)), &ok ).date(); |
105 | if ( ok ) { | 105 | if ( ok ) { |
106 | int days = e->dtStart().date().daysTo(e->dtEnd().date() ); | 106 | int days = e->dtStart().date().daysTo(e->dtEnd().date() ); |
107 | start = KGlobal::locale()->formatDate(ds,true); | 107 | start = KGlobal::locale()->formatDate(ds,true); |
108 | de = ds.addDays( days); | 108 | de = ds.addDays( days); |
109 | end = KGlobal::locale()->formatDate(de,true); | 109 | end = KGlobal::locale()->formatDate(de,true); |
110 | } | 110 | } |
111 | 111 | ||
112 | } | 112 | } |
113 | if ( ! ok ) { | 113 | if ( ! ok ) { |
114 | start =e->dtStartDateStr(); | 114 | start =e->dtStartDateStr(); |
115 | end = e->dtEndDateStr(); | 115 | end = e->dtEndDateStr(); |
116 | ds = e->dtStart().date(); | 116 | ds = e->dtStart().date(); |
117 | de = e->dtEnd().date(); | 117 | de = e->dtEnd().date(); |
118 | } | 118 | } |
119 | mItem->setText(0,e->summary()); | 119 | mItem->setText(0,e->summary()); |
120 | mItem->setText(1,start); | 120 | mItem->setText(1,start); |
121 | if ( e->doesFloat() ) | 121 | if ( e->doesFloat() ) |
122 | mItem->setText(2,"---"); | 122 | mItem->setText(2,"---"); |
123 | else | 123 | else |
124 | mItem->setText(2,e->dtStartTimeStr()); | 124 | mItem->setText(2,e->dtStartTimeStr()); |
125 | mItem->setText(3,end); | 125 | mItem->setText(3,end); |
126 | if ( e->doesFloat() ) | 126 | if ( e->doesFloat() ) |
127 | mItem->setText(4,"---"); | 127 | mItem->setText(4,"---"); |
128 | else | 128 | else |
129 | mItem->setText(4,e->dtEndTimeStr()); | 129 | mItem->setText(4,e->dtEndTimeStr()); |
130 | if ( e->isAlarmEnabled() ) { | 130 | if ( e->isAlarmEnabled() ) { |
131 | mItem->setText(5,e->alarms().first()->offsetText() ); | 131 | mItem->setText(5,e->alarms().first()->offsetText() ); |
132 | } else { | 132 | } else { |
133 | mItem->setText(5, i18n("No")); | 133 | mItem->setText(5, i18n("No")); |
134 | } | 134 | } |
135 | mItem->setText(6, e->recurrence()->recurrenceText()); | 135 | mItem->setText(6, e->recurrence()->recurrenceText()); |
136 | if( ! e->doesRecur() ) | 136 | if( ! e->doesRecur() ) |
137 | mItem->setSortKey( 6, "-" ); | 137 | mItem->setSortKey( 6, "-" ); |
138 | mItem->setText(7,"---"); | 138 | mItem->setText(7,"---"); |
139 | mItem->setText(8,"---"); | 139 | mItem->setText(8,"---"); |
140 | mItem->setText(9, e->cancelled() ? i18n("Yes") : i18n("No")); | 140 | mItem->setText(9, e->cancelled() ? i18n("Yes") : i18n("No")); |
141 | mItem->setText(10,e->categoriesStr()); | 141 | mItem->setText(10,e->categoriesStr()); |
142 | mItem->setText(11, KOPrefs::instance()->calName( e->calID() )); | 142 | mItem->setText(11, KOPrefs::instance()->calName( e->calID() )); |
143 | 143 | ||
144 | QString key; | 144 | QString key; |
145 | QTime t = e->doesFloat() ? QTime(0,0) : e->dtStart().time(); | 145 | QTime t = e->doesFloat() ? QTime(0,0) : e->dtStart().time(); |
146 | key.sprintf("%04d%02d%02d%02d%02d",ds.year(),ds.month(),ds.day(),t.hour(),t.minute()); | 146 | key.sprintf("%04d%02d%02d%02d%02d",ds.year(),ds.month(),ds.day(),t.hour(),t.minute()); |
147 | mItem->setSortKey(1,key); | 147 | mItem->setSortKey(1,key); |
148 | 148 | ||
149 | t = e->doesFloat() ? QTime(0,0) : e->dtEnd().time(); | 149 | t = e->doesFloat() ? QTime(0,0) : e->dtEnd().time(); |
150 | key.sprintf("%04d%02d%02d%02d%02d",de.year(),de.month(),de.day(),t.hour(),t.minute()); | 150 | key.sprintf("%04d%02d%02d%02d%02d",de.year(),de.month(),de.day(),t.hour(),t.minute()); |
151 | mItem->setSortKey(3,key); | 151 | mItem->setSortKey(3,key); |
152 | return true; | 152 | return true; |
153 | } | 153 | } |
154 | 154 | ||
155 | bool ListItemVisitor::visit(Todo *t) | 155 | bool ListItemVisitor::visit(Todo *t) |
156 | { | 156 | { |
157 | mItem->setText(0,t->summary()); | 157 | mItem->setText(0,t->summary()); |
158 | if ( t->isCompleted() ) { | 158 | if ( t->isCompleted() ) { |
159 | mItem->setSortKey(0,"99"+ t->summary().left(10)); | 159 | mItem->setSortKey(0,"99"+ t->summary().left(10)); |
160 | } else | 160 | } else |
161 | mItem->setSortKey(0,QString::number( t->percentComplete() )+ t->summary().left(10)); | 161 | mItem->setSortKey(0,QString::number( t->percentComplete() )+ t->summary().left(10)); |
162 | mItem->setPixmap( 0, *(sgListViewCompletedPix[t->percentComplete()/20])); | 162 | mItem->setPixmap( 0, *(sgListViewCompletedPix[t->percentComplete()/20])); |
163 | if (t->hasStartDate()) { | 163 | if (t->hasStartDate()) { |
164 | mItem->setText(1,t->dtStartDateStr()); | 164 | mItem->setText(1,t->dtStartDateStr()); |
165 | if (t->doesFloat()) { | 165 | if (t->doesFloat()) { |
166 | mItem->setText(2,"---"); | 166 | mItem->setText(2,"---"); |
167 | } else { | 167 | } else { |
168 | mItem->setText(2,t->dtStartTimeStr()); | 168 | mItem->setText(2,t->dtStartTimeStr()); |
169 | } | 169 | } |
170 | } else { | 170 | } else { |
171 | mItem->setText(1,"---"); | 171 | mItem->setText(1,"---"); |
172 | mItem->setText(2,"---"); | 172 | mItem->setText(2,"---"); |
173 | } | 173 | } |
174 | mItem->setText(3,"---"); | 174 | mItem->setText(3,"---"); |
175 | mItem->setText(4,"---"); | 175 | mItem->setText(4,"---"); |
176 | if ( t->isAlarmEnabled() ) { | 176 | if ( t->isAlarmEnabled() ) { |
177 | mItem->setText(5,t->alarms().first()->offsetText() ); | 177 | mItem->setText(5,t->alarms().first()->offsetText() ); |
178 | } else { | 178 | } else { |
179 | mItem->setText(5, i18n("No")); | 179 | mItem->setText(5, i18n("No")); |
180 | } | 180 | } |
181 | mItem->setText(6, t->recurrence()->recurrenceText()); | 181 | mItem->setText(6, t->recurrence()->recurrenceText()); |
182 | if( ! t->doesRecur() ) | 182 | if( ! t->doesRecur() ) |
183 | mItem->setSortKey( 6, "-" ); | 183 | mItem->setSortKey( 6, "-" ); |
184 | if (t->hasDueDate()) { | 184 | if (t->hasDueDate()) { |
185 | mItem->setText(7,t->dtDueDateStr()); | 185 | mItem->setText(7,t->dtDueDateStr()); |
186 | if (t->doesFloat()) { | 186 | if (t->doesFloat()) { |
187 | mItem->setText(8,"---"); | 187 | mItem->setText(8,"---"); |
188 | } else { | 188 | } else { |
189 | mItem->setText(8,t->dtDueTimeStr()); | 189 | mItem->setText(8,t->dtDueTimeStr()); |
190 | } | 190 | } |
191 | } else { | 191 | } else { |
192 | mItem->setText(7,"---"); | 192 | mItem->setText(7,"---"); |
193 | mItem->setText(8,"---"); | 193 | mItem->setText(8,"---"); |
194 | } | 194 | } |
195 | mItem->setText(9, t->cancelled() ? i18n("Yes") : i18n("No")); | 195 | mItem->setText(9, t->cancelled() ? i18n("Yes") : i18n("No")); |
196 | mItem->setText(10,t->categoriesStr()); | 196 | mItem->setText(10,t->categoriesStr()); |
197 | mItem->setText(11, KOPrefs::instance()->calName( t->calID() )); | 197 | mItem->setText(11, KOPrefs::instance()->calName( t->calID() )); |
198 | 198 | ||
199 | QString key; | 199 | QString key; |
200 | QDate d; | 200 | QDate d; |
201 | if (t->hasDueDate()) { | 201 | if (t->hasDueDate()) { |
202 | d = t->dtDue().date(); | 202 | d = t->dtDue().date(); |
203 | QTime tm = t->doesFloat() ? QTime(0,0) : t->dtDue().time(); | 203 | QTime tm = t->doesFloat() ? QTime(0,0) : t->dtDue().time(); |
204 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); | 204 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); |
205 | mItem->setSortKey(7,key); | 205 | mItem->setSortKey(7,key); |
206 | } | 206 | } |
207 | if ( t->hasStartDate() ) { | 207 | if ( t->hasStartDate() ) { |
208 | d = t->dtStart().date(); | 208 | d = t->dtStart().date(); |
209 | QTime tm = t->doesFloat() ? QTime(0,0) : t->dtStart().time(); | 209 | QTime tm = t->doesFloat() ? QTime(0,0) : t->dtStart().time(); |
210 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); | 210 | key.sprintf("%04d%02d%02d%02d%02d",d.year(),d.month(),d.day(),tm.hour(),tm.minute()); |
211 | mItem->setSortKey(1,key); | 211 | mItem->setSortKey(1,key); |
212 | } | 212 | } |
213 | return true; | 213 | return true; |
214 | } | 214 | } |
215 | 215 | ||
216 | bool ListItemVisitor::visit(Journal * j) | 216 | bool ListItemVisitor::visit(Journal * j) |
217 | { | 217 | { |
218 | 218 | ||
219 | QString des; | 219 | QString des; |
220 | if ( !j->summary().isEmpty() ) { | 220 | if ( !j->summary().isEmpty() ) { |
221 | des = j->summary(); | 221 | des = j->summary(); |
222 | } else { | 222 | } else { |
223 | des = j->description().left(30); | 223 | des = j->description().left(30); |
224 | des = des.simplifyWhiteSpace (); | 224 | des = des.simplifyWhiteSpace (); |
225 | des.replace (QRegExp ("\\n"),"" ); | 225 | des.replace (QRegExp ("\\n"),"" ); |
226 | des.replace (QRegExp ("\\r"),"" ); | 226 | des.replace (QRegExp ("\\r"),"" ); |
227 | } | 227 | } |
228 | mItem->setText(0,i18n("Journal: ")+des.left(25)); | 228 | mItem->setText(0,i18n("Journal: ")+des.left(25)); |
229 | mItem->setText(1,j->dtStartDateStr()); | 229 | mItem->setText(1,j->dtStartDateStr()); |
230 | mItem->setText(2,"---"); | 230 | mItem->setText(2,"---"); |
231 | mItem->setText(3,"---"); | 231 | mItem->setText(3,"---"); |
232 | mItem->setText(4,"---"); | 232 | mItem->setText(4,"---"); |
233 | mItem->setText(5,"---"); | 233 | mItem->setText(5,"---"); |
234 | mItem->setText(6,"---"); | 234 | mItem->setText(6,"---"); |
235 | mItem->setText(7,j->dtStartDateStr()); | 235 | mItem->setText(7,j->dtStartDateStr()); |
236 | mItem->setText(8,"---"); | 236 | mItem->setText(8,"---"); |
237 | mItem->setText(9,"---"); | 237 | mItem->setText(9,"---"); |
238 | mItem->setText(10,j->categoriesStr()); | 238 | mItem->setText(10,j->categoriesStr()); |
239 | mItem->setText(11, KOPrefs::instance()->calName( j->calID() )); | 239 | mItem->setText(11, KOPrefs::instance()->calName( j->calID() )); |
240 | 240 | ||
241 | QString key; | 241 | QString key; |
242 | QDate d = j->dtStart().date(); | 242 | QDate d = j->dtStart().date(); |
243 | key.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); | 243 | key.sprintf("%04d%02d%02d",d.year(),d.month(),d.day()); |
244 | mItem->setSortKey(1,key); | 244 | mItem->setSortKey(1,key); |
245 | mItem->setSortKey(7,key); | 245 | mItem->setSortKey(7,key); |
246 | 246 | ||
247 | return true; | 247 | return true; |
248 | } | 248 | } |
249 | 249 | ||
250 | KOListView::KOListView(Calendar *calendar, QWidget *parent, | 250 | KOListView::KOListView(Calendar *calendar, QWidget *parent, |
251 | const char *name) | 251 | const char *name) |
252 | : KOEventView(calendar, parent, name) | 252 | : KOEventView(calendar, parent, name) |
253 | { | 253 | { |
254 | 254 | ||
255 | mActiveItem = 0; | 255 | mActiveItem = 0; |
256 | mForceShowCompletedTodos = false; | 256 | mForceShowCompletedTodos = false; |
257 | mListView = new KOListViewListView(this); | 257 | mListView = new KOListViewListView(this); |
258 | mListView->addColumn(i18n("Summary")); | 258 | mListView->addColumn(i18n("Summary")); |
259 | mListView->addColumn(i18n("Start Date")); | 259 | mListView->addColumn(i18n("Start Date")); |
260 | mListView->addColumn(i18n("Start Time")); | 260 | mListView->addColumn(i18n("Start Time")); |
261 | mListView->addColumn(i18n("End Date")); | 261 | mListView->addColumn(i18n("End Date")); |
262 | mListView->addColumn(i18n("End Time")); | 262 | mListView->addColumn(i18n("End Time")); |
263 | mListView->addColumn(i18n("Alarm")); // alarm set? | 263 | mListView->addColumn(i18n("Alarm")); // alarm set? |
264 | mListView->addColumn(i18n("Recurs")); // recurs? | 264 | mListView->addColumn(i18n("Recurs")); // recurs? |
265 | mListView->addColumn(i18n("Due Date")); | 265 | mListView->addColumn(i18n("Due Date")); |
266 | mListView->addColumn(i18n("Due Time")); | 266 | mListView->addColumn(i18n("Due Time")); |
267 | mListView->addColumn(i18n("Cancelled")); | 267 | mListView->addColumn(i18n("Cancelled")); |
268 | mListView->addColumn(i18n("Categories")); | 268 | mListView->addColumn(i18n("Categories")); |
269 | mListView->addColumn(i18n("Calendar")); | 269 | mListView->addColumn(i18n("Calendar")); |
270 | 270 | ||
271 | mListView->setColumnAlignment(0,AlignLeft); | 271 | mListView->setColumnAlignment(0,AlignLeft); |
272 | mListView->setColumnAlignment(1,AlignLeft); | 272 | mListView->setColumnAlignment(1,AlignLeft); |
273 | mListView->setColumnAlignment(2,AlignHCenter); | 273 | mListView->setColumnAlignment(2,AlignHCenter); |
274 | mListView->setColumnAlignment(3,AlignLeft); | 274 | mListView->setColumnAlignment(3,AlignLeft); |
275 | mListView->setColumnAlignment(4,AlignHCenter); | 275 | mListView->setColumnAlignment(4,AlignHCenter); |
276 | mListView->setColumnAlignment(5,AlignLeft); | 276 | mListView->setColumnAlignment(5,AlignLeft); |
277 | mListView->setColumnAlignment(6,AlignLeft); | 277 | mListView->setColumnAlignment(6,AlignLeft); |
278 | mListView->setColumnAlignment(7,AlignLeft); | 278 | mListView->setColumnAlignment(7,AlignLeft); |
279 | mListView->setColumnAlignment(8,AlignLeft); | 279 | mListView->setColumnAlignment(8,AlignLeft); |
280 | mListView->setColumnAlignment(9,AlignLeft); | 280 | mListView->setColumnAlignment(9,AlignLeft); |
281 | mListView->setColumnAlignment(10,AlignLeft); | 281 | mListView->setColumnAlignment(10,AlignLeft); |
282 | mListView->setColumnAlignment(11,AlignLeft); | 282 | mListView->setColumnAlignment(11,AlignLeft); |
283 | mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this); | 283 | mKOListViewWhatsThis = new KOListViewWhatsThis(mListView->viewport(),this); |
284 | 284 | ||
285 | int iii = 0; | 285 | int iii = 0; |
286 | for ( iii = 0; iii< 12 ; ++iii ) | 286 | for ( iii = 0; iii< 12 ; ++iii ) |
287 | mListView->setColumnWidthMode( iii, QListView::Manual ); | 287 | mListView->setColumnWidthMode( iii, QListView::Manual ); |
288 | 288 | ||
289 | QBoxLayout *layoutTop = new QVBoxLayout(this); | 289 | QBoxLayout *layoutTop = new QVBoxLayout(this); |
290 | layoutTop->addWidget(mListView); | 290 | layoutTop->addWidget(mListView); |
291 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); | 291 | mListView->setFont ( KOPrefs::instance()->mListViewFont ); |
292 | mPopupMenu = eventPopup(); | 292 | mPopupMenu = eventPopup(); |
293 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 293 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
294 | i18n("Select all"),this, | 294 | i18n("Select all"),this, |
295 | SLOT(allSelection()),true); | 295 | SLOT(allSelection()),true); |
296 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 296 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
297 | i18n("Deselect all"),this, | 297 | i18n("Deselect all"),this, |
298 | SLOT(clearSelection()),true); | 298 | SLOT(clearSelection()),true); |
299 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 299 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
300 | i18n("Delete all selected"),this, | 300 | i18n("Delete all selected"),this, |
301 | SLOT(deleteAll()),true); | 301 | SLOT(deleteAll()),true); |
302 | 302 | ||
303 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 303 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
304 | i18n("Hide all selected"),this, | 304 | i18n("Hide all selected"),this, |
305 | SLOT(hideAll()),true); | 305 | SLOT(hideAll()),true); |
306 | 306 | ||
307 | mPopupMenu->insertSeparator(); | 307 | mPopupMenu->insertSeparator(); |
308 | #ifdef DESKTOP_VERSION | 308 | #ifdef DESKTOP_VERSION |
309 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 309 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
310 | i18n("Print complete list"),this, | 310 | i18n("Print complete list"),this, |
311 | SLOT(printList()),true); | 311 | SLOT(printList()),true); |
312 | mPopupMenu->insertSeparator(); | 312 | mPopupMenu->insertSeparator(); |
313 | #endif | 313 | #endif |
314 | mCalPopup = new QPopupMenu ( this ); | 314 | mCalPopup = new QPopupMenu ( this ); |
315 | mPopupMenu->insertItem( i18n("Set Calendar"), mCalPopup ); | 315 | mPopupMenu->insertItem( i18n("Set Calendar"), mCalPopup ); |
316 | 316 | ||
317 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, | 317 | QObject::connect(mCalPopup,SIGNAL(aboutToShow()),this, |
318 | SLOT( populateCalPopup() )); | 318 | SLOT( populateCalPopup() )); |
319 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, | 319 | QObject::connect(mCalPopup,SIGNAL(activated( int )),this, |
320 | SLOT( setCalendar( int ) )); | 320 | SLOT( setCalendar( int ) )); |
321 | QPopupMenu * exportPO = new QPopupMenu ( this ); | 321 | QPopupMenu * exportPO = new QPopupMenu ( this ); |
322 | mPopupMenu->insertItem( i18n("Export selected"), exportPO ); | 322 | mPopupMenu->insertItem( i18n("Export selected"), exportPO ); |
323 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, | 323 | exportPO->insertItem( i18n("As iCal (ics) file..."),this, |
324 | SLOT(saveToFile())); | 324 | SLOT(saveToFile())); |
325 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, | 325 | exportPO->insertItem( i18n("As vCal (vcs) file..."),this, |
326 | SLOT(saveToFileVCS())); | 326 | SLOT(saveToFileVCS())); |
327 | exportPO->insertItem( i18n("Journal/Details..."),this, | 327 | exportPO->insertItem( i18n("Journal/Details..."),this, |
328 | SLOT(saveDescriptionToFile())); | 328 | SLOT(saveDescriptionToFile())); |
329 | // mPopupMenu->insertSeparator(); | 329 | // mPopupMenu->insertSeparator(); |
330 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 330 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
331 | i18n("Add Categ. to selected..."),this, | 331 | i18n("Add Categ. to selected..."),this, |
332 | SLOT(addCat()),true); | 332 | SLOT(addCat()),true); |
333 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 333 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
334 | i18n("Set Categ. for selected..."),this, | 334 | i18n("Set Categ. for selected..."),this, |
335 | SLOT(setCat()),true); | 335 | SLOT(setCat()),true); |
336 | //mPopupMenu->insertSeparator(); | 336 | //mPopupMenu->insertSeparator(); |
337 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 337 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
338 | i18n("Set alarm for selected..."),this, | 338 | i18n("Set alarm for selected..."),this, |
339 | SLOT(setAlarm()),true); | 339 | SLOT(setAlarm()),true); |
340 | 340 | ||
341 | 341 | ||
342 | 342 | ||
343 | #ifndef DESKTOP_VERSION | 343 | #ifndef DESKTOP_VERSION |
344 | mPopupMenu->insertSeparator(); | 344 | mPopupMenu->insertSeparator(); |
345 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), | 345 | mPopupMenu->addAdditionalItem(QIconSet(QPixmap()), |
346 | i18n("Beam selected via IR"),this, | 346 | i18n("Beam selected via IR"),this, |
347 | SLOT(beamSelected()),true); | 347 | SLOT(beamSelected()),true); |
348 | #endif | 348 | #endif |
349 | /* | 349 | /* |
350 | mPopupMenu = new QPopupMenu; | 350 | mPopupMenu = new QPopupMenu; |
351 | mPopupMenu->insertItem(i18n("Edit Event"), this, | 351 | mPopupMenu->insertItem(i18n("Edit Event"), this, |
352 | SLOT (editEvent())); | 352 | SLOT (editEvent())); |
353 | mPopupMenu->insertItem(SmallIcon("delete"), i18n("Delete Event"), this, | 353 | mPopupMenu->insertItem(SmallIcon("delete"), i18n("Delete Event"), this, |
354 | SLOT (deleteEvent())); | 354 | SLOT (deleteEvent())); |
355 | mPopupMenu->insertSeparator(); | 355 | mPopupMenu->insertSeparator(); |
356 | mPopupMenu->insertItem(i18n("Show Dates"), this, | 356 | mPopupMenu->insertItem(i18n("Show Dates"), this, |
357 | SLOT(showDates())); | 357 | SLOT(showDates())); |
358 | mPopupMenu->insertItem(i18n("Hide Dates"), this, | 358 | mPopupMenu->insertItem(i18n("Hide Dates"), this, |
359 | SLOT(hideDates())); | 359 | SLOT(hideDates())); |
360 | */ | 360 | */ |
361 | QObject::connect(mListView,SIGNAL( newEvent()), | 361 | QObject::connect(mListView,SIGNAL( newEvent()), |
362 | this,SIGNAL(signalNewEvent())); | 362 | this,SIGNAL(signalNewEvent())); |
363 | QObject::connect(mListView,SIGNAL(doubleClicked(QListViewItem *)), | 363 | QObject::connect(mListView,SIGNAL(doubleClicked(QListViewItem *)), |
364 | this,SLOT(defaultItemAction(QListViewItem *))); | 364 | this,SLOT(defaultItemAction(QListViewItem *))); |
365 | QObject::connect(mListView,SIGNAL(rightButtonPressed( QListViewItem *, | 365 | QObject::connect(mListView,SIGNAL(rightButtonPressed( QListViewItem *, |
366 | const QPoint &, int )), | 366 | const QPoint &, int )), |
367 | this,SLOT(popupMenu(QListViewItem *,const QPoint &,int))); | 367 | this,SLOT(popupMenu(QListViewItem *,const QPoint &,int))); |
368 | QObject::connect(mListView,SIGNAL(currentChanged(QListViewItem *)), | 368 | QObject::connect(mListView,SIGNAL(currentChanged(QListViewItem *)), |
369 | SLOT(processSelectionChange(QListViewItem *))); | 369 | SLOT(processSelectionChange(QListViewItem *))); |
370 | QObject::connect(mListView,SIGNAL(showIncidence(Incidence *)), | 370 | QObject::connect(mListView,SIGNAL(showIncidence(Incidence *)), |
371 | SIGNAL(showIncidenceSignal(Incidence *)) ); | 371 | SIGNAL(showIncidenceSignal(Incidence *)) ); |
372 | 372 | ||
373 | readSettings(KOGlobals::config(),"KOListView Layout"); | 373 | readSettings(KOGlobals::config(),"KOListView Layout"); |
374 | } | 374 | } |
375 | 375 | ||
376 | KOListView::~KOListView() | 376 | KOListView::~KOListView() |
377 | { | 377 | { |
378 | delete mPopupMenu; | 378 | delete mPopupMenu; |
379 | #if QT_VERSION >= 0x030000 | 379 | #if QT_VERSION >= 0x030000 |
380 | 380 | ||
381 | #else | 381 | #else |
382 | delete mKOListViewWhatsThis; | 382 | delete mKOListViewWhatsThis; |
383 | #endif | 383 | #endif |
384 | } | 384 | } |
385 | 385 | ||
386 | QString KOListView::getWhatsThisText(QPoint p) | 386 | QString KOListView::getWhatsThisText(QPoint p) |
387 | { | 387 | { |
388 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); | 388 | KOListViewItem* item = ( KOListViewItem* ) mListView->itemAt( p ); |
389 | if ( item ) | 389 | if ( item ) |
390 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), | 390 | return KIncidenceFormatter::instance()->getFormattedText( item->data(), |
391 | KOPrefs::instance()->mWTshowDetails, | 391 | KOPrefs::instance()->mWTshowDetails, |
392 | KOPrefs::instance()->mWTshowCreated, | 392 | KOPrefs::instance()->mWTshowCreated, |
393 | KOPrefs::instance()->mWTshowChanged); | 393 | KOPrefs::instance()->mWTshowChanged); |
394 | return i18n("That is the list view" ); | 394 | return i18n("That is the list view" ); |
395 | 395 | ||
396 | } | 396 | } |
397 | 397 | ||
398 | void KOListView::setCalendar( int c ) | 398 | void KOListView::setCalendar( int c ) |
399 | { | 399 | { |
400 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), | 400 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), |
401 | i18n("This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!").arg( KOPrefs::instance()->calName( c ) ), | 401 | i18n("This adds the selected\nitems to the calendar\n%1\nand removes them from\ntheir current calendar!").arg( KOPrefs::instance()->calName( c ) ), |
402 | i18n("Continue"), i18n("Cancel"), 0, | 402 | i18n("Continue"), i18n("Cancel"), 0, |
403 | 0, 1 ); | 403 | 0, 1 ); |
404 | if ( result != 0 ) { | 404 | if ( result != 0 ) { |
405 | return; | 405 | return; |
406 | } | 406 | } |
407 | 407 | ||
408 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 408 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
409 | int icount = delSel.count(); | 409 | int icount = delSel.count(); |
410 | if ( icount ) { | 410 | if ( icount ) { |
411 | Incidence *incidence = delSel.first(); | 411 | Incidence *incidence = delSel.first(); |
412 | while ( incidence ) { | 412 | while ( incidence ) { |
413 | incidence->setCalID( c ); | 413 | incidence->setCalID( c ); |
414 | KOListViewItem * item = getItemForEvent( incidence ); | 414 | KOListViewItem * item = getItemForEvent( incidence ); |
415 | if ( item ) { | 415 | if ( item ) { |
416 | ListItemVisitor v(item, mStartDate ); | 416 | ListItemVisitor v(item, mStartDate ); |
417 | incidence->accept(v); | 417 | incidence->accept(v); |
418 | } | 418 | } |
419 | incidence = delSel.next(); | 419 | incidence = delSel.next(); |
420 | } | 420 | } |
421 | } | 421 | } |
422 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 422 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
423 | KopiCalendarFile * cal = calendars.first(); | 423 | KopiCalendarFile * cal = calendars.first(); |
424 | while ( cal ) { | 424 | while ( cal ) { |
425 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); | 425 | mCalendar->setCalendarEnabled( cal->mCalNumber,cal->isEnabled ); |
426 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); | 426 | mCalendar->setAlarmEnabled( cal->mCalNumber, cal->isAlarmEnabled ); |
427 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); | 427 | mCalendar->setReadOnly( cal->mCalNumber, cal->isReadOnly ); |
428 | if ( cal->isStandard ) | 428 | if ( cal->isStandard ) |
429 | mCalendar->setDefaultCalendar( cal->mCalNumber ); | 429 | mCalendar->setDefaultCalendar( cal->mCalNumber ); |
430 | cal = calendars.next(); | 430 | cal = calendars.next(); |
431 | } | 431 | } |
432 | mCalendar->setSyncEventsReadOnly(); | 432 | mCalendar->setSyncEventsReadOnly(); |
433 | mCalendar->reInitAlarmSettings(); | 433 | mCalendar->reInitAlarmSettings(); |
434 | 434 | ||
435 | } | 435 | } |
436 | void KOListView::populateCalPopup() | 436 | void KOListView::populateCalPopup() |
437 | { | 437 | { |
438 | mCalPopup->clear(); | 438 | mCalPopup->clear(); |
439 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); | 439 | KopiCalendarFile * kkf = KOPrefs::instance()->mCalendars.first(); |
440 | while ( kkf ) { | 440 | while ( kkf ) { |
441 | mCalPopup->insertItem( kkf->mName, kkf->mCalNumber); | 441 | int index = mCalPopup->insertItem( kkf->mName, kkf->mCalNumber); |
442 | mCalPopup->setItemEnabled( index, !kkf->isReadOnly ); | ||
442 | kkf = KOPrefs::instance()->mCalendars.next(); | 443 | kkf = KOPrefs::instance()->mCalendars.next(); |
443 | } | 444 | } |
444 | } | 445 | } |
445 | void KOListView::updateList() | 446 | void KOListView::updateList() |
446 | { | 447 | { |
447 | // qDebug(" KOListView::updateList() "); | 448 | // qDebug(" KOListView::updateList() "); |
448 | 449 | ||
449 | } | 450 | } |
450 | 451 | ||
451 | void KOListView::clearList() | 452 | void KOListView::clearList() |
452 | { | 453 | { |
453 | clear (); | 454 | clear (); |
454 | } | 455 | } |
455 | void KOListView::addCat( ) | 456 | void KOListView::addCat( ) |
456 | { | 457 | { |
457 | setCategories( false ); | 458 | setCategories( false ); |
458 | } | 459 | } |
459 | void KOListView::setCat() | 460 | void KOListView::setCat() |
460 | { | 461 | { |
461 | setCategories( true ); | 462 | setCategories( true ); |
462 | } | 463 | } |
463 | 464 | ||
464 | void KOListView::setAlarm() | 465 | void KOListView::setAlarm() |
465 | { | 466 | { |
466 | KOAlarmPrefs kap( this); | 467 | KOAlarmPrefs kap( this); |
467 | if ( !kap.exec() ) | 468 | if ( !kap.exec() ) |
468 | return; | 469 | return; |
469 | QStringList itemList; | 470 | QStringList itemList; |
470 | QPtrList<KOListViewItem> sel ; | 471 | QPtrList<KOListViewItem> sel ; |
471 | QListViewItem *qitem = mListView->firstChild (); | 472 | QListViewItem *qitem = mListView->firstChild (); |
472 | while ( qitem ) { | 473 | while ( qitem ) { |
473 | if ( qitem->isSelected() ) { | 474 | if ( qitem->isSelected() ) { |
474 | Incidence* inc = ((KOListViewItem *) qitem)->data(); | 475 | Incidence* inc = ((KOListViewItem *) qitem)->data(); |
475 | if ( inc->typeID() != journalID ) { | 476 | if ( inc->typeID() != journalID ) { |
476 | if ( inc->typeID() == todoID ) { | 477 | if ( inc->typeID() == todoID ) { |
477 | if ( ((Todo*)inc)->hasDueDate() ) | 478 | if ( ((Todo*)inc)->hasDueDate() ) |
478 | sel.append(((KOListViewItem *)qitem)); | 479 | sel.append(((KOListViewItem *)qitem)); |
479 | } else | 480 | } else |
480 | sel.append(((KOListViewItem *)qitem)); | 481 | sel.append(((KOListViewItem *)qitem)); |
481 | } | 482 | } |
482 | } | 483 | } |
483 | qitem = qitem->nextSibling(); | 484 | qitem = qitem->nextSibling(); |
484 | } | 485 | } |
485 | int count = 0; | 486 | int count = 0; |
486 | KOListViewItem * item, *temp; | 487 | KOListViewItem * item, *temp; |
487 | item = sel.first(); | 488 | item = sel.first(); |
488 | Incidence* inc; | 489 | Incidence* inc; |
489 | while ( item ) { | 490 | while ( item ) { |
490 | inc = item->data(); | 491 | inc = item->data(); |
491 | ++count; | 492 | ++count; |
492 | if (kap.mAlarmButton->isChecked()) { | 493 | if (kap.mAlarmButton->isChecked()) { |
493 | if (inc->alarms().count() == 0) | 494 | if (inc->alarms().count() == 0) |
494 | inc->newAlarm(); | 495 | inc->newAlarm(); |
495 | QPtrList<Alarm> alarms = inc->alarms(); | 496 | QPtrList<Alarm> alarms = inc->alarms(); |
496 | Alarm *alarm; | 497 | Alarm *alarm; |
497 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { | 498 | for (alarm = alarms.first(); alarm; alarm = alarms.next() ) { |
498 | alarm->setEnabled(true); | 499 | alarm->setEnabled(true); |
499 | int j = kap.mAlarmTimeEdit->value()* -60; | 500 | int j = kap.mAlarmTimeEdit->value()* -60; |
500 | if (kap.mAlarmIncrCombo->currentItem() == 1) | 501 | if (kap.mAlarmIncrCombo->currentItem() == 1) |
501 | j = j * 60; | 502 | j = j * 60; |
502 | else if (kap.mAlarmIncrCombo->currentItem() == 2) | 503 | else if (kap.mAlarmIncrCombo->currentItem() == 2) |
503 | j = j * (60 * 24); | 504 | j = j * (60 * 24); |
504 | alarm->setStartOffset( j ); | 505 | alarm->setStartOffset( j ); |
505 | 506 | ||
506 | if (!kap.mAlarmProgram.isEmpty() && kap.mAlarmProgramButton->isOn()) { | 507 | if (!kap.mAlarmProgram.isEmpty() && kap.mAlarmProgramButton->isOn()) { |
507 | alarm->setProcedureAlarm(kap.mAlarmProgram); | 508 | alarm->setProcedureAlarm(kap.mAlarmProgram); |
508 | } | 509 | } |
509 | else if (!kap.mAlarmSound.isEmpty() && kap.mAlarmSoundButton->isOn()) | 510 | else if (!kap.mAlarmSound.isEmpty() && kap.mAlarmSoundButton->isOn()) |
510 | alarm->setAudioAlarm(kap.mAlarmSound); | 511 | alarm->setAudioAlarm(kap.mAlarmSound); |
511 | else | 512 | else |
512 | alarm->setType(Alarm::Invalid); | 513 | alarm->setType(Alarm::Invalid); |
513 | //alarm->setAudioAlarm("default"); | 514 | //alarm->setAudioAlarm("default"); |
514 | // TODO: Deal with multiple alarms | 515 | // TODO: Deal with multiple alarms |
515 | break; // For now, stop after the first alarm | 516 | break; // For now, stop after the first alarm |
516 | } | 517 | } |
517 | } else { | 518 | } else { |
518 | Alarm* alarm = inc->alarms().first(); | 519 | Alarm* alarm = inc->alarms().first(); |
519 | if ( alarm ) { | 520 | if ( alarm ) { |
520 | alarm->setEnabled(false); | 521 | alarm->setEnabled(false); |
521 | alarm->setType(Alarm::Invalid); | 522 | alarm->setType(Alarm::Invalid); |
522 | } | 523 | } |
523 | } | 524 | } |
524 | ListItemVisitor v(item, mStartDate ); | 525 | ListItemVisitor v(item, mStartDate ); |
525 | inc->accept(v); | 526 | inc->accept(v); |
526 | item = sel.next(); | 527 | item = sel.next(); |
527 | } | 528 | } |
528 | topLevelWidget()->setCaption( i18n("Changed alarm for %1 items").arg( count ) ); | 529 | topLevelWidget()->setCaption( i18n("Changed alarm for %1 items").arg( count ) ); |
529 | qDebug("KO: Set alarm for %d items", count); | 530 | qDebug("KO: Set alarm for %d items", count); |
530 | calendar()->reInitAlarmSettings(); | 531 | calendar()->reInitAlarmSettings(); |
531 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 532 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
532 | } | 533 | } |
533 | void KOListView::setCategories( bool removeOld ) | 534 | void KOListView::setCategories( bool removeOld ) |
534 | { | 535 | { |
535 | 536 | ||
536 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); | 537 | KPIM::CategorySelectDialog* csd = new KPIM::CategorySelectDialog( KOPrefs::instance(), 0 ); |
537 | csd->setColorEnabled(); | 538 | csd->setColorEnabled(); |
538 | if (! csd->exec()) { | 539 | if (! csd->exec()) { |
539 | delete csd; | 540 | delete csd; |
540 | return; | 541 | return; |
541 | } | 542 | } |
542 | QStringList catList = csd->selectedCategories(); | 543 | QStringList catList = csd->selectedCategories(); |
543 | delete csd; | 544 | delete csd; |
544 | // if ( catList.count() == 0 ) | 545 | // if ( catList.count() == 0 ) |
545 | // return; | 546 | // return; |
546 | //catList.sort(); | 547 | //catList.sort(); |
547 | QString categoriesStr = catList.join(","); | 548 | QString categoriesStr = catList.join(","); |
548 | int i; | 549 | int i; |
549 | QStringList itemList; | 550 | QStringList itemList; |
550 | QPtrList<KOListViewItem> sel ; | 551 | QPtrList<KOListViewItem> sel ; |
551 | QListViewItem *qitem = mListView->firstChild (); | 552 | QListViewItem *qitem = mListView->firstChild (); |
552 | while ( qitem ) { | 553 | while ( qitem ) { |
553 | if ( qitem->isSelected() ) { | 554 | if ( qitem->isSelected() ) { |
554 | sel.append(((KOListViewItem *)qitem)); | 555 | sel.append(((KOListViewItem *)qitem)); |
555 | } | 556 | } |
556 | qitem = qitem->nextSibling(); | 557 | qitem = qitem->nextSibling(); |
557 | } | 558 | } |
558 | KOListViewItem * item, *temp; | 559 | KOListViewItem * item, *temp; |
559 | item = sel.first(); | 560 | item = sel.first(); |
560 | if( item ) { | 561 | if( item ) { |
561 | Incidence* inc = item->data() ; | 562 | Incidence* inc = item->data() ; |
562 | bool setSub = false; | 563 | bool setSub = false; |
563 | if( inc->typeID() == todoID && sel.count() == 1 && inc->relations().count() > 0 ) { | 564 | if( inc->typeID() == todoID && sel.count() == 1 && inc->relations().count() > 0 ) { |
564 | int result = KMessageBox::warningYesNoCancel(this, | 565 | int result = KMessageBox::warningYesNoCancel(this, |
565 | i18n("The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?").arg( inc->summary().left ( 25 ) ), | 566 | i18n("The todo\n%1\nhas subtodos!\nDo you want to set\nthe categories for\nall subtodos as well?").arg( inc->summary().left ( 25 ) ), |
566 | i18n("Todo has subtodos"), | 567 | i18n("Todo has subtodos"), |
567 | i18n("Yes"), | 568 | i18n("Yes"), |
568 | i18n("No")); | 569 | i18n("No")); |
569 | if (result == KMessageBox::Cancel) item = 0; | 570 | if (result == KMessageBox::Cancel) item = 0; |
570 | if (result == KMessageBox::Yes) setSub = true; | 571 | if (result == KMessageBox::Yes) setSub = true; |
571 | } | 572 | } |
572 | while ( item ) { | 573 | while ( item ) { |
573 | inc = item->data(); | 574 | inc = item->data(); |
574 | if ( removeOld ) { | 575 | if ( removeOld ) { |
575 | inc->setCategories( catList, setSub ); | 576 | inc->setCategories( catList, setSub ); |
576 | } else { | 577 | } else { |
577 | inc->addCategories( catList, setSub ); | 578 | inc->addCategories( catList, setSub ); |
578 | } | 579 | } |
579 | ListItemVisitor v(item, mStartDate ); | 580 | ListItemVisitor v(item, mStartDate ); |
580 | inc->accept(v); | 581 | inc->accept(v); |
581 | item = sel.next(); | 582 | item = sel.next(); |
582 | } | 583 | } |
583 | } | 584 | } |
584 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); | 585 | QTimer::singleShot( 1, this, SLOT ( resetFocus() ) ); |
585 | } | 586 | } |
586 | 587 | ||
587 | void KOListView::beamSelected() | 588 | void KOListView::beamSelected() |
588 | { | 589 | { |
589 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 590 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
590 | int icount = delSel.count(); | 591 | int icount = delSel.count(); |
591 | if ( icount ) { | 592 | if ( icount ) { |
592 | emit beamIncidenceList( delSel ); | 593 | emit beamIncidenceList( delSel ); |
593 | return; | 594 | return; |
594 | QString fn ; | 595 | QString fn ; |
595 | fn = QDir::homeDirPath()+"/kopitempbeamfile.vcs"; | 596 | fn = QDir::homeDirPath()+"/kopitempbeamfile.vcs"; |
596 | QString mes; | 597 | QString mes; |
597 | bool createbup = true; | 598 | bool createbup = true; |
598 | if ( createbup ) { | 599 | if ( createbup ) { |
599 | QString description = "\n"; | 600 | QString description = "\n"; |
600 | CalendarLocal* cal = new CalendarLocal(); | 601 | CalendarLocal* cal = new CalendarLocal(); |
601 | cal->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 602 | cal->setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
602 | Incidence *incidence = delSel.first(); | 603 | Incidence *incidence = delSel.first(); |
603 | while ( incidence ) { | 604 | while ( incidence ) { |
604 | Incidence *in = incidence->clone(); | 605 | Incidence *in = incidence->clone(); |
605 | description += in->summary() + "\n"; | 606 | description += in->summary() + "\n"; |
606 | cal->addIncidence( in ); | 607 | cal->addIncidence( in ); |
607 | incidence = delSel.next(); | 608 | incidence = delSel.next(); |
608 | } | 609 | } |
609 | FileStorage storage( cal, fn, new VCalFormat ); | 610 | FileStorage storage( cal, fn, new VCalFormat ); |
610 | storage.save(); | 611 | storage.save(); |
611 | delete cal; | 612 | delete cal; |
612 | mes = i18n("KO/Pi: Ready for beaming"); | 613 | mes = i18n("KO/Pi: Ready for beaming"); |
613 | topLevelWidget()->setCaption(mes); | 614 | topLevelWidget()->setCaption(mes); |
614 | 615 | ||
615 | #ifndef DESKTOP_VERSION | 616 | #ifndef DESKTOP_VERSION |
616 | Ir *ir = new Ir( this ); | 617 | Ir *ir = new Ir( this ); |
617 | connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); | 618 | connect( ir, SIGNAL( done( Ir * ) ), this, SLOT( beamDone( Ir * ) ) ); |
618 | ir->send( fn, description, "text/x-vCalendar" ); | 619 | ir->send( fn, description, "text/x-vCalendar" ); |
619 | #endif | 620 | #endif |
620 | } | 621 | } |
621 | } | 622 | } |
622 | } | 623 | } |
623 | void KOListView::beamDone( Ir *ir ) | 624 | void KOListView::beamDone( Ir *ir ) |
624 | { | 625 | { |
625 | #ifndef DESKTOP_VERSION | 626 | #ifndef DESKTOP_VERSION |
626 | delete ir; | 627 | delete ir; |
627 | #endif | 628 | #endif |
628 | topLevelWidget()->setCaption(i18n("KO/Pi:Beaming done")); | 629 | topLevelWidget()->setCaption(i18n("KO/Pi:Beaming done")); |
629 | } | 630 | } |
630 | 631 | ||
631 | void KOListView::saveDescriptionToFile() | 632 | void KOListView::saveDescriptionToFile() |
632 | { | 633 | { |
633 | 634 | ||
634 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), | 635 | int result = QMessageBox::warning( this, i18n("KO/Pi: Information!"), |
635 | i18n("This saves the text/details of selected\nJournals and Events/Todos\nto a text file."), | 636 | i18n("This saves the text/details of selected\nJournals and Events/Todos\nto a text file."), |
636 | i18n("Continue"), i18n("Cancel"), 0, | 637 | i18n("Continue"), i18n("Cancel"), 0, |
637 | 0, 1 ); | 638 | 0, 1 ); |
638 | if ( result != 0 ) { | 639 | if ( result != 0 ) { |
639 | return; | 640 | return; |
640 | } | 641 | } |
641 | QPtrList<Incidence> delSel = getSelectedIncidences() ; | 642 | QPtrList<Incidence> delSel = getSelectedIncidences() ; |
642 | int icount = delSel.count(); | 643 | int icount = delSel.count(); |
643 | if ( icount ) { | 644 | if ( icount ) { |
644 | QString fn = KOPrefs::instance()->mLastSaveFile; | 645 | QString fn = KOPrefs::instance()->mLastSaveFile; |
645 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); | 646 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); |
646 | 647 | ||
647 | if ( fn == "" ) | 648 | if ( fn == "" ) |
648 | return; | 649 | return; |
649 | QFileInfo info; | 650 | QFileInfo info; |
650 | info.setFile( fn ); | 651 | info.setFile( fn ); |
651 | QString mes; | 652 | QString mes; |
652 | bool createbup = true; | 653 | bool createbup = true; |
653 | if ( info. exists() ) { | 654 | if ( info. exists() ) { |
654 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 655 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
655 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 656 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
656 | i18n("Overwrite!"), i18n("Cancel"), 0, | 657 | i18n("Overwrite!"), i18n("Cancel"), 0, |
657 | 0, 1 ); | 658 | 0, 1 ); |
658 | if ( result != 0 ) { | 659 | if ( result != 0 ) { |
659 | createbup = false; | 660 | createbup = false; |
660 | } | 661 | } |
661 | } | 662 | } |
662 | if ( createbup ) { | 663 | if ( createbup ) { |
663 | QString text = i18n("KO/Pi Description/Journal save file.\nSave date: ") + | 664 | QString text = i18n("KO/Pi Description/Journal save file.\nSave date: ") + |
664 | KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(), false); | 665 | KGlobal::locale()->formatDateTime(QDateTime::currentDateTime(), false); |
665 | Incidence *incidence = delSel.first(); | 666 | Incidence *incidence = delSel.first(); |
666 | icount = 0; | 667 | icount = 0; |
667 | while ( incidence ) { | 668 | while ( incidence ) { |
668 | if ( incidence->typeID() == journalID ) { | 669 | if ( incidence->typeID() == journalID ) { |
669 | text += "\n************************************\n"; | 670 | text += "\n************************************\n"; |
670 | if ( !incidence->summary().isEmpty() ) | 671 | if ( !incidence->summary().isEmpty() ) |
671 | text += i18n("Journal: %1 from ").arg( incidence->summary() ) +incidence->dtStartDateStr( false ); | 672 | text += i18n("Journal: %1 from ").arg( incidence->summary() ) +incidence->dtStartDateStr( false ); |
672 | else | 673 | else |
673 | text += i18n("Journal from: ") +incidence->dtStartDateStr( false ); | 674 | text += i18n("Journal from: ") +incidence->dtStartDateStr( false ); |
674 | if ( !incidence->location().isEmpty() ) | 675 | if ( !incidence->location().isEmpty() ) |
675 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; | 676 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; |
676 | text +="\n" + i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); | 677 | text +="\n" + i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); |
677 | text +="\n" + i18n("Description: ") + "\n"+ incidence->description(); | 678 | text +="\n" + i18n("Description: ") + "\n"+ incidence->description(); |
678 | ++icount; | 679 | ++icount; |
679 | 680 | ||
680 | } else { | 681 | } else { |
681 | if ( !incidence->description().isEmpty() ) { | 682 | if ( !incidence->description().isEmpty() ) { |
682 | text += "\n************************************\n"; | 683 | text += "\n************************************\n"; |
683 | if ( incidence->typeID() == todoID ) | 684 | if ( incidence->typeID() == todoID ) |
684 | text += i18n("To-Do: "); | 685 | text += i18n("To-Do: "); |
685 | text += incidence->summary(); | 686 | text += incidence->summary(); |
686 | if ( !incidence->location().isEmpty() ) | 687 | if ( !incidence->location().isEmpty() ) |
687 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; | 688 | text +="\n(" + i18n("Location: ") + incidence->location()+ ")"; |
688 | if ( incidence->hasStartDate() ) | 689 | if ( incidence->hasStartDate() ) |
689 | text +="\n"+ i18n("Start Date: ") + incidence->dtStartStr( false ); | 690 | text +="\n"+ i18n("Start Date: ") + incidence->dtStartStr( false ); |
690 | text +="\n"+ i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); | 691 | text +="\n"+ i18n("Last modified: ") +KGlobal::locale()->formatDateTime(incidence->lastModified(), false); |
691 | text += "\n" + i18n("Description: ") + "\n" + incidence->description(); | 692 | text += "\n" + i18n("Description: ") + "\n" + incidence->description(); |
692 | ++icount; | 693 | ++icount; |
693 | 694 | ||
694 | } | 695 | } |
695 | } | 696 | } |
696 | incidence = delSel.next(); | 697 | incidence = delSel.next(); |
697 | } | 698 | } |
698 | QFile file( fn ); | 699 | QFile file( fn ); |
699 | if (!file.open( IO_WriteOnly ) ) { | 700 | if (!file.open( IO_WriteOnly ) ) { |
700 | topLevelWidget()->setCaption(i18n("File open error - nothing saved!") ); | 701 | topLevelWidget()->setCaption(i18n("File open error - nothing saved!") ); |
701 | return; | 702 | return; |
702 | } | 703 | } |
703 | QTextStream ts( &file ); | 704 | QTextStream ts( &file ); |
704 | ts << text; | 705 | ts << text; |
705 | file.close(); | 706 | file.close(); |
706 | //qDebug("%s ", text.latin1()); | 707 | //qDebug("%s ", text.latin1()); |
707 | mes = i18n("KO/Pi:Saved %1 descriptions/journals").arg(icount ); | 708 | mes = i18n("KO/Pi:Saved %1 descriptions/journals").arg(icount ); |
708 | KOPrefs::instance()->mLastSaveFile = fn; | 709 | KOPrefs::instance()->mLastSaveFile = fn; |
709 | topLevelWidget()->setCaption(mes); | 710 | topLevelWidget()->setCaption(mes); |
710 | } | 711 | } |
711 | } | 712 | } |
712 | } | 713 | } |
713 | void KOListView::saveToFileVCS() | 714 | void KOListView::saveToFileVCS() |
714 | { | 715 | { |
715 | writeToFile( false ); | 716 | writeToFile( false ); |
716 | } | 717 | } |
717 | void KOListView::saveToFile() | 718 | void KOListView::saveToFile() |
718 | { | 719 | { |
719 | writeToFile( true ); | 720 | writeToFile( true ); |
720 | } | 721 | } |
721 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos ) | 722 | QPtrList<Incidence> KOListView::getSelectedIncidences( bool includeEvents, bool includeTodos, bool includeJournals, bool onlyDueTodos ) |
722 | { | 723 | { |
723 | QPtrList<Incidence> delSel ; | 724 | QPtrList<Incidence> delSel ; |
724 | bool addSubTodos = false; | 725 | bool addSubTodos = false; |
725 | bool askSubTodos = true; | 726 | bool askSubTodos = true; |
726 | QListViewItem *item = mListView->firstChild (); | 727 | QListViewItem *item = mListView->firstChild (); |
727 | while ( item ) { | 728 | while ( item ) { |
728 | if ( item->isSelected() ) { | 729 | if ( item->isSelected() ) { |
729 | Incidence* inc = ((KOListViewItem *)item)->data(); | 730 | Incidence* inc = ((KOListViewItem *)item)->data(); |
730 | if ( ( addSubTodos && delSel.findRef( inc ) == -1) || !addSubTodos ) { | 731 | if ( ( addSubTodos && delSel.findRef( inc ) == -1) || !addSubTodos ) { |
731 | if ( (inc->typeID() == todoID && includeTodos) || | 732 | if ( (inc->typeID() == todoID && includeTodos) || |
732 | (inc->typeID() == eventID && includeEvents) || | 733 | (inc->typeID() == eventID && includeEvents) || |
733 | (inc->typeID() == journalID && includeJournals) ) { | 734 | (inc->typeID() == journalID && includeJournals) ) { |
734 | if ( inc->typeID() == todoID && onlyDueTodos ) { | 735 | if ( inc->typeID() == todoID && onlyDueTodos ) { |
735 | if ( ((Todo*)inc)->hasDueDate() ) | 736 | if ( ((Todo*)inc)->hasDueDate() ) |
736 | delSel.append( inc ); | 737 | delSel.append( inc ); |
737 | } else | 738 | } else |
738 | delSel.append( inc ); | 739 | delSel.append( inc ); |
739 | 740 | ||
740 | } | 741 | } |
741 | } | 742 | } |
742 | if ( inc->typeID() == todoID ) { | 743 | if ( inc->typeID() == todoID ) { |
743 | Todo * todo = (Todo*) inc; | 744 | Todo * todo = (Todo*) inc; |
744 | if ( todo->relations().count() ) { | 745 | if ( todo->relations().count() ) { |
745 | if ( askSubTodos ) { | 746 | if ( askSubTodos ) { |
746 | int result = KMessageBox::warningYesNoCancel(this, | 747 | int result = KMessageBox::warningYesNoCancel(this, |
747 | i18n("One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?"), | 748 | i18n("One (or more) selected\ntodo has subtodos!\nDo you want to select\nall subtodos of all\nselected todos as well?"), |
748 | i18n("Todo has subtodos"), | 749 | i18n("Todo has subtodos"), |
749 | i18n("Yes"), | 750 | i18n("Yes"), |
750 | i18n("No")); | 751 | i18n("No")); |
751 | if ( result == KMessageBox::Cancel ) { | 752 | if ( result == KMessageBox::Cancel ) { |
752 | delSel.clear(); | 753 | delSel.clear(); |
753 | return delSel; | 754 | return delSel; |
754 | } | 755 | } |
755 | if (result == KMessageBox::Yes) | 756 | if (result == KMessageBox::Yes) |
756 | addSubTodos = true; | 757 | addSubTodos = true; |
757 | askSubTodos = false; | 758 | askSubTodos = false; |
758 | } | 759 | } |
759 | if ( addSubTodos ) { | 760 | if ( addSubTodos ) { |
760 | inc->addRelationsToList( &delSel ); | 761 | inc->addRelationsToList( &delSel ); |
761 | } | 762 | } |
762 | } | 763 | } |
763 | } | 764 | } |
764 | } | 765 | } |
765 | item = item->nextSibling(); | 766 | item = item->nextSibling(); |
766 | } | 767 | } |
767 | return delSel; | 768 | return delSel; |
768 | } | 769 | } |
769 | 770 | ||
770 | void KOListView::writeToFile( bool iCal ) | 771 | void KOListView::writeToFile( bool iCal ) |
771 | { | 772 | { |
772 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; | 773 | QPtrList<Incidence> delSel = getSelectedIncidences(); // all inc allowed; |
773 | if ( !iCal ) { | 774 | if ( !iCal ) { |
774 | bool journal = false; | 775 | bool journal = false; |
775 | Incidence *incidence = delSel.first(); | 776 | Incidence *incidence = delSel.first(); |
776 | while ( incidence ) { | 777 | while ( incidence ) { |
777 | if ( incidence->typeID() == journalID ) { | 778 | if ( incidence->typeID() == journalID ) { |
778 | journal = true; | 779 | journal = true; |
779 | break; | 780 | break; |
780 | } | 781 | } |
781 | incidence = delSel.next(); | 782 | incidence = delSel.next(); |
782 | } | 783 | } |
783 | if ( journal ) { | 784 | if ( journal ) { |
784 | int result = KMessageBox::warningContinueCancel(this, | 785 | int result = KMessageBox::warningContinueCancel(this, |
785 | i18n("The journal entries can not be\nexported to a vCalendar file."), | 786 | i18n("The journal entries can not be\nexported to a vCalendar file."), |
786 | i18n("Data Loss Warning"),i18n("Proceed"),i18n("Cancel"), | 787 | i18n("Data Loss Warning"),i18n("Proceed"),i18n("Cancel"), |
787 | true); | 788 | true); |
788 | if (result != KMessageBox::Continue) return; | 789 | if (result != KMessageBox::Continue) return; |
789 | } | 790 | } |
790 | } | 791 | } |
791 | if ( delSel.count() ) { | 792 | if ( delSel.count() ) { |
792 | QString fn = KOPrefs::instance()->mLastSaveFile; | 793 | QString fn = KOPrefs::instance()->mLastSaveFile; |
793 | QString extension; | 794 | QString extension; |
794 | if ( iCal ) { | 795 | if ( iCal ) { |
795 | if ( fn.right( 4 ).lower() == ".vcs" ) { | 796 | if ( fn.right( 4 ).lower() == ".vcs" ) { |
796 | fn = fn.left( fn.length() -3) + "ics"; | 797 | fn = fn.left( fn.length() -3) + "ics"; |
797 | } | 798 | } |
798 | } else { | 799 | } else { |
799 | if ( fn.right( 4 ).lower() == ".ics" ) { | 800 | if ( fn.right( 4 ).lower() == ".ics" ) { |
800 | fn = fn.left( fn.length() -3) + "vcs"; | 801 | fn = fn.left( fn.length() -3) + "vcs"; |
801 | } | 802 | } |
802 | } | 803 | } |
803 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); | 804 | fn = KFileDialog::getSaveFileName( fn, i18n("Save filename"), this ); |
804 | 805 | ||
805 | if ( fn == "" ) | 806 | if ( fn == "" ) |
806 | return; | 807 | return; |
807 | QFileInfo info; | 808 | QFileInfo info; |
808 | info.setFile( fn ); | 809 | info.setFile( fn ); |
809 | QString mes; | 810 | QString mes; |
810 | bool createbup = true; | 811 | bool createbup = true; |
811 | if ( info. exists() ) { | 812 | if ( info. exists() ) { |
812 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 813 | mes = i18n("File already exists!\nOld file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
813 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 814 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
814 | i18n("Overwrite!"), i18n("Cancel"), 0, | 815 | i18n("Overwrite!"), i18n("Cancel"), 0, |
815 | 0, 1 ); | 816 | 0, 1 ); |
816 | if ( result != 0 ) { | 817 | if ( result != 0 ) { |
817 | createbup = false; | 818 | createbup = false; |
818 | } | 819 | } |
819 | } | 820 | } |
820 | if ( createbup ) { | 821 | if ( createbup ) { |
821 | CalendarLocal cal; | 822 | CalendarLocal cal; |
822 | cal.setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); | 823 | cal.setTimeZoneId(KPimGlobalPrefs::instance()->mTimeZoneId); |
823 | Incidence *incidence = delSel.first(); | 824 | Incidence *incidence = delSel.first(); |
824 | while ( incidence ) { | 825 | while ( incidence ) { |
825 | cal.addIncidence( incidence->clone() ); | 826 | cal.addIncidence( incidence->clone() ); |
diff --git a/korganizer/kotodoview.cpp b/korganizer/kotodoview.cpp index 873a776..8d354c8 100644 --- a/korganizer/kotodoview.cpp +++ b/korganizer/kotodoview.cpp | |||
@@ -220,782 +220,782 @@ void KOTodoListView::contentsDragMoveEvent(QDragMoveEvent *e) | |||
220 | #ifndef KORG_NODND | 220 | #ifndef KORG_NODND |
221 | // kdDebug() << "KOTodoListView::contentsDragMoveEvent" << endl; | 221 | // kdDebug() << "KOTodoListView::contentsDragMoveEvent" << endl; |
222 | 222 | ||
223 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && | 223 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && |
224 | !QTextDrag::canDecode( e ) ) { | 224 | !QTextDrag::canDecode( e ) ) { |
225 | e->ignore(); | 225 | e->ignore(); |
226 | return; | 226 | return; |
227 | } | 227 | } |
228 | 228 | ||
229 | e->accept(); | 229 | e->accept(); |
230 | #endif | 230 | #endif |
231 | } | 231 | } |
232 | 232 | ||
233 | void KOTodoListView::contentsDragLeaveEvent(QDragLeaveEvent *) | 233 | void KOTodoListView::contentsDragLeaveEvent(QDragLeaveEvent *) |
234 | { | 234 | { |
235 | #ifndef KORG_NODND | 235 | #ifndef KORG_NODND |
236 | // kdDebug() << "KOTodoListView::contentsDragLeaveEvent" << endl; | 236 | // kdDebug() << "KOTodoListView::contentsDragLeaveEvent" << endl; |
237 | 237 | ||
238 | setCurrentItem(mOldCurrent); | 238 | setCurrentItem(mOldCurrent); |
239 | setSelected(mOldCurrent,true); | 239 | setSelected(mOldCurrent,true); |
240 | #endif | 240 | #endif |
241 | } | 241 | } |
242 | 242 | ||
243 | void KOTodoListView::contentsDropEvent(QDropEvent *e) | 243 | void KOTodoListView::contentsDropEvent(QDropEvent *e) |
244 | { | 244 | { |
245 | #ifndef KORG_NODND | 245 | #ifndef KORG_NODND |
246 | // kdDebug() << "KOTodoListView::contentsDropEvent" << endl; | 246 | // kdDebug() << "KOTodoListView::contentsDropEvent" << endl; |
247 | 247 | ||
248 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && | 248 | if ( !ICalDrag::canDecode( e ) && !VCalDrag::canDecode( e ) && |
249 | !QTextDrag::canDecode( e ) ) { | 249 | !QTextDrag::canDecode( e ) ) { |
250 | e->ignore(); | 250 | e->ignore(); |
251 | return; | 251 | return; |
252 | } | 252 | } |
253 | 253 | ||
254 | DndFactory factory( mCalendar ); | 254 | DndFactory factory( mCalendar ); |
255 | Todo *todo = factory.createDropTodo(e); | 255 | Todo *todo = factory.createDropTodo(e); |
256 | 256 | ||
257 | if (todo) { | 257 | if (todo) { |
258 | e->acceptAction(); | 258 | e->acceptAction(); |
259 | 259 | ||
260 | KOTodoViewItem *destination = | 260 | KOTodoViewItem *destination = |
261 | (KOTodoViewItem *)itemAt(contentsToViewport(e->pos())); | 261 | (KOTodoViewItem *)itemAt(contentsToViewport(e->pos())); |
262 | Todo *destinationEvent = 0; | 262 | Todo *destinationEvent = 0; |
263 | if (destination) destinationEvent = destination->todo(); | 263 | if (destination) destinationEvent = destination->todo(); |
264 | 264 | ||
265 | Todo *existingTodo = mCalendar->todo(todo->uid()); | 265 | Todo *existingTodo = mCalendar->todo(todo->uid()); |
266 | 266 | ||
267 | if(existingTodo) { | 267 | if(existingTodo) { |
268 | Incidence *to = destinationEvent; | 268 | Incidence *to = destinationEvent; |
269 | while(to) { | 269 | while(to) { |
270 | if (to->uid() == todo->uid()) { | 270 | if (to->uid() == todo->uid()) { |
271 | KMessageBox::sorry(this, | 271 | KMessageBox::sorry(this, |
272 | i18n("Cannot move Todo to itself\nor a child of itself"), | 272 | i18n("Cannot move Todo to itself\nor a child of itself"), |
273 | i18n("Drop Todo")); | 273 | i18n("Drop Todo")); |
274 | delete todo; | 274 | delete todo; |
275 | return; | 275 | return; |
276 | } | 276 | } |
277 | to = to->relatedTo(); | 277 | to = to->relatedTo(); |
278 | } | 278 | } |
279 | internalDrop = true; | 279 | internalDrop = true; |
280 | if ( destinationEvent ) | 280 | if ( destinationEvent ) |
281 | reparentTodoSignal( destinationEvent, existingTodo ); | 281 | reparentTodoSignal( destinationEvent, existingTodo ); |
282 | else | 282 | else |
283 | unparentTodoSignal(existingTodo); | 283 | unparentTodoSignal(existingTodo); |
284 | delete todo; | 284 | delete todo; |
285 | } else { | 285 | } else { |
286 | mCalendar->addTodo(todo); | 286 | mCalendar->addTodo(todo); |
287 | emit todoDropped(todo, KOGlobals::EVENTADDED); | 287 | emit todoDropped(todo, KOGlobals::EVENTADDED); |
288 | if ( destinationEvent ) | 288 | if ( destinationEvent ) |
289 | reparentTodoSignal( destinationEvent, todo ); | 289 | reparentTodoSignal( destinationEvent, todo ); |
290 | } | 290 | } |
291 | } | 291 | } |
292 | else { | 292 | else { |
293 | QString text; | 293 | QString text; |
294 | if (QTextDrag::decode(e,text)) { | 294 | if (QTextDrag::decode(e,text)) { |
295 | //QListViewItem *qlvi = itemAt( contentsToViewport(e->pos()) ); | 295 | //QListViewItem *qlvi = itemAt( contentsToViewport(e->pos()) ); |
296 | KOTodoViewItem *todoi = static_cast<KOTodoViewItem *>(itemAt( contentsToViewport(e->pos()) )); | 296 | KOTodoViewItem *todoi = static_cast<KOTodoViewItem *>(itemAt( contentsToViewport(e->pos()) )); |
297 | qDebug("Dropped : " + text); | 297 | qDebug("Dropped : " + text); |
298 | QStringList emails = QStringList::split(",",text); | 298 | QStringList emails = QStringList::split(",",text); |
299 | for(QStringList::ConstIterator it = emails.begin();it!=emails.end();++it) { | 299 | for(QStringList::ConstIterator it = emails.begin();it!=emails.end();++it) { |
300 | int pos = (*it).find("<"); | 300 | int pos = (*it).find("<"); |
301 | QString name = (*it).left(pos); | 301 | QString name = (*it).left(pos); |
302 | QString email = (*it).mid(pos); | 302 | QString email = (*it).mid(pos); |
303 | if (!email.isEmpty() && todoi) { | 303 | if (!email.isEmpty() && todoi) { |
304 | todoi->todo()->addAttendee(new Attendee(name,email)); | 304 | todoi->todo()->addAttendee(new Attendee(name,email)); |
305 | } | 305 | } |
306 | } | 306 | } |
307 | } | 307 | } |
308 | else { | 308 | else { |
309 | qDebug("KOTodoListView::contentsDropEvent(): Todo from drop not decodable "); | 309 | qDebug("KOTodoListView::contentsDropEvent(): Todo from drop not decodable "); |
310 | e->ignore(); | 310 | e->ignore(); |
311 | } | 311 | } |
312 | } | 312 | } |
313 | #endif | 313 | #endif |
314 | } | 314 | } |
315 | void KOTodoListView::wheelEvent (QWheelEvent *e) | 315 | void KOTodoListView::wheelEvent (QWheelEvent *e) |
316 | { | 316 | { |
317 | QListView::wheelEvent (e); | 317 | QListView::wheelEvent (e); |
318 | } | 318 | } |
319 | 319 | ||
320 | void KOTodoListView::contentsMousePressEvent(QMouseEvent* e) | 320 | void KOTodoListView::contentsMousePressEvent(QMouseEvent* e) |
321 | { | 321 | { |
322 | 322 | ||
323 | QPoint p(contentsToViewport(e->pos())); | 323 | QPoint p(contentsToViewport(e->pos())); |
324 | QListViewItem *i = itemAt(p); | 324 | QListViewItem *i = itemAt(p); |
325 | bool rootClicked = true; | 325 | bool rootClicked = true; |
326 | if (i) { | 326 | if (i) { |
327 | // if the user clicked into the root decoration of the item, don't | 327 | // if the user clicked into the root decoration of the item, don't |
328 | // try to start a drag! | 328 | // try to start a drag! |
329 | int X = p.x(); | 329 | int X = p.x(); |
330 | //qDebug("%d %d %d", X, header()->sectionPos(0), treeStepSize() ); | 330 | //qDebug("%d %d %d", X, header()->sectionPos(0), treeStepSize() ); |
331 | if (X > header()->sectionPos(0) + | 331 | if (X > header()->sectionPos(0) + |
332 | treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) + | 332 | treeStepSize() * (i->depth() + (rootIsDecorated() ? 1 : 0)) + |
333 | itemMargin() +i->height()|| | 333 | itemMargin() +i->height()|| |
334 | X < header()->sectionPos(0)) { | 334 | X < header()->sectionPos(0)) { |
335 | rootClicked = false; | 335 | rootClicked = false; |
336 | } | 336 | } |
337 | } else { | 337 | } else { |
338 | rootClicked = false; | 338 | rootClicked = false; |
339 | } | 339 | } |
340 | #ifndef KORG_NODND | 340 | #ifndef KORG_NODND |
341 | mMousePressed = false; | 341 | mMousePressed = false; |
342 | if (! rootClicked && !( e->button() == RightButton) ) { | 342 | if (! rootClicked && !( e->button() == RightButton) ) { |
343 | mPressPos = e->pos(); | 343 | mPressPos = e->pos(); |
344 | mMousePressed = true; | 344 | mMousePressed = true; |
345 | } else { | 345 | } else { |
346 | mMousePressed = false; | 346 | mMousePressed = false; |
347 | } | 347 | } |
348 | #endif | 348 | #endif |
349 | //qDebug("KOTodoListView::contentsMousePressEvent %d", rootClicked); | 349 | //qDebug("KOTodoListView::contentsMousePressEvent %d", rootClicked); |
350 | #ifndef DESKTOP_VERSION | 350 | #ifndef DESKTOP_VERSION |
351 | if (!( e->button() == RightButton && rootClicked) ) | 351 | if (!( e->button() == RightButton && rootClicked) ) |
352 | QListView::contentsMousePressEvent(e); | 352 | QListView::contentsMousePressEvent(e); |
353 | #else | 353 | #else |
354 | QListView::contentsMousePressEvent(e); | 354 | QListView::contentsMousePressEvent(e); |
355 | #endif | 355 | #endif |
356 | } | 356 | } |
357 | void KOTodoListView::paintEvent(QPaintEvent* e) | 357 | void KOTodoListView::paintEvent(QPaintEvent* e) |
358 | { | 358 | { |
359 | emit paintNeeded(); | 359 | emit paintNeeded(); |
360 | QListView::paintEvent( e); | 360 | QListView::paintEvent( e); |
361 | } | 361 | } |
362 | void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) | 362 | void KOTodoListView::contentsMouseMoveEvent(QMouseEvent* e) |
363 | { | 363 | { |
364 | 364 | ||
365 | #ifndef KORG_NODND | 365 | #ifndef KORG_NODND |
366 | //QListView::contentsMouseMoveEvent(e); | 366 | //QListView::contentsMouseMoveEvent(e); |
367 | if (mMousePressed && (mPressPos - e->pos()).manhattanLength() > | 367 | if (mMousePressed && (mPressPos - e->pos()).manhattanLength() > |
368 | QApplication::startDragDistance()*3) { | 368 | QApplication::startDragDistance()*3) { |
369 | mMousePressed = false; | 369 | mMousePressed = false; |
370 | QListViewItem *item = itemAt(contentsToViewport(mPressPos)); | 370 | QListViewItem *item = itemAt(contentsToViewport(mPressPos)); |
371 | if (item) { | 371 | if (item) { |
372 | DndFactory factory( mCalendar ); | 372 | DndFactory factory( mCalendar ); |
373 | ICalDrag *vd = factory.createDrag( | 373 | ICalDrag *vd = factory.createDrag( |
374 | ((KOTodoViewItem *)item)->todo(),viewport()); | 374 | ((KOTodoViewItem *)item)->todo(),viewport()); |
375 | internalDrop = false; | 375 | internalDrop = false; |
376 | // we cannot do any senseful here, because the DnD is still broken in Qt | 376 | // we cannot do any senseful here, because the DnD is still broken in Qt |
377 | if (vd->drag()) { | 377 | if (vd->drag()) { |
378 | if ( !internalDrop ) { | 378 | if ( !internalDrop ) { |
379 | //emit deleteTodo( ((KOTodoViewItem *)item)->todo() ); | 379 | //emit deleteTodo( ((KOTodoViewItem *)item)->todo() ); |
380 | qDebug("Dnd: External move: Delete drag source "); | 380 | qDebug("Dnd: External move: Delete drag source "); |
381 | } else | 381 | } else |
382 | qDebug("Dnd: Internal move "); | 382 | qDebug("Dnd: Internal move "); |
383 | 383 | ||
384 | } else { | 384 | } else { |
385 | if ( !internalDrop ) { | 385 | if ( !internalDrop ) { |
386 | qDebug("Dnd: External Copy"); | 386 | qDebug("Dnd: External Copy"); |
387 | } else | 387 | } else |
388 | qDebug("DnD: Internal copy: Copy pending"); | 388 | qDebug("DnD: Internal copy: Copy pending"); |
389 | } | 389 | } |
390 | } | 390 | } |
391 | } | 391 | } |
392 | #endif | 392 | #endif |
393 | } | 393 | } |
394 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) | 394 | void KOTodoListView::keyReleaseEvent ( QKeyEvent *e ) |
395 | { | 395 | { |
396 | if ( !e->isAutoRepeat() ) { | 396 | if ( !e->isAutoRepeat() ) { |
397 | mFlagKeyPressed = false; | 397 | mFlagKeyPressed = false; |
398 | } | 398 | } |
399 | } | 399 | } |
400 | 400 | ||
401 | 401 | ||
402 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) | 402 | void KOTodoListView::keyPressEvent ( QKeyEvent * e ) |
403 | { | 403 | { |
404 | qApp->processEvents(); | 404 | qApp->processEvents(); |
405 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 405 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
406 | e->ignore(); | 406 | e->ignore(); |
407 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 407 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
408 | return; | 408 | return; |
409 | } | 409 | } |
410 | if (! e->isAutoRepeat() ) | 410 | if (! e->isAutoRepeat() ) |
411 | mFlagKeyPressed = true; | 411 | mFlagKeyPressed = true; |
412 | QListViewItem* cn; | 412 | QListViewItem* cn; |
413 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { | 413 | if ( e->key() == Qt::Key_Return || e->key() == Qt::Key_Enter ) { |
414 | cn = currentItem(); | 414 | cn = currentItem(); |
415 | if ( cn ) { | 415 | if ( cn ) { |
416 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); | 416 | KOTodoViewItem* ci = (KOTodoViewItem*)( cn ); |
417 | if ( ci ){ | 417 | if ( ci ){ |
418 | if ( e->state() == ShiftButton ) | 418 | if ( e->state() == ShiftButton ) |
419 | ci->setOn( false ); | 419 | ci->setOn( false ); |
420 | else | 420 | else |
421 | ci->setOn( true ); | 421 | ci->setOn( true ); |
422 | cn = cn->itemBelow(); | 422 | cn = cn->itemBelow(); |
423 | if ( cn ) { | 423 | if ( cn ) { |
424 | setCurrentItem ( cn ); | 424 | setCurrentItem ( cn ); |
425 | ensureItemVisible ( cn ); | 425 | ensureItemVisible ( cn ); |
426 | } | 426 | } |
427 | 427 | ||
428 | } | 428 | } |
429 | } | 429 | } |
430 | 430 | ||
431 | return; | 431 | return; |
432 | } | 432 | } |
433 | 433 | ||
434 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { | 434 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton || mName != "todolistsmall" ) { |
435 | switch ( e->key() ) { | 435 | switch ( e->key() ) { |
436 | case Qt::Key_Down: | 436 | case Qt::Key_Down: |
437 | case Qt::Key_Up: | 437 | case Qt::Key_Up: |
438 | QListView::keyPressEvent ( e ); | 438 | QListView::keyPressEvent ( e ); |
439 | break; | 439 | break; |
440 | case Qt::Key_Left: | 440 | case Qt::Key_Left: |
441 | case Qt::Key_Right: | 441 | case Qt::Key_Right: |
442 | QListView::keyPressEvent ( e ); | 442 | QListView::keyPressEvent ( e ); |
443 | e->accept(); | 443 | e->accept(); |
444 | return; | 444 | return; |
445 | break; | 445 | break; |
446 | default: | 446 | default: |
447 | e->ignore(); | 447 | e->ignore(); |
448 | break; | 448 | break; |
449 | } | 449 | } |
450 | return; | 450 | return; |
451 | } | 451 | } |
452 | e->ignore(); | 452 | e->ignore(); |
453 | } | 453 | } |
454 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) | 454 | void KOTodoListView::contentsMouseReleaseEvent(QMouseEvent *e) |
455 | { | 455 | { |
456 | QListView::contentsMouseReleaseEvent(e); | 456 | QListView::contentsMouseReleaseEvent(e); |
457 | mMousePressed = false; | 457 | mMousePressed = false; |
458 | } | 458 | } |
459 | 459 | ||
460 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) | 460 | void KOTodoListView::contentsMouseDoubleClickEvent(QMouseEvent *e) |
461 | { | 461 | { |
462 | if (!e) return; | 462 | if (!e) return; |
463 | 463 | ||
464 | QPoint vp = contentsToViewport(e->pos()); | 464 | QPoint vp = contentsToViewport(e->pos()); |
465 | 465 | ||
466 | QListViewItem *item = itemAt(vp); | 466 | QListViewItem *item = itemAt(vp); |
467 | 467 | ||
468 | emit double_Clicked(item); | 468 | emit double_Clicked(item); |
469 | if (!item) return; | 469 | if (!item) return; |
470 | 470 | ||
471 | emit doubleClicked(item,vp,0); | 471 | emit doubleClicked(item,vp,0); |
472 | } | 472 | } |
473 | 473 | ||
474 | ///////////////////////////////////////////////////////////////////////////// | 474 | ///////////////////////////////////////////////////////////////////////////// |
475 | 475 | ||
476 | KOQuickTodo::KOQuickTodo(QWidget *parent) : | 476 | KOQuickTodo::KOQuickTodo(QWidget *parent) : |
477 | QLineEdit(parent) | 477 | QLineEdit(parent) |
478 | { | 478 | { |
479 | setText(i18n("Click to add a new Todo")); | 479 | setText(i18n("Click to add a new Todo")); |
480 | } | 480 | } |
481 | 481 | ||
482 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) | 482 | void KOQuickTodo::focusInEvent(QFocusEvent *ev) |
483 | { | 483 | { |
484 | if ( text()==i18n("Click to add a new Todo") ) | 484 | if ( text()==i18n("Click to add a new Todo") ) |
485 | setText(""); | 485 | setText(""); |
486 | QLineEdit::focusInEvent(ev); | 486 | QLineEdit::focusInEvent(ev); |
487 | } | 487 | } |
488 | 488 | ||
489 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) | 489 | void KOQuickTodo::focusOutEvent(QFocusEvent *ev) |
490 | { | 490 | { |
491 | setText(i18n("Click to add a new Todo")); | 491 | setText(i18n("Click to add a new Todo")); |
492 | QLineEdit::focusOutEvent(ev); | 492 | QLineEdit::focusOutEvent(ev); |
493 | } | 493 | } |
494 | 494 | ||
495 | ///////////////////////////////////////////////////////////////////////////// | 495 | ///////////////////////////////////////////////////////////////////////////// |
496 | 496 | ||
497 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : | 497 | KOTodoView::KOTodoView(Calendar *calendar,QWidget* parent,const char* name) : |
498 | KOrg::BaseView(calendar,parent,name) | 498 | KOrg::BaseView(calendar,parent,name) |
499 | { | 499 | { |
500 | mCategoryPopupMenu = 0; | 500 | mCategoryPopupMenu = 0; |
501 | mPendingUpdateBeforeRepaint = false; | 501 | mPendingUpdateBeforeRepaint = false; |
502 | isFlatDisplay = false; | 502 | isFlatDisplay = false; |
503 | mNavigator = 0; | 503 | mNavigator = 0; |
504 | QBoxLayout *topLayout = new QVBoxLayout(this); | 504 | QBoxLayout *topLayout = new QVBoxLayout(this); |
505 | mName = QString ( name ); | 505 | mName = QString ( name ); |
506 | mBlockUpdate = false; | 506 | mBlockUpdate = false; |
507 | mQuickAdd = new KOQuickTodo(this); | 507 | mQuickAdd = new KOQuickTodo(this); |
508 | topLayout->addWidget(mQuickAdd); | 508 | topLayout->addWidget(mQuickAdd); |
509 | 509 | ||
510 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickAdd->hide(); | 510 | if ( !KOPrefs::instance()->mEnableQuickTodo ) mQuickAdd->hide(); |
511 | 511 | ||
512 | mTodoListView = new KOTodoListView(calendar,this, name ); | 512 | mTodoListView = new KOTodoListView(calendar,this, name ); |
513 | topLayout->addWidget(mTodoListView); | 513 | topLayout->addWidget(mTodoListView); |
514 | //mTodoListView->header()->setMaximumHeight(30); | 514 | //mTodoListView->header()->setMaximumHeight(30); |
515 | mTodoListView->setRootIsDecorated(true); | 515 | mTodoListView->setRootIsDecorated(true); |
516 | mTodoListView->setAllColumnsShowFocus(true); | 516 | mTodoListView->setAllColumnsShowFocus(true); |
517 | 517 | ||
518 | mTodoListView->setShowSortIndicator(true); | 518 | mTodoListView->setShowSortIndicator(true); |
519 | 519 | ||
520 | mTodoListView->addColumn(i18n("Todo")); | 520 | mTodoListView->addColumn(i18n("Todo")); |
521 | mTodoListView->addColumn(i18n("Prio")); | 521 | mTodoListView->addColumn(i18n("Prio")); |
522 | mTodoListView->setColumnAlignment(1,AlignHCenter); | 522 | mTodoListView->setColumnAlignment(1,AlignHCenter); |
523 | mTodoListView->addColumn(i18n("Complete")); | 523 | mTodoListView->addColumn(i18n("Complete")); |
524 | mTodoListView->setColumnAlignment(2,AlignCenter); | 524 | mTodoListView->setColumnAlignment(2,AlignCenter); |
525 | 525 | ||
526 | mTodoListView->addColumn(i18n("Due Date")); | 526 | mTodoListView->addColumn(i18n("Due Date")); |
527 | mTodoListView->setColumnAlignment(3,AlignLeft); | 527 | mTodoListView->setColumnAlignment(3,AlignLeft); |
528 | mTodoListView->addColumn(i18n("Due Time")); | 528 | mTodoListView->addColumn(i18n("Due Time")); |
529 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 529 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
530 | 530 | ||
531 | mTodoListView->addColumn(i18n("Start Date")); | 531 | mTodoListView->addColumn(i18n("Start Date")); |
532 | mTodoListView->setColumnAlignment(5,AlignLeft); | 532 | mTodoListView->setColumnAlignment(5,AlignLeft); |
533 | mTodoListView->addColumn(i18n("Start Time")); | 533 | mTodoListView->addColumn(i18n("Start Time")); |
534 | mTodoListView->setColumnAlignment(6,AlignHCenter); | 534 | mTodoListView->setColumnAlignment(6,AlignHCenter); |
535 | 535 | ||
536 | mTodoListView->addColumn(i18n("Cancelled")); | 536 | mTodoListView->addColumn(i18n("Cancelled")); |
537 | mTodoListView->addColumn(i18n("Categories")); | 537 | mTodoListView->addColumn(i18n("Categories")); |
538 | mTodoListView->addColumn(i18n("Calendar")); | 538 | mTodoListView->addColumn(i18n("Calendar")); |
539 | #if 0 | 539 | #if 0 |
540 | mTodoListView->addColumn(i18n("Sort Id")); | 540 | mTodoListView->addColumn(i18n("Sort Id")); |
541 | mTodoListView->setColumnAlignment(4,AlignHCenter); | 541 | mTodoListView->setColumnAlignment(4,AlignHCenter); |
542 | #endif | 542 | #endif |
543 | 543 | ||
544 | mTodoListView->setMinimumHeight( 60 ); | 544 | mTodoListView->setMinimumHeight( 60 ); |
545 | mTodoListView->setItemsRenameable( true ); | 545 | mTodoListView->setItemsRenameable( true ); |
546 | mTodoListView->setRenameable( 0 ); | 546 | mTodoListView->setRenameable( 0 ); |
547 | mTodoListView->setColumnWidth( 0, 120 ); | 547 | mTodoListView->setColumnWidth( 0, 120 ); |
548 | int iii = 0; | 548 | int iii = 0; |
549 | for ( iii = 0; iii< 10 ; ++iii ) | 549 | for ( iii = 0; iii< 10 ; ++iii ) |
550 | mTodoListView->setColumnWidthMode( iii, QListView::Manual ); | 550 | mTodoListView->setColumnWidthMode( iii, QListView::Manual ); |
551 | 551 | ||
552 | 552 | ||
553 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); | 553 | mKOTodoViewWhatsThis = new KOTodoViewWhatsThis(mTodoListView->viewport(),this); |
554 | 554 | ||
555 | mPriorityPopupMenu = new QPopupMenu(this); | 555 | mPriorityPopupMenu = new QPopupMenu(this); |
556 | for (int i = 1; i <= 5; i++) { | 556 | for (int i = 1; i <= 5; i++) { |
557 | QString label = QString ("%1").arg (i); | 557 | QString label = QString ("%1").arg (i); |
558 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; | 558 | mPriority[mPriorityPopupMenu->insertItem (label)] = i; |
559 | } | 559 | } |
560 | connect (mPriorityPopupMenu, SIGNAL(activated (int)), SLOT (setNewPriority(int))); | 560 | connect (mPriorityPopupMenu, SIGNAL(activated (int)), SLOT (setNewPriority(int))); |
561 | 561 | ||
562 | mPercentageCompletedPopupMenu = new QPopupMenu(this); | 562 | mPercentageCompletedPopupMenu = new QPopupMenu(this); |
563 | for (int i = 0; i <= 100; i+=20) { | 563 | for (int i = 0; i <= 100; i+=20) { |
564 | QString label = QString ("%1 %").arg (i); | 564 | QString label = QString ("%1 %").arg (i); |
565 | mPercentage[mPercentageCompletedPopupMenu->insertItem (label)] = i; | 565 | mPercentage[mPercentageCompletedPopupMenu->insertItem (label)] = i; |
566 | } | 566 | } |
567 | connect (mPercentageCompletedPopupMenu, SIGNAL (activated (int)), SLOT (setNewPercentage (int))); | 567 | connect (mPercentageCompletedPopupMenu, SIGNAL (activated (int)), SLOT (setNewPercentage (int))); |
568 | 568 | ||
569 | 569 | ||
570 | 570 | ||
571 | mItemPopupMenu = new QPopupMenu(this); | 571 | mItemPopupMenu = new QPopupMenu(this); |
572 | mItemPopupMenu->insertItem(i18n("Show..."), this, | 572 | mItemPopupMenu->insertItem(i18n("Show..."), this, |
573 | SLOT (showTodo())); | 573 | SLOT (showTodo())); |
574 | mItemPopupMenu->insertItem(i18n("Edit..."), this, | 574 | mItemPopupMenu->insertItem(i18n("Edit..."), this, |
575 | SLOT (editTodo())); | 575 | SLOT (editTodo())); |
576 | mItemPopupMenu->insertItem( i18n("Delete"), this, | 576 | mItemPopupMenu->insertItem( i18n("Delete"), this, |
577 | SLOT (deleteTodo())); | 577 | SLOT (deleteTodo())); |
578 | mItemPopupMenu->insertItem( i18n("Clone..."), this, | 578 | mItemPopupMenu->insertItem( i18n("Clone..."), this, |
579 | SLOT (cloneTodo())); | 579 | SLOT (cloneTodo())); |
580 | mItemPopupMenu->insertItem( i18n("Move..."), this, | 580 | mItemPopupMenu->insertItem( i18n("Move..."), this, |
581 | SLOT (moveTodo())); | 581 | SLOT (moveTodo())); |
582 | #ifndef DESKTOP_VERSION | 582 | #ifndef DESKTOP_VERSION |
583 | mItemPopupMenu->insertItem( i18n("Beam..."), this, | 583 | mItemPopupMenu->insertItem( i18n("Beam..."), this, |
584 | SLOT (beamTodo())); | 584 | SLOT (beamTodo())); |
585 | #endif | 585 | #endif |
586 | mItemPopupMenu->insertItem( i18n("Toggle Cancel"), this, | 586 | mItemPopupMenu->insertItem( i18n("Toggle Cancel"), this, |
587 | SLOT (cancelTodo())); | 587 | SLOT (cancelTodo())); |
588 | mItemPopupMenu->insertSeparator(); | 588 | mItemPopupMenu->insertSeparator(); |
589 | mItemPopupMenu->insertItem( i18n("Start/Stop todo..."), this, | 589 | mItemPopupMenu->insertItem( i18n("Start/Stop todo..."), this, |
590 | SLOT (toggleRunningItem())); | 590 | SLOT (toggleRunningItem())); |
591 | mItemPopupMenu->insertSeparator(); | 591 | mItemPopupMenu->insertSeparator(); |
592 | /* | 592 | /* |
593 | mItemPopupMenu->insertItem( i18n("New Todo..."), this, | 593 | mItemPopupMenu->insertItem( i18n("New Todo..."), this, |
594 | SLOT (newTodo())); | 594 | SLOT (newTodo())); |
595 | */ | 595 | */ |
596 | mItemPopupMenu->insertItem(i18n("New Sub-Todo..."), this, | 596 | mItemPopupMenu->insertItem(i18n("New Sub-Todo..."), this, |
597 | SLOT (newSubTodo())); | 597 | SLOT (newSubTodo())); |
598 | mItemPopupMenu->insertItem(i18n("Unparent Todo"), this, | 598 | mItemPopupMenu->insertItem(i18n("Unparent Todo"), this, |
599 | SLOT (unparentTodo()),0,21); | 599 | SLOT (unparentTodo()),0,21); |
600 | mItemPopupMenu->insertItem(i18n("Reparent Todo"), this, | 600 | mItemPopupMenu->insertItem(i18n("Reparent Todo"), this, |
601 | SLOT (reparentTodo()),0,22); | 601 | SLOT (reparentTodo()),0,22); |
602 | mItemPopupMenu->insertSeparator(); | 602 | mItemPopupMenu->insertSeparator(); |
603 | #if 0 | 603 | #if 0 |
604 | mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed"), | 604 | mItemPopupMenu->insertItem(i18n("Delete completed To-Dos","Purge Completed..."), |
605 | this, SLOT( purgeCompleted() ) ); | 605 | this, SLOT( purgeCompleted() ) ); |
606 | mItemPopupMenu->insertItem(i18n("toggle completed To-Dos","Show Completed"), | 606 | mItemPopupMenu->insertItem(i18n("toggle completed To-Dos","Show Completed"), |
607 | this, SLOT( toggleCompleted() ),0, 33 ); | 607 | this, SLOT( toggleCompleted() ),0, 33 ); |
608 | mItemPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), | 608 | mItemPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), |
609 | this, SLOT( toggleQuickTodo() ),0, 34 ); | 609 | this, SLOT( toggleQuickTodo() ),0, 34 ); |
610 | mItemPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), | 610 | mItemPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), |
611 | this, SLOT( toggleRunning() ),0, 35 ); | 611 | this, SLOT( toggleRunning() ),0, 35 ); |
612 | 612 | ||
613 | #endif | 613 | #endif |
614 | mPopupMenu = new QPopupMenu(this); | 614 | mPopupMenu = new QPopupMenu(this); |
615 | mPopupMenu->insertItem(SmallIconSet("todo"), i18n("New Todo..."), this, | 615 | mPopupMenu->insertItem(SmallIconSet("todo"), i18n("New Todo..."), this, |
616 | SLOT (newTodo()),0,1); | 616 | SLOT (newTodo()),0,1); |
617 | mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed"), | 617 | mPopupMenu->insertItem(i18n("delete completed To-Dos","Purge Completed..."), |
618 | this, SLOT(purgeCompleted()),0,2); | 618 | this, SLOT(purgeCompleted()),0,2); |
619 | mPopupMenu->insertItem(i18n("Show Completed"), | 619 | mPopupMenu->insertItem(i18n("Show Completed"), |
620 | this, SLOT( toggleCompleted() ),0,3 ); | 620 | this, SLOT( toggleCompleted() ),0,3 ); |
621 | mPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), | 621 | mPopupMenu->insertItem(i18n("toggle running todo","Hide not Running"), |
622 | this, SLOT( toggleRunning() ),0,5 ); | 622 | this, SLOT( toggleRunning() ),0,5 ); |
623 | mPopupMenu->insertItem(i18n(" set all open","Display all opened"), | 623 | mPopupMenu->insertItem(i18n(" set all open","Display all opened"), |
624 | this, SLOT( setAllOpen() ),0,6 ); | 624 | this, SLOT( setAllOpen() ),0,6 ); |
625 | mPopupMenu->insertItem(i18n(" set all close","Display all closed"), | 625 | mPopupMenu->insertItem(i18n(" set all close","Display all closed"), |
626 | this, SLOT( setAllClose() ),0,7 ); | 626 | this, SLOT( setAllClose() ),0,7 ); |
627 | mPopupMenu->insertItem(i18n(" set all flat","Display all flat"), | 627 | mPopupMenu->insertItem(i18n(" set all flat","Display all flat"), |
628 | this, SLOT( setAllFlat() ),0,8 ); | 628 | this, SLOT( setAllFlat() ),0,8 ); |
629 | mPopupMenu->insertSeparator(); | 629 | mPopupMenu->insertSeparator(); |
630 | mPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), | 630 | mPopupMenu->insertItem(i18n("toggle quick todo","Show Quick Todo"), |
631 | this, SLOT( toggleQuickTodo() ),0,4 ); | 631 | this, SLOT( toggleQuickTodo() ),0,4 ); |
632 | mDocPrefs = new DocPrefs( name ); | 632 | mDocPrefs = new DocPrefs( name ); |
633 | 633 | ||
634 | mItemPopupMenu->insertItem(i18n("Todo View"),mPopupMenu ); | 634 | mItemPopupMenu->insertItem(i18n("Todo View"),mPopupMenu ); |
635 | mPopupMenu->setCheckable( true ); | 635 | mPopupMenu->setCheckable( true ); |
636 | mItemPopupMenu->setCheckable( true ); | 636 | mItemPopupMenu->setCheckable( true ); |
637 | 637 | ||
638 | 638 | ||
639 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); | 639 | mPopupMenu->setItemChecked( 3,KOPrefs::instance()->mShowCompletedTodo ); |
640 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); | 640 | mItemPopupMenu->setItemChecked( 33 , KOPrefs::instance()->mShowCompletedTodo ); |
641 | 641 | ||
642 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); | 642 | mPopupMenu->setItemChecked(4,KOPrefs::instance()->mEnableQuickTodo); |
643 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); | 643 | mItemPopupMenu->setItemChecked( 34 , KOPrefs::instance()->mEnableQuickTodo ); |
644 | 644 | ||
645 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); | 645 | mPopupMenu->setItemChecked(5,KOPrefs::instance()->mHideNonStartedTodos); |
646 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); | 646 | mItemPopupMenu->setItemChecked( 35 , KOPrefs::instance()->mHideNonStartedTodos ); |
647 | 647 | ||
648 | 648 | ||
649 | // Double clicking conflicts with opening/closing the subtree | 649 | // Double clicking conflicts with opening/closing the subtree |
650 | connect( mTodoListView, SIGNAL( doubleClicked( QListViewItem *) ), | 650 | connect( mTodoListView, SIGNAL( doubleClicked( QListViewItem *) ), |
651 | SLOT( editItem( QListViewItem *) ) ); | 651 | SLOT( editItem( QListViewItem *) ) ); |
652 | /* | 652 | /* |
653 | connect( mTodoListView, SIGNAL( rightButtonClicked ( QListViewItem *, | 653 | connect( mTodoListView, SIGNAL( rightButtonClicked ( QListViewItem *, |
654 | const QPoint &,int ) ), | 654 | const QPoint &,int ) ), |
655 | SLOT( popupMenu( QListViewItem *, const QPoint & ,int) ) ); | 655 | SLOT( popupMenu( QListViewItem *, const QPoint & ,int) ) ); |
656 | */ | 656 | */ |
657 | connect( mTodoListView, SIGNAL( contextRequest ( QListViewItem *, | 657 | connect( mTodoListView, SIGNAL( contextRequest ( QListViewItem *, |
658 | const QPoint &,int ) ), | 658 | const QPoint &,int ) ), |
659 | SLOT( popupMenu( QListViewItem *, const QPoint & ,int) ) ); | 659 | SLOT( popupMenu( QListViewItem *, const QPoint & ,int) ) ); |
660 | connect( mTodoListView, SIGNAL( clicked( QListViewItem * ) ), | 660 | connect( mTodoListView, SIGNAL( clicked( QListViewItem * ) ), |
661 | SLOT( itemClicked( QListViewItem * ) ) ); | 661 | SLOT( itemClicked( QListViewItem * ) ) ); |
662 | connect( mTodoListView, SIGNAL( double_Clicked( QListViewItem * ) ), | 662 | connect( mTodoListView, SIGNAL( double_Clicked( QListViewItem * ) ), |
663 | SLOT( itemDoubleClicked( QListViewItem * ) ) ); | 663 | SLOT( itemDoubleClicked( QListViewItem * ) ) ); |
664 | connect( mTodoListView, SIGNAL( todoDropped( Todo *, int ) ), | 664 | connect( mTodoListView, SIGNAL( todoDropped( Todo *, int ) ), |
665 | SLOT( updateView() ) ); | 665 | SLOT( updateView() ) ); |
666 | connect( mTodoListView, SIGNAL( todoDropped( Todo *, int ) ), | 666 | connect( mTodoListView, SIGNAL( todoDropped( Todo *, int ) ), |
667 | SLOT( todoModified(Todo *, int) ) ); | 667 | SLOT( todoModified(Todo *, int) ) ); |
668 | connect( mTodoListView, SIGNAL( expanded( QListViewItem * ) ), | 668 | connect( mTodoListView, SIGNAL( expanded( QListViewItem * ) ), |
669 | SLOT( itemStateChanged( QListViewItem * ) ) ); | 669 | SLOT( itemStateChanged( QListViewItem * ) ) ); |
670 | connect( mTodoListView, SIGNAL( collapsed( QListViewItem * ) ), | 670 | connect( mTodoListView, SIGNAL( collapsed( QListViewItem * ) ), |
671 | SLOT( itemStateChanged( QListViewItem * ) ) ); | 671 | SLOT( itemStateChanged( QListViewItem * ) ) ); |
672 | connect( mTodoListView, SIGNAL( paintNeeded() ), | 672 | connect( mTodoListView, SIGNAL( paintNeeded() ), |
673 | SLOT( paintNeeded()) ); | 673 | SLOT( paintNeeded()) ); |
674 | 674 | ||
675 | #if 0 | 675 | #if 0 |
676 | connect(mTodoListView,SIGNAL(selectionChanged(QListViewItem *)), | 676 | connect(mTodoListView,SIGNAL(selectionChanged(QListViewItem *)), |
677 | SLOT(selectionChanged(QListViewItem *))); | 677 | SLOT(selectionChanged(QListViewItem *))); |
678 | connect(mTodoListView,SIGNAL(clicked(QListViewItem *)), | 678 | connect(mTodoListView,SIGNAL(clicked(QListViewItem *)), |
679 | SLOT(selectionChanged(QListViewItem *))); | 679 | SLOT(selectionChanged(QListViewItem *))); |
680 | connect(mTodoListView,SIGNAL(pressed(QListViewItem *)), | 680 | connect(mTodoListView,SIGNAL(pressed(QListViewItem *)), |
681 | SLOT(selectionChanged(QListViewItem *))); | 681 | SLOT(selectionChanged(QListViewItem *))); |
682 | #endif | 682 | #endif |
683 | 683 | ||
684 | connect( mTodoListView, SIGNAL(reparentTodoSignal( Todo *,Todo * ) ), SIGNAL(reparentTodoSignal( Todo *,Todo * ) )); | 684 | connect( mTodoListView, SIGNAL(reparentTodoSignal( Todo *,Todo * ) ), SIGNAL(reparentTodoSignal( Todo *,Todo * ) )); |
685 | connect( mTodoListView, SIGNAL(unparentTodoSignal(Todo *) ), SIGNAL(unparentTodoSignal(Todo *) )); | 685 | connect( mTodoListView, SIGNAL(unparentTodoSignal(Todo *) ), SIGNAL(unparentTodoSignal(Todo *) )); |
686 | connect( mTodoListView, SIGNAL( deleteTodo(Todo *) ), SIGNAL(deleteTodoSignal(Todo *) )); | 686 | connect( mTodoListView, SIGNAL( deleteTodo(Todo *) ), SIGNAL(deleteTodoSignal(Todo *) )); |
687 | 687 | ||
688 | connect( mTodoListView, SIGNAL(selectionChanged() ), | 688 | connect( mTodoListView, SIGNAL(selectionChanged() ), |
689 | SLOT( processSelectionChange() ) ); | 689 | SLOT( processSelectionChange() ) ); |
690 | connect( mQuickAdd, SIGNAL( returnPressed () ), | 690 | connect( mQuickAdd, SIGNAL( returnPressed () ), |
691 | SLOT( addQuickTodo() ) ); | 691 | SLOT( addQuickTodo() ) ); |
692 | 692 | ||
693 | } | 693 | } |
694 | 694 | ||
695 | KOTodoView::~KOTodoView() | 695 | KOTodoView::~KOTodoView() |
696 | { | 696 | { |
697 | 697 | ||
698 | #if QT_VERSION >= 0x030000 | 698 | #if QT_VERSION >= 0x030000 |
699 | 699 | ||
700 | #else | 700 | #else |
701 | delete mKOTodoViewWhatsThis; | 701 | delete mKOTodoViewWhatsThis; |
702 | #endif | 702 | #endif |
703 | 703 | ||
704 | delete mDocPrefs; | 704 | delete mDocPrefs; |
705 | } | 705 | } |
706 | QString KOTodoView::getWhatsThisText(QPoint p) | 706 | QString KOTodoView::getWhatsThisText(QPoint p) |
707 | { | 707 | { |
708 | KOTodoViewItem* item = ( KOTodoViewItem* ) mTodoListView->itemAt( p ); | 708 | KOTodoViewItem* item = ( KOTodoViewItem* ) mTodoListView->itemAt( p ); |
709 | if ( item ) | 709 | if ( item ) |
710 | return KIncidenceFormatter::instance()->getFormattedText( item->todo(), | 710 | return KIncidenceFormatter::instance()->getFormattedText( item->todo(), |
711 | KOPrefs::instance()->mWTshowDetails, | 711 | KOPrefs::instance()->mWTshowDetails, |
712 | KOPrefs::instance()->mWTshowCreated, | 712 | KOPrefs::instance()->mWTshowCreated, |
713 | KOPrefs::instance()->mWTshowChanged); | 713 | KOPrefs::instance()->mWTshowChanged); |
714 | return i18n("That is the todo view" ); | 714 | return i18n("That is the todo view" ); |
715 | 715 | ||
716 | } | 716 | } |
717 | 717 | ||
718 | void KOTodoView::jumpToDate () | 718 | void KOTodoView::jumpToDate () |
719 | { | 719 | { |
720 | // if (mActiveItem) { | 720 | // if (mActiveItem) { |
721 | // mActiveItem->todo()); | 721 | // mActiveItem->todo()); |
722 | // if ( mActiveItem->todo()->hasDueDate() ) | 722 | // if ( mActiveItem->todo()->hasDueDate() ) |
723 | // emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() ); | 723 | // emit mActiveItem->todo()jumpToTime( mTodo->dtDue().date() ); |
724 | } | 724 | } |
725 | void KOTodoView::paintNeeded() | 725 | void KOTodoView::paintNeeded() |
726 | { | 726 | { |
727 | if ( mPendingUpdateBeforeRepaint ) { | 727 | if ( mPendingUpdateBeforeRepaint ) { |
728 | updateView(); | 728 | updateView(); |
729 | mPendingUpdateBeforeRepaint = false; | 729 | mPendingUpdateBeforeRepaint = false; |
730 | } | 730 | } |
731 | } | 731 | } |
732 | void KOTodoView::paintEvent(QPaintEvent * pevent) | 732 | void KOTodoView::paintEvent(QPaintEvent * pevent) |
733 | { | 733 | { |
734 | if ( mPendingUpdateBeforeRepaint ) { | 734 | if ( mPendingUpdateBeforeRepaint ) { |
735 | updateView(); | 735 | updateView(); |
736 | mPendingUpdateBeforeRepaint = false; | 736 | mPendingUpdateBeforeRepaint = false; |
737 | } | 737 | } |
738 | KOrg::BaseView::paintEvent( pevent); | 738 | KOrg::BaseView::paintEvent( pevent); |
739 | } | 739 | } |
740 | 740 | ||
741 | void KOTodoView::updateView() | 741 | void KOTodoView::updateView() |
742 | { | 742 | { |
743 | pendingSubtodo = 0; | 743 | pendingSubtodo = 0; |
744 | if ( mBlockUpdate ) { | 744 | if ( mBlockUpdate ) { |
745 | return; | 745 | return; |
746 | } | 746 | } |
747 | if ( !isVisible() ) { | 747 | if ( !isVisible() ) { |
748 | mPendingUpdateBeforeRepaint = true; | 748 | mPendingUpdateBeforeRepaint = true; |
749 | return; | 749 | return; |
750 | } | 750 | } |
751 | storeCurrentItem(); | 751 | storeCurrentItem(); |
752 | //qDebug("KOTodoView::updateView() %x", this); | 752 | //qDebug("KOTodoView::updateView() %x", this); |
753 | if ( isFlatDisplay ) { | 753 | if ( isFlatDisplay ) { |
754 | displayAllFlat(); | 754 | displayAllFlat(); |
755 | resetCurrentItem(); | 755 | resetCurrentItem(); |
756 | return; | 756 | return; |
757 | } | 757 | } |
758 | //qDebug("update "); | 758 | //qDebug("update "); |
759 | // kdDebug() << "KOTodoView::updateView()" << endl; | 759 | // kdDebug() << "KOTodoView::updateView()" << endl; |
760 | QFont fo = KOPrefs::instance()->mTodoViewFont; | 760 | QFont fo = KOPrefs::instance()->mTodoViewFont; |
761 | 761 | ||
762 | 762 | ||
763 | mTodoListView->clear(); | 763 | mTodoListView->clear(); |
764 | if ( mName == "todolistsmall" ) { | 764 | if ( mName == "todolistsmall" ) { |
765 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { | 765 | if ( KOPrefs::instance()->mTodoViewUsesSmallFont ) { |
766 | int ps = fo.pointSize() -2; | 766 | int ps = fo.pointSize() -2; |
767 | if ( ps > 12 ) | 767 | if ( ps > 12 ) |
768 | ps -= 2; | 768 | ps -= 2; |
769 | fo.setPointSize( ps ); | 769 | fo.setPointSize( ps ); |
770 | } | 770 | } |
771 | } | 771 | } |
772 | 772 | ||
773 | mTodoListView->setFont( fo ); | 773 | mTodoListView->setFont( fo ); |
774 | // QFontMetrics fm ( KOPrefs::instance()->mTodoViewFont ); | 774 | // QFontMetrics fm ( KOPrefs::instance()->mTodoViewFont ); |
775 | //mTodoListView->header()->setMaximumHeight(fm.height()); | 775 | //mTodoListView->header()->setMaximumHeight(fm.height()); |
776 | QPtrList<Todo> todoList = calendar()->todos(); | 776 | QPtrList<Todo> todoList = calendar()->todos(); |
777 | 777 | ||
778 | /* | 778 | /* |
779 | kdDebug() << "KOTodoView::updateView(): Todo List:" << endl; | 779 | kdDebug() << "KOTodoView::updateView(): Todo List:" << endl; |
780 | Event *t; | 780 | Event *t; |
781 | for(t = todoList.first(); t; t = todoList.next()) { | 781 | for(t = todoList.first(); t; t = todoList.next()) { |
782 | kdDebug() << " " << t->getSummary() << endl; | 782 | kdDebug() << " " << t->getSummary() << endl; |
783 | 783 | ||
784 | if (t->getRelatedTo()) { | 784 | if (t->getRelatedTo()) { |
785 | kdDebug() << " (related to " << t->getRelatedTo()->getSummary() << ")" << endl; | 785 | kdDebug() << " (related to " << t->getRelatedTo()->getSummary() << ")" << endl; |
786 | } | 786 | } |
787 | 787 | ||
788 | QPtrList<Event> l = t->getRelations(); | 788 | QPtrList<Event> l = t->getRelations(); |
789 | Event *c; | 789 | Event *c; |
790 | for(c=l.first();c;c=l.next()) { | 790 | for(c=l.first();c;c=l.next()) { |
791 | kdDebug() << " - relation: " << c->getSummary() << endl; | 791 | kdDebug() << " - relation: " << c->getSummary() << endl; |
792 | } | 792 | } |
793 | } | 793 | } |
794 | */ | 794 | */ |
795 | 795 | ||
796 | // Put for each Event a KOTodoViewItem in the list view. Don't rely on a | 796 | // Put for each Event a KOTodoViewItem in the list view. Don't rely on a |
797 | // specific order of events. That means that we have to generate parent items | 797 | // specific order of events. That means that we have to generate parent items |
798 | // recursively for proper hierarchical display of Todos. | 798 | // recursively for proper hierarchical display of Todos. |
799 | mTodoMap.clear(); | 799 | mTodoMap.clear(); |
800 | Todo *todo; | 800 | Todo *todo; |
801 | todo = todoList.first();// todo; todo = todoList.next()) { | 801 | todo = todoList.first();// todo; todo = todoList.next()) { |
802 | while ( todo ) { | 802 | while ( todo ) { |
803 | bool next = true; | 803 | bool next = true; |
804 | // qDebug("todo %s ", todo->summary().latin1()); | 804 | // qDebug("todo %s ", todo->summary().latin1()); |
805 | Incidence *incidence = todo->relatedTo(); | 805 | Incidence *incidence = todo->relatedTo(); |
806 | while ( incidence ) { | 806 | while ( incidence ) { |
807 | if ( incidence->typeID() == todoID ) { | 807 | if ( incidence->typeID() == todoID ) { |
808 | //qDebug("related %s ",incidence->summary().latin1() ); | 808 | //qDebug("related %s ",incidence->summary().latin1() ); |
809 | if ( !(todoList.contains ( ((Todo* )incidence ) ) ) && incidence->calEnabled() ) { | 809 | if ( !(todoList.contains ( ((Todo* )incidence ) ) ) && incidence->calEnabled() ) { |
810 | //qDebug("related not found "); | 810 | //qDebug("related not found "); |
811 | todoList.remove( ); | 811 | todoList.remove( ); |
812 | todo = todoList.current(); | 812 | todo = todoList.current(); |
813 | next = false; | 813 | next = false; |
814 | incidence = 0; | 814 | incidence = 0; |
815 | 815 | ||
816 | } else { | 816 | } else { |
817 | //qDebug("related found "); | 817 | //qDebug("related found "); |
818 | incidence = incidence->relatedTo(); | 818 | incidence = incidence->relatedTo(); |
819 | } | 819 | } |
820 | } else | 820 | } else |
821 | incidence = 0; | 821 | incidence = 0; |
822 | } | 822 | } |
823 | if ( next ) | 823 | if ( next ) |
824 | todo = todoList.next(); | 824 | todo = todoList.next(); |
825 | } | 825 | } |
826 | 826 | ||
827 | for(todo = todoList.first(); todo; todo = todoList.next()) { | 827 | for(todo = todoList.first(); todo; todo = todoList.next()) { |
828 | if (!mTodoMap.contains(todo) && checkTodo( todo ) ) | 828 | if (!mTodoMap.contains(todo) && checkTodo( todo ) ) |
829 | { | 829 | { |
830 | insertTodoItem(todo); | 830 | insertTodoItem(todo); |
831 | } | 831 | } |
832 | } | 832 | } |
833 | // Restore opened/closed state | 833 | // Restore opened/closed state |
834 | mTodoListView->blockSignals( true ); | 834 | mTodoListView->blockSignals( true ); |
835 | if( mDocPrefs ) restoreItemState( mTodoListView->firstChild() ); | 835 | if( mDocPrefs ) restoreItemState( mTodoListView->firstChild() ); |
836 | mTodoListView->blockSignals( false ); | 836 | mTodoListView->blockSignals( false ); |
837 | resetCurrentItem(); | 837 | resetCurrentItem(); |
838 | processSelectionChange(); | 838 | processSelectionChange(); |
839 | } | 839 | } |
840 | 840 | ||
841 | void KOTodoView::storeCurrentItem() | 841 | void KOTodoView::storeCurrentItem() |
842 | { | 842 | { |
843 | mCurItem = 0; | 843 | mCurItem = 0; |
844 | mCurItemRootParent = 0; | 844 | mCurItemRootParent = 0; |
845 | mCurItemParent = 0; | 845 | mCurItemParent = 0; |
846 | mCurItemAbove = 0; | 846 | mCurItemAbove = 0; |
847 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); | 847 | mActiveItem = (KOTodoViewItem*)mTodoListView->currentItem(); |
848 | if (mActiveItem) { | 848 | if (mActiveItem) { |
849 | mCurItem = mActiveItem->todo(); | 849 | mCurItem = mActiveItem->todo(); |
850 | KOTodoViewItem* activeItemAbove = (KOTodoViewItem*)mActiveItem->itemAbove (); | 850 | KOTodoViewItem* activeItemAbove = (KOTodoViewItem*)mActiveItem->itemAbove (); |
851 | if ( activeItemAbove ) | 851 | if ( activeItemAbove ) |
852 | mCurItemAbove = activeItemAbove->todo(); | 852 | mCurItemAbove = activeItemAbove->todo(); |
853 | mCurItemRootParent = mCurItem; | 853 | mCurItemRootParent = mCurItem; |
854 | mCurItemParent = mCurItemRootParent->relatedTo(); | 854 | mCurItemParent = mCurItemRootParent->relatedTo(); |
855 | while ( mCurItemRootParent->relatedTo() != 0 ) | 855 | while ( mCurItemRootParent->relatedTo() != 0 ) |
856 | mCurItemRootParent = mCurItemRootParent->relatedTo(); | 856 | mCurItemRootParent = mCurItemRootParent->relatedTo(); |
857 | } | 857 | } |
858 | mActiveItem = 0; | 858 | mActiveItem = 0; |
859 | } | 859 | } |
860 | 860 | ||
861 | void KOTodoView::resetCurrentItem() | 861 | void KOTodoView::resetCurrentItem() |
862 | { | 862 | { |
863 | mTodoListView->setFocus(); | 863 | mTodoListView->setFocus(); |
864 | KOTodoViewItem* foundItem = 0; | 864 | KOTodoViewItem* foundItem = 0; |
865 | KOTodoViewItem* foundItemRoot = 0; | 865 | KOTodoViewItem* foundItemRoot = 0; |
866 | KOTodoViewItem* foundItemParent = 0; | 866 | KOTodoViewItem* foundItemParent = 0; |
867 | KOTodoViewItem* foundItemAbove = 0; | 867 | KOTodoViewItem* foundItemAbove = 0; |
868 | if ( mTodoListView->firstChild () ) { | 868 | if ( mTodoListView->firstChild () ) { |
869 | if ( mCurItem ) { | 869 | if ( mCurItem ) { |
870 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); | 870 | KOTodoViewItem* item = (KOTodoViewItem*)mTodoListView->firstChild (); |
871 | while ( item ) { | 871 | while ( item ) { |
872 | if ( item->todo() == mCurItem ) { | 872 | if ( item->todo() == mCurItem ) { |
873 | foundItem = item; | 873 | foundItem = item; |
874 | break; | 874 | break; |
875 | } else if ( item->todo() == mCurItemAbove ) { | 875 | } else if ( item->todo() == mCurItemAbove ) { |
876 | foundItemAbove = item; | 876 | foundItemAbove = item; |
877 | 877 | ||
878 | } | 878 | } |
879 | if ( item->todo() == mCurItemRootParent ) { | 879 | if ( item->todo() == mCurItemRootParent ) { |
880 | foundItemRoot = item; | 880 | foundItemRoot = item; |
881 | } | 881 | } |
882 | if ( item->todo() == mCurItemParent ) { | 882 | if ( item->todo() == mCurItemParent ) { |
883 | foundItemParent = item; | 883 | foundItemParent = item; |
884 | } | 884 | } |
885 | item = (KOTodoViewItem*)item->itemBelow(); | 885 | item = (KOTodoViewItem*)item->itemBelow(); |
886 | } | 886 | } |
887 | if ( ! foundItem ) { | 887 | if ( ! foundItem ) { |
888 | if ( foundItemParent ) { | 888 | if ( foundItemParent ) { |
889 | foundItem = foundItemParent; | 889 | foundItem = foundItemParent; |
890 | } else { | 890 | } else { |
891 | if ( foundItemRoot ) | 891 | if ( foundItemRoot ) |
892 | foundItem = foundItemRoot; | 892 | foundItem = foundItemRoot; |
893 | else | 893 | else |
894 | foundItem = foundItemAbove; | 894 | foundItem = foundItemAbove; |
895 | } | 895 | } |
896 | } | 896 | } |
897 | } | 897 | } |
898 | if ( foundItem ) { | 898 | if ( foundItem ) { |
899 | mTodoListView->setCurrentItem( foundItem ); | 899 | mTodoListView->setCurrentItem( foundItem ); |
900 | mTodoListView->ensureItemVisible( foundItem ); | 900 | mTodoListView->ensureItemVisible( foundItem ); |
901 | } else { | 901 | } else { |
902 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); | 902 | mTodoListView->setCurrentItem( mTodoListView->firstChild () ); |
903 | } | 903 | } |
904 | } | 904 | } |
905 | mTodoListView->setFocus(); | 905 | mTodoListView->setFocus(); |
906 | } | 906 | } |
907 | //Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; | 907 | //Incidence * mCurItem, *mCurItemRootParent,*mCurItemAbove; |
908 | bool KOTodoView::checkTodo( Todo * todo ) | 908 | bool KOTodoView::checkTodo( Todo * todo ) |
909 | { | 909 | { |
910 | 910 | ||
911 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) | 911 | if ( !KOPrefs::instance()->mShowCompletedTodo && todo->isCompleted() ) |
912 | return false; | 912 | return false; |
913 | if ( !todo->isCompleted() ) { | 913 | if ( !todo->isCompleted() ) { |
914 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) | 914 | if ( todo->hasDueDate() && todo->dtDue().date() <= QDate::currentDate() ) |
915 | return true; | 915 | return true; |
916 | } | 916 | } |
917 | if ( KOPrefs::instance()->mHideNonStartedTodos && mNavigator ) { | 917 | if ( KOPrefs::instance()->mHideNonStartedTodos && mNavigator ) { |
918 | if ( todo->hasStartDate() ) | 918 | if ( todo->hasStartDate() ) |
919 | if ( mNavigator->selectedDates().last() < todo->dtStart().date() ) | 919 | if ( mNavigator->selectedDates().last() < todo->dtStart().date() ) |
920 | return false; | 920 | return false; |
921 | if ( todo->hasDueDate() ) | 921 | if ( todo->hasDueDate() ) |
922 | if ( mNavigator->selectedDates().first() > todo->dtDue().date() ) | 922 | if ( mNavigator->selectedDates().first() > todo->dtDue().date() ) |
923 | return false; | 923 | return false; |
924 | } | 924 | } |
925 | return true; | 925 | return true; |
926 | } | 926 | } |
927 | 927 | ||
928 | void KOTodoView::restoreItemState( QListViewItem *item ) | 928 | void KOTodoView::restoreItemState( QListViewItem *item ) |
929 | { | 929 | { |
930 | pendingSubtodo = 0; | 930 | pendingSubtodo = 0; |
931 | while( item ) { | 931 | while( item ) { |
932 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; | 932 | KOTodoViewItem *todoItem = (KOTodoViewItem *)item; |
933 | todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) ); | 933 | todoItem->setOpen( mDocPrefs->readBoolEntry( todoItem->todo()->uid() ) ); |
934 | if( item->childCount() > 0 ) restoreItemState( item->firstChild() ); | 934 | if( item->childCount() > 0 ) restoreItemState( item->firstChild() ); |
935 | item = item->nextSibling(); | 935 | item = item->nextSibling(); |
936 | } | 936 | } |
937 | } | 937 | } |
938 | 938 | ||
939 | 939 | ||
940 | QMap<Todo *,KOTodoViewItem *>::ConstIterator | 940 | QMap<Todo *,KOTodoViewItem *>::ConstIterator |
941 | KOTodoView::insertTodoItem(Todo *todo) | 941 | KOTodoView::insertTodoItem(Todo *todo) |
942 | { | 942 | { |
943 | 943 | ||
944 | // kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl; | 944 | // kdDebug() << "KOTodoView::insertTodoItem(): " << todo->getSummary() << endl; |
945 | // TODO: Check, if dynmaic cast is necessary | 945 | // TODO: Check, if dynmaic cast is necessary |
946 | 946 | ||
947 | pendingSubtodo = 0; | 947 | pendingSubtodo = 0; |
948 | Incidence *incidence = todo->relatedTo(); | 948 | Incidence *incidence = todo->relatedTo(); |
949 | while ( incidence && !incidence->calEnabled() ) | 949 | while ( incidence && !incidence->calEnabled() ) |
950 | incidence = incidence->relatedTo(); | 950 | incidence = incidence->relatedTo(); |
951 | if (incidence && incidence->typeID() == todoID ) { | 951 | if (incidence && incidence->typeID() == todoID ) { |
952 | Todo *relatedTodo = static_cast<Todo *>(incidence); | 952 | Todo *relatedTodo = static_cast<Todo *>(incidence); |
953 | 953 | ||
954 | // kdDebug() << " has Related" << endl; | 954 | // kdDebug() << " has Related" << endl; |
955 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; | 955 | QMap<Todo *,KOTodoViewItem *>::ConstIterator itemIterator; |
956 | itemIterator = mTodoMap.find(relatedTodo); | 956 | itemIterator = mTodoMap.find(relatedTodo); |
957 | if (itemIterator == mTodoMap.end()) { | 957 | if (itemIterator == mTodoMap.end()) { |
958 | // kdDebug() << " related not yet in list" << endl; | 958 | // kdDebug() << " related not yet in list" << endl; |
959 | itemIterator = insertTodoItem (relatedTodo); | 959 | itemIterator = insertTodoItem (relatedTodo); |
960 | } | 960 | } |
961 | // isn't this pretty stupid? We give one Todo to the KOTodoViewItem | 961 | // isn't this pretty stupid? We give one Todo to the KOTodoViewItem |
962 | // and one into the map. Sure finding is more easy but why? -zecke | 962 | // and one into the map. Sure finding is more easy but why? -zecke |
963 | KOTodoViewItem *todoItem = new KOTodoViewItem(*itemIterator,todo,this); | 963 | KOTodoViewItem *todoItem = new KOTodoViewItem(*itemIterator,todo,this); |
964 | return mTodoMap.insert(todo,todoItem); | 964 | return mTodoMap.insert(todo,todoItem); |
965 | } else { | 965 | } else { |
966 | // kdDebug() << " no Related" << endl; | 966 | // kdDebug() << " no Related" << endl; |
967 | // see above -zecke | 967 | // see above -zecke |
968 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); | 968 | KOTodoViewItem *todoItem = new KOTodoViewItem(mTodoListView,todo,this); |
969 | return mTodoMap.insert(todo,todoItem); | 969 | return mTodoMap.insert(todo,todoItem); |
970 | } | 970 | } |
971 | } | 971 | } |
972 | 972 | ||
973 | 973 | ||
974 | void KOTodoView::updateConfig() | 974 | void KOTodoView::updateConfig() |
975 | { | 975 | { |
976 | updateView(); | 976 | updateView(); |
977 | mTodoListView->repaintContents(); | 977 | mTodoListView->repaintContents(); |
978 | } | 978 | } |
979 | 979 | ||
980 | QPtrList<Incidence> KOTodoView::selectedIncidences() | 980 | QPtrList<Incidence> KOTodoView::selectedIncidences() |
981 | { | 981 | { |
982 | QPtrList<Incidence> selected; | 982 | QPtrList<Incidence> selected; |
983 | 983 | ||
984 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 984 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
985 | // if (!item) item = mActiveItem; | 985 | // if (!item) item = mActiveItem; |
986 | if (item) selected.append(item->todo()); | 986 | if (item) selected.append(item->todo()); |
987 | 987 | ||
988 | return selected; | 988 | return selected; |
989 | } | 989 | } |
990 | 990 | ||
991 | QPtrList<Todo> KOTodoView::selectedTodos() | 991 | QPtrList<Todo> KOTodoView::selectedTodos() |
992 | { | 992 | { |
993 | QPtrList<Todo> selected; | 993 | QPtrList<Todo> selected; |
994 | 994 | ||
995 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); | 995 | KOTodoViewItem *item = (KOTodoViewItem *)(mTodoListView->selectedItem()); |
996 | // if (!item) item = mActiveItem; | 996 | // if (!item) item = mActiveItem; |
997 | if (item) selected.append(item->todo()); | 997 | if (item) selected.append(item->todo()); |
998 | 998 | ||
999 | return selected; | 999 | return selected; |
1000 | } | 1000 | } |
1001 | 1001 | ||
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 23537a6..a5d8824 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -273,2301 +273,2328 @@ MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | |||
273 | else | 273 | else |
274 | tbd = Left; | 274 | tbd = Left; |
275 | } | 275 | } |
276 | navigatorToolBar = new QPEToolBar( this ); | 276 | navigatorToolBar = new QPEToolBar( this ); |
277 | addToolBar (navigatorToolBar , tbd ); | 277 | addToolBar (navigatorToolBar , tbd ); |
278 | } | 278 | } |
279 | 279 | ||
280 | 280 | ||
281 | 281 | ||
282 | mCalendarModifiedFlag = false; | 282 | mCalendarModifiedFlag = false; |
283 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); | 283 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); |
284 | splash->setAlignment ( AlignCenter ); | 284 | splash->setAlignment ( AlignCenter ); |
285 | setCentralWidget( splash ); | 285 | setCentralWidget( splash ); |
286 | #ifndef DESKTOP_VERSION | 286 | #ifndef DESKTOP_VERSION |
287 | showMaximized(); | 287 | showMaximized(); |
288 | #endif | 288 | #endif |
289 | 289 | ||
290 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); | 290 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); |
291 | setDefaultPreferences(); | 291 | setDefaultPreferences(); |
292 | mCalendar = new CalendarLocal(); | 292 | mCalendar = new CalendarLocal(); |
293 | mView = new CalendarView( mCalendar, this,"mCalendar " ); | 293 | mView = new CalendarView( mCalendar, this,"mCalendar " ); |
294 | mView->hide(); | 294 | mView->hide(); |
295 | //mView->resize(splash->size() ); | 295 | //mView->resize(splash->size() ); |
296 | initActions(); | 296 | initActions(); |
297 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); | 297 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); |
298 | mSyncManager->setBlockSave(false); | 298 | mSyncManager->setBlockSave(false); |
299 | mView->setSyncManager(mSyncManager); | 299 | mView->setSyncManager(mSyncManager); |
300 | #ifndef DESKTOP_VERSION | 300 | #ifndef DESKTOP_VERSION |
301 | iconToolBar->show(); | 301 | iconToolBar->show(); |
302 | qApp->processEvents(); | 302 | qApp->processEvents(); |
303 | #endif | 303 | #endif |
304 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); | 304 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); |
305 | int vh = height() ; | 305 | int vh = height() ; |
306 | int vw = width(); | 306 | int vw = width(); |
307 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); | 307 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); |
308 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 308 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
309 | vh -= iconToolBar->height(); | 309 | vh -= iconToolBar->height(); |
310 | } else { | 310 | } else { |
311 | vw -= iconToolBar->height(); | 311 | vw -= iconToolBar->height(); |
312 | } | 312 | } |
313 | //mView->setMaximumSize( splash->size() ); | 313 | //mView->setMaximumSize( splash->size() ); |
314 | //mView->resize( splash->size() ); | 314 | //mView->resize( splash->size() ); |
315 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 315 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
316 | mView->readSettings(); | 316 | mView->readSettings(); |
317 | bool newFile = false; | 317 | bool newFile = false; |
318 | if( !QFile::exists( defaultFileName() ) ) { | 318 | if( !QFile::exists( defaultFileName() ) ) { |
319 | QFileInfo finfo ( defaultFileName() ); | 319 | QFileInfo finfo ( defaultFileName() ); |
320 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); | 320 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); |
321 | 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"; | 321 | 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"; |
322 | finfo.setFile( oldFile ); | 322 | finfo.setFile( oldFile ); |
323 | if (finfo.exists() ) { | 323 | if (finfo.exists() ) { |
324 | KMessageBox::information( this, message); | 324 | KMessageBox::information( this, message); |
325 | mView->openCalendar( oldFile ); | 325 | mView->openCalendar( oldFile ); |
326 | qApp->processEvents(); | 326 | qApp->processEvents(); |
327 | } else { | 327 | } else { |
328 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); | 328 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); |
329 | finfo.setFile( oldFile ); | 329 | finfo.setFile( oldFile ); |
330 | if (finfo.exists() ) { | 330 | if (finfo.exists() ) { |
331 | KMessageBox::information( this, message); | 331 | KMessageBox::information( this, message); |
332 | mView->openCalendar( oldFile ); | 332 | mView->openCalendar( oldFile ); |
333 | qApp->processEvents(); | 333 | qApp->processEvents(); |
334 | } | 334 | } |
335 | } | 335 | } |
336 | mView->saveCalendar( defaultFileName() ); | 336 | mView->saveCalendar( defaultFileName() ); |
337 | newFile = true; | 337 | newFile = true; |
338 | } | 338 | } |
339 | 339 | ||
340 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 340 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
341 | mView->loadCalendars(); | 341 | mView->loadCalendars(); |
342 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 342 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
343 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); | 343 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); |
344 | 344 | ||
345 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { | 345 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { |
346 | KOPrefs::instance()->setAllDefaults(); | 346 | KOPrefs::instance()->setAllDefaults(); |
347 | int count = mView->addCategories(); | 347 | int count = mView->addCategories(); |
348 | } | 348 | } |
349 | processIncidenceSelection( 0 ); | 349 | processIncidenceSelection( 0 ); |
350 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), | 350 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), |
351 | SLOT( processIncidenceSelection( Incidence * ) ) ); | 351 | SLOT( processIncidenceSelection( Incidence * ) ) ); |
352 | connect( mView, SIGNAL( modifiedChanged( bool ) ), | 352 | connect( mView, SIGNAL( modifiedChanged( bool ) ), |
353 | SLOT( slotModifiedChanged( bool ) ) ); | 353 | SLOT( slotModifiedChanged( bool ) ) ); |
354 | 354 | ||
355 | 355 | ||
356 | connect( mView, SIGNAL( tempDisableBR(bool) ), | 356 | connect( mView, SIGNAL( tempDisableBR(bool) ), |
357 | SLOT( disableBR(bool) ) ); | 357 | SLOT( disableBR(bool) ) ); |
358 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); | 358 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); |
359 | mView->setModified( false ); | 359 | mView->setModified( false ); |
360 | mBlockAtStartup = false; | 360 | mBlockAtStartup = false; |
361 | mView->setModified( false ); | 361 | mView->setModified( false ); |
362 | setCentralWidget( mView ); | 362 | setCentralWidget( mView ); |
363 | globalFlagBlockStartup = 0; | 363 | globalFlagBlockStartup = 0; |
364 | mView->show(); | 364 | mView->show(); |
365 | delete splash; | 365 | delete splash; |
366 | if ( newFile ) | 366 | if ( newFile ) |
367 | mView->updateConfig(); | 367 | mView->updateConfig(); |
368 | // qApp->processEvents(); | 368 | // qApp->processEvents(); |
369 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 369 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
370 | //fillSyncMenu(); | 370 | //fillSyncMenu(); |
371 | 371 | ||
372 | 372 | ||
373 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); | 373 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); |
374 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); | 374 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); |
375 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); | 375 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); |
376 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); | 376 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); |
377 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); | 377 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); |
378 | mSyncManager->setDefaultFileName( sentSyncFile()); | 378 | mSyncManager->setDefaultFileName( sentSyncFile()); |
379 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); | 379 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); |
380 | mSyncManager->fillSyncMenu(); | 380 | mSyncManager->fillSyncMenu(); |
381 | 381 | ||
382 | 382 | ||
383 | 383 | ||
384 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); | 384 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); |
385 | if ( showWarning ) { | 385 | if ( showWarning ) { |
386 | KMessageBox::information( this, | 386 | KMessageBox::information( this, |
387 | "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"); | 387 | "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"); |
388 | qApp->processEvents(); | 388 | qApp->processEvents(); |
389 | mView->dialogManager()->showSyncOptions(); | 389 | mView->dialogManager()->showSyncOptions(); |
390 | } | 390 | } |
391 | 391 | ||
392 | //US listen for result adressed from Ka/Pi | 392 | //US listen for result adressed from Ka/Pi |
393 | #ifndef DESKTOP_VERSION | 393 | #ifndef DESKTOP_VERSION |
394 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 394 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
395 | #endif | 395 | #endif |
396 | #ifndef DESKTOP_VERSION | 396 | #ifndef DESKTOP_VERSION |
397 | infrared = 0; | 397 | infrared = 0; |
398 | #endif | 398 | #endif |
399 | updateFilterToolbar(); | 399 | updateFilterToolbar(); |
400 | updateWeek( mView->startDate() ); | 400 | updateWeek( mView->startDate() ); |
401 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 401 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
402 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | 402 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); |
403 | mBRdisabled = false; | 403 | mBRdisabled = false; |
404 | //toggleBeamReceive(); | 404 | //toggleBeamReceive(); |
405 | int tiint= 3000; | 405 | int tiint= 3000; |
406 | #ifndef DESKTOP_VERSION | 406 | #ifndef DESKTOP_VERSION |
407 | tiint = 5000; | 407 | tiint = 5000; |
408 | #endif | 408 | #endif |
409 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); | 409 | QTimer::singleShot( tiint, mView, SLOT ( checkAlarms() )); |
410 | } | 410 | } |
411 | MainWindow::~MainWindow() | 411 | MainWindow::~MainWindow() |
412 | { | 412 | { |
413 | //qDebug("MainWindow::~MainWindow() "); | 413 | //qDebug("MainWindow::~MainWindow() "); |
414 | //save toolbar location | 414 | //save toolbar location |
415 | delete mCalendar; | 415 | delete mCalendar; |
416 | delete mSyncManager; | 416 | delete mSyncManager; |
417 | #ifndef DESKTOP_VERSION | 417 | #ifndef DESKTOP_VERSION |
418 | if ( infrared ) | 418 | if ( infrared ) |
419 | delete infrared; | 419 | delete infrared; |
420 | #endif | 420 | #endif |
421 | 421 | ||
422 | 422 | ||
423 | } | 423 | } |
424 | 424 | ||
425 | void MainWindow::disableBR(bool b) | 425 | void MainWindow::disableBR(bool b) |
426 | { | 426 | { |
427 | #ifndef DESKTOP_VERSION | 427 | #ifndef DESKTOP_VERSION |
428 | if ( b ) { | 428 | if ( b ) { |
429 | if ( infrared ) { | 429 | if ( infrared ) { |
430 | toggleBeamReceive(); | 430 | toggleBeamReceive(); |
431 | mBRdisabled = true; | 431 | mBRdisabled = true; |
432 | } | 432 | } |
433 | mBRdisabled = true; | 433 | mBRdisabled = true; |
434 | } else { | 434 | } else { |
435 | if ( mBRdisabled ) { | 435 | if ( mBRdisabled ) { |
436 | mBRdisabled = false; | 436 | mBRdisabled = false; |
437 | //makes no sense,because other cal ap is probably running | 437 | //makes no sense,because other cal ap is probably running |
438 | // toggleBeamReceive(); | 438 | // toggleBeamReceive(); |
439 | } | 439 | } |
440 | } | 440 | } |
441 | #endif | 441 | #endif |
442 | 442 | ||
443 | } | 443 | } |
444 | bool MainWindow::beamReceiveEnabled() | 444 | bool MainWindow::beamReceiveEnabled() |
445 | { | 445 | { |
446 | #ifndef DESKTOP_VERSION | 446 | #ifndef DESKTOP_VERSION |
447 | return ( infrared != 0 ); | 447 | return ( infrared != 0 ); |
448 | #endif | 448 | #endif |
449 | return false; | 449 | return false; |
450 | } | 450 | } |
451 | 451 | ||
452 | void MainWindow::toggleBeamReceive() | 452 | void MainWindow::toggleBeamReceive() |
453 | { | 453 | { |
454 | if ( mBRdisabled ) | 454 | if ( mBRdisabled ) |
455 | return; | 455 | return; |
456 | #ifndef DESKTOP_VERSION | 456 | #ifndef DESKTOP_VERSION |
457 | if ( infrared ) { | 457 | if ( infrared ) { |
458 | qDebug("KO: Disable BeamReceive "); | 458 | qDebug("KO: Disable BeamReceive "); |
459 | delete infrared; | 459 | delete infrared; |
460 | infrared = 0; | 460 | infrared = 0; |
461 | brAction->setOn(false); | 461 | brAction->setOn(false); |
462 | return; | 462 | return; |
463 | } | 463 | } |
464 | qDebug("KO: Enable BeamReceive "); | 464 | qDebug("KO: Enable BeamReceive "); |
465 | brAction->setOn(true); | 465 | brAction->setOn(true); |
466 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; | 466 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; |
467 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); | 467 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); |
468 | #endif | 468 | #endif |
469 | } | 469 | } |
470 | void MainWindow::showMaximized () | 470 | void MainWindow::showMaximized () |
471 | { | 471 | { |
472 | #ifndef DESKTOP_VERSION | 472 | #ifndef DESKTOP_VERSION |
473 | if ( ! globalFlagBlockStartup ) | 473 | if ( ! globalFlagBlockStartup ) |
474 | if ( mClosed ) | 474 | if ( mClosed ) |
475 | mView->goToday(); | 475 | mView->goToday(); |
476 | #endif | 476 | #endif |
477 | QWidget::showMaximized () ; | 477 | QWidget::showMaximized () ; |
478 | mClosed = false; | 478 | mClosed = false; |
479 | } | 479 | } |
480 | void MainWindow::closeEvent( QCloseEvent* ce ) | 480 | void MainWindow::closeEvent( QCloseEvent* ce ) |
481 | { | 481 | { |
482 | 482 | ||
483 | 483 | ||
484 | 484 | ||
485 | if ( ! KOPrefs::instance()->mAskForQuit ) { | 485 | if ( ! KOPrefs::instance()->mAskForQuit ) { |
486 | saveOnClose(); | 486 | saveOnClose(); |
487 | mClosed = true; | 487 | mClosed = true; |
488 | ce->accept(); | 488 | ce->accept(); |
489 | return; | 489 | return; |
490 | 490 | ||
491 | } | 491 | } |
492 | 492 | ||
493 | switch( QMessageBox::information( this, "KO/Pi", | 493 | switch( QMessageBox::information( this, "KO/Pi", |
494 | i18n("Do you really want\nto close KO/Pi?"), | 494 | i18n("Do you really want\nto close KO/Pi?"), |
495 | i18n("Close"), i18n("No"), | 495 | i18n("Close"), i18n("No"), |
496 | 0, 0 ) ) { | 496 | 0, 0 ) ) { |
497 | case 0: | 497 | case 0: |
498 | saveOnClose(); | 498 | saveOnClose(); |
499 | mClosed = true; | 499 | mClosed = true; |
500 | ce->accept(); | 500 | ce->accept(); |
501 | break; | 501 | break; |
502 | case 1: | 502 | case 1: |
503 | ce->ignore(); | 503 | ce->ignore(); |
504 | break; | 504 | break; |
505 | case 2: | 505 | case 2: |
506 | 506 | ||
507 | default: | 507 | default: |
508 | break; | 508 | break; |
509 | } | 509 | } |
510 | 510 | ||
511 | 511 | ||
512 | } | 512 | } |
513 | 513 | ||
514 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | 514 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) |
515 | { | 515 | { |
516 | QDataStream stream( data, IO_ReadOnly ); | 516 | QDataStream stream( data, IO_ReadOnly ); |
517 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); | 517 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); |
518 | //QString datamess; | 518 | //QString datamess; |
519 | //qDebug("message "); | 519 | //qDebug("message "); |
520 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); | 520 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); |
521 | 521 | ||
522 | if ( cmsg == "setDocument(QString)" ) { | 522 | if ( cmsg == "setDocument(QString)" ) { |
523 | QDataStream stream( data, IO_ReadOnly ); | 523 | QDataStream stream( data, IO_ReadOnly ); |
524 | QString fileName; | 524 | QString fileName; |
525 | stream >> fileName; | 525 | stream >> fileName; |
526 | //qDebug("filename %s ", fileName.latin1()); | 526 | //qDebug("filename %s ", fileName.latin1()); |
527 | showMaximized(); | 527 | showMaximized(); |
528 | raise(); | 528 | raise(); |
529 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; | 529 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; |
530 | mSyncManager->slotSyncMenu( 1002 ); | 530 | mSyncManager->slotSyncMenu( 1002 ); |
531 | return; | 531 | return; |
532 | } | 532 | } |
533 | 533 | ||
534 | if ( cmsg == "-writeFile" ) { | 534 | if ( cmsg == "-writeFile" ) { |
535 | // I made from the "-writeFile" an "-writeAlarm" | 535 | // I made from the "-writeFile" an "-writeAlarm" |
536 | mView->viewManager()->showWhatsNextView(); | 536 | mView->viewManager()->showWhatsNextView(); |
537 | mCalendar->checkAlarmForIncidence( 0, true); | 537 | mCalendar->checkAlarmForIncidence( 0, true); |
538 | showMaximized(); | 538 | showMaximized(); |
539 | raise(); | 539 | raise(); |
540 | return; | 540 | return; |
541 | 541 | ||
542 | } | 542 | } |
543 | if ( cmsg == "-writeFileSilent" ) { | 543 | if ( cmsg == "-writeFileSilent" ) { |
544 | // I made from the "-writeFile" an "-writeAlarm" | 544 | // I made from the "-writeFile" an "-writeAlarm" |
545 | // mView->viewManager()->showWhatsNextView(); | 545 | // mView->viewManager()->showWhatsNextView(); |
546 | mCalendar->checkAlarmForIncidence( 0, true); | 546 | mCalendar->checkAlarmForIncidence( 0, true); |
547 | //showMaximized(); | 547 | //showMaximized(); |
548 | //raise(); | 548 | //raise(); |
549 | hide(); | 549 | hide(); |
550 | return; | 550 | return; |
551 | } | 551 | } |
552 | if ( cmsg == "-newCountdown" ) { | 552 | if ( cmsg == "-newCountdown" ) { |
553 | qDebug("newCountdown "); | 553 | qDebug("newCountdown "); |
554 | 554 | ||
555 | } | 555 | } |
556 | QString msg ; | 556 | QString msg ; |
557 | QString allmsg = cmsg; | 557 | QString allmsg = cmsg; |
558 | while ( allmsg.length() > 0 ) { | 558 | while ( allmsg.length() > 0 ) { |
559 | int nextC = allmsg.find( "-", 1 ); | 559 | int nextC = allmsg.find( "-", 1 ); |
560 | if ( nextC == -1 ) { | 560 | if ( nextC == -1 ) { |
561 | msg = allmsg; | 561 | msg = allmsg; |
562 | allmsg = ""; | 562 | allmsg = ""; |
563 | } else{ | 563 | } else{ |
564 | msg = allmsg.left( nextC ); | 564 | msg = allmsg.left( nextC ); |
565 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); | 565 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); |
566 | } | 566 | } |
567 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); | 567 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); |
568 | if ( msg == "-newEvent" ) { | 568 | if ( msg == "-newEvent" ) { |
569 | QTimer::singleShot( 0, mView, SLOT ( newEvent())); | 569 | QTimer::singleShot( 0, mView, SLOT ( newEvent())); |
570 | } | 570 | } |
571 | if ( msg == "-newTodo" ) { | 571 | if ( msg == "-newTodo" ) { |
572 | QTimer::singleShot( 0, mView, SLOT ( newTodo())); | 572 | QTimer::singleShot( 0, mView, SLOT ( newTodo())); |
573 | } | 573 | } |
574 | if ( msg == "-showWN" ) { | 574 | if ( msg == "-showWN" ) { |
575 | mView->viewManager()->showWhatsNextView(); | 575 | mView->viewManager()->showWhatsNextView(); |
576 | } | 576 | } |
577 | if ( msg == "-showTodo" ) { | 577 | if ( msg == "-showTodo" ) { |
578 | mView->viewManager()->showTodoView(); | 578 | mView->viewManager()->showTodoView(); |
579 | } | 579 | } |
580 | if ( msg == "-showList" ) { | 580 | if ( msg == "-showList" ) { |
581 | mView->viewManager()->showListView(); | 581 | mView->viewManager()->showListView(); |
582 | } | 582 | } |
583 | else if ( msg == "-showDay" ) { | 583 | else if ( msg == "-showDay" ) { |
584 | mView->viewManager()->showDayView(); | 584 | mView->viewManager()->showDayView(); |
585 | } | 585 | } |
586 | else if ( msg == "-showWWeek" ) { | 586 | else if ( msg == "-showWWeek" ) { |
587 | mView->viewManager()->showWorkWeekView(); | 587 | mView->viewManager()->showWorkWeekView(); |
588 | } | 588 | } |
589 | else if ( msg == "-ringSync" ) { | 589 | else if ( msg == "-ringSync" ) { |
590 | QTimer::singleShot( 0, this, SLOT (startMultiSync())); | 590 | QTimer::singleShot( 0, this, SLOT (startMultiSync())); |
591 | } | 591 | } |
592 | else if ( msg == "-showWeek" ) { | 592 | else if ( msg == "-showWeek" ) { |
593 | mView->viewManager()->showWeekView(); | 593 | mView->viewManager()->showWeekView(); |
594 | } | 594 | } |
595 | else if ( msg == "-showTodo" ) { | 595 | else if ( msg == "-showTodo" ) { |
596 | mView->viewManager()->showTodoView(); | 596 | mView->viewManager()->showTodoView(); |
597 | } | 597 | } |
598 | else if ( msg == "-showJournal" ) { | 598 | else if ( msg == "-showJournal" ) { |
599 | mView->dateNavigator()->selectDates( 1 ); | 599 | mView->dateNavigator()->selectDates( 1 ); |
600 | mView->dateNavigator()->selectToday(); | 600 | mView->dateNavigator()->selectToday(); |
601 | mView->viewManager()->showJournalView(); | 601 | mView->viewManager()->showJournalView(); |
602 | } | 602 | } |
603 | else if ( msg == "-showKO" ) { | 603 | else if ( msg == "-showKO" ) { |
604 | mView->viewManager()->showNextXView(); | 604 | mView->viewManager()->showNextXView(); |
605 | } | 605 | } |
606 | else if ( msg == "-showWNext" ) { | 606 | else if ( msg == "-showWNext" ) { |
607 | mView->viewManager()->showWhatsNextView(); | 607 | mView->viewManager()->showWhatsNextView(); |
608 | } | 608 | } |
609 | else if ( msg == "nextView()" ) { | 609 | else if ( msg == "nextView()" ) { |
610 | mView->viewManager()->showNextView(); | 610 | mView->viewManager()->showNextView(); |
611 | } | 611 | } |
612 | else if ( msg == "-showNextXView" ) { | 612 | else if ( msg == "-showNextXView" ) { |
613 | mView->viewManager()->showNextXView(); | 613 | mView->viewManager()->showNextXView(); |
614 | } | 614 | } |
615 | 615 | ||
616 | 616 | ||
617 | } | 617 | } |
618 | 618 | ||
619 | showMaximized(); | 619 | showMaximized(); |
620 | raise(); | 620 | raise(); |
621 | } | 621 | } |
622 | void MainWindow::startMultiSync() | 622 | void MainWindow::startMultiSync() |
623 | { | 623 | { |
624 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); | 624 | QString question = i18n("Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!"); |
625 | if ( QMessageBox::information( this, i18n("KDE-Pim Sync"), | 625 | if ( QMessageBox::information( this, i18n("KDE-Pim Sync"), |
626 | question, | 626 | question, |
627 | i18n("Yes"), i18n("No"), | 627 | i18n("Yes"), i18n("No"), |
628 | 0, 0 ) != 0 ) { | 628 | 0, 0 ) != 0 ) { |
629 | setCaption(i18n("Aborted! Nothing synced!")); | 629 | setCaption(i18n("Aborted! Nothing synced!")); |
630 | return; | 630 | return; |
631 | } | 631 | } |
632 | mSyncManager->multiSync( false ); | 632 | mSyncManager->multiSync( false ); |
633 | #ifndef DESKTOP_VERSION | 633 | #ifndef DESKTOP_VERSION |
634 | QCopEnvelope e("QPE/Application/kapi", "doRingSync"); | 634 | QCopEnvelope e("QPE/Application/kapi", "doRingSync"); |
635 | #endif | 635 | #endif |
636 | } | 636 | } |
637 | QPixmap MainWindow::loadPixmap( QString name ) | 637 | QPixmap MainWindow::loadPixmap( QString name ) |
638 | { | 638 | { |
639 | return SmallIcon( name ); | 639 | return SmallIcon( name ); |
640 | 640 | ||
641 | } | 641 | } |
642 | void MainWindow::setUsesBigPixmaps ( bool b ) | 642 | void MainWindow::setUsesBigPixmaps ( bool b ) |
643 | { | 643 | { |
644 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); | 644 | qDebug("KO: MainWindow::setUsesBigPixmaps %d called", b); |
645 | if ( b ) | 645 | if ( b ) |
646 | qDebug("KO: BigPixmaps are not supported "); | 646 | qDebug("KO: BigPixmaps are not supported "); |
647 | } | 647 | } |
648 | void MainWindow::initActions() | 648 | void MainWindow::initActions() |
649 | { | 649 | { |
650 | //KOPrefs::instance()->mShowFullMenu | 650 | //KOPrefs::instance()->mShowFullMenu |
651 | iconToolBar->clear(); | 651 | iconToolBar->clear(); |
652 | KOPrefs *p = KOPrefs::instance(); | 652 | KOPrefs *p = KOPrefs::instance(); |
653 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 653 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
654 | 654 | ||
655 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 655 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
656 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 656 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
657 | #ifdef DESKTOP_VERSION | ||
658 | mCurrentItemMenu = actionMenu; | ||
659 | #else | ||
660 | mCurrentItemMenu = new QPopupMenu ( this ); | ||
661 | #endif | ||
657 | QPopupMenu *importMenu = new QPopupMenu( this ); | 662 | QPopupMenu *importMenu = new QPopupMenu( this ); |
658 | QPopupMenu *importMenu_X = new QPopupMenu( this ); | 663 | QPopupMenu *importMenu_X = new QPopupMenu( this ); |
659 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); | 664 | QPopupMenu *exportMenu_X = new QPopupMenu( this ); |
660 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); | 665 | QPopupMenu *beamMenu_X = new QPopupMenu( this ); |
661 | selectFilterMenu = new QPopupMenu( this ); | 666 | selectFilterMenu = new QPopupMenu( this ); |
662 | selectFilterMenu->setCheckable( true ); | 667 | selectFilterMenu->setCheckable( true ); |
663 | syncMenu = new QPopupMenu( this ); | 668 | syncMenu = new QPopupMenu( this ); |
664 | configureAgendaMenu = new QPopupMenu( this ); | 669 | configureAgendaMenu = new QPopupMenu( this ); |
665 | configureToolBarMenu = new QPopupMenu( this ); | 670 | configureToolBarMenu = new QPopupMenu( this ); |
666 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 671 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
667 | QIconSet icon; | 672 | QIconSet icon; |
668 | int pixWid = 22, pixHei = 22; | 673 | int pixWid = 22, pixHei = 22; |
669 | QString pathString = ""; | 674 | QString pathString = ""; |
670 | if ( !p->mToolBarMiniIcons ) { | 675 | if ( !p->mToolBarMiniIcons ) { |
671 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { | 676 | if ( QApplication::desktop()->width() < 480 /*|| QApplication::desktop()->height() < 320*/) { |
672 | pathString += "icons16/"; | 677 | pathString += "icons16/"; |
673 | pixWid = 18; pixHei = 16; | 678 | pixWid = 18; pixHei = 16; |
674 | } | 679 | } |
675 | } else { | 680 | } else { |
676 | pathString += "iconsmini/"; | 681 | pathString += "iconsmini/"; |
677 | pixWid = 18; pixHei = 16; | 682 | pixWid = 18; pixHei = 16; |
678 | } | 683 | } |
679 | if ( KOPrefs::instance()->mShowFullMenu ) { | 684 | if ( KOPrefs::instance()->mShowFullMenu ) { |
680 | QMenuBar *menuBar1; | 685 | QMenuBar *menuBar1; |
681 | menuBar1 = menuBar(); | 686 | menuBar1 = menuBar(); |
682 | menuBar1->insertItem( i18n("File"), importMenu ); | 687 | menuBar1->insertItem( i18n("File"), importMenu ); |
683 | menuBar1->insertItem( i18n("View"), viewMenu ); | 688 | menuBar1->insertItem( i18n("View"), viewMenu ); |
684 | menuBar1->insertItem( i18n("Actions"), actionMenu ); | 689 | menuBar1->insertItem( i18n("Actions"), actionMenu ); |
685 | #ifdef DESKTOP_VERSION | 690 | #ifdef DESKTOP_VERSION |
686 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); | 691 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); |
687 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 692 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
688 | #else | 693 | #else |
689 | menuBar1->insertItem( i18n("Sync"), syncMenu ); | 694 | menuBar1->insertItem( i18n("Sync"), syncMenu ); |
690 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); | 695 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); |
691 | #endif | 696 | #endif |
692 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 697 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
693 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); | 698 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); |
694 | menuBar1->insertItem( i18n("Help"), helpMenu ); | 699 | menuBar1->insertItem( i18n("Help"), helpMenu ); |
695 | } else { | 700 | } else { |
696 | QPEMenuBar *menuBar1; | 701 | QPEMenuBar *menuBar1; |
697 | menuBar1 = new QPEMenuBar( iconToolBar ); | 702 | menuBar1 = new QPEMenuBar( iconToolBar ); |
698 | QPopupMenu *menuBar = new QPopupMenu( this ); | 703 | QPopupMenu *menuBar = new QPopupMenu( this ); |
699 | icon = loadPixmap( pathString + "z_menu" ); | 704 | icon = loadPixmap( pathString + "z_menu" ); |
700 | menuBar1->insertItem( icon.pixmap(), menuBar); | 705 | menuBar1->insertItem( icon.pixmap(), menuBar); |
701 | //menuBar1->insertItem( i18n("ME"), menuBar); | 706 | //menuBar1->insertItem( i18n("ME"), menuBar); |
702 | menuBar->insertItem( i18n("File"), importMenu ); | 707 | menuBar->insertItem( i18n("File"), importMenu ); |
703 | menuBar->insertItem( i18n("View"), viewMenu ); | 708 | menuBar->insertItem( i18n("View"), viewMenu ); |
704 | menuBar->insertItem( i18n("Actions"), actionMenu ); | 709 | menuBar->insertItem( i18n("Actions"), actionMenu ); |
705 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); | 710 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); |
706 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 711 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
707 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 712 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
708 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); | 713 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); |
709 | menuBar->insertItem( i18n("Help"), helpMenu ); | 714 | menuBar->insertItem( i18n("Help"), helpMenu ); |
710 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); | 715 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); |
711 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); | 716 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); |
712 | } | 717 | } |
713 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 718 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
714 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); | 719 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); |
715 | 720 | ||
716 | 721 | ||
717 | mWeekBgColor = iconToolBar->backgroundColor(); | 722 | mWeekBgColor = iconToolBar->backgroundColor(); |
718 | mWeekPixmap.resize( pixWid , pixHei ); | 723 | mWeekPixmap.resize( pixWid , pixHei ); |
719 | mWeekPixmap.fill( mWeekBgColor ); | 724 | mWeekPixmap.fill( mWeekBgColor ); |
720 | icon = mWeekPixmap; | 725 | icon = mWeekPixmap; |
721 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); | 726 | mWeekAction = new QAction( i18n("Select week number"),icon, i18n("Select week number"), 0, this ); |
722 | if ( p-> mShowIconWeekNum ) | 727 | if ( p-> mShowIconWeekNum ) |
723 | mWeekAction->addTo( iconToolBar ); | 728 | mWeekAction->addTo( iconToolBar ); |
724 | mWeekFont = font(); | 729 | mWeekFont = font(); |
725 | 730 | ||
726 | int fontPoint = mWeekFont.pointSize(); | 731 | int fontPoint = mWeekFont.pointSize(); |
727 | QFontMetrics f( mWeekFont ); | 732 | QFontMetrics f( mWeekFont ); |
728 | int fontWid = f.width( "30" ); | 733 | int fontWid = f.width( "30" ); |
729 | while ( fontWid > pixWid ) { | 734 | while ( fontWid > pixWid ) { |
730 | --fontPoint; | 735 | --fontPoint; |
731 | mWeekFont.setPointSize( fontPoint ); | 736 | mWeekFont.setPointSize( fontPoint ); |
732 | QFontMetrics f( mWeekFont ); | 737 | QFontMetrics f( mWeekFont ); |
733 | fontWid = f.width( "30" ); | 738 | fontWid = f.width( "30" ); |
734 | //qDebug("dec-- "); | 739 | //qDebug("dec-- "); |
735 | } | 740 | } |
736 | 741 | ||
737 | connect( mWeekAction, SIGNAL( activated() ), | 742 | connect( mWeekAction, SIGNAL( activated() ), |
738 | this, SLOT( weekAction() ) ); | 743 | this, SLOT( weekAction() ) ); |
739 | 744 | ||
740 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); | 745 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); |
741 | if ( p->mShowIconFilterview ) { | 746 | if ( p->mShowIconFilterview ) { |
742 | icon = loadPixmap( pathString + "filter" ); | 747 | icon = loadPixmap( pathString + "filter" ); |
743 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); | 748 | actionFilterMenuTB = new QAction( i18n("Filter selector"), icon, i18n("Filter selector"), 0, this ); |
744 | connect( actionFilterMenuTB, SIGNAL( activated() ), | 749 | connect( actionFilterMenuTB, SIGNAL( activated() ), |
745 | this, SLOT( fillFilterMenuTB() ) ); | 750 | this, SLOT( fillFilterMenuTB() ) ); |
746 | actionFilterMenuTB->addTo( iconToolBar ); | 751 | actionFilterMenuTB->addTo( iconToolBar ); |
747 | selectFilterMenuTB = new QPopupMenu( this ); | 752 | selectFilterMenuTB = new QPopupMenu( this ); |
748 | selectFilterMenuTB->setCheckable( true ); | 753 | selectFilterMenuTB->setCheckable( true ); |
749 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 754 | connect ( selectFilterMenuTB, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
750 | } | 755 | } |
751 | 756 | ||
752 | //#endif | 757 | //#endif |
753 | // ****************** | 758 | // ****************** |
754 | QAction *action; | 759 | QAction *action; |
755 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); | 760 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); |
756 | configureToolBarMenu->setCheckable( true ); | 761 | configureToolBarMenu->setCheckable( true ); |
757 | 762 | ||
758 | 763 | ||
759 | configureAgendaMenu->setCheckable( true ); | 764 | configureAgendaMenu->setCheckable( true ); |
760 | int iii ; | 765 | int iii ; |
761 | for ( iii = 1;iii<= 10 ;++iii ){ | 766 | for ( iii = 1;iii<= 10 ;++iii ){ |
762 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); | 767 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); |
763 | } | 768 | } |
764 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); | 769 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); |
765 | 770 | ||
766 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), | 771 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), |
767 | this, SLOT( showConfigureAgenda( ) ) ); | 772 | this, SLOT( showConfigureAgenda( ) ) ); |
773 | icon = loadPixmap( pathString + "today" ); | ||
774 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | ||
775 | today_action->addTo( actionMenu ); | ||
776 | connect( today_action, SIGNAL( activated() ), | ||
777 | mView, SLOT( goToday() ) ); | ||
778 | |||
779 | icon = loadPixmap( pathString + "picker" ); | ||
780 | QAction* dPickerAction = new QAction( i18n("Select Date..."), icon, i18n("Select Date..."), 0, this ); | ||
781 | dPickerAction->addTo( actionMenu ); | ||
782 | connect( dPickerAction, SIGNAL( activated() ), | ||
783 | mView, SLOT( showDatePicker() ) ); | ||
784 | |||
785 | icon = loadPixmap( pathString + "search" ); | ||
786 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); | ||
787 | search_action->addTo( actionMenu ); | ||
788 | connect( search_action, SIGNAL( activated() ), | ||
789 | mView->dialogManager(), SLOT( showSearchDialog() ) ); | ||
768 | 790 | ||
769 | icon = loadPixmap( pathString + "configure" ); | ||
770 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); | ||
771 | action->addTo( actionMenu ); | ||
772 | connect( action, SIGNAL( activated() ), | ||
773 | mView, SLOT( edit_options() ) ); | ||
774 | icon = loadPixmap( pathString + "configure" ); | ||
775 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); | ||
776 | action->addTo( actionMenu ); | ||
777 | connect( action, SIGNAL( activated() ), | ||
778 | mView, SLOT( edit_global_options() ) ); | ||
779 | actionMenu->insertSeparator(); | 791 | actionMenu->insertSeparator(); |
792 | |||
793 | |||
780 | 794 | ||
781 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); | 795 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); |
782 | action->addTo( actionMenu ); | 796 | action->addTo( actionMenu ); |
783 | connect( action, SIGNAL( activated() ), | 797 | connect( action, SIGNAL( activated() ), |
784 | mView, SLOT( undo_delete() ) ); | 798 | mView, SLOT( undo_delete() ) ); |
785 | actionMenu->insertSeparator(); | ||
786 | 799 | ||
787 | icon = loadPixmap( pathString + "newevent" ); | 800 | icon = loadPixmap( pathString + "newevent" ); |
788 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 801 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
789 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); | 802 | configureToolBarMenu->insertItem(i18n("Only one toolbar"), 6 ); |
790 | configureToolBarMenu->insertSeparator(); | 803 | configureToolBarMenu->insertSeparator(); |
791 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); | 804 | configureToolBarMenu->insertItem(i18n("Filtermenu"), 7 ); |
792 | configureToolBarMenu->insertSeparator(); | 805 | configureToolBarMenu->insertSeparator(); |
793 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); | 806 | configureToolBarMenu->insertItem(i18n("Week Number"), 400); |
794 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 807 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
808 | |||
809 | #ifndef DESKTOP_VERSION | ||
810 | actionMenu->insertItem ( i18n("Selected Item"), mCurrentItemMenu); | ||
811 | #endif | ||
812 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); | ||
813 | mShowAction->addTo( mCurrentItemMenu ); | ||
814 | connect( mShowAction, SIGNAL( activated() ), | ||
815 | mView, SLOT( showIncidence() ) ); | ||
816 | |||
817 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); | ||
818 | mEditAction->addTo( mCurrentItemMenu ); | ||
819 | connect( mEditAction, SIGNAL( activated() ), | ||
820 | mView, SLOT( editIncidence() ) ); | ||
821 | |||
822 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); | ||
823 | mDeleteAction->addTo( mCurrentItemMenu ); | ||
824 | connect( mDeleteAction, SIGNAL( activated() ), | ||
825 | mView, SLOT( deleteIncidence() ) ); | ||
826 | |||
827 | |||
828 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); | ||
829 | mCloneAction->addTo( mCurrentItemMenu ); | ||
830 | connect( mCloneAction, SIGNAL( activated() ), | ||
831 | mView, SLOT( cloneIncidence() ) ); | ||
832 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); | ||
833 | mMoveAction->addTo( mCurrentItemMenu ); | ||
834 | connect( mMoveAction, SIGNAL( activated() ), | ||
835 | mView, SLOT( moveIncidence() ) ); | ||
836 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); | ||
837 | mBeamAction->addTo(mCurrentItemMenu ); | ||
838 | connect( mBeamAction, SIGNAL( activated() ), | ||
839 | mView, SLOT( beamIncidence() ) ); | ||
840 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); | ||
841 | mCancelAction->addTo( mCurrentItemMenu ); | ||
842 | connect( mCancelAction, SIGNAL( activated() ), | ||
843 | mView, SLOT( toggleCancelIncidence() ) ); | ||
844 | #ifdef DESKTOP_VERSION | ||
845 | actionMenu->insertSeparator(); | ||
846 | #endif | ||
847 | |||
848 | |||
795 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 849 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
796 | ne_action->addTo( actionMenu ); | 850 | ne_action->addTo( actionMenu ); |
797 | connect( ne_action, SIGNAL( activated() ), | 851 | connect( ne_action, SIGNAL( activated() ), |
798 | mView, SLOT( newEvent() ) ); | 852 | mView, SLOT( newEvent() ) ); |
799 | icon = loadPixmap( pathString + "newtodo" ); | 853 | icon = loadPixmap( pathString + "newtodo" ); |
800 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); | 854 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); |
801 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); | 855 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); |
802 | nt_action->addTo( actionMenu ); | 856 | nt_action->addTo( actionMenu ); |
803 | connect( nt_action, SIGNAL( activated() ), | 857 | connect( nt_action, SIGNAL( activated() ), |
804 | mView, SLOT( newTodo() ) ); | 858 | mView, SLOT( newTodo() ) ); |
805 | 859 | ||
806 | icon = loadPixmap( pathString + "today" ); | 860 | |
807 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | ||
808 | today_action->addTo( viewMenu ); | ||
809 | connect( today_action, SIGNAL( activated() ), | ||
810 | mView, SLOT( goToday() ) ); | ||
811 | viewMenu->insertSeparator(); | ||
812 | 861 | ||
813 | // *********************** | 862 | // *********************** |
814 | if ( KOPrefs::instance()->mVerticalScreen ) { | 863 | if ( KOPrefs::instance()->mVerticalScreen ) { |
815 | icon = SmallIcon( "1updownarrow" ); | 864 | icon = SmallIcon( "1updownarrow" ); |
816 | } else { | 865 | } else { |
817 | icon = SmallIcon("1leftrightarrow" ); | 866 | icon = SmallIcon("1leftrightarrow" ); |
818 | } | 867 | } |
819 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); | 868 | configureToolBarMenu->insertItem(icon, i18n("Toggle Fullscreen"), 28 ); |
820 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); | 869 | QAction* FSaction = new QAction( i18n("Toggle Fullscreen"), icon, i18n("Toggle Fullscreen"), 0, this ); |
821 | FSaction->addTo( viewMenu ); | 870 | FSaction->addTo( viewMenu ); |
822 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); | 871 | connect( FSaction, SIGNAL( activated() ), mView, SLOT( toggleExpand() )); |
823 | 872 | ||
824 | 873 | ||
825 | icon = loadPixmap( pathString + "filter" ); | 874 | icon = loadPixmap( pathString + "filter" ); |
826 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); | 875 | configureToolBarMenu->insertItem(icon, i18n("Filter menu icon"), 26 ); |
827 | icon = loadPixmap( pathString + "configure" ); | 876 | icon = loadPixmap( pathString + "configure" ); |
828 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); | 877 | action = new QAction( i18n("Toggle Resource View"), icon, i18n("Toggle Resource View"), 0, this ); |
829 | action->addTo( viewMenu ); | 878 | action->addTo( viewMenu ); |
830 | connect( action, SIGNAL( activated() ), | 879 | connect( action, SIGNAL( activated() ), |
831 | mView, SLOT( toggleFilter() ) ); | 880 | mView, SLOT( toggleFilter() ) ); |
832 | mToggleFilter = action; | 881 | mToggleFilter = action; |
833 | icon = loadPixmap( pathString + "navi" ); | 882 | icon = loadPixmap( pathString + "navi" ); |
834 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); | 883 | configureToolBarMenu->insertItem(icon, i18n("Toggle DateNavigator"), 22 ); |
835 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); | 884 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); |
836 | action->addTo( viewMenu ); | 885 | action->addTo( viewMenu ); |
837 | connect( action, SIGNAL( activated() ), | 886 | connect( action, SIGNAL( activated() ), |
838 | mView, SLOT( toggleDateNavigatorWidget() ) ); | 887 | mView, SLOT( toggleDateNavigatorWidget() ) ); |
839 | mToggleNav = action ; | 888 | mToggleNav = action ; |
840 | icon = loadPixmap( pathString + "allday" ); | 889 | icon = loadPixmap( pathString + "allday" ); |
841 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); | 890 | configureToolBarMenu->insertItem(icon, i18n("Toggle Allday"), 24 ); |
842 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); | 891 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); |
843 | action->addTo( viewMenu ); | 892 | action->addTo( viewMenu ); |
844 | connect( action, SIGNAL( activated() ), | 893 | connect( action, SIGNAL( activated() ), |
845 | mView, SLOT( toggleAllDaySize() ) ); | 894 | mView, SLOT( toggleAllDaySize() ) ); |
846 | mToggleAllday = action; | 895 | mToggleAllday = action; |
847 | 896 | ||
848 | 897 | ||
849 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 898 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
850 | mToggleNav, SLOT( setEnabled ( bool ) ) ); | 899 | mToggleNav, SLOT( setEnabled ( bool ) ) ); |
851 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 900 | //connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
852 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); | 901 | // mToggleFilter, SLOT( setEnabled ( bool ) ) ); |
853 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 902 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
854 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); | 903 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); |
855 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 904 | // connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
856 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); | 905 | // configureAgendaMenu, SLOT( setEnabled ( bool ) ) ); |
857 | 906 | ||
858 | viewMenu->insertSeparator(); | 907 | |
859 | icon = loadPixmap( pathString + "picker" ); | 908 | dPickerAction->addTo( iconToolBar ); |
860 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); | ||
861 | action->addTo( viewMenu ); | ||
862 | connect( action, SIGNAL( activated() ), | ||
863 | mView, SLOT( showDatePicker() ) ); | ||
864 | action->addTo( iconToolBar ); | ||
865 | viewMenu->insertSeparator(); | 909 | viewMenu->insertSeparator(); |
866 | 910 | ||
867 | if ( p-> mShowIconToggleFull ) | 911 | if ( p-> mShowIconToggleFull ) |
868 | FSaction->addTo( iconToolBar ); | 912 | FSaction->addTo( iconToolBar ); |
869 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); | 913 | if ( p->mShowIconNavigator ) mToggleNav ->addTo( iconToolBar ); |
870 | 914 | ||
871 | //******************** | 915 | //******************** |
872 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); | 916 | if ( p->mShowIconAllday ) mToggleAllday->addTo( iconToolBar ); |
873 | 917 | ||
874 | 918 | ||
875 | icon = loadPixmap( pathString + "whatsnext" ); | 919 | icon = loadPixmap( pathString + "whatsnext" ); |
876 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); | 920 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110 ); |
877 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); | 921 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); |
878 | whatsnext_action->addTo( viewMenu ); | 922 | whatsnext_action->addTo( viewMenu ); |
879 | connect( whatsnext_action, SIGNAL( activated() ), | 923 | connect( whatsnext_action, SIGNAL( activated() ), |
880 | mView->viewManager(), SLOT( showWhatsNextView() ) ); | 924 | mView->viewManager(), SLOT( showWhatsNextView() ) ); |
881 | 925 | ||
882 | icon = loadPixmap( pathString + "xdays" ); | 926 | icon = loadPixmap( pathString + "xdays" ); |
883 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); | 927 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100 ); |
884 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); | 928 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); |
885 | xdays_action->addTo( viewMenu ); | 929 | xdays_action->addTo( viewMenu ); |
886 | connect( xdays_action, SIGNAL( activated() ), | 930 | connect( xdays_action, SIGNAL( activated() ), |
887 | mView->viewManager(), SLOT( showNextXView() ) ); | 931 | mView->viewManager(), SLOT( showNextXView() ) ); |
888 | 932 | ||
889 | 933 | ||
890 | icon = loadPixmap( pathString + "journal" ); | 934 | icon = loadPixmap( pathString + "journal" ); |
891 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); | 935 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); |
892 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); | 936 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); |
893 | viewjournal_action->addTo( viewMenu ); | 937 | viewjournal_action->addTo( viewMenu ); |
894 | connect( viewjournal_action, SIGNAL( activated() ), | 938 | connect( viewjournal_action, SIGNAL( activated() ), |
895 | mView->viewManager(), SLOT( showJournalView() ) ); | 939 | mView->viewManager(), SLOT( showJournalView() ) ); |
896 | 940 | ||
897 | 941 | ||
898 | icon = loadPixmap( pathString + "day" ); | 942 | icon = loadPixmap( pathString + "day" ); |
899 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); | 943 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); |
900 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); | 944 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); |
901 | day1_action->addTo( viewMenu ); | 945 | day1_action->addTo( viewMenu ); |
902 | // action->addTo( toolBar ); | 946 | // action->addTo( toolBar ); |
903 | connect( day1_action, SIGNAL( activated() ), | 947 | connect( day1_action, SIGNAL( activated() ), |
904 | mView->viewManager(), SLOT( showDayView() ) ); | 948 | mView->viewManager(), SLOT( showDayView() ) ); |
905 | 949 | ||
906 | icon = loadPixmap( pathString + "workweek" ); | 950 | icon = loadPixmap( pathString + "workweek" ); |
907 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); | 951 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); |
908 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); | 952 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); |
909 | day5_action->addTo( viewMenu ); | 953 | day5_action->addTo( viewMenu ); |
910 | connect( day5_action, SIGNAL( activated() ), | 954 | connect( day5_action, SIGNAL( activated() ), |
911 | mView->viewManager(), SLOT( showWorkWeekView() ) ); | 955 | mView->viewManager(), SLOT( showWorkWeekView() ) ); |
912 | 956 | ||
913 | icon = loadPixmap( pathString + "week" ); | 957 | icon = loadPixmap( pathString + "week" ); |
914 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); | 958 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); |
915 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); | 959 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); |
916 | day7_action->addTo( viewMenu ); | 960 | day7_action->addTo( viewMenu ); |
917 | connect( day7_action, SIGNAL( activated() ), | 961 | connect( day7_action, SIGNAL( activated() ), |
918 | mView->viewManager(), SLOT( showWeekView() ) ); | 962 | mView->viewManager(), SLOT( showWeekView() ) ); |
919 | 963 | ||
920 | icon = loadPixmap( pathString + "workweek2" ); | 964 | icon = loadPixmap( pathString + "workweek2" ); |
921 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); | 965 | configureToolBarMenu->insertItem(icon, i18n("List week view"), 75 ); |
922 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); | 966 | QAction* day6_action = new QAction( i18n("List week"), icon, i18n("List week"), 0, this ); |
923 | day6_action->addTo( viewMenu ); | 967 | day6_action->addTo( viewMenu ); |
924 | connect( day6_action, SIGNAL( activated() ), | 968 | connect( day6_action, SIGNAL( activated() ), |
925 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); | 969 | mView->viewManager(), SLOT( showMonthViewWeek() ) ); |
926 | 970 | ||
927 | icon = loadPixmap( pathString + "month" ); | 971 | icon = loadPixmap( pathString + "month" ); |
928 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); | 972 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); |
929 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); | 973 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); |
930 | month_action->addTo( viewMenu ); | 974 | month_action->addTo( viewMenu ); |
931 | connect( month_action, SIGNAL( activated() ), | 975 | connect( month_action, SIGNAL( activated() ), |
932 | mView->viewManager(), SLOT( showMonthView() ) ); | 976 | mView->viewManager(), SLOT( showMonthView() ) ); |
933 | 977 | ||
934 | icon = loadPixmap( pathString + "list" ); | 978 | icon = loadPixmap( pathString + "list" ); |
935 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); | 979 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); |
936 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); | 980 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); |
937 | showlist_action->addTo( viewMenu ); | 981 | showlist_action->addTo( viewMenu ); |
938 | connect( showlist_action, SIGNAL( activated() ), | 982 | connect( showlist_action, SIGNAL( activated() ), |
939 | mView->viewManager(), SLOT( showListView() ) ); | 983 | mView->viewManager(), SLOT( showListView() ) ); |
940 | 984 | ||
941 | icon = loadPixmap( pathString + "todo" ); | 985 | icon = loadPixmap( pathString + "todo" ); |
942 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); | 986 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); |
943 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); | 987 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); |
944 | todoview_action->addTo( viewMenu ); | 988 | todoview_action->addTo( viewMenu ); |
945 | connect( todoview_action, SIGNAL( activated() ), | 989 | connect( todoview_action, SIGNAL( activated() ), |
946 | mView->viewManager(), SLOT( showTodoView() ) ); | 990 | mView->viewManager(), SLOT( showTodoView() ) ); |
947 | 991 | ||
948 | 992 | ||
949 | 993 | ||
950 | #if 0 | 994 | #if 0 |
951 | action = new QAction( "view_timespan", "Time Span", 0, this ); | 995 | action = new QAction( "view_timespan", "Time Span", 0, this ); |
952 | action->addTo( viewMenu ); | 996 | action->addTo( viewMenu ); |
953 | connect( action, SIGNAL( activated() ), | 997 | connect( action, SIGNAL( activated() ), |
954 | mView->viewManager(), SLOT( showTimeSpanView() ) ); | 998 | mView->viewManager(), SLOT( showTimeSpanView() ) ); |
955 | #endif | 999 | #endif |
956 | 1000 | ||
957 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, | 1001 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, |
958 | this ); | 1002 | this ); |
959 | mNewSubTodoAction->addTo( actionMenu ); | 1003 | mNewSubTodoAction->addTo( actionMenu ); |
960 | connect( mNewSubTodoAction, SIGNAL( activated() ), | 1004 | connect( mNewSubTodoAction, SIGNAL( activated() ), |
961 | mView, SLOT( newSubTodo() ) ); | 1005 | mView, SLOT( newSubTodo() ) ); |
962 | 1006 | ||
963 | actionMenu->insertSeparator(); | 1007 | action = new QAction( "purge_completed", i18n("Purge Completed..."), 0, |
964 | 1008 | this ); | |
965 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); | 1009 | action->addTo( actionMenu ); |
966 | mShowAction->addTo( actionMenu ); | 1010 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); |
967 | connect( mShowAction, SIGNAL( activated() ), | ||
968 | mView, SLOT( showIncidence() ) ); | ||
969 | 1011 | ||
970 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); | 1012 | |
971 | mEditAction->addTo( actionMenu ); | 1013 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); |
972 | connect( mEditAction, SIGNAL( activated() ), | ||
973 | mView, SLOT( editIncidence() ) ); | ||
974 | 1014 | ||
975 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); | ||
976 | mDeleteAction->addTo( actionMenu ); | ||
977 | connect( mDeleteAction, SIGNAL( activated() ), | ||
978 | mView, SLOT( deleteIncidence() ) ); | ||
979 | 1015 | ||
980 | 1016 | ||
981 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); | ||
982 | mCloneAction->addTo( actionMenu ); | ||
983 | connect( mCloneAction, SIGNAL( activated() ), | ||
984 | mView, SLOT( cloneIncidence() ) ); | ||
985 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); | ||
986 | mMoveAction->addTo( actionMenu ); | ||
987 | connect( mMoveAction, SIGNAL( activated() ), | ||
988 | mView, SLOT( moveIncidence() ) ); | ||
989 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); | ||
990 | mBeamAction->addTo( actionMenu ); | ||
991 | connect( mBeamAction, SIGNAL( activated() ), | ||
992 | mView, SLOT( beamIncidence() ) ); | ||
993 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); | ||
994 | mCancelAction->addTo( actionMenu ); | ||
995 | connect( mCancelAction, SIGNAL( activated() ), | ||
996 | mView, SLOT( toggleCancelIncidence() ) ); | ||
997 | |||
998 | actionMenu->insertSeparator(); | 1017 | actionMenu->insertSeparator(); |
999 | 1018 | action = new QAction( "manage cat", i18n("Edit category list..."), 0, | |
1000 | action = new QAction( "purge_completed", i18n("Purge Completed"), 0, | ||
1001 | this ); | 1019 | this ); |
1002 | action->addTo( actionMenu ); | 1020 | action->addTo( actionMenu ); |
1003 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); | 1021 | connect( action, SIGNAL( activated() ), mView, SLOT( editCategories() ) ); |
1004 | 1022 | ||
1005 | icon = loadPixmap( pathString + "search" ); | 1023 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
1006 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); | 1024 | this ); |
1007 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 5); | 1025 | action->addTo( actionMenu ); |
1008 | search_action->addTo( actionMenu ); | 1026 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
1009 | connect( search_action, SIGNAL( activated() ), | ||
1010 | mView->dialogManager(), SLOT( showSearchDialog() ) ); | ||
1011 | 1027 | ||
1012 | |||
1013 | 1028 | ||
1029 | actionMenu->insertSeparator(); | ||
1030 | icon = loadPixmap( pathString + "configure" ); | ||
1031 | action = new QAction( i18n("Configure"),icon, i18n("Configure KO/Pi..."), 0, this ); | ||
1032 | action->addTo( actionMenu ); | ||
1033 | connect( action, SIGNAL( activated() ), | ||
1034 | mView, SLOT( edit_options() ) ); | ||
1035 | icon = loadPixmap( pathString + "configure" ); | ||
1036 | action = new QAction( i18n("Configure"),icon, i18n("Global Settings..."), 0, this ); | ||
1037 | action->addTo( actionMenu ); | ||
1038 | connect( action, SIGNAL( activated() ), | ||
1039 | mView, SLOT( edit_global_options() ) ); | ||
1014 | if ( KOPrefs::instance()->mShowFullMenu ) { | 1040 | if ( KOPrefs::instance()->mShowFullMenu ) { |
1015 | actionMenu->insertSeparator(); | ||
1016 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); | 1041 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); |
1017 | 1042 | ||
1018 | } | 1043 | } |
1019 | // actionMenu->insertSeparator(); | 1044 | // actionMenu->insertSeparator(); |
1020 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, | 1045 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, |
1021 | this ); | 1046 | this ); |
1022 | action->addTo( importMenu_X ); | 1047 | action->addTo( importMenu_X ); |
1023 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); | 1048 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); |
1024 | action = new QAction( "import_quick", i18n("Import last file"), 0, | 1049 | action = new QAction( "import_quick", i18n("Import last file"), 0, |
1025 | this ); | 1050 | this ); |
1026 | action->addTo( importMenu_X ); | 1051 | action->addTo( importMenu_X ); |
1027 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); | 1052 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); |
1028 | importMenu_X->insertSeparator(); | 1053 | importMenu_X->insertSeparator(); |
1029 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, | 1054 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, |
1030 | this ); | 1055 | this ); |
1031 | action->addTo( importMenu_X ); | 1056 | action->addTo( importMenu_X ); |
1032 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); | 1057 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); |
1033 | //#ifndef DESKTOP_VERSION | 1058 | //#ifndef DESKTOP_VERSION |
1034 | importMenu_X->insertSeparator(); | 1059 | importMenu_X->insertSeparator(); |
1035 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, | 1060 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, |
1036 | this ); | 1061 | this ); |
1037 | action->addTo( importMenu_X ); | 1062 | action->addTo( importMenu_X ); |
1038 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 1063 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
1039 | //#else | 1064 | //#else |
1040 | #ifdef _OL_IMPORT_ | 1065 | #ifdef _OL_IMPORT_ |
1041 | importMenu_X->insertSeparator(); | 1066 | importMenu_X->insertSeparator(); |
1042 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 1067 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
1043 | this ); | 1068 | this ); |
1044 | action->addTo( importMenu_X ); | 1069 | action->addTo( importMenu_X ); |
1045 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); | 1070 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); |
1046 | #endif | 1071 | #endif |
1047 | //#endif | 1072 | //#endif |
1048 | 1073 | ||
1049 | //importMenu->insertSeparator(); | 1074 | //importMenu->insertSeparator(); |
1050 | #if 0 | 1075 | #if 0 |
1051 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 1076 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
1052 | this ); | 1077 | this ); |
1053 | action->addTo( importMenu ); | 1078 | action->addTo( importMenu ); |
1054 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 1079 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
1055 | #endif | 1080 | #endif |
1056 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, | 1081 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, |
1057 | this ); | 1082 | this ); |
1058 | action->addTo( importMenu ); | 1083 | action->addTo( importMenu ); |
1059 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 1084 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
1060 | importMenu->insertSeparator(); | 1085 | importMenu->insertSeparator(); |
1061 | importMenu->insertItem( i18n("Import"), importMenu_X ); | 1086 | importMenu->insertItem( i18n("Import"), importMenu_X ); |
1062 | //importMenu->insertSeparator(); | 1087 | //importMenu->insertSeparator(); |
1063 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 1088 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
1064 | this ); | 1089 | this ); |
1065 | action->addTo( exportMenu_X ); | 1090 | action->addTo( exportMenu_X ); |
1066 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 1091 | connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); |
1067 | 1092 | ||
1068 | 1093 | ||
1069 | //LR | 1094 | //LR |
1070 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 1095 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
1071 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1096 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1072 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1097 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1073 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 1098 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
1074 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); | 1099 | exportMenu_X->insertItem( i18n("Export to phone"), ex2phone ); |
1075 | 1100 | ||
1076 | importMenu->insertItem( i18n("Export"), exportMenu_X ); | 1101 | importMenu->insertItem( i18n("Export"), exportMenu_X ); |
1077 | #ifndef DESKTOP_VERSION | 1102 | #ifndef DESKTOP_VERSION |
1078 | //importMenu->insertSeparator(); | 1103 | //importMenu->insertSeparator(); |
1079 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 1104 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
1080 | this ); | 1105 | this ); |
1081 | brAction->addTo( beamMenu_X ); | 1106 | brAction->addTo( beamMenu_X ); |
1082 | brAction->setToggleAction (true ) ; | 1107 | brAction->setToggleAction (true ) ; |
1083 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 1108 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
1084 | 1109 | ||
1085 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 1110 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
1086 | this ); | 1111 | this ); |
1087 | action->addTo( beamMenu_X ); | 1112 | action->addTo( beamMenu_X ); |
1088 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 1113 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
1089 | 1114 | ||
1090 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 1115 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
1091 | this ); | 1116 | this ); |
1092 | action->addTo( beamMenu_X ); | 1117 | action->addTo( beamMenu_X ); |
1093 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 1118 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
1094 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); | 1119 | importMenu->insertItem( i18n("Beam"), beamMenu_X ); |
1095 | #else | 1120 | #else |
1096 | //importMenu->insertSeparator(); | 1121 | //importMenu->insertSeparator(); |
1097 | icon = loadPixmap( pathString + "print" ); | 1122 | icon = loadPixmap( pathString + "print" ); |
1098 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 1123 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
1099 | action->addTo( beamMenu_X ); | 1124 | action->addTo( beamMenu_X ); |
1100 | connect( action, SIGNAL( activated() ), | 1125 | connect( action, SIGNAL( activated() ), |
1101 | this, SLOT( printCal() ) ); | 1126 | this, SLOT( printCal() ) ); |
1102 | 1127 | ||
1103 | icon = loadPixmap( pathString + "print" ); | 1128 | icon = loadPixmap( pathString + "print" ); |
1104 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 1129 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
1105 | action->addTo( beamMenu_X ); | 1130 | action->addTo( beamMenu_X ); |
1106 | connect( action, SIGNAL( activated() ), | 1131 | connect( action, SIGNAL( activated() ), |
1107 | this, SLOT( printSel() ) ); | 1132 | this, SLOT( printSel() ) ); |
1108 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 1133 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
1109 | action->addTo( beamMenu_X ); | 1134 | action->addTo( beamMenu_X ); |
1110 | connect( action, SIGNAL( activated() ), | 1135 | connect( action, SIGNAL( activated() ), |
1111 | mView->viewManager(), SLOT( slotprintWNV() ) ); | 1136 | mView->viewManager(), SLOT( slotprintWNV() ) ); |
1112 | 1137 | ||
1113 | 1138 | ||
1114 | icon = loadPixmap( pathString + "print" ); | 1139 | icon = loadPixmap( pathString + "print" ); |
1115 | action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); | 1140 | action = new QAction( i18n("Print List View..."),icon,i18n("Print List View..."), 0, this ); |
1116 | action->addTo( beamMenu_X ); | 1141 | action->addTo( beamMenu_X ); |
1117 | connect( action, SIGNAL( activated() ), | 1142 | connect( action, SIGNAL( activated() ), |
1118 | this, SLOT( printListView() ) ); | 1143 | this, SLOT( printListView() ) ); |
1119 | 1144 | ||
1120 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); | 1145 | action = new QAction( i18n("Print selected event / todo..."),icon,i18n("Print selected event / todo..."), 0, this ); |
1121 | action->addTo( beamMenu_X ); | 1146 | action->addTo( beamMenu_X ); |
1122 | connect( action, SIGNAL( activated() ), | 1147 | connect( action, SIGNAL( activated() ), |
1123 | mView, SLOT( slotprintSelInc() ) ); | 1148 | mView, SLOT( slotprintSelInc() ) ); |
1124 | 1149 | ||
1125 | importMenu->insertItem( i18n("Print"), beamMenu_X ); | 1150 | importMenu->insertItem( i18n("Print"), beamMenu_X ); |
1126 | #endif | 1151 | #endif |
1127 | importMenu->insertSeparator(); | 1152 | |
1128 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | ||
1129 | this ); | ||
1130 | action->addTo( importMenu ); | ||
1131 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | ||
1132 | importMenu->insertSeparator(); | 1153 | importMenu->insertSeparator(); |
1133 | action = new QAction( "beam all", i18n("Save"), 0, | 1154 | action = new QAction( "beam all", i18n("Save"), 0, |
1134 | this ); | 1155 | this ); |
1135 | action->addTo( importMenu ); | 1156 | action->addTo( importMenu ); |
1136 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 1157 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
1137 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 1158 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
1138 | this ); | 1159 | this ); |
1139 | action->addTo( importMenu ); | 1160 | action->addTo( importMenu ); |
1140 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 1161 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
1141 | 1162 | ||
1142 | //menuBar->insertItem( "Configure",configureMenu ); | 1163 | //menuBar->insertItem( "Configure",configureMenu ); |
1143 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 1164 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
1144 | icon = loadPixmap( "korganizer/korganizer" ); | 1165 | icon = loadPixmap( "korganizer/korganizer" ); |
1145 | 1166 | ||
1146 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 1167 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
1147 | action->addTo( helpMenu ); | 1168 | action->addTo( helpMenu ); |
1148 | connect( action, SIGNAL( activated() ), | 1169 | connect( action, SIGNAL( activated() ), |
1149 | SLOT( whatsNew() ) ); | 1170 | SLOT( whatsNew() ) ); |
1150 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 1171 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
1151 | action->addTo( helpMenu ); | 1172 | action->addTo( helpMenu ); |
1152 | connect( action, SIGNAL( activated() ), | 1173 | connect( action, SIGNAL( activated() ), |
1153 | SLOT( features() ) ); | 1174 | SLOT( features() ) ); |
1154 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 1175 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
1155 | action->addTo( helpMenu ); | 1176 | action->addTo( helpMenu ); |
1156 | connect( action, SIGNAL( activated() ), | 1177 | connect( action, SIGNAL( activated() ), |
1157 | SLOT( keyBindings() ) ); | 1178 | SLOT( keyBindings() ) ); |
1158 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); | 1179 | action = new QAction( "Storage Howto", i18n("Storage HowTo..."), 0,this ); |
1159 | action->addTo( helpMenu ); | 1180 | action->addTo( helpMenu ); |
1160 | connect( action, SIGNAL( activated() ), | 1181 | connect( action, SIGNAL( activated() ), |
1161 | SLOT( storagehowto() ) ); | 1182 | SLOT( storagehowto() ) ); |
1162 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); | 1183 | action = new QAction( "Timetracking Howto", i18n("Timetracking HowTo..."), 0,this ); |
1163 | action->addTo( helpMenu ); | 1184 | action->addTo( helpMenu ); |
1164 | connect( action, SIGNAL( activated() ), | 1185 | connect( action, SIGNAL( activated() ), |
1165 | SLOT( timetrackinghowto() ) ); | 1186 | SLOT( timetrackinghowto() ) ); |
1166 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 1187 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
1167 | action->addTo( helpMenu ); | 1188 | action->addTo( helpMenu ); |
1168 | connect( action, SIGNAL( activated() ), | 1189 | connect( action, SIGNAL( activated() ), |
1169 | SLOT( synchowto() ) ); | 1190 | SLOT( synchowto() ) ); |
1170 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 1191 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
1171 | action->addTo( helpMenu ); | 1192 | action->addTo( helpMenu ); |
1172 | connect( action, SIGNAL( activated() ), | 1193 | connect( action, SIGNAL( activated() ), |
1173 | SLOT( kdesynchowto() ) ); | 1194 | SLOT( kdesynchowto() ) ); |
1174 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 1195 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
1175 | action->addTo( helpMenu ); | 1196 | action->addTo( helpMenu ); |
1176 | connect( action, SIGNAL( activated() ), | 1197 | connect( action, SIGNAL( activated() ), |
1177 | SLOT( multisynchowto() ) ); | 1198 | SLOT( multisynchowto() ) ); |
1178 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 1199 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
1179 | action->addTo( helpMenu ); | 1200 | action->addTo( helpMenu ); |
1180 | connect( action, SIGNAL( activated() ), | 1201 | connect( action, SIGNAL( activated() ), |
1181 | SLOT( aboutAutoSaving() ) ); | 1202 | SLOT( aboutAutoSaving() ) ); |
1182 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 1203 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
1183 | action->addTo( helpMenu ); | 1204 | action->addTo( helpMenu ); |
1184 | connect( action, SIGNAL( activated() ), | 1205 | connect( action, SIGNAL( activated() ), |
1185 | SLOT( aboutKnownBugs() ) ); | 1206 | SLOT( aboutKnownBugs() ) ); |
1186 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 1207 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
1187 | action->addTo( helpMenu ); | 1208 | action->addTo( helpMenu ); |
1188 | connect( action, SIGNAL( activated() ), | 1209 | connect( action, SIGNAL( activated() ), |
1189 | SLOT( usertrans() ) ); | 1210 | SLOT( usertrans() ) ); |
1190 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 1211 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
1191 | action->addTo( helpMenu ); | 1212 | action->addTo( helpMenu ); |
1192 | connect( action, SIGNAL( activated() ), | 1213 | connect( action, SIGNAL( activated() ), |
1193 | SLOT( faq() ) ); | 1214 | SLOT( faq() ) ); |
1194 | action = new QAction( "licence", i18n("Licence..."), 0, this ); | 1215 | action = new QAction( "licence", i18n("Licence..."), 0, this ); |
1195 | action->addTo( helpMenu ); | 1216 | action->addTo( helpMenu ); |
1196 | connect( action, SIGNAL( activated() ), | 1217 | connect( action, SIGNAL( activated() ), |
1197 | SLOT( licence() ) ); | 1218 | SLOT( licence() ) ); |
1198 | action = new QAction( "about", i18n("About..."), 0, this ); | 1219 | action = new QAction( "about", i18n("About..."), 0, this ); |
1199 | action->addTo( helpMenu ); | 1220 | action->addTo( helpMenu ); |
1200 | connect( action, SIGNAL( activated() ), | 1221 | connect( action, SIGNAL( activated() ), |
1201 | SLOT( about() ) ); | 1222 | SLOT( about() ) ); |
1202 | //menuBar->insertSeparator(); | 1223 | //menuBar->insertSeparator(); |
1203 | 1224 | ||
1204 | // ****************************************************** | 1225 | // ****************************************************** |
1205 | // menubar icons | 1226 | // menubar icons |
1206 | 1227 | ||
1207 | 1228 | ||
1208 | 1229 | ||
1209 | //menuBar->insertItem( iconToolBar ); | 1230 | //menuBar->insertItem( iconToolBar ); |
1210 | //xdays_action | 1231 | //xdays_action |
1211 | if (p-> mShowIconNewEvent) | 1232 | if (p-> mShowIconNewEvent) |
1212 | ne_action->addTo( iconToolBar ); | 1233 | ne_action->addTo( iconToolBar ); |
1213 | if (p->mShowIconNewTodo ) | 1234 | if (p->mShowIconNewTodo ) |
1214 | nt_action->addTo( iconToolBar ); | 1235 | nt_action->addTo( iconToolBar ); |
1215 | if (p-> mShowIconSearch) | 1236 | if (p-> mShowIconSearch) |
1216 | search_action->addTo( iconToolBar ); | 1237 | search_action->addTo( iconToolBar ); |
1217 | if (p-> mShowIconWhatsThis) | 1238 | if (p-> mShowIconWhatsThis) |
1218 | QWhatsThis::whatsThisButton ( iconToolBar ); | 1239 | QWhatsThis::whatsThisButton ( iconToolBar ); |
1219 | if (p-> mShowIconNext) | 1240 | if (p-> mShowIconNext) |
1220 | whatsnext_action->addTo( viewToolBar ); | 1241 | whatsnext_action->addTo( viewToolBar ); |
1221 | if (p-> mShowIconNextDays) | 1242 | if (p-> mShowIconNextDays) |
1222 | xdays_action->addTo( viewToolBar ); | 1243 | xdays_action->addTo( viewToolBar ); |
1223 | if (p-> mShowIconJournal) | 1244 | if (p-> mShowIconJournal) |
1224 | viewjournal_action->addTo( viewToolBar ); | 1245 | viewjournal_action->addTo( viewToolBar ); |
1225 | if (p-> mShowIconDay1) | 1246 | if (p-> mShowIconDay1) |
1226 | day1_action->addTo( viewToolBar ); | 1247 | day1_action->addTo( viewToolBar ); |
1227 | if (p-> mShowIconDay5) | 1248 | if (p-> mShowIconDay5) |
1228 | day5_action->addTo( viewToolBar ); | 1249 | day5_action->addTo( viewToolBar ); |
1229 | if (p-> mShowIconDay7) | 1250 | if (p-> mShowIconDay7) |
1230 | day7_action->addTo( viewToolBar ); | 1251 | day7_action->addTo( viewToolBar ); |
1231 | if (p-> mShowIconDay6) | 1252 | if (p-> mShowIconDay6) |
1232 | day6_action->addTo( viewToolBar ); | 1253 | day6_action->addTo( viewToolBar ); |
1233 | if (p-> mShowIconMonth) | 1254 | if (p-> mShowIconMonth) |
1234 | month_action->addTo( viewToolBar ); | 1255 | month_action->addTo( viewToolBar ); |
1235 | if (p-> mShowIconList) | 1256 | if (p-> mShowIconList) |
1236 | showlist_action->addTo( viewToolBar ); | 1257 | showlist_action->addTo( viewToolBar ); |
1237 | if (p-> mShowIconTodoview) | 1258 | if (p-> mShowIconTodoview) |
1238 | todoview_action->addTo( viewToolBar ); | 1259 | todoview_action->addTo( viewToolBar ); |
1239 | 1260 | ||
1240 | icon = loadPixmap( pathString + "2leftarrowB" ); | 1261 | icon = loadPixmap( pathString + "2leftarrowB" ); |
1241 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); | 1262 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200); |
1242 | if (p-> mShowIconBackFast) { | 1263 | if (p-> mShowIconBackFast) { |
1243 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 1264 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
1244 | connect( action, SIGNAL( activated() ), | 1265 | connect( action, SIGNAL( activated() ), |
1245 | mView, SLOT( goPreviousMonth() ) ); | 1266 | mView, SLOT( goPreviousMonth() ) ); |
1246 | action->addTo( navigatorToolBar ); | 1267 | action->addTo( navigatorToolBar ); |
1247 | } | 1268 | } |
1248 | icon = loadPixmap( pathString + "1leftarrowB" ); | 1269 | icon = loadPixmap( pathString + "1leftarrowB" ); |
1249 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); | 1270 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210); |
1250 | if (p-> mShowIconBack) { | 1271 | if (p-> mShowIconBack) { |
1251 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 1272 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
1252 | connect( action, SIGNAL( activated() ), | 1273 | connect( action, SIGNAL( activated() ), |
1253 | mView, SLOT( goPrevious() ) ); | 1274 | mView, SLOT( goPrevious() ) ); |
1254 | action->addTo( navigatorToolBar ); | 1275 | action->addTo( navigatorToolBar ); |
1255 | } | 1276 | } |
1256 | icon = loadPixmap( pathString + "today" ); | 1277 | icon = loadPixmap( pathString + "today" ); |
1257 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); | 1278 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); |
1258 | if (p-> mShowIconToday) | 1279 | if (p-> mShowIconToday) |
1259 | today_action->addTo( navigatorToolBar ); | 1280 | today_action->addTo( navigatorToolBar ); |
1260 | icon = loadPixmap( pathString + "1rightarrowB" ); | 1281 | icon = loadPixmap( pathString + "1rightarrowB" ); |
1261 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); | 1282 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); |
1262 | if (p-> mShowIconForward) { | 1283 | if (p-> mShowIconForward) { |
1263 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); | 1284 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); |
1264 | connect( action, SIGNAL( activated() ), | 1285 | connect( action, SIGNAL( activated() ), |
1265 | mView, SLOT( goNext() ) ); | 1286 | mView, SLOT( goNext() ) ); |
1266 | action->addTo( navigatorToolBar ); | 1287 | action->addTo( navigatorToolBar ); |
1267 | } | 1288 | } |
1268 | icon = loadPixmap( pathString + "2rightarrowB" ); | 1289 | icon = loadPixmap( pathString + "2rightarrowB" ); |
1269 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); | 1290 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); |
1270 | if (p-> mShowIconForwardFast) { | 1291 | if (p-> mShowIconForwardFast) { |
1271 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); | 1292 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); |
1272 | connect( action, SIGNAL( activated() ), | 1293 | connect( action, SIGNAL( activated() ), |
1273 | mView, SLOT( goNextMonth() ) ); | 1294 | mView, SLOT( goNextMonth() ) ); |
1274 | action->addTo( navigatorToolBar ); | 1295 | action->addTo( navigatorToolBar ); |
1275 | } | 1296 | } |
1276 | 1297 | ||
1277 | 1298 | ||
1278 | configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); | 1299 | configureToolBarMenu->insertItem(i18n("What's This?"), 300, 6); |
1279 | 1300 | ||
1280 | 1301 | ||
1281 | if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); | 1302 | if ( p->mShowIconNavigator ) configureToolBarMenu->setItemChecked( 22 , true); |
1282 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); | 1303 | if ( p->mShowIconAllday ) configureToolBarMenu->setItemChecked( 24 , true); |
1283 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); | 1304 | if ( p->mShowIconFilterview ) configureToolBarMenu->setItemChecked( 26 , true); |
1284 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); | 1305 | if ( p->mShowIconToggleFull ) configureToolBarMenu->setItemChecked( 28 , true); |
1285 | 1306 | ||
1286 | if (p-> mShowIconNewEvent) | 1307 | if (p-> mShowIconNewEvent) |
1287 | configureToolBarMenu->setItemChecked( 10, true ); | 1308 | configureToolBarMenu->setItemChecked( 10, true ); |
1288 | if (p->mShowIconNewTodo ) | 1309 | if (p->mShowIconNewTodo ) |
1289 | configureToolBarMenu->setItemChecked( 20, true ); | 1310 | configureToolBarMenu->setItemChecked( 20, true ); |
1290 | if (p-> mShowIconSearch) | 1311 | if (p-> mShowIconSearch) |
1291 | configureToolBarMenu->setItemChecked( 120, true ); | 1312 | configureToolBarMenu->setItemChecked( 120, true ); |
1292 | if (p-> mShowIconList) | 1313 | if (p-> mShowIconList) |
1293 | configureToolBarMenu->setItemChecked( 30, true ); | 1314 | configureToolBarMenu->setItemChecked( 30, true ); |
1294 | if (p-> mShowIconDay1) | 1315 | if (p-> mShowIconDay1) |
1295 | configureToolBarMenu->setItemChecked( 40, true ); | 1316 | configureToolBarMenu->setItemChecked( 40, true ); |
1296 | if (p-> mShowIconDay5) | 1317 | if (p-> mShowIconDay5) |
1297 | configureToolBarMenu->setItemChecked( 50, true ); | 1318 | configureToolBarMenu->setItemChecked( 50, true ); |
1298 | if (p-> mShowIconDay6) | 1319 | if (p-> mShowIconDay6) |
1299 | configureToolBarMenu->setItemChecked( 75, true ); | 1320 | configureToolBarMenu->setItemChecked( 75, true ); |
1300 | if (p-> mShowIconDay7) | 1321 | if (p-> mShowIconDay7) |
1301 | configureToolBarMenu->setItemChecked( 60, true ); | 1322 | configureToolBarMenu->setItemChecked( 60, true ); |
1302 | if (p-> mShowIconMonth) | 1323 | if (p-> mShowIconMonth) |
1303 | configureToolBarMenu->setItemChecked( 70, true ); | 1324 | configureToolBarMenu->setItemChecked( 70, true ); |
1304 | if (p-> mShowIconTodoview) | 1325 | if (p-> mShowIconTodoview) |
1305 | configureToolBarMenu->setItemChecked( 80, true ); | 1326 | configureToolBarMenu->setItemChecked( 80, true ); |
1306 | if (p-> mShowIconBackFast) | 1327 | if (p-> mShowIconBackFast) |
1307 | configureToolBarMenu->setItemChecked( 200, true ); | 1328 | configureToolBarMenu->setItemChecked( 200, true ); |
1308 | if (p-> mShowIconBack) | 1329 | if (p-> mShowIconBack) |
1309 | configureToolBarMenu->setItemChecked( 210, true ); | 1330 | configureToolBarMenu->setItemChecked( 210, true ); |
1310 | if (p-> mShowIconToday) | 1331 | if (p-> mShowIconToday) |
1311 | configureToolBarMenu->setItemChecked( 130, true ); | 1332 | configureToolBarMenu->setItemChecked( 130, true ); |
1312 | if (p-> mShowIconForward) | 1333 | if (p-> mShowIconForward) |
1313 | configureToolBarMenu->setItemChecked( 220, true ); | 1334 | configureToolBarMenu->setItemChecked( 220, true ); |
1314 | if (p-> mShowIconForwardFast) | 1335 | if (p-> mShowIconForwardFast) |
1315 | configureToolBarMenu->setItemChecked( 230, true ); | 1336 | configureToolBarMenu->setItemChecked( 230, true ); |
1316 | if (p-> mShowIconNextDays) | 1337 | if (p-> mShowIconNextDays) |
1317 | configureToolBarMenu->setItemChecked( 100, true ); | 1338 | configureToolBarMenu->setItemChecked( 100, true ); |
1318 | if (p-> mShowIconNext) | 1339 | if (p-> mShowIconNext) |
1319 | configureToolBarMenu->setItemChecked( 110, true ); | 1340 | configureToolBarMenu->setItemChecked( 110, true ); |
1320 | if (p-> mShowIconJournal) | 1341 | if (p-> mShowIconJournal) |
1321 | configureToolBarMenu->setItemChecked( 90, true ); | 1342 | configureToolBarMenu->setItemChecked( 90, true ); |
1322 | if (p-> mShowIconWhatsThis) | 1343 | if (p-> mShowIconWhatsThis) |
1323 | configureToolBarMenu->setItemChecked( 300, true ); | 1344 | configureToolBarMenu->setItemChecked( 300, true ); |
1324 | if (p-> mShowIconWeekNum) | 1345 | if (p-> mShowIconWeekNum) |
1325 | configureToolBarMenu->setItemChecked( 400, true ); | 1346 | configureToolBarMenu->setItemChecked( 400, true ); |
1326 | if (!p-> mShowIconStretch) { | 1347 | if (!p-> mShowIconStretch) { |
1327 | QLabel* dummy = new QLabel( iconToolBar ); | 1348 | QLabel* dummy = new QLabel( iconToolBar ); |
1328 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1349 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
1329 | dummy->setMinimumWidth( 0 ); | 1350 | dummy->setMinimumWidth( 0 ); |
1330 | iconToolBar->setStretchableWidget ( dummy ) ; | 1351 | iconToolBar->setStretchableWidget ( dummy ) ; |
1331 | } | 1352 | } |
1332 | else { | 1353 | else { |
1333 | iconToolBar->setHorizontalStretchable (true ); | 1354 | iconToolBar->setHorizontalStretchable (true ); |
1334 | viewToolBar->setHorizontalStretchable (true ); | 1355 | viewToolBar->setHorizontalStretchable (true ); |
1335 | navigatorToolBar->setHorizontalStretchable (true ); | 1356 | navigatorToolBar->setHorizontalStretchable (true ); |
1336 | iconToolBar->setVerticalStretchable (true ); | 1357 | iconToolBar->setVerticalStretchable (true ); |
1337 | viewToolBar->setVerticalStretchable (true ); | 1358 | viewToolBar->setVerticalStretchable (true ); |
1338 | navigatorToolBar->setVerticalStretchable (true ); | 1359 | navigatorToolBar->setVerticalStretchable (true ); |
1339 | configureToolBarMenu->setItemChecked( 5, true ); | 1360 | configureToolBarMenu->setItemChecked( 5, true ); |
1340 | } | 1361 | } |
1341 | if (p-> mShowIconFilter) | 1362 | if (p-> mShowIconFilter) |
1342 | configureToolBarMenu->setItemChecked( 7, true ); | 1363 | configureToolBarMenu->setItemChecked( 7, true ); |
1343 | if (p-> mShowIconOnetoolbar) | 1364 | if (p-> mShowIconOnetoolbar) |
1344 | configureToolBarMenu->setItemChecked( 6, true ); | 1365 | configureToolBarMenu->setItemChecked( 6, true ); |
1345 | 1366 | ||
1346 | 1367 | ||
1347 | if ( filterMenubar ) { | 1368 | if ( filterMenubar ) { |
1348 | filterMenubar->reparent(filterToolBar,0,QPoint(0,0) ); | 1369 | filterMenubar->reparent(filterToolBar,0,QPoint(0,0) ); |
1349 | connect( mView, SIGNAL( filtersUpdated() ), SLOT( updateFilterToolbar() ) ); | 1370 | connect( mView, SIGNAL( filtersUpdated() ), SLOT( updateFilterToolbar() ) ); |
1350 | } | 1371 | } |
1351 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 1372 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
1352 | configureAgenda( p->mHourSize ); | 1373 | configureAgenda( p->mHourSize ); |
1353 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 1374 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
1354 | } | 1375 | } |
1355 | 1376 | ||
1356 | void MainWindow::exportToPhone( int mode ) | 1377 | void MainWindow::exportToPhone( int mode ) |
1357 | { | 1378 | { |
1358 | 1379 | ||
1359 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1380 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1360 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1381 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1361 | KOex2phonePrefs ex2phone; | 1382 | KOex2phonePrefs ex2phone; |
1362 | 1383 | ||
1363 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 1384 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
1364 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 1385 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
1365 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1386 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1366 | if ( mode == 1 ) | 1387 | if ( mode == 1 ) |
1367 | ex2phone.setCaption(i18n("Export complete calendar")); | 1388 | ex2phone.setCaption(i18n("Export complete calendar")); |
1368 | if ( mode == 2 ) | 1389 | if ( mode == 2 ) |
1369 | ex2phone.setCaption(i18n("Export filtered calendar")); | 1390 | ex2phone.setCaption(i18n("Export filtered calendar")); |
1370 | 1391 | ||
1371 | if ( !ex2phone.exec() ) { | 1392 | if ( !ex2phone.exec() ) { |
1372 | return; | 1393 | return; |
1373 | } | 1394 | } |
1374 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 1395 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
1375 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 1396 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
1376 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 1397 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
1377 | 1398 | ||
1378 | int inFuture = 0; | 1399 | int inFuture = 0; |
1379 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 1400 | if ( ex2phone.mWriteBackFuture->isChecked() ) |
1380 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); | 1401 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); |
1381 | QPtrList<Incidence> delSel; | 1402 | QPtrList<Incidence> delSel; |
1382 | if ( mode == 1 ) | 1403 | if ( mode == 1 ) |
1383 | delSel = mCalendar->rawIncidences(); | 1404 | delSel = mCalendar->rawIncidences(); |
1384 | if ( mode == 2 ) | 1405 | if ( mode == 2 ) |
1385 | delSel = mCalendar->incidences(); | 1406 | delSel = mCalendar->incidences(); |
1386 | CalendarLocal* cal = new CalendarLocal(); | 1407 | CalendarLocal* cal = new CalendarLocal(); |
1387 | cal->setLocalTime(); | 1408 | cal->setLocalTime(); |
1388 | Incidence *incidence = delSel.first(); | 1409 | Incidence *incidence = delSel.first(); |
1389 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); | 1410 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); |
1390 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); | 1411 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); |
1391 | while ( incidence ) { | 1412 | while ( incidence ) { |
1392 | if ( incidence->typeID() != journalID ) { | 1413 | if ( incidence->typeID() != journalID ) { |
1393 | bool add = true; | 1414 | bool add = true; |
1394 | if ( inFuture ) { | 1415 | if ( inFuture ) { |
1395 | QDateTime dt; | 1416 | QDateTime dt; |
1396 | if ( incidence->typeID() == todoID ) { | 1417 | if ( incidence->typeID() == todoID ) { |
1397 | Todo * t = (Todo*)incidence; | 1418 | Todo * t = (Todo*)incidence; |
1398 | if ( t->hasDueDate() ) | 1419 | if ( t->hasDueDate() ) |
1399 | dt = t->dtDue(); | 1420 | dt = t->dtDue(); |
1400 | else | 1421 | else |
1401 | dt = cur.addSecs( 62 ); | 1422 | dt = cur.addSecs( 62 ); |
1402 | } | 1423 | } |
1403 | else { | 1424 | else { |
1404 | bool ok; | 1425 | bool ok; |
1405 | dt = incidence->getNextOccurence( cur, &ok ); | 1426 | dt = incidence->getNextOccurence( cur, &ok ); |
1406 | if ( !ok ) | 1427 | if ( !ok ) |
1407 | dt = cur.addSecs( -62 ); | 1428 | dt = cur.addSecs( -62 ); |
1408 | } | 1429 | } |
1409 | if ( dt < cur || dt > end ) { | 1430 | if ( dt < cur || dt > end ) { |
1410 | add = false; | 1431 | add = false; |
1411 | } | 1432 | } |
1412 | } | 1433 | } |
1413 | if ( add ) { | 1434 | if ( add ) { |
1414 | Incidence *in = incidence->clone(); | 1435 | Incidence *in = incidence->clone(); |
1415 | cal->addIncidence( in ); | 1436 | cal->addIncidence( in ); |
1416 | } | 1437 | } |
1417 | } | 1438 | } |
1418 | incidence = delSel.next(); | 1439 | incidence = delSel.next(); |
1419 | } | 1440 | } |
1420 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 1441 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
1421 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 1442 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
1422 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1443 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1423 | 1444 | ||
1424 | setCaption( i18n("Writing to phone...")); | 1445 | setCaption( i18n("Writing to phone...")); |
1425 | if ( PhoneFormat::writeToPhone( cal ) ) | 1446 | if ( PhoneFormat::writeToPhone( cal ) ) |
1426 | setCaption( i18n("Export to phone successful!")); | 1447 | setCaption( i18n("Export to phone successful!")); |
1427 | else | 1448 | else |
1428 | setCaption( i18n("Error exporting to phone!")); | 1449 | setCaption( i18n("Error exporting to phone!")); |
1429 | delete cal; | 1450 | delete cal; |
1430 | } | 1451 | } |
1431 | 1452 | ||
1432 | 1453 | ||
1433 | void MainWindow::setDefaultPreferences() | 1454 | void MainWindow::setDefaultPreferences() |
1434 | { | 1455 | { |
1435 | KOPrefs *p = KOPrefs::instance(); | 1456 | KOPrefs *p = KOPrefs::instance(); |
1436 | 1457 | ||
1437 | p->mCompactDialogs = true; | 1458 | p->mCompactDialogs = true; |
1438 | p->mConfirm = true; | 1459 | p->mConfirm = true; |
1439 | // p->mEnableQuickTodo = false; | 1460 | // p->mEnableQuickTodo = false; |
1440 | 1461 | ||
1441 | } | 1462 | } |
1442 | 1463 | ||
1443 | QString MainWindow::resourcePath() | 1464 | QString MainWindow::resourcePath() |
1444 | { | 1465 | { |
1445 | return KGlobal::iconLoader()->iconPath(); | 1466 | return KGlobal::iconLoader()->iconPath(); |
1446 | } | 1467 | } |
1447 | 1468 | ||
1448 | void MainWindow::displayText( QString text ,QString cap ) | 1469 | void MainWindow::displayText( QString text ,QString cap ) |
1449 | { | 1470 | { |
1450 | QDialog dia( this, "name", true ); ; | 1471 | QDialog dia( this, "name", true ); ; |
1451 | dia.setCaption( cap ); | 1472 | dia.setCaption( cap ); |
1452 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1473 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1453 | lay->setSpacing( 3 ); | 1474 | lay->setSpacing( 3 ); |
1454 | lay->setMargin( 3 ); | 1475 | lay->setMargin( 3 ); |
1455 | QTextBrowser tb ( &dia ); | 1476 | QTextBrowser tb ( &dia ); |
1456 | lay->addWidget( &tb ); | 1477 | lay->addWidget( &tb ); |
1457 | tb.setText( text ); | 1478 | tb.setText( text ); |
1458 | #ifdef DESKTOP_VERSION | 1479 | #ifdef DESKTOP_VERSION |
1459 | dia.resize( 640, 480); | 1480 | dia.resize( 640, 480); |
1460 | #else | 1481 | #else |
1461 | dia.showMaximized(); | 1482 | dia.showMaximized(); |
1462 | #endif | 1483 | #endif |
1463 | dia.exec(); | 1484 | dia.exec(); |
1464 | } | 1485 | } |
1465 | 1486 | ||
1466 | void MainWindow::features() | 1487 | void MainWindow::features() |
1467 | { | 1488 | { |
1468 | 1489 | ||
1469 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); | 1490 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); |
1470 | } | 1491 | } |
1471 | 1492 | ||
1472 | void MainWindow::usertrans() | 1493 | void MainWindow::usertrans() |
1473 | { | 1494 | { |
1474 | 1495 | ||
1475 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); | 1496 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); |
1476 | } | 1497 | } |
1477 | 1498 | ||
1478 | void MainWindow::storagehowto() | 1499 | void MainWindow::storagehowto() |
1479 | { | 1500 | { |
1480 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); | 1501 | KApplication::showFile( "KDE-Pim/Pi Storage HowTo", "kdepim/storagehowto.txt" ); |
1481 | } | 1502 | } |
1482 | void MainWindow::timetrackinghowto() | 1503 | void MainWindow::timetrackinghowto() |
1483 | { | 1504 | { |
1484 | KApplication::showFile( "KO/Pi Timetracking HowTo", "kdepim/timetrackerhowto.txt" ); | 1505 | KApplication::showFile( "KO/Pi Timetracking HowTo", "kdepim/timetrackerhowto.txt" ); |
1485 | } | 1506 | } |
1486 | void MainWindow::kdesynchowto() | 1507 | void MainWindow::kdesynchowto() |
1487 | { | 1508 | { |
1488 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 1509 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
1489 | } | 1510 | } |
1490 | void MainWindow::multisynchowto() | 1511 | void MainWindow::multisynchowto() |
1491 | { | 1512 | { |
1492 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 1513 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
1493 | } | 1514 | } |
1494 | void MainWindow::synchowto() | 1515 | void MainWindow::synchowto() |
1495 | { | 1516 | { |
1496 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 1517 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1497 | } | 1518 | } |
1498 | void MainWindow::faq() | 1519 | void MainWindow::faq() |
1499 | { | 1520 | { |
1500 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); | 1521 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); |
1501 | 1522 | ||
1502 | } | 1523 | } |
1503 | void MainWindow::whatsNew() | 1524 | void MainWindow::whatsNew() |
1504 | { | 1525 | { |
1505 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 1526 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1506 | 1527 | ||
1507 | } | 1528 | } |
1508 | void MainWindow::licence() | 1529 | void MainWindow::licence() |
1509 | { | 1530 | { |
1510 | KApplication::showLicence(); | 1531 | KApplication::showLicence(); |
1511 | 1532 | ||
1512 | } | 1533 | } |
1513 | void MainWindow::about() | 1534 | void MainWindow::about() |
1514 | { | 1535 | { |
1515 | QString version; | 1536 | QString version; |
1516 | #include <../version> | 1537 | #include <../version> |
1517 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1538 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1518 | i18n("KOrganizer/Platform-independent\n") + | 1539 | i18n("KOrganizer/Platform-independent\n") + |
1519 | "(KO/Pi) " + version + " - " + | 1540 | "(KO/Pi) " + version + " - " + |
1520 | 1541 | ||
1521 | #ifdef DESKTOP_VERSION | 1542 | #ifdef DESKTOP_VERSION |
1522 | i18n("Desktop Edition\n") + | 1543 | i18n("Desktop Edition\n") + |
1523 | #else | 1544 | #else |
1524 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + | 1545 | i18n("PDA-Edition\nfor: Zaurus 5x00/7x0/860/3000/6000\n") + |
1525 | #endif | 1546 | #endif |
1526 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); | 1547 | i18n("(c)2004 Lutz Rogowski (rogowski@kde.org)\nKO/Pi is based on KOrganizer\n(c)2002,2003 Cornelius Schumacher\n(schumacher@kde.org) and the KDE team.\nKOrganizer/Pi is licensed under the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.pi-sync.info --- www.korganizer.org\nSpecial thanks to Michael and Ben\nfor intensive testing!") ); |
1527 | } | 1548 | } |
1528 | void MainWindow::keyBindings() | 1549 | void MainWindow::keyBindings() |
1529 | { | 1550 | { |
1530 | QString cap = i18n("KO/Pi Keys + Colors"); | 1551 | QString cap = i18n("KO/Pi Keys + Colors"); |
1531 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1552 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1532 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1553 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1533 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + | 1554 | i18n("<p><b>N</b>: Switch to next view which has a toolbar icon</p>\n") + |
1534 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + | 1555 | i18n("<p><b>A+(shift or ctrl)</b>: Show occurence of next alarm</p>\n") + |
1535 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1556 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1536 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1557 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1537 | i18n("<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n")+ | 1558 | i18n("<p><b>R</b>: Toggle Resource View |<b>F</b>: Edit filter </p>\n")+ |
1538 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1559 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1539 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1560 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1540 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ | 1561 | i18n("<p><b>X</b>: Next X days view| <b>W</b>: What's next view\n ")+ |
1541 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1562 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1542 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1563 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1543 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1564 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1544 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ | 1565 | i18n("<p><b>K</b>: Week view in Month view syle</p>\n")+ |
1545 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1566 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1546 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1567 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1547 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ | 1568 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X+ctrl</b>: Toggle datenavigator</p>\n")+ |
1548 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1569 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1549 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1570 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1550 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1571 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1551 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1572 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1552 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1573 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1553 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1574 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1554 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1575 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1555 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1576 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1556 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1577 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1557 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1578 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1558 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ | 1579 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ |
1559 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ | 1580 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ |
1560 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ | 1581 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ |
1561 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1582 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1562 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1583 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1563 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1584 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1564 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1585 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1565 | i18n("<p><h3>In list view:</h3></p>\n") + | 1586 | i18n("<p><h3>In list view:</h3></p>\n") + |
1566 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1587 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1567 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1588 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1568 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1589 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1569 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1590 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1570 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1591 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1571 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1592 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1572 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1593 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1573 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1594 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1574 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1595 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1575 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1596 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1576 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1597 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1577 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1598 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1578 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1599 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1579 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1600 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1580 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1601 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1581 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1602 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1582 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1603 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1583 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1604 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1584 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1605 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1585 | displayText( text, cap); | 1606 | displayText( text, cap); |
1586 | } | 1607 | } |
1587 | void MainWindow::aboutAutoSaving() | 1608 | void MainWindow::aboutAutoSaving() |
1588 | { | 1609 | { |
1589 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); | 1610 | QString text = i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"); |
1590 | 1611 | ||
1591 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); | 1612 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); |
1592 | 1613 | ||
1593 | } | 1614 | } |
1594 | void MainWindow::aboutKnownBugs() | 1615 | void MainWindow::aboutKnownBugs() |
1595 | { | 1616 | { |
1596 | QMessageBox* msg; | 1617 | QMessageBox* msg; |
1597 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), | 1618 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), |
1598 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ | 1619 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ |
1599 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ | 1620 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ |
1600 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + | 1621 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.info\n") + |
1601 | i18n("\nor report them in the bugtracker on\n") + | 1622 | i18n("\nor report them in the bugtracker on\n") + |
1602 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), | 1623 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), |
1603 | QMessageBox::NoIcon, | 1624 | QMessageBox::NoIcon, |
1604 | QMessageBox::Ok, | 1625 | QMessageBox::Ok, |
1605 | QMessageBox::NoButton, | 1626 | QMessageBox::NoButton, |
1606 | QMessageBox::NoButton); | 1627 | QMessageBox::NoButton); |
1607 | msg->exec(); | 1628 | msg->exec(); |
1608 | delete msg; | 1629 | delete msg; |
1609 | 1630 | ||
1610 | } | 1631 | } |
1611 | 1632 | ||
1612 | QString MainWindow::defaultFileName() | 1633 | QString MainWindow::defaultFileName() |
1613 | { | 1634 | { |
1614 | return locateLocal( "data", "korganizer/mycalendar.ics" ); | 1635 | return locateLocal( "data", "korganizer/mycalendar.ics" ); |
1615 | } | 1636 | } |
1616 | QString MainWindow::syncFileName() | 1637 | QString MainWindow::syncFileName() |
1617 | { | 1638 | { |
1618 | #ifdef DESKTOP_VERSION | 1639 | #ifdef DESKTOP_VERSION |
1619 | return locateLocal( "tmp", "synccalendar.ics" ); | 1640 | return locateLocal( "tmp", "synccalendar.ics" ); |
1620 | #else | 1641 | #else |
1621 | return QString( "/tmp/synccalendar.ics" ); | 1642 | return QString( "/tmp/synccalendar.ics" ); |
1622 | #endif | 1643 | #endif |
1623 | } | 1644 | } |
1624 | #include "koglobals.h" | 1645 | #include "koglobals.h" |
1625 | #include <kcalendarsystem.h> | 1646 | #include <kcalendarsystem.h> |
1626 | void MainWindow::updateWeek(QDate seda) | 1647 | void MainWindow::updateWeek(QDate seda) |
1627 | { | 1648 | { |
1628 | int weekNum = KGlobal::locale()->weekNum ( seda ); | 1649 | int weekNum = KGlobal::locale()->weekNum ( seda ); |
1629 | mWeekPixmap.fill( mWeekBgColor ); | 1650 | mWeekPixmap.fill( mWeekBgColor ); |
1630 | QPainter p ( &mWeekPixmap ); | 1651 | QPainter p ( &mWeekPixmap ); |
1631 | p.setFont( mWeekFont ); | 1652 | p.setFont( mWeekFont ); |
1632 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); | 1653 | p.drawText( 0,0,mWeekPixmap.width(), mWeekPixmap.height(),AlignCenter, QString::number( weekNum) ); |
1633 | p.end(); | 1654 | p.end(); |
1634 | QIconSet icon3 ( mWeekPixmap ); | 1655 | QIconSet icon3 ( mWeekPixmap ); |
1635 | mWeekAction->setIconSet ( icon3 ); | 1656 | mWeekAction->setIconSet ( icon3 ); |
1636 | 1657 | ||
1637 | } | 1658 | } |
1638 | void MainWindow::updateWeekNum(const DateList &selectedDates) | 1659 | void MainWindow::updateWeekNum(const DateList &selectedDates) |
1639 | { | 1660 | { |
1640 | updateWeek( selectedDates.first() ); | 1661 | updateWeek( selectedDates.first() ); |
1641 | } | 1662 | } |
1642 | void MainWindow::processIncidenceSelection( Incidence *incidence ) | 1663 | void MainWindow::processIncidenceSelection( Incidence *incidence ) |
1643 | { | 1664 | { |
1644 | 1665 | ||
1645 | if ( !incidence ) { | 1666 | if ( !incidence ) { |
1646 | enableIncidenceActions( false ); | 1667 | enableIncidenceActions( false ); |
1647 | 1668 | ||
1648 | mNewSubTodoAction->setEnabled( false ); | 1669 | mNewSubTodoAction->setEnabled( false ); |
1649 | setCaptionToDates(); | 1670 | setCaptionToDates(); |
1650 | return; | 1671 | return; |
1651 | 1672 | ||
1652 | } | 1673 | } |
1653 | 1674 | ||
1654 | //KGlobal::locale()->formatDateTime(nextA, true); | 1675 | //KGlobal::locale()->formatDateTime(nextA, true); |
1655 | QString startString = ""; | 1676 | QString startString = ""; |
1656 | if ( incidence->typeID() != todoID ) { | 1677 | if ( incidence->typeID() != todoID ) { |
1657 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { | 1678 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { |
1658 | if ( incidence->doesFloat() ) { | 1679 | if ( incidence->doesFloat() ) { |
1659 | startString += ": "+incidence->dtStartDateStr( true ); | 1680 | startString += ": "+incidence->dtStartDateStr( true ); |
1660 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); | 1681 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); |
1661 | 1682 | ||
1662 | } else { | 1683 | } else { |
1663 | startString = ": "+incidence->dtStartStr(true); | 1684 | startString = ": "+incidence->dtStartStr(true); |
1664 | startString += " --- "+((Event*)incidence)->dtEndStr(true); | 1685 | startString += " --- "+((Event*)incidence)->dtEndStr(true); |
1665 | 1686 | ||
1666 | } | 1687 | } |
1667 | 1688 | ||
1668 | } else { | 1689 | } else { |
1669 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) | 1690 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) |
1670 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ | 1691 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ |
1671 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); | 1692 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); |
1672 | 1693 | ||
1673 | if ( incidence->isBirthday() || incidence->isAnniversary() ) { | 1694 | if ( incidence->isBirthday() || incidence->isAnniversary() ) { |
1674 | bool ok; | 1695 | bool ok; |
1675 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); | 1696 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); |
1676 | if ( ok ) { | 1697 | if ( ok ) { |
1677 | int years = noc.date().year() - incidence->dtStart().date().year(); | 1698 | int years = noc.date().year() - incidence->dtStart().date().year(); |
1678 | startString += i18n(" (%1 y.)"). arg( years ); | 1699 | startString += i18n(" (%1 y.)"). arg( years ); |
1679 | } | 1700 | } |
1680 | } | 1701 | } |
1681 | else | 1702 | else |
1682 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); | 1703 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); |
1683 | } | 1704 | } |
1684 | 1705 | ||
1685 | } | 1706 | } |
1686 | else | 1707 | else |
1687 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); | 1708 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); |
1688 | if ( !incidence->location().isEmpty() ) | 1709 | if ( !incidence->location().isEmpty() ) |
1689 | startString += " (" +incidence->location()+")"; | 1710 | startString += " (" +incidence->location()+")"; |
1690 | setCaption( incidence->summary()+startString); | 1711 | setCaption( incidence->summary()+startString); |
1691 | 1712 | ||
1692 | enableIncidenceActions( true ); | 1713 | enableIncidenceActions( true ); |
1693 | 1714 | ||
1694 | if ( incidence->typeID() == eventID ) { | 1715 | if ( incidence->typeID() == eventID ) { |
1695 | mShowAction->setText( i18n("Show Event...") ); | 1716 | mShowAction->setText( i18n("Show Event...") ); |
1696 | mEditAction->setText( i18n("Edit Event...") ); | 1717 | mEditAction->setText( i18n("Edit Event...") ); |
1697 | mDeleteAction->setText( i18n("Delete Event...") ); | 1718 | mDeleteAction->setText( i18n("Delete Event...") ); |
1698 | 1719 | ||
1699 | mNewSubTodoAction->setEnabled( false ); | 1720 | mNewSubTodoAction->setEnabled( false ); |
1700 | } else if ( incidence->typeID() == todoID ) { | 1721 | } else if ( incidence->typeID() == todoID ) { |
1701 | mShowAction->setText( i18n("Show Todo...") ); | 1722 | mShowAction->setText( i18n("Show Todo...") ); |
1702 | mEditAction->setText( i18n("Edit Todo...") ); | 1723 | mEditAction->setText( i18n("Edit Todo...") ); |
1703 | mDeleteAction->setText( i18n("Delete Todo...") ); | 1724 | mDeleteAction->setText( i18n("Delete Todo...") ); |
1704 | 1725 | ||
1705 | mNewSubTodoAction->setEnabled( true ); | 1726 | mNewSubTodoAction->setEnabled( true ); |
1706 | } else { | 1727 | } else { |
1707 | mShowAction->setText( i18n("Show...") ); | 1728 | mShowAction->setText( i18n("Show...") ); |
1708 | mShowAction->setText( i18n("Edit...") ); | 1729 | mShowAction->setText( i18n("Edit...") ); |
1709 | mShowAction->setText( i18n("Delete...") ); | 1730 | mShowAction->setText( i18n("Delete...") ); |
1710 | 1731 | ||
1711 | mNewSubTodoAction->setEnabled( false ); | 1732 | mNewSubTodoAction->setEnabled( false ); |
1712 | } | 1733 | } |
1713 | } | 1734 | } |
1714 | 1735 | ||
1715 | void MainWindow::enableIncidenceActions( bool enabled ) | 1736 | void MainWindow::enableIncidenceActions( bool enabled ) |
1716 | { | 1737 | { |
1738 | |||
1739 | #ifndef DESKTOP_VERSION | ||
1740 | mCurrentItemMenu->setEnabled( enabled ); | ||
1741 | #else | ||
1717 | mShowAction->setEnabled( enabled ); | 1742 | mShowAction->setEnabled( enabled ); |
1718 | mEditAction->setEnabled( enabled ); | 1743 | mEditAction->setEnabled( enabled ); |
1719 | mDeleteAction->setEnabled( enabled ); | 1744 | mDeleteAction->setEnabled( enabled ); |
1720 | 1745 | ||
1721 | mCloneAction->setEnabled( enabled ); | 1746 | mCloneAction->setEnabled( enabled ); |
1722 | mMoveAction->setEnabled( enabled ); | 1747 | mMoveAction->setEnabled( enabled ); |
1723 | mBeamAction->setEnabled( enabled ); | 1748 | mBeamAction->setEnabled( enabled ); |
1724 | mCancelAction->setEnabled( enabled ); | 1749 | mCancelAction->setEnabled( enabled ); |
1750 | #endif | ||
1725 | } | 1751 | } |
1726 | 1752 | ||
1727 | void MainWindow::importOL() | 1753 | void MainWindow::importOL() |
1728 | { | 1754 | { |
1729 | #ifdef _OL_IMPORT_ | 1755 | #ifdef _OL_IMPORT_ |
1730 | mView->clearAllViews(); | 1756 | mView->clearAllViews(); |
1731 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1757 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1732 | id->exec(); | 1758 | id->exec(); |
1733 | delete id; | 1759 | delete id; |
1734 | mView->calendar()->checkAlarmForIncidence( 0, true ); | 1760 | mView->calendar()->checkAlarmForIncidence( 0, true ); |
1735 | mView->updateView(); | 1761 | mView->updateView(); |
1736 | #endif | 1762 | #endif |
1737 | } | 1763 | } |
1738 | void MainWindow::importBday() | 1764 | void MainWindow::importBday() |
1739 | { | 1765 | { |
1740 | int result = QMessageBox::warning( this, i18n("KO/Pi import information!"), | 1766 | int result = QMessageBox::warning( this, i18n("KO/Pi import information!"), |
1741 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), | 1767 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), |
1742 | i18n("Import!"), i18n("Cancel"), 0, | 1768 | i18n("Import!"), i18n("Cancel"), 0, |
1743 | 0, 1 ); | 1769 | 0, 1 ); |
1744 | if ( result == 0 ) { | 1770 | if ( result == 0 ) { |
1745 | mView->importBday(); | 1771 | mView->importBday(); |
1746 | 1772 | ||
1747 | } | 1773 | } |
1748 | 1774 | ||
1749 | 1775 | ||
1750 | } | 1776 | } |
1751 | void MainWindow::importQtopia() | 1777 | void MainWindow::importQtopia() |
1752 | { | 1778 | { |
1753 | //#ifndef DESKTOP_VERSION | 1779 | //#ifndef DESKTOP_VERSION |
1754 | QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"); | 1780 | QString mess = i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"); |
1755 | #ifdef DESKTOP_VERSION | 1781 | #ifdef DESKTOP_VERSION |
1756 | mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml"); | 1782 | mess += i18n("The content of the following files will be\nimported (located in your home directory (hd)):\n(hd)/Applications/datebook/datebook.xml\n(hd)/Applications/todolist/todolist.xml\nThe following category file will be used:\n(hd)/Settings/Categories.xml"); |
1757 | #endif | 1783 | #endif |
1758 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, | 1784 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mess, |
1759 | i18n("Import!"), i18n("Cancel"), 0, | 1785 | i18n("Import!"), i18n("Cancel"), 0, |
1760 | 0, 1 ); | 1786 | 0, 1 ); |
1761 | if ( result == 0 ) { | 1787 | if ( result == 0 ) { |
1762 | #ifndef DESKTOP_VERSION | 1788 | #ifndef DESKTOP_VERSION |
1763 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); | 1789 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); |
1764 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); | 1790 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); |
1765 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; | 1791 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; |
1766 | #else | 1792 | #else |
1767 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; | 1793 | QString datebook = QDir::homeDirPath()+ "/Applications/datebook/datebook.xml"; |
1768 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; | 1794 | QString todolist = QDir::homeDirPath()+ "/Applications/todolist/todolist.xml"; |
1769 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; | 1795 | QString categories = QDir::homeDirPath()+ "/Settings/Categories.xml"; |
1770 | #endif | 1796 | #endif |
1771 | mView->importQtopia( categories, datebook, todolist ); | 1797 | mView->importQtopia( categories, datebook, todolist ); |
1772 | } | 1798 | } |
1773 | mView->calendar()->reInitAlarmSettings(); | 1799 | mView->calendar()->reInitAlarmSettings(); |
1774 | #if 0 | 1800 | #if 0 |
1775 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1801 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1776 | i18n("Not supported \non desktop!\n"), | 1802 | i18n("Not supported \non desktop!\n"), |
1777 | i18n("Ok"), i18n("Cancel"), 0, | 1803 | i18n("Ok"), i18n("Cancel"), 0, |
1778 | 0, 1 ); | 1804 | 0, 1 ); |
1779 | 1805 | ||
1780 | #endif | 1806 | #endif |
1781 | } | 1807 | } |
1782 | 1808 | ||
1783 | void MainWindow::saveOnClose() | 1809 | void MainWindow::saveOnClose() |
1784 | { | 1810 | { |
1785 | KOPrefs *p = KOPrefs::instance(); | 1811 | KOPrefs *p = KOPrefs::instance(); |
1786 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1812 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1787 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); | 1813 | p->mToolBarHorV = ( viewToolBar->orientation () == Qt:: Horizontal ); |
1788 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); | 1814 | p->mToolBarHorN = ( navigatorToolBar->orientation () == Qt:: Horizontal ); |
1789 | if ( filterToolBar ) { | 1815 | if ( filterToolBar ) { |
1790 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); | 1816 | p->mToolBarHorF = ( filterToolBar->orientation () == Qt:: Horizontal ); |
1791 | } | 1817 | } |
1792 | #ifdef DESKTOP_VERSION | 1818 | #ifdef DESKTOP_VERSION |
1793 | 1819 | ||
1794 | QPoint myP; | 1820 | QPoint myP; |
1795 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1821 | myP = mapFromGlobal( iconToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1796 | if ( p->mToolBarHor ) | 1822 | if ( p->mToolBarHor ) |
1797 | p->mToolBarUp = myP.y() > height()/2; | 1823 | p->mToolBarUp = myP.y() > height()/2; |
1798 | else | 1824 | else |
1799 | p->mToolBarUp = myP.x() > width()/2; | 1825 | p->mToolBarUp = myP.x() > width()/2; |
1800 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1826 | myP = mapFromGlobal( viewToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1801 | if ( p->mToolBarHorV ) | 1827 | if ( p->mToolBarHorV ) |
1802 | p->mToolBarUpV = myP.y() > height()/2; | 1828 | p->mToolBarUpV = myP.y() > height()/2; |
1803 | else | 1829 | else |
1804 | p->mToolBarUpV = myP.x() > width()/2 ; | 1830 | p->mToolBarUpV = myP.x() > width()/2 ; |
1805 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1831 | myP = mapFromGlobal( navigatorToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1806 | if ( p->mToolBarHorN ) | 1832 | if ( p->mToolBarHorN ) |
1807 | p->mToolBarUpN = myP.y() > height()/2; | 1833 | p->mToolBarUpN = myP.y() > height()/2; |
1808 | else | 1834 | else |
1809 | p->mToolBarUpN = myP.x() > width()/2 ; | 1835 | p->mToolBarUpN = myP.x() > width()/2 ; |
1810 | if ( filterToolBar ) { | 1836 | if ( filterToolBar ) { |
1811 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); | 1837 | myP = mapFromGlobal( filterToolBar->mapToGlobal( QPoint( 0,0) ) ); |
1812 | if ( p->mToolBarHorF ) | 1838 | if ( p->mToolBarHorF ) |
1813 | p->mToolBarUpF = myP.y() > height()/2; | 1839 | p->mToolBarUpF = myP.y() > height()/2; |
1814 | else | 1840 | else |
1815 | p->mToolBarUpF = myP.x() > width()/2 ; | 1841 | p->mToolBarUpF = myP.x() > width()/2 ; |
1816 | } | 1842 | } |
1817 | #else | 1843 | #else |
1818 | if ( p->mToolBarHor ) | 1844 | if ( p->mToolBarHor ) |
1819 | p->mToolBarUp = iconToolBar->y() > height()/2; | 1845 | p->mToolBarUp = iconToolBar->y() > height()/2; |
1820 | else | 1846 | else |
1821 | p->mToolBarUp = iconToolBar->x() > width()/2; | 1847 | p->mToolBarUp = iconToolBar->x() > width()/2; |
1822 | if ( p->mToolBarHorV ) | 1848 | if ( p->mToolBarHorV ) |
1823 | p->mToolBarUpV = viewToolBar->y() > height()/2; | 1849 | p->mToolBarUpV = viewToolBar->y() > height()/2; |
1824 | else | 1850 | else |
1825 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; | 1851 | p->mToolBarUpV = viewToolBar->x() > width()/2 ; |
1826 | 1852 | ||
1827 | if ( p->mToolBarHorN ) | 1853 | if ( p->mToolBarHorN ) |
1828 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; | 1854 | p->mToolBarUpN = navigatorToolBar->y() > height()/2; |
1829 | else | 1855 | else |
1830 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; | 1856 | p->mToolBarUpN = navigatorToolBar->x() > width()/2 ; |
1831 | if ( filterToolBar ) { | 1857 | if ( filterToolBar ) { |
1832 | if ( p->mToolBarHorF ) | 1858 | if ( p->mToolBarHorF ) |
1833 | p->mToolBarUpF = filterToolBar->y() > height()/2; | 1859 | p->mToolBarUpF = filterToolBar->y() > height()/2; |
1834 | else | 1860 | else |
1835 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; | 1861 | p->mToolBarUpF = filterToolBar->x() > width()/2 ; |
1836 | } | 1862 | } |
1837 | #endif | 1863 | #endif |
1838 | 1864 | ||
1839 | save(); | 1865 | save(); |
1840 | mView->writeSettings(); | 1866 | mView->writeSettings(); |
1841 | } | 1867 | } |
1842 | void MainWindow::slotModifiedChanged( bool changed ) | 1868 | void MainWindow::slotModifiedChanged( bool changed ) |
1843 | { | 1869 | { |
1844 | if ( mBlockAtStartup ) | 1870 | if ( mBlockAtStartup ) |
1845 | return; | 1871 | return; |
1846 | 1872 | ||
1847 | int msec; | 1873 | int msec; |
1848 | // we store the changes after 1 minute, | 1874 | // we store the changes after 1 minute, |
1849 | // and for safety reasons after 10 minutes again | 1875 | // and for safety reasons after 10 minutes again |
1850 | if ( !mSyncManager->blockSave() ) | 1876 | if ( !mSyncManager->blockSave() ) |
1851 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; | 1877 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; |
1852 | else | 1878 | else |
1853 | msec = 1000 * 600; | 1879 | msec = 1000 * 600; |
1854 | mSaveTimer.start( msec, true ); // 1 minute | 1880 | mSaveTimer.start( msec, true ); // 1 minute |
1855 | qDebug("KO: Saving File in %d secs!", msec/1000); | 1881 | qDebug("KO: Saving File in %d secs!", msec/1000); |
1856 | mCalendarModifiedFlag = true; | 1882 | mCalendarModifiedFlag = true; |
1857 | } | 1883 | } |
1858 | void MainWindow::saveStopTimer() | 1884 | void MainWindow::saveStopTimer() |
1859 | { | 1885 | { |
1860 | mSaveTimer.stop(); | 1886 | mSaveTimer.stop(); |
1861 | } | 1887 | } |
1862 | void MainWindow::backupAllFiles() | 1888 | void MainWindow::backupAllFiles() |
1863 | { | 1889 | { |
1864 | QDate reference ( 2000,1,1); | 1890 | QDate reference ( 2000,1,1); |
1865 | int daysTo = reference.daysTo ( QDate::currentDate() ); | 1891 | int daysTo = reference.daysTo ( QDate::currentDate() ); |
1866 | setCaption(i18n("Creating backup ... please wait ..." )); | 1892 | setCaption(i18n("Creating backup ... please wait ..." )); |
1867 | qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate); | 1893 | qDebug("KO: Last backup was %d days ago ", daysTo - KOPrefs::instance()->mLastBackupDate); |
1868 | // we need the file path, the backup dir and the number of bups as param | 1894 | // we need the file path, the backup dir and the number of bups as param |
1869 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; | 1895 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; |
1870 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) | 1896 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) |
1871 | bupDir = KGlobalSettings::backupDataDir(); | 1897 | bupDir = KGlobalSettings::backupDataDir(); |
1872 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); | 1898 | int retval = KApplication::createBackup( defaultFileName(), bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); |
1873 | if ( retval == 0 ) { | 1899 | if ( retval == 0 ) { |
1874 | setCaption(i18n("Backup cancelled" )); | 1900 | setCaption(i18n("Backup cancelled" )); |
1875 | qDebug("KO: Backup cancelled. Will try again tomorrow "); | 1901 | qDebug("KO: Backup cancelled. Will try again tomorrow "); |
1876 | // retval == 0 : backup skipped for today, try again tomorrow | 1902 | // retval == 0 : backup skipped for today, try again tomorrow |
1877 | KOPrefs::instance()->mLastBackupDate = daysTo- KPimGlobalPrefs::instance()->mBackupDayCount+1; | 1903 | KOPrefs::instance()->mLastBackupDate = daysTo- KPimGlobalPrefs::instance()->mBackupDayCount+1; |
1878 | } else if ( retval == 1 ){ | 1904 | } else if ( retval == 1 ){ |
1879 | qDebug("KO: Backup created."); | 1905 | qDebug("KO: Backup created."); |
1880 | // backup ok | 1906 | // backup ok |
1881 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; | 1907 | QPtrList<KopiCalendarFile> calendars = KOPrefs::instance()->mCalendars; |
1882 | KopiCalendarFile * cal = calendars.first(); | 1908 | KopiCalendarFile * cal = calendars.first(); |
1883 | cal = calendars.next(); | 1909 | cal = calendars.next(); |
1884 | while ( cal ) { | 1910 | while ( cal ) { |
1885 | if ( !cal->mErrorOnLoad ) { | 1911 | if ( !cal->mErrorOnLoad ) { |
1886 | int retval = KApplication::createBackup( cal->mFileName, bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); | 1912 | int retval = KApplication::createBackup( cal->mFileName, bupDir, KPimGlobalPrefs::instance()->mBackupNumbers ); |
1887 | } | 1913 | } |
1888 | cal = calendars.next(); | 1914 | cal = calendars.next(); |
1889 | } | 1915 | } |
1890 | KOPrefs::instance()->mLastBackupDate = daysTo; | 1916 | KOPrefs::instance()->mLastBackupDate = daysTo; |
1891 | setCaption(i18n("Backup succesfully finished" )); | 1917 | setCaption(i18n("Backup succesfully finished" )); |
1892 | } else if ( retval == 2 ){ | 1918 | } else if ( retval == 2 ){ |
1893 | setCaption(i18n("Backup globally disabled" )); | 1919 | setCaption(i18n("Backup globally disabled" )); |
1894 | qDebug("KO: Backup globally cancelled."); | 1920 | qDebug("KO: Backup globally cancelled."); |
1895 | // backup globally cancelled | 1921 | // backup globally cancelled |
1896 | KPimGlobalPrefs::instance()->mBackupEnabled = false; | 1922 | KPimGlobalPrefs::instance()->mBackupEnabled = false; |
1897 | } | 1923 | } |
1898 | // retval == 3: do nothing, try again later | 1924 | // retval == 3: do nothing, try again later |
1899 | } | 1925 | } |
1900 | void MainWindow::save() | 1926 | void MainWindow::save() |
1901 | { | 1927 | { |
1902 | if ( mView->viewManager()->journalView() ) | 1928 | if ( mView->viewManager()->journalView() ) |
1903 | mView->viewManager()->journalView()->checkModified(); | 1929 | mView->viewManager()->journalView()->checkModified(); |
1904 | if ( !mCalendarModifiedFlag ) { | 1930 | if ( !mCalendarModifiedFlag ) { |
1905 | qDebug("KO: Calendar not modified. Nothing saved."); | 1931 | qDebug("KO: Calendar not modified. Nothing saved."); |
1906 | return; | 1932 | return; |
1907 | } | 1933 | } |
1908 | if ( mSyncManager->blockSave() ) | 1934 | if ( mSyncManager->blockSave() ) |
1909 | return; | 1935 | return; |
1910 | mSyncManager->setBlockSave(true); | 1936 | mSyncManager->setBlockSave(true); |
1911 | if ( mView->checkAllFileVersions() ) { | 1937 | if ( mView->checkAllFileVersions() ) { |
1912 | if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ | 1938 | if ( KPimGlobalPrefs::instance()->mBackupEnabled ){ |
1913 | QDate reference ( 2000,1,1); | 1939 | QDate reference ( 2000,1,1); |
1914 | int daysTo = reference.daysTo ( QDate::currentDate() ); | 1940 | int daysTo = reference.daysTo ( QDate::currentDate() ); |
1915 | if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { | 1941 | if ( daysTo - KPimGlobalPrefs::instance()->mBackupDayCount >= KOPrefs::instance()->mLastBackupDate ) { |
1916 | backupAllFiles(); | 1942 | backupAllFiles(); |
1917 | } | 1943 | } |
1918 | ; // KPimGlobalPrefs::instance()->mLastBackupDate | 1944 | ; // KPimGlobalPrefs::instance()->mLastBackupDate |
1919 | } | 1945 | } |
1920 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 1946 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
1921 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); | 1947 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); |
1922 | qDebug("KO: Start saving data to file!"); | 1948 | qDebug("KO: Start saving data to file!"); |
1923 | mView->saveCalendars(); | 1949 | mView->saveCalendars(); |
1924 | mCalendarModifiedFlag = false; | 1950 | mCalendarModifiedFlag = false; |
1925 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 1951 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
1926 | qDebug("KO: Needed %d ms for saving.",msNeeded ); | 1952 | qDebug("KO: Needed %d ms for saving.",msNeeded ); |
1927 | QString savemes; | 1953 | QString savemes; |
1928 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); | 1954 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); |
1929 | setCaption(savemes); | 1955 | setCaption(savemes); |
1930 | } else | 1956 | } else |
1931 | setCaption(i18n("Saving cancelled!")); | 1957 | setCaption(i18n("Saving cancelled!")); |
1932 | mSyncManager->setBlockSave( false ); | 1958 | mSyncManager->setBlockSave( false ); |
1933 | } | 1959 | } |
1934 | 1960 | ||
1935 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) | 1961 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) |
1936 | { | 1962 | { |
1937 | if ( !e->isAutoRepeat() ) { | 1963 | if ( !e->isAutoRepeat() ) { |
1938 | mFlagKeyPressed = false; | 1964 | mFlagKeyPressed = false; |
1939 | } | 1965 | } |
1940 | } | 1966 | } |
1941 | void MainWindow::keyPressEvent ( QKeyEvent * e ) | 1967 | void MainWindow::keyPressEvent ( QKeyEvent * e ) |
1942 | { | 1968 | { |
1943 | qApp->processEvents(); | 1969 | qApp->processEvents(); |
1944 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 1970 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
1945 | e->ignore(); | 1971 | e->ignore(); |
1946 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 1972 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
1947 | return; | 1973 | return; |
1948 | } | 1974 | } |
1949 | if (! e->isAutoRepeat() ) | 1975 | if (! e->isAutoRepeat() ) |
1950 | mFlagKeyPressed = true; | 1976 | mFlagKeyPressed = true; |
1951 | KOPrefs *p = KOPrefs::instance(); | 1977 | KOPrefs *p = KOPrefs::instance(); |
1952 | bool showSelectedDates = false; | 1978 | bool showSelectedDates = false; |
1953 | int size; | 1979 | int size; |
1954 | int pro = 0; | 1980 | int pro = 0; |
1955 | //qDebug("MainWindow::keyPressEvent "); | 1981 | //qDebug("MainWindow::keyPressEvent "); |
1956 | switch ( e->key() ) { | 1982 | switch ( e->key() ) { |
1957 | case Qt::Key_Right: | 1983 | case Qt::Key_Right: |
1958 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1984 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1959 | mView->goNextMonth(); | 1985 | mView->goNextMonth(); |
1960 | else | 1986 | else |
1961 | mView->goNext(); | 1987 | mView->goNext(); |
1962 | showSelectedDates = true; | 1988 | showSelectedDates = true; |
1963 | break; | 1989 | break; |
1964 | case Qt::Key_Left: | 1990 | case Qt::Key_Left: |
1965 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1991 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1966 | mView->goPreviousMonth(); | 1992 | mView->goPreviousMonth(); |
1967 | else | 1993 | else |
1968 | mView->goPrevious(); | 1994 | mView->goPrevious(); |
1969 | showSelectedDates = true; | 1995 | showSelectedDates = true; |
1970 | break; | 1996 | break; |
1971 | case Qt::Key_Down: | 1997 | case Qt::Key_Down: |
1972 | mView->viewManager()->agendaView()->scrollOneHourDown(); | 1998 | mView->viewManager()->agendaView()->scrollOneHourDown(); |
1973 | break; | 1999 | break; |
1974 | case Qt::Key_Up: | 2000 | case Qt::Key_Up: |
1975 | mView->viewManager()->agendaView()->scrollOneHourUp(); | 2001 | mView->viewManager()->agendaView()->scrollOneHourUp(); |
1976 | break; | 2002 | break; |
1977 | case Qt::Key_K: | 2003 | case Qt::Key_K: |
1978 | mView->viewManager()->showMonthViewWeek(); | 2004 | mView->viewManager()->showMonthViewWeek(); |
1979 | break; | 2005 | break; |
1980 | case Qt::Key_I: | 2006 | case Qt::Key_I: |
1981 | mView->showIncidence(); | 2007 | mView->showIncidence(); |
1982 | break; | 2008 | break; |
1983 | case Qt::Key_Delete: | 2009 | case Qt::Key_Delete: |
1984 | case Qt::Key_Backspace: | 2010 | case Qt::Key_Backspace: |
1985 | mView->deleteIncidence(); | 2011 | mView->deleteIncidence(); |
1986 | break; | 2012 | break; |
1987 | case Qt::Key_D: | 2013 | case Qt::Key_D: |
1988 | mView->viewManager()->showDayView(); | 2014 | mView->viewManager()->showDayView(); |
1989 | showSelectedDates = true; | 2015 | showSelectedDates = true; |
1990 | break; | 2016 | break; |
1991 | case Qt::Key_O: | 2017 | case Qt::Key_O: |
1992 | mView->toggleFilerEnabled( ); | 2018 | mView->toggleFilerEnabled( ); |
1993 | break; | 2019 | break; |
1994 | case Qt::Key_0: | 2020 | case Qt::Key_0: |
1995 | case Qt::Key_1: | 2021 | case Qt::Key_1: |
1996 | case Qt::Key_2: | 2022 | case Qt::Key_2: |
1997 | case Qt::Key_3: | 2023 | case Qt::Key_3: |
1998 | case Qt::Key_4: | 2024 | case Qt::Key_4: |
1999 | case Qt::Key_5: | 2025 | case Qt::Key_5: |
2000 | case Qt::Key_6: | 2026 | case Qt::Key_6: |
2001 | case Qt::Key_7: | 2027 | case Qt::Key_7: |
2002 | case Qt::Key_8: | 2028 | case Qt::Key_8: |
2003 | case Qt::Key_9: | 2029 | case Qt::Key_9: |
2004 | pro = e->key()-48; | 2030 | pro = e->key()-48; |
2005 | if ( pro == 0 ) | 2031 | if ( pro == 0 ) |
2006 | pro = 10; | 2032 | pro = 10; |
2007 | if ( e->state() == Qt::ControlButton) | 2033 | if ( e->state() == Qt::ControlButton) |
2008 | pro += 10; | 2034 | pro += 10; |
2009 | break; | 2035 | break; |
2010 | case Qt::Key_M: | 2036 | case Qt::Key_M: |
2011 | mView->viewManager()->showMonthView(); | 2037 | mView->viewManager()->showMonthView(); |
2012 | showSelectedDates = true; | 2038 | showSelectedDates = true; |
2013 | break; | 2039 | break; |
2014 | case Qt::Key_Insert: | 2040 | case Qt::Key_Insert: |
2015 | mView->newEvent(); | 2041 | mView->newEvent(); |
2016 | break; | 2042 | break; |
2017 | case Qt::Key_S : | 2043 | case Qt::Key_S : |
2018 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 2044 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
2019 | mView->newSubTodo(); | 2045 | mView->newSubTodo(); |
2020 | else | 2046 | else |
2021 | mView->dialogManager()->showSearchDialog(); | 2047 | mView->dialogManager()->showSearchDialog(); |
2022 | break; | 2048 | break; |
2023 | case Qt::Key_Y : | 2049 | case Qt::Key_Y : |
2024 | case Qt::Key_Z : | 2050 | case Qt::Key_Z : |
2025 | mView->viewManager()->showWorkWeekView(); | 2051 | mView->viewManager()->showWorkWeekView(); |
2026 | showSelectedDates = true; | 2052 | showSelectedDates = true; |
2027 | break; | 2053 | break; |
2028 | case Qt::Key_U : | 2054 | case Qt::Key_U : |
2029 | mView->viewManager()->showWeekView(); | 2055 | mView->viewManager()->showWeekView(); |
2030 | showSelectedDates = true; | 2056 | showSelectedDates = true; |
2031 | break; | 2057 | break; |
2032 | case Qt::Key_H : | 2058 | case Qt::Key_H : |
2033 | keyBindings(); | 2059 | keyBindings(); |
2034 | break; | 2060 | break; |
2035 | case Qt::Key_W: | 2061 | case Qt::Key_W: |
2036 | mView->viewManager()->showWhatsNextView(); | 2062 | mView->viewManager()->showWhatsNextView(); |
2037 | break; | 2063 | break; |
2038 | case Qt::Key_L: | 2064 | case Qt::Key_L: |
2039 | mView->viewManager()->showListView(); | 2065 | mView->viewManager()->showListView(); |
2040 | break; | 2066 | break; |
2041 | case Qt::Key_N: | 2067 | case Qt::Key_N: |
2042 | mView->viewManager()->showNextView(); | 2068 | mView->viewManager()->showNextView(); |
2043 | break; | 2069 | break; |
2044 | case Qt::Key_V: | 2070 | case Qt::Key_V: |
2045 | mView->viewManager()->showTodoView(); | 2071 | mView->viewManager()->showTodoView(); |
2046 | break; | 2072 | break; |
2047 | case Qt::Key_C: | 2073 | case Qt::Key_C: |
2048 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); | 2074 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); |
2049 | break; | 2075 | break; |
2050 | case Qt::Key_P: | 2076 | case Qt::Key_P: |
2051 | mView->showDatePicker( ); | 2077 | mView->showDatePicker( ); |
2052 | break; | 2078 | break; |
2053 | case Qt::Key_F: | 2079 | case Qt::Key_F: |
2054 | mView->editFilters(); | 2080 | mView->editFilters(); |
2055 | break; | 2081 | break; |
2056 | case Qt::Key_R: | 2082 | case Qt::Key_R: |
2057 | mView->toggleFilter(); | 2083 | mView->toggleFilter(); |
2058 | break; | 2084 | break; |
2059 | case Qt::Key_X: | 2085 | case Qt::Key_X: |
2060 | if ( e->state() == Qt::ControlButton ) | 2086 | if ( e->state() == Qt::ControlButton ) |
2061 | mView->toggleDateNavigatorWidget(); | 2087 | mView->toggleDateNavigatorWidget(); |
2062 | else { | 2088 | else { |
2063 | mView->viewManager()->showNextXView(); | 2089 | mView->viewManager()->showNextXView(); |
2064 | showSelectedDates = true; | 2090 | showSelectedDates = true; |
2065 | } | 2091 | } |
2066 | break; | 2092 | break; |
2067 | case Qt::Key_Space: | 2093 | case Qt::Key_Space: |
2068 | mView->toggleExpand(); | 2094 | mView->toggleExpand(); |
2069 | break; | 2095 | break; |
2070 | case Qt::Key_A: | 2096 | case Qt::Key_A: |
2071 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) | 2097 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton ) |
2072 | mView->showNextAlarms(); | 2098 | mView->showNextAlarms(); |
2073 | else | 2099 | else |
2074 | mView->toggleAllDaySize(); | 2100 | mView->toggleAllDaySize(); |
2075 | break; | 2101 | break; |
2076 | case Qt::Key_T: | 2102 | case Qt::Key_T: |
2077 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 2103 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
2078 | mView->newTodo(); | 2104 | mView->newTodo(); |
2079 | else { | 2105 | else { |
2080 | mView->goToday(); | 2106 | mView->goToday(); |
2081 | showSelectedDates = true; | 2107 | showSelectedDates = true; |
2082 | } | 2108 | } |
2083 | break; | 2109 | break; |
2084 | case Qt::Key_J: | 2110 | case Qt::Key_J: |
2085 | mView->viewManager()->showJournalView(); | 2111 | mView->viewManager()->showJournalView(); |
2086 | break; | 2112 | break; |
2087 | case Qt::Key_B: | 2113 | case Qt::Key_B: |
2088 | mView->editIncidenceDescription();; | 2114 | mView->editIncidenceDescription();; |
2089 | break; | 2115 | break; |
2090 | // case Qt::Key_Return: | 2116 | // case Qt::Key_Return: |
2091 | case Qt::Key_E: | 2117 | case Qt::Key_E: |
2092 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 2118 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
2093 | mView->newEvent(); | 2119 | mView->newEvent(); |
2094 | else | 2120 | else |
2095 | mView->editIncidence(); | 2121 | mView->editIncidence(); |
2096 | break; | 2122 | break; |
2097 | case Qt::Key_Plus: | 2123 | case Qt::Key_Plus: |
2098 | size = p->mHourSize +2; | 2124 | size = p->mHourSize +2; |
2099 | if ( size <= 22 ) | 2125 | if ( size <= 22 ) |
2100 | configureAgenda( size ); | 2126 | configureAgenda( size ); |
2101 | break; | 2127 | break; |
2102 | case Qt::Key_Minus: | 2128 | case Qt::Key_Minus: |
2103 | size = p->mHourSize - 2; | 2129 | size = p->mHourSize - 2; |
2104 | if ( size >= 4 ) | 2130 | if ( size >= 4 ) |
2105 | configureAgenda( size ); | 2131 | configureAgenda( size ); |
2106 | break; | 2132 | break; |
2107 | 2133 | ||
2108 | 2134 | ||
2109 | default: | 2135 | default: |
2110 | e->ignore(); | 2136 | e->ignore(); |
2111 | } | 2137 | } |
2112 | if ( pro > 0 ) { | 2138 | if ( pro > 0 ) { |
2113 | selectFilter( pro+1 ); | 2139 | selectFilter( pro+1 ); |
2114 | } | 2140 | } |
2115 | if ( showSelectedDates ) { | 2141 | if ( showSelectedDates ) { |
2116 | ;// setCaptionToDates(); | 2142 | ;// setCaptionToDates(); |
2117 | } | 2143 | } |
2118 | 2144 | ||
2119 | } | 2145 | } |
2120 | void MainWindow::fillFilterMenuTB() | 2146 | void MainWindow::fillFilterMenuTB() |
2121 | { | 2147 | { |
2122 | selectFilterMenuTB->clear(); | 2148 | selectFilterMenuTB->clear(); |
2123 | selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); | 2149 | selectFilterMenuTB->insertItem(i18n ( "Edit Filters" ), 0 ); |
2124 | selectFilterMenuTB->insertSeparator(); | 2150 | selectFilterMenuTB->insertSeparator(); |
2125 | selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); | 2151 | selectFilterMenuTB->insertItem(i18n ( "No Filter" ), 1 ); |
2126 | 2152 | ||
2127 | selectFilterMenuTB->insertSeparator(); | 2153 | selectFilterMenuTB->insertSeparator(); |
2128 | QPtrList<CalFilter> fili = mView->filters(); | 2154 | QPtrList<CalFilter> fili = mView->filters(); |
2129 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2155 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2130 | CalFilter *filter = fili.first(); | 2156 | CalFilter *filter = fili.first(); |
2131 | int iii = 2; | 2157 | int iii = 2; |
2132 | bool checkitem = mView->filterView()->filtersEnabled(); | 2158 | bool checkitem = mView->filterView()->filtersEnabled(); |
2133 | while(filter) { | 2159 | while(filter) { |
2134 | selectFilterMenuTB->insertItem( filter->name(), iii ); | 2160 | selectFilterMenuTB->insertItem( filter->name(), iii ); |
2135 | if ( filter == curfilter) | 2161 | if ( filter == curfilter) |
2136 | selectFilterMenuTB->setItemChecked( iii, checkitem ); | 2162 | selectFilterMenuTB->setItemChecked( iii, checkitem ); |
2137 | filter = fili.next(); | 2163 | filter = fili.next(); |
2138 | ++iii; | 2164 | ++iii; |
2139 | } | 2165 | } |
2140 | if ( !checkitem ) | 2166 | if ( !checkitem ) |
2141 | selectFilterMenuTB->setItemChecked( 1, true ); | 2167 | selectFilterMenuTB->setItemChecked( 1, true ); |
2142 | 2168 | ||
2143 | int x = 0; | 2169 | int x = 0; |
2144 | int y = iconToolBar->height(); | 2170 | int y = iconToolBar->height(); |
2145 | int dX = 0; | 2171 | int dX = 0; |
2146 | int dY = 0; | 2172 | int dY = 0; |
2147 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2173 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2148 | if ( iconToolBar->y() > height()/2 ) { | 2174 | if ( iconToolBar->y() > height()/2 ) { |
2149 | dY = selectFilterMenuTB->sizeHint().height()+8; | 2175 | dY = selectFilterMenuTB->sizeHint().height()+8; |
2150 | y = 0; | 2176 | y = 0; |
2151 | } | 2177 | } |
2152 | } else { | 2178 | } else { |
2153 | if ( iconToolBar->x() > width()/2 ) { // right side | 2179 | if ( iconToolBar->x() > width()/2 ) { // right side |
2154 | x=0; | 2180 | x=0; |
2155 | dX= selectFilterMenuTB->sizeHint().width()+8; | 2181 | dX= selectFilterMenuTB->sizeHint().width()+8; |
2156 | y = 0; | 2182 | y = 0; |
2157 | } else { | 2183 | } else { |
2158 | x= iconToolBar->width(); | 2184 | x= iconToolBar->width(); |
2159 | y = 0; | 2185 | y = 0; |
2160 | } | 2186 | } |
2161 | } | 2187 | } |
2162 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); | 2188 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); |
2163 | selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); | 2189 | selectFilterMenuTB->popup(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY))); |
2164 | } | 2190 | } |
2165 | void MainWindow::fillFilterMenu() | 2191 | void MainWindow::fillFilterMenu() |
2166 | { | 2192 | { |
2167 | selectFilterMenu->clear(); | 2193 | selectFilterMenu->clear(); |
2168 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); | 2194 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); |
2169 | selectFilterMenu->insertSeparator(); | 2195 | selectFilterMenu->insertSeparator(); |
2170 | selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); | 2196 | selectFilterMenu->insertItem(i18n ( "No Filter" ), 1 ); |
2171 | 2197 | ||
2172 | selectFilterMenu->insertSeparator(); | 2198 | selectFilterMenu->insertSeparator(); |
2173 | QPtrList<CalFilter> fili = mView->filters(); | 2199 | QPtrList<CalFilter> fili = mView->filters(); |
2174 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2200 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2175 | CalFilter *filter = fili.first(); | 2201 | CalFilter *filter = fili.first(); |
2176 | int iii = 2; | 2202 | int iii = 2; |
2177 | bool checkitem = mView->filterView()->filtersEnabled(); | 2203 | bool checkitem = mView->filterView()->filtersEnabled(); |
2178 | while(filter) { | 2204 | while(filter) { |
2179 | selectFilterMenu->insertItem( filter->name(), iii ); | 2205 | selectFilterMenu->insertItem( filter->name(), iii ); |
2180 | if ( filter == curfilter) | 2206 | if ( filter == curfilter) |
2181 | selectFilterMenu->setItemChecked( iii, checkitem ); | 2207 | selectFilterMenu->setItemChecked( iii, checkitem ); |
2182 | filter = fili.next(); | 2208 | filter = fili.next(); |
2183 | ++iii; | 2209 | ++iii; |
2184 | } | 2210 | } |
2185 | if ( !checkitem ) | 2211 | if ( !checkitem ) |
2186 | selectFilterMenu->setItemChecked( 1, true ); | 2212 | selectFilterMenu->setItemChecked( 1, true ); |
2187 | } | 2213 | } |
2188 | void MainWindow::fillFilterMenuPopup() | 2214 | void MainWindow::fillFilterMenuPopup() |
2189 | { | 2215 | { |
2190 | filterPopupMenu->clear(); | 2216 | filterPopupMenu->clear(); |
2191 | filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); | 2217 | filterPopupMenu->insertItem(i18n ( "No Filter" ), 0 ); |
2192 | 2218 | ||
2193 | filterPopupMenu->insertSeparator(); | 2219 | filterPopupMenu->insertSeparator(); |
2194 | QPtrList<CalFilter> fili = mView->filters(); | 2220 | QPtrList<CalFilter> fili = mView->filters(); |
2195 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2221 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2196 | CalFilter *filter = fili.first(); | 2222 | CalFilter *filter = fili.first(); |
2197 | int iii = 1; | 2223 | int iii = 1; |
2198 | bool checkitem = mView->filterView()->filtersEnabled(); | 2224 | bool checkitem = mView->filterView()->filtersEnabled(); |
2199 | while(filter) { | 2225 | while(filter) { |
2200 | filterPopupMenu->insertItem( filter->name(), iii ); | 2226 | filterPopupMenu->insertItem( filter->name(), iii ); |
2201 | if ( filter == curfilter) | 2227 | if ( filter == curfilter) |
2202 | filterPopupMenu->setItemChecked( iii, checkitem ); | 2228 | filterPopupMenu->setItemChecked( iii, checkitem ); |
2203 | filter = fili.next(); | 2229 | filter = fili.next(); |
2204 | ++iii; | 2230 | ++iii; |
2205 | } | 2231 | } |
2206 | if ( !checkitem ) | 2232 | if ( !checkitem ) |
2207 | filterPopupMenu->setItemChecked( 0, true ); | 2233 | filterPopupMenu->setItemChecked( 0, true ); |
2208 | } | 2234 | } |
2209 | void MainWindow::selectFilter( int fil ) | 2235 | void MainWindow::selectFilter( int fil ) |
2210 | { | 2236 | { |
2211 | 2237 | ||
2212 | if ( fil == 0 ) { | 2238 | if ( fil == 0 ) { |
2213 | mView->editFilters( ); | 2239 | mView->editFilters( ); |
2214 | } else if ( fil == 1 ){ | 2240 | } else if ( fil == 1 ){ |
2215 | if ( mView->filterView()->filtersEnabled() ) | 2241 | if ( mView->filterView()->filtersEnabled() ) |
2216 | mView->toggleFilerEnabled( ); | 2242 | mView->toggleFilerEnabled( ); |
2217 | } else { | 2243 | } else { |
2218 | if ( !mView->filterView()->filtersEnabled() ) { | 2244 | if ( !mView->filterView()->filtersEnabled() ) { |
2219 | mView->filterView()->blockSignals( true ); | 2245 | mView->filterView()->blockSignals( true ); |
2220 | mView->toggleFilerEnabled( ); | 2246 | mView->toggleFilerEnabled( ); |
2221 | mView->filterView()->blockSignals( false ); | 2247 | mView->filterView()->blockSignals( false ); |
2222 | } | 2248 | } |
2223 | mView->selectFilter( fil-2 ); | 2249 | mView->selectFilter( fil-2 ); |
2224 | } | 2250 | } |
2225 | } | 2251 | } |
2226 | void MainWindow::updateFilterToolbar() | 2252 | void MainWindow::updateFilterToolbar() |
2227 | { | 2253 | { |
2228 | if ( filterMenubar ) { | 2254 | if ( filterMenubar ) { |
2229 | if ( !mView->filterView()->filtersEnabled() ) { | 2255 | if ( !mView->filterView()->filtersEnabled() ) { |
2230 | filterMenubar->changeItem( 0, i18n("No Filter") ); | 2256 | filterMenubar->changeItem( 0, i18n("No Filter") ); |
2231 | } else { | 2257 | } else { |
2232 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 2258 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
2233 | if ( curfilter ) { | 2259 | if ( curfilter ) { |
2234 | filterMenubar->changeItem( 0, curfilter->name() ); | 2260 | filterMenubar->changeItem( 0, curfilter->name() ); |
2235 | } | 2261 | } |
2236 | } | 2262 | } |
2237 | } | 2263 | } |
2238 | } | 2264 | } |
2239 | void MainWindow::selectFilterPopup( int fil ) | 2265 | void MainWindow::selectFilterPopup( int fil ) |
2240 | { | 2266 | { |
2241 | selectFilter( fil + 1 ); | 2267 | selectFilter( fil + 1 ); |
2242 | 2268 | ||
2243 | } | 2269 | } |
2244 | void MainWindow::configureToolBar( int item ) | 2270 | void MainWindow::configureToolBar( int item ) |
2245 | { | 2271 | { |
2246 | 2272 | ||
2247 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); | 2273 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); |
2248 | KOPrefs *p = KOPrefs::instance(); | 2274 | KOPrefs *p = KOPrefs::instance(); |
2249 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); | 2275 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); |
2250 | p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); | 2276 | p-> mShowIconOnetoolbar = configureToolBarMenu->isItemChecked( 6 ); |
2251 | p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); | 2277 | p-> mShowIconFilter = configureToolBarMenu->isItemChecked( 7 ); |
2252 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); | 2278 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); |
2253 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); | 2279 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); |
2254 | p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); | 2280 | p->mShowIconNavigator = configureToolBarMenu->isItemChecked( 22 ); |
2255 | p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); | 2281 | p->mShowIconAllday = configureToolBarMenu->isItemChecked( 24 ); |
2256 | p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); | 2282 | p->mShowIconFilterview = configureToolBarMenu->isItemChecked( 26 ); |
2257 | p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); | 2283 | p->mShowIconToggleFull = configureToolBarMenu->isItemChecked( 28 ); |
2258 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); | 2284 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); |
2259 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); | 2285 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); |
2260 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); | 2286 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); |
2261 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); | 2287 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); |
2262 | p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); | 2288 | p-> mShowIconDay6= configureToolBarMenu->isItemChecked( 75 ); |
2263 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); | 2289 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); |
2264 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); | 2290 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); |
2265 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); | 2291 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); |
2266 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); | 2292 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); |
2267 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); | 2293 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); |
2268 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); | 2294 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); |
2269 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); | 2295 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); |
2270 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); | 2296 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); |
2271 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); | 2297 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); |
2272 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); | 2298 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); |
2273 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); | 2299 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); |
2274 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); | 2300 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); |
2275 | p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); | 2301 | p-> mShowIconWeekNum= configureToolBarMenu->isItemChecked( 400 ); |
2276 | // initActions(); | 2302 | // initActions(); |
2303 | setCaption ( i18n("Toolbar changes needs a restart!") ); | ||
2277 | } | 2304 | } |
2278 | void MainWindow::setCaption ( const QString & c ) | 2305 | void MainWindow::setCaption ( const QString & c ) |
2279 | { | 2306 | { |
2280 | QString cap = c; | 2307 | QString cap = c; |
2281 | cap.replace( QRegExp("\n"), " " ); | 2308 | cap.replace( QRegExp("\n"), " " ); |
2282 | cap = cap.stripWhiteSpace(); | 2309 | cap = cap.stripWhiteSpace(); |
2283 | if ( cap.isEmpty() ) | 2310 | if ( cap.isEmpty() ) |
2284 | cap = "KO/Pi"; | 2311 | cap = "KO/Pi"; |
2285 | QWidget::setCaption( cap ); | 2312 | QWidget::setCaption( cap ); |
2286 | } | 2313 | } |
2287 | void MainWindow::setCaptionToDates() | 2314 | void MainWindow::setCaptionToDates() |
2288 | { | 2315 | { |
2289 | QString selDates; | 2316 | QString selDates; |
2290 | QDate date = mView->startDate(); | 2317 | QDate date = mView->startDate(); |
2291 | if ( ! date.isValid() ) { | 2318 | if ( ! date.isValid() ) { |
2292 | setCaption(""); | 2319 | setCaption(""); |
2293 | return; | 2320 | return; |
2294 | } | 2321 | } |
2295 | selDates = KGlobal::locale()->formatDate( date, true); | 2322 | selDates = KGlobal::locale()->formatDate( date, true); |
2296 | if (mView->startDate() < mView->endDate() ) | 2323 | if (mView->startDate() < mView->endDate() ) |
2297 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); | 2324 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); |
2298 | else { | 2325 | else { |
2299 | QString addString; | 2326 | QString addString; |
2300 | if ( date == QDateTime::currentDateTime().date() ) | 2327 | if ( date == QDateTime::currentDateTime().date() ) |
2301 | addString = i18n("Today"); | 2328 | addString = i18n("Today"); |
2302 | else if ( date == QDateTime::currentDateTime().date().addDays(1) ) | 2329 | else if ( date == QDateTime::currentDateTime().date().addDays(1) ) |
2303 | addString = i18n("Tomorrow"); | 2330 | addString = i18n("Tomorrow"); |
2304 | if ( !addString.isEmpty() ) | 2331 | if ( !addString.isEmpty() ) |
2305 | selDates = addString+", "+selDates ; | 2332 | selDates = addString+", "+selDates ; |
2306 | } | 2333 | } |
2307 | setCaption( i18n("Dates: ") + selDates ); | 2334 | setCaption( i18n("Dates: ") + selDates ); |
2308 | 2335 | ||
2309 | } | 2336 | } |
2310 | void MainWindow::showConfigureAgenda( ) | 2337 | void MainWindow::showConfigureAgenda( ) |
2311 | { | 2338 | { |
2312 | int iii; | 2339 | int iii; |
2313 | for ( iii = 1;iii<= 10 ;++iii ){ | 2340 | for ( iii = 1;iii<= 10 ;++iii ){ |
2314 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); | 2341 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); |
2315 | } | 2342 | } |
2316 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); | 2343 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); |
2317 | } | 2344 | } |
2318 | void MainWindow::configureAgenda( int item ) | 2345 | void MainWindow::configureAgenda( int item ) |
2319 | { | 2346 | { |
2320 | if ( KOPrefs::instance()->mHourSize == item ) | 2347 | if ( KOPrefs::instance()->mHourSize == item ) |
2321 | return; | 2348 | return; |
2322 | KOPrefs::instance()->mHourSize=item; | 2349 | KOPrefs::instance()->mHourSize=item; |
2323 | mView->viewManager()->agendaView()->updateConfig(); | 2350 | mView->viewManager()->agendaView()->updateConfig(); |
2324 | } | 2351 | } |
2325 | 2352 | ||
2326 | void MainWindow::saveCalendar() | 2353 | void MainWindow::saveCalendar() |
2327 | { | 2354 | { |
2328 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; | 2355 | QString bupDir = KPimGlobalPrefs::instance()->mBackupDatadir; |
2329 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) | 2356 | if ( KPimGlobalPrefs::instance()->mBackupUseDefaultDir) |
2330 | bupDir = KGlobalSettings::backupDataDir(); | 2357 | bupDir = KGlobalSettings::backupDataDir(); |
2331 | bupDir = KGlobal::formatMessage ( bupDir, 0 ); | 2358 | bupDir = KGlobal::formatMessage ( bupDir, 0 ); |
2332 | QString bupHint; | 2359 | QString bupHint; |
2333 | if ( !KPimGlobalPrefs::instance()->mBackupEnabled ) | 2360 | if ( !KPimGlobalPrefs::instance()->mBackupEnabled ) |
2334 | bupHint = i18n("(Hint: You can enable automatic backup in the global settings!)"); | 2361 | bupHint = i18n("(Hint: You can enable automatic backup in the global settings!)"); |
2335 | if ( KMessageBox::warningContinueCancel( this, i18n("This will <b>backup all calendar files</b> to the directory %1 %2").arg(bupDir).arg(bupHint),i18n("Information") ) != KMessageBox::Continue ) return; | 2362 | if ( KMessageBox::warningContinueCancel( this, i18n("This will <b>backup all calendar files</b> to the directory %1 %2").arg(bupDir).arg(bupHint),i18n("Information") ) != KMessageBox::Continue ) return; |
2336 | bool enabled = KPimGlobalPrefs::instance()->mBackupEnabled; | 2363 | bool enabled = KPimGlobalPrefs::instance()->mBackupEnabled; |
2337 | KPimGlobalPrefs::instance()->mBackupEnabled = false; | 2364 | KPimGlobalPrefs::instance()->mBackupEnabled = false; |
2338 | save(); | 2365 | save(); |
2339 | KPimGlobalPrefs::instance()->mBackupEnabled = enabled; | 2366 | KPimGlobalPrefs::instance()->mBackupEnabled = enabled; |
2340 | backupAllFiles(); | 2367 | backupAllFiles(); |
2341 | } | 2368 | } |
2342 | void MainWindow::loadCalendar() | 2369 | void MainWindow::loadCalendar() |
2343 | { | 2370 | { |
2344 | 2371 | ||
2345 | 2372 | ||
2346 | #if 0 | 2373 | #if 0 |
2347 | QString fn = KOPrefs::instance()->mLastLoadFile; | 2374 | QString fn = KOPrefs::instance()->mLastLoadFile; |
2348 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); | 2375 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); |
2349 | 2376 | ||
2350 | if ( fn == "" ) | 2377 | if ( fn == "" ) |
2351 | return; | 2378 | return; |
2352 | QFileInfo info; | 2379 | QFileInfo info; |
2353 | info.setFile( fn ); | 2380 | info.setFile( fn ); |
2354 | QString mess; | 2381 | QString mess; |
2355 | bool loadbup = true; | 2382 | bool loadbup = true; |
2356 | if ( info. exists() ) { | 2383 | if ( info. exists() ) { |
2357 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 2384 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
2358 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", | 2385 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", |
2359 | mess, | 2386 | mess, |
2360 | i18n("Load!"), i18n("Cancel"), 0, | 2387 | i18n("Load!"), i18n("Cancel"), 0, |
2361 | 0, 1 ); | 2388 | 0, 1 ); |
2362 | if ( result != 0 ) { | 2389 | if ( result != 0 ) { |
2363 | loadbup = false; | 2390 | loadbup = false; |
2364 | } | 2391 | } |
2365 | } else { | 2392 | } else { |
2366 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 2393 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
2367 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, | 2394 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, |
2368 | 0, 1 ); | 2395 | 0, 1 ); |
2369 | 2396 | ||
2370 | return; | 2397 | return; |
2371 | } | 2398 | } |
2372 | if ( loadbup ) { | 2399 | if ( loadbup ) { |
2373 | mView->openCalendar( fn ); | 2400 | mView->openCalendar( fn ); |
2374 | KOPrefs::instance()->mLastLoadFile = fn; | 2401 | KOPrefs::instance()->mLastLoadFile = fn; |
2375 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; | 2402 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; |
2376 | setCaption(mess); | 2403 | setCaption(mess); |
2377 | } | 2404 | } |
2378 | #endif | 2405 | #endif |
2379 | 2406 | ||
2380 | } | 2407 | } |
2381 | void MainWindow::quickImportIcal() | 2408 | void MainWindow::quickImportIcal() |
2382 | { | 2409 | { |
2383 | importFile( KOPrefs::instance()->mLastImportFile, false ); | 2410 | importFile( KOPrefs::instance()->mLastImportFile, false ); |
2384 | } | 2411 | } |
2385 | void MainWindow::importFile( QString fn, bool quick ) | 2412 | void MainWindow::importFile( QString fn, bool quick ) |
2386 | { | 2413 | { |
2387 | QFileInfo info; | 2414 | QFileInfo info; |
2388 | info.setFile( fn ); | 2415 | info.setFile( fn ); |
2389 | QString mess; | 2416 | QString mess; |
2390 | bool loadbup = true; | 2417 | bool loadbup = true; |
2391 | if ( !info. exists() ) { | 2418 | if ( !info. exists() ) { |
2392 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); | 2419 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); |
2393 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 2420 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
2394 | mess ); | 2421 | mess ); |
2395 | return; | 2422 | return; |
2396 | } | 2423 | } |
2397 | int result = 0; | 2424 | int result = 0; |
2398 | if ( !quick ) { | 2425 | if ( !quick ) { |
2399 | mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 2426 | mess = i18n( "Import file \n...%1\nfrom:\n%2\nDuplicated entries\nwill not be imported!\n").arg(fn.right( 25)).arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
2400 | result = QMessageBox::warning( this, "KO/Pi: Warning!", | 2427 | result = QMessageBox::warning( this, "KO/Pi: Warning!", |
2401 | mess, | 2428 | mess, |
2402 | "Import", "Cancel", 0, | 2429 | "Import", "Cancel", 0, |
2403 | 0, 1 ); | 2430 | 0, 1 ); |
2404 | } | 2431 | } |
2405 | if ( result == 0 ) { | 2432 | if ( result == 0 ) { |
2406 | if ( mView->openCalendar( fn, true )) { | 2433 | if ( mView->openCalendar( fn, true )) { |
2407 | KOPrefs::instance()->mLastImportFile = fn; | 2434 | KOPrefs::instance()->mLastImportFile = fn; |
2408 | setCaption(i18n("Imported file successfully")); | 2435 | setCaption(i18n("Imported file successfully")); |
2409 | } else { | 2436 | } else { |
2410 | setCaption(i18n("Error importing file")); | 2437 | setCaption(i18n("Error importing file")); |
2411 | } | 2438 | } |
2412 | } | 2439 | } |
2413 | } | 2440 | } |
2414 | 2441 | ||
2415 | void MainWindow::importIcal() | 2442 | void MainWindow::importIcal() |
2416 | { | 2443 | { |
2417 | 2444 | ||
2418 | QString fn =KOPrefs::instance()->mLastImportFile; | 2445 | QString fn =KOPrefs::instance()->mLastImportFile; |
2419 | 2446 | ||
2420 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); | 2447 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); |
2421 | if ( fn == "" ) | 2448 | if ( fn == "" ) |
2422 | return; | 2449 | return; |
2423 | importFile( fn, true ); | 2450 | importFile( fn, true ); |
2424 | 2451 | ||
2425 | } | 2452 | } |
2426 | 2453 | ||
2427 | void MainWindow::exportVCalendar() | 2454 | void MainWindow::exportVCalendar() |
2428 | { | 2455 | { |
2429 | QString fn = KOPrefs::instance()->mLastVcalFile; | 2456 | QString fn = KOPrefs::instance()->mLastVcalFile; |
2430 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); | 2457 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); |
2431 | if ( fn == "" ) | 2458 | if ( fn == "" ) |
2432 | return; | 2459 | return; |
2433 | QFileInfo info; | 2460 | QFileInfo info; |
2434 | info.setFile( fn ); | 2461 | info.setFile( fn ); |
2435 | QString mes; | 2462 | QString mes; |
2436 | bool createbup = true; | 2463 | bool createbup = true; |
2437 | if ( info. exists() ) { | 2464 | if ( info. exists() ) { |
2438 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 2465 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
2439 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 2466 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
2440 | i18n("Overwrite!"), i18n("Cancel"), 0, | 2467 | i18n("Overwrite!"), i18n("Cancel"), 0, |
2441 | 0, 1 ); | 2468 | 0, 1 ); |
2442 | if ( result != 0 ) { | 2469 | if ( result != 0 ) { |
2443 | createbup = false; | 2470 | createbup = false; |
2444 | } | 2471 | } |
2445 | } | 2472 | } |
2446 | if ( createbup ) { | 2473 | if ( createbup ) { |
2447 | if ( mView->exportVCalendar( fn ) ) { | 2474 | if ( mView->exportVCalendar( fn ) ) { |
2448 | KOPrefs::instance()->mLastVcalFile = fn; | 2475 | KOPrefs::instance()->mLastVcalFile = fn; |
2449 | if ( fn.length() > 20 ) | 2476 | if ( fn.length() > 20 ) |
2450 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 2477 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
2451 | else | 2478 | else |
2452 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 2479 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
2453 | setCaption(mes); | 2480 | setCaption(mes); |
2454 | } | 2481 | } |
2455 | } | 2482 | } |
2456 | 2483 | ||
2457 | } | 2484 | } |
2458 | QString MainWindow::sentSyncFile() | 2485 | QString MainWindow::sentSyncFile() |
2459 | { | 2486 | { |
2460 | #ifdef DESKTOP_VERSION | 2487 | #ifdef DESKTOP_VERSION |
2461 | return locateLocal( "tmp", "copysynccal.ics" ); | 2488 | return locateLocal( "tmp", "copysynccal.ics" ); |
2462 | #else | 2489 | #else |
2463 | return QString( "/tmp/copysynccal.ics" ); | 2490 | return QString( "/tmp/copysynccal.ics" ); |
2464 | #endif | 2491 | #endif |
2465 | } | 2492 | } |
2466 | 2493 | ||
2467 | void MainWindow::syncFileRequest() | 2494 | void MainWindow::syncFileRequest() |
2468 | { | 2495 | { |
2469 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2496 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2470 | mSyncManager->slotSyncMenu( 999 ); | 2497 | mSyncManager->slotSyncMenu( 999 ); |
2471 | } | 2498 | } |
2472 | 2499 | ||
2473 | setCaption(i18n("Saving Data to temp file ..." )); | 2500 | setCaption(i18n("Saving Data to temp file ..." )); |
2474 | mView->saveCalendar( sentSyncFile() ); | 2501 | mView->saveCalendar( sentSyncFile() ); |
2475 | setCaption(i18n("Data saved to temp file!" )); | 2502 | setCaption(i18n("Data saved to temp file!" )); |
2476 | 2503 | ||
2477 | } | 2504 | } |
2478 | void MainWindow::getFile( bool success ) | 2505 | void MainWindow::getFile( bool success ) |
2479 | { | 2506 | { |
2480 | if ( ! success ) { | 2507 | if ( ! success ) { |
2481 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 2508 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
2482 | return; | 2509 | return; |
2483 | } | 2510 | } |
2484 | mView->openCalendar( sentSyncFile() ); | 2511 | mView->openCalendar( sentSyncFile() ); |
2485 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 2512 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
2486 | mSyncManager->slotSyncMenu( 999 ); | 2513 | mSyncManager->slotSyncMenu( 999 ); |
2487 | } | 2514 | } |
2488 | setCaption( i18n("Pi-Sync successful!") ); | 2515 | setCaption( i18n("Pi-Sync successful!") ); |
2489 | } | 2516 | } |
2490 | void MainWindow::printListView() | 2517 | void MainWindow::printListView() |
2491 | { | 2518 | { |
2492 | 2519 | ||
2493 | QString message = i18n("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."); | 2520 | QString message = i18n("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."); |
2494 | 2521 | ||
2495 | KMessageBox::information( this, message); | 2522 | KMessageBox::information( this, message); |
2496 | } | 2523 | } |
2497 | void MainWindow::printSel( ) | 2524 | void MainWindow::printSel( ) |
2498 | { | 2525 | { |
2499 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 2526 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
2500 | } | 2527 | } |
2501 | 2528 | ||
2502 | void MainWindow::printCal() | 2529 | void MainWindow::printCal() |
2503 | { | 2530 | { |
2504 | mView->print();//mCp->showDialog(); | 2531 | mView->print();//mCp->showDialog(); |
2505 | } | 2532 | } |
2506 | 2533 | ||
2507 | 2534 | ||
2508 | #include "libkdepim/kdatepicker.h" | 2535 | #include "libkdepim/kdatepicker.h" |
2509 | #include <kdatetbl.h> | 2536 | #include <kdatetbl.h> |
2510 | 2537 | ||
2511 | void MainWindow::weekAction() | 2538 | void MainWindow::weekAction() |
2512 | { | 2539 | { |
2513 | int month; | 2540 | int month; |
2514 | KPopupFrame* popup = new KPopupFrame(this); | 2541 | KPopupFrame* popup = new KPopupFrame(this); |
2515 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); | 2542 | KDateInternalWeekPicker* picker = new KDateInternalWeekPicker(popup); |
2516 | // ----- | 2543 | // ----- |
2517 | picker->resize(picker->sizeHint()); | 2544 | picker->resize(picker->sizeHint()); |
2518 | popup->setMainWidget(picker); | 2545 | popup->setMainWidget(picker); |
2519 | picker->setFocus(); | 2546 | picker->setFocus(); |
2520 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); | 2547 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); |
2521 | int x = 0; | 2548 | int x = 0; |
2522 | int y = iconToolBar->height(); | 2549 | int y = iconToolBar->height(); |
2523 | int dX = 0; | 2550 | int dX = 0; |
2524 | int dY = 0; | 2551 | int dY = 0; |
2525 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 2552 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
2526 | if ( iconToolBar->y() > height()/2 ) { | 2553 | if ( iconToolBar->y() > height()/2 ) { |
2527 | dY = picker->sizeHint().height()+8; | 2554 | dY = picker->sizeHint().height()+8; |
2528 | y = 0; | 2555 | y = 0; |
2529 | } | 2556 | } |
2530 | } else { | 2557 | } else { |
2531 | if ( iconToolBar->x() > width()/2 ) { // right side | 2558 | if ( iconToolBar->x() > width()/2 ) { // right side |
2532 | x=0; | 2559 | x=0; |
2533 | dX= picker->sizeHint().width()+8; | 2560 | dX= picker->sizeHint().width()+8; |
2534 | y = 0; | 2561 | y = 0; |
2535 | } else { | 2562 | } else { |
2536 | x= iconToolBar->width(); | 2563 | x= iconToolBar->width(); |
2537 | y = 0; | 2564 | y = 0; |
2538 | } | 2565 | } |
2539 | } | 2566 | } |
2540 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); | 2567 | //qDebug("dax %d dy %d %d %d ", dX, dY, iconToolBar->x(), iconToolBar->y() ); |
2541 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) | 2568 | if(popup->exec(iconToolBar->mapToGlobal(QPoint(x,y)-QPoint( dX,dY)))) |
2542 | { | 2569 | { |
2543 | month = picker->getResult(); | 2570 | month = picker->getResult(); |
2544 | emit selectWeek ( month ); | 2571 | emit selectWeek ( month ); |
2545 | //qDebug("weekSelected %d ", month); | 2572 | //qDebug("weekSelected %d ", month); |
2546 | } | 2573 | } |
2547 | delete popup; | 2574 | delete popup; |
2548 | } | 2575 | } |
2549 | 2576 | ||
2550 | void MainWindow::hideEvent ( QHideEvent * ) | 2577 | void MainWindow::hideEvent ( QHideEvent * ) |
2551 | { | 2578 | { |
2552 | QString message; | 2579 | QString message; |
2553 | QDateTime nextA = mCalendar->nextAlarmEventDateTime(); | 2580 | QDateTime nextA = mCalendar->nextAlarmEventDateTime(); |
2554 | if ( nextA.isValid() ) { | 2581 | if ( nextA.isValid() ) { |
2555 | QString sum = mCalendar->nextSummary(); | 2582 | QString sum = mCalendar->nextSummary(); |
2556 | 2583 | ||
2557 | message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false)); | 2584 | message = i18n("%1 %2 - %3 (next event/todo with alarm)").arg( KGlobal::locale()->formatTime(nextA.time() , false)).arg(sum ).arg( KGlobal::locale()->formatDate(nextA.date() , false)); |
2558 | setCaption( message ); | 2585 | setCaption( message ); |
2559 | } | 2586 | } |
2560 | } | 2587 | } |
2561 | 2588 | ||
2562 | void MainWindow::resizeEvent( QResizeEvent* e) | 2589 | void MainWindow::resizeEvent( QResizeEvent* e) |
2563 | { | 2590 | { |
2564 | #ifndef DESKTOP_VERSION | 2591 | #ifndef DESKTOP_VERSION |
2565 | if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar && QApplication::desktop()->width() > 320) { | 2592 | if ( !KOPrefs::instance()->mShowIconFilter && !KOPrefs::instance()->mShowIconOnetoolbar && QApplication::desktop()->width() > 320) { |
2566 | if (QApplication::desktop()->width() > QApplication::desktop()->height() ) | 2593 | if (QApplication::desktop()->width() > QApplication::desktop()->height() ) |
2567 | filterToolBar->hide(); | 2594 | filterToolBar->hide(); |
2568 | else | 2595 | else |
2569 | filterToolBar->show(); | 2596 | filterToolBar->show(); |
2570 | } | 2597 | } |
2571 | #endif | 2598 | #endif |
2572 | QMainWindow::resizeEvent( e); | 2599 | QMainWindow::resizeEvent( e); |
2573 | } | 2600 | } |
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index a4d0523..953774f 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,171 +1,172 @@ | |||
1 | #ifndef KORGE_MAINWINDOW_H | 1 | #ifndef KORGE_MAINWINDOW_H |
2 | #define KORGE_MAINWINDOW_H | 2 | #define KORGE_MAINWINDOW_H |
3 | 3 | ||
4 | #include <qmainwindow.h> | 4 | #include <qmainwindow.h> |
5 | #include <qtimer.h> | 5 | #include <qtimer.h> |
6 | #include <qdict.h> | 6 | #include <qdict.h> |
7 | #include <qfile.h> | 7 | #include <qfile.h> |
8 | #include <qmenubar.h> | 8 | #include <qmenubar.h> |
9 | #include <qtextstream.h> | 9 | #include <qtextstream.h> |
10 | #include <qregexp.h> | 10 | #include <qregexp.h> |
11 | 11 | ||
12 | #include <libkcal/incidence.h> | 12 | #include <libkcal/incidence.h> |
13 | #include <ksyncmanager.h> | 13 | #include <ksyncmanager.h> |
14 | #ifndef DESKTOP_VERSION | 14 | #ifndef DESKTOP_VERSION |
15 | #include <qcopchannel_qws.h> | 15 | #include <qcopchannel_qws.h> |
16 | #endif | 16 | #endif |
17 | class QAction; | 17 | class QAction; |
18 | class CalendarView; | 18 | class CalendarView; |
19 | class KSyncProfile; | 19 | class KSyncProfile; |
20 | #ifdef DESKTOP_VERSION | 20 | #ifdef DESKTOP_VERSION |
21 | 21 | ||
22 | #define QPEToolBar QToolBar | 22 | #define QPEToolBar QToolBar |
23 | #define QPEMenuBar QMenuBar | 23 | #define QPEMenuBar QMenuBar |
24 | #endif | 24 | #endif |
25 | class QPEToolBar; | 25 | class QPEToolBar; |
26 | class QPEMenuBar; | 26 | class QPEMenuBar; |
27 | 27 | ||
28 | 28 | ||
29 | namespace KCal { | 29 | namespace KCal { |
30 | class CalendarLocal; | 30 | class CalendarLocal; |
31 | } | 31 | } |
32 | 32 | ||
33 | using namespace KCal; | 33 | using namespace KCal; |
34 | 34 | ||
35 | class MainWindow : public QMainWindow | 35 | class MainWindow : public QMainWindow |
36 | { | 36 | { |
37 | Q_OBJECT | 37 | Q_OBJECT |
38 | public: | 38 | public: |
39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
40 | ~MainWindow(); | 40 | ~MainWindow(); |
41 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
42 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
43 | static QString syncFileName(); | 43 | static QString syncFileName(); |
44 | static QString resourcePath(); | 44 | static QString resourcePath(); |
45 | public slots: | 45 | public slots: |
46 | void setUsesBigPixmaps ( bool ); | 46 | void setUsesBigPixmaps ( bool ); |
47 | void setCaption ( const QString & ); | 47 | void setCaption ( const QString & ); |
48 | void updateWeekNum(const KCal::DateList &); | 48 | void updateWeekNum(const KCal::DateList &); |
49 | void updateWeek(QDate); | 49 | void updateWeek(QDate); |
50 | void updateFilterToolbar(); | 50 | void updateFilterToolbar(); |
51 | virtual void showMaximized (); | 51 | virtual void showMaximized (); |
52 | void configureAgenda( int ); | 52 | void configureAgenda( int ); |
53 | void recieve( const QCString& msg, const QByteArray& data ); | 53 | void recieve( const QCString& msg, const QByteArray& data ); |
54 | protected slots: | 54 | protected slots: |
55 | void startMultiSync(); | 55 | void startMultiSync(); |
56 | void setCaptionToDates(); | 56 | void setCaptionToDates(); |
57 | void weekAction(); | 57 | void weekAction(); |
58 | void about(); | 58 | void about(); |
59 | void licence(); | 59 | void licence(); |
60 | void faq(); | 60 | void faq(); |
61 | void usertrans(); | 61 | void usertrans(); |
62 | void features(); | 62 | void features(); |
63 | void synchowto(); | 63 | void synchowto(); |
64 | void storagehowto(); | 64 | void storagehowto(); |
65 | void timetrackinghowto(); | 65 | void timetrackinghowto(); |
66 | void kdesynchowto(); | 66 | void kdesynchowto(); |
67 | void multisynchowto(); | 67 | void multisynchowto(); |
68 | void whatsNew(); | 68 | void whatsNew(); |
69 | void keyBindings(); | 69 | void keyBindings(); |
70 | void aboutAutoSaving();; | 70 | void aboutAutoSaving();; |
71 | void aboutKnownBugs(); | 71 | void aboutKnownBugs(); |
72 | 72 | ||
73 | void processIncidenceSelection( Incidence * ); | 73 | void processIncidenceSelection( Incidence * ); |
74 | 74 | ||
75 | void importQtopia(); | 75 | void importQtopia(); |
76 | void importBday(); | 76 | void importBday(); |
77 | void importOL(); | 77 | void importOL(); |
78 | void importIcal(); | 78 | void importIcal(); |
79 | void importFile( QString, bool ); | 79 | void importFile( QString, bool ); |
80 | void quickImportIcal(); | 80 | void quickImportIcal(); |
81 | 81 | ||
82 | void slotModifiedChanged( bool ); | 82 | void slotModifiedChanged( bool ); |
83 | 83 | ||
84 | void save(); | 84 | void save(); |
85 | void backupAllFiles(); | 85 | void backupAllFiles(); |
86 | void saveStopTimer(); | 86 | void saveStopTimer(); |
87 | void configureToolBar( int ); | 87 | void configureToolBar( int ); |
88 | void printSel(); | 88 | void printSel(); |
89 | void printCal(); | 89 | void printCal(); |
90 | void printListView(); | 90 | void printListView(); |
91 | void saveCalendar(); | 91 | void saveCalendar(); |
92 | void loadCalendar(); | 92 | void loadCalendar(); |
93 | void exportVCalendar(); | 93 | void exportVCalendar(); |
94 | void fillFilterMenu(); | 94 | void fillFilterMenu(); |
95 | void fillFilterMenuTB(); | 95 | void fillFilterMenuTB(); |
96 | void selectFilter( int ); | 96 | void selectFilter( int ); |
97 | void fillFilterMenuPopup(); | 97 | void fillFilterMenuPopup(); |
98 | void selectFilterPopup( int ); | 98 | void selectFilterPopup( int ); |
99 | void exportToPhone( int ); | 99 | void exportToPhone( int ); |
100 | void toggleBeamReceive(); | 100 | void toggleBeamReceive(); |
101 | void disableBR(bool); | 101 | void disableBR(bool); |
102 | signals: | 102 | signals: |
103 | void selectWeek ( int ); | 103 | void selectWeek ( int ); |
104 | private slots: | 104 | private slots: |
105 | void showConfigureAgenda(); | 105 | void showConfigureAgenda(); |
106 | void getFile( bool ); | 106 | void getFile( bool ); |
107 | void syncFileRequest(); | 107 | void syncFileRequest(); |
108 | 108 | ||
109 | protected: | 109 | protected: |
110 | void hideEvent ( QHideEvent * ); | 110 | void hideEvent ( QHideEvent * ); |
111 | QString sentSyncFile(); | 111 | QString sentSyncFile(); |
112 | void displayText( QString, QString); | 112 | void displayText( QString, QString); |
113 | void enableIncidenceActions( bool ); | 113 | void enableIncidenceActions( bool ); |
114 | 114 | ||
115 | private: | 115 | private: |
116 | bool mBRdisabled; | 116 | bool mBRdisabled; |
117 | #ifndef DESKTOP_VERSION | 117 | #ifndef DESKTOP_VERSION |
118 | QCopChannel* infrared; | 118 | QCopChannel* infrared; |
119 | #endif | 119 | #endif |
120 | QAction* brAction; | 120 | QAction* brAction; |
121 | KSyncManager* mSyncManager; | 121 | KSyncManager* mSyncManager; |
122 | bool mClosed; | 122 | bool mClosed; |
123 | void saveOnClose(); | 123 | void saveOnClose(); |
124 | bool mFlagKeyPressed; | 124 | bool mFlagKeyPressed; |
125 | bool mBlockAtStartup; | 125 | bool mBlockAtStartup; |
126 | QPEToolBar *iconToolBar; | 126 | QPEToolBar *iconToolBar; |
127 | QPEToolBar *viewToolBar; | 127 | QPEToolBar *viewToolBar; |
128 | QPEToolBar *navigatorToolBar; | 128 | QPEToolBar *navigatorToolBar; |
129 | QPEToolBar *filterToolBar; | 129 | QPEToolBar *filterToolBar; |
130 | QMenuBar *filterMenubar; | 130 | QMenuBar *filterMenubar; |
131 | QPopupMenu * filterPopupMenu; | 131 | QPopupMenu * filterPopupMenu; |
132 | QPopupMenu * mCurrentItemMenu; | ||
132 | void initActions(); | 133 | void initActions(); |
133 | void setDefaultPreferences(); | 134 | void setDefaultPreferences(); |
134 | void resizeEvent( QResizeEvent* e); | 135 | void resizeEvent( QResizeEvent* e); |
135 | void keyPressEvent ( QKeyEvent * ) ; | 136 | void keyPressEvent ( QKeyEvent * ) ; |
136 | void keyReleaseEvent ( QKeyEvent * ) ; | 137 | void keyReleaseEvent ( QKeyEvent * ) ; |
137 | QPopupMenu *configureToolBarMenu; | 138 | QPopupMenu *configureToolBarMenu; |
138 | QPopupMenu *selectFilterMenu; | 139 | QPopupMenu *selectFilterMenu; |
139 | QPopupMenu *selectFilterMenuTB; | 140 | QPopupMenu *selectFilterMenuTB; |
140 | QPopupMenu *configureAgendaMenu, *syncMenu; | 141 | QPopupMenu *configureAgendaMenu, *syncMenu; |
141 | CalendarLocal *mCalendar; | 142 | CalendarLocal *mCalendar; |
142 | CalendarView *mView; | 143 | CalendarView *mView; |
143 | QAction *mNewSubTodoAction; | 144 | QAction *mNewSubTodoAction; |
144 | QAction *mWeekAction; | 145 | QAction *mWeekAction; |
145 | QFont mWeekFont; | 146 | QFont mWeekFont; |
146 | QPixmap mWeekPixmap; | 147 | QPixmap mWeekPixmap; |
147 | QColor mWeekBgColor; | 148 | QColor mWeekBgColor; |
148 | 149 | ||
149 | QAction *mShowAction; | 150 | QAction *mShowAction; |
150 | QAction *mEditAction; | 151 | QAction *mEditAction; |
151 | QAction *mDeleteAction; | 152 | QAction *mDeleteAction; |
152 | QAction *mCloneAction; | 153 | QAction *mCloneAction; |
153 | QAction *mMoveAction; | 154 | QAction *mMoveAction; |
154 | QAction *mBeamAction; | 155 | QAction *mBeamAction; |
155 | QAction *mCancelAction; | 156 | QAction *mCancelAction; |
156 | 157 | ||
157 | QAction *mToggleNav; | 158 | QAction *mToggleNav; |
158 | QAction *mToggleFilter; | 159 | QAction *mToggleFilter; |
159 | QAction *mToggleAllday; | 160 | QAction *mToggleAllday; |
160 | QAction *actionFilterMenuTB; | 161 | QAction *actionFilterMenuTB; |
161 | 162 | ||
162 | void closeEvent( QCloseEvent* ce ); | 163 | void closeEvent( QCloseEvent* ce ); |
163 | QTimer mSaveTimer; | 164 | QTimer mSaveTimer; |
164 | //bool mBlockSaveFlag; | 165 | //bool mBlockSaveFlag; |
165 | bool mCalendarModifiedFlag; | 166 | bool mCalendarModifiedFlag; |
166 | QPixmap loadPixmap( QString ); | 167 | QPixmap loadPixmap( QString ); |
167 | QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80; | 168 | QPixmap listviewPix, listviewPix0, listviewPix20, listviewPix40, listviewPix60, listviewPix80; |
168 | }; | 169 | }; |
169 | 170 | ||
170 | 171 | ||
171 | #endif | 172 | #endif |
@@ -1 +1 @@ | |||
version = "2.1.11"; | version = "2.1.12"; | ||