author | zautrix <zautrix> | 2005-02-06 01:23:43 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-06 01:23:43 (UTC) |
commit | 118f5aab05c9ace5612d5c4fd69e7c5a59bed67b (patch) (unidiff) | |
tree | e097f3fecb6e2ae692b91ac29e58e6d5a51154c8 | |
parent | 659f07aa44f44aebb74c83e7319021cfeb87f275 (diff) | |
download | kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.zip kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.tar.gz kdepimpi-118f5aab05c9ace5612d5c4fd69e7c5a59bed67b.tar.bz2 |
better week choose
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 5 | ||||
-rw-r--r-- | bin/kdepim/korganizer/germantranslation.txt | 4 | ||||
-rw-r--r-- | korganizer/koagendaview.cpp | 72 | ||||
-rw-r--r-- | korganizer/koagendaview.h | 1 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 62 | ||||
-rw-r--r-- | korganizer/mainwindow.h | 7 | ||||
-rw-r--r-- | korganizer/navigatorbar.cpp | 39 |
7 files changed, 78 insertions, 112 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 41c60ea..4251283 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,770 +1,775 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.0.4 ************ | ||
4 | |||
5 | KO/Pi: | ||
6 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. | ||
7 | |||
3 | ********** VERSION 2.0.3 ************ | 8 | ********** VERSION 2.0.3 ************ |
4 | 9 | ||
5 | KO/Pi: | 10 | KO/Pi: |
6 | Added feature for changing alarm settings for many items at once: | 11 | Added feature for changing alarm settings for many items at once: |
7 | Open list view (or search dialog), select the desired items and choose in | 12 | Open list view (or search dialog), select the desired items and choose in |
8 | the popup menu: Set alarm for selected... | 13 | the popup menu: Set alarm for selected... |
9 | 14 | ||
10 | Added to the event/todo viewer the option to send an email to | 15 | Added to the event/todo viewer the option to send an email to |
11 | all attendees or all selected (with RSVP) attendees. | 16 | all attendees or all selected (with RSVP) attendees. |
12 | 17 | ||
13 | Made the week-month mode changing in month view faster. | 18 | Made the week-month mode changing in month view faster. |
14 | 19 | ||
15 | Made month view better useable with keyboard. | 20 | Made month view better useable with keyboard. |
16 | Now TAB key jumps to next cell with an event/todo. | 21 | Now TAB key jumps to next cell with an event/todo. |
17 | Scroll in cell with coursor keys, scroll in time (next week) with | 22 | Scroll in cell with coursor keys, scroll in time (next week) with |
18 | Shift/Control + coursorkeys. | 23 | Shift/Control + coursorkeys. |
19 | 24 | ||
20 | Fixed bug that the todo view flat mode was reset after first view update. | 25 | Fixed bug that the todo view flat mode was reset after first view update. |
21 | 26 | ||
22 | If a todo is displayed closed in the todo view, | 27 | If a todo is displayed closed in the todo view, |
23 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. | 28 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. |
24 | 29 | ||
25 | Added info about the numbers of years to the caption (title) information about a birthday event. | 30 | Added info about the numbers of years to the caption (title) information about a birthday event. |
26 | 31 | ||
27 | Made completion date in todo editor editable. | 32 | Made completion date in todo editor editable. |
28 | 33 | ||
29 | Added possibility to save/load templates for journals. | 34 | Added possibility to save/load templates for journals. |
30 | (Which is just a simple "save text to file" or "insert text from file". | 35 | (Which is just a simple "save text to file" or "insert text from file". |
31 | 36 | ||
32 | ********** VERSION 2.0.2 ************ | 37 | ********** VERSION 2.0.2 ************ |
33 | 38 | ||
34 | KO/Pi: | 39 | KO/Pi: |
35 | Fixed the layout problem of the day label buttons | 40 | Fixed the layout problem of the day label buttons |
36 | of the agenda view introduced in version 2.0.1. | 41 | of the agenda view introduced in version 2.0.1. |
37 | 42 | ||
38 | Added WhatsThis support for the todo view and the list view. | 43 | Added WhatsThis support for the todo view and the list view. |
39 | 44 | ||
40 | Added a quite useful feature to the montview. | 45 | Added a quite useful feature to the montview. |
41 | Just click on the week numbers on the left. | 46 | Just click on the week numbers on the left. |
42 | And in the top right corner of month view/agenda view | 47 | And in the top right corner of month view/agenda view |
43 | there is now a "week number quick selector". | 48 | there is now a "week number quick selector". |
44 | (Click on the black triangle). | 49 | (Click on the black triangle). |
45 | 50 | ||
46 | Made the quite difficult timezone change in KO/Pi easy. | 51 | Made the quite difficult timezone change in KO/Pi easy. |
47 | 52 | ||
48 | OM/Pi: | 53 | OM/Pi: |
49 | Fixed too small icons on desktop. | 54 | Fixed too small icons on desktop. |
50 | Fixed non visible icons in mainwindow on Z with fastload enabled. | 55 | Fixed non visible icons in mainwindow on Z with fastload enabled. |
51 | Added signature file setting to smtp account config. | 56 | Added signature file setting to smtp account config. |
52 | And the signature can be edited and saved in the edit mail dialog. | 57 | And the signature can be edited and saved in the edit mail dialog. |
53 | That does mean: | 58 | That does mean: |
54 | Simply edit the signature for the selected smtp account in the | 59 | Simply edit the signature for the selected smtp account in the |
55 | edit new mail dialog and press the "save signature" button there. | 60 | edit new mail dialog and press the "save signature" button there. |
56 | Then the signature is saved to the file specified in the smtp account settings. | 61 | Then the signature is saved to the file specified in the smtp account settings. |
57 | If there is no file specified, it is saved automatically to the file | 62 | If there is no file specified, it is saved automatically to the file |
58 | kdepim/apps/kopiemail/<accountname>.sig. | 63 | kdepim/apps/kopiemail/<accountname>.sig. |
59 | 64 | ||
60 | 65 | ||
61 | 66 | ||
62 | ********** VERSION 2.0.1 ************ | 67 | ********** VERSION 2.0.1 ************ |
63 | 68 | ||
64 | Oooops ... I forgot to test on the Zaurus 5500 ... | 69 | Oooops ... I forgot to test on the Zaurus 5500 ... |
65 | 70 | ||
66 | Fixed many problems of new (english) strings (and german translations) | 71 | Fixed many problems of new (english) strings (and german translations) |
67 | introduced in the latest versions, where the text was not fitting on the | 72 | introduced in the latest versions, where the text was not fitting on the |
68 | 240x320 display of the Zaurus 5500. | 73 | 240x320 display of the Zaurus 5500. |
69 | 74 | ||
70 | KO/Pi: | 75 | KO/Pi: |
71 | Added a popup menu ( press pen and hold to get popup ) to the agenda view | 76 | Added a popup menu ( press pen and hold to get popup ) to the agenda view |
72 | with many useful items (add event/todo, show next week, two weeks, month, journal). | 77 | with many useful items (add event/todo, show next week, two weeks, month, journal). |
73 | 78 | ||
74 | Added items to the todolist popup menu for: | 79 | Added items to the todolist popup menu for: |
75 | Display all opened, all closed or all todos flat. | 80 | Display all opened, all closed or all todos flat. |
76 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. | 81 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. |
77 | Made the reparenting of todos on the desktop possible via Drag&Drop. | 82 | Made the reparenting of todos on the desktop possible via Drag&Drop. |
78 | Fixed several bugs in setting the completed datetime for todos. | 83 | Fixed several bugs in setting the completed datetime for todos. |
79 | Added info about completed datetime of todos to the todo viewer. | 84 | Added info about completed datetime of todos to the todo viewer. |
80 | Now displaying a completed todo (with completed datetime set) in the agenda view | 85 | Now displaying a completed todo (with completed datetime set) in the agenda view |
81 | at the time of the completion. Such that now it is possible to see in the agenda view | 86 | at the time of the completion. Such that now it is possible to see in the agenda view |
82 | when what todo was completed. | 87 | when what todo was completed. |
83 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. | 88 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. |
84 | Now the behaviour is: | 89 | Now the behaviour is: |
85 | Setting a parent to complete sets all (sub)childs to complete. | 90 | Setting a parent to complete sets all (sub)childs to complete. |
86 | Setting a parent to uncomplete does not change the childs. | 91 | Setting a parent to uncomplete does not change the childs. |
87 | Setting a child to uncomplete sets all parent to uncomplete. | 92 | Setting a child to uncomplete sets all parent to uncomplete. |
88 | Setting a child to complete does not change the parents. | 93 | Setting a child to complete does not change the parents. |
89 | 94 | ||
90 | Smart updating and double buffering of the daymatrix. | 95 | Smart updating and double buffering of the daymatrix. |
91 | Showing holidays in the day matrix. | 96 | Showing holidays in the day matrix. |
92 | Many other small performance updates. | 97 | Many other small performance updates. |
93 | 98 | ||
94 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. | 99 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. |
95 | 100 | ||
96 | Now the translation file usertranslation.txt is supposed to be in utf8 format. | 101 | Now the translation file usertranslation.txt is supposed to be in utf8 format. |
97 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. | 102 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. |
98 | 103 | ||
99 | 104 | ||
100 | ********** VERSION 2.0.0 ************ | 105 | ********** VERSION 2.0.0 ************ |
101 | 106 | ||
102 | Stable release 2.0.0! | 107 | Stable release 2.0.0! |
103 | 108 | ||
104 | KO/Pi: | 109 | KO/Pi: |
105 | Fixed problem in edit dialog recreation at startup. | 110 | Fixed problem in edit dialog recreation at startup. |
106 | Made "toggle view*" menu items enabled context sensitive. | 111 | Made "toggle view*" menu items enabled context sensitive. |
107 | Changed agenda size menu to items 1-10. | 112 | Changed agenda size menu to items 1-10. |
108 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 113 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
109 | Usebility enhancements in the KO/Pi menus. | 114 | Usebility enhancements in the KO/Pi menus. |
110 | Birthday import now adds year to summary. | 115 | Birthday import now adds year to summary. |
111 | What's Next view shows age in years for birthday. | 116 | What's Next view shows age in years for birthday. |
112 | 117 | ||
113 | OM/Pi: | 118 | OM/Pi: |
114 | Added three info lines to display subject, from and to of selected mails. | 119 | Added three info lines to display subject, from and to of selected mails. |
115 | 120 | ||
116 | KA/Pi: | 121 | KA/Pi: |
117 | Fixed jump bar behaviour on Zaurus. | 122 | Fixed jump bar behaviour on Zaurus. |
118 | Now KA/Pi search field supports searching for a range of starting characters. | 123 | Now KA/Pi search field supports searching for a range of starting characters. |
119 | E.g. to search for all contact beginning with b to n, type | 124 | E.g. to search for all contact beginning with b to n, type |
120 | b-n | 125 | b-n |
121 | in the search field. | 126 | in the search field. |
122 | 127 | ||
123 | ********** VERSION 1.9.20 ************ | 128 | ********** VERSION 1.9.20 ************ |
124 | 129 | ||
125 | KO/Pi: | 130 | KO/Pi: |
126 | Added for the "dislplay one day" agenda mode | 131 | Added for the "dislplay one day" agenda mode |
127 | info in the caption and in the day lables: | 132 | info in the caption and in the day lables: |
128 | Now it is displayed, if the selected day is from "day before yesterday" | 133 | Now it is displayed, if the selected day is from "day before yesterday" |
129 | to "day after tomorrow". | 134 | to "day after tomorrow". |
130 | Made it possible to delete a Todo, which has sub-todos. | 135 | Made it possible to delete a Todo, which has sub-todos. |
131 | Fixed two small problems in the todo view. | 136 | Fixed two small problems in the todo view. |
132 | Added missing German translation for filter edit and print dialog. | 137 | Added missing German translation for filter edit and print dialog. |
133 | Made search dialog closeable by cancel key. | 138 | Made search dialog closeable by cancel key. |
134 | 139 | ||
135 | Made it possible to select in the date picker the (ligt grey ) | 140 | Made it possible to select in the date picker the (ligt grey ) |
136 | dates of the prev./next month with the mouse. | 141 | dates of the prev./next month with the mouse. |
137 | 142 | ||
138 | OM/Pi: | 143 | OM/Pi: |
139 | "Delete mail" icon in main window now deletes all selected mails. | 144 | "Delete mail" icon in main window now deletes all selected mails. |
140 | Fixed the problem, that the state flag of imap mails was ignored. | 145 | Fixed the problem, that the state flag of imap mails was ignored. |
141 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view | 146 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view |
142 | to indecate that they are already seen. | 147 | to indecate that they are already seen. |
143 | Fixed the problem that the body of some mails was not displayed in the | 148 | Fixed the problem that the body of some mails was not displayed in the |
144 | mail viewer when fetching them from the imap server directly to read them. | 149 | mail viewer when fetching them from the imap server directly to read them. |
145 | Made it (configurable) possible to show the "To:" field in the list view. | 150 | Made it (configurable) possible to show the "To:" field in the list view. |
146 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. | 151 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. |
147 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the | 152 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the |
148 | local storage folder (specified in account settings) of the account of the mail. | 153 | local storage folder (specified in account settings) of the account of the mail. |
149 | Removed some memory leaks in OM/Pi. | 154 | Removed some memory leaks in OM/Pi. |
150 | 155 | ||
151 | 156 | ||
152 | ********** VERSION 1.9.19 ************ | 157 | ********** VERSION 1.9.19 ************ |
153 | 158 | ||
154 | Added a lot of missing translations to KA/Pi, | 159 | Added a lot of missing translations to KA/Pi, |
155 | Added some missing translations to KO/Pi and OM/Pi. | 160 | Added some missing translations to KO/Pi and OM/Pi. |
156 | 161 | ||
157 | Fixed some minor problems in KA/Pi + KO/Pi. | 162 | Fixed some minor problems in KA/Pi + KO/Pi. |
158 | 163 | ||
159 | Fixed a crash when closing PwM/Pi. | 164 | Fixed a crash when closing PwM/Pi. |
160 | Added German translation for PwM/Pi. | 165 | Added German translation for PwM/Pi. |
161 | 166 | ||
162 | Made view change and Month View update faster in KO/Pi. | 167 | Made view change and Month View update faster in KO/Pi. |
163 | 168 | ||
164 | 169 | ||
165 | ********** VERSION 1.9.18 ************ | 170 | ********** VERSION 1.9.18 ************ |
166 | 171 | ||
167 | FYI: The VERSION 1.9.17 was a testing release only. | 172 | FYI: The VERSION 1.9.17 was a testing release only. |
168 | Please read the changelog of VERSION 1.9.17 as well. | 173 | Please read the changelog of VERSION 1.9.17 as well. |
169 | 174 | ||
170 | Cleaned up the syncing config dialog. | 175 | Cleaned up the syncing config dialog. |
171 | Added sync config options for date range for events. | 176 | Added sync config options for date range for events. |
172 | Added sync config options for filters on incoming data. | 177 | Added sync config options for filters on incoming data. |
173 | Added sync config options for filters on outgoing data. | 178 | Added sync config options for filters on outgoing data. |
174 | Please read the updated SyncHowTo about the new filter settings. | 179 | Please read the updated SyncHowTo about the new filter settings. |
175 | These filter settings make it now possible to sync with shared | 180 | These filter settings make it now possible to sync with shared |
176 | calendars without writing back private or confidential data | 181 | calendars without writing back private or confidential data |
177 | (via the outgoing filters). | 182 | (via the outgoing filters). |
178 | To sync only with particular parts of a shared calendar, | 183 | To sync only with particular parts of a shared calendar, |
179 | the incoming filter settings can be used. | 184 | the incoming filter settings can be used. |
180 | An example can be found in the SyncHowTo. | 185 | An example can be found in the SyncHowTo. |
181 | Same for shared addressbooks. | 186 | Same for shared addressbooks. |
182 | 187 | ||
183 | Added a setting for the global kdepim data storage. | 188 | Added a setting for the global kdepim data storage. |
184 | Usually the data is stored in (yourhomedir/kdepim). | 189 | Usually the data is stored in (yourhomedir/kdepim). |
185 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" | 190 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" |
186 | a directory where all the kdepim data is stored. | 191 | a directory where all the kdepim data is stored. |
187 | That makes it easy to save all kdepim data on a SD card on the Z, for example. | 192 | That makes it easy to save all kdepim data on a SD card on the Z, for example. |
188 | 193 | ||
189 | KO/Pi: | 194 | KO/Pi: |
190 | The timeedit input has a pulldown list for times. | 195 | The timeedit input has a pulldown list for times. |
191 | If opened, this pulldown list should now has the right time highlighted. | 196 | If opened, this pulldown list should now has the right time highlighted. |
192 | Added the possibility to exclude events/todos/journals in a filter. | 197 | Added the possibility to exclude events/todos/journals in a filter. |
193 | You should exclude journals, if you do not want them to sync with a public calendar. | 198 | You should exclude journals, if you do not want them to sync with a public calendar. |
194 | 199 | ||
195 | KA/Pi: | 200 | KA/Pi: |
196 | Added the possibility to in/exclude public/private/confidential contacts to a filter. | 201 | Added the possibility to in/exclude public/private/confidential contacts to a filter. |
197 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... | 202 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... |
198 | Added printing of card view and details view on desktop. | 203 | Added printing of card view and details view on desktop. |
199 | Printing of list view is not working... | 204 | Printing of list view is not working... |
200 | Added button for removing pictures in contact editor. | 205 | Added button for removing pictures in contact editor. |
201 | Parsing data fix of KA/Pi version 1.9.17. | 206 | Parsing data fix of KA/Pi version 1.9.17. |
202 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. | 207 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. |
203 | Fixed some syncing merging problems. | 208 | Fixed some syncing merging problems. |
204 | 209 | ||
205 | 210 | ||
206 | ********** VERSION 1.9.17 ************ | 211 | ********** VERSION 1.9.17 ************ |
207 | 212 | ||
208 | KO/Pi: | 213 | KO/Pi: |
209 | Fixed that tooltips were not updated after moving an item in agenda view. | 214 | Fixed that tooltips were not updated after moving an item in agenda view. |
210 | Fixed a bug in sorting start date for recurring events in list view. | 215 | Fixed a bug in sorting start date for recurring events in list view. |
211 | Changed the left button in todo viewer from "Agenda" to "Set completed". | 216 | Changed the left button in todo viewer from "Agenda" to "Set completed". |
212 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. | 217 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. |
213 | Added more info in the todo viewer: Startdate, parent/sub todos. | 218 | Added more info in the todo viewer: Startdate, parent/sub todos. |
214 | 219 | ||
215 | 220 | ||
216 | KA/Pi: | 221 | KA/Pi: |
217 | All fields search does now actually search all the (possible) fields, | 222 | All fields search does now actually search all the (possible) fields, |
218 | not only those listed in the contact list. | 223 | not only those listed in the contact list. |
219 | Made is possible to inline a picture in a vcard on the Z. | 224 | Made is possible to inline a picture in a vcard on the Z. |
220 | This was only possible on the desktop, now is it possible on the Z as well. | 225 | This was only possible on the desktop, now is it possible on the Z as well. |
221 | Fixed of missing save settings after filter configuration. | 226 | Fixed of missing save settings after filter configuration. |
222 | Made saving of addressbook much faster. | 227 | Made saving of addressbook much faster. |
223 | Fixed extension widget layout problem. | 228 | Fixed extension widget layout problem. |
224 | Fixed saving of default formatted name settings. | 229 | Fixed saving of default formatted name settings. |
225 | Fixed formatted name handling in edit dialog. | 230 | Fixed formatted name handling in edit dialog. |
226 | Added an option for changing formatted names of many contacts | 231 | Added an option for changing formatted names of many contacts |
227 | (menu: File - Change - Set formatted name). | 232 | (menu: File - Change - Set formatted name). |
228 | 233 | ||
229 | QWhatsThis was not working on the Z ( only black rectangle was shown). | 234 | QWhatsThis was not working on the Z ( only black rectangle was shown). |
230 | This is Fixed. | 235 | This is Fixed. |
231 | 236 | ||
232 | KDE-Sync: | 237 | KDE-Sync: |
233 | Now readonly KDE resources are synced as well. | 238 | Now readonly KDE resources are synced as well. |
234 | (They are not changed in KDE itself, of course). | 239 | (They are not changed in KDE itself, of course). |
235 | 240 | ||
236 | 241 | ||
237 | 242 | ||
238 | ********** VERSION 1.9.16 ************ | 243 | ********** VERSION 1.9.16 ************ |
239 | 244 | ||
240 | KO/Pi: | 245 | KO/Pi: |
241 | Fixed search dialog size on Z 6000 (480x640 display). | 246 | Fixed search dialog size on Z 6000 (480x640 display). |
242 | Added setting to hide/show time in agenda items. | 247 | Added setting to hide/show time in agenda items. |
243 | Added setting to hide not running todos in todo view. | 248 | Added setting to hide not running todos in todo view. |
244 | Added columns for start date/time in todo view. | 249 | Added columns for start date/time in todo view. |
245 | Replaced the solid half-hour lines in agenda view by dot lines. | 250 | Replaced the solid half-hour lines in agenda view by dot lines. |
246 | Added possibility of printing the What's Next View on the desktop | 251 | Added possibility of printing the What's Next View on the desktop |
247 | (i.e. Windows and Linux). | 252 | (i.e. Windows and Linux). |
248 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. | 253 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. |
249 | Added tooltips in month view.(Tooltips only available on desktop) | 254 | Added tooltips in month view.(Tooltips only available on desktop) |
250 | 255 | ||
251 | Fixed a strange problem in KO/Pi alarm applet. | 256 | Fixed a strange problem in KO/Pi alarm applet. |
252 | Did not find the actual problem, | 257 | Did not find the actual problem, |
253 | such that now Qtopia reboots again if deinstalling the alarm applet. | 258 | such that now Qtopia reboots again if deinstalling the alarm applet. |
254 | But the alarm applet should work again. | 259 | But the alarm applet should work again. |
255 | 260 | ||
256 | KA/Pi: | 261 | KA/Pi: |
257 | Fixed the problem, that internal pictures were not saved. | 262 | Fixed the problem, that internal pictures were not saved. |
258 | 263 | ||
259 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. | 264 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. |
260 | 265 | ||
261 | Fixed some minor problems. (Like word wrap in help text windows). | 266 | Fixed some minor problems. (Like word wrap in help text windows). |
262 | 267 | ||
263 | Fixed a compiling problem in microkde/kresources. | 268 | Fixed a compiling problem in microkde/kresources. |
264 | 269 | ||
265 | KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM. | 270 | KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM. |
266 | This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9) | 271 | This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9) |
267 | such that now syncing KO/Pi with Sharp DTM should work on the | 272 | such that now syncing KO/Pi with Sharp DTM should work on the |
268 | Zaurus C 3000 model. | 273 | Zaurus C 3000 model. |
269 | 274 | ||
270 | ********** VERSION 1.9.15 ************ | 275 | ********** VERSION 1.9.15 ************ |
271 | 276 | ||
272 | Usebilty enhancements in KO/Pi: | 277 | Usebilty enhancements in KO/Pi: |
273 | When clicking on the date in a month view cell, the day view is shown. | 278 | When clicking on the date in a month view cell, the day view is shown. |
274 | Old behaviour was, that the "new event" dialog popped up. | 279 | Old behaviour was, that the "new event" dialog popped up. |
275 | 280 | ||
276 | Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). | 281 | Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). |
277 | That means, you can restore the latest | 282 | That means, you can restore the latest |
278 | event/todo/journal you have deleted. | 283 | event/todo/journal you have deleted. |
279 | A journal is deleted, if you clear all the text of the journal. | 284 | A journal is deleted, if you clear all the text of the journal. |
280 | 285 | ||
281 | Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. | 286 | Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. |
282 | 287 | ||
283 | KA/Pi starting in 480x640 resolution: | 288 | KA/Pi starting in 480x640 resolution: |
284 | Hide the filter action in toolbar | 289 | Hide the filter action in toolbar |
285 | and added icons for undo/delete/redo in toolbar. | 290 | and added icons for undo/delete/redo in toolbar. |
286 | 291 | ||
287 | Change in OM/Pi ViewMail dialog: | 292 | Change in OM/Pi ViewMail dialog: |
288 | When clicking on the "delete" icon the mail is deleted after confirmation as usual. | 293 | When clicking on the "delete" icon the mail is deleted after confirmation as usual. |
289 | But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). | 294 | But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). |
290 | 295 | ||
291 | Fixed a crash when deleting mail-accounts in OM/Pi. | 296 | Fixed a crash when deleting mail-accounts in OM/Pi. |
292 | 297 | ||
293 | 298 | ||
294 | ********** VERSION 1.9.14 ************ | 299 | ********** VERSION 1.9.14 ************ |
295 | 300 | ||
296 | Fixed some problems with the dialog sizes when switching | 301 | Fixed some problems with the dialog sizes when switching |
297 | portrait/landscape mode on 640x480 PDA display. | 302 | portrait/landscape mode on 640x480 PDA display. |
298 | 303 | ||
299 | Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. | 304 | Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. |
300 | 305 | ||
301 | Fixed an ugly bug in KOpieMail: | 306 | Fixed an ugly bug in KOpieMail: |
302 | KOpieMail was not able to write files (mails) to MSDOS file system, | 307 | KOpieMail was not able to write files (mails) to MSDOS file system, |
303 | like on an usual preformatted SD card. That should work now. | 308 | like on an usual preformatted SD card. That should work now. |
304 | To save your mail data on the Sd card do the following: | 309 | To save your mail data on the Sd card do the following: |
305 | Create a dir on the SD card: | 310 | Create a dir on the SD card: |
306 | mkdir /mnt/card/localmail | 311 | mkdir /mnt/card/localmail |
307 | Go to your home dir: | 312 | Go to your home dir: |
308 | cd | 313 | cd |
309 | Go to kopiemail data storage dir: | 314 | Go to kopiemail data storage dir: |
310 | cd kdepim/apps/kopiemail | 315 | cd kdepim/apps/kopiemail |
311 | Create a symlink to the SD card: | 316 | Create a symlink to the SD card: |
312 | ls -s /mnt/card/localmail | 317 | ls -s /mnt/card/localmail |
313 | Now KOpieMail will store all mails on the SD card. | 318 | Now KOpieMail will store all mails on the SD card. |
314 | 319 | ||
315 | KO/Pi Monthview: | 320 | KO/Pi Monthview: |
316 | Now "Go to Today" selects the current month from day 1-end, | 321 | Now "Go to Today" selects the current month from day 1-end, |
317 | not the current date + some days. | 322 | not the current date + some days. |
318 | I.e. "Go to Today" shows now always | 323 | I.e. "Go to Today" shows now always |
319 | the current month with first day of month in the first row. | 324 | the current month with first day of month in the first row. |
320 | 325 | ||
321 | Added missing German translation. | 326 | Added missing German translation. |
322 | 327 | ||
323 | Fixed icons of executeable on Wintendo. | 328 | Fixed icons of executeable on Wintendo. |
324 | 329 | ||
325 | Added a "Show next Mail" button to the OM/Pi | 330 | Added a "Show next Mail" button to the OM/Pi |
326 | mail viewer such that the mail below the current mail | 331 | mail viewer such that the mail below the current mail |
327 | in the mail list view of the current folder | 332 | in the mail list view of the current folder |
328 | can be read with a single click. | 333 | can be read with a single click. |
329 | 334 | ||
330 | 335 | ||
331 | ********** VERSION 1.9.13 ************ | 336 | ********** VERSION 1.9.13 ************ |
332 | 337 | ||
333 | Fixed nasty PwM/Pi file reading bug, when | 338 | Fixed nasty PwM/Pi file reading bug, when |
334 | the used hash algo of file is different then the global | 339 | the used hash algo of file is different then the global |
335 | hash algo. | 340 | hash algo. |
336 | 341 | ||
337 | Added KA/Pi support for opie mailit mailapplication. | 342 | Added KA/Pi support for opie mailit mailapplication. |
338 | 343 | ||
339 | Fixed some bugs in OM/Pi. | 344 | Fixed some bugs in OM/Pi. |
340 | Now character conversion tables are available for the Zaurus | 345 | Now character conversion tables are available for the Zaurus |
341 | to make OM/Pi working properly. | 346 | to make OM/Pi working properly. |
342 | To get the character conversion in OM/Pi working, please download | 347 | To get the character conversion in OM/Pi working, please download |
343 | at the sourceforge project site the package | 348 | at the sourceforge project site the package |
344 | sr-character-conversion_SharpROM_arm.ipk.zip | 349 | sr-character-conversion_SharpROM_arm.ipk.zip |
345 | (or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms) | 350 | (or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms) |
346 | from the section "general files for KDE/Pim" | 351 | from the section "general files for KDE/Pim" |
347 | Instructions how to install this package are in a ReadMe in this file. | 352 | Instructions how to install this package are in a ReadMe in this file. |
348 | 353 | ||
349 | 354 | ||
350 | Fixed the orientation change problem in KA/Pi when switching | 355 | Fixed the orientation change problem in KA/Pi when switching |
351 | portrait/landscape mode. | 356 | portrait/landscape mode. |
352 | 357 | ||
353 | French translation available for KA/Pi and OM/Pi. | 358 | French translation available for KA/Pi and OM/Pi. |
354 | 359 | ||
355 | Fixed some problems with categories in KO/Pi in DTM sync. | 360 | Fixed some problems with categories in KO/Pi in DTM sync. |
356 | 361 | ||
357 | Added selection dialog for export to phone in KA/Pi. | 362 | Added selection dialog for export to phone in KA/Pi. |
358 | 363 | ||
359 | If in KO/Pi is an attendee selected to add to a meeting and this | 364 | If in KO/Pi is an attendee selected to add to a meeting and this |
360 | attendee is already in the list of attendees, this person is not added | 365 | attendee is already in the list of attendees, this person is not added |
361 | again. | 366 | again. |
362 | 367 | ||
363 | Some menu cleanup in KA/Pi. | 368 | Some menu cleanup in KA/Pi. |
364 | 369 | ||
365 | ********** VERSION 1.9.12 ************ | 370 | ********** VERSION 1.9.12 ************ |
366 | 371 | ||
367 | Fix for the bug in KO/Pi What's Next view of version 1.9.11. | 372 | Fix for the bug in KO/Pi What's Next view of version 1.9.11. |
368 | 373 | ||
369 | Bugfix: Licence file is now shown again. | 374 | Bugfix: Licence file is now shown again. |
370 | 375 | ||
371 | OM/Pi now supports Unicode (utf8 charset). | 376 | OM/Pi now supports Unicode (utf8 charset). |
372 | Fixed some bugs in OM/Pi. | 377 | Fixed some bugs in OM/Pi. |
373 | 378 | ||
374 | KA/Pi has more German translation. | 379 | KA/Pi has more German translation. |
375 | 380 | ||
376 | 381 | ||
377 | ********** VERSION 1.9.11 ************ | 382 | ********** VERSION 1.9.11 ************ |
378 | 383 | ||
379 | Fixed several problems in PWM/Pi, like | 384 | Fixed several problems in PWM/Pi, like |
380 | asking the user, if unsaved changed are pending | 385 | asking the user, if unsaved changed are pending |
381 | when closing the app. | 386 | when closing the app. |
382 | And PwM/Pi handles now different texts for the | 387 | And PwM/Pi handles now different texts for the |
383 | fields Description, Username, Password, configurable per category. | 388 | fields Description, Username, Password, configurable per category. |
384 | 389 | ||
385 | Fixed a crash in KO/Pi , when importing/loading vcs files | 390 | Fixed a crash in KO/Pi , when importing/loading vcs files |
386 | which have an entry with an attendee with state: | 391 | which have an entry with an attendee with state: |
387 | NEEDS ACTION | 392 | NEEDS ACTION |
388 | 393 | ||
389 | Fixed some problems in the German translation of OM/Pi, | 394 | Fixed some problems in the German translation of OM/Pi, |
390 | which makes some dialogs not fitting on the screen | 395 | which makes some dialogs not fitting on the screen |
391 | of the Z 5500. | 396 | of the Z 5500. |
392 | 397 | ||
393 | Fixed Qtopia crash, when disabling/deinstalling | 398 | Fixed Qtopia crash, when disabling/deinstalling |
394 | KO/Pi alarm applet. | 399 | KO/Pi alarm applet. |
395 | 400 | ||
396 | Implemented direct KDE<->KA/Pi sync for KA/Pi running | 401 | Implemented direct KDE<->KA/Pi sync for KA/Pi running |
397 | on Linux desktop. | 402 | on Linux desktop. |
398 | 403 | ||
399 | Added feature "remove sync info" to sync menu. | 404 | Added feature "remove sync info" to sync menu. |
400 | 405 | ||
401 | Tweaked the KO/Pi What's next view a bit, added | 406 | Tweaked the KO/Pi What's next view a bit, added |
402 | setting to hide events that are done. | 407 | setting to hide events that are done. |
403 | 408 | ||
404 | Disabled "beam receive enabled" on startup to | 409 | Disabled "beam receive enabled" on startup to |
405 | avoid problems if Fastload is enabled. | 410 | avoid problems if Fastload is enabled. |
406 | Please set "beam receive enabled", | 411 | Please set "beam receive enabled", |
407 | if you want to receive data via IR. | 412 | if you want to receive data via IR. |
408 | 413 | ||
409 | Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running | 414 | Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running |
410 | on Linux desktop. | 415 | on Linux desktop. |
411 | 416 | ||
412 | Made in KA/Pi scrolling possible, if details view is selected. | 417 | Made in KA/Pi scrolling possible, if details view is selected. |
413 | (The keyboard focus is set automatically to the search line) | 418 | (The keyboard focus is set automatically to the search line) |
414 | 419 | ||
415 | Fixed a bug in DMT sync, that a new entry in DTM was added | 420 | Fixed a bug in DMT sync, that a new entry in DTM was added |
416 | on every sync to Kx/Pi. | 421 | on every sync to Kx/Pi. |
417 | 422 | ||
418 | Fixed missing writing of KA/Pi categories to DMT entries when syncing. | 423 | Fixed missing writing of KA/Pi categories to DMT entries when syncing. |
419 | 424 | ||
420 | Fixed a bug in DMT sync with todos created in KO/Pi containing | 425 | Fixed a bug in DMT sync with todos created in KO/Pi containing |
421 | non-latin1 characters. | 426 | non-latin1 characters. |
422 | 427 | ||
423 | Rearranged package contents of Sharp-ipks and made all | 428 | Rearranged package contents of Sharp-ipks and made all |
424 | packages installable on SD again. | 429 | packages installable on SD again. |
425 | 430 | ||
426 | Fixed the writing of addressbook data in DTM sync. | 431 | Fixed the writing of addressbook data in DTM sync. |
427 | Empty fields in KA/Pi were not removed. | 432 | Empty fields in KA/Pi were not removed. |
428 | 433 | ||
429 | Added better category handling in KA/Pi: | 434 | Added better category handling in KA/Pi: |
430 | Added item | 435 | Added item |
431 | Edit Categories and | 436 | Edit Categories and |
432 | Manage new categories | 437 | Manage new categories |
433 | to the settings menu. | 438 | to the settings menu. |
434 | Possible to configure a view to display categories. | 439 | Possible to configure a view to display categories. |
435 | 440 | ||
436 | Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu. | 441 | Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu. |
437 | 442 | ||
438 | Fixed displaying of "free" days and time in KO Monthview and Agendaview. | 443 | Fixed displaying of "free" days and time in KO Monthview and Agendaview. |
439 | 444 | ||
440 | ... and many other bugfixes. | 445 | ... and many other bugfixes. |
441 | 446 | ||
442 | ********** VERSION 1.9.10 ************ | 447 | ********** VERSION 1.9.10 ************ |
443 | 448 | ||
444 | Many internal small bugfixes. | 449 | Many internal small bugfixes. |
445 | And fix of the "big" bug in KO/Pi, | 450 | And fix of the "big" bug in KO/Pi, |
446 | that after Syncing the appointments had an offset by several hours. | 451 | that after Syncing the appointments had an offset by several hours. |
447 | That was a problem with the internal timezone setting, | 452 | That was a problem with the internal timezone setting, |
448 | introduced by the changed timezone configuration settings. | 453 | introduced by the changed timezone configuration settings. |
449 | 454 | ||
450 | German translation for OM/Pi is now available. | 455 | German translation for OM/Pi is now available. |
451 | 456 | ||
452 | 457 | ||
453 | ********** VERSION 1.9.9 ************ | 458 | ********** VERSION 1.9.9 ************ |
454 | 459 | ||
455 | KDE-Pim/Pi has a new Member! | 460 | KDE-Pim/Pi has a new Member! |
456 | It is called PWM/Pi (Passwordmanager/platform-independent) | 461 | It is called PWM/Pi (Passwordmanager/platform-independent) |
457 | and it is available for the Zaurus. | 462 | and it is available for the Zaurus. |
458 | It is planned, that it will be available later for Windows. | 463 | It is planned, that it will be available later for Windows. |
459 | (And for Linux, of course). | 464 | (And for Linux, of course). |
460 | It is a port of the Passwordmanager of KDE. | 465 | It is a port of the Passwordmanager of KDE. |
461 | It will need the MicroKDElibs to run. | 466 | It will need the MicroKDElibs to run. |
462 | 467 | ||
463 | Made loading of addressbooks in KA/Pi up to 7 times faster! | 468 | Made loading of addressbooks in KA/Pi up to 7 times faster! |
464 | The bigger your addressbook file, the more starting speed | 469 | The bigger your addressbook file, the more starting speed |
465 | will you gain. (relatively) | 470 | will you gain. (relatively) |
466 | 471 | ||
467 | The Qtopia addressbook connector is now platform independend | 472 | The Qtopia addressbook connector is now platform independend |
468 | as well and should work on any platform for importing/exporting | 473 | as well and should work on any platform for importing/exporting |
469 | Qtopia and Opie XML files. | 474 | Qtopia and Opie XML files. |
470 | 475 | ||
471 | Added a +30min feature to the timezone settings to make | 476 | Added a +30min feature to the timezone settings to make |
472 | KDE-Pim/Pi useable in Australia and other parts on the | 477 | KDE-Pim/Pi useable in Australia and other parts on the |
473 | world with strange timezones ;-) | 478 | world with strange timezones ;-) |
474 | 479 | ||
475 | German "Umlaute" should now be sorted correctly on the Z in KA/Pi. | 480 | German "Umlaute" should now be sorted correctly on the Z in KA/Pi. |
476 | 481 | ||
477 | It is now possible to disable the | 482 | It is now possible to disable the |
478 | "receive data via infrared" feature, such that syncing with | 483 | "receive data via infrared" feature, such that syncing with |
479 | Outlook is now possible again with Kx/Pi runing. | 484 | Outlook is now possible again with Kx/Pi runing. |
480 | Please disable it, before syncing Sharp DTM with Outlook. | 485 | Please disable it, before syncing Sharp DTM with Outlook. |
481 | For your convenience, the "receive data via infrared" feature | 486 | For your convenience, the "receive data via infrared" feature |
482 | is disabled automatically, if you sync Kx/Pi with DTM. | 487 | is disabled automatically, if you sync Kx/Pi with DTM. |
483 | You have to enable it again manually after syncing. | 488 | You have to enable it again manually after syncing. |
484 | Enabling this feature makes it impossible to start the | 489 | Enabling this feature makes it impossible to start the |
485 | Sharp DTM apps. If this feature is enabled, you will only get the | 490 | Sharp DTM apps. If this feature is enabled, you will only get the |
486 | alarm notification from KO/Pi and not from the Sharp calendar. | 491 | alarm notification from KO/Pi and not from the Sharp calendar. |
487 | This is very useful if you sync KO/Pi with Sharp DTM, | 492 | This is very useful if you sync KO/Pi with Sharp DTM, |
488 | because after syncing you usually would get notified about | 493 | because after syncing you usually would get notified about |
489 | an alarm by KO/Pi and the Sharp Calendar. | 494 | an alarm by KO/Pi and the Sharp Calendar. |
490 | 495 | ||
491 | Together with the Linux desktop version of KO/Pi | 496 | Together with the Linux desktop version of KO/Pi |
492 | it is now possible to sync KO/Pi on the Zaurus | 497 | it is now possible to sync KO/Pi on the Zaurus |
493 | with the complete KDE-desktop (3.3 or later) | 498 | with the complete KDE-desktop (3.3 or later) |
494 | calendar data easily. | 499 | calendar data easily. |
495 | That makes it possible to sync the Z with one | 500 | That makes it possible to sync the Z with one |
496 | click of a mouse with the KDE-Desktop. | 501 | click of a mouse with the KDE-Desktop. |
497 | This feature it available for all Zaurus platforms KO/Pi | 502 | This feature it available for all Zaurus platforms KO/Pi |
498 | is running on. | 503 | is running on. |
499 | The only thing needed is a running KO/Pi on Linux and | 504 | The only thing needed is a running KO/Pi on Linux and |
500 | a compiled version of the small | 505 | a compiled version of the small |
501 | KDE-Pim/Pi<->KDE-Desktop access command line program, | 506 | KDE-Pim/Pi<->KDE-Desktop access command line program, |
502 | which is in the KDE-Pim/Pi sources available. | 507 | which is in the KDE-Pim/Pi sources available. |
503 | 508 | ||
504 | The "KDE-desktop" syncing feature for KA/Pi will follow | 509 | The "KDE-desktop" syncing feature for KA/Pi will follow |
505 | in the next releases. | 510 | in the next releases. |
506 | 511 | ||
507 | Fixed the vcard export bug, which had the version 1.9.8. | 512 | Fixed the vcard export bug, which had the version 1.9.8. |
508 | 513 | ||
509 | Added missing GERMAN translation to KO/Pi. | 514 | Added missing GERMAN translation to KO/Pi. |
510 | Hi PsionX, could you add the missing french translation?Thx! | 515 | Hi PsionX, could you add the missing french translation?Thx! |
511 | 516 | ||
512 | Translation files for KA/Pi are available as well. | 517 | Translation files for KA/Pi are available as well. |
513 | GERMAN translation will be available in the next release. | 518 | GERMAN translation will be available in the next release. |
514 | PsionX ( yres, you again ;-) ), could you start translating | 519 | PsionX ( yres, you again ;-) ), could you start translating |
515 | KA/Pi? Thx! | 520 | KA/Pi? Thx! |
516 | 521 | ||
517 | You can download the version 1.9.9 at | 522 | You can download the version 1.9.9 at |
518 | 523 | ||
519 | http://sourceforge.net/project/showfiles.php?group_id=104103&package_id=112604 | 524 | http://sourceforge.net/project/showfiles.php?group_id=104103&package_id=112604 |
520 | 525 | ||
521 | Note: | 526 | Note: |
522 | To run the mail program OM/Pi you need libopenssl. | 527 | To run the mail program OM/Pi you need libopenssl. |
523 | A link to a download loaction is available at | 528 | A link to a download loaction is available at |
524 | ZSI at www.killefiz.de | 529 | ZSI at www.killefiz.de |
525 | 530 | ||
526 | 531 | ||
527 | ********** VERSION 1.9.8 ************ | 532 | ********** VERSION 1.9.8 ************ |
528 | 533 | ||
529 | Fixed character decoding in OM/Pi. | 534 | Fixed character decoding in OM/Pi. |
530 | (e.g. German "Umlaute" were not displayed properly.) | 535 | (e.g. German "Umlaute" were not displayed properly.) |
531 | 536 | ||
532 | Made is possible to reparent todos in KO/Pi. | 537 | Made is possible to reparent todos in KO/Pi. |
533 | Use contextmenu or keys (look at Help-Keys + Colors) for that. | 538 | Use contextmenu or keys (look at Help-Keys + Colors) for that. |
534 | 539 | ||
535 | Added the missing Sync-Howto and WhatsNew to the packages. | 540 | Added the missing Sync-Howto and WhatsNew to the packages. |
536 | 541 | ||
537 | KO/Pi on Linux desktop can now sync with KDE desktop. | 542 | KO/Pi on Linux desktop can now sync with KDE desktop. |
538 | That means: When using KO/Pi on Linux desktop for syncing with | 543 | That means: When using KO/Pi on Linux desktop for syncing with |
539 | KDE desktop and the Zaurus, the Zaurus can be synced now | 544 | KDE desktop and the Zaurus, the Zaurus can be synced now |
540 | with all KDE-Calendar resources, not only with one local file. | 545 | with all KDE-Calendar resources, not only with one local file. |
541 | (That makes it possible to sync the Zaurus with the | 546 | (That makes it possible to sync the Zaurus with the |
542 | calendar data on a Kolab server) | 547 | calendar data on a Kolab server) |
543 | 548 | ||
544 | KA/Pi syncing with KDE desktop will be available in the next version. | 549 | KA/Pi syncing with KDE desktop will be available in the next version. |
545 | 550 | ||
546 | 551 | ||
547 | ********** VERSION 1.9.7 ************ | 552 | ********** VERSION 1.9.7 ************ |
548 | 553 | ||
549 | KO/Pi - KA/Pi on Windows: | 554 | KO/Pi - KA/Pi on Windows: |
550 | Now a directory can be defined by the user, where the | 555 | Now a directory can be defined by the user, where the |
551 | application/config data should be saved. | 556 | application/config data should be saved. |
552 | Define your desired path in the evironment variable | 557 | Define your desired path in the evironment variable |
553 | MICROKDEHOME | 558 | MICROKDEHOME |
554 | before starting KO/Pi or KA/Pi. | 559 | before starting KO/Pi or KA/Pi. |
555 | 560 | ||
556 | An easy Kx/Pi to Kx/Pi syncing is now possible | 561 | An easy Kx/Pi to Kx/Pi syncing is now possible |
557 | (it is called Pi-Sync) via network. | 562 | (it is called Pi-Sync) via network. |
558 | Please look at the Sync Howto. | 563 | Please look at the Sync Howto. |
559 | 564 | ||
560 | Exporting of calendar data and contacts to mobile phones is now possible. | 565 | Exporting of calendar data and contacts to mobile phones is now possible. |
561 | The SyncHowto is updated with information howto | 566 | The SyncHowto is updated with information howto |
562 | access/sync mobile phones. | 567 | access/sync mobile phones. |
563 | Please look at the Sync Howto. | 568 | Please look at the Sync Howto. |
564 | 569 | ||
565 | Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly. | 570 | Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly. |
566 | Please disable Fastload for the original contact/calendar applications | 571 | Please disable Fastload for the original contact/calendar applications |
567 | and close them. | 572 | and close them. |
568 | KO/Pi and KA/Pi must be running in order to receive the data. | 573 | KO/Pi and KA/Pi must be running in order to receive the data. |
569 | (KO/Pi and KA/Pi are always running if Fastload for them is enabled!) | 574 | (KO/Pi and KA/Pi are always running if Fastload for them is enabled!) |
570 | 575 | ||
571 | In the KA/Pi details view are now the preferred tel. numbers displayed on top | 576 | In the KA/Pi details view are now the preferred tel. numbers displayed on top |
572 | of the other data ( emails/tel.numbers/addresses) | 577 | of the other data ( emails/tel.numbers/addresses) |
573 | 578 | ||
574 | Fixed some syncing problems in KA/Pi. | 579 | Fixed some syncing problems in KA/Pi. |
575 | 580 | ||
576 | Added font settings for the KA/Pi details view. | 581 | Added font settings for the KA/Pi details view. |
577 | Added fields "children's name" and "gender" to KA/Pi. | 582 | Added fields "children's name" and "gender" to KA/Pi. |
578 | 583 | ||
579 | Made searching in KA/Pi better: | 584 | Made searching in KA/Pi better: |
580 | Now the first item in a view is selected after a search automatically and | 585 | Now the first item in a view is selected after a search automatically and |
581 | the views can be scrolled up/down when the search input field has the keyboard focus. | 586 | the views can be scrolled up/down when the search input field has the keyboard focus. |
582 | 587 | ||
583 | And, of course, fixed a bunch of reported bugs in KO/Pi and KA/Pi. | 588 | And, of course, fixed a bunch of reported bugs in KO/Pi and KA/Pi. |
584 | 589 | ||
585 | 590 | ||
586 | ********** VERSION 1.9.6 ************ | 591 | ********** VERSION 1.9.6 ************ |
587 | 592 | ||
588 | Changes in the external application communication on the Zaurus | 593 | Changes in the external application communication on the Zaurus |
589 | in order to use less RAM when the apps are running. | 594 | in order to use less RAM when the apps are running. |
590 | First syncing of addressbooks (KA/Pi) is possible. | 595 | First syncing of addressbooks (KA/Pi) is possible. |
591 | 596 | ||
592 | 597 | ||
593 | ********** VERSION 1.9.5a ************ | 598 | ********** VERSION 1.9.5a ************ |
594 | 599 | ||
595 | Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5. | 600 | Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5. |
596 | Fixed some small bugs. | 601 | Fixed some small bugs. |
597 | KA/Pi shows now the birthday in summary view. | 602 | KA/Pi shows now the birthday in summary view. |
598 | Now OM/Pi and KA/Pi are using the date format defined in KO/Pi | 603 | Now OM/Pi and KA/Pi are using the date format defined in KO/Pi |
599 | for displaying dates. | 604 | for displaying dates. |
600 | 605 | ||
601 | 606 | ||
602 | ********** VERSION 1.9.5 ************ | 607 | ********** VERSION 1.9.5 ************ |
603 | 608 | ||
604 | There is still no Addressbook syncing! | 609 | There is still no Addressbook syncing! |
605 | 610 | ||
606 | New in 1.9.5: | 611 | New in 1.9.5: |
607 | 612 | ||
608 | Many bugfixes. | 613 | Many bugfixes. |
609 | Better searching in KA/Pi. | 614 | Better searching in KA/Pi. |
610 | You can configure in KA/Pi if you want to search only after | 615 | You can configure in KA/Pi if you want to search only after |
611 | <return> key pressed. | 616 | <return> key pressed. |
612 | 617 | ||
613 | Better mail downloading in OM/Pi. | 618 | Better mail downloading in OM/Pi. |
614 | 619 | ||
615 | First experimental alpha version of sync of KO/Pi with mobile phones. | 620 | First experimental alpha version of sync of KO/Pi with mobile phones. |
616 | See gammu documentation for supported phones. | 621 | See gammu documentation for supported phones. |
617 | You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp. | 622 | You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp. |
618 | Quick hint how to use: | 623 | Quick hint how to use: |
619 | NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL! | 624 | NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL! |
620 | Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp. | 625 | Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp. |
621 | Create syncprofile - mobile device | 626 | Create syncprofile - mobile device |
622 | Remove entry for model. (Leave empty ). | 627 | Remove entry for model. (Leave empty ). |
623 | Enable infrared on Zaurus and your Phone. | 628 | Enable infrared on Zaurus and your Phone. |
624 | Sync. | 629 | Sync. |
625 | To get a more detailed log, start kopi from konsole. | 630 | To get a more detailed log, start kopi from konsole. |
626 | 631 | ||
627 | ********** VERSION 1.9.4 ************ | 632 | ********** VERSION 1.9.4 ************ |
628 | 633 | ||
629 | This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus. | 634 | This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus. |
630 | 635 | ||
631 | WARNING: | 636 | WARNING: |
632 | PLEASE BACKUP ALL YOUR DATA! | 637 | PLEASE BACKUP ALL YOUR DATA! |
633 | We have changed a lot and maybe there are some unknown problems. | 638 | We have changed a lot and maybe there are some unknown problems. |
634 | 639 | ||
635 | SYNC HANDLING HAS CHANGED! | 640 | SYNC HANDLING HAS CHANGED! |
636 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. | 641 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. |
637 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). | 642 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). |
638 | 643 | ||
639 | You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs. | 644 | You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs. |
640 | If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well. | 645 | If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well. |
641 | 646 | ||
642 | As programs are available: | 647 | As programs are available: |
643 | KO/Pi (korganizer ipk) - a calendar program. | 648 | KO/Pi (korganizer ipk) - a calendar program. |
644 | KA/Pi (kaddressbook ipk ) - an addressbook | 649 | KA/Pi (kaddressbook ipk ) - an addressbook |
645 | OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support. | 650 | OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support. |
646 | 651 | ||
647 | An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode. | 652 | An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode. |
648 | (If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia) | 653 | (If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia) |
649 | 654 | ||
650 | All the applications are installed in a "Pim" TAB. | 655 | All the applications are installed in a "Pim" TAB. |
651 | If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk | 656 | If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk |
652 | 657 | ||
653 | All the application are integrated. | 658 | All the application are integrated. |
654 | Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail. | 659 | Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail. |
655 | 660 | ||
656 | HINT: | 661 | HINT: |
657 | If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number. | 662 | If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number. |
658 | 663 | ||
659 | What's new? | 664 | What's new? |
660 | 665 | ||
661 | SYNC HANDLING HAS CHANGED! | 666 | SYNC HANDLING HAS CHANGED! |
662 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. | 667 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. |
663 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). | 668 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). |
664 | 669 | ||
665 | New in OM/Pi: | 670 | New in OM/Pi: |
666 | When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails. | 671 | When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails. |
667 | 672 | ||
668 | New in KO/Pi: | 673 | New in KO/Pi: |
669 | French is now available for KO/Pi. | 674 | French is now available for KO/Pi. |
670 | Choose menu:Actions - Configure:TAB locale | 675 | Choose menu:Actions - Configure:TAB locale |
671 | Syncing has changed. | 676 | Syncing has changed. |
672 | Phone sync available soon. | 677 | Phone sync available soon. |
673 | Not much changes, I cannot remember them ... | 678 | Not much changes, I cannot remember them ... |
674 | 679 | ||
675 | New in KA/Pi: | 680 | New in KA/Pi: |
676 | Beaming possible. | 681 | Beaming possible. |
677 | Sharp DTM readonly access possible( create a new DTM resource ); | 682 | Sharp DTM readonly access possible( create a new DTM resource ); |
678 | Better searching possible. | 683 | Better searching possible. |
679 | Search is performed only after pressing the return key. | 684 | Search is performed only after pressing the return key. |
680 | Use wildcard * to specify parts of a name. | 685 | Use wildcard * to specify parts of a name. |
681 | 686 | ||
682 | Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * . | 687 | Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * . |
683 | 688 | ||
684 | A big improvement is the new management of the contact access. | 689 | A big improvement is the new management of the contact access. |
685 | In version 1.9.3, every application was using their own addressbook access data. | 690 | In version 1.9.3, every application was using their own addressbook access data. |
686 | That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi. | 691 | That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi. |
687 | That was wasting of memory, if you had several hundreds of contacts. | 692 | That was wasting of memory, if you had several hundreds of contacts. |
688 | 693 | ||
689 | Now only KA/Pi accesses the addressbook. | 694 | Now only KA/Pi accesses the addressbook. |
690 | If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them. | 695 | If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them. |
691 | If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly. | 696 | If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly. |
692 | That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first. | 697 | That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first. |
693 | 698 | ||
694 | New in the KO/Pi alarm applet: | 699 | New in the KO/Pi alarm applet: |
695 | Configure your own timer popup menu! | 700 | Configure your own timer popup menu! |
696 | (Text and minutes for timer countdown) | 701 | (Text and minutes for timer countdown) |
697 | Just edit the file | 702 | Just edit the file |
698 | (yourhomedir)/.kopialarmtimerrc | 703 | (yourhomedir)/.kopialarmtimerrc |
699 | and start/stop a timer to get a new menu with the data of this file. | 704 | and start/stop a timer to get a new menu with the data of this file. |
700 | 705 | ||
701 | ********** VERSION 1.9.3 ************ | 706 | ********** VERSION 1.9.3 ************ |
702 | 1) | 707 | 1) |
703 | Now KO/Pi on Windows imports directly the calendar data of | 708 | Now KO/Pi on Windows imports directly the calendar data of |
704 | an installed Outlook. Should work with OL version >= 2000. | 709 | an installed Outlook. Should work with OL version >= 2000. |
705 | 710 | ||
706 | ********** VERSION 1.9.2 ************ | 711 | ********** VERSION 1.9.2 ************ |
707 | 1) | 712 | 1) |
708 | KDE-Pim/Pi has got a new member: | 713 | KDE-Pim/Pi has got a new member: |
709 | KmicroMail (KM/Pi) is a mail program, | 714 | KmicroMail (KM/Pi) is a mail program, |
710 | which can handle IMAP and POP mail access. | 715 | which can handle IMAP and POP mail access. |
711 | It is based on Opie-Mail v3. | 716 | It is based on Opie-Mail v3. |
712 | All dependencies to the Opie libraries ar removed, | 717 | All dependencies to the Opie libraries ar removed, |
713 | such that no additional Opie lib is needed. | 718 | such that no additional Opie lib is needed. |
714 | It is already integrated in KO/Pi and KA/Pi. | 719 | It is already integrated in KO/Pi and KA/Pi. |
715 | It it now available for the Zaurus,probably it | 720 | It it now available for the Zaurus,probably it |
716 | will be available for other platforms later. | 721 | will be available for other platforms later. |
717 | Hint: | 722 | Hint: |
718 | Create your own contact (name + email) | 723 | Create your own contact (name + email) |
719 | in KA/Pi, select this contact and choose menu: | 724 | in KA/Pi, select this contact and choose menu: |
720 | Settings - Set Who Am I. | 725 | Settings - Set Who Am I. |
721 | Now the settings of this contact are used as | 726 | Now the settings of this contact are used as |
722 | the sender data in KM/Pi. | 727 | the sender data in KM/Pi. |
723 | 2) | 728 | 2) |
724 | KDE-Pim/Pi is split up in five different | 729 | KDE-Pim/Pi is split up in five different |
725 | packages now precompiled for Sharp Zaurus: | 730 | packages now precompiled for Sharp Zaurus: |
726 | --kmicrokdelibs_1.9.2_arm.ipk | 731 | --kmicrokdelibs_1.9.2_arm.ipk |
727 | The libs are needed for any | 732 | The libs are needed for any |
728 | of the following programs: | 733 | of the following programs: |
729 | --kaddressbook_1.9.2_arm.ipk | 734 | --kaddressbook_1.9.2_arm.ipk |
730 | --kmicromail_1.9.2_arm.ipk | 735 | --kmicromail_1.9.2_arm.ipk |
731 | --korganizer_1.9.2_arm.ipk | 736 | --korganizer_1.9.2_arm.ipk |
732 | Independ from that, there is the alarm applet | 737 | Independ from that, there is the alarm applet |
733 | available for KO/Pi, which also offers | 738 | available for KO/Pi, which also offers |
734 | quick access for a new mail or | 739 | quick access for a new mail or |
735 | showing the addressbook.: | 740 | showing the addressbook.: |
736 | --korganizer-alarm_1.9.2_arm.ipk | 741 | --korganizer-alarm_1.9.2_arm.ipk |
737 | Independend means, that the alarm applet | 742 | Independend means, that the alarm applet |
738 | does not need any of the libs or programs above to run. | 743 | does not need any of the libs or programs above to run. |
739 | But it would be quite useless without these programs. | 744 | But it would be quite useless without these programs. |
740 | NOTE: | 745 | NOTE: |
741 | If you get a | 746 | If you get a |
742 | "This application depends on other programs" | 747 | "This application depends on other programs" |
743 | during installation of | 748 | during installation of |
744 | --kmicrokdelibs_1.9.2_arm.ipk | 749 | --kmicrokdelibs_1.9.2_arm.ipk |
745 | you probably do not have to care about that. | 750 | you probably do not have to care about that. |
746 | kmicrokdelibs_1.9.2 will come with some | 751 | kmicrokdelibs_1.9.2 will come with some |
747 | resource plugins, which needs additional libraries. | 752 | resource plugins, which needs additional libraries. |
748 | (E.g. libopie1, if you want to use the | 753 | (E.g. libopie1, if you want to use the |
749 | opie resource connector in KA/Pi). | 754 | opie resource connector in KA/Pi). |
750 | If you do not have this libraries installed, | 755 | If you do not have this libraries installed, |
751 | you simply cannot use the resource. | 756 | you simply cannot use the resource. |
752 | To make it clear: | 757 | To make it clear: |
753 | If the libraries are missing, the applications | 758 | If the libraries are missing, the applications |
754 | using kmicrokdelibs will start, | 759 | using kmicrokdelibs will start, |
755 | because the resources are plugins. | 760 | because the resources are plugins. |
756 | 3) | 761 | 3) |
757 | KO/Pi and friends are now installable on SD-Card! | 762 | KO/Pi and friends are now installable on SD-Card! |
758 | It is recommended to install all libs and apps | 763 | It is recommended to install all libs and apps |
759 | on the SD card or all in the internal storage. | 764 | on the SD card or all in the internal storage. |
760 | There may be problems, if this is mixed. | 765 | There may be problems, if this is mixed. |
761 | 4) | 766 | 4) |
762 | Fixed two bugs in the alarm notification on Windows. | 767 | Fixed two bugs in the alarm notification on Windows. |
763 | 5) | 768 | 5) |
764 | Great improvement! | 769 | Great improvement! |
765 | KO/Pi uses now the latest version of libical. | 770 | KO/Pi uses now the latest version of libical. |
766 | Libical is the library which actually reads | 771 | Libical is the library which actually reads |
767 | the calendar files and extract the data from it. | 772 | the calendar files and extract the data from it. |
768 | With the old version, there were problems | 773 | With the old version, there were problems |
769 | (crashes or program hangs) when licical did read | 774 | (crashes or program hangs) when licical did read |
770 | files, which were not stored from KO/Pi. | 775 | files, which were not stored from KO/Pi. |
diff --git a/bin/kdepim/korganizer/germantranslation.txt b/bin/kdepim/korganizer/germantranslation.txt index 5c18aaa..e9ba8db 100644 --- a/bin/kdepim/korganizer/germantranslation.txt +++ b/bin/kdepim/korganizer/germantranslation.txt | |||
@@ -440,791 +440,791 @@ | |||
440 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, | 440 | { "Write back existing entries only","Nur exisitierende Einträge zurückschreiben" }, |
441 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, | 441 | { "Write back synced file","Syncronisierte Datei zurückschreiben" }, |
442 | { "Yearly","Jährlich" }, | 442 | { "Yearly","Jährlich" }, |
443 | { "year(s)","Jahr(e)" }, | 443 | { "year(s)","Jahr(e)" }, |
444 | { "Yes","Ja" }, | 444 | { "Yes","Ja" }, |
445 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, | 445 | { "You have %d item(s) selected.\n","Sie haben %d Einträge ausgewählt.\n" }, |
446 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, | 446 | { "You have to restart KOrganizer for this setting to take effect.","Sie müssem Korganizer neu starten, damit diese Einstellung aktiviert wird." }, |
447 | { "week(s) on:","Woche(n) am: " }, | 447 | { "week(s) on:","Woche(n) am: " }, |
448 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, | 448 | { "Full menu bar(nr)","Volle Menuleiste(bn)" }, |
449 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, | 449 | { "Timezone has daylight saving","Zeitzone hat Sommerzeit" }, |
450 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, | 450 | { "Actual start and end is the\nsunday before this date.","Tatsächlicher Beginn/Ende ist der\nSonntag vor diesem Datum!" }, |
451 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, | 451 | { "The year in the date is ignored.","Das Jahr vom Datum wird ignoriert." }, |
452 | { "Daylight start:","Sommerzeit Beginn:" }, | 452 | { "Daylight start:","Sommerzeit Beginn:" }, |
453 | { "Daylight end:","Sommerzeit Ende:" }, | 453 | { "Daylight end:","Sommerzeit Ende:" }, |
454 | { "Time Zone","Zeitzone" }, | 454 | { "Time Zone","Zeitzone" }, |
455 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, | 455 | { "Monday 19 April 2004: %A %d %B %Y","Montag 19 April 2004: %A %d %B %Y" }, |
456 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, | 456 | { "%A: Monday --- %a: Mon","%A: Montag --- %a: Mon" }, |
457 | { "minutely","minütlich" }, | 457 | { "minutely","minütlich" }, |
458 | { "hourly","stündlich" }, | 458 | { "hourly","stündlich" }, |
459 | { "daily","täglich" }, | 459 | { "daily","täglich" }, |
460 | { "weekly","wöchentlich" }, | 460 | { "weekly","wöchentlich" }, |
461 | { "monthly","monatlich" }, | 461 | { "monthly","monatlich" }, |
462 | { "day-monthly","tag-monatlich" }, | 462 | { "day-monthly","tag-monatlich" }, |
463 | { "month-yearly","monat-jährlich" }, | 463 | { "month-yearly","monat-jährlich" }, |
464 | { "day-yearly","tag-jährlich" }, | 464 | { "day-yearly","tag-jährlich" }, |
465 | { "position-yearly","pos-jährlich" }, | 465 | { "position-yearly","pos-jährlich" }, |
466 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, | 466 | { "Edit item on doubleclick (if not, show)","Editiere mit Doppelklick(wenn nicht, zeige)" }, |
467 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, | 467 | { "Highlight current day in agenda","Hebe >>heute<< in Agenda hervor" }, |
468 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, | 468 | { "Use light color for highlight current day","Helle Farbe für >>heute<< Hervorhebung" }, |
469 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, | 469 | { "Highlight selection in Time Edit","Hebe Auswahl in Zeit Edit hervor" }, |
470 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, | 470 | { "Hold fullscreen on view change","Behalte Vollbild bei Ansichswechsel" }, |
471 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, | 471 | { "Hold non-fullscreen on view change","Behalte Nicht-Vollbild bei Ansichtsw." }, |
472 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, | 472 | { "Event list view uses full window","Listenansicht nutzt Vollbild" }, |
473 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, | 473 | { "Set agenda to DayBeginsAt on change","Setze Agenda auf TagBeginntUm bei Wechsel" }, |
474 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, | 474 | { "Set agenda to current time on change","Setze Agenda auf gegenw.Zeit bei Wechsel" }, |
475 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, | 475 | { "Listview uses monthly timespan","Listenansicht zeigt monatliche Zeitspanne" }, |
476 | { "ViewChange","Ansichtswechsel" }, | 476 | { "ViewChange","Ansichtswechsel" }, |
477 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, | 477 | { "Default alarm *.wav file:","Standard Alarm *.wav Datei:" }, |
478 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, | 478 | { "This setting is useless for 5500 user!","Diese Einst. ist nutzlos für 5500 Nutzer" }, |
479 | { "File","Datei" }, | 479 | { "File","Datei" }, |
480 | { "Clone...","Dupliziere.." }, | 480 | { "Clone...","Dupliziere.." }, |
481 | { "Move...","Bewege..." }, | 481 | { "Move...","Bewege..." }, |
482 | { "Beam...","Sende via IR..." }, | 482 | { "Beam...","Sende via IR..." }, |
483 | { "&Clone...","Dupliziere.." }, | 483 | { "&Clone...","Dupliziere.." }, |
484 | { "&Move...","Bewege..." }, | 484 | { "&Move...","Bewege..." }, |
485 | { "&Beam...","Sende via IR..." }, | 485 | { "&Beam...","Sende via IR..." }, |
486 | { "Show Completed","Zeige erledigte Todos" }, | 486 | { "Show Completed","Zeige erledigte Todos" }, |
487 | { "Show Quick Todo","Zeige Quick Todo" }, | 487 | { "Show Quick Todo","Zeige Quick Todo" }, |
488 | { "Unparent Todo","Un-sub Todo" }, | 488 | { "Unparent Todo","Un-sub Todo" }, |
489 | { "Save selected to file...","Speichere Selektierte..." }, | 489 | { "Save selected to file...","Speichere Selektierte..." }, |
490 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, | 490 | { "Add Categ. to selected...","Füge zu Selekt. Kateg. hinzu..." }, |
491 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, | 491 | { "Set Categ. for selected...","Setze Kateg. für Selekt." }, |
492 | { "Beam selected via IR","Sende Selekt. via IR..." }, | 492 | { "Beam selected via IR","Sende Selekt. via IR..." }, |
493 | { "Search","Suchen" }, | 493 | { "Search","Suchen" }, |
494 | { "Date Picker","Datum auswählen" }, | 494 | { "Date Picker","Datum auswählen" }, |
495 | { "Day View","Tagesansicht" }, | 495 | { "Day View","Tagesansicht" }, |
496 | { "Work Week","Arbeitswoche" }, | 496 | { "Work Week","Arbeitswoche" }, |
497 | { "Week","Wochenansicht" }, | 497 | { "Week","Wochenansicht" }, |
498 | { "Month","Monatsansicht" }, | 498 | { "Month","Monatsansicht" }, |
499 | { "Todo View","Todo Liste" }, | 499 | { "Todo View","Todo Liste" }, |
500 | { "Journal","Journal Ansicht" }, | 500 | { "Journal","Journal Ansicht" }, |
501 | { "Next days","Nächste Tage" }, | 501 | { "Next days","Nächste Tage" }, |
502 | { "Print agenda selection...","Drucke Agendaselektion..." }, | 502 | { "Print agenda selection...","Drucke Agendaselektion..." }, |
503 | { "Toggle DateNavigator","Navigator umschalten" }, | 503 | { "Toggle DateNavigator","Navigator umschalten" }, |
504 | { "Toggle FilterView","Filteransicht umschalten" }, | 504 | { "Toggle FilterView","Filteransicht umschalten" }, |
505 | { "Prev. month","Vorheriger Monat" }, | 505 | { "Prev. month","Vorheriger Monat" }, |
506 | { "Go backward","Gehe zurück" }, | 506 | { "Go backward","Gehe zurück" }, |
507 | { "Go forward","Gehe weiter" }, | 507 | { "Go forward","Gehe weiter" }, |
508 | { "Synchronize","Synchronisieren" }, | 508 | { "Synchronize","Synchronisieren" }, |
509 | { "AgendaSize","Agendagröße" }, | 509 | { "AgendaSize","Agendagröße" }, |
510 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, | 510 | { "Import (*.ics/*.vcs) file","Importiere (*.ics/*.vcs) Datei" }, |
511 | { "Import last file","Importiere letzte Datei" }, | 511 | { "Import last file","Importiere letzte Datei" }, |
512 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, | 512 | { "Import Opie/Qtopia Cal.","Importiere Opie/Qtopia Kal." }, |
513 | { "Load Calendar Backup","Lade Kalender Backup" }, | 513 | { "Load Calendar Backup","Lade Kalender Backup" }, |
514 | { "Save Calendar Backup","Speichere Kalender Backup" }, | 514 | { "Save Calendar Backup","Speichere Kalender Backup" }, |
515 | { "Export VCalendar","Exportiere VCalendar" }, | 515 | { "Export VCalendar","Exportiere VCalendar" }, |
516 | { "Manage new categories...","Verwalte neue Kategorien..." }, | 516 | { "Manage new categories...","Verwalte neue Kategorien..." }, |
517 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, | 517 | { "Beam complete calendar...","Sende kompletten Kalender via IR" }, |
518 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, | 518 | { "Beam filtered calendar...","Sende gefilterten Kalender via IR" }, |
519 | { "Remote via ssh","Über Netzwerk via ssh" }, | 519 | { "Remote via ssh","Über Netzwerk via ssh" }, |
520 | { "With local file","Mit lokaler Datei" }, | 520 | { "With local file","Mit lokaler Datei" }, |
521 | { "With last file","Mit letzter Datei" }, | 521 | { "With last file","Mit letzter Datei" }, |
522 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, | 522 | { "KO/Pi: Ready for beaming","KO/Pi: Bereit zum Senden" }, |
523 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, | 523 | { "KO/Pi:Beaming done","KO/Pi: Senden erfolgt" }, |
524 | { "Save filename","Speichern: Dateinamen wählen" }, | 524 | { "Save filename","Speichern: Dateinamen wählen" }, |
525 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, | 525 | { "File already exists!\nOld file from:\n%1\nOverwrite?\n","Dateiname existiert bereits!\nAlte Datei vom:\n%1\nÜberschreiben?\n" }, |
526 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, | 526 | { "KO/Pi: Warning!","KO/Pi: Warnung!" }, |
527 | { "Overwrite!","Überschreibe!" }, | 527 | { "Overwrite!","Überschreibe!" }, |
528 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 528 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
529 | { "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, | 529 | { "All selected items will be\npermanently deleted.\n(Deleting items will take\nsome time on a PDA)\n","Alle selektierten Einträge werden\nunwiederbringlich gelöscht.\n(Löschen kann auf dem\nPDA einige Zeit dauern)\n" }, |
530 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, | 530 | { "KO/Pi Confirmation","KO/Pi Bestätigung" }, |
531 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, | 531 | { "Close dialog to abort deletion!","Schließe Dialog um das Löschen abzubrechen!" }, |
532 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, | 532 | { "Deleting item %d ...","Lösche Eintrag %d ..." }, |
533 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, | 533 | { "%d items remaining in list.","%d Einträge sind in der Liste verblieben." }, |
534 | { "Size","Größe" }, | 534 | { "Size","Größe" }, |
535 | { "Date","Datum" }, | 535 | { "Date","Datum" }, |
536 | { "Mime Type","Datei Typ" }, | 536 | { "Mime Type","Datei Typ" }, |
537 | { "All Files","Alle Dateien" }, | 537 | { "All Files","Alle Dateien" }, |
538 | { "Files","Dateien" }, | 538 | { "Files","Dateien" }, |
539 | { "Documents","DoKumente" }, | 539 | { "Documents","DoKumente" }, |
540 | { "Select Categories","Selektiere Kategorien" }, | 540 | { "Select Categories","Selektiere Kategorien" }, |
541 | { " &Deselect All "," Auswahl aufheben " }, | 541 | { " &Deselect All "," Auswahl aufheben " }, |
542 | { "A&dd","Hinzu" }, | 542 | { "A&dd","Hinzu" }, |
543 | { "&Modify","Ändern" }, | 543 | { "&Modify","Ändern" }, |
544 | { "Edit Categories","Editiere Kategorien" }, | 544 | { "Edit Categories","Editiere Kategorien" }, |
545 | { " &Edit Categories "," &Editiere Kategorien " }, | 545 | { " &Edit Categories "," &Editiere Kategorien " }, |
546 | { "Beam Options","Beam Einstellungen" }, | 546 | { "Beam Options","Beam Einstellungen" }, |
547 | { " With timezone "," Mit Zeitzone " }, | 547 | { " With timezone "," Mit Zeitzone " }, |
548 | { " Local time ", " Lokale Zeit " }, | 548 | { " Local time ", " Lokale Zeit " }, |
549 | { "Manage new Categories","Verwalte neue Kategorien" }, | 549 | { "Manage new Categories","Verwalte neue Kategorien" }, |
550 | { "Add to category list","Füge zur Kategorieliste hinzu" }, | 550 | { "Add to category list","Füge zur Kategorieliste hinzu" }, |
551 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, | 551 | { "Remove from Events/Todos","Entferne von Terminen/Todos" }, |
552 | { "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, | 552 | { "After importing/loading/syncing\nthere may be new categories in\nevents or todos\nwhich are not in the category list.\nPlease choose what to do:\n ","Nach dem Importieren/Laden/Syncen\nkann es neue Kategorien in den \nTerminen oder Todos geben, die nicht\nin der Kategorieliste enthalten sind.\nBitte wählen Sie, was passieren soll:\n " }, |
553 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, | 553 | { "New categories not in list:","Kategorien, die nicht in der Liste sind:" }, |
554 | { "File format","Datei Format" }, | 554 | { "File format","Datei Format" }, |
555 | { "Time format","Zeit Format" }, | 555 | { "Time format","Zeit Format" }, |
556 | { "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" }, | 556 | { "Delete all\ncompleted To-Dos?","Lösche alle\nerledigten To-Dos?" }, |
557 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, | 557 | { "KO/Pi:Saving Data to File ...","KO/Pi: Speichere Kalender in Datei ..." }, |
558 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, | 558 | { "KO/Pi:File Saved. Needed %d sec, %d ms","KO/Pi: Abgespeichert in %d sec, %d ms" }, |
559 | { "h","Std" }, | 559 | { "h","Std" }, |
560 | { "min","Min" }, | 560 | { "min","Min" }, |
561 | { "hou","Std" }, | 561 | { "hou","Std" }, |
562 | { "day","Tag" }, | 562 | { "day","Tag" }, |
563 | { "French","Französich" }, | 563 | { "French","Französich" }, |
564 | { "Time","Zeit" }, | 564 | { "Time","Zeit" }, |
565 | { "Event Viewer","Termin Ansicht" }, | 565 | { "Event Viewer","Termin Ansicht" }, |
566 | { "Cancel Sync","Sync Abbrechen" }, | 566 | { "Cancel Sync","Sync Abbrechen" }, |
567 | { "Remote","Fern" }, | 567 | { "Remote","Fern" }, |
568 | { "Local","Lokal" }, | 568 | { "Local","Lokal" }, |
569 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, | 569 | { "Conflict! Please choose entry","Konflikt! Bitte Eintrag wählen" }, |
570 | { "Local: ","Lokal: " }, | 570 | { "Local: ","Lokal: " }, |
571 | { "Remote: ","Fern: " }, | 571 | { "Remote: ","Fern: " }, |
572 | { "Last modified: ","Zuletzt geändert: " }, | 572 | { "Last modified: ","Zuletzt geändert: " }, |
573 | { "Location: ","Ort: " }, | 573 | { "Location: ","Ort: " }, |
574 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, | 574 | { "<p><b>From:</b> %1 </p><p><b>To:</b> %2</p>","<p><b>Von:</b> %1 </p><p><b>Bis:</b> %2</p>" }, |
575 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, | 575 | { "<p><b>On:</b> %1</p>","<p><b>Am:</b> %1</p>" }, |
576 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, | 576 | { "<p><b>From:</b> %1</p> ","<p><b>Von:</b> %1</p> " }, |
577 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, | 577 | { "<p><b>To:</b> %1</p>","<p><b>Bis:</b> %1</p>" }, |
578 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, | 578 | { "<p><b>On:</b> %1</p> ","<p><b>Am:</b> %1</p> " }, |
579 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, | 579 | { "<p><b>From:</b> %1 <b>To:</b> %2</p>","<p><b>Von:</b> %1 <b>Bis:</b> %2</p>" }, |
580 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, | 580 | { "This is a %1 recurring event.","Das ist ein %1 wiederholender Termin." }, |
581 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, | 581 | { "<b>Next recurrence is on:</b>","<b>Nächste Wiederholung ist am:</b>" }, |
582 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, | 582 | { "<b>Last recurrence was on:</b>","<b>Letzte Wiederholung war am:</b>" }, |
583 | { "( %1 min before )","( %1 min vorher )" }, | 583 | { "( %1 min before )","( %1 min vorher )" }, |
584 | { "<b>Alarm on: ","<b>Alarm am: " }, | 584 | { "<b>Alarm on: ","<b>Alarm am: " }, |
585 | { "<b>Details: </b>","<b>Details: </b>" }, | 585 | { "<b>Details: </b>","<b>Details: </b>" }, |
586 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, | 586 | { "<p><b>Priority:</b> %2</p>","<p><b>Priorität:</b> %2</p>" }, |
587 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, | 587 | { "<p><i>%1 % completed</i></p>","<p><i>%1 % erledigt</i></p>" }, |
588 | { "Organizer","Organisator" }, | 588 | { "Organizer","Organisator" }, |
589 | { "Save","Speichern" }, | 589 | { "Save","Speichern" }, |
590 | { "Exit (+save)","Beenden (+ speichern)" }, | 590 | { "Exit (+save)","Beenden (+ speichern)" }, |
591 | { "Home","Zuhause" }, | 591 | { "Home","Zuhause" }, |
592 | { "Office","Büro" }, | 592 | { "Office","Büro" }, |
593 | { "Libary","Bücherei" }, | 593 | { "Libary","Bücherei" }, |
594 | { "Doctor","Arzt" }, | 594 | { "Doctor","Arzt" }, |
595 | { "Beach","Strand" }, | 595 | { "Beach","Strand" }, |
596 | { "Conference room","Konferenzraum" }, | 596 | { "Conference room","Konferenzraum" }, |
597 | { "Drive Home","Heimfahrt" }, | 597 | { "Drive Home","Heimfahrt" }, |
598 | { "Watch TV","Tv gucken" }, | 598 | { "Watch TV","Tv gucken" }, |
599 | { "Phone call","Telefonanruf" }, | 599 | { "Phone call","Telefonanruf" }, |
600 | { "Pay bill","Rechnung bezahlen" }, | 600 | { "Pay bill","Rechnung bezahlen" }, |
601 | { "Read book","Buch lesen" }, | 601 | { "Read book","Buch lesen" }, |
602 | { "Watering plants","Pflanzen giessen" }, | 602 | { "Watering plants","Pflanzen giessen" }, |
603 | {"Appointment","Verabredung" }, | 603 | {"Appointment","Verabredung" }, |
604 | {"Birthday","Geburtstag" }, | 604 | {"Birthday","Geburtstag" }, |
605 | {"Business","Geschäft" }, | 605 | {"Business","Geschäft" }, |
606 | {"Business Travel","Geschäftsreise" }, | 606 | {"Business Travel","Geschäftsreise" }, |
607 | {"Cinema","Kino" }, | 607 | {"Cinema","Kino" }, |
608 | {"Customer","Kunde" }, | 608 | {"Customer","Kunde" }, |
609 | {"Break","Pause" }, | 609 | {"Break","Pause" }, |
610 | {"Breakfast","Frühstück" }, | 610 | {"Breakfast","Frühstück" }, |
611 | {"Competition","Wettkampf" }, | 611 | {"Competition","Wettkampf" }, |
612 | {"Dinner","Abendessen" }, | 612 | {"Dinner","Abendessen" }, |
613 | {"Education","Erziehung" }, | 613 | {"Education","Erziehung" }, |
614 | {"Family","Familie" }, | 614 | {"Family","Familie" }, |
615 | {"Favorites","Favoriten" }, | 615 | {"Favorites","Favoriten" }, |
616 | {"Festival","Festival" }, | 616 | {"Festival","Festival" }, |
617 | {"Fishing","Angeln" }, | 617 | {"Fishing","Angeln" }, |
618 | {"Flight","Flug" }, | 618 | {"Flight","Flug" }, |
619 | {"Gifts","Geschenk" }, | 619 | {"Gifts","Geschenk" }, |
620 | {"Holiday","Feiertag" }, | 620 | {"Holiday","Feiertag" }, |
621 | {"Holiday Cards","Ansichtskarten" }, | 621 | {"Holiday Cards","Ansichtskarten" }, |
622 | {"Hot Contacts","Heisse Kontakte" }, | 622 | {"Hot Contacts","Heisse Kontakte" }, |
623 | {"Hiking","Wandern" }, | 623 | {"Hiking","Wandern" }, |
624 | {"Hunting","Jagen" }, | 624 | {"Hunting","Jagen" }, |
625 | {"Key Customer","Wichtiger Kunde" }, | 625 | {"Key Customer","Wichtiger Kunde" }, |
626 | {"Kids","Kinder" }, | 626 | {"Kids","Kinder" }, |
627 | {"Lunch","Mittagessen" }, | 627 | {"Lunch","Mittagessen" }, |
628 | {"Meeting","Treffen" }, | 628 | {"Meeting","Treffen" }, |
629 | {"Miscellaneous","Verschiedenes" }, | 629 | {"Miscellaneous","Verschiedenes" }, |
630 | {"Partner","Partner" }, | 630 | {"Partner","Partner" }, |
631 | {"Party","Partie" }, | 631 | {"Party","Partie" }, |
632 | {"Personal","Privat" }, | 632 | {"Personal","Privat" }, |
633 | {"Personal Travel","Privatreise"}, | 633 | {"Personal Travel","Privatreise"}, |
634 | {"PHB","PHB" }, | 634 | {"PHB","PHB" }, |
635 | {"Phone Calls","Telefonanruf" }, | 635 | {"Phone Calls","Telefonanruf" }, |
636 | {"Projects","Projekt" }, | 636 | {"Projects","Projekt" }, |
637 | {"Recurring","Wiederholend" }, | 637 | {"Recurring","Wiederholend" }, |
638 | {"School","Schule" }, | 638 | {"School","Schule" }, |
639 | {"Shopping","Einkaufen" }, | 639 | {"Shopping","Einkaufen" }, |
640 | {"Speach","Rede" }, | 640 | {"Speach","Rede" }, |
641 | {"Special Occasion","Spez.Gelegenheit" }, | 641 | {"Special Occasion","Spez.Gelegenheit" }, |
642 | {"Sports","Sport" }, | 642 | {"Sports","Sport" }, |
643 | {"Talk","Vortrag" }, | 643 | {"Talk","Vortrag" }, |
644 | {"Travel","Reise" }, | 644 | {"Travel","Reise" }, |
645 | {"TV","TV" }, | 645 | {"TV","TV" }, |
646 | {"Germany","Deutschland" }, | 646 | {"Germany","Deutschland" }, |
647 | {"Sweden","Schweden" }, | 647 | {"Sweden","Schweden" }, |
648 | {"Forest","Wald" }, | 648 | {"Forest","Wald" }, |
649 | { "Desert","Wüste" }, | 649 | { "Desert","Wüste" }, |
650 | { "Kitchen","Küche" }, | 650 | { "Kitchen","Küche" }, |
651 | { "Lake","See" }, | 651 | { "Lake","See" }, |
652 | {"University","Universität"}, | 652 | {"University","Universität"}, |
653 | {"Vacation","Urlaub" }, | 653 | {"Vacation","Urlaub" }, |
654 | {"VIP","VIP" }, | 654 | {"VIP","VIP" }, |
655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, | 655 | { "Import Sharp Calendar","Importiere Sharp Kalender" }, |
656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, | 656 | { "This todo has been cancelled!","Dieses Todo wurde gecancelt!" }, |
657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, | 657 | { "This event has been cancelled!","Dieser Termin wurde gecancelt!" }, |
658 | { "Cancelled","Gecancelt" }, | 658 | { "Cancelled","Gecancelt" }, |
659 | { "Multiple sync","Mehrfach Sync" }, | 659 | { "Multiple sync","Mehrfach Sync" }, |
660 | { "Local file","Lokale Datei" }, | 660 | { "Local file","Lokale Datei" }, |
661 | { "Last file","Letzte Datei" }, | 661 | { "Last file","Letzte Datei" }, |
662 | { "Keys + Colors...","Tasten + Farben..." }, | 662 | { "Keys + Colors...","Tasten + Farben..." }, |
663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, | 663 | { "Mini icons in toolbar(nr)","Mini Icons in ToolBar(bn)" }, |
664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, | 664 | { "Quick load/save (w/o Unicode)","Schnelles Laden/Speichern (o Unicode)" }, |
665 | { "Choose...","Wähle..." }, | 665 | { "Choose...","Wähle..." }, |
666 | { "Use colors for application:","Setze Farben für Programm:" }, | 666 | { "Use colors for application:","Setze Farben für Programm:" }, |
667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, | 667 | { "Buttons, menus, etc.:","Knöpfe, Menu, etc.:" }, |
668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, | 668 | { "Frames, labels, etc.:","Rahmen, Label, etc.:" }, |
669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, | 669 | { "Show parent To-Do's in What's Next view","Zeige Ober-Todo in What's Next Anz." }, |
670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, | 670 | { "Show location in What's Next view","Zeige Ort in What's Next Anz." }, |
671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, | 671 | { "Show events that recur ","Zeige Termine, die sich wiederholen:" }, |
672 | { "Show in every cell ","Zeige in jeder Zelle " }, | 672 | { "Show in every cell ","Zeige in jeder Zelle " }, |
673 | { "short month","kurzen Monat" }, | 673 | { "short month","kurzen Monat" }, |
674 | { "icons","Icons" }, | 674 | { "icons","Icons" }, |
675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, | 675 | { "Show Sat/Sun together","Zeige Sam/Son zusammen" }, |
676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, | 676 | { "Categorie colors are applied to text","Kategorie Farben färben Text" }, |
677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, | 677 | { "Month view uses day colors","Monatsansicht zeigt Tagesfarben" }, |
678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, | 678 | { "Day color odd months","Tagesfarbe ungerade Monate" }, |
679 | { "Day color even months","Tagesfarbe gerade Monate" }, | 679 | { "Day color even months","Tagesfarbe gerade Monate" }, |
680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, | 680 | { "Color for Sundays + category \"Holiday\"","Farbe für Sonntag + Kateg.\" Feiertag\"" }, |
681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, | 681 | { "To-do view shows complete as 'xx %'","Zeige Prozent erledigt als 'xx %'" }, |
682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, | 682 | { "Small To-do view uses smaller font","Kleine To-do Ansicht nutzt kleineren Font" }, |
683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, | 683 | { "Colors are applied to text","Farben werden auf Text angewendet" }, |
684 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, | 684 | { "Use internal alarm notification","Nutze interne Alarm Benachrichtigung" }, |
685 | { "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" }, | 685 | { "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" }, |
686 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, | 686 | { "Play beeps count:","Anzahl der Alarmpiepse: " }, |
687 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, | 687 | { "Beeps interval in sec:","Zeitintervall der Alarmpiepse: " }, |
688 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, | 688 | { "Default suspend time in min:","Standard Supendierungs Zeit: " }, |
689 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, | 689 | { "Auto suspend count:","Anzahl der auto Suspendierungen" }, |
690 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, | 690 | { "Alarm *.wav file for newly created alarm:","Alarm *.wav Datei für neu angelegte Alarme:" }, |
691 | { "New profile","Neues Profil" }, | 691 | { "New profile","Neues Profil" }, |
692 | { "Clone profile","Klone Profil" }, | 692 | { "Clone profile","Klone Profil" }, |
693 | { "Delete profile","Lösche Profil" }, | 693 | { "Delete profile","Lösche Profil" }, |
694 | { "Profile:","Profil:" }, | 694 | { "Profile:","Profil:" }, |
695 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, | 695 | { "Include in multiple sync","Beziehe Profil in mehrfach Sync mit ein" }, |
696 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, | 696 | { "Force: Take local entry always","Erzwinge: Nimm immer lokalen Eintrag" }, |
697 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, | 697 | { "Force: Take remote entry always","Erzwinge: Nimm immer fernen Eintrag" }, |
698 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, | 698 | { "Show summary after sync","Zeige Zusammenfassung nach dem Synchronisieren" }, |
699 | { "Write back file","Schreibe Datei zurück" }, | 699 | { "Write back file","Schreibe Datei zurück" }, |
700 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, | 700 | { "Remote file (w down/upload command)","Entfernte Datei (via down/upload Kommando)" }, |
701 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, | 701 | { "Pre sync (download) command:","Bevor Sync (download) Kommando:" }, |
702 | { "Local device name:","Name dieses Gerätes:" }, | 702 | { "Local device name:","Name dieses Gerätes:" }, |
703 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, | 703 | { "Ask for preferences before sync","Frage nach Synchronisationseinstellungen vor dem Syncen" }, |
704 | { "Sync preferences","Synchronisations Einstellungen" }, | 704 | { "Sync preferences","Synchronisations Einstellungen" }, |
705 | { "Profile kind","Profil Art" }, | 705 | { "Profile kind","Profil Art" }, |
706 | { "Local file","Lokale Datei" }, | 706 | { "Local file","Lokale Datei" }, |
707 | { "Local file:","Lokale Datei:" }, | 707 | { "Local file:","Lokale Datei:" }, |
708 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, | 708 | { "Post sync (upload) command:","Nach Sync (upload) Kommando:" }, |
709 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, | 709 | { "Fill in default values for:","Setze Beispiel Werte ein für:" }, |
710 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, | 710 | { "Hint: Use $PWD$ for placeholder of password!","Hinweis: Benutze $PWD$ als Platzhalter für ein Passwort!" }, |
711 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, | 711 | { "Synchronization Preferences","Einstellungen der Synchronisationsprofile"}, |
712 | { "Device","Gerät:" }, | 712 | { "Device","Gerät:" }, |
713 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, | 713 | { "Sync with file \n...%1\nfrom:\n%2\n","Sync mit Datei \n...%1\nvom:\n%2\n" }, |
714 | { "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" }, | 714 | { "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" }, |
715 | { "Synchronization successful","Synchronisation erfolgreich" }, | 715 | { "Synchronization successful","Synchronisation erfolgreich" }, |
716 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, | 716 | { "Sync cancelled or failed. Nothing synced.","Sync abgebrochen oder fehlgeschlagen. Nichts wurde gesynced." }, |
717 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, | 717 | { "Sync file \n...%1\ndoes not exist!\nNothing synced!\n","Sync Datei \n...%1\nexistiert nicht!\nNichts wurde gesynced!\n" }, |
718 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, | 718 | { "Sync filename(*.ics/*.vcs)","Sync Dateiname(*.ics/*.vcs)" }, |
719 | { "Enter password","Passwort eingeben" }, | 719 | { "Enter password","Passwort eingeben" }, |
720 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, | 720 | { "Do you really want\nto remote sync\nwith profile \n","Wollen Sie wirklich\nmit dem entfernten\nProfil syncen: \n" }, |
721 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, | 721 | { "Copy remote file to local machine...","Kopiere entfernte Datei auf lokalen Rechner..." }, |
722 | { "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" }, | 722 | { "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" }, |
723 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, | 723 | { "Writing back file result: ","Resultat des Dateizurückschreibens: " }, |
724 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, | 724 | { "Syncronization sucessfully completed","Synchronisation erfolgreich abgeschlossen" }, |
725 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, | 725 | { "Edit Calendar Filters","Editiere Kalendar Filter" }, |
726 | { "Enter filter name:","Neuer Filter Name:" }, | 726 | { "Enter filter name:","Neuer Filter Name:" }, |
727 | { "Add Filter","Filter hinzufügen" }, | 727 | { "Add Filter","Filter hinzufügen" }, |
728 | { "Question","Frage" }, | 728 | { "Question","Frage" }, |
729 | { "Filter position: ","Filter Position: " }, | 729 | { "Filter position: ","Filter Position: " }, |
730 | { "Month View","Monatsansicht" }, | 730 | { "Month View","Monatsansicht" }, |
731 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, | 731 | { "This profil cannot be deleted!\n","Dieses Profil kann\nnicht gelöscht werden!" }, |
732 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, | 732 | { "KO/Pi config error","KO/Pi Konfig. Fehler" }, |
733 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, | 733 | { "Local device name undefined!\nPlease define device name!","Name dieses Gerätes undefiniert!\nBitte Namen angeben!" }, |
734 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, | 734 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile haben denselben Namen!\nBitte unterschiedliche Namen wählen!" }, |
735 | { "Access: ","Zugriff: " }, | 735 | { "Access: ","Zugriff: " }, |
736 | { "Needs Action","Aktion notwendig" }, | 736 | { "Needs Action","Aktion notwendig" }, |
737 | { "Accepted","Akzeptiert" }, | 737 | { "Accepted","Akzeptiert" }, |
738 | { "Declined","Abgelehnt" }, | 738 | { "Declined","Abgelehnt" }, |
739 | { "Tentative","Vorläufig" }, | 739 | { "Tentative","Vorläufig" }, |
740 | { "Delegated","Beauftragt" }, | 740 | { "Delegated","Beauftragt" }, |
741 | { "Completed","Vollständig" }, | 741 | { "Completed","Vollständig" }, |
742 | { "In Process","In Bearbeitung" }, | 742 | { "In Process","In Bearbeitung" }, |
743 | { "Participant","Teilnehmer" }, | 743 | { "Participant","Teilnehmer" }, |
744 | { "Optional Participant","Möglicher Teilnehmer" }, | 744 | { "Optional Participant","Möglicher Teilnehmer" }, |
745 | { "Observer","Beobachter" }, | 745 | { "Observer","Beobachter" }, |
746 | { "Chair","Vorsitzender" }, | 746 | { "Chair","Vorsitzender" }, |
747 | { "Not supported \non desktop!\n","" }, | 747 | { "Not supported \non desktop!\n","" }, |
748 | { "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 verticale Auswahl zum Drucken zu bestimmen,\nbitte einen verticalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen. " }, | 748 | { "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 verticale Auswahl zum Drucken zu bestimmen,\nbitte einen verticalen Zeitraum (mit gedrückter linker Maustaste)\nin einer Spalte auswählen. " }, |
749 | { "Date range: ","Datums Zeitspanne: " }, | 749 | { "Date range: ","Datums Zeitspanne: " }, |
750 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, | 750 | { "Not supported \non PDA!\n","Nicht verfügbar\nauf dem PDA. " }, |
751 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, | 751 | { "Syncing - close to abort!","Syncing-schließe um abzubrechen." }, |
752 | { "Add / remove events","Add./entferne Termine" }, | 752 | { "Add / remove events","Add./entferne Termine" }, |
753 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, | 753 | { "File does not exist:\n '%1'.","Datei existiert nicht:\n '%1'." }, |
754 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, | 754 | { "Couldn't load calendar\n '%1'.","Kann Kalender nicht laden:\n '%1'." }, |
755 | { "\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" }, | 755 | { "\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" }, |
756 | { "Overwrite","Überschreiben" }, | 756 | { "Overwrite","Überschreiben" }, |
757 | { "Sync+save","Syncen+speichern" }, | 757 | { "Sync+save","Syncen+speichern" }, |
758 | { "Default","Standard" }, | 758 | { "Default","Standard" }, |
759 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, | 759 | { " Categories added to list! "," Kategorien zur Liste hinzugefügt! " }, |
760 | { " %d items?"," %d Einträge?" }, | 760 | { " %d items?"," %d Einträge?" }, |
761 | { "\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?" }, | 761 | { "\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?" }, |
762 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, | 762 | { " ?\n\nDelete:\n"," ?\n\nLösche:\n" }, |
763 | { "Current","Aktuelle" }, | 763 | { "Current","Aktuelle" }, |
764 | { "\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" }, | 764 | { "\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" }, |
765 | { "All","Alle" }, | 765 | { "All","Alle" }, |
766 | { "Data Loss Warning","Datenverlust Warnung" }, | 766 | { "Data Loss Warning","Datenverlust Warnung" }, |
767 | { "Proceed","Weitermachen" }, | 767 | { "Proceed","Weitermachen" }, |
768 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, | 768 | { "The journal entries can not be\nexported to a vCalendar file.","Die Journal Einträge können\nnicht in eine vCalendar\nDatei exportiert werden!" }, |
769 | { "Filter disabled ","Filter abgeschaltet" }, | 769 | { "Filter disabled ","Filter abgeschaltet" }, |
770 | { "Filter selected: ","Gewählter Filter: " }, | 770 | { "Filter selected: ","Gewählter Filter: " }, |
771 | { "Toggle Cancel","Gecancelt ändern" }, | 771 | { "Toggle Cancel","Gecancelt ändern" }, |
772 | { "&Toggle Cancel","Gecancel&t ändern" }, | 772 | { "&Toggle Cancel","Gecancel&t ändern" }, |
773 | { "Configure Toolbar","Konfiguriere Toolbar" }, | 773 | { "Configure Toolbar","Konfiguriere Toolbar" }, |
774 | { "Stretched TB","Gedehnte TB" }, | 774 | { "Stretched TB","Gedehnte TB" }, |
775 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, | 775 | { "Import file \n...%1\ndoes not exist!\nNothing imported!\n","Import Datei \n...%1\nexistiert nicht!\nNichts importiert!\n" }, |
776 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, | 776 | { "Import filename(*.ics/*.vcs)","Import Dateiname(*.ics/*.vcs)" }, |
777 | { "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" }, | 777 | { "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" }, |
778 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, | 778 | { "Not supported \non desktop!\n","Nur verfügbar auf PDA!" }, |
779 | { "Imported file successfully","Datei erfolgreich importiert" }, | 779 | { "Imported file successfully","Datei erfolgreich importiert" }, |
780 | { "Error importing file","Fehler beim Importieren der Datei" }, | 780 | { "Error importing file","Fehler beim Importieren der Datei" }, |
781 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, | 781 | { "Export vcal filename(*.vcs)","Export vcal Dateiname(*.vcs)" }, |
782 | { "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" }, | 782 | { "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" }, |
783 | { "Overwrite!","Überschreiben!" }, | 783 | { "Overwrite!","Überschreiben!" }, |
784 | { "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" }, | 784 | { "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" }, |
785 | { "Load backup filename","Lade Backup Dateiname" }, | 785 | { "Load backup filename","Lade Backup Dateiname" }, |
786 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, | 786 | { "Backup file\ndoes not exist!\nNothing loaded!","Backup Datei\nexistiert nicht!\nNichts geladen!" }, |
787 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, | 787 | { "KO/Pi:Loaded %1","KO/Pi:Geladen %1" }, |
788 | { "Save backup filename","Speichere Backup Dateiname" }, | 788 | { "Save backup filename","Speichere Backup Dateiname" }, |
789 | { "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" }, | 789 | { "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" }, |
790 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, | 790 | { "KO/Pi:Saved %1","KO/Pi:Gespeichert %1" }, |
791 | { "Details of attendee","Teilnehmerdetails" }, | 791 | { "Details of attendee","Teilnehmerdetails" }, |
792 | { "Work phone:\n","Telefon Arbeit:\n" }, | 792 | { "Work phone:\n","Telefon Arbeit:\n" }, |
793 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, | 793 | { "Work mobile phone:\n","Mobiltelefon Arbeit:\n" }, |
794 | { "Home phone:\n","Telefon privat:\n" }, | 794 | { "Home phone:\n","Telefon privat:\n" }, |
795 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, | 795 | { "Mobile home phone:\n","Mobiltelefon privat:\n" }, |
796 | { "Email:\n","Email:\n" }, | 796 | { "Email:\n","Email:\n" }, |
797 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, | 797 | { "Alarm disabled for this item","Alarm deaktiviert für dieses Item" }, |
798 | { "Audio Al.: ","Audio Al.: " }, | 798 | { "Audio Al.: ","Audio Al.: " }, |
799 | { "Proc.Al.: ","Proz.Al.: " }, | 799 | { "Proc.Al.: ","Proz.Al.: " }, |
800 | { "No sound set","Kein Sound definiert" }, | 800 | { "No sound set","Kein Sound definiert" }, |
801 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, | 801 | { "*.wav|Wav Files","*.wav|Wav Dateien" }, |
802 | { "No program set","Kein Programm definiert" }, | 802 | { "No program set","Kein Programm definiert" }, |
803 | { "Running '%1'","Ausführen '%1'" }, | 803 | { "Running '%1'","Ausführen '%1'" }, |
804 | { "Playing '%1'","Abspielen '%1'" }, | 804 | { "Playing '%1'","Abspielen '%1'" }, |
805 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, | 805 | { "Show Sync Events in WN/Agenda view","Zeige Sync Events in WN/Agenda Ansicht" }, |
806 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, | 806 | { "User defined (usertranslation.txt)","Benutzerdefiniert (usertranslation.txt)" }, |
807 | { "Load!","Laden!" }, | 807 | { "Load!","Laden!" }, |
808 | { "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" }, | 808 | { "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" }, |
809 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, | 809 | { "KO/Pi Features and hints","KO/Pi Eigenschaften und Tipps" }, |
810 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, | 810 | { "KO/Pi User translation HowTo","KO/Pi Benutzer-Übersetzung HowTo" }, |
811 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, | 811 | { "KO/Pi Synchronization HowTo","KO/Pi Synchronisation HowTo" }, |
812 | { "Features + hints...","Eigenschaften + Tipps..." }, | 812 | { "Features + hints...","Eigenschaften + Tipps..." }, |
813 | { "User translation...","Benutzer Übersetzung..." }, | 813 | { "User translation...","Benutzer Übersetzung..." }, |
814 | { "Sync HowTo...","Synchronisation HowTo..." }, | 814 | { "Sync HowTo...","Synchronisation HowTo..." }, |
815 | { "Print calendar...","Drucke Kalender..." }, | 815 | { "Print calendar...","Drucke Kalender..." }, |
816 | { "Anniversary","Jahrestag" }, | 816 | { "Anniversary","Jahrestag" }, |
817 | { "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" }, | 817 | { "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" }, |
818 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, | 818 | { "Import Birthdays (KA/Pi)","Importiere Geburtstage (KA/Pi)" }, |
819 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, | 819 | { "Next recurrence is on: ","Nächste Wiederholung ist am:" }, |
820 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, | 820 | { "<b>Alarm on: </b>","<b>Alarm am: </b>" }, |
821 | { "<b>Access: </b>","<b>Zugriff: </b>" }, | 821 | { "<b>Access: </b>","<b>Zugriff: </b>" }, |
822 | { "(%1 min before)","(%1 min vorher)" }, | 822 | { "(%1 min before)","(%1 min vorher)" }, |
823 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, | 823 | { "<b>Categories: </b>","<b>Kategorien: </b>" }, |
824 | { "Save Journal/Description...","Speichere Journal/Details..." }, | 824 | { "Save Journal/Description...","Speichere Journal/Details..." }, |
825 | { "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." }, | 825 | { "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." }, |
826 | { "Continue","Weitermachen" }, | 826 | { "Continue","Weitermachen" }, |
827 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, | 827 | { " birthdays/anniversaries added!"," Geburts-/Jahrestage hinzugefügt" }, |
828 | { "Attendee:","Teilnehmer:" }, | 828 | { "Attendee:","Teilnehmer:" }, |
829 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, | 829 | { "Click OK to search ->","Klicke zum Suchen auf OK ->" }, |
830 | { "On day ","Am Tag " }, | 830 | { "On day ","Am Tag " }, |
831 | { "%1 of ","%1 des Monats" }, | 831 | { "%1 of ","%1 des Monats" }, |
832 | { "%1 of the year","%1 des Jahres" }, | 832 | { "%1 of the year","%1 des Jahres" }, |
833 | { "Anonymous","Anonymo" }, | 833 | { "Anonymous","Anonymo" }, |
834 | { "nobody@nowhere","niemand@nirgendwo" }, | 834 | { "nobody@nowhere","niemand@nirgendwo" }, |
835 | { "calendar.html","calendar.html" }, | 835 | { "calendar.html","calendar.html" }, |
836 | { " Local Time"," Locale Zeit" }, | 836 | { " Local Time"," Locale Zeit" }, |
837 | { "Unknown Name","Unbekannter Name" }, | 837 | { "Unknown Name","Unbekannter Name" }, |
838 | { "unknown@nowhere","unbekannt@nirgendwo" }, | 838 | { "unknown@nowhere","unbekannt@nirgendwo" }, |
839 | { "Beam via IR!","Beam via IR!" }, | 839 | { "Beam via IR!","Beam via IR!" }, |
840 | { "Next Month","Nächster Monat" }, | 840 | { "Next Month","Nächster Monat" }, |
841 | { "Prio","Prio" }, | 841 | { "Prio","Prio" }, |
842 | { "Reparent Todo","Mache Sub-Todo" }, | 842 | { "Reparent Todo","Mache Sub-Todo" }, |
843 | { "tomorrow","morgen" }, | 843 | { "tomorrow","morgen" }, |
844 | { "today","heute" }, | 844 | { "today","heute" }, |
845 | { "yesterday","gestern" }, | 845 | { "yesterday","gestern" }, |
846 | { "Ok","Ok" }, | 846 | { "Ok","Ok" }, |
847 | { "Ok+Agenda","Ok+Agenda" }, | 847 | { "Ok+Agenda","Ok+Agenda" }, |
848 | { "Email","Email" }, | 848 | { "Email","Email" }, |
849 | { "RSVP","RSVP" }, | 849 | { "RSVP","RSVP" }, |
850 | { "Email:","Email:" }, | 850 | { "Email:","Email:" }, |
851 | { "Appointment Time ","Termin Zeit " }, | 851 | { "Appointment Time ","Termin Zeit " }, |
852 | { "2","2" }, | 852 | { "2","2" }, |
853 | { "3","3" }, | 853 | { "3","3" }, |
854 | { "4","4" }, | 854 | { "4","4" }, |
855 | { " 0 %"," 0 %" }, | 855 | { " 0 %"," 0 %" }, |
856 | { " 20 %"," 20 %" }, | 856 | { " 20 %"," 20 %" }, |
857 | { " 40 %"," 40 %" }, | 857 | { " 40 %"," 40 %" }, |
858 | { " 60 %"," 60 %" }, | 858 | { " 60 %"," 60 %" }, |
859 | { " 80 %"," 80 %" }, | 859 | { " 80 %"," 80 %" }, |
860 | { "100 %","100 %" }, | 860 | { "100 %","100 %" }, |
861 | { "Filter","Filter" }, | 861 | { "Filter","Filter" }, |
862 | { "Configure","Konfiguriere" }, | 862 | { "Configure","Konfiguriere" }, |
863 | { "What's Next","What's Next" }, | 863 | { "What's Next","What's Next" }, |
864 | { "Complete calendar...","Kompletten Kalender..." }, | 864 | { "Complete calendar...","Kompletten Kalender..." }, |
865 | { "Filtered calendar...","Gefilterten Kalender..." }, | 865 | { "Filtered calendar...","Gefilterten Kalender..." }, |
866 | { "Export to phone","Exportiere zum Handy" }, | 866 | { "Export to phone","Exportiere zum Handy" }, |
867 | { "Beam receive enabled","Beam Empfang an" }, | 867 | { "Beam receive enabled","Beam Empfang an" }, |
868 | { "What's new?","Was ist neu?" }, | 868 | { "What's new?","Was ist neu?" }, |
869 | { "FAQ...","FAQ..." }, | 869 | { "FAQ...","FAQ..." }, |
870 | { "Licence...","Licence..." }, | 870 | { "Licence...","Licence..." }, |
871 | { "What's This?","What's This?" }, | 871 | { "What's This?","What's This?" }, |
872 | { "&Edit...","&Editiere..." }, | 872 | { "&Edit...","&Editiere..." }, |
873 | { "Oktober","Oktober" }, | 873 | { "Oktober","Oktober" }, |
874 | { "Title","Titel" }, | 874 | { "Title","Titel" }, |
875 | { "%1 %","%1 %" }, | 875 | { "%1 %","%1 %" }, |
876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, | 876 | { "Enable Pi-Sync","Schalte Pi-Sync an" }, |
877 | { "Import!","Importiere!" }, | 877 | { "Import!","Importiere!" }, |
878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, | 878 | { "inserting birthdays - close to abort!","Burzeltage werden eingefügt - schließe um abzubrechen!" }, |
879 | { "Export to phone options","Export ans Handy Optionen" }, | 879 | { "Export to phone options","Export ans Handy Optionen" }, |
880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, | 880 | { "Please read Help-Sync Howto\nto know what settings to use.","Bitte lese Hilfe-Sync Howto\num zu erfahren welche Einstellungen\ndie richtigen sind." }, |
881 | { "I/O device: ","I/O device: " }, | 881 | { "I/O device: ","I/O device: " }, |
882 | { "Connection: ","Connection: " }, | 882 | { "Connection: ","Connection: " }, |
883 | { "Model(opt.): ","Model(opt.): " }, | 883 | { "Model(opt.): ","Model(opt.): " }, |
884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, | 884 | { "Write back events in future only","Schreibe nur zukünftige Termine zurück" }, |
885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, | 885 | { "Max. weeks in future: ","Max. Wochen in der Zukunft: " }, |
886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, | 886 | { "NOTE: This will remove all old\ntodo/calendar data on phone!","ACHTUNG: Das löscht alle alten\nToDo/Kalender Daten auf dem Handy!" }, |
887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, | 887 | { "Export to mobile phone!","Exportiere auf das Handy!" }, |
888 | { "Export complete calendar","Exportiere kompletten Kalender" }, | 888 | { "Export complete calendar","Exportiere kompletten Kalender" }, |
889 | { "Writing to phone...","Sende Daten ans Handy..." }, | 889 | { "Writing to phone...","Sende Daten ans Handy..." }, |
890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, | 890 | { " This may take 1-3 minutes!"," Das kann 1-3 Minuten dauern!" }, |
891 | { "Retry","Nochmal versuchen" }, | 891 | { "Retry","Nochmal versuchen" }, |
892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, | 892 | { "KDE/Pim phone access","KDE/Pim Handy Zugriff" }, |
893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, | 893 | { "Error accessing device!\nPlease turn on connection\nand retry!","Fehler beim Zugriff auf das Gerät!\nBitte die Verbindung aktivieren\nund nochmal versuchen!" }, |
894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, | 894 | { "Error exporting to phone!","Fehler beim Export auf das Handy!" }, |
895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, | 895 | { "Export filtered calendar","Exportiere gefilterten Kalender" }, |
896 | { "Preferences","Vorlieben" }, | 896 | { "Preferences","Vorlieben" }, |
897 | { "Global","Global" }, | 897 | { "Global","Global" }, |
898 | { "Phone","Phone" }, | 898 | { "Phone","Phone" }, |
899 | { "SMS","SMS" }, | 899 | { "SMS","SMS" }, |
900 | { "Fax","Fax" }, | 900 | { "Fax","Fax" }, |
901 | { "Pager","Pager" }, | 901 | { "Pager","Pager" }, |
902 | { "SIP","SIP" }, | 902 | { "SIP","SIP" }, |
903 | { "Italian","Italienisch" }, | 903 | { "Italian","Italienisch" }, |
904 | { "24:00","24:00" }, | 904 | { "24:00","24:00" }, |
905 | { "12:00am","12:00am" }, | 905 | { "12:00am","12:00am" }, |
906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, | 906 | { "24.03.2004 (%d.%m.%Y|%A %d %B %Y)","24.03.2004 (%d.%m.%Y|%A %d %B %Y)" }, |
907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, | 907 | { "03.24.2004 (%m.%d.%Y|%A %B %d %Y)","03.24.2004 (%m.%d.%Y|%A %B %d %Y)" }, |
908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, | 908 | { "2004-03-24 (%Y-%m-%d|%A %Y %B %d)","2004-03-24 (%Y-%m-%d|%A %Y %B %d)" }, |
909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, | 909 | { "Mon 19.04.04: %a %d.%m.%y","Mon 19.04.04: %a %d.%m.%y" }, |
910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, | 910 | { "Mon, 19.Apr.04: %a, %d.%b.%y","Mon, 19.Apr.04: %a, %d.%b.%y" }, |
911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, | 911 | { "Add 30 min to selected Timezone","Addiere 30 min zur Zeitzone" }, |
912 | { "Used Mail Client","Benutzter Mail Client" }, | 912 | { "Used Mail Client","Benutzter Mail Client" }, |
913 | { "Channel:","Channel:" }, | 913 | { "Channel:","Channel:" }, |
914 | { "Message:","Message:" }, | 914 | { "Message:","Message:" }, |
915 | { "Parameters:","Parameter:" }, | 915 | { "Parameters:","Parameter:" }, |
916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, | 916 | { "HINT: Delimiter=; Name=%1,Email=%2","Hinweis: Begrenzer=; Name=%1,Email=%2" }, |
917 | { "extra Message:","extra Message:" }, | 917 | { "extra Message:","extra Message:" }, |
918 | { "extra Parameters:","extra Parameter:" }, | 918 | { "extra Parameters:","extra Parameter:" }, |
919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, | 919 | { "HINT: Emails=%1,Attachments=%2","Hinweis: Emails=%1,Attachments=%2" }, |
920 | { "External Apps.","Externe Appl." }, | 920 | { "External Apps.","Externe Appl." }, |
921 | { "24 hours","24 Std." }, | 921 | { "24 hours","24 Std." }, |
922 | { "3 hours","3 Std." }, | 922 | { "3 hours","3 Std." }, |
923 | { "1 hour","1 Std." }, | 923 | { "1 hour","1 Std." }, |
924 | { "15 minutes","15 Min." }, | 924 | { "15 minutes","15 Min." }, |
925 | { "5 minutes","5 Min." }, | 925 | { "5 minutes","5 Min." }, |
926 | { "1 minute","1 Min." }, | 926 | { "1 minute","1 Min." }, |
927 | { "23","23" }, | 927 | { "23","23" }, |
928 | { "Mon 15","Mon 15" }, | 928 | { "Mon 15","Mon 15" }, |
929 | { "Configure KO","Konfiguriere KO" }, | 929 | { "Configure KO","Konfiguriere KO" }, |
930 | { "Event text","Termin Text" }, | 930 | { "Event text","Termin Text" }, |
931 | { "ToDo","ToDo" }, | 931 | { "ToDo","ToDo" }, |
932 | { "Today","Heute" }, | 932 | { "Today","Heute" }, |
933 | { "What's Next View","What's Next Ansicht" }, | 933 | { "What's Next View","What's Next Ansicht" }, |
934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, | 934 | { "Show Sync Events in \nWhat's Next/Agenda view","Zeige Sync Termine in \nWhat's Next/Agenda view" }, |
935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, | 935 | { "Use short date in \nWhat's Next/Event view","Zeige Kurzdatum in \nWhat's Next/Event view" }, |
936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, | 936 | { "Allday Agenda view shows todos","Ganztag Agenda zeigt Todos" }, |
937 | { "Alarm","Alarm" }, | 937 | { "Alarm","Alarm" }, |
938 | { "Used %1 Client","Benutzter %1 Client" }, | 938 | { "Used %1 Client","Benutzter %1 Client" }, |
939 | { "No email client installed","Kein Email Klient installiert" }, | 939 | { "No email client installed","Kein Email Klient installiert" }, |
940 | { "Userdefined email client","Benutzerdef. Email Klient" }, | 940 | { "Userdefined email client","Benutzerdef. Email Klient" }, |
941 | { "OM/Pi email client","OM/Pi Email Klient" }, | 941 | { "OM/Pi email client","OM/Pi Email Klient" }, |
942 | { "Include in multiple ","Beziehe in multiple " }, | 942 | { "Include in multiple ","Beziehe in multiple " }, |
943 | { "calendar ","Kalender " }, | 943 | { "calendar ","Kalender " }, |
944 | { "addressbook ","Adressbuch " }, | 944 | { "addressbook ","Adressbuch " }, |
945 | { "pwmanager","PWmanager" }, | 945 | { "pwmanager","PWmanager" }, |
946 | { " sync"," Sync ein" }, | 946 | { " sync"," Sync ein" }, |
947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, | 947 | { "Write back synced data","Schreibe gesyncte Daten zurück" }, |
948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, | 948 | { "-- Write back (on remote) existing entries only","-- Schreibe nur existierende (entfernte) Einträge zurück" }, |
949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, | 949 | { "-- Write back (calendar) entries in future only","-- Schreibe nur zukünftige Kalender-Einträge zurück" }, |
950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, | 950 | { "---- Max. weeks in future: ","---- Max. wochen in der Zukunft: " }, |
951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, | 951 | { "Pi-Sync ( direct Kx/Pi to Kx/Pi sync )","Pi-Sync ( direktes Kx/Pi zu Kx/Pi sync )" }, |
952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, | 952 | { "Mobile device (cell phone)","Mobiles Gerät (Handy)" }, |
953 | { "Help...","Hilfe..." }, | 953 | { "Help...","Hilfe..." }, |
954 | { "Local file Cal:","Lokale Datei Kal:" }, | 954 | { "Local file Cal:","Lokale Datei Kal:" }, |
955 | { "Local file ABook:","Lokale Datei ABuch:" }, | 955 | { "Local file ABook:","Lokale Datei ABuch:" }, |
956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, | 956 | { "Local file PWMgr:","Lokale Datei PWMgr:" }, |
957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, | 957 | { "Addressbook file (*.vcf) is used by KA/Pi","Adressbuch Datei (*.vcf) wird von KA/Pi genutzt" }, |
958 | { "Calendar:","Kalender:" }, | 958 | { "Calendar:","Kalender:" }, |
959 | { "AddressBook:","AdressBuch:" }, | 959 | { "AddressBook:","AdressBuch:" }, |
960 | { "PWManager:","PWManager:" }, | 960 | { "PWManager:","PWManager:" }, |
961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, | 961 | { "Addressbook file is used by KA/Pi","Adressbuch Datei wird von KA/Pi genutzt" }, |
962 | { "ssh/scp","ssh/scp" }, | 962 | { "ssh/scp","ssh/scp" }, |
963 | { "ftp","ftp" }, | 963 | { "ftp","ftp" }, |
964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, | 964 | { "Password for remote access: (could be the same for each)","Passwort für entfernten Zugriff: (kann dasselbe sein für alle)" }, |
965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, | 965 | { "Remote IP address: (could be the same for each)","Entfernte IP Adresse: (kann dasselbe sein für alle)" }, |
966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, | 966 | { "Remote port number: (should be different for each)","Entfernte Port Nummer: (Sollte für alle unterschiedlich sein)" }, |
967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, | 967 | { "command for downloading remote file to local device","Kommando zum Download der entfernten Datei zum lokalen Gerät" }, |
968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, | 968 | { "command for uploading local temp file to remote device","Kommando zum Upload der lokalen temp. Datei zum entfernten Gerät" }, |
969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, | 969 | { "Insert device where\nphone is connected. E.g.:\n","Füge Device ein, an dem\ndas Handy angeschlossen ist. Z.B.:\n" }, |
970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, | 970 | { "KDE-Pim sync config","KDE-Pim sync Konfig" }, |
971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, | 971 | { "Insert kind of connection,e.g.:\n","Füge Art der Verbindung ein,z.B.:\n" }, |
972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, | 972 | { "Recommended: Leave empty!\n(Such that model can\nbe auto detected)\nOr insert name of model:\n","Empfohlen: Leer lassen!\n(So dass das Model\nautomatisch erkannt\nwerden kann)\nOder füge Model Name ein:\n" }, |
973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, | 973 | { "Port number (Default: %1)","Port Nummer (Default: %1)" }, |
974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, | 974 | { "Password to enable\naccess from remote:","Passwort um entfernten\nZugriff zuzulassen:" }, |
975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, | 975 | { "Automatically start\nat application startup","Starte automatisch\nbeim Programmstart" }, |
976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, | 976 | { "Automatically sync\nwith KDE-Desktop","Automatischer Sync\nmit dem KDE-Desktop" }, |
977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, | 977 | { "Enter port for Pi-Sync","Port Nummer für Pi-Sync" }, |
978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, | 978 | { "Disable Pi-Sync","Schalte Pi-Sync aus" }, |
979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, | 979 | { "Do you really want\nto multiple sync\nwith all checked profiles?\nSyncing takes some\ntime - all profiles\nare synced twice!","Wollen Sie wirklich\nmit allen selektierten\nProfilen \"Multi-Syncen\"?\nDas Syncen dauert einige Zeit -\nalle Profile werden zweimal gesynct!" }, |
980 | { "KDE-Pim Sync","KDE-Pim Sync" }, | 980 | { "KDE-Pim Sync","KDE-Pim Sync" }, |
981 | { "Multiple profiles","Multi-Sync Profile" }, | 981 | { "Multiple profiles","Multi-Sync Profile" }, |
982 | { "Device: ","Gerät: " }, | 982 | { "Device: ","Gerät: " }, |
983 | { "Multiple sync started.","Multi-Sync gestartet." }, | 983 | { "Multiple sync started.","Multi-Sync gestartet." }, |
984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, | 984 | { "Nothing synced! No profiles defined for multisync!","Nichts gesynct! Keine Profile\nselektiert für Multi-Sync" }, |
985 | { "Turn filter on","Schalte Filter an" }, | 985 | { "Turn filter on","Schalte Filter an" }, |
986 | { "Turn filter off","Schalte Filter aus" }, | 986 | { "Turn filter off","Schalte Filter aus" }, |
987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, | 987 | { "Key bindings KOrganizer/Pi","Tastatur Belegung KOrganizer/Pi" }, |
988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, | 988 | { "<p><b>White</b>: Item readonly</p>\n","<p><b>Weiss</b>: Eintrag schreibgeschützt</p>\n" }, |
989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, | 989 | { "<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n","<p><b>Dunkelgelb</b>: Termin/Todo mit Teilnehmern.</p>\n" }, |
990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, | 990 | { "<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n","<p><b>Schwarz</b>: Termin/Todo mit Teilnehmern. Sie sind der Organisator!</p>\n" }, |
991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, | 991 | { "<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n","<p><b>Dunkelgrün</b>: Information(Beschreibung) verfügbar.([i] in WN Ansicht)</p>\n" }, |
992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, | 992 | { "<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n","<p><b>Blau</b>: Wiederholender Termin.([r] in Whats'Next Ansicht)</p>\n" }, |
993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, | 993 | { "<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n","<p><b>Rot</b>: Alarm gesetzt.([a] in Whats'Next Ansicht)</p>\n" }, |
994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, | 994 | { "<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n","<p><b>Kreuz</b>: Eintrag gecancelt.([c] in Whats'Next Ansicht)</p>\n" }, |
995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, | 995 | { "<p><b>(for square icons in agenda and month view)</b></p>\n","<p><b>(für quadratische Icons in Agenda und Monats Ansicht)</b></p>\n" }, |
996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, | 996 | { "<p><h2>KO/Pi icon colors:</h2></p>\n","<p><h2>KO/Pi Icon Farben:</h2></p>\n" }, |
997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, | 997 | { "<p><b>E</b>: Edit item</p>\n","<p><b>E</b>: Editiere Eintrag</p>\n" }, |
998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, | 998 | { "<p><b>A</b>: Show agenda view.</p>\n","<p><b>A</b>: Zeige Agenda Ansicht.</p>\n" }, |
999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, | 999 | { "<p><b>I,C</b>: Close dialog.</p>\n","<p><b>I,C</b>: Schließe Dialog.</p>\n" }, |
1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, | 1000 | { "<p><h3>In event/todo viewer:</h3></p>\n","<p><h3>In Termin/Todo Detail-Anzeige:</h3></p>\n" }, |
1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, | 1001 | { "<p><b>shift+up/down</b>: Goto first/last item</p>\n","<p><b>shift+up/down</b>: Gehe zum ersten/letzten Eintrag</p>\n" }, |
1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, | 1002 | { "<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n","<p><b>ctrl+up/down</b>: Gehe hoch/runter 20% aller Einträge</p>\n" }, |
1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, | 1003 | { "<p><b>up/down</b>: Next/prev item</p>\n","<p><b>up/down</b>: Nächster/vorheriger Eintrag</p>\n" }, |
1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1004 | { "<p><b>return+shift</b>: Deselect item+one step down</p>\n","<p><b>return+shift</b>: Deselektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, | 1005 | { "<p><b>return</b>: Select item+one step down</p>\n","<p><b>return</b>: Selektiere Item+Cursor einen Eintrag runter</p>\n" }, |
1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, | 1006 | { "<p><b>I</b>: Show info of current item+one step down.</p>\n","<p><b>I</b>: Zeige Detail-Ansicht vom sel.Eintrag+Cursor einen Eintrag runter.</p>\n" }, |
1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, | 1007 | { "<p><h3>In list view:</h3></p>\n","<p><h3>In Listen Ansicht:</h3></p>\n" }, |
1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, | 1008 | { "<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n","<p><b>return+shift</b>: Markiere Todo als nicht erledigt+Cursor einen Eintrag runter</p>\n" }, |
1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, | 1009 | { "<p><b>return</b>: Mark item as completed+one step down.</p>\n","<p><b>return</b>: Markiere Todo als erledigt+Cursor einen Eintrag runter.</p>\n" }, |
1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, | 1010 | { "<p><b>Q</b>: Toggle quick todo line edit.</p>\n","<p><b>Q</b>: Zeige/verstecke Quick Todo Eingabe Zeile.</p>\n" }, |
1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, | 1011 | { "<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n","<p><b>shift+P</b>: Mache Todo zum neuen <b>P</b>arent Todo für das Todo, welches mit shift+Sselektiert wurde.</p>\n" }, |
1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, | 1012 | { "<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n","<p><b>shift+S</b>: Mache Todo zum <b>S</b>ubtodo</p>\n" }, |
1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, | 1013 | { "<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n","<p><b>shift+U</b>: <b>U</b>nparent Todo (Mache Sub-Todo zum Toplevel Todo)</p>\n" }, |
1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, | 1014 | { "<p><h3>In todo view:</h3></p>\n","<p><h3>In Todo Anzige:</h3></p>\n" }, |
1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, | 1015 | { "<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n","<p><b>ctrl+up/down</b>: Scrolle kleine Todo Ansicht</p>\n" }, |
1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, | 1016 | { "<p><b>up/down</b>: Scroll agenda view</p>\n","<p><b>up/down</b>: Scrolle Agenda Ansicht</p>\n" }, |
1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, | 1017 | { "<p><h3>In agenda view:</h3></p>\n","<p><h3>In Agenda Ansicht:</h3></p>\n" }, |
1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, | 1018 | { "<p><b>del,backspace</b>: Delete selected item</p>\n","<p><b>del,backspace</b>: Lösche selektiertes Item</p>\n" }, |
1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, | 1019 | { "<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n","<p><b>left</b>: Vorh. Woche | <b>left+ctrl</b>: Vorh. Monat</p>\n" }, |
1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, | 1020 | { "<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n","<p><b>right</b>: Nächste Woche | <b>right+ctrl</b>: Nächste Woche</p>\n" }, |
1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, | 1021 | { "<p><b>B</b>: Edit description (details) of selected item</p>\n","<p><b>B</b>: Editiere Beschreibung (Details) des selektierten Items</p>\n" }, |
1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, | 1022 | { "<p><b>C</b>: Show current time in agenda view</p>\n","<p><b>C</b>: Zeige aktuelle Zeit in Agenda Ansicht</p>\n" }, |
1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, | 1023 | { "<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n","<p><b>+,-</b> : Zoom rein/raus Agenda | <b>A</b>: Wechsle Ganztag Agenda Höhe</p>\n" }, |
1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, | 1024 | { "<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n","<p><b>S+ctrl</b>: Füge Sub-Todo hinzu | <b>X</b>: Zeige/verstecke Datenavigator</p>\n" }, |
1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, | 1025 | { "<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n","<p><b>T</b>: Gehe zu Heute | <b>T+ctrl</b>: Neues Todo</p>\n" }, |
1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, | 1026 | { "<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n","<p><b>E</b>: Editiere selektiertes Item |<b> E+ctrl</b>: Neuer Termin</p>\n" }, |
1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, | 1027 | { "<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n","<p><b>D</b>: Ein-Tages Ansicht | <b>M</b>: Monats Ansicht</p>\n" }, |
1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, | 1028 | { "<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n","<p><b>Z,Y</b>: Arbeitswochen Ansicht | <b>U</b>: Wochen Ansicht</p>\n" }, |
1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, | 1029 | { "<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n","<p><b>V</b>: Todo Ansicht | <b>L</b>: Termin Listen Ansicht</p>\n" }, |
1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, | 1030 | { "<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ","<p><b>N</b>: Nächste-Tage Ansicht days view| <b>W</b>: What's next Ansicht\n " }, |
1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, | 1031 | { "<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n","<p><b>1-0</b> (+<b>ctrl</b>): Selektiere Filter 1-10 (11-20)</p>\n" }, |
1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, | 1032 | { "<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n","<p><b>O</b>: Filter An/Aus | <b>J</b>: Journal Ansicht</p>\n" }, |
1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, | 1033 | { "<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n","<p><b>F</b>: Zeige/verstecke Filter Ansicht |<b>F+ctrl</b>: Editiere Filter </p>\n" }, |
1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, | 1034 | { "<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n","<p><b>Space</b>: Zeige fullscreen | <b>P</b>: Datums Picker</p>\n" }, |
1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, | 1035 | { "<p><b>I</b>: Show info for selected event/todo</p>\n","<p><b>I</b>: Zeige Info (Details) für selektiertes Item</p>\n" }, |
1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, | 1036 | { "<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n","<p><b>H</b>: Dieser Hilfe Dialog | <b>S</b>: Such Dialog</p>\n" }, |
1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, | 1037 | { "<p><h2>KO/Pi key shortcuts:</h2></p>\n","<p><h2>KO/Pi Tastatur Kurzbefehle:</h2></p>\n" }, |
1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, | 1038 | { "After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configurable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n","Nachdem etwas geändert wurde, werden die\nDaten automatisch in die Datei abgespeichert\n~/kdepim/apps/korganizer/mycalendar.ics\nnach (konfigurierbar) drei Minuten.\nAus Sicherheitsgründen wird noch einmal\nnach 10 Min. abgespeichert, wenn keine\nÄnderungen vorgenommen wurden. Die \nDaten werden automatisch gespeichert,\nwenn KO/Pi beendet wird.\nSie können eine Backup-Datei erstellen im\nMenu: Datei - Speichere Kalender Backup\n" }, |
1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, | 1039 | { "Auto Saving in KOrganizer/Pi","Auto Speichern in KOrganizer/Pi" }, |
1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, | 1040 | { "\nhttp://sourceforge.net/projects/kdepimpi\n","\nhttp://sourceforge.net/projects/kdepimpi\n" }, |
1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, | 1041 | { "\nor report them in the bugtracker on\n","\noder trage sie in dem Bugtracker ein auf\n" }, |
1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, | 1042 | { "\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n","\nBitte melde fehlerhaftes Verhalten an\nlutz@pi-sync.net\n" }, |
1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, | 1043 | { "2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n","2) Ein Audio Alarm Daemon\nfür den Zaurus ist verfügbar\nals zusätzliche Anwendung\n" }, |
1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, | 1044 | { "1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n","1) Importieren von *.vcs oder *.ics Dateien von\nanderen Anwendungen kann möglicherweise\n nicht richtig funktionieren,\nwenn die Termine Eigenschaften haben,\ndie KO/Pi nicht unterstützt.\n" }, |
1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, | 1045 | { "Known Problems in KOrganizer/Pi","Bekannte Probleme in KOrganizer/Pi" }, |
1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, | 1046 | { "KO/Pi FAQ","KO/Pi FAQ" }, |
1047 | { "(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n","(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi basiert auf KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.korganizer.org\nwww.pi-sync.net\n" }, | 1047 | { "(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n","(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi basiert auf KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi ist lizensiert unter der GPL.\nKO/Pi kann kompiliert werden für\nLinux, Zaurus-PDA und Windows\nwww.korganizer.org\nwww.pi-sync.net\n" }, |
1048 | { "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n","PDA-Edition\nfür: Zaurus 5x00 / 7x0 / 8x0\n" }, | 1048 | { "PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n","PDA-Edition\nfür: Zaurus 5x00 / 7x0 / 8x0\n" }, |
1049 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, | 1049 | { "KOrganizer/Platform-independent\n","KOrganizer/Platform-independent\n" }, |
1050 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, | 1050 | { "About KOrganizer/Pi","Über KOrganizer/Pi" }, |
1051 | { "From: ","Von: " }, | 1051 | { "From: ","Von: " }, |
1052 | { "Remove sync info","Entferne Sync Info" }, | 1052 | { "Remove sync info","Entferne Sync Info" }, |
1053 | { "For all profiles","Für alle Profile" }, | 1053 | { "For all profiles","Für alle Profile" }, |
1054 | { "Hide not Running","Verstecke nicht Laufende" }, | 1054 | { "Hide not Running","Verstecke nicht Laufende" }, |
1055 | { "ME","ME" }, | 1055 | { "ME","ME" }, |
1056 | { "Toolbar","Toolbar" }, | 1056 | { "Toolbar","Toolbar" }, |
1057 | { "Undo Delete...","Löschen rückgängig machen..." }, | 1057 | { "Undo Delete...","Löschen rückgängig machen..." }, |
1058 | { "Undo Delete","Löschen rückgängig machen" }, | 1058 | { "Undo Delete","Löschen rückgängig machen" }, |
1059 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, | 1059 | { "KDE Sync HowTo...","KDE Sync HowTo..." }, |
1060 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, | 1060 | { "Multi Sync HowTo...","Multi Sync HowTo..." }, |
1061 | { "Januar","Januar" }, | 1061 | { "Januar","Januar" }, |
1062 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, | 1062 | { "KO/Pi Keys + Colors","KO/Pi Tasten + Farben" }, |
1063 | { "No Filter","Kein Filter" }, | 1063 | { "No Filter","Kein Filter" }, |
1064 | { "Multiple Sync options","Multi Sync Optionen" }, | 1064 | { "Multiple Sync options","Multi Sync Optionen" }, |
1065 | { "Sync algo options","Sync Ablauf Optionen" }, | 1065 | { "Sync algo options","Sync Ablauf Optionen" }, |
1066 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, | 1066 | { "Apply filter when adding data to local:","Filter für das Hinzufügen von Daten zu Lokal:" }, |
1067 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, | 1067 | { "Incoming calendar filter:","Eingehender Kalender Filter:" }, |
1068 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, | 1068 | { "Incoming addressbook filter:","Eingehender Adressbuch Filter:" }, |
1069 | { "Write back options","Optionen zum Zurückschreiben" }, | 1069 | { "Write back options","Optionen zum Zurückschreiben" }, |
1070 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, | 1070 | { "Write back (on remote) existing entries only","Schreibe nur existierende (auf Entfernt) Einträge zurück" }, |
1071 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, | 1071 | { "Apply filter when adding data to remote:","Filter für das Hinzufügen von Daten zu Entfernt:" }, |
1072 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, | 1072 | { "Outgoing calendar filter:","Ausgehender Kalender Filter:" }, |
1073 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, | 1073 | { "Outgoing addressbook filter:","Ausgehender Adressbuch Filter:" }, |
1074 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, | 1074 | { "Write back (calendar) entries for time period only","Schreibe nur Kalender Einträge für Zeitspanne zurück" }, |
1075 | { "Time period","Zeitspanne" }, | 1075 | { "Time period","Zeitspanne" }, |
1076 | { "From ","Von " }, | 1076 | { "From ","Von " }, |
1077 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, | 1077 | { " weeks in the past to "," Wochen in der Vergangenheit bis zu " }, |
1078 | { " weeks in the future "," Wochen in der Zukunft " }, | 1078 | { " weeks in the future "," Wochen in der Zukunft " }, |
1079 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, | 1079 | { "Profile kind specific settings","Profil Art abhängige Einstellungen" }, |
1080 | { "Local temp file:","Lokale temp Datei:" }, | 1080 | { "Local temp file:","Lokale temp Datei:" }, |
1081 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, | 1081 | { "Multiple profiles with same name!\nPlease use unique profile names!","Mehrere Profile mit demselben Namen!\nBitte verschiedene Namen benutzen!" }, |
1082 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, | 1082 | { "Aborted! Nothing synced!","Abgebrochen! Nichts wurde gesynct!" }, |
1083 | { "Language","Sprache" }, | 1083 | { "Language","Sprache" }, |
1084 | { "Time Format","Zeit Format" }, | 1084 | { "Time Format","Zeit Format" }, |
1085 | { "Time Zone","Zeit Zone" }, | 1085 | { "Time Zone","Zeit Zone" }, |
1086 | { "%1 groups subscribed","%1 Guppen abboniert" }, | 1086 | { "%1 groups subscribed","%1 Guppen abboniert" }, |
1087 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, | 1087 | { "Your current storage dir is:\n%1\nYour mail is stored in:\n(storagedir)/apps/kopiemail/localmail","Aktuelles Speicherverzeichnis ist:\n%1\nIhre Mail wird gespeichert in:\n(speicherverz.)/apps/kopiemail/localmail" }, |
1088 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, | 1088 | { "<b>New data storage dir:</b>","<b>Neues Datenspeicherverzeichnis:</b>" }, |
1089 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, | 1089 | { "New dirs are created automatically","Neue Verzeichnisse werden aut. erstellt" }, |
1090 | { "Save settings","Speichere Einstellungen" }, | 1090 | { "Save settings","Speichere Einstellungen" }, |
1091 | { "Save standard","Speichere Standard" }, | 1091 | { "Save standard","Speichere Standard" }, |
1092 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, | 1092 | { "<b>New settings are used\nafter a restart</b>","<b>Neue Einstellungen werden nach\neinem Neustart genutzt</b>" }, |
1093 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, | 1093 | { "Settings are stored in\n%1","Einstellungen werden gespeichert in:\n%1" }, |
1094 | { "Data storage path","Daten Speicherpfad" }, | 1094 | { "Data storage path","Daten Speicherpfad" }, |
1095 | { "Language","Sprache" }, | 1095 | { "Language","Sprache" }, |
1096 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, | 1096 | { "Show time in agenda items","Zeige Zeit in Agenda Items" }, |
1097 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, | 1097 | { "Color for Sundays + category "Holiday"","Farbe für Sonntags + Kategorie "Feiertag"" }, |
1098 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, | 1098 | { "Show events, that are done in \nWhat's Next view","Zeige abgelaufene Termine in\nWhat's Next Ansicht" }, |
1099 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, | 1099 | { "Hide not running Todos in To-do view","Verstecke nicht laufende Todos" }, |
1100 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, | 1100 | { "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, |
1101 | { "KO/Pi","KO/Pi" }, | 1101 | { "KO/Pi","KO/Pi" }, |
1102 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, | 1102 | { "There is nothing to undo!","Es gibt nichts zum\nRückgängigmachen!" }, |
1103 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, | 1103 | { "Recreating edit dialog. Please wait...","Recreating edit dialog. Please wait..." }, |
1104 | { "Sound.Al.: ","Sound.Al.: " }, | 1104 | { "Sound.Al.: ","Sound.Al.: " }, |
1105 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, | 1105 | { "From: %1 To: %2 %3","Von: %1 Bis: %2 %3" }, |
1106 | { "Restore","Wiederherstellen" }, | 1106 | { "Restore","Wiederherstellen" }, |
1107 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, | 1107 | { "\nAre you sure you want\nto restore this?","\nMöchten Sie das wirklicht\nwiederherstellen?" }, |
1108 | { "% completed","% komplett" }, | 1108 | { "% completed","% komplett" }, |
1109 | { "%d item(s) found.","%d Item(s) gefunden." }, | 1109 | { "%d item(s) found.","%d Item(s) gefunden." }, |
1110 | { "Set complete","Setze auf erledigt" }, | 1110 | { "Set complete","Setze auf erledigt" }, |
1111 | { "(cancelled)","(gecancelt)" }, | 1111 | { "(cancelled)","(gecancelt)" }, |
1112 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, | 1112 | { "Click on the week number to\nshow week in agenda view","Klicke auf die Wochennummer\num die Woche in der Agenda anzuzeigen" }, |
1113 | { " Local time "," Locale Zeit " }, | 1113 | { " Local time "," Locale Zeit " }, |
1114 | { "Form2","Form2" }, | 1114 | { "Form2","Form2" }, |
1115 | { "Filter enabled","Filter angeschaltet" }, | 1115 | { "Filter enabled","Filter angeschaltet" }, |
1116 | { "Edit Filters","Ändere Filter" }, | 1116 | { "Edit Filters","Ändere Filter" }, |
1117 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, | 1117 | { "Print What's Next View...","Drucke What's Next Ansicht..." }, |
1118 | { "Agenda","Agenda" }, | 1118 | { "Agenda","Agenda" }, |
1119 | { " ("," (" }, | 1119 | { " ("," (" }, |
1120 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, | 1120 | { "<p><b>Due on:</b> %1</p>","<p><b>Fällig am:</b> %1</p>" }, |
1121 | { "Print","Print" }, | 1121 | { "Print","Print" }, |
1122 | { "&Setup Printer...","Drucker &Setup..." }, | 1122 | { "&Setup Printer...","Drucker &Setup..." }, |
1123 | { "View Type","Zeige Typ" }, | 1123 | { "View Type","Zeige Typ" }, |
1124 | { "Page &orientation:","Seiten Ausrichtung:" }, | 1124 | { "Page &orientation:","Seiten Ausrichtung:" }, |
1125 | { "Use Default of Selected Style","Default des selektierten Stils" }, | 1125 | { "Use Default of Selected Style","Default des selektierten Stils" }, |
1126 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, | 1126 | { "Use Default Setting of Printer","Default Einstellung des Druckers" }, |
1127 | { "Portrait","Portrait" }, | 1127 | { "Portrait","Portrait" }, |
1128 | { "Landscape","Landschaft" }, | 1128 | { "Landscape","Landschaft" }, |
1129 | { "Print day","Drucke Tag" }, | 1129 | { "Print day","Drucke Tag" }, |
1130 | { "CalPrintDay_Base","CalPrintDay_Base" }, | 1130 | { "CalPrintDay_Base","CalPrintDay_Base" }, |
1131 | { "Date && Time Range","Datum && Zeitspanne" }, | 1131 | { "Date && Time Range","Datum && Zeitspanne" }, |
1132 | { "&End date:","&Enddatum:" }, | 1132 | { "&End date:","&Enddatum:" }, |
1133 | { "&Start date:","&Startdatum:" }, | 1133 | { "&Start date:","&Startdatum:" }, |
1134 | { "Start &time:","Startzeit:" }, | 1134 | { "Start &time:","Startzeit:" }, |
1135 | { "End ti&me:","Endzeit:" }, | 1135 | { "End ti&me:","Endzeit:" }, |
1136 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, | 1136 | { "E&xtend time range to include all events","Erweitere Zeitspanne um alle Termine einzuschliessen" }, |
1137 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, | 1137 | { "Include to&dos that are due on the printed day(s)","Inclusive To&dos, die an den selektierten Tagen fällig sind" }, |
1138 | { "Alt+D","Alt+D" }, | 1138 | { "Alt+D","Alt+D" }, |
1139 | { "&Use colors","Nutze Farben" }, | 1139 | { "&Use colors","Nutze Farben" }, |
1140 | { "Alt+U","Alt+U" }, | 1140 | { "Alt+U","Alt+U" }, |
1141 | { "Print week","Drucke Woche" }, | 1141 | { "Print week","Drucke Woche" }, |
1142 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, | 1142 | { "CalPrintWeek_Base","CalPrintWeek_Base" }, |
1143 | { "Use &colors","Nutze Farben" }, | 1143 | { "Use &colors","Nutze Farben" }, |
1144 | { "Type of View","Typ der Ansicht" }, | 1144 | { "Type of View","Typ der Ansicht" }, |
1145 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, | 1145 | { "Print as &Filofax page","Drucke als &Filofax Seite" }, |
1146 | { "Alt+F","Alt+F" }, | 1146 | { "Alt+F","Alt+F" }, |
1147 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, | 1147 | { "Print as &timetable view:","Drucke als Zeittabelle:" }, |
1148 | { "Alt+T","Alt+T" }, | 1148 | { "Alt+T","Alt+T" }, |
1149 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, | 1149 | { "Print as split week view","Drucke als gesplittete Wochenansicht" }, |
1150 | { "Print month","Drucke Monat" }, | 1150 | { "Print month","Drucke Monat" }, |
1151 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, | 1151 | { "CalPrintMonth_Base","CalPrintMonth_Base" }, |
1152 | { "&Start month:","&Startmonat:" }, | 1152 | { "&Start month:","&Startmonat:" }, |
1153 | { "&End month:","&Endmonat:" }, | 1153 | { "&End month:","&Endmonat:" }, |
1154 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, | 1154 | { "Print week &numbers","Drucke Wochen Nummer(n)" }, |
1155 | { "Print todos","Drucke Todos" }, | 1155 | { "Print todos","Drucke Todos" }, |
1156 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, | 1156 | { "CalPrintTodoConfig_Base","CalPrintTodoConfig_Base" }, |
1157 | { "Include &description of the item","Inclusive Itembeschreibung" }, | 1157 | { "Include &description of the item","Inclusive Itembeschreibung" }, |
1158 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, | 1158 | { "Include d&ue date of the item","Inclusive Fälligkeitsdatum des Items" }, |
1159 | { "Include &priority of the item","Inclusive Priorität des Items" }, | 1159 | { "Include &priority of the item","Inclusive Priorität des Items" }, |
1160 | { "Items to Print","Zu druckende Items" }, | 1160 | { "Items to Print","Zu druckende Items" }, |
1161 | { "&From:","Von:" }, | 1161 | { "&From:","Von:" }, |
1162 | { "&To:","Bis:" }, | 1162 | { "&To:","Bis:" }, |
1163 | { "Print &all todo items","Drucke alle Todo Items" }, | 1163 | { "Print &all todo items","Drucke alle Todo Items" }, |
1164 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, | 1164 | { "Print only &uncompleted items","Drucke nur nicht erledigte Todos" }, |
1165 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, | 1165 | { "Only items due in the &range:","Nur Items in dem Zeitraum:" }, |
1166 | { "Todo List","Todo Liste" }, | 1166 | { "Todo List","Todo Liste" }, |
1167 | { "&Title:","&Titel:" }, | 1167 | { "&Title:","&Titel:" }, |
1168 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, | 1168 | { "Co&nnect subtodos with its parent","Verbinde Unter-Todos mit ihren Ober-Todos" }, |
1169 | { "Todo list","Todo Liste" }, | 1169 | { "Todo list","Todo Liste" }, |
1170 | { "&Print...","Drucke..." }, | 1170 | { "&Print...","Drucke..." }, |
1171 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, | 1171 | { "<qt>Printing on printer <b>%1</b></qt>","<qt>Drucke auf Drucker <b>%1</b></qt>" }, |
1172 | { "[Unconfigured]","[Unkonfiguriert]" }, | 1172 | { "[Unconfigured]","[Unkonfiguriert]" }, |
1173 | { "OK","OK" }, | 1173 | { "OK","OK" }, |
1174 | { "FilterEditor","FilterEditor" }, | 1174 | { "FilterEditor","FilterEditor" }, |
1175 | { "Include","Inclusive" }, | 1175 | { "Include","Inclusive" }, |
1176 | { "Exclude","Exclusive" }, | 1176 | { "Exclude","Exclusive" }, |
1177 | { "Edit Selection...","Editiere Auswahl" }, | 1177 | { "Edit Selection...","Editiere Auswahl" }, |
1178 | { "recurring events","wiederholende Termine" }, | 1178 | { "recurring events","wiederholende Termine" }, |
1179 | { "recurr. events","wiederh.Termine" }, | 1179 | { "recurr. events","wiederh.Termine" }, |
1180 | { "completed to-dos","erledigte Todos" }, | 1180 | { "completed to-dos","erledigte Todos" }, |
1181 | { "events","Termine" }, | 1181 | { "events","Termine" }, |
1182 | { "todos","Todos" }, | 1182 | { "todos","Todos" }, |
1183 | { "journals","Journale" }, | 1183 | { "journals","Journale" }, |
1184 | { "public","öffentl." }, | 1184 | { "public","öffentl." }, |
1185 | { "private","privat" }, | 1185 | { "private","privat" }, |
1186 | { "confidential","vertraul." }, | 1186 | { "confidential","vertraul." }, |
1187 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, | 1187 | { "\nhas sub-todos.\nAll completed sub-todos\nwill be deleted as well!","\nhat Unter-Todos.\nAlle erledigten Unter-Todos\nwerden auch gelöscht!" }, |
1188 | { "Yesterday","Gestern" }, | 1188 | { "Yesterday","Gestern" }, |
1189 | { "Day after tomorrow","Übermorgen" }, | 1189 | { "Day after tomorrow","Übermorgen" }, |
1190 | { "Tomorrow","Morgen" }, | 1190 | { "Tomorrow","Morgen" }, |
1191 | { "Day before yesterday","Vorgestern" }, | 1191 | { "Day before yesterday","Vorgestern" }, |
1192 | { "Size %1","Größe %1" }, | 1192 | { "Size %1","Größe %1" }, |
1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, | 1193 | { "New Agendasize: %1","Neue Agendagröße: %1" }, |
1194 | { " (%1 y.)"," (%1 J.)" }, | 1194 | { " (%1 y.)"," (%1 J.)" }, |
1195 | { "Allday:","Ganztägig:" }, | 1195 | { "Allday:","Ganztägig:" }, |
1196 | { "compl.todos","erled.Todos" }, | 1196 | { "compl.todos","erled.Todos" }, |
1197 | { "Day view","Tagesansicht" }, | 1197 | { "Day view","Tagesansicht" }, |
1198 | { "Next days","Nächste Tage" }, | 1198 | { "Next days","Nächste Tage" }, |
1199 | { "Next week","Nächste Woche" }, | 1199 | { "Next week","Nächste Woche" }, |
1200 | { "Next two weeks","Nächste zwei Wochen" }, | 1200 | { "Next two weeks","Nächste zwei Wochen" }, |
1201 | { "Next month","Nächster Monat" }, | 1201 | { "Next month","Nächster Monat" }, |
1202 | { "Journal view","Journal" }, | 1202 | { "Journal view","Journal" }, |
1203 | { "Display all opened","Zeige alle geöffnet" }, | 1203 | { "Display all opened","Zeige alle geöffnet" }, |
1204 | { "Display all closed","Zeige alle geschlossen" }, | 1204 | { "Display all closed","Zeige alle geschlossen" }, |
1205 | { "Display all flat","Zeige alle flach" }, | 1205 | { "Display all flat","Zeige alle flach" }, |
1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, | 1206 | { "<p><i>Completed on %1</i></p>","<p><i>Erledigt am %1</i></p>" }, |
1207 | { "Default todo done color:","Standard Todo erledigt Farbe" }, | 1207 | { "Default todo done color:","Standard Todo erledigt Farbe" }, |
1208 | { "Select week %1-%2","Selektiere Woche %1-%2" }, | 1208 | { "Select week %1-%2","Wähle Woche %1-%2" }, |
1209 | { "Select Week","Selektiere Woche" }, | 1209 | { "Select Week","Wähle Woche" }, |
1210 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, | 1210 | { "Set alarm for selected...","Setze Alarm für Selekt..." }, |
1211 | { "Set Alarm!","Setze Alarm!" }, | 1211 | { "Set Alarm!","Setze Alarm!" }, |
1212 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, | 1212 | { "Canged alarm for %1 items","Alarm für %1 Items geändert" }, |
1213 | { " and "," und " }, | 1213 | { " and "," und " }, |
1214 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, | 1214 | { "<IMG src="%1"> only )","nur <IMG src="%1"> )" }, |
1215 | { "Mail to selected","Mail an Ausgewählte" }, | 1215 | { "Mail to selected","Mail an Ausgewählte" }, |
1216 | { "Mail to all","Mail an Alle" }, | 1216 | { "Mail to all","Mail an Alle" }, |
1217 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, | 1217 | { "Week view mode uses bigger font","Wochenansicht Modus nutzt größeren Font" }, |
1218 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, | 1218 | { "Set reminder ON with offset to:","Alarm AN mit Offset auf:" }, |
1219 | { " on"," am" }, | 1219 | { " on"," am" }, |
1220 | { " completed on "," erledigt am " }, | 1220 | { " completed on "," erledigt am " }, |
1221 | { "Save as Event template","Speichere als Vorlage" }, | 1221 | { "Save as Event template","Speichere als Vorlage" }, |
1222 | { "Load Event template","Lade Termin Vorlage" }, | 1222 | { "Load Event template","Lade Termin Vorlage" }, |
1223 | { "Save as Journal template","Speichere als Journal Vorlage" }, | 1223 | { "Save as Journal template","Speichere als Journal Vorlage" }, |
1224 | { "Insert Journal template","Füge Journal Vorlage ein" }, | 1224 | { "Insert Journal template","Füge Journal Vorlage ein" }, |
1225 | { "","" }, | 1225 | { "","" }, |
1226 | { "","" }, | 1226 | { "","" }, |
1227 | { "","" }, | 1227 | { "","" }, |
1228 | { "","" }, | 1228 | { "","" }, |
1229 | { "","" }, | 1229 | { "","" }, |
1230 | { "","" }, | 1230 | { "","" }, |
diff --git a/korganizer/koagendaview.cpp b/korganizer/koagendaview.cpp index 36c66ea..0d36946 100644 --- a/korganizer/koagendaview.cpp +++ b/korganizer/koagendaview.cpp | |||
@@ -1,1647 +1,1579 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | 23 | ||
24 | #include <qhbox.h> | 24 | #include <qhbox.h> |
25 | #include <qvbox.h> | 25 | #include <qvbox.h> |
26 | #include <qlabel.h> | 26 | #include <qlabel.h> |
27 | #include <qframe.h> | 27 | #include <qframe.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #ifndef KORG_NOSPLITTER | 29 | #ifndef KORG_NOSPLITTER |
30 | #include <qsplitter.h> | 30 | #include <qsplitter.h> |
31 | #endif | 31 | #endif |
32 | #include <qfont.h> | 32 | #include <qfont.h> |
33 | #include <qfontmetrics.h> | 33 | #include <qfontmetrics.h> |
34 | #include <qpopupmenu.h> | 34 | #include <qpopupmenu.h> |
35 | #include <qtooltip.h> | 35 | #include <qtooltip.h> |
36 | #include <qpainter.h> | 36 | #include <qpainter.h> |
37 | #include <qpushbutton.h> | 37 | #include <qpushbutton.h> |
38 | #include <qapplication.h> | 38 | #include <qapplication.h> |
39 | 39 | ||
40 | #include <kapplication.h> | 40 | #include <kapplication.h> |
41 | #include <KDGanttMinimizeSplitter.h> | 41 | #include <KDGanttMinimizeSplitter.h> |
42 | #include <kdebug.h> | 42 | #include <kdebug.h> |
43 | #include <kstandarddirs.h> | 43 | #include <kstandarddirs.h> |
44 | #include <kiconloader.h> | 44 | #include <kiconloader.h> |
45 | #include <klocale.h> | 45 | #include <klocale.h> |
46 | #include <kconfig.h> | 46 | #include <kconfig.h> |
47 | #include <kglobal.h> | 47 | #include <kglobal.h> |
48 | #include "calendarview.h" | 48 | #include "calendarview.h" |
49 | #include "koviewmanager.h" | 49 | #include "koviewmanager.h" |
50 | 50 | ||
51 | #include <libkcal/calendar.h> | 51 | #include <libkcal/calendar.h> |
52 | #include <libkcal/icaldrag.h> | 52 | #include <libkcal/icaldrag.h> |
53 | #include <libkcal/dndfactory.h> | 53 | #include <libkcal/dndfactory.h> |
54 | 54 | ||
55 | #include <kcalendarsystem.h> | 55 | #include <kcalendarsystem.h> |
56 | 56 | ||
57 | #include "koglobals.h" | 57 | #include "koglobals.h" |
58 | #ifndef KORG_NOPLUGINS | 58 | #ifndef KORG_NOPLUGINS |
59 | #include "kocore.h" | 59 | #include "kocore.h" |
60 | #endif | 60 | #endif |
61 | #include "koprefs.h" | 61 | #include "koprefs.h" |
62 | #include "koagenda.h" | 62 | #include "koagenda.h" |
63 | #include "koagendaitem.h" | 63 | #include "koagendaitem.h" |
64 | #ifndef KORG_NOPRINTER | 64 | #ifndef KORG_NOPRINTER |
65 | #include "calprinter.h" | 65 | #include "calprinter.h" |
66 | #endif | 66 | #endif |
67 | 67 | ||
68 | #include "koagendaview.h" | 68 | #include "koagendaview.h" |
69 | //#include "koagendaview.moc" | 69 | //#include "koagendaview.moc" |
70 | 70 | ||
71 | //extern bool globalFlagBlockPainting; | 71 | //extern bool globalFlagBlockPainting; |
72 | extern int globalFlagBlockAgenda; | 72 | extern int globalFlagBlockAgenda; |
73 | extern int globalFlagBlockStartup; | 73 | extern int globalFlagBlockStartup; |
74 | extern int globalFlagBlockAgendaItemPaint; | 74 | extern int globalFlagBlockAgendaItemPaint; |
75 | extern int globalFlagBlockAgendaItemUpdate; | 75 | extern int globalFlagBlockAgendaItemUpdate; |
76 | extern int globalFlagBlockLabel; | 76 | extern int globalFlagBlockLabel; |
77 | using namespace KOrg; | 77 | using namespace KOrg; |
78 | 78 | ||
79 | 79 | ||
80 | 80 | ||
81 | TimeLabels::TimeLabels(int rows,QWidget *parent,const char *name,WFlags f) : | 81 | TimeLabels::TimeLabels(int rows,QWidget *parent,const char *name,WFlags f) : |
82 | QScrollView(parent,name,f) | 82 | QScrollView(parent,name,f) |
83 | { | 83 | { |
84 | mRows = rows; | 84 | mRows = rows; |
85 | 85 | ||
86 | setMinimumHeight( 20 ); | 86 | setMinimumHeight( 20 ); |
87 | mCellHeight = KOPrefs::instance()->mHourSize*4; | 87 | mCellHeight = KOPrefs::instance()->mHourSize*4; |
88 | 88 | ||
89 | enableClipper(true); | 89 | enableClipper(true); |
90 | 90 | ||
91 | setHScrollBarMode(AlwaysOff); | 91 | setHScrollBarMode(AlwaysOff); |
92 | setVScrollBarMode(AlwaysOff); | 92 | setVScrollBarMode(AlwaysOff); |
93 | 93 | ||
94 | resizeContents(50,mRows * mCellHeight); | 94 | resizeContents(50,mRows * mCellHeight); |
95 | 95 | ||
96 | viewport()->setBackgroundMode( PaletteBackground ); | 96 | viewport()->setBackgroundMode( PaletteBackground ); |
97 | } | 97 | } |
98 | 98 | ||
99 | void TimeLabels::setCellHeight(int height) | 99 | void TimeLabels::setCellHeight(int height) |
100 | { | 100 | { |
101 | mCellHeight = height; | 101 | mCellHeight = height; |
102 | } | 102 | } |
103 | 103 | ||
104 | /* | 104 | /* |
105 | Optimization so that only the "dirty" portion of the scroll view | 105 | Optimization so that only the "dirty" portion of the scroll view |
106 | is redrawn. Unfortunately, this is not called by default paintEvent() method. | 106 | is redrawn. Unfortunately, this is not called by default paintEvent() method. |
107 | */ | 107 | */ |
108 | void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) | 108 | void TimeLabels::drawContents(QPainter *p,int cx, int cy, int cw, int ch) |
109 | { | 109 | { |
110 | 110 | ||
111 | // if ( globalFlagBlockAgenda ) | 111 | // if ( globalFlagBlockAgenda ) |
112 | // return; | 112 | // return; |
113 | // bug: the parameters cx, cy, cw, ch are the areas that need to be | 113 | // bug: the parameters cx, cy, cw, ch are the areas that need to be |
114 | // redrawn, not the area of the widget. unfortunately, this | 114 | // redrawn, not the area of the widget. unfortunately, this |
115 | // code assumes the latter... | 115 | // code assumes the latter... |
116 | 116 | ||
117 | // now, for a workaround... | 117 | // now, for a workaround... |
118 | // these two assignments fix the weird redraw bug | 118 | // these two assignments fix the weird redraw bug |
119 | cx = contentsX() + 2; | 119 | cx = contentsX() + 2; |
120 | cw = contentsWidth() - 2; | 120 | cw = contentsWidth() - 2; |
121 | // end of workaround | 121 | // end of workaround |
122 | 122 | ||
123 | int cell = ((int)(cy/mCellHeight)); | 123 | int cell = ((int)(cy/mCellHeight)); |
124 | int y = cell * mCellHeight; | 124 | int y = cell * mCellHeight; |
125 | QFontMetrics fm = fontMetrics(); | 125 | QFontMetrics fm = fontMetrics(); |
126 | QString hour; | 126 | QString hour; |
127 | QString suffix; | 127 | QString suffix; |
128 | QString fullTime; | 128 | QString fullTime; |
129 | int tW = fm.width("24:00i"); | 129 | int tW = fm.width("24:00i"); |
130 | 130 | ||
131 | while (y < cy + ch) { | 131 | while (y < cy + ch) { |
132 | p->drawLine(cx,y,cx+tW,y); | 132 | p->drawLine(cx,y,cx+tW,y); |
133 | hour.setNum(cell); | 133 | hour.setNum(cell); |
134 | suffix = "am"; | 134 | suffix = "am"; |
135 | 135 | ||
136 | // handle 24h and am/pm time formats | 136 | // handle 24h and am/pm time formats |
137 | if (KGlobal::locale()->use12Clock()) { | 137 | if (KGlobal::locale()->use12Clock()) { |
138 | if (cell > 11) suffix = "pm"; | 138 | if (cell > 11) suffix = "pm"; |
139 | if (cell == 0) hour.setNum(12); | 139 | if (cell == 0) hour.setNum(12); |
140 | if (cell > 12) hour.setNum(cell - 12); | 140 | if (cell > 12) hour.setNum(cell - 12); |
141 | } else { | 141 | } else { |
142 | suffix = ":00"; | 142 | suffix = ":00"; |
143 | } | 143 | } |
144 | 144 | ||
145 | // create string in format of "XX:XX" or "XXpm/am" | 145 | // create string in format of "XX:XX" or "XXpm/am" |
146 | fullTime = hour + suffix; | 146 | fullTime = hour + suffix; |
147 | 147 | ||
148 | // center and draw the time label | 148 | // center and draw the time label |
149 | int timeWidth = fm.width(fullTime+"i"); | 149 | int timeWidth = fm.width(fullTime+"i"); |
150 | int offset = this->width() - timeWidth; | 150 | int offset = this->width() - timeWidth; |
151 | int borderWidth = 5; | 151 | int borderWidth = 5; |
152 | int timeHeight = fm.height(); | 152 | int timeHeight = fm.height(); |
153 | timeHeight = timeHeight + 2 - ( timeHeight / 4 ); | 153 | timeHeight = timeHeight + 2 - ( timeHeight / 4 ); |
154 | p->drawText(cx -borderWidth + offset, y+ timeHeight, fullTime); | 154 | p->drawText(cx -borderWidth + offset, y+ timeHeight, fullTime); |
155 | 155 | ||
156 | // increment indices | 156 | // increment indices |
157 | y += mCellHeight; | 157 | y += mCellHeight; |
158 | cell++; | 158 | cell++; |
159 | } | 159 | } |
160 | } | 160 | } |
161 | 161 | ||
162 | /** | 162 | /** |
163 | Calculates the minimum width. | 163 | Calculates the minimum width. |
164 | */ | 164 | */ |
165 | int TimeLabels::minimumWidth() const | 165 | int TimeLabels::minimumWidth() const |
166 | { | 166 | { |
167 | QFontMetrics fm = fontMetrics(); | 167 | QFontMetrics fm = fontMetrics(); |
168 | 168 | ||
169 | //TODO: calculate this value | 169 | //TODO: calculate this value |
170 | int borderWidth = 4; | 170 | int borderWidth = 4; |
171 | 171 | ||
172 | // the maximum width possible | 172 | // the maximum width possible |
173 | int width = fm.width("88:88x") + borderWidth; | 173 | int width = fm.width("88:88x") + borderWidth; |
174 | 174 | ||
175 | return width; | 175 | return width; |
176 | } | 176 | } |
177 | 177 | ||
178 | /** updates widget's internal state */ | 178 | /** updates widget's internal state */ |
179 | void TimeLabels::updateConfig() | 179 | void TimeLabels::updateConfig() |
180 | { | 180 | { |
181 | // set the font | 181 | // set the font |
182 | // config->setGroup("Fonts"); | 182 | // config->setGroup("Fonts"); |
183 | // QFont font = config->readFontEntry("TimeBar Font"); | 183 | // QFont font = config->readFontEntry("TimeBar Font"); |
184 | setFont(KOPrefs::instance()->mTimeBarFont); | 184 | setFont(KOPrefs::instance()->mTimeBarFont); |
185 | 185 | ||
186 | // update geometry restrictions based on new settings | 186 | // update geometry restrictions based on new settings |
187 | setFixedWidth(minimumWidth()); | 187 | setFixedWidth(minimumWidth()); |
188 | 188 | ||
189 | // update HourSize | 189 | // update HourSize |
190 | mCellHeight = KOPrefs::instance()->mHourSize*4; | 190 | mCellHeight = KOPrefs::instance()->mHourSize*4; |
191 | resizeContents(50,mRows * mCellHeight); | 191 | resizeContents(50,mRows * mCellHeight); |
192 | } | 192 | } |
193 | 193 | ||
194 | /** update time label positions */ | 194 | /** update time label positions */ |
195 | void TimeLabels::positionChanged() | 195 | void TimeLabels::positionChanged() |
196 | { | 196 | { |
197 | int adjustment = mAgenda->contentsY(); | 197 | int adjustment = mAgenda->contentsY(); |
198 | setContentsPos(0, adjustment); | 198 | setContentsPos(0, adjustment); |
199 | } | 199 | } |
200 | 200 | ||
201 | /** */ | 201 | /** */ |
202 | void TimeLabels::setAgenda(KOAgenda* agenda) | 202 | void TimeLabels::setAgenda(KOAgenda* agenda) |
203 | { | 203 | { |
204 | mAgenda = agenda; | 204 | mAgenda = agenda; |
205 | } | 205 | } |
206 | 206 | ||
207 | void TimeLabels::contentsMousePressEvent ( QMouseEvent * e) | 207 | void TimeLabels::contentsMousePressEvent ( QMouseEvent * e) |
208 | { | 208 | { |
209 | mMouseDownY = e->pos().y(); | 209 | mMouseDownY = e->pos().y(); |
210 | mOrgCap = topLevelWidget()->caption(); | 210 | mOrgCap = topLevelWidget()->caption(); |
211 | } | 211 | } |
212 | 212 | ||
213 | void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) | 213 | void TimeLabels::contentsMouseMoveEvent ( QMouseEvent * e ) |
214 | { | 214 | { |
215 | int diff = mMouseDownY - e->pos().y(); | 215 | int diff = mMouseDownY - e->pos().y(); |
216 | if ( diff < 10 && diff > -10 ) | 216 | if ( diff < 10 && diff > -10 ) |
217 | return; | 217 | return; |
218 | int tSize = KOPrefs::instance()->mHourSize + (diff/10) ; | 218 | int tSize = KOPrefs::instance()->mHourSize + (diff/10) ; |
219 | if ( tSize < 4 ) | 219 | if ( tSize < 4 ) |
220 | tSize = 4; | 220 | tSize = 4; |
221 | if ( tSize > 22 ) | 221 | if ( tSize > 22 ) |
222 | tSize = 22; | 222 | tSize = 22; |
223 | tSize = (tSize-2)/2; | 223 | tSize = (tSize-2)/2; |
224 | topLevelWidget()->setCaption(i18n("New Agendasize: %1").arg(tSize)); | 224 | topLevelWidget()->setCaption(i18n("New Agendasize: %1").arg(tSize)); |
225 | 225 | ||
226 | } | 226 | } |
227 | void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e ) | 227 | void TimeLabels::contentsMouseReleaseEvent ( QMouseEvent * e ) |
228 | { | 228 | { |
229 | topLevelWidget()->setCaption( mOrgCap ); | 229 | topLevelWidget()->setCaption( mOrgCap ); |
230 | int diff = mMouseDownY - e->pos().y(); | 230 | int diff = mMouseDownY - e->pos().y(); |
231 | if ( diff < 10 && diff > -10 ) | 231 | if ( diff < 10 && diff > -10 ) |
232 | return; | 232 | return; |
233 | int tSize = KOPrefs::instance()->mHourSize + (diff/10); | 233 | int tSize = KOPrefs::instance()->mHourSize + (diff/10); |
234 | if ( tSize < 4 ) | 234 | if ( tSize < 4 ) |
235 | tSize = 4; | 235 | tSize = 4; |
236 | if ( tSize > 22 ) | 236 | if ( tSize > 22 ) |
237 | tSize = 22; | 237 | tSize = 22; |
238 | tSize = (tSize/2)*2; | 238 | tSize = (tSize/2)*2; |
239 | if ( tSize == KOPrefs::instance()->mHourSize ) | 239 | if ( tSize == KOPrefs::instance()->mHourSize ) |
240 | return; | 240 | return; |
241 | KOPrefs::instance()->mHourSize = tSize; | 241 | KOPrefs::instance()->mHourSize = tSize; |
242 | emit scaleChanged(); | 242 | emit scaleChanged(); |
243 | } | 243 | } |
244 | 244 | ||
245 | /** This is called in response to repaint() */ | 245 | /** This is called in response to repaint() */ |
246 | void TimeLabels::paintEvent(QPaintEvent*) | 246 | void TimeLabels::paintEvent(QPaintEvent*) |
247 | { | 247 | { |
248 | 248 | ||
249 | // kdDebug() << "paintevent..." << endl; | 249 | // kdDebug() << "paintevent..." << endl; |
250 | // this is another hack! | 250 | // this is another hack! |
251 | // QPainter painter(this); | 251 | // QPainter painter(this); |
252 | //QString c | 252 | //QString c |
253 | repaintContents(contentsX(), contentsY(), visibleWidth(), visibleHeight()); | 253 | repaintContents(contentsX(), contentsY(), visibleWidth(), visibleHeight()); |
254 | } | 254 | } |
255 | 255 | ||
256 | //////////////////////////////////////////////////////////////////////////// | 256 | //////////////////////////////////////////////////////////////////////////// |
257 | 257 | ||
258 | EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name) | 258 | EventIndicator::EventIndicator(Location loc,QWidget *parent,const char *name) |
259 | : QFrame(parent,name) | 259 | : QFrame(parent,name) |
260 | { | 260 | { |
261 | mColumns = 1; | 261 | mColumns = 1; |
262 | mTopBox = 0; | 262 | mTopBox = 0; |
263 | mLocation = loc; | 263 | mLocation = loc; |
264 | mTopLayout = 0; | 264 | mTopLayout = 0; |
265 | mPaintWidget = 0; | 265 | mPaintWidget = 0; |
266 | mXOffset = 0; | 266 | mXOffset = 0; |
267 | if (mLocation == Top) mPixmap = SmallIcon("1uparrow"); | 267 | if (mLocation == Top) mPixmap = SmallIcon("1uparrow"); |
268 | else mPixmap = SmallIcon("1downarrow"); | 268 | else mPixmap = SmallIcon("1downarrow"); |
269 | mEnabled.resize(mColumns); | 269 | mEnabled.resize(mColumns); |
270 | if (mLocation == Top) | 270 | if (mLocation == Top) |
271 | setMaximumHeight(0); | 271 | setMaximumHeight(0); |
272 | else | 272 | else |
273 | setMinimumHeight(mPixmap.height()); | 273 | setMinimumHeight(mPixmap.height()); |
274 | } | 274 | } |
275 | 275 | ||
276 | EventIndicator::~EventIndicator() | 276 | EventIndicator::~EventIndicator() |
277 | { | 277 | { |
278 | } | 278 | } |
279 | 279 | ||
280 | void EventIndicator::drawContents(QPainter *p) | 280 | void EventIndicator::drawContents(QPainter *p) |
281 | { | 281 | { |
282 | 282 | ||
283 | // kdDebug() << "======== top: " << contentsRect().top() << " bottom " << // contentsRect().bottom() << " left " << contentsRect().left() << " right " << contentsRect().right() << endl; | 283 | // kdDebug() << "======== top: " << contentsRect().top() << " bottom " << // contentsRect().bottom() << " left " << contentsRect().left() << " right " << contentsRect().right() << endl; |
284 | KDGanttSplitterHandle* han = 0; | 284 | KDGanttSplitterHandle* han = 0; |
285 | if ( mPaintWidget ) | 285 | if ( mPaintWidget ) |
286 | han = mPaintWidget->firstHandle(); | 286 | han = mPaintWidget->firstHandle(); |
287 | if ( ! han ) { | 287 | if ( ! han ) { |
288 | int i; | 288 | int i; |
289 | for(i=0;i<mColumns;++i) { | 289 | for(i=0;i<mColumns;++i) { |
290 | if (mEnabled[i]) { | 290 | if (mEnabled[i]) { |
291 | int cellWidth = contentsRect().right()/mColumns; | 291 | int cellWidth = contentsRect().right()/mColumns; |
292 | int xOffset = KOGlobals::self()->reverseLayout() ? | 292 | int xOffset = KOGlobals::self()->reverseLayout() ? |
293 | (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : | 293 | (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : |
294 | i*cellWidth + cellWidth/2 -mPixmap.width()/2; | 294 | i*cellWidth + cellWidth/2 -mPixmap.width()/2; |
295 | p->drawPixmap(QPoint(xOffset,0),mPixmap); | 295 | p->drawPixmap(QPoint(xOffset,0),mPixmap); |
296 | } | 296 | } |
297 | } | 297 | } |
298 | } else { | 298 | } else { |
299 | han->repaint(); | 299 | han->repaint(); |
300 | //mPaintWidget->setBackgroundColor( red ); | 300 | //mPaintWidget->setBackgroundColor( red ); |
301 | 301 | ||
302 | QPainter pa( han ); | 302 | QPainter pa( han ); |
303 | int i; | 303 | int i; |
304 | bool setColor = false; | 304 | bool setColor = false; |
305 | for(i=0;i<mColumns;++i) { | 305 | for(i=0;i<mColumns;++i) { |
306 | if (mEnabled[i]) { | 306 | if (mEnabled[i]) { |
307 | setColor = true; | 307 | setColor = true; |
308 | 308 | ||
309 | int cellWidth = contentsRect().right()/mColumns; | 309 | int cellWidth = contentsRect().right()/mColumns; |
310 | int xOffset = KOGlobals::self()->reverseLayout() ? | 310 | int xOffset = KOGlobals::self()->reverseLayout() ? |
311 | (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : | 311 | (mColumns - 1 - i)*cellWidth + cellWidth/2 -mPixmap.width()/2 : |
312 | i*cellWidth + cellWidth/2 -mPixmap.width()/2; | 312 | i*cellWidth + cellWidth/2 -mPixmap.width()/2; |
313 | pa.drawPixmap(QPoint(mXOffset + xOffset,0),mPixmap); | 313 | pa.drawPixmap(QPoint(mXOffset + xOffset,0),mPixmap); |
314 | //qDebug("222draw pix %d ",xOffset ); | 314 | //qDebug("222draw pix %d ",xOffset ); |
315 | 315 | ||
316 | } | 316 | } |
317 | 317 | ||
318 | } | 318 | } |
319 | pa.end(); | 319 | pa.end(); |
320 | 320 | ||
321 | } | 321 | } |
322 | } | 322 | } |
323 | 323 | ||
324 | void EventIndicator::setXOffset( int x ) | 324 | void EventIndicator::setXOffset( int x ) |
325 | { | 325 | { |
326 | mXOffset = x; | 326 | mXOffset = x; |
327 | } | 327 | } |
328 | void EventIndicator::setPaintWidget( KDGanttMinimizeSplitter * w ) | 328 | void EventIndicator::setPaintWidget( KDGanttMinimizeSplitter * w ) |
329 | { | 329 | { |
330 | mPaintWidget = w; | 330 | mPaintWidget = w; |
331 | } | 331 | } |
332 | void EventIndicator::changeColumns(int columns) | 332 | void EventIndicator::changeColumns(int columns) |
333 | { | 333 | { |
334 | mColumns = columns; | 334 | mColumns = columns; |
335 | mEnabled.resize(mColumns); | 335 | mEnabled.resize(mColumns); |
336 | 336 | ||
337 | update(); | 337 | update(); |
338 | } | 338 | } |
339 | 339 | ||
340 | void EventIndicator::enableColumn(int column, bool enable) | 340 | void EventIndicator::enableColumn(int column, bool enable) |
341 | { | 341 | { |
342 | mEnabled[column] = enable; | 342 | mEnabled[column] = enable; |
343 | } | 343 | } |
344 | 344 | ||
345 | 345 | ||
346 | //////////////////////////////////////////////////////////////////////////// | 346 | //////////////////////////////////////////////////////////////////////////// |
347 | //////////////////////////////////////////////////////////////////////////// | 347 | //////////////////////////////////////////////////////////////////////////// |
348 | //////////////////////////////////////////////////////////////////////////// | 348 | //////////////////////////////////////////////////////////////////////////// |
349 | 349 | ||
350 | KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : | 350 | KOAgendaView::KOAgendaView(Calendar *cal,QWidget *parent,const char *name) : |
351 | KOEventView (cal,parent,name) | 351 | KOEventView (cal,parent,name) |
352 | { | 352 | { |
353 | mBlockUpdating = true; | 353 | mBlockUpdating = true; |
354 | mStartHour = 8; | 354 | mStartHour = 8; |
355 | mSelectedDates.append(QDate::currentDate()); | 355 | mSelectedDates.append(QDate::currentDate()); |
356 | 356 | ||
357 | mLayoutDayLabels = 0; | 357 | mLayoutDayLabels = 0; |
358 | mDayLabelsFrame = 0; | 358 | mDayLabelsFrame = 0; |
359 | mDayLabels = 0; | 359 | mDayLabels = 0; |
360 | bool isRTL = KOGlobals::self()->reverseLayout(); | 360 | bool isRTL = KOGlobals::self()->reverseLayout(); |
361 | 361 | ||
362 | if ( KOPrefs::instance()->mVerticalScreen ) { | 362 | if ( KOPrefs::instance()->mVerticalScreen ) { |
363 | mExpandedPixmap = SmallIcon( "1downarrow" ); | 363 | mExpandedPixmap = SmallIcon( "1downarrow" ); |
364 | mNotExpandedPixmap = SmallIcon( "1uparrow" ); | 364 | mNotExpandedPixmap = SmallIcon( "1uparrow" ); |
365 | } else { | 365 | } else { |
366 | mExpandedPixmap = SmallIcon( isRTL ? "1leftarrow" : "1rightarrow" ); | 366 | mExpandedPixmap = SmallIcon( isRTL ? "1leftarrow" : "1rightarrow" ); |
367 | mNotExpandedPixmap = SmallIcon( isRTL ? "1rightarrow" : "1leftarrow" ); | 367 | mNotExpandedPixmap = SmallIcon( isRTL ? "1rightarrow" : "1leftarrow" ); |
368 | } | 368 | } |
369 | 369 | ||
370 | QBoxLayout *topLayout = new QVBoxLayout(this); | 370 | QBoxLayout *topLayout = new QVBoxLayout(this); |
371 | 371 | ||
372 | // Create day name labels for agenda columns | 372 | // Create day name labels for agenda columns |
373 | mDayLabelsFrame = new QHBox(this); | 373 | mDayLabelsFrame = new QHBox(this); |
374 | topLayout->addWidget(mDayLabelsFrame); | 374 | topLayout->addWidget(mDayLabelsFrame); |
375 | mDayLabels = new QFrame (mDayLabelsFrame); | 375 | mDayLabels = new QFrame (mDayLabelsFrame); |
376 | mLayoutDayLabels = new QHBoxLayout(mDayLabels); | 376 | mLayoutDayLabels = new QHBoxLayout(mDayLabels); |
377 | // Create agenda splitter | 377 | // Create agenda splitter |
378 | #ifndef KORG_NOSPLITTER | 378 | #ifndef KORG_NOSPLITTER |
379 | mSplitterAgenda = new QSplitter(Vertical,this); | 379 | mSplitterAgenda = new QSplitter(Vertical,this); |
380 | topLayout->addWidget(mSplitterAgenda); | 380 | topLayout->addWidget(mSplitterAgenda); |
381 | mSplitterAgenda->setOpaqueResize(); | 381 | mSplitterAgenda->setOpaqueResize(); |
382 | 382 | ||
383 | mAllDayFrame = new QHBox(mSplitterAgenda); | 383 | mAllDayFrame = new QHBox(mSplitterAgenda); |
384 | 384 | ||
385 | QWidget *agendaFrame = new QWidget(mSplitterAgenda); | 385 | QWidget *agendaFrame = new QWidget(mSplitterAgenda); |
386 | #else | 386 | #else |
387 | #if 0 | 387 | #if 0 |
388 | QWidget *mainBox = new QWidget( this ); | 388 | QWidget *mainBox = new QWidget( this ); |
389 | topLayout->addWidget( mainBox ); | 389 | topLayout->addWidget( mainBox ); |
390 | QBoxLayout *mainLayout = new QVBoxLayout(mainBox); | 390 | QBoxLayout *mainLayout = new QVBoxLayout(mainBox); |
391 | mAllDayFrame = new QHBox(mainBox); | 391 | mAllDayFrame = new QHBox(mainBox); |
392 | mainLayout->addWidget(mAllDayFrame); | 392 | mainLayout->addWidget(mAllDayFrame); |
393 | mainLayout->setStretchFactor( mAllDayFrame, 0 ); | 393 | mainLayout->setStretchFactor( mAllDayFrame, 0 ); |
394 | mAllDayFrame->setFocusPolicy(NoFocus); | 394 | mAllDayFrame->setFocusPolicy(NoFocus); |
395 | QWidget *agendaFrame = new QWidget(mainBox); | 395 | QWidget *agendaFrame = new QWidget(mainBox); |
396 | mainLayout->addWidget(agendaFrame); | 396 | mainLayout->addWidget(agendaFrame); |
397 | mainLayout->setStretchFactor( agendaFrame, 10 ); | 397 | mainLayout->setStretchFactor( agendaFrame, 10 ); |
398 | 398 | ||
399 | agendaFrame->setFocusPolicy(NoFocus); | 399 | agendaFrame->setFocusPolicy(NoFocus); |
400 | #endif | 400 | #endif |
401 | mSplitterAgenda = new KDGanttMinimizeSplitter( Qt::Vertical, this); | 401 | mSplitterAgenda = new KDGanttMinimizeSplitter( Qt::Vertical, this); |
402 | mSplitterAgenda->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); | 402 | mSplitterAgenda->setMinimizeDirection ( KDGanttMinimizeSplitter::Up ); |
403 | topLayout->addWidget( mSplitterAgenda ); | 403 | topLayout->addWidget( mSplitterAgenda ); |
404 | mAllDayFrame = new QHBox(mSplitterAgenda); | 404 | mAllDayFrame = new QHBox(mSplitterAgenda); |
405 | mAllDayFrame->setFocusPolicy(NoFocus); | 405 | mAllDayFrame->setFocusPolicy(NoFocus); |
406 | QWidget *agendaFrame = new QWidget(mSplitterAgenda); | 406 | QWidget *agendaFrame = new QWidget(mSplitterAgenda); |
407 | agendaFrame->setFocusPolicy(NoFocus); | 407 | agendaFrame->setFocusPolicy(NoFocus); |
408 | 408 | ||
409 | #endif | 409 | #endif |
410 | 410 | ||
411 | // Create all-day agenda widget | 411 | // Create all-day agenda widget |
412 | mDummyAllDayLeft = new QVBox( mAllDayFrame ); | 412 | mDummyAllDayLeft = new QVBox( mAllDayFrame ); |
413 | 413 | ||
414 | mExpandButton = new QPushButton(mDummyAllDayLeft); | 414 | mExpandButton = new QPushButton(mDummyAllDayLeft); |
415 | mExpandButton->setPixmap( mNotExpandedPixmap ); | 415 | mExpandButton->setPixmap( mNotExpandedPixmap ); |
416 | int widebut = mExpandButton->sizeHint().width(); | 416 | int widebut = mExpandButton->sizeHint().width(); |
417 | if ( QApplication::desktop()->width() < 480 ) | 417 | if ( QApplication::desktop()->width() < 480 ) |
418 | widebut = widebut*2; | 418 | widebut = widebut*2; |
419 | else | 419 | else |
420 | widebut = (widebut*3) / 2; | 420 | widebut = (widebut*3) / 2; |
421 | //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, | 421 | //mExpandButton->setSizePolicy( QSizePolicy( QSizePolicy::Fixed, |
422 | // QSizePolicy::Fixed ) ); | 422 | // QSizePolicy::Fixed ) ); |
423 | mExpandButton->setFixedSize( widebut, widebut); | 423 | mExpandButton->setFixedSize( widebut, widebut); |
424 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); | 424 | connect( mExpandButton, SIGNAL( clicked() ), SIGNAL( toggleExpand() ) ); |
425 | mExpandButton->setFocusPolicy(NoFocus); | 425 | mExpandButton->setFocusPolicy(NoFocus); |
426 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); | 426 | mAllDayAgenda = new KOAgenda(1,mAllDayFrame); |
427 | mAllDayAgenda->setFocusPolicy(NoFocus); | 427 | mAllDayAgenda->setFocusPolicy(NoFocus); |
428 | QVBox *dummyAllDayRight = new QVBox(mAllDayFrame); | 428 | QLabel *dummyAllDayRight = new QLabel (mAllDayFrame); |
429 | |||
430 | mDummyAllDayRightL = new QLabel ( dummyAllDayRight ); | ||
431 | QPushButton *dummyAllDayRightB = new QPushButton(dummyAllDayRight); | ||
432 | new QLabel ( dummyAllDayRight ); | ||
433 | mDummyAllDayRightL->setSizePolicy( QSizePolicy( QSizePolicy::Minimum,QSizePolicy::Fixed ) ); | ||
434 | dummyAllDayRightB->setFlat( true ); | ||
435 | dummyAllDayRightB->setFocusPolicy(NoFocus); | ||
436 | dummyAllDayRightB->setFixedHeight( (dummyAllDayRightB->sizeHint().height()/4)*3 ); | ||
437 | |||
438 | QPopupMenu * wpo = new QPopupMenu (this); | ||
439 | QPopupMenu * all = new QPopupMenu (this); | ||
440 | //wpo->insertItem( i18n("W#"), 0 ); | ||
441 | int first = 1; | ||
442 | int i; | ||
443 | for ( i = 1; i < 50; ++i ) { | ||
444 | if ( !(i%10) ) { | ||
445 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
446 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) ); | ||
447 | first = i; | ||
448 | wpo = new QPopupMenu (this); | ||
449 | } | ||
450 | wpo->insertItem( QString::number(i), i ); | ||
451 | } | ||
452 | for ( i = 50; i < 53; ++i ) { | ||
453 | wpo->insertItem( QString::number(i), i); | ||
454 | } | ||
455 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
456 | dummyAllDayRightB->setPopup( all ); | ||
457 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeekNum ( int ) ) ); | ||
458 | 429 | ||
459 | // Create event context menu for all day agenda | 430 | // Create event context menu for all day agenda |
460 | mAllDayAgendaPopup = eventPopup(); | 431 | mAllDayAgendaPopup = eventPopup(); |
461 | connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), | 432 | connect(mAllDayAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), |
462 | mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); | 433 | mAllDayAgendaPopup,SLOT(showIncidencePopup(Incidence *))); |
463 | 434 | ||
464 | // Create agenda frame | 435 | // Create agenda frame |
465 | QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3); | 436 | QGridLayout *agendaLayout = new QGridLayout(agendaFrame,3,3); |
466 | // QHBox *agendaFrame = new QHBox(splitterAgenda); | 437 | // QHBox *agendaFrame = new QHBox(splitterAgenda); |
467 | 438 | ||
468 | // create event indicator bars | 439 | // create event indicator bars |
469 | mEventIndicatorTop = new EventIndicator(EventIndicator::Top,agendaFrame); | 440 | mEventIndicatorTop = new EventIndicator(EventIndicator::Top,agendaFrame); |
470 | agendaLayout->addWidget(mEventIndicatorTop,0,1); | 441 | agendaLayout->addWidget(mEventIndicatorTop,0,1); |
471 | mEventIndicatorTop->setPaintWidget( mSplitterAgenda ); | 442 | mEventIndicatorTop->setPaintWidget( mSplitterAgenda ); |
472 | mEventIndicatorBottom = new EventIndicator(EventIndicator::Bottom, | 443 | mEventIndicatorBottom = new EventIndicator(EventIndicator::Bottom, |
473 | agendaFrame); | 444 | agendaFrame); |
474 | agendaLayout->addWidget(mEventIndicatorBottom,2,1); | 445 | agendaLayout->addWidget(mEventIndicatorBottom,2,1); |
475 | QWidget *dummyAgendaRight = new QWidget(agendaFrame); | 446 | QWidget *dummyAgendaRight = new QWidget(agendaFrame); |
476 | agendaLayout->addWidget(dummyAgendaRight,0,2); | 447 | agendaLayout->addWidget(dummyAgendaRight,0,2); |
477 | 448 | ||
478 | // Create time labels | 449 | // Create time labels |
479 | mTimeLabels = new TimeLabels(24,agendaFrame); | 450 | mTimeLabels = new TimeLabels(24,agendaFrame); |
480 | agendaLayout->addWidget(mTimeLabels,1,0); | 451 | agendaLayout->addWidget(mTimeLabels,1,0); |
481 | connect(mTimeLabels,SIGNAL( scaleChanged()), | 452 | connect(mTimeLabels,SIGNAL( scaleChanged()), |
482 | this,SLOT(updateConfig())); | 453 | this,SLOT(updateConfig())); |
483 | 454 | ||
484 | // Create agenda | 455 | // Create agenda |
485 | mAgenda = new KOAgenda(1,96,KOPrefs::instance()->mHourSize,agendaFrame); | 456 | mAgenda = new KOAgenda(1,96,KOPrefs::instance()->mHourSize,agendaFrame); |
486 | agendaLayout->addMultiCellWidget(mAgenda,1,1,1,2); | 457 | agendaLayout->addMultiCellWidget(mAgenda,1,1,1,2); |
487 | agendaLayout->setColStretch(1,1); | 458 | agendaLayout->setColStretch(1,1); |
488 | mAgenda->setFocusPolicy(NoFocus); | 459 | mAgenda->setFocusPolicy(NoFocus); |
489 | // Create event context menu for agenda | 460 | // Create event context menu for agenda |
490 | mAgendaPopup = eventPopup(); | 461 | mAgendaPopup = eventPopup(); |
491 | 462 | ||
492 | mAgendaPopup->addAdditionalItem(QIconSet(SmallIcon("bell")), | 463 | mAgendaPopup->addAdditionalItem(QIconSet(SmallIcon("bell")), |
493 | i18n("Toggle Alarm"),mAgenda, | 464 | i18n("Toggle Alarm"),mAgenda, |
494 | SLOT(popupAlarm()),true); | 465 | SLOT(popupAlarm()),true); |
495 | 466 | ||
496 | 467 | ||
497 | connect(mAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), | 468 | connect(mAgenda,SIGNAL(showIncidencePopupSignal(Incidence *)), |
498 | mAgendaPopup,SLOT(showIncidencePopup(Incidence *))); | 469 | mAgendaPopup,SLOT(showIncidencePopup(Incidence *))); |
499 | 470 | ||
500 | // make connections between dependent widgets | 471 | // make connections between dependent widgets |
501 | mTimeLabels->setAgenda(mAgenda); | 472 | mTimeLabels->setAgenda(mAgenda); |
502 | 473 | ||
503 | // Update widgets to reflect user preferences | 474 | // Update widgets to reflect user preferences |
504 | // updateConfig(); | 475 | // updateConfig(); |
505 | 476 | ||
506 | // createDayLabels(); | 477 | // createDayLabels(); |
507 | 478 | ||
508 | // these blank widgets make the All Day Event box line up with the agenda | 479 | // these blank widgets make the All Day Event box line up with the agenda |
509 | dummyAllDayRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); | 480 | dummyAllDayRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); |
510 | dummyAgendaRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); | 481 | dummyAgendaRight->setFixedWidth(mAgenda->verticalScrollBar()->width()); |
511 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); | 482 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); |
512 | 483 | ||
513 | // Scrolling | 484 | // Scrolling |
514 | connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)), | 485 | connect(mAgenda->verticalScrollBar(),SIGNAL(valueChanged(int)), |
515 | mTimeLabels, SLOT(positionChanged())); | 486 | mTimeLabels, SLOT(positionChanged())); |
516 | connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), | 487 | connect(mTimeLabels->verticalScrollBar(),SIGNAL(valueChanged(int)), |
517 | SLOT(setContentsPos(int))); | 488 | SLOT(setContentsPos(int))); |
518 | 489 | ||
519 | connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); | 490 | connect(mAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); |
520 | connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); | 491 | connect(mAllDayAgenda,SIGNAL(showDateView( int, QDate )),SIGNAL(showDateView( int, QDate ))); |
521 | 492 | ||
522 | // Create/Show/Edit/Delete Event | 493 | // Create/Show/Edit/Delete Event |
523 | connect(mAgenda,SIGNAL(newEventSignal(int,int)), | 494 | connect(mAgenda,SIGNAL(newEventSignal(int,int)), |
524 | SLOT(newEvent(int,int))); | 495 | SLOT(newEvent(int,int))); |
525 | connect(mAgenda,SIGNAL(newTodoSignal(int,int)), | 496 | connect(mAgenda,SIGNAL(newTodoSignal(int,int)), |
526 | SLOT(newTodo(int,int))); | 497 | SLOT(newTodo(int,int))); |
527 | connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)), | 498 | connect(mAgenda,SIGNAL(newEventSignal(int,int,int,int)), |
528 | SLOT(newEvent(int,int,int,int))); | 499 | SLOT(newEvent(int,int,int,int))); |
529 | connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int)), | 500 | connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int)), |
530 | SLOT(newEventAllDay(int,int))); | 501 | SLOT(newEventAllDay(int,int))); |
531 | connect(mAllDayAgenda,SIGNAL(newTodoSignal(int,int)), | 502 | connect(mAllDayAgenda,SIGNAL(newTodoSignal(int,int)), |
532 | SLOT(newTodoAllDay(int,int))); | 503 | SLOT(newTodoAllDay(int,int))); |
533 | connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int,int,int)), | 504 | connect(mAllDayAgenda,SIGNAL(newEventSignal(int,int,int,int)), |
534 | SLOT(newEventAllDay(int,int))); | 505 | SLOT(newEventAllDay(int,int))); |
535 | connect(mAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), | 506 | connect(mAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), |
536 | SLOT(newTimeSpanSelected(int,int,int,int))); | 507 | SLOT(newTimeSpanSelected(int,int,int,int))); |
537 | connect(mAllDayAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), | 508 | connect(mAllDayAgenda,SIGNAL(newTimeSpanSignal(int,int,int,int)), |
538 | SLOT(newTimeSpanSelectedAllDay(int,int,int,int))); | 509 | SLOT(newTimeSpanSelectedAllDay(int,int,int,int))); |
539 | connect(mAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); | 510 | connect(mAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); |
540 | connect(mAllDayAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); | 511 | connect(mAllDayAgenda,SIGNAL(newStartSelectSignal()),SLOT(updateView())); |
541 | 512 | ||
542 | connect(mAgenda,SIGNAL(editIncidenceSignal(Incidence *)), | 513 | connect(mAgenda,SIGNAL(editIncidenceSignal(Incidence *)), |
543 | SIGNAL(editIncidenceSignal(Incidence *))); | 514 | SIGNAL(editIncidenceSignal(Incidence *))); |
544 | connect(mAllDayAgenda,SIGNAL(editIncidenceSignal(Incidence *)), | 515 | connect(mAllDayAgenda,SIGNAL(editIncidenceSignal(Incidence *)), |
545 | SIGNAL(editIncidenceSignal(Incidence *))); | 516 | SIGNAL(editIncidenceSignal(Incidence *))); |
546 | connect(mAgenda,SIGNAL(showIncidenceSignal(Incidence *)), | 517 | connect(mAgenda,SIGNAL(showIncidenceSignal(Incidence *)), |
547 | SIGNAL(showIncidenceSignal(Incidence *))); | 518 | SIGNAL(showIncidenceSignal(Incidence *))); |
548 | connect(mAllDayAgenda,SIGNAL(showIncidenceSignal(Incidence *)), | 519 | connect(mAllDayAgenda,SIGNAL(showIncidenceSignal(Incidence *)), |
549 | SIGNAL(showIncidenceSignal(Incidence *))); | 520 | SIGNAL(showIncidenceSignal(Incidence *))); |
550 | connect(mAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), | 521 | connect(mAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), |
551 | SIGNAL(deleteIncidenceSignal(Incidence *))); | 522 | SIGNAL(deleteIncidenceSignal(Incidence *))); |
552 | connect(mAllDayAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), | 523 | connect(mAllDayAgenda,SIGNAL(deleteIncidenceSignal(Incidence *)), |
553 | SIGNAL(deleteIncidenceSignal(Incidence *))); | 524 | SIGNAL(deleteIncidenceSignal(Incidence *))); |
554 | 525 | ||
555 | connect(mAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), | 526 | connect(mAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), |
556 | SLOT(updateEventDates(KOAgendaItem *, int ))); | 527 | SLOT(updateEventDates(KOAgendaItem *, int ))); |
557 | connect(mAllDayAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), | 528 | connect(mAllDayAgenda,SIGNAL(itemModified(KOAgendaItem *, int )), |
558 | SLOT(updateEventDates(KOAgendaItem *, int))); | 529 | SLOT(updateEventDates(KOAgendaItem *, int))); |
559 | 530 | ||
560 | // event indicator update | 531 | // event indicator update |
561 | connect(mAgenda,SIGNAL(lowerYChanged(int)), | 532 | connect(mAgenda,SIGNAL(lowerYChanged(int)), |
562 | SLOT(updateEventIndicatorTop(int))); | 533 | SLOT(updateEventIndicatorTop(int))); |
563 | connect(mAgenda,SIGNAL(upperYChanged(int)), | 534 | connect(mAgenda,SIGNAL(upperYChanged(int)), |
564 | SLOT(updateEventIndicatorBottom(int))); | 535 | SLOT(updateEventIndicatorBottom(int))); |
565 | // drag signals | 536 | // drag signals |
566 | /* | 537 | /* |
567 | connect(mAgenda,SIGNAL(startDragSignal(Event *)), | 538 | connect(mAgenda,SIGNAL(startDragSignal(Event *)), |
568 | SLOT(startDrag(Event *))); | 539 | SLOT(startDrag(Event *))); |
569 | connect(mAllDayAgenda,SIGNAL(startDragSignal(Event *)), | 540 | connect(mAllDayAgenda,SIGNAL(startDragSignal(Event *)), |
570 | SLOT(startDrag(Event *))); | 541 | SLOT(startDrag(Event *))); |
571 | */ | 542 | */ |
572 | // synchronize selections | 543 | // synchronize selections |
573 | connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), | 544 | connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), |
574 | mAllDayAgenda, SLOT( deselectItem() ) ); | 545 | mAllDayAgenda, SLOT( deselectItem() ) ); |
575 | connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), | 546 | connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), |
576 | mAgenda, SLOT( deselectItem() ) ); | 547 | mAgenda, SLOT( deselectItem() ) ); |
577 | connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), | 548 | connect( mAgenda, SIGNAL( incidenceSelected( Incidence * ) ), |
578 | SIGNAL( incidenceSelected( Incidence * ) ) ); | 549 | SIGNAL( incidenceSelected( Incidence * ) ) ); |
579 | connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), | 550 | connect( mAllDayAgenda, SIGNAL( incidenceSelected( Incidence * ) ), |
580 | SIGNAL( incidenceSelected( Incidence * ) ) ); | 551 | SIGNAL( incidenceSelected( Incidence * ) ) ); |
581 | connect( mAgenda, SIGNAL( resizedSignal() ), | 552 | connect( mAgenda, SIGNAL( resizedSignal() ), |
582 | SLOT( updateConfig( ) ) ); | 553 | SLOT( updateConfig( ) ) ); |
583 | connect( mAgenda, SIGNAL( addToCalSignal(Incidence *, Incidence *) ), | 554 | connect( mAgenda, SIGNAL( addToCalSignal(Incidence *, Incidence *) ), |
584 | SLOT( addToCalSlot(Incidence *, Incidence * ) ) ); | 555 | SLOT( addToCalSlot(Incidence *, Incidence * ) ) ); |
585 | connect( mAllDayAgenda, SIGNAL( addToCalSignal(Incidence * ,Incidence *) ), | 556 | connect( mAllDayAgenda, SIGNAL( addToCalSignal(Incidence * ,Incidence *) ), |
586 | SLOT( addToCalSlot(Incidence * , Incidence *) ) ); | 557 | SLOT( addToCalSlot(Incidence * , Incidence *) ) ); |
587 | // connect( mAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); | 558 | // connect( mAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); |
588 | //connect( mAllDayAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); | 559 | //connect( mAllDayAgenda, SIGNAL( cloneIncidenceSignal(Incidence *) ), SIGNAL( cloneIncidenceSignal(Incidence *) ) ); |
589 | 560 | ||
590 | QFont dlf = KOPrefs::instance()->mTimeLabelsFont; | 561 | |
591 | QFontMetrics fm ( dlf ); | ||
592 | QString dayTest = "30"; | ||
593 | int wid = fm.width( dayTest ); | ||
594 | int maxWid = dummyAllDayRight->width()-2; | ||
595 | int fontPoint = dlf.pointSize(); | ||
596 | while ( wid > maxWid ) { | ||
597 | --fontPoint; | ||
598 | dlf.setPointSize( fontPoint ); | ||
599 | QFontMetrics f( dlf ); | ||
600 | wid = f.width( dayTest ); | ||
601 | } | ||
602 | mDummyAllDayRightL->setFont( dlf ); | ||
603 | mDummyAllDayRightL->setAlignment( AlignHCenter ); | ||
604 | } | 562 | } |
605 | 563 | ||
606 | void KOAgendaView::toggleAllDay() | 564 | void KOAgendaView::toggleAllDay() |
607 | { | 565 | { |
608 | if ( mSplitterAgenda->firstHandle() ) | 566 | if ( mSplitterAgenda->firstHandle() ) |
609 | mSplitterAgenda->firstHandle()->toggle(); | 567 | mSplitterAgenda->firstHandle()->toggle(); |
610 | } | 568 | } |
611 | void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) | 569 | void KOAgendaView::addToCalSlot(Incidence * inc, Incidence * incOld ) |
612 | { | 570 | { |
613 | calendar()->addIncidence( inc ); | 571 | calendar()->addIncidence( inc ); |
614 | 572 | ||
615 | if ( incOld ) { | 573 | if ( incOld ) { |
616 | if ( incOld->type() == "Todo" ) | 574 | if ( incOld->type() == "Todo" ) |
617 | emit todoMoved((Todo*)incOld, KOGlobals::EVENTEDITED ); | 575 | emit todoMoved((Todo*)incOld, KOGlobals::EVENTEDITED ); |
618 | else | 576 | else |
619 | emit incidenceChanged(incOld, KOGlobals::EVENTEDITED); | 577 | emit incidenceChanged(incOld, KOGlobals::EVENTEDITED); |
620 | } | 578 | } |
621 | 579 | ||
622 | } | 580 | } |
623 | 581 | ||
624 | KOAgendaView::~KOAgendaView() | 582 | KOAgendaView::~KOAgendaView() |
625 | { | 583 | { |
626 | delete mAgendaPopup; | 584 | delete mAgendaPopup; |
627 | delete mAllDayAgendaPopup; | 585 | delete mAllDayAgendaPopup; |
628 | delete KOAgendaItem::paintPix(); | 586 | delete KOAgendaItem::paintPix(); |
629 | delete KOAgendaItem::paintPixSel(); | 587 | delete KOAgendaItem::paintPixSel(); |
630 | } | 588 | } |
631 | void KOAgendaView::resizeEvent( QResizeEvent* e ) | 589 | void KOAgendaView::resizeEvent( QResizeEvent* e ) |
632 | { | 590 | { |
633 | //qDebug("KOAgendaView::resizeEvent( QResizeEvent* e ) %d ", e->size().width()); | 591 | //qDebug("KOAgendaView::resizeEvent( QResizeEvent* e ) %d ", e->size().width()); |
634 | bool uc = false; | 592 | bool uc = false; |
635 | int ow = e->oldSize().width(); | 593 | int ow = e->oldSize().width(); |
636 | int oh = e->oldSize().height(); | 594 | int oh = e->oldSize().height(); |
637 | int w = e->size().width(); | 595 | int w = e->size().width(); |
638 | int h = e->size().height(); | 596 | int h = e->size().height(); |
639 | if ( (ow > oh && w< h ) || (ow < oh && w > h ) ) { | 597 | if ( (ow > oh && w< h ) || (ow < oh && w > h ) ) { |
640 | if ( ! mBlockUpdating && !globalFlagBlockStartup && !globalFlagBlockAgenda ) | 598 | if ( ! mBlockUpdating && !globalFlagBlockStartup && !globalFlagBlockAgenda ) |
641 | uc = true; | 599 | uc = true; |
642 | //qDebug("view changed %d %d %d %d ", ow, oh , w , h); | 600 | //qDebug("view changed %d %d %d %d ", ow, oh , w , h); |
643 | } | 601 | } |
644 | mUpcomingWidth = e->size().width() ; | 602 | mUpcomingWidth = e->size().width() ; |
645 | if ( mBlockUpdating || uc ) { | 603 | if ( mBlockUpdating || uc ) { |
646 | mBlockUpdating = false; | 604 | mBlockUpdating = false; |
647 | //mAgenda->setMinimumSize(800 , 600 ); | 605 | //mAgenda->setMinimumSize(800 , 600 ); |
648 | //qDebug("mAgenda->resize+++++++++++++++ "); | 606 | //qDebug("mAgenda->resize+++++++++++++++ "); |
649 | updateConfig(); | 607 | updateConfig(); |
650 | //qDebug("KOAgendaView::Updating now possible "); | 608 | //qDebug("KOAgendaView::Updating now possible "); |
651 | } else | 609 | } else |
652 | createDayLabels(); | 610 | createDayLabels(); |
653 | //qDebug("resizeEvent end "); | 611 | //qDebug("resizeEvent end "); |
654 | 612 | ||
655 | } | 613 | } |
656 | void KOAgendaView::slotDaylabelClicked( int num ) | 614 | void KOAgendaView::slotDaylabelClicked( int num ) |
657 | { | 615 | { |
658 | 616 | ||
659 | QDate firstDate = mSelectedDates.first(); | 617 | QDate firstDate = mSelectedDates.first(); |
660 | if ( num == -1 ) | 618 | if ( num == -1 ) |
661 | emit showDateView( 6, firstDate ); | 619 | emit showDateView( 6, firstDate ); |
662 | else if (num >= 0 ) { | 620 | else if (num >= 0 ) { |
663 | if ( mSelectedDates.count() == 1) | 621 | if ( mSelectedDates.count() == 1) |
664 | emit showDateView( 9, firstDate.addDays( num ) ); | 622 | emit showDateView( 9, firstDate.addDays( num ) ); |
665 | else | 623 | else |
666 | emit showDateView( 3, firstDate.addDays( num ) ); | 624 | emit showDateView( 3, firstDate.addDays( num ) ); |
667 | } | 625 | } |
668 | else | 626 | else |
669 | showDateView( 10, firstDate.addDays(1) ); | 627 | showDateView( 10, firstDate.addDays(1) ); |
670 | } | 628 | } |
671 | 629 | ||
672 | KOAgendaButton* KOAgendaView::getNewDaylabel() | 630 | KOAgendaButton* KOAgendaView::getNewDaylabel() |
673 | { | 631 | { |
674 | 632 | ||
675 | KOAgendaButton * dayLabel = new KOAgendaButton(mDayLabels); | 633 | KOAgendaButton * dayLabel = new KOAgendaButton(mDayLabels); |
676 | connect( dayLabel, SIGNAL( numClicked(int) ), this, SLOT ( slotDaylabelClicked(int) ) ); | 634 | connect( dayLabel, SIGNAL( numClicked(int) ), this, SLOT ( slotDaylabelClicked(int) ) ); |
677 | mDayLabelsList.append( dayLabel ); | 635 | mDayLabelsList.append( dayLabel ); |
678 | mLayoutDayLabels->addWidget(dayLabel); | 636 | mLayoutDayLabels->addWidget(dayLabel); |
679 | return dayLabel ; | 637 | return dayLabel ; |
680 | } | 638 | } |
681 | 639 | ||
682 | void KOAgendaView::createDayLabels() | 640 | void KOAgendaView::createDayLabels() |
683 | { | 641 | { |
684 | 642 | ||
685 | if ( mBlockUpdating || globalFlagBlockLabel == 1) { | 643 | if ( mBlockUpdating || globalFlagBlockLabel == 1) { |
686 | // qDebug(" KOAgendaView::createDayLabels() blocked "); | 644 | // qDebug(" KOAgendaView::createDayLabels() blocked "); |
687 | return; | 645 | return; |
688 | 646 | ||
689 | } | 647 | } |
690 | int newHight; | 648 | int newHight; |
691 | 649 | ||
692 | // ### Before deleting and recreating we could check if mSelectedDates changed... | 650 | // ### Before deleting and recreating we could check if mSelectedDates changed... |
693 | // It would remove some flickering and gain speed (since this is called by | 651 | // It would remove some flickering and gain speed (since this is called by |
694 | // each updateView() call) | 652 | // each updateView() call) |
695 | 653 | ||
696 | int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - 2; | 654 | int maxWid = mUpcomingWidth - mTimeLabels->width()- mAgenda->verticalScrollBar()->width() - 2; |
697 | mDayLabelsFrame->setMaximumWidth( mUpcomingWidth ); | 655 | mDayLabelsFrame->setMaximumWidth( mUpcomingWidth ); |
698 | if ( maxWid < 0 ) | 656 | if ( maxWid < 0 ) |
699 | maxWid = 20; | 657 | maxWid = 20; |
700 | 658 | ||
701 | QFont dlf = KOPrefs::instance()->mTimeLabelsFont; | 659 | QFont dlf = KOPrefs::instance()->mTimeLabelsFont; |
702 | QFontMetrics fm ( dlf ); | 660 | QFontMetrics fm ( dlf ); |
703 | int selCount = mSelectedDates.count(); | 661 | int selCount = mSelectedDates.count(); |
704 | QString dayTest = "Mon 20"; | 662 | QString dayTest = "Mon 20"; |
705 | //QString dayTest = "Mon 20"; | 663 | //QString dayTest = "Mon 20"; |
706 | int wid = fm.width( dayTest ); | 664 | int wid = fm.width( dayTest ); |
707 | //maxWid -= ( selCount * 3 ); //working for QLabels | 665 | //maxWid -= ( selCount * 3 ); //working for QLabels |
708 | maxWid -= ( selCount * 3 ); //working for QPushButton | 666 | maxWid -= ( selCount * 3 ); //working for QPushButton |
709 | if ( maxWid < 0 ) | 667 | if ( maxWid < 0 ) |
710 | maxWid = 20; | 668 | maxWid = 20; |
711 | int needWid = wid * selCount; | 669 | int needWid = wid * selCount; |
712 | //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid ); | 670 | //qDebug("++++++++Needed : %d MaxWidth: %d", needWid, maxWid ); |
713 | //if ( needWid > maxWid ) | 671 | //if ( needWid > maxWid ) |
714 | // qDebug("DAYLABELS TOOOOOOO BIG "); | 672 | // qDebug("DAYLABELS TOOOOOOO BIG "); |
715 | while ( needWid > maxWid ) { | 673 | while ( needWid > maxWid ) { |
716 | dayTest = dayTest.left( dayTest.length() - 1 ); | 674 | dayTest = dayTest.left( dayTest.length() - 1 ); |
717 | wid = fm.width( dayTest ); | 675 | wid = fm.width( dayTest ); |
718 | needWid = wid * selCount; | 676 | needWid = wid * selCount; |
719 | } | 677 | } |
720 | int maxLen = dayTest.length(); | 678 | int maxLen = dayTest.length(); |
721 | int fontPoint = dlf.pointSize(); | 679 | int fontPoint = dlf.pointSize(); |
722 | if ( maxLen < 2 ) { | 680 | if ( maxLen < 2 ) { |
723 | int fontPoint = dlf.pointSize(); | 681 | int fontPoint = dlf.pointSize(); |
724 | while ( fontPoint > 4 ) { | 682 | while ( fontPoint > 4 ) { |
725 | --fontPoint; | 683 | --fontPoint; |
726 | dlf.setPointSize( fontPoint ); | 684 | dlf.setPointSize( fontPoint ); |
727 | QFontMetrics f( dlf ); | 685 | QFontMetrics f( dlf ); |
728 | wid = f.width( "30" ); | 686 | wid = f.width( "30" ); |
729 | needWid = wid * selCount; | 687 | needWid = wid * selCount; |
730 | if ( needWid < maxWid ) | 688 | if ( needWid < maxWid ) |
731 | break; | 689 | break; |
732 | } | 690 | } |
733 | maxLen = 2; | 691 | maxLen = 2; |
734 | } | 692 | } |
735 | //qDebug("Max len %d ", dayTest.length() ); | 693 | //qDebug("Max len %d ", dayTest.length() ); |
736 | 694 | ||
737 | QFontMetrics tempF( dlf ); | 695 | QFontMetrics tempF( dlf ); |
738 | newHight = tempF.height(); | 696 | newHight = tempF.height(); |
739 | mDayLabels->setFont( dlf ); | 697 | mDayLabels->setFont( dlf ); |
740 | // mLayoutDayLabels = new QHBoxLayout(mDayLabels);; | 698 | // mLayoutDayLabels = new QHBoxLayout(mDayLabels);; |
741 | // mLayoutDayLabels->addSpacing(mTimeLabels->width()); | 699 | // mLayoutDayLabels->addSpacing(mTimeLabels->width()); |
742 | //mLayoutDayLabels->addSpacing( 2 ); | 700 | //mLayoutDayLabels->addSpacing( 2 ); |
743 | // QFont lFont = dlf; | 701 | // QFont lFont = dlf; |
744 | bool appendLabels = false; | 702 | bool appendLabels = false; |
745 | KOAgendaButton *dayLabel; | 703 | KOAgendaButton *dayLabel; |
746 | dayLabel = mDayLabelsList.first(); | 704 | dayLabel = mDayLabelsList.first(); |
747 | if ( !dayLabel ) { | 705 | if ( !dayLabel ) { |
748 | appendLabels = true; | 706 | appendLabels = true; |
749 | dayLabel = getNewDaylabel(); | 707 | dayLabel = getNewDaylabel(); |
750 | } | 708 | } |
751 | dayLabel->setFixedWidth( mTimeLabels->width()+2 ); | 709 | dayLabel->setFixedWidth( mTimeLabels->width()+2 ); |
752 | dayLabel->setFont( dlf ); | 710 | dayLabel->setFont( dlf ); |
753 | dayLabel->setNum( -1 ); | 711 | dayLabel->setNum( -1 ); |
754 | //dayLabel->setAlignment(QLabel::AlignHCenter); | 712 | //dayLabel->setAlignment(QLabel::AlignHCenter); |
755 | dayLabel->setText( KOGlobals::self()->calendarSystem()->monthName( mSelectedDates.first(), true ) ); | 713 | dayLabel->setText( KOGlobals::self()->calendarSystem()->monthName( mSelectedDates.first(), true ) ); |
756 | dayLabel->show(); | 714 | dayLabel->show(); |
757 | DateList::ConstIterator dit; | 715 | DateList::ConstIterator dit; |
758 | bool oneday = (mSelectedDates.first() == mSelectedDates.last() ); | 716 | bool oneday = (mSelectedDates.first() == mSelectedDates.last() ); |
759 | int counter = -1; | 717 | int counter = -1; |
760 | for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { | 718 | for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { |
761 | ++counter; | 719 | ++counter; |
762 | QDate date = *dit; | 720 | QDate date = *dit; |
763 | // QBoxLayout *dayLayout = new QVBoxLayout(mLayoutDayLabels); | 721 | // QBoxLayout *dayLayout = new QVBoxLayout(mLayoutDayLabels); |
764 | if ( ! appendLabels ) { | 722 | if ( ! appendLabels ) { |
765 | dayLabel = mDayLabelsList.next(); | 723 | dayLabel = mDayLabelsList.next(); |
766 | if ( !dayLabel ) | 724 | if ( !dayLabel ) |
767 | appendLabels = true; | 725 | appendLabels = true; |
768 | } | 726 | } |
769 | if ( appendLabels ) { | 727 | if ( appendLabels ) { |
770 | dayLabel = getNewDaylabel(); | 728 | dayLabel = getNewDaylabel(); |
771 | } | 729 | } |
772 | dayLabel->setMinimumWidth( 1 ); | 730 | dayLabel->setMinimumWidth( 1 ); |
773 | dayLabel->setMaximumWidth( 1024 ); | 731 | dayLabel->setMaximumWidth( 1024 ); |
774 | dayLabel->setFont( dlf ); | 732 | dayLabel->setFont( dlf ); |
775 | dayLabel->show(); | 733 | dayLabel->show(); |
776 | dayLabel->setNum( counter ); | 734 | dayLabel->setNum( counter ); |
777 | QString str; | 735 | QString str; |
778 | int dW = KOGlobals::self()->calendarSystem()->dayOfWeek(date); | 736 | int dW = KOGlobals::self()->calendarSystem()->dayOfWeek(date); |
779 | QString dayName = KOGlobals::self()->calendarSystem()->weekDayName( dW, true ); | 737 | QString dayName = KOGlobals::self()->calendarSystem()->weekDayName( dW, true ); |
780 | switch ( maxLen ) { | 738 | switch ( maxLen ) { |
781 | case 2: | 739 | case 2: |
782 | str = QString::number( date.day() ); | 740 | str = QString::number( date.day() ); |
783 | break; | 741 | break; |
784 | 742 | ||
785 | case 3: | 743 | case 3: |
786 | str = dayName.left( 1 ) +QString::number( date.day()); | 744 | str = dayName.left( 1 ) +QString::number( date.day()); |
787 | 745 | ||
788 | break; | 746 | break; |
789 | case 4: | 747 | case 4: |
790 | str = dayName.left( 1 ) + " " +QString::number( date.day()); | 748 | str = dayName.left( 1 ) + " " +QString::number( date.day()); |
791 | 749 | ||
792 | break; | 750 | break; |
793 | case 5: | 751 | case 5: |
794 | str = dayName.left( 2 ) + " " +QString::number( date.day()); | 752 | str = dayName.left( 2 ) + " " +QString::number( date.day()); |
795 | 753 | ||
796 | break; | 754 | break; |
797 | case 6: | 755 | case 6: |
798 | str = dayName.left( 3 ) + " " +QString::number( date.day()); | 756 | str = dayName.left( 3 ) + " " +QString::number( date.day()); |
799 | break; | 757 | break; |
800 | 758 | ||
801 | default: | 759 | default: |
802 | break; | 760 | break; |
803 | } | 761 | } |
804 | if ( oneday ) { | 762 | if ( oneday ) { |
805 | QString addString; | 763 | QString addString; |
806 | if ( mSelectedDates.first() == QDateTime::currentDateTime().date() ) | 764 | if ( mSelectedDates.first() == QDateTime::currentDateTime().date() ) |
807 | addString = i18n("Today"); | 765 | addString = i18n("Today"); |
808 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) ) | 766 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(1) ) |
809 | addString = i18n("Tomorrow"); | 767 | addString = i18n("Tomorrow"); |
810 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) ) | 768 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-1) ) |
811 | addString = i18n("Yesterday"); | 769 | addString = i18n("Yesterday"); |
812 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) ) | 770 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(-2) ) |
813 | addString = i18n("Day before yesterday"); | 771 | addString = i18n("Day before yesterday"); |
814 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) ) | 772 | else if ( mSelectedDates.first() == QDateTime::currentDateTime().date().addDays(2) ) |
815 | addString = i18n("Day after tomorrow"); | 773 | addString = i18n("Day after tomorrow"); |
816 | if ( !addString.isEmpty() ) { | 774 | if ( !addString.isEmpty() ) { |
817 | str = addString+", " + str; | 775 | str = addString+", " + str; |
818 | } | 776 | } |
819 | } | 777 | } |
820 | dayLabel->setText(str); | 778 | dayLabel->setText(str); |
821 | //dayLabel->setAlignment(QLabel::AlignHCenter); | 779 | //dayLabel->setAlignment(QLabel::AlignHCenter); |
822 | if (date == QDate::currentDate()) { | 780 | if (date == QDate::currentDate()) { |
823 | QFont bFont = dlf; | 781 | QFont bFont = dlf; |
824 | bFont.setBold( true ); | 782 | bFont.setBold( true ); |
825 | dayLabel->setFont(bFont); | 783 | dayLabel->setFont(bFont); |
826 | } | 784 | } |
827 | //dayLayout->addWidget(dayLabel); | 785 | //dayLayout->addWidget(dayLabel); |
828 | 786 | ||
829 | #ifndef KORG_NOPLUGINS | 787 | #ifndef KORG_NOPLUGINS |
830 | CalendarDecoration::List cds = KOCore::self()->calendarDecorations(); | 788 | CalendarDecoration::List cds = KOCore::self()->calendarDecorations(); |
831 | CalendarDecoration *it; | 789 | CalendarDecoration *it; |
832 | for(it = cds.first(); it; it = cds.next()) { | 790 | for(it = cds.first(); it; it = cds.next()) { |
833 | QString text = it->shortText( date ); | 791 | QString text = it->shortText( date ); |
834 | if ( !text.isEmpty() ) { | 792 | if ( !text.isEmpty() ) { |
835 | QLabel *label = new QLabel(text,mDayLabels); | 793 | QLabel *label = new QLabel(text,mDayLabels); |
836 | label->setAlignment(AlignCenter); | 794 | label->setAlignment(AlignCenter); |
837 | dayLayout->addWidget(label); | 795 | dayLayout->addWidget(label); |
838 | } | 796 | } |
839 | } | 797 | } |
840 | 798 | ||
841 | for(it = cds.first(); it; it = cds.next()) { | 799 | for(it = cds.first(); it; it = cds.next()) { |
842 | QWidget *wid = it->smallWidget(mDayLabels,date); | 800 | QWidget *wid = it->smallWidget(mDayLabels,date); |
843 | if ( wid ) { | 801 | if ( wid ) { |
844 | // wid->setHeight(20); | 802 | // wid->setHeight(20); |
845 | dayLayout->addWidget(wid); | 803 | dayLayout->addWidget(wid); |
846 | } | 804 | } |
847 | } | 805 | } |
848 | #endif | 806 | #endif |
849 | } | 807 | } |
850 | if ( ! appendLabels ) { | 808 | if ( ! appendLabels ) { |
851 | dayLabel = mDayLabelsList.next(); | 809 | dayLabel = mDayLabelsList.next(); |
852 | if ( !dayLabel ) | 810 | if ( !dayLabel ) |
853 | appendLabels = true; | 811 | appendLabels = true; |
854 | } | 812 | } |
855 | if ( appendLabels ) { | 813 | if ( appendLabels ) { |
856 | dayLabel = getNewDaylabel(); | 814 | dayLabel = getNewDaylabel(); |
857 | } | 815 | } |
858 | //dayLabel->hide();//test only | 816 | //dayLabel->hide();//test only |
859 | 817 | ||
860 | int offset = (mAgenda->width() - mAgenda->verticalScrollBar()->width()-3 ) % mSelectedDates.count() ; | 818 | int offset = (mAgenda->width() - mAgenda->verticalScrollBar()->width()-3 ) % mSelectedDates.count() ; |
861 | if ( offset < 0 ) offset = 0; | 819 | if ( offset < 0 ) offset = 0; |
862 | //qDebug("mLayoutDayLabels->addSpacing %d ", mAgenda->verticalScrollBar()->width()+offset+2 ); | 820 | //qDebug("mLayoutDayLabels->addSpacing %d ", mAgenda->verticalScrollBar()->width()+offset+2 ); |
863 | dayLabel->setText(">");//QString::number ( mSelectedDates.first().month() ) ); | 821 | dayLabel->setText(">");//QString::number ( mSelectedDates.first().month() ) ); |
864 | dayLabel->setFont( dlf ); | 822 | dayLabel->setFont( dlf ); |
865 | dayLabel->show(); | 823 | dayLabel->show(); |
866 | dayLabel->setNum( -2 ); | 824 | dayLabel->setNum( -2 ); |
867 | dayLabel->setFixedWidth( mAgenda->verticalScrollBar()->width()+ offset ); | 825 | dayLabel->setFixedWidth( mAgenda->verticalScrollBar()->width()+ offset ); |
868 | //qDebug("setToFixed %d ", mAgenda->verticalScrollBar()->width()+ offset+2); | 826 | //qDebug("setToFixed %d ", mAgenda->verticalScrollBar()->width()+ offset+2); |
869 | //mLayoutDayLabels->addSpacing(mAgenda->verticalScrollBar()->width()+ offset+2); | 827 | //mLayoutDayLabels->addSpacing(mAgenda->verticalScrollBar()->width()+ offset+2); |
870 | if ( !appendLabels ) { | 828 | if ( !appendLabels ) { |
871 | dayLabel = mDayLabelsList.next(); | 829 | dayLabel = mDayLabelsList.next(); |
872 | while ( dayLabel ) { | 830 | while ( dayLabel ) { |
873 | //qDebug("!dayLabel %d",dayLabel ); | 831 | //qDebug("!dayLabel %d",dayLabel ); |
874 | dayLabel->hide(); | 832 | dayLabel->hide(); |
875 | dayLabel = mDayLabelsList.next(); | 833 | dayLabel = mDayLabelsList.next(); |
876 | } | 834 | } |
877 | } | 835 | } |
878 | //mDayLabelsFrame->show(); | 836 | //mDayLabelsFrame->show(); |
879 | //mDayLabels->show(); | 837 | //mDayLabels->show(); |
880 | //qDebug("heigt %d %d %d ",mDayLabelsFrame->height(), mDayLabelsFrame->sizeHint().height(), newHight); | 838 | //qDebug("heigt %d %d %d ",mDayLabelsFrame->height(), mDayLabelsFrame->sizeHint().height(), newHight); |
881 | //mDayLabelsFrame->resize( mAgenda->visibleWidth(), newHight ); | 839 | //mDayLabelsFrame->resize( mAgenda->visibleWidth(), newHight ); |
882 | mDayLabelsFrame->setFixedHeight( newHight ); | 840 | mDayLabelsFrame->setFixedHeight( newHight ); |
883 | } | 841 | } |
884 | 842 | ||
885 | int KOAgendaView::maxDatesHint() | 843 | int KOAgendaView::maxDatesHint() |
886 | { | 844 | { |
887 | // Not sure about the max number of events, so return 0 for now. | 845 | // Not sure about the max number of events, so return 0 for now. |
888 | return 0; | 846 | return 0; |
889 | } | 847 | } |
890 | 848 | ||
891 | int KOAgendaView::currentDateCount() | 849 | int KOAgendaView::currentDateCount() |
892 | { | 850 | { |
893 | return mSelectedDates.count(); | 851 | return mSelectedDates.count(); |
894 | } | 852 | } |
895 | 853 | ||
896 | QPtrList<Incidence> KOAgendaView::selectedIncidences() | 854 | QPtrList<Incidence> KOAgendaView::selectedIncidences() |
897 | { | 855 | { |
898 | QPtrList<Incidence> selected; | 856 | QPtrList<Incidence> selected; |
899 | Incidence *incidence; | 857 | Incidence *incidence; |
900 | 858 | ||
901 | incidence = mAgenda->selectedIncidence(); | 859 | incidence = mAgenda->selectedIncidence(); |
902 | if (incidence) selected.append(incidence); | 860 | if (incidence) selected.append(incidence); |
903 | 861 | ||
904 | incidence = mAllDayAgenda->selectedIncidence(); | 862 | incidence = mAllDayAgenda->selectedIncidence(); |
905 | if (incidence) selected.append(incidence); | 863 | if (incidence) selected.append(incidence); |
906 | 864 | ||
907 | return selected; | 865 | return selected; |
908 | } | 866 | } |
909 | 867 | ||
910 | DateList KOAgendaView::selectedDates() | 868 | DateList KOAgendaView::selectedDates() |
911 | { | 869 | { |
912 | DateList selected; | 870 | DateList selected; |
913 | QDate qd; | 871 | QDate qd; |
914 | 872 | ||
915 | qd = mAgenda->selectedIncidenceDate(); | 873 | qd = mAgenda->selectedIncidenceDate(); |
916 | if (qd.isValid()) selected.append(qd); | 874 | if (qd.isValid()) selected.append(qd); |
917 | 875 | ||
918 | qd = mAllDayAgenda->selectedIncidenceDate(); | 876 | qd = mAllDayAgenda->selectedIncidenceDate(); |
919 | if (qd.isValid()) selected.append(qd); | 877 | if (qd.isValid()) selected.append(qd); |
920 | 878 | ||
921 | return selected; | 879 | return selected; |
922 | } | 880 | } |
923 | 881 | ||
924 | 882 | ||
925 | void KOAgendaView::updateView() | 883 | void KOAgendaView::updateView() |
926 | { | 884 | { |
927 | if ( mBlockUpdating ) | 885 | if ( mBlockUpdating ) |
928 | return; | 886 | return; |
929 | // kdDebug() << "KOAgendaView::updateView()" << endl; | 887 | // kdDebug() << "KOAgendaView::updateView()" << endl; |
930 | fillAgenda(); | 888 | fillAgenda(); |
931 | 889 | ||
932 | } | 890 | } |
933 | 891 | ||
934 | 892 | ||
935 | /* | 893 | /* |
936 | Update configuration settings for the agenda view. This method is not | 894 | Update configuration settings for the agenda view. This method is not |
937 | complete. | 895 | complete. |
938 | */ | 896 | */ |
939 | void KOAgendaView::updateConfig() | 897 | void KOAgendaView::updateConfig() |
940 | { | 898 | { |
941 | if ( mBlockUpdating ) | 899 | if ( mBlockUpdating ) |
942 | return; | 900 | return; |
943 | 901 | ||
944 | 902 | ||
945 | 903 | ||
946 | // update config for children | 904 | // update config for children |
947 | mTimeLabels->updateConfig(); | 905 | mTimeLabels->updateConfig(); |
948 | mAgenda->storePosition(); | 906 | mAgenda->storePosition(); |
949 | mAgenda->updateConfig(); | 907 | mAgenda->updateConfig(); |
950 | mAllDayAgenda->updateConfig(); | 908 | mAllDayAgenda->updateConfig(); |
951 | // widget synchronization | 909 | // widget synchronization |
952 | //TODO: find a better way, maybe signal/slot | 910 | //TODO: find a better way, maybe signal/slot |
953 | mTimeLabels->positionChanged(); | 911 | mTimeLabels->positionChanged(); |
954 | 912 | ||
955 | // for some reason, this needs to be called explicitly | 913 | // for some reason, this needs to be called explicitly |
956 | mTimeLabels->repaint(); | 914 | mTimeLabels->repaint(); |
957 | 915 | ||
958 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); | 916 | mDummyAllDayLeft->setFixedWidth(mTimeLabels->width()); |
959 | 917 | ||
960 | // ToolTips displaying summary of events | 918 | // ToolTips displaying summary of events |
961 | KOAgendaItem::toolTipGroup()->setEnabled(KOPrefs::instance() | 919 | KOAgendaItem::toolTipGroup()->setEnabled(KOPrefs::instance() |
962 | ->mEnableToolTips); | 920 | ->mEnableToolTips); |
963 | 921 | ||
964 | //setHolidayMasks(); | 922 | //setHolidayMasks(); |
965 | 923 | ||
966 | //createDayLabels(); called by via updateView(); | 924 | //createDayLabels(); called by via updateView(); |
967 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); | 925 | mEventIndicatorTop->setXOffset(mTimeLabels->width() + mAgenda->frameWidth()); |
968 | updateView(); | 926 | updateView(); |
969 | mAgenda->restorePosition(); | 927 | mAgenda->restorePosition(); |
970 | } | 928 | } |
971 | 929 | ||
972 | 930 | ||
973 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) | 931 | void KOAgendaView::updateEventDates(KOAgendaItem *item, int type) |
974 | { | 932 | { |
975 | // kdDebug() << "KOAgendaView::updateEventDates(): " << item->text() << endl; | 933 | // kdDebug() << "KOAgendaView::updateEventDates(): " << item->text() << endl; |
976 | //qDebug("KOAgendaView::updateEventDates "); | 934 | //qDebug("KOAgendaView::updateEventDates "); |
977 | QDateTime startDt,endDt; | 935 | QDateTime startDt,endDt; |
978 | QDate startDate; | 936 | QDate startDate; |
979 | int lenInSecs; | 937 | int lenInSecs; |
980 | // if ( type == KOAgenda::RESIZETOP ) | 938 | // if ( type == KOAgenda::RESIZETOP ) |
981 | // qDebug("RESIZETOP "); | 939 | // qDebug("RESIZETOP "); |
982 | // if ( type == KOAgenda::RESIZEBOTTOM ) | 940 | // if ( type == KOAgenda::RESIZEBOTTOM ) |
983 | // qDebug("RESIZEBOTTOM "); | 941 | // qDebug("RESIZEBOTTOM "); |
984 | // if ( type == KOAgenda::MOVE ) | 942 | // if ( type == KOAgenda::MOVE ) |
985 | // qDebug("MOVE "); | 943 | // qDebug("MOVE "); |
986 | if ( item->incidence()->type() == "Event" ) { | 944 | if ( item->incidence()->type() == "Event" ) { |
987 | startDt =item->incidence()->dtStart(); | 945 | startDt =item->incidence()->dtStart(); |
988 | endDt = item->incidence()->dtEnd(); | 946 | endDt = item->incidence()->dtEnd(); |
989 | lenInSecs = startDt.secsTo( endDt ); | 947 | lenInSecs = startDt.secsTo( endDt ); |
990 | } | 948 | } |
991 | 949 | ||
992 | // emit incidenceItemChanged( item->incidence(), KOGlobals::EVENTEDITED ); | 950 | // emit incidenceItemChanged( item->incidence(), KOGlobals::EVENTEDITED ); |
993 | 951 | ||
994 | if ( item->incidence()->type()=="Todo" && item->mLastMoveXPos > 0 ) { | 952 | if ( item->incidence()->type()=="Todo" && item->mLastMoveXPos > 0 ) { |
995 | startDate = mSelectedDates[item->mLastMoveXPos]; | 953 | startDate = mSelectedDates[item->mLastMoveXPos]; |
996 | } else { | 954 | } else { |
997 | if (item->cellX() < 0) { | 955 | if (item->cellX() < 0) { |
998 | startDate = (mSelectedDates.first()).addDays(item->cellX()); | 956 | startDate = (mSelectedDates.first()).addDays(item->cellX()); |
999 | } else { | 957 | } else { |
1000 | startDate = mSelectedDates[item->cellX()]; | 958 | startDate = mSelectedDates[item->cellX()]; |
1001 | } | 959 | } |
1002 | } | 960 | } |
1003 | startDt.setDate(startDate); | 961 | startDt.setDate(startDate); |
1004 | 962 | ||
1005 | if (item->incidence()->doesFloat()) { | 963 | if (item->incidence()->doesFloat()) { |
1006 | endDt.setDate(startDate.addDays(item->cellWidth() - 1)); | 964 | endDt.setDate(startDate.addDays(item->cellWidth() - 1)); |
1007 | } else { | 965 | } else { |
1008 | if ( type == KOAgenda::RESIZETOP || type == KOAgenda::MOVE ) | 966 | if ( type == KOAgenda::RESIZETOP || type == KOAgenda::MOVE ) |
1009 | startDt.setTime(mAgenda->gyToTime(item->cellYTop())); | 967 | startDt.setTime(mAgenda->gyToTime(item->cellYTop())); |
1010 | if ( item->incidence()->type() == "Event" ) { | 968 | if ( item->incidence()->type() == "Event" ) { |
1011 | if ( type == KOAgenda::MOVE ) { | 969 | if ( type == KOAgenda::MOVE ) { |
1012 | endDt = startDt.addSecs(lenInSecs); | 970 | endDt = startDt.addSecs(lenInSecs); |
1013 | 971 | ||
1014 | } else if ( type == KOAgenda::RESIZEBOTTOM ) { | 972 | } else if ( type == KOAgenda::RESIZEBOTTOM ) { |
1015 | if (item->lastMultiItem()) { | 973 | if (item->lastMultiItem()) { |
1016 | endDt.setTime(mAgenda->gyToTime(item->lastMultiItem()->cellYBottom()+1)); | 974 | endDt.setTime(mAgenda->gyToTime(item->lastMultiItem()->cellYBottom()+1)); |
1017 | endDt.setDate(startDate. | 975 | endDt.setDate(startDate. |
1018 | addDays(item->lastMultiItem()->cellX() - item->cellX())); | 976 | addDays(item->lastMultiItem()->cellX() - item->cellX())); |
1019 | } else { | 977 | } else { |
1020 | endDt.setTime(mAgenda->gyToTime(item->cellYBottom()+1)); | 978 | endDt.setTime(mAgenda->gyToTime(item->cellYBottom()+1)); |
1021 | endDt.setDate(startDate); | 979 | endDt.setDate(startDate); |
1022 | } | 980 | } |
1023 | } | 981 | } |
1024 | } else { | 982 | } else { |
1025 | // todo | 983 | // todo |
1026 | if (item->lastMultiItem()) { | 984 | if (item->lastMultiItem()) { |
1027 | endDt.setTime(mAgenda->gyToTime(item->lastMultiItem()->cellYBottom()+1)); | 985 | endDt.setTime(mAgenda->gyToTime(item->lastMultiItem()->cellYBottom()+1)); |
1028 | endDt.setDate(startDate. | 986 | endDt.setDate(startDate. |
1029 | addDays(item->lastMultiItem()->cellX() - item->cellX())); | 987 | addDays(item->lastMultiItem()->cellX() - item->cellX())); |
1030 | } else { | 988 | } else { |
1031 | //qDebug("tem->cellYBottom() %d",item->cellYBottom() ); | 989 | //qDebug("tem->cellYBottom() %d",item->cellYBottom() ); |
1032 | if ( item->cellYBottom() > 0 ) | 990 | if ( item->cellYBottom() > 0 ) |
1033 | endDt.setTime(mAgenda->gyToTime(item->cellYBottom()+1)); | 991 | endDt.setTime(mAgenda->gyToTime(item->cellYBottom()+1)); |
1034 | else | 992 | else |
1035 | endDt.setTime((static_cast<Todo*>(item->incidence()))->dtDue().time()); | 993 | endDt.setTime((static_cast<Todo*>(item->incidence()))->dtDue().time()); |
1036 | endDt.setDate(startDate); | 994 | endDt.setDate(startDate); |
1037 | } | 995 | } |
1038 | } | 996 | } |
1039 | } | 997 | } |
1040 | if ( item->incidence()->type() == "Event" ) { | 998 | if ( item->incidence()->type() == "Event" ) { |
1041 | item->incidence()->setDtStart(startDt); | 999 | item->incidence()->setDtStart(startDt); |
1042 | (static_cast<Event*>(item->incidence()))->setDtEnd(endDt); | 1000 | (static_cast<Event*>(item->incidence()))->setDtEnd(endDt); |
1043 | } else if ( item->incidence()->type() == "Todo" ) { | 1001 | } else if ( item->incidence()->type() == "Todo" ) { |
1044 | (static_cast<Todo*>(item->incidence()))->setDtDue(endDt); | 1002 | (static_cast<Todo*>(item->incidence()))->setDtDue(endDt); |
1045 | } | 1003 | } |
1046 | //qDebug("KOAgendaView::updateEventDates stsart %s end %s ", startDt.toString().latin1(), endDt.toString().latin1() ); | 1004 | //qDebug("KOAgendaView::updateEventDates stsart %s end %s ", startDt.toString().latin1(), endDt.toString().latin1() ); |
1047 | item->incidence()->setRevision(item->incidence()->revision()+1); | 1005 | item->incidence()->setRevision(item->incidence()->revision()+1); |
1048 | item->setItemDate(startDt.date()); | 1006 | item->setItemDate(startDt.date()); |
1049 | //item->updateItem(); | 1007 | //item->updateItem(); |
1050 | if ( item->incidence()->type() == "Todo" ) { | 1008 | if ( item->incidence()->type() == "Todo" ) { |
1051 | emit todoMoved((Todo*)item->incidence(), KOGlobals::EVENTEDITED ); | 1009 | emit todoMoved((Todo*)item->incidence(), KOGlobals::EVENTEDITED ); |
1052 | 1010 | ||
1053 | } | 1011 | } |
1054 | else | 1012 | else |
1055 | emit incidenceChanged(item->incidence(), KOGlobals::EVENTEDITED); | 1013 | emit incidenceChanged(item->incidence(), KOGlobals::EVENTEDITED); |
1056 | item->updateItem(); | 1014 | item->updateItem(); |
1057 | } | 1015 | } |
1058 | 1016 | ||
1059 | void KOAgendaView::showDates( const QDate &start, const QDate &end ) | 1017 | void KOAgendaView::showDates( const QDate &start, const QDate &end ) |
1060 | { | 1018 | { |
1061 | // kdDebug() << "KOAgendaView::selectDates" << endl; | 1019 | // kdDebug() << "KOAgendaView::selectDates" << endl; |
1062 | 1020 | ||
1063 | mSelectedDates.clear(); | 1021 | mSelectedDates.clear(); |
1064 | // qDebug("KOAgendaView::showDates "); | 1022 | // qDebug("KOAgendaView::showDates "); |
1065 | QDate d = start; | 1023 | QDate d = start; |
1066 | while (d <= end) { | 1024 | while (d <= end) { |
1067 | mSelectedDates.append(d); | 1025 | mSelectedDates.append(d); |
1068 | d = d.addDays( 1 ); | 1026 | d = d.addDays( 1 ); |
1069 | } | 1027 | } |
1070 | 1028 | ||
1071 | // and update the view | 1029 | // and update the view |
1072 | fillAgenda(); | 1030 | fillAgenda(); |
1073 | } | 1031 | } |
1074 | 1032 | ||
1075 | 1033 | ||
1076 | void KOAgendaView::showEvents(QPtrList<Event>) | 1034 | void KOAgendaView::showEvents(QPtrList<Event>) |
1077 | { | 1035 | { |
1078 | kdDebug() << "KOAgendaView::showEvents() is not yet implemented" << endl; | 1036 | kdDebug() << "KOAgendaView::showEvents() is not yet implemented" << endl; |
1079 | } | 1037 | } |
1080 | 1038 | ||
1081 | void KOAgendaView::changeEventDisplay(Event *, int) | 1039 | void KOAgendaView::changeEventDisplay(Event *, int) |
1082 | { | 1040 | { |
1083 | // qDebug("KOAgendaView::changeEventDisplay "); | 1041 | // qDebug("KOAgendaView::changeEventDisplay "); |
1084 | // kdDebug() << "KOAgendaView::changeEventDisplay" << endl; | 1042 | // kdDebug() << "KOAgendaView::changeEventDisplay" << endl; |
1085 | // this should be re-written to be MUCH smarter. Right now we | 1043 | // this should be re-written to be MUCH smarter. Right now we |
1086 | // are just playing dumb. | 1044 | // are just playing dumb. |
1087 | fillAgenda(); | 1045 | fillAgenda(); |
1088 | } | 1046 | } |
1089 | 1047 | ||
1090 | void KOAgendaView::fillAgenda(const QDate &) | 1048 | void KOAgendaView::fillAgenda(const QDate &) |
1091 | { | 1049 | { |
1092 | // qDebug("KOAgendaView::fillAgenda "); | 1050 | // qDebug("KOAgendaView::fillAgenda "); |
1093 | fillAgenda(); | 1051 | fillAgenda(); |
1094 | } | 1052 | } |
1095 | 1053 | ||
1096 | void KOAgendaView::fillAgenda() | 1054 | void KOAgendaView::fillAgenda() |
1097 | { | 1055 | { |
1098 | if ( globalFlagBlockStartup ) | 1056 | if ( globalFlagBlockStartup ) |
1099 | return; | 1057 | return; |
1100 | if ( globalFlagBlockAgenda == 1 ) | 1058 | if ( globalFlagBlockAgenda == 1 ) |
1101 | return; | 1059 | return; |
1102 | //if ( globalFlagBlockAgenda == 2 ) | 1060 | //if ( globalFlagBlockAgenda == 2 ) |
1103 | //globalFlagBlockAgenda = 0; | 1061 | //globalFlagBlockAgenda = 0; |
1104 | // globalFlagBlockPainting = false; | 1062 | // globalFlagBlockPainting = false; |
1105 | if ( globalFlagBlockAgenda == 0 ) | 1063 | if ( globalFlagBlockAgenda == 0 ) |
1106 | globalFlagBlockAgenda = 1; | 1064 | globalFlagBlockAgenda = 1; |
1107 | // clearView(); | 1065 | // clearView(); |
1108 | //qDebug("fillAgenda()++++ "); | 1066 | //qDebug("fillAgenda()++++ "); |
1109 | globalFlagBlockAgendaItemPaint = 1; | 1067 | globalFlagBlockAgendaItemPaint = 1; |
1110 | 1068 | ||
1111 | int weekNum = 0; | ||
1112 | QDate seda = mSelectedDates.first(); | ||
1113 | QDate d = QDate ( seda.year(), 1,1); | ||
1114 | seda = seda.addDays( 1-seda.dayOfWeek() );//we are on monday | ||
1115 | if ( seda.addDays(6).year() != seda.year() ) { | ||
1116 | if ( seda.year() != d.year() ) { | ||
1117 | if ( d.dayOfWeek() > 4 ) | ||
1118 | d = QDate ( seda.year(), 1,1); | ||
1119 | else | ||
1120 | weekNum = 1; | ||
1121 | } else { | ||
1122 | QDate dd( seda.year()+1, 1,1); | ||
1123 | if ( dd.dayOfWeek() <= 4 ) | ||
1124 | weekNum = 1; | ||
1125 | } | ||
1126 | } | ||
1127 | if ( weekNum == 0 ){ | ||
1128 | int dow = d.dayOfWeek(); | ||
1129 | if ( dow <= 4 ) | ||
1130 | d = d.addDays( 1-dow ); | ||
1131 | else // 5,6,7 | ||
1132 | d = d.addDays( 8-dow ); | ||
1133 | // we have the first week of the year.we are on monday | ||
1134 | weekNum = d.daysTo( seda ) / 7 +1; | ||
1135 | } | ||
1136 | mDummyAllDayRightL->setText( QString::number( weekNum) ); | ||
1137 | mAllDayAgenda->changeColumns(mSelectedDates.count()); | 1069 | mAllDayAgenda->changeColumns(mSelectedDates.count()); |
1138 | mAgenda->changeColumns(mSelectedDates.count()); | 1070 | mAgenda->changeColumns(mSelectedDates.count()); |
1139 | qApp->processEvents(); | 1071 | qApp->processEvents(); |
1140 | mEventIndicatorTop->changeColumns(mSelectedDates.count()); | 1072 | mEventIndicatorTop->changeColumns(mSelectedDates.count()); |
1141 | mEventIndicatorBottom->changeColumns(mSelectedDates.count()); | 1073 | mEventIndicatorBottom->changeColumns(mSelectedDates.count()); |
1142 | setHolidayMasks(); | 1074 | setHolidayMasks(); |
1143 | 1075 | ||
1144 | //mAgenda->hideUnused(); | 1076 | //mAgenda->hideUnused(); |
1145 | //mAllDayAgenda->hideUnused(); | 1077 | //mAllDayAgenda->hideUnused(); |
1146 | 1078 | ||
1147 | // mAgenda->blockNextRepaint( false ); | 1079 | // mAgenda->blockNextRepaint( false ); |
1148 | // mAgenda->viewport()->repaint(); | 1080 | // mAgenda->viewport()->repaint(); |
1149 | // mAgenda->blockNextRepaint( true ); | 1081 | // mAgenda->blockNextRepaint( true ); |
1150 | mMinY.resize(mSelectedDates.count()); | 1082 | mMinY.resize(mSelectedDates.count()); |
1151 | mMaxY.resize(mSelectedDates.count()); | 1083 | mMaxY.resize(mSelectedDates.count()); |
1152 | 1084 | ||
1153 | QPtrList<Event> dayEvents; | 1085 | QPtrList<Event> dayEvents; |
1154 | 1086 | ||
1155 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. | 1087 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. |
1156 | // Therefore, gtodoset all of them. | 1088 | // Therefore, gtodoset all of them. |
1157 | QPtrList<Todo> todos = calendar()->todos(); | 1089 | QPtrList<Todo> todos = calendar()->todos(); |
1158 | 1090 | ||
1159 | mAgenda->setDateList(mSelectedDates); | 1091 | mAgenda->setDateList(mSelectedDates); |
1160 | 1092 | ||
1161 | QDate today = QDate::currentDate(); | 1093 | QDate today = QDate::currentDate(); |
1162 | 1094 | ||
1163 | DateList::ConstIterator dit; | 1095 | DateList::ConstIterator dit; |
1164 | int curCol = 0; | 1096 | int curCol = 0; |
1165 | for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { | 1097 | for( dit = mSelectedDates.begin(); dit != mSelectedDates.end(); ++dit ) { |
1166 | QDate currentDate = *dit; | 1098 | QDate currentDate = *dit; |
1167 | // kdDebug() << "KOAgendaView::fillAgenda(): " << currentDate.toString() | 1099 | // kdDebug() << "KOAgendaView::fillAgenda(): " << currentDate.toString() |
1168 | // << endl; | 1100 | // << endl; |
1169 | 1101 | ||
1170 | dayEvents = calendar()->events(currentDate,true); | 1102 | dayEvents = calendar()->events(currentDate,true); |
1171 | 1103 | ||
1172 | // Default values, which can never be reached | 1104 | // Default values, which can never be reached |
1173 | mMinY[curCol] = mAgenda->timeToY(QTime(23,59)) + 1; | 1105 | mMinY[curCol] = mAgenda->timeToY(QTime(23,59)) + 1; |
1174 | mMaxY[curCol] = mAgenda->timeToY(QTime(0,0)) - 1; | 1106 | mMaxY[curCol] = mAgenda->timeToY(QTime(0,0)) - 1; |
1175 | 1107 | ||
1176 | unsigned int numEvent; | 1108 | unsigned int numEvent; |
1177 | for(numEvent=0;numEvent<dayEvents.count();++numEvent) { | 1109 | for(numEvent=0;numEvent<dayEvents.count();++numEvent) { |
1178 | Event *event = dayEvents.at(numEvent); | 1110 | Event *event = dayEvents.at(numEvent); |
1179 | if ( !KOPrefs::instance()->mShowSyncEvents && event->uid().left(2) == QString("la") ) | 1111 | if ( !KOPrefs::instance()->mShowSyncEvents && event->uid().left(2) == QString("la") ) |
1180 | if ( event->uid().left(15) == QString("last-syncEvent-") ) | 1112 | if ( event->uid().left(15) == QString("last-syncEvent-") ) |
1181 | continue; | 1113 | continue; |
1182 | // kdDebug() << " Event: " << event->summary() << endl; | 1114 | // kdDebug() << " Event: " << event->summary() << endl; |
1183 | 1115 | ||
1184 | int beginX = currentDate.daysTo(event->dtStart().date()) + curCol; | 1116 | int beginX = currentDate.daysTo(event->dtStart().date()) + curCol; |
1185 | int endX = currentDate.daysTo(event->dtEnd().date()) + curCol; | 1117 | int endX = currentDate.daysTo(event->dtEnd().date()) + curCol; |
1186 | 1118 | ||
1187 | // kdDebug() << " beginX: " << beginX << " endX: " << endX << endl; | 1119 | // kdDebug() << " beginX: " << beginX << " endX: " << endX << endl; |
1188 | 1120 | ||
1189 | if (event->doesFloat()) { | 1121 | if (event->doesFloat()) { |
1190 | if (event->recurrence()->doesRecur()) { | 1122 | if (event->recurrence()->doesRecur()) { |
1191 | mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol); | 1123 | mAllDayAgenda->insertAllDayItem(event,currentDate,curCol,curCol); |
1192 | } else { | 1124 | } else { |
1193 | if (beginX <= 0 && curCol == 0) { | 1125 | if (beginX <= 0 && curCol == 0) { |
1194 | mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX); | 1126 | mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX); |
1195 | } else if (beginX == curCol) { | 1127 | } else if (beginX == curCol) { |
1196 | mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX); | 1128 | mAllDayAgenda->insertAllDayItem(event,currentDate,beginX,endX); |
1197 | } | 1129 | } |
1198 | } | 1130 | } |
1199 | } else if (event->isMultiDay()) { | 1131 | } else if (event->isMultiDay()) { |
1200 | if ( event->doesRecur () ) { | 1132 | if ( event->doesRecur () ) { |
1201 | QDate dateit = currentDate; | 1133 | QDate dateit = currentDate; |
1202 | int count = 0; | 1134 | int count = 0; |
1203 | int max = event->dtStart().daysTo( event->dtEnd() ) +2; | 1135 | int max = event->dtStart().daysTo( event->dtEnd() ) +2; |
1204 | while (! event->recursOn( dateit ) && count <= max ) { | 1136 | while (! event->recursOn( dateit ) && count <= max ) { |
1205 | ++count; | 1137 | ++count; |
1206 | dateit = dateit.addDays( -1 ); | 1138 | dateit = dateit.addDays( -1 ); |
1207 | } | 1139 | } |
1208 | bool ok; | 1140 | bool ok; |
1209 | QDateTime nextOcstart = event->getNextOccurence( QDateTime(dateit) ,&ok ); | 1141 | QDateTime nextOcstart = event->getNextOccurence( QDateTime(dateit) ,&ok ); |
1210 | if ( ok ) | 1142 | if ( ok ) |
1211 | { | 1143 | { |
1212 | int secs = event->dtStart().secsTo( event->dtEnd() ); | 1144 | int secs = event->dtStart().secsTo( event->dtEnd() ); |
1213 | QDateTime nextOcend =nextOcstart.addSecs( secs ); ; | 1145 | QDateTime nextOcend =nextOcstart.addSecs( secs ); ; |
1214 | beginX = currentDate.daysTo(nextOcstart.date()) + curCol; | 1146 | beginX = currentDate.daysTo(nextOcstart.date()) + curCol; |
1215 | endX = currentDate.daysTo(nextOcend.date()) + curCol; | 1147 | endX = currentDate.daysTo(nextOcend.date()) + curCol; |
1216 | 1148 | ||
1217 | } | 1149 | } |
1218 | } | 1150 | } |
1219 | int startY = mAgenda->timeToY(event->dtStart().time()); | 1151 | int startY = mAgenda->timeToY(event->dtStart().time()); |
1220 | int endY = mAgenda->timeToY(event->dtEnd().time()) - 1; | 1152 | int endY = mAgenda->timeToY(event->dtEnd().time()) - 1; |
1221 | //qDebug("insert %d %d %d %d %d ",beginX,endX,startY,endY , curCol ); | 1153 | //qDebug("insert %d %d %d %d %d ",beginX,endX,startY,endY , curCol ); |
1222 | if ((beginX <= 0 && curCol == 0) || beginX == curCol) { | 1154 | if ((beginX <= 0 && curCol == 0) || beginX == curCol) { |
1223 | //qDebug("insert!!! "); | 1155 | //qDebug("insert!!! "); |
1224 | mAgenda->insertMultiItem(event,currentDate,beginX,endX,startY,endY); | 1156 | mAgenda->insertMultiItem(event,currentDate,beginX,endX,startY,endY); |
1225 | } | 1157 | } |
1226 | if (beginX == curCol) { | 1158 | if (beginX == curCol) { |
1227 | mMaxY[curCol] = mAgenda->timeToY(QTime(23,59)); | 1159 | mMaxY[curCol] = mAgenda->timeToY(QTime(23,59)); |
1228 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; | 1160 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; |
1229 | } else if (endX == curCol) { | 1161 | } else if (endX == curCol) { |
1230 | mMinY[curCol] = mAgenda->timeToY(QTime(0,0)); | 1162 | mMinY[curCol] = mAgenda->timeToY(QTime(0,0)); |
1231 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; | 1163 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; |
1232 | } else { | 1164 | } else { |
1233 | mMinY[curCol] = mAgenda->timeToY(QTime(0,0)); | 1165 | mMinY[curCol] = mAgenda->timeToY(QTime(0,0)); |
1234 | mMaxY[curCol] = mAgenda->timeToY(QTime(23,59)); | 1166 | mMaxY[curCol] = mAgenda->timeToY(QTime(23,59)); |
1235 | } | 1167 | } |
1236 | } else { | 1168 | } else { |
1237 | int startY = mAgenda->timeToY(event->dtStart().time()); | 1169 | int startY = mAgenda->timeToY(event->dtStart().time()); |
1238 | int endY = mAgenda->timeToY(event->dtEnd().time()) - 1; | 1170 | int endY = mAgenda->timeToY(event->dtEnd().time()) - 1; |
1239 | if (endY < startY) endY = startY; | 1171 | if (endY < startY) endY = startY; |
1240 | mAgenda->insertItem(event,currentDate,curCol,startY,endY); | 1172 | mAgenda->insertItem(event,currentDate,curCol,startY,endY); |
1241 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; | 1173 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; |
1242 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; | 1174 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; |
1243 | } | 1175 | } |
1244 | } | 1176 | } |
1245 | // ---------- [display Todos -------------- | 1177 | // ---------- [display Todos -------------- |
1246 | unsigned int numTodo; | 1178 | unsigned int numTodo; |
1247 | for (numTodo = 0; numTodo < todos.count(); ++numTodo) { | 1179 | for (numTodo = 0; numTodo < todos.count(); ++numTodo) { |
1248 | Todo *todo = todos.at(numTodo); | 1180 | Todo *todo = todos.at(numTodo); |
1249 | 1181 | ||
1250 | if ( ! todo->hasDueDate() && !todo->hasCompletedDate()) continue; // todo shall not be displayed if it has no date | 1182 | if ( ! todo->hasDueDate() && !todo->hasCompletedDate()) continue; // todo shall not be displayed if it has no date |
1251 | 1183 | ||
1252 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. | 1184 | // ToDo items shall be displayed for the day they are due, but only showed today if they are already overdue. |
1253 | // Already completed items can be displayed on their original due date | 1185 | // Already completed items can be displayed on their original due date |
1254 | //if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda | 1186 | //if not KOPrefs::instance()->mShowTodoInAgenda, show overdue in agenda |
1255 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda; | 1187 | bool overdue = (!todo->isCompleted()) && (todo->dtDue() < today) && KOPrefs::instance()->mShowTodoInAgenda; |
1256 | bool fillIn = false; | 1188 | bool fillIn = false; |
1257 | if ( todo->hasCompletedDate() && todo->completed().date() == currentDate ) | 1189 | if ( todo->hasCompletedDate() && todo->completed().date() == currentDate ) |
1258 | fillIn = true; | 1190 | fillIn = true; |
1259 | if ( ! fillIn && !todo->hasCompletedDate() ) | 1191 | if ( ! fillIn && !todo->hasCompletedDate() ) |
1260 | fillIn = ((todo->dtDue().date() == currentDate) && !overdue) || ((currentDate == today) && overdue); | 1192 | fillIn = ((todo->dtDue().date() == currentDate) && !overdue) || ((currentDate == today) && overdue); |
1261 | if ( fillIn ) { | 1193 | if ( fillIn ) { |
1262 | if ( (todo->doesFloat() || overdue ) && !todo->hasCompletedDate() ) { // Todo has no due-time set or is already overdue | 1194 | if ( (todo->doesFloat() || overdue ) && !todo->hasCompletedDate() ) { // Todo has no due-time set or is already overdue |
1263 | if ( KOPrefs::instance()->mShowTodoInAgenda ) | 1195 | if ( KOPrefs::instance()->mShowTodoInAgenda ) |
1264 | mAllDayAgenda->insertAllDayItem(todo, currentDate, curCol, curCol); | 1196 | mAllDayAgenda->insertAllDayItem(todo, currentDate, curCol, curCol); |
1265 | } | 1197 | } |
1266 | else { | 1198 | else { |
1267 | QDateTime dt; | 1199 | QDateTime dt; |
1268 | if ( todo->hasCompletedDate() ) | 1200 | if ( todo->hasCompletedDate() ) |
1269 | dt = todo->completed(); | 1201 | dt = todo->completed(); |
1270 | else | 1202 | else |
1271 | dt = todo->dtDue();; | 1203 | dt = todo->dtDue();; |
1272 | 1204 | ||
1273 | 1205 | ||
1274 | int endY = mAgenda->timeToY(dt.time()) - 1; | 1206 | int endY = mAgenda->timeToY(dt.time()) - 1; |
1275 | int hi = (18/KOPrefs::instance()->mHourSize); | 1207 | int hi = (18/KOPrefs::instance()->mHourSize); |
1276 | //qDebug("hei %d ",KOPrefs::instance()->mHourSize); | 1208 | //qDebug("hei %d ",KOPrefs::instance()->mHourSize); |
1277 | int startY = endY -hi; | 1209 | int startY = endY -hi; |
1278 | 1210 | ||
1279 | mAgenda->insertItem(todo,currentDate,curCol,startY,endY); | 1211 | mAgenda->insertItem(todo,currentDate,curCol,startY,endY); |
1280 | 1212 | ||
1281 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; | 1213 | if (startY < mMinY[curCol]) mMinY[curCol] = startY; |
1282 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; | 1214 | if (endY > mMaxY[curCol]) mMaxY[curCol] = endY; |
1283 | } | 1215 | } |
1284 | } | 1216 | } |
1285 | } | 1217 | } |
1286 | // ---------- display Todos] -------------- | 1218 | // ---------- display Todos] -------------- |
1287 | 1219 | ||
1288 | ++curCol; | 1220 | ++curCol; |
1289 | } | 1221 | } |
1290 | mAgenda->hideUnused(); | 1222 | mAgenda->hideUnused(); |
1291 | mAllDayAgenda->hideUnused(); | 1223 | mAllDayAgenda->hideUnused(); |
1292 | mAgenda->checkScrollBoundaries(); | 1224 | mAgenda->checkScrollBoundaries(); |
1293 | 1225 | ||
1294 | deleteSelectedDateTime(); | 1226 | deleteSelectedDateTime(); |
1295 | 1227 | ||
1296 | createDayLabels(); | 1228 | createDayLabels(); |
1297 | emit incidenceSelected( 0 ); | 1229 | emit incidenceSelected( 0 ); |
1298 | 1230 | ||
1299 | if ( globalFlagBlockAgenda == 2 ) { | 1231 | if ( globalFlagBlockAgenda == 2 ) { |
1300 | if ( KOPrefs::instance()->mSetTimeToDayStartAt ) | 1232 | if ( KOPrefs::instance()->mSetTimeToDayStartAt ) |
1301 | setStartHour( KOPrefs::instance()->mDayBegins ); | 1233 | setStartHour( KOPrefs::instance()->mDayBegins ); |
1302 | else if ( KOPrefs::instance()->mCenterOnCurrentTime ) | 1234 | else if ( KOPrefs::instance()->mCenterOnCurrentTime ) |
1303 | setStartHour( QTime::currentTime ().hour() ); | 1235 | setStartHour( QTime::currentTime ().hour() ); |
1304 | // qApp->processEvents(); | 1236 | // qApp->processEvents(); |
1305 | } | 1237 | } |
1306 | qApp->processEvents(); | 1238 | qApp->processEvents(); |
1307 | //qDebug("qApp->processEvents(); END "); | 1239 | //qDebug("qApp->processEvents(); END "); |
1308 | globalFlagBlockAgenda = 0; | 1240 | globalFlagBlockAgenda = 0; |
1309 | 1241 | ||
1310 | // mAgenda->hideUnused(); | 1242 | // mAgenda->hideUnused(); |
1311 | //mAllDayAgenda->hideUnused(); | 1243 | //mAllDayAgenda->hideUnused(); |
1312 | mAllDayAgenda->drawContentsToPainter(); | 1244 | mAllDayAgenda->drawContentsToPainter(); |
1313 | mAgenda->drawContentsToPainter(); | 1245 | mAgenda->drawContentsToPainter(); |
1314 | repaintAgenda(); | 1246 | repaintAgenda(); |
1315 | // mAgenda->finishUpdate(); | 1247 | // mAgenda->finishUpdate(); |
1316 | //mAllDayAgenda->finishUpdate(); | 1248 | //mAllDayAgenda->finishUpdate(); |
1317 | 1249 | ||
1318 | // repaintAgenda(); | 1250 | // repaintAgenda(); |
1319 | //qApp->processEvents(); | 1251 | //qApp->processEvents(); |
1320 | // globalFlagBlockAgenda = 0; | 1252 | // globalFlagBlockAgenda = 0; |
1321 | } | 1253 | } |
1322 | void KOAgendaView::repaintAgenda() | 1254 | void KOAgendaView::repaintAgenda() |
1323 | { | 1255 | { |
1324 | // mAllDayAgenda->drawContentsToPainter(); | 1256 | // mAllDayAgenda->drawContentsToPainter(); |
1325 | // mAllDayAgenda->viewport()->repaint( false ); | 1257 | // mAllDayAgenda->viewport()->repaint( false ); |
1326 | // mAgenda->drawContentsToPainter(); | 1258 | // mAgenda->drawContentsToPainter(); |
1327 | // mAgenda->viewport()->repaint( false ); | 1259 | // mAgenda->viewport()->repaint( false ); |
1328 | // qApp->processEvents(); | 1260 | // qApp->processEvents(); |
1329 | 1261 | ||
1330 | //qDebug("KOAgendaView::repaintAgenda() "); | 1262 | //qDebug("KOAgendaView::repaintAgenda() "); |
1331 | //qApp->processEvents(); | 1263 | //qApp->processEvents(); |
1332 | mAgenda->viewport()->repaint( false ); | 1264 | mAgenda->viewport()->repaint( false ); |
1333 | mAllDayAgenda->viewport()->repaint( false ); | 1265 | mAllDayAgenda->viewport()->repaint( false ); |
1334 | mAgenda->finishUpdate(); | 1266 | mAgenda->finishUpdate(); |
1335 | mAllDayAgenda->finishUpdate(); | 1267 | mAllDayAgenda->finishUpdate(); |
1336 | } | 1268 | } |
1337 | 1269 | ||
1338 | 1270 | ||
1339 | void KOAgendaView::clearView() | 1271 | void KOAgendaView::clearView() |
1340 | { | 1272 | { |
1341 | // kdDebug() << "ClearView" << endl; | 1273 | // kdDebug() << "ClearView" << endl; |
1342 | mAllDayAgenda->clear(); | 1274 | mAllDayAgenda->clear(); |
1343 | mAgenda->clear(); | 1275 | mAgenda->clear(); |
1344 | } | 1276 | } |
1345 | 1277 | ||
1346 | void KOAgendaView::printPreview(CalPrinter *calPrinter, const QDate &fd, | 1278 | void KOAgendaView::printPreview(CalPrinter *calPrinter, const QDate &fd, |
1347 | const QDate &td) | 1279 | const QDate &td) |
1348 | { | 1280 | { |
1349 | #ifndef KORG_NOPRINTER | 1281 | #ifndef KORG_NOPRINTER |
1350 | if (fd == td) | 1282 | if (fd == td) |
1351 | calPrinter->preview(CalPrinter::Day, fd, td); | 1283 | calPrinter->preview(CalPrinter::Day, fd, td); |
1352 | else | 1284 | else |
1353 | calPrinter->preview(CalPrinter::Week, fd, td); | 1285 | calPrinter->preview(CalPrinter::Week, fd, td); |
1354 | #endif | 1286 | #endif |
1355 | } | 1287 | } |
1356 | 1288 | ||
1357 | // void KOAgendaView::updateMovedTodo() | 1289 | // void KOAgendaView::updateMovedTodo() |
1358 | // { | 1290 | // { |
1359 | // // updateConfig(); | 1291 | // // updateConfig(); |
1360 | // // emit updateTodoViews(); | 1292 | // // emit updateTodoViews(); |
1361 | // } | 1293 | // } |
1362 | 1294 | ||
1363 | void KOAgendaView::newEvent(int gx, int gy) | 1295 | void KOAgendaView::newEvent(int gx, int gy) |
1364 | { | 1296 | { |
1365 | if (!mSelectedDates.count()) return; | 1297 | if (!mSelectedDates.count()) return; |
1366 | 1298 | ||
1367 | QDate day = mSelectedDates[gx]; | 1299 | QDate day = mSelectedDates[gx]; |
1368 | 1300 | ||
1369 | QTime time = mAgenda->gyToTime(gy); | 1301 | QTime time = mAgenda->gyToTime(gy); |
1370 | QDateTime dt(day,time); | 1302 | QDateTime dt(day,time); |
1371 | // if ( dt < QDateTime::currentDateTime () ) | 1303 | // if ( dt < QDateTime::currentDateTime () ) |
1372 | // dt = QDateTime::currentDateTime ().addSecs( 3600 ); | 1304 | // dt = QDateTime::currentDateTime ().addSecs( 3600 ); |
1373 | emit newEventSignal(dt); | 1305 | emit newEventSignal(dt); |
1374 | } | 1306 | } |
1375 | 1307 | ||
1376 | void KOAgendaView::newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd) | 1308 | void KOAgendaView::newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd) |
1377 | { | 1309 | { |
1378 | if (!mSelectedDates.count()) return; | 1310 | if (!mSelectedDates.count()) return; |
1379 | 1311 | ||
1380 | QDate dayStart = mSelectedDates[gxStart]; | 1312 | QDate dayStart = mSelectedDates[gxStart]; |
1381 | QDate dayEnd = mSelectedDates[gxEnd]; | 1313 | QDate dayEnd = mSelectedDates[gxEnd]; |
1382 | 1314 | ||
1383 | QTime timeStart = mAgenda->gyToTime(gyStart); | 1315 | QTime timeStart = mAgenda->gyToTime(gyStart); |
1384 | QTime timeEnd = mAgenda->gyToTime( gyEnd + 1 ); | 1316 | QTime timeEnd = mAgenda->gyToTime( gyEnd + 1 ); |
1385 | 1317 | ||
1386 | QDateTime dtStart(dayStart,timeStart); | 1318 | QDateTime dtStart(dayStart,timeStart); |
1387 | QDateTime dtEnd(dayEnd,timeEnd); | 1319 | QDateTime dtEnd(dayEnd,timeEnd); |
1388 | 1320 | ||
1389 | emit newEventSignal(dtStart,dtEnd); | 1321 | emit newEventSignal(dtStart,dtEnd); |
1390 | } | 1322 | } |
1391 | 1323 | ||
1392 | void KOAgendaView::newEventAllDay(int gx, int ) | 1324 | void KOAgendaView::newEventAllDay(int gx, int ) |
1393 | { | 1325 | { |
1394 | if (!mSelectedDates.count()) return; | 1326 | if (!mSelectedDates.count()) return; |
1395 | 1327 | ||
1396 | QDate day = mSelectedDates[gx]; | 1328 | QDate day = mSelectedDates[gx]; |
1397 | 1329 | ||
1398 | emit newEventSignal(day); | 1330 | emit newEventSignal(day); |
1399 | } | 1331 | } |
1400 | void KOAgendaView::newTodoAllDay(int gx, int ) | 1332 | void KOAgendaView::newTodoAllDay(int gx, int ) |
1401 | { | 1333 | { |
1402 | if (!mSelectedDates.count()) return; | 1334 | if (!mSelectedDates.count()) return; |
1403 | 1335 | ||
1404 | QDateTime day (mSelectedDates[gx] ); | 1336 | QDateTime day (mSelectedDates[gx] ); |
1405 | emit newTodoSignal(day, true); | 1337 | emit newTodoSignal(day, true); |
1406 | } | 1338 | } |
1407 | void KOAgendaView::newTodo(int gx, int gy ) | 1339 | void KOAgendaView::newTodo(int gx, int gy ) |
1408 | { | 1340 | { |
1409 | if (!mSelectedDates.count()) return; | 1341 | if (!mSelectedDates.count()) return; |
1410 | QDate dayStart = mSelectedDates[gx]; | 1342 | QDate dayStart = mSelectedDates[gx]; |
1411 | QTime timeStart = mAgenda->gyToTime(gy); | 1343 | QTime timeStart = mAgenda->gyToTime(gy); |
1412 | QDateTime dt (dayStart,timeStart); | 1344 | QDateTime dt (dayStart,timeStart); |
1413 | emit newTodoSignal( dt, false ); | 1345 | emit newTodoSignal( dt, false ); |
1414 | } | 1346 | } |
1415 | 1347 | ||
1416 | void KOAgendaView::updateEventIndicatorTop(int newY) | 1348 | void KOAgendaView::updateEventIndicatorTop(int newY) |
1417 | { | 1349 | { |
1418 | uint i; | 1350 | uint i; |
1419 | for(i=0;i<mMinY.size();++i) { | 1351 | for(i=0;i<mMinY.size();++i) { |
1420 | if (newY >= mMinY.at(i)) mEventIndicatorTop->enableColumn(i,true); | 1352 | if (newY >= mMinY.at(i)) mEventIndicatorTop->enableColumn(i,true); |
1421 | else mEventIndicatorTop->enableColumn(i,false); | 1353 | else mEventIndicatorTop->enableColumn(i,false); |
1422 | } | 1354 | } |
1423 | 1355 | ||
1424 | mEventIndicatorTop->update(); | 1356 | mEventIndicatorTop->update(); |
1425 | } | 1357 | } |
1426 | 1358 | ||
1427 | void KOAgendaView::updateEventIndicatorBottom(int newY) | 1359 | void KOAgendaView::updateEventIndicatorBottom(int newY) |
1428 | { | 1360 | { |
1429 | uint i; | 1361 | uint i; |
1430 | for(i=0;i<mMaxY.size();++i) { | 1362 | for(i=0;i<mMaxY.size();++i) { |
1431 | if (newY <= mMaxY.at(i)) mEventIndicatorBottom->enableColumn(i,true); | 1363 | if (newY <= mMaxY.at(i)) mEventIndicatorBottom->enableColumn(i,true); |
1432 | else mEventIndicatorBottom->enableColumn(i,false); | 1364 | else mEventIndicatorBottom->enableColumn(i,false); |
1433 | } | 1365 | } |
1434 | 1366 | ||
1435 | mEventIndicatorBottom->update(); | 1367 | mEventIndicatorBottom->update(); |
1436 | } | 1368 | } |
1437 | 1369 | ||
1438 | void KOAgendaView::startDrag(Event *event) | 1370 | void KOAgendaView::startDrag(Event *event) |
1439 | { | 1371 | { |
1440 | #ifndef KORG_NODND | 1372 | #ifndef KORG_NODND |
1441 | DndFactory factory( calendar() ); | 1373 | DndFactory factory( calendar() ); |
1442 | ICalDrag *vd = factory.createDrag(event,this); | 1374 | ICalDrag *vd = factory.createDrag(event,this); |
1443 | if (vd->drag()) { | 1375 | if (vd->drag()) { |
1444 | kdDebug() << "KOAgendaView::startDrag(): Delete drag source" << endl; | 1376 | kdDebug() << "KOAgendaView::startDrag(): Delete drag source" << endl; |
1445 | } | 1377 | } |
1446 | #endif | 1378 | #endif |
1447 | } | 1379 | } |
1448 | 1380 | ||
1449 | void KOAgendaView::readSettings() | 1381 | void KOAgendaView::readSettings() |
1450 | { | 1382 | { |
1451 | readSettings(KOGlobals::config()); | 1383 | readSettings(KOGlobals::config()); |
1452 | } | 1384 | } |
1453 | 1385 | ||
1454 | void KOAgendaView::readSettings(KConfig *config) | 1386 | void KOAgendaView::readSettings(KConfig *config) |
1455 | { | 1387 | { |
1456 | // kdDebug() << "KOAgendaView::readSettings()" << endl; | 1388 | // kdDebug() << "KOAgendaView::readSettings()" << endl; |
1457 | 1389 | ||
1458 | config->setGroup("Views"); | 1390 | config->setGroup("Views"); |
1459 | 1391 | ||
1460 | //#ifndef KORG_NOSPLITTER | 1392 | //#ifndef KORG_NOSPLITTER |
1461 | QValueList<int> sizes = config->readIntListEntry("Separator AgendaView"); | 1393 | QValueList<int> sizes = config->readIntListEntry("Separator AgendaView"); |
1462 | if (sizes.count() == 2) { | 1394 | if (sizes.count() == 2) { |
1463 | if ( sizes[0] < 20 ) { | 1395 | if ( sizes[0] < 20 ) { |
1464 | sizes[1] = sizes[1] +20 - sizes[0]; | 1396 | sizes[1] = sizes[1] +20 - sizes[0]; |
1465 | sizes[0] = 20; | 1397 | sizes[0] = 20; |
1466 | } | 1398 | } |
1467 | mSplitterAgenda->setSizes(sizes); | 1399 | mSplitterAgenda->setSizes(sizes); |
1468 | // qDebug("read %d %d ",sizes[0],sizes[1] ); | 1400 | // qDebug("read %d %d ",sizes[0],sizes[1] ); |
1469 | } | 1401 | } |
1470 | //#endif | 1402 | //#endif |
1471 | 1403 | ||
1472 | // updateConfig(); | 1404 | // updateConfig(); |
1473 | } | 1405 | } |
1474 | 1406 | ||
1475 | void KOAgendaView::writeSettings(KConfig *config) | 1407 | void KOAgendaView::writeSettings(KConfig *config) |
1476 | { | 1408 | { |
1477 | // kdDebug() << "KOAgendaView::writeSettings()" << endl; | 1409 | // kdDebug() << "KOAgendaView::writeSettings()" << endl; |
1478 | 1410 | ||
1479 | config->setGroup("Views"); | 1411 | config->setGroup("Views"); |
1480 | 1412 | ||
1481 | //#ifndef KORG_NOSPLITTER | 1413 | //#ifndef KORG_NOSPLITTER |
1482 | QValueList<int> list = mSplitterAgenda->sizes(); | 1414 | QValueList<int> list = mSplitterAgenda->sizes(); |
1483 | config->writeEntry("Separator AgendaView",list); | 1415 | config->writeEntry("Separator AgendaView",list); |
1484 | //qDebug("write %d %d ", list[0],list[1] ); | 1416 | //qDebug("write %d %d ", list[0],list[1] ); |
1485 | //#endif | 1417 | //#endif |
1486 | } | 1418 | } |
1487 | 1419 | ||
1488 | void KOAgendaView::setHolidayMasks() | 1420 | void KOAgendaView::setHolidayMasks() |
1489 | { | 1421 | { |
1490 | mHolidayMask.resize(mSelectedDates.count()); | 1422 | mHolidayMask.resize(mSelectedDates.count()); |
1491 | 1423 | ||
1492 | uint i; | 1424 | uint i; |
1493 | for(i=0;i<mSelectedDates.count();++i) { | 1425 | for(i=0;i<mSelectedDates.count();++i) { |
1494 | QDate date = mSelectedDates[i]; | 1426 | QDate date = mSelectedDates[i]; |
1495 | bool showSaturday = KOPrefs::instance()->mExcludeSaturdays && (date.dayOfWeek() == 6); | 1427 | bool showSaturday = KOPrefs::instance()->mExcludeSaturdays && (date.dayOfWeek() == 6); |
1496 | bool showSunday = KOPrefs::instance()->mExcludeHolidays && (date.dayOfWeek() == 7); | 1428 | bool showSunday = KOPrefs::instance()->mExcludeHolidays && (date.dayOfWeek() == 7); |
1497 | bool showHoliday = false; | 1429 | bool showHoliday = false; |
1498 | if ( KOPrefs::instance()->mExcludeHolidays ) { | 1430 | if ( KOPrefs::instance()->mExcludeHolidays ) { |
1499 | QPtrList<Event> events = calendar()->events( date, true ); | 1431 | QPtrList<Event> events = calendar()->events( date, true ); |
1500 | Event *event; | 1432 | Event *event; |
1501 | for( event = events.first(); event; event = events.next() ) { | 1433 | for( event = events.first(); event; event = events.next() ) { |
1502 | if ( event->categories().contains("Holiday") || | 1434 | if ( event->categories().contains("Holiday") || |
1503 | event->categories().contains(i18n("Holiday"))) { | 1435 | event->categories().contains(i18n("Holiday"))) { |
1504 | showHoliday = true; | 1436 | showHoliday = true; |
1505 | break; | 1437 | break; |
1506 | } | 1438 | } |
1507 | } | 1439 | } |
1508 | 1440 | ||
1509 | } | 1441 | } |
1510 | 1442 | ||
1511 | #ifndef KORG_NOPLUGINS | 1443 | #ifndef KORG_NOPLUGINS |
1512 | bool showHoliday = KOPrefs::instance()->mExcludeHolidays && | 1444 | bool showHoliday = KOPrefs::instance()->mExcludeHolidays && |
1513 | !KOCore::self()->holiday(date).isEmpty(); | 1445 | !KOCore::self()->holiday(date).isEmpty(); |
1514 | #endif | 1446 | #endif |
1515 | bool showDay = showSaturday || showSunday || showHoliday; | 1447 | bool showDay = showSaturday || showSunday || showHoliday; |
1516 | 1448 | ||
1517 | if (showDay) { | 1449 | if (showDay) { |
1518 | mHolidayMask.at(i) = true; | 1450 | mHolidayMask.at(i) = true; |
1519 | } else { | 1451 | } else { |
1520 | mHolidayMask.at(i) = false; | 1452 | mHolidayMask.at(i) = false; |
1521 | } | 1453 | } |
1522 | } | 1454 | } |
1523 | 1455 | ||
1524 | mAgenda->setHolidayMask(&mHolidayMask); | 1456 | mAgenda->setHolidayMask(&mHolidayMask); |
1525 | mAllDayAgenda->setHolidayMask(&mHolidayMask); | 1457 | mAllDayAgenda->setHolidayMask(&mHolidayMask); |
1526 | } | 1458 | } |
1527 | 1459 | ||
1528 | void KOAgendaView::setContentsPos(int y) | 1460 | void KOAgendaView::setContentsPos(int y) |
1529 | { | 1461 | { |
1530 | mAgenda->setContentsPos(0,y); | 1462 | mAgenda->setContentsPos(0,y); |
1531 | } | 1463 | } |
1532 | 1464 | ||
1533 | void KOAgendaView::setExpandedButton( bool expanded ) | 1465 | void KOAgendaView::setExpandedButton( bool expanded ) |
1534 | { | 1466 | { |
1535 | if ( expanded ) { | 1467 | if ( expanded ) { |
1536 | mExpandButton->setPixmap( mExpandedPixmap ); | 1468 | mExpandButton->setPixmap( mExpandedPixmap ); |
1537 | } else { | 1469 | } else { |
1538 | mExpandButton->setPixmap( mNotExpandedPixmap ); | 1470 | mExpandButton->setPixmap( mNotExpandedPixmap ); |
1539 | } | 1471 | } |
1540 | } | 1472 | } |
1541 | 1473 | ||
1542 | void KOAgendaView::clearSelection() | 1474 | void KOAgendaView::clearSelection() |
1543 | { | 1475 | { |
1544 | mAgenda->deselectItem(); | 1476 | mAgenda->deselectItem(); |
1545 | mAllDayAgenda->deselectItem(); | 1477 | mAllDayAgenda->deselectItem(); |
1546 | } | 1478 | } |
1547 | 1479 | ||
1548 | void KOAgendaView::newTimeSpanSelectedAllDay(int gxStart, int gyStart, | 1480 | void KOAgendaView::newTimeSpanSelectedAllDay(int gxStart, int gyStart, |
1549 | int gxEnd, int gyEnd) | 1481 | int gxEnd, int gyEnd) |
1550 | { | 1482 | { |
1551 | mTimeSpanInAllDay = true; | 1483 | mTimeSpanInAllDay = true; |
1552 | newTimeSpanSelected(gxStart,gyStart,gxEnd,gyEnd); | 1484 | newTimeSpanSelected(gxStart,gyStart,gxEnd,gyEnd); |
1553 | } | 1485 | } |
1554 | 1486 | ||
1555 | 1487 | ||
1556 | 1488 | ||
1557 | 1489 | ||
1558 | void KOAgendaView::newTimeSpanSelected(int gxStart, int gyStart, | 1490 | void KOAgendaView::newTimeSpanSelected(int gxStart, int gyStart, |
1559 | int gxEnd, int gyEnd) | 1491 | int gxEnd, int gyEnd) |
1560 | { | 1492 | { |
1561 | if (!mSelectedDates.count()) return; | 1493 | if (!mSelectedDates.count()) return; |
1562 | 1494 | ||
1563 | QDate dayStart = mSelectedDates[gxStart]; | 1495 | QDate dayStart = mSelectedDates[gxStart]; |
1564 | QDate dayEnd = mSelectedDates[gxEnd]; | 1496 | QDate dayEnd = mSelectedDates[gxEnd]; |
1565 | 1497 | ||
1566 | QTime timeStart = mAgenda->gyToTime(gyStart); | 1498 | QTime timeStart = mAgenda->gyToTime(gyStart); |
1567 | QTime timeEnd = mAgenda->gyToTime( gyEnd + 1 ); | 1499 | QTime timeEnd = mAgenda->gyToTime( gyEnd + 1 ); |
1568 | 1500 | ||
1569 | QDateTime dtStart(dayStart,timeStart); | 1501 | QDateTime dtStart(dayStart,timeStart); |
1570 | QDateTime dtEnd(dayEnd,timeEnd); | 1502 | QDateTime dtEnd(dayEnd,timeEnd); |
1571 | 1503 | ||
1572 | mTimeSpanBegin = dtStart; | 1504 | mTimeSpanBegin = dtStart; |
1573 | mTimeSpanEnd = dtEnd; | 1505 | mTimeSpanEnd = dtEnd; |
1574 | 1506 | ||
1575 | } | 1507 | } |
1576 | 1508 | ||
1577 | void KOAgendaView::deleteSelectedDateTime() | 1509 | void KOAgendaView::deleteSelectedDateTime() |
1578 | { | 1510 | { |
1579 | mTimeSpanBegin.setDate(QDate()); | 1511 | mTimeSpanBegin.setDate(QDate()); |
1580 | mTimeSpanEnd.setDate(QDate()); | 1512 | mTimeSpanEnd.setDate(QDate()); |
1581 | mTimeSpanInAllDay = false; | 1513 | mTimeSpanInAllDay = false; |
1582 | } | 1514 | } |
1583 | 1515 | ||
1584 | void KOAgendaView::keyPressEvent ( QKeyEvent * e ) | 1516 | void KOAgendaView::keyPressEvent ( QKeyEvent * e ) |
1585 | { | 1517 | { |
1586 | e->ignore(); | 1518 | e->ignore(); |
1587 | } | 1519 | } |
1588 | 1520 | ||
1589 | void KOAgendaView::scrollOneHourUp() | 1521 | void KOAgendaView::scrollOneHourUp() |
1590 | { | 1522 | { |
1591 | 1523 | ||
1592 | mAgenda->scrollBy ( 0, -mAgenda->contentsHeight () / 24 ); | 1524 | mAgenda->scrollBy ( 0, -mAgenda->contentsHeight () / 24 ); |
1593 | } | 1525 | } |
1594 | void KOAgendaView::scrollOneHourDown() | 1526 | void KOAgendaView::scrollOneHourDown() |
1595 | { | 1527 | { |
1596 | mAgenda->scrollBy ( 0, mAgenda->contentsHeight () / 24 ); | 1528 | mAgenda->scrollBy ( 0, mAgenda->contentsHeight () / 24 ); |
1597 | } | 1529 | } |
1598 | 1530 | ||
1599 | void KOAgendaView::setStartHour( int h ) | 1531 | void KOAgendaView::setStartHour( int h ) |
1600 | { | 1532 | { |
1601 | mAgenda->setStartHour( h ); | 1533 | mAgenda->setStartHour( h ); |
1602 | 1534 | ||
1603 | } | 1535 | } |
1604 | 1536 | ||
1605 | void KOAgendaView::updateTodo( Todo * t, int ) | 1537 | void KOAgendaView::updateTodo( Todo * t, int ) |
1606 | { | 1538 | { |
1607 | if ( !isVisible() ) | 1539 | if ( !isVisible() ) |
1608 | return; | 1540 | return; |
1609 | bool remove = false; | 1541 | bool remove = false; |
1610 | bool removeAD = false; | 1542 | bool removeAD = false; |
1611 | QDate da; | 1543 | QDate da; |
1612 | if ( t->hasCompletedDate() ) | 1544 | if ( t->hasCompletedDate() ) |
1613 | da = t->completed().date(); | 1545 | da = t->completed().date(); |
1614 | else | 1546 | else |
1615 | da = t->dtDue().date(); | 1547 | da = t->dtDue().date(); |
1616 | if ( ! t->hasDueDate() && !t->hasCompletedDate() ) { | 1548 | if ( ! t->hasDueDate() && !t->hasCompletedDate() ) { |
1617 | remove = true; | 1549 | remove = true; |
1618 | removeAD = true; | 1550 | removeAD = true; |
1619 | } | 1551 | } |
1620 | else { | 1552 | else { |
1621 | bool overdue = (!t->isCompleted()) && (t->dtDue() < QDate::currentDate()) && KOPrefs::instance()->mShowTodoInAgenda ; | 1553 | bool overdue = (!t->isCompleted()) && (t->dtDue() < QDate::currentDate()) && KOPrefs::instance()->mShowTodoInAgenda ; |
1622 | if ( overdue && | 1554 | if ( overdue && |
1623 | QDate::currentDate() >= mSelectedDates.first() && | 1555 | QDate::currentDate() >= mSelectedDates.first() && |
1624 | QDate::currentDate() <= mSelectedDates.last()) { | 1556 | QDate::currentDate() <= mSelectedDates.last()) { |
1625 | removeAD = false; | 1557 | removeAD = false; |
1626 | remove = true; | 1558 | remove = true; |
1627 | } | 1559 | } |
1628 | else { | 1560 | else { |
1629 | 1561 | ||
1630 | if ( da < mSelectedDates.first() || | 1562 | if ( da < mSelectedDates.first() || |
1631 | da > mSelectedDates.last() ) { | 1563 | da > mSelectedDates.last() ) { |
1632 | remove = true; | 1564 | remove = true; |
1633 | removeAD = true; | 1565 | removeAD = true; |
1634 | } else { | 1566 | } else { |
1635 | remove = t->doesFloat() && !t->hasCompletedDate(); | 1567 | remove = t->doesFloat() && !t->hasCompletedDate(); |
1636 | removeAD = !remove; | 1568 | removeAD = !remove; |
1637 | } | 1569 | } |
1638 | } | 1570 | } |
1639 | } | 1571 | } |
1640 | int days = mSelectedDates.first().daysTo( da ); | 1572 | int days = mSelectedDates.first().daysTo( da ); |
1641 | //qDebug("daysto %d %d %d", days, remove,removeAD ); | 1573 | //qDebug("daysto %d %d %d", days, remove,removeAD ); |
1642 | mAgenda->updateTodo( t , days, remove); | 1574 | mAgenda->updateTodo( t , days, remove); |
1643 | if ( KOPrefs::instance()->mShowTodoInAgenda ) | 1575 | if ( KOPrefs::instance()->mShowTodoInAgenda ) |
1644 | mAllDayAgenda->updateTodo( t , days, removeAD); | 1576 | mAllDayAgenda->updateTodo( t , days, removeAD); |
1645 | //qDebug("KOAgendaView::updateTodo( Todo *, int ) "); | 1577 | //qDebug("KOAgendaView::updateTodo( Todo *, int ) "); |
1646 | 1578 | ||
1647 | } | 1579 | } |
diff --git a/korganizer/koagendaview.h b/korganizer/koagendaview.h index ba9bc93..4a058ce 100644 --- a/korganizer/koagendaview.h +++ b/korganizer/koagendaview.h | |||
@@ -1,291 +1,290 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | */ | 22 | */ |
23 | #ifndef KOAGENDAVIEW_H | 23 | #ifndef KOAGENDAVIEW_H |
24 | #define KOAGENDAVIEW_H | 24 | #define KOAGENDAVIEW_H |
25 | 25 | ||
26 | #include <qscrollview.h> | 26 | #include <qscrollview.h> |
27 | #include <qdatetime.h> | 27 | #include <qdatetime.h> |
28 | #include <qpushbutton.h> | 28 | #include <qpushbutton.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #ifndef DESKTOP_VERSION | 30 | #ifndef DESKTOP_VERSION |
31 | #include <qksplitter.h> | 31 | #include <qksplitter.h> |
32 | #else | 32 | #else |
33 | #include <qsplitter.h> | 33 | #include <qsplitter.h> |
34 | #endif | 34 | #endif |
35 | #include <qmemarray.h> | 35 | #include <qmemarray.h> |
36 | 36 | ||
37 | #include "koeventview.h" | 37 | #include "koeventview.h" |
38 | 38 | ||
39 | class QHBox; | 39 | class QHBox; |
40 | class QFrame; | 40 | class QFrame; |
41 | class QLabel; | 41 | class QLabel; |
42 | class QPushButton; | 42 | class QPushButton; |
43 | class CalendarView; | 43 | class CalendarView; |
44 | class KOAgenda; | 44 | class KOAgenda; |
45 | class KOAgendaItem; | 45 | class KOAgendaItem; |
46 | class KConfig; | 46 | class KConfig; |
47 | class KDGanttMinimizeSplitter; | 47 | class KDGanttMinimizeSplitter; |
48 | 48 | ||
49 | class KOAgendaButton : public QPushButton | 49 | class KOAgendaButton : public QPushButton |
50 | { | 50 | { |
51 | Q_OBJECT | 51 | Q_OBJECT |
52 | public: | 52 | public: |
53 | KOAgendaButton( QWidget *parent=0, const char *name=0 ) : | 53 | KOAgendaButton( QWidget *parent=0, const char *name=0 ) : |
54 | QPushButton( parent, name ) | 54 | QPushButton( parent, name ) |
55 | { | 55 | { |
56 | mNum = -3; | 56 | mNum = -3; |
57 | setFlat( true ); | 57 | setFlat( true ); |
58 | setFocusPolicy(NoFocus); | 58 | setFocusPolicy(NoFocus); |
59 | setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding )); | 59 | setSizePolicy(QSizePolicy( QSizePolicy::Expanding ,QSizePolicy::Expanding )); |
60 | connect( this, SIGNAL( clicked() ), this, SLOT ( bClicked() ) ); | 60 | connect( this, SIGNAL( clicked() ), this, SLOT ( bClicked() ) ); |
61 | }; | 61 | }; |
62 | 62 | ||
63 | QSize sizeHint () const { return QSize( 5,5) ;} | 63 | QSize sizeHint () const { return QSize( 5,5) ;} |
64 | void setNum( int n) { mNum = n; } | 64 | void setNum( int n) { mNum = n; } |
65 | private slots: | 65 | private slots: |
66 | void bClicked() {emit numClicked( mNum);} | 66 | void bClicked() {emit numClicked( mNum);} |
67 | signals: | 67 | signals: |
68 | void numClicked( int ); | 68 | void numClicked( int ); |
69 | private: | 69 | private: |
70 | int mNum; | 70 | int mNum; |
71 | }; | 71 | }; |
72 | 72 | ||
73 | class TimeLabels : public QScrollView { | 73 | class TimeLabels : public QScrollView { |
74 | Q_OBJECT | 74 | Q_OBJECT |
75 | public: | 75 | public: |
76 | TimeLabels(int rows,QWidget *parent=0,const char *name=0,WFlags f=0); | 76 | TimeLabels(int rows,QWidget *parent=0,const char *name=0,WFlags f=0); |
77 | 77 | ||
78 | void setCellHeight(int height); | 78 | void setCellHeight(int height); |
79 | 79 | ||
80 | /** Calculates the minimum width */ | 80 | /** Calculates the minimum width */ |
81 | virtual int minimumWidth() const; | 81 | virtual int minimumWidth() const; |
82 | 82 | ||
83 | /** updates widget's internal state */ | 83 | /** updates widget's internal state */ |
84 | void updateConfig(); | 84 | void updateConfig(); |
85 | 85 | ||
86 | /** */ | 86 | /** */ |
87 | void setAgenda(KOAgenda* agenda); | 87 | void setAgenda(KOAgenda* agenda); |
88 | 88 | ||
89 | /** */ | 89 | /** */ |
90 | virtual void paintEvent(QPaintEvent* e); | 90 | virtual void paintEvent(QPaintEvent* e); |
91 | void contentsMousePressEvent ( QMouseEvent * ) ; | 91 | void contentsMousePressEvent ( QMouseEvent * ) ; |
92 | void contentsMouseReleaseEvent ( QMouseEvent * ); | 92 | void contentsMouseReleaseEvent ( QMouseEvent * ); |
93 | void contentsMouseMoveEvent ( QMouseEvent * ); | 93 | void contentsMouseMoveEvent ( QMouseEvent * ); |
94 | 94 | ||
95 | public slots: | 95 | public slots: |
96 | /** update time label positions */ | 96 | /** update time label positions */ |
97 | void positionChanged(); | 97 | void positionChanged(); |
98 | signals: | 98 | signals: |
99 | void scaleChanged(); | 99 | void scaleChanged(); |
100 | protected: | 100 | protected: |
101 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); | 101 | void drawContents(QPainter *p,int cx, int cy, int cw, int ch); |
102 | 102 | ||
103 | private: | 103 | private: |
104 | int mMouseDownY; | 104 | int mMouseDownY; |
105 | QString mOrgCap; | 105 | QString mOrgCap; |
106 | int mRows; | 106 | int mRows; |
107 | int mCellHeight; | 107 | int mCellHeight; |
108 | 108 | ||
109 | /** */ | 109 | /** */ |
110 | KOAgenda* mAgenda; | 110 | KOAgenda* mAgenda; |
111 | }; | 111 | }; |
112 | 112 | ||
113 | class EventIndicator : public QFrame { | 113 | class EventIndicator : public QFrame { |
114 | Q_OBJECT | 114 | Q_OBJECT |
115 | public: | 115 | public: |
116 | enum Location { Top, Bottom }; | 116 | enum Location { Top, Bottom }; |
117 | EventIndicator(Location loc=Top,QWidget *parent=0,const char *name=0); | 117 | EventIndicator(Location loc=Top,QWidget *parent=0,const char *name=0); |
118 | virtual ~EventIndicator(); | 118 | virtual ~EventIndicator(); |
119 | 119 | ||
120 | void changeColumns(int columns); | 120 | void changeColumns(int columns); |
121 | void setPaintWidget( KDGanttMinimizeSplitter* ); | 121 | void setPaintWidget( KDGanttMinimizeSplitter* ); |
122 | void setXOffset( int ); | 122 | void setXOffset( int ); |
123 | void enableColumn(int column, bool enable); | 123 | void enableColumn(int column, bool enable); |
124 | 124 | ||
125 | protected: | 125 | protected: |
126 | void drawContents(QPainter *); | 126 | void drawContents(QPainter *); |
127 | 127 | ||
128 | private: | 128 | private: |
129 | int mXOffset; | 129 | int mXOffset; |
130 | KDGanttMinimizeSplitter* mPaintWidget; | 130 | KDGanttMinimizeSplitter* mPaintWidget; |
131 | int mColumns; | 131 | int mColumns; |
132 | QHBox *mTopBox; | 132 | QHBox *mTopBox; |
133 | QBoxLayout *mTopLayout; | 133 | QBoxLayout *mTopLayout; |
134 | Location mLocation; | 134 | Location mLocation; |
135 | QPixmap mPixmap; | 135 | QPixmap mPixmap; |
136 | QMemArray<bool> mEnabled; | 136 | QMemArray<bool> mEnabled; |
137 | }; | 137 | }; |
138 | 138 | ||
139 | /** | 139 | /** |
140 | KOAgendaView is the agenda-like view used to display events in an one or | 140 | KOAgendaView is the agenda-like view used to display events in an one or |
141 | multi-day view. | 141 | multi-day view. |
142 | */ | 142 | */ |
143 | class KOAgendaView : public KOEventView { | 143 | class KOAgendaView : public KOEventView { |
144 | Q_OBJECT | 144 | Q_OBJECT |
145 | public: | 145 | public: |
146 | KOAgendaView(Calendar *cal,QWidget *parent = 0,const char *name = 0 ); | 146 | KOAgendaView(Calendar *cal,QWidget *parent = 0,const char *name = 0 ); |
147 | virtual ~KOAgendaView(); | 147 | virtual ~KOAgendaView(); |
148 | void setStartHour( int ); | 148 | void setStartHour( int ); |
149 | void toggleAllDay(); | 149 | void toggleAllDay(); |
150 | 150 | ||
151 | 151 | ||
152 | /** Returns maximum number of days supported by the koagendaview */ | 152 | /** Returns maximum number of days supported by the koagendaview */ |
153 | virtual int maxDatesHint(); | 153 | virtual int maxDatesHint(); |
154 | 154 | ||
155 | /** Returns number of currently shown dates. */ | 155 | /** Returns number of currently shown dates. */ |
156 | virtual int currentDateCount(); | 156 | virtual int currentDateCount(); |
157 | 157 | ||
158 | /** returns the currently selected events */ | 158 | /** returns the currently selected events */ |
159 | virtual QPtrList<Incidence> selectedIncidences(); | 159 | virtual QPtrList<Incidence> selectedIncidences(); |
160 | 160 | ||
161 | /** returns the currently selected events */ | 161 | /** returns the currently selected events */ |
162 | virtual DateList selectedDates(); | 162 | virtual DateList selectedDates(); |
163 | 163 | ||
164 | /** Remove all events from view */ | 164 | /** Remove all events from view */ |
165 | void clearView(); | 165 | void clearView(); |
166 | KOAgenda *agenda() { return mAgenda;} | 166 | KOAgenda *agenda() { return mAgenda;} |
167 | virtual void printPreview(CalPrinter *calPrinter, | 167 | virtual void printPreview(CalPrinter *calPrinter, |
168 | const QDate &, const QDate &); | 168 | const QDate &, const QDate &); |
169 | 169 | ||
170 | /** start-datetime of selection */ | 170 | /** start-datetime of selection */ |
171 | QDateTime selectionStart() {return mTimeSpanBegin;} | 171 | QDateTime selectionStart() {return mTimeSpanBegin;} |
172 | /** end-datetime of selection */ | 172 | /** end-datetime of selection */ |
173 | QDateTime selectionEnd() {return mTimeSpanEnd;} | 173 | QDateTime selectionEnd() {return mTimeSpanEnd;} |
174 | /** returns true if selection is for whole day */ | 174 | /** returns true if selection is for whole day */ |
175 | bool selectedIsAllDay() {return mTimeSpanInAllDay;} | 175 | bool selectedIsAllDay() {return mTimeSpanInAllDay;} |
176 | /** make selected start/end invalid */ | 176 | /** make selected start/end invalid */ |
177 | void deleteSelectedDateTime(); | 177 | void deleteSelectedDateTime(); |
178 | void repaintAgenda(); | 178 | void repaintAgenda(); |
179 | public slots: | 179 | public slots: |
180 | virtual void updateView(); | 180 | virtual void updateView(); |
181 | virtual void updateConfig(); | 181 | virtual void updateConfig(); |
182 | virtual void showDates(const QDate &start, const QDate &end); | 182 | virtual void showDates(const QDate &start, const QDate &end); |
183 | virtual void showEvents(QPtrList<Event> eventList); | 183 | virtual void showEvents(QPtrList<Event> eventList); |
184 | 184 | ||
185 | void updateTodo( Todo *, int ); | 185 | void updateTodo( Todo *, int ); |
186 | void changeEventDisplay(Event *, int); | 186 | void changeEventDisplay(Event *, int); |
187 | 187 | ||
188 | void clearSelection(); | 188 | void clearSelection(); |
189 | 189 | ||
190 | void newTodo(int gx,int gy); | 190 | void newTodo(int gx,int gy); |
191 | void newEvent(int gx,int gy); | 191 | void newEvent(int gx,int gy); |
192 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); | 192 | void newEvent(int gxStart, int gyStart, int gxEnd, int gyEnd); |
193 | void newEventAllDay(int gx, int gy); | 193 | void newEventAllDay(int gx, int gy); |
194 | void newTodoAllDay(int gx, int gy); | 194 | void newTodoAllDay(int gx, int gy); |
195 | 195 | ||
196 | void startDrag(Event *); | 196 | void startDrag(Event *); |
197 | 197 | ||
198 | void readSettings(); | 198 | void readSettings(); |
199 | void readSettings(KConfig *); | 199 | void readSettings(KConfig *); |
200 | void writeSettings(KConfig *); | 200 | void writeSettings(KConfig *); |
201 | 201 | ||
202 | void setContentsPos(int y); | 202 | void setContentsPos(int y); |
203 | 203 | ||
204 | void setExpandedButton( bool expanded ); | 204 | void setExpandedButton( bool expanded ); |
205 | void scrollOneHourUp(); | 205 | void scrollOneHourUp(); |
206 | void scrollOneHourDown(); | 206 | void scrollOneHourDown(); |
207 | void addToCalSlot(Incidence *, Incidence *); | 207 | void addToCalSlot(Incidence *, Incidence *); |
208 | 208 | ||
209 | signals: | 209 | signals: |
210 | void showDateView( int, QDate ); | 210 | void showDateView( int, QDate ); |
211 | void newTodoSignal( QDateTime ,bool ); | 211 | void newTodoSignal( QDateTime ,bool ); |
212 | void toggleExpand(); | 212 | void toggleExpand(); |
213 | void selectWeekNum( int ); | 213 | void selectWeekNum( int ); |
214 | void todoMoved( Todo *, int ); | 214 | void todoMoved( Todo *, int ); |
215 | void incidenceChanged(Incidence * , int ); | 215 | void incidenceChanged(Incidence * , int ); |
216 | // void cloneIncidenceSignal(Incidence *); | 216 | // void cloneIncidenceSignal(Incidence *); |
217 | 217 | ||
218 | protected: | 218 | protected: |
219 | QLabel * mDummyAllDayRightL; | ||
220 | KOAgendaButton* getNewDaylabel(); | 219 | KOAgendaButton* getNewDaylabel(); |
221 | bool mBlockUpdating; | 220 | bool mBlockUpdating; |
222 | int mUpcomingWidth; | 221 | int mUpcomingWidth; |
223 | /** Fill agenda beginning with date startDate */ | 222 | /** Fill agenda beginning with date startDate */ |
224 | void fillAgenda(const QDate &startDate); | 223 | void fillAgenda(const QDate &startDate); |
225 | void resizeEvent( QResizeEvent* e ); | 224 | void resizeEvent( QResizeEvent* e ); |
226 | /** Fill agenda using the current set value for the start date */ | 225 | /** Fill agenda using the current set value for the start date */ |
227 | void fillAgenda(); | 226 | void fillAgenda(); |
228 | 227 | ||
229 | /** Create labels for the selected dates. */ | 228 | /** Create labels for the selected dates. */ |
230 | void createDayLabels(); | 229 | void createDayLabels(); |
231 | 230 | ||
232 | /** | 231 | /** |
233 | Set the masks on the agenda widgets indicating, which days are holidays. | 232 | Set the masks on the agenda widgets indicating, which days are holidays. |
234 | */ | 233 | */ |
235 | void setHolidayMasks(); | 234 | void setHolidayMasks(); |
236 | 235 | ||
237 | protected slots: | 236 | protected slots: |
238 | void slotDaylabelClicked( int ); | 237 | void slotDaylabelClicked( int ); |
239 | /** Update event belonging to agenda item */ | 238 | /** Update event belonging to agenda item */ |
240 | void updateEventDates(KOAgendaItem *item, int mode = -1); | 239 | void updateEventDates(KOAgendaItem *item, int mode = -1); |
241 | //void updateMovedTodo(); | 240 | //void updateMovedTodo(); |
242 | 241 | ||
243 | void updateEventIndicatorTop(int newY); | 242 | void updateEventIndicatorTop(int newY); |
244 | void updateEventIndicatorBottom(int newY); | 243 | void updateEventIndicatorBottom(int newY); |
245 | 244 | ||
246 | /** Updates data for selected timespan */ | 245 | /** Updates data for selected timespan */ |
247 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); | 246 | void newTimeSpanSelected(int gxStart, int gyStart, int gxEnd, int gyEnd); |
248 | /** Updates data for selected timespan for all day event*/ | 247 | /** Updates data for selected timespan for all day event*/ |
249 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); | 248 | void newTimeSpanSelectedAllDay(int gxStart, int gyStart, int gxEnd, int gyEnd); |
250 | 249 | ||
251 | private: | 250 | private: |
252 | // view widgets | 251 | // view widgets |
253 | QFrame *mDayLabels; | 252 | QFrame *mDayLabels; |
254 | QHBox *mDayLabelsFrame; | 253 | QHBox *mDayLabelsFrame; |
255 | QBoxLayout *mLayoutDayLabels; | 254 | QBoxLayout *mLayoutDayLabels; |
256 | QFrame *mAllDayFrame; | 255 | QFrame *mAllDayFrame; |
257 | KOAgenda *mAllDayAgenda; | 256 | KOAgenda *mAllDayAgenda; |
258 | KOAgenda *mAgenda; | 257 | KOAgenda *mAgenda; |
259 | TimeLabels *mTimeLabels; | 258 | TimeLabels *mTimeLabels; |
260 | QWidget *mDummyAllDayLeft; | 259 | QWidget *mDummyAllDayLeft; |
261 | 260 | ||
262 | KDGanttMinimizeSplitter* mSplitterAgenda; | 261 | KDGanttMinimizeSplitter* mSplitterAgenda; |
263 | QPushButton *mExpandButton; | 262 | QPushButton *mExpandButton; |
264 | 263 | ||
265 | DateList mSelectedDates; // List of dates to be displayed | 264 | DateList mSelectedDates; // List of dates to be displayed |
266 | int mViewType; | 265 | int mViewType; |
267 | 266 | ||
268 | bool mWeekStartsMonday; | 267 | bool mWeekStartsMonday; |
269 | int mStartHour; | 268 | int mStartHour; |
270 | 269 | ||
271 | KOEventPopupMenu *mAgendaPopup; | 270 | KOEventPopupMenu *mAgendaPopup; |
272 | KOEventPopupMenu *mAllDayAgendaPopup; | 271 | KOEventPopupMenu *mAllDayAgendaPopup; |
273 | 272 | ||
274 | EventIndicator *mEventIndicatorTop; | 273 | EventIndicator *mEventIndicatorTop; |
275 | EventIndicator *mEventIndicatorBottom; | 274 | EventIndicator *mEventIndicatorBottom; |
276 | 275 | ||
277 | QMemArray<int> mMinY; | 276 | QMemArray<int> mMinY; |
278 | QMemArray<int> mMaxY; | 277 | QMemArray<int> mMaxY; |
279 | 278 | ||
280 | QMemArray<bool> mHolidayMask; | 279 | QMemArray<bool> mHolidayMask; |
281 | 280 | ||
282 | QPixmap mExpandedPixmap; | 281 | QPixmap mExpandedPixmap; |
283 | QPixmap mNotExpandedPixmap; | 282 | QPixmap mNotExpandedPixmap; |
284 | QPtrList<KOAgendaButton> mDayLabelsList; | 283 | QPtrList<KOAgendaButton> mDayLabelsList; |
285 | QDateTime mTimeSpanBegin; | 284 | QDateTime mTimeSpanBegin; |
286 | QDateTime mTimeSpanEnd; | 285 | QDateTime mTimeSpanEnd; |
287 | bool mTimeSpanInAllDay; | 286 | bool mTimeSpanInAllDay; |
288 | void keyPressEvent ( QKeyEvent * e ); | 287 | void keyPressEvent ( QKeyEvent * e ); |
289 | }; | 288 | }; |
290 | 289 | ||
291 | #endif // KOAGENDAVIEW_H | 290 | #endif // KOAGENDAVIEW_H |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index 9e32c18..1c74307 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -1,1951 +1,2011 @@ | |||
1 | #include <stdlib.h> | 1 | #include <stdlib.h> |
2 | 2 | ||
3 | #include <qaction.h> | 3 | #include <qaction.h> |
4 | #include <qpopupmenu.h> | 4 | #include <qpopupmenu.h> |
5 | #include <qpainter.h> | 5 | #include <qpainter.h> |
6 | #include <qwhatsthis.h> | 6 | #include <qwhatsthis.h> |
7 | #include <qpushbutton.h> | 7 | #include <qpushbutton.h> |
8 | #include <qmessagebox.h> | 8 | #include <qmessagebox.h> |
9 | #include <qlineedit.h> | 9 | #include <qlineedit.h> |
10 | #include <qtextcodec.h> | 10 | #include <qtextcodec.h> |
11 | #include <qfile.h> | 11 | #include <qfile.h> |
12 | #include <qdir.h> | 12 | #include <qdir.h> |
13 | #include <qapp.h> | 13 | #include <qapp.h> |
14 | #include <qfileinfo.h> | 14 | #include <qfileinfo.h> |
15 | #include <qlabel.h> | 15 | #include <qlabel.h> |
16 | #include <qspinbox.h> | 16 | #include <qspinbox.h> |
17 | #include <qcheckbox.h> | 17 | #include <qcheckbox.h> |
18 | #include <qmap.h> | 18 | #include <qmap.h> |
19 | #include <qwmatrix.h> | 19 | #include <qwmatrix.h> |
20 | #include <qtextbrowser.h> | 20 | #include <qtextbrowser.h> |
21 | #include <qtextstream.h> | 21 | #include <qtextstream.h> |
22 | #ifndef DESKTOP_VERSION | 22 | #ifndef DESKTOP_VERSION |
23 | #include <qpe/global.h> | 23 | #include <qpe/global.h> |
24 | #include <qpe/qpemenubar.h> | 24 | #include <qpe/qpemenubar.h> |
25 | #include <qpe/qpetoolbar.h> | 25 | #include <qpe/qpetoolbar.h> |
26 | #include <qpe/resource.h> | 26 | #include <qpe/resource.h> |
27 | #include <qpe/qpeapplication.h> | 27 | #include <qpe/qpeapplication.h> |
28 | #include <qtopia/alarmserver.h> | 28 | #include <qtopia/alarmserver.h> |
29 | #include <qtopia/qcopenvelope_qws.h> | 29 | #include <qtopia/qcopenvelope_qws.h> |
30 | #include <unistd.h> // for sleep | 30 | #include <unistd.h> // for sleep |
31 | #else | 31 | #else |
32 | #include <qmenubar.h> | 32 | #include <qmenubar.h> |
33 | #include <qtoolbar.h> | 33 | #include <qtoolbar.h> |
34 | #include <qapplication.h> | 34 | #include <qapplication.h> |
35 | //#include <resource.h> | 35 | //#include <resource.h> |
36 | 36 | ||
37 | #endif | 37 | #endif |
38 | #include <libkcal/calendarlocal.h> | 38 | #include <libkcal/calendarlocal.h> |
39 | #include <libkcal/todo.h> | 39 | #include <libkcal/todo.h> |
40 | #include <libkcal/phoneformat.h> | 40 | #include <libkcal/phoneformat.h> |
41 | #include <libkdepim/ksyncprofile.h> | 41 | #include <libkdepim/ksyncprofile.h> |
42 | #include <libkdepim/phoneaccess.h> | 42 | #include <libkdepim/phoneaccess.h> |
43 | #include <libkcal/kincidenceformatter.h> | 43 | #include <libkcal/kincidenceformatter.h> |
44 | #include <libkdepim/kpimglobalprefs.h> | 44 | #include <libkdepim/kpimglobalprefs.h> |
45 | 45 | ||
46 | #include "calendarview.h" | 46 | #include "calendarview.h" |
47 | #include "koviewmanager.h" | 47 | #include "koviewmanager.h" |
48 | #include "datenavigator.h" | 48 | #include "datenavigator.h" |
49 | #include "koagendaview.h" | 49 | #include "koagendaview.h" |
50 | #include "koagenda.h" | 50 | #include "koagenda.h" |
51 | #include "kodialogmanager.h" | 51 | #include "kodialogmanager.h" |
52 | #include "kdialogbase.h" | 52 | #include "kdialogbase.h" |
53 | #include "kapplication.h" | 53 | #include "kapplication.h" |
54 | #include "kofilterview.h" | 54 | #include "kofilterview.h" |
55 | #include "kstandarddirs.h" | 55 | #include "kstandarddirs.h" |
56 | #include "koprefs.h" | 56 | #include "koprefs.h" |
57 | #include "kfiledialog.h" | 57 | #include "kfiledialog.h" |
58 | #include "koglobals.h" | 58 | #include "koglobals.h" |
59 | #include "kglobal.h" | 59 | #include "kglobal.h" |
60 | #include "klocale.h" | 60 | #include "klocale.h" |
61 | #include "kconfig.h" | 61 | #include "kconfig.h" |
62 | #include "simplealarmclient.h" | 62 | #include "simplealarmclient.h" |
63 | #include "externalapphandler.h" | 63 | #include "externalapphandler.h" |
64 | 64 | ||
65 | using namespace KCal; | 65 | using namespace KCal; |
66 | #ifndef _WIN32_ | 66 | #ifndef _WIN32_ |
67 | #include <unistd.h> | 67 | #include <unistd.h> |
68 | #else | 68 | #else |
69 | #ifdef _OL_IMPORT_ | 69 | #ifdef _OL_IMPORT_ |
70 | #include "koimportoldialog.h" | 70 | #include "koimportoldialog.h" |
71 | #endif | 71 | #endif |
72 | #endif | 72 | #endif |
73 | #include "mainwindow.h" | 73 | #include "mainwindow.h" |
74 | 74 | ||
75 | class KOex2phonePrefs : public QDialog | 75 | class KOex2phonePrefs : public QDialog |
76 | { | 76 | { |
77 | public: | 77 | public: |
78 | KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) : | 78 | KOex2phonePrefs( QWidget *parent=0, const char *name=0 ) : |
79 | QDialog( parent, name, true ) | 79 | QDialog( parent, name, true ) |
80 | { | 80 | { |
81 | setCaption( i18n("Export to phone options") ); | 81 | setCaption( i18n("Export to phone options") ); |
82 | QVBoxLayout* lay = new QVBoxLayout( this ); | 82 | QVBoxLayout* lay = new QVBoxLayout( this ); |
83 | lay->setSpacing( 3 ); | 83 | lay->setSpacing( 3 ); |
84 | lay->setMargin( 3 ); | 84 | lay->setMargin( 3 ); |
85 | QLabel *lab; | 85 | QLabel *lab; |
86 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); | 86 | lay->addWidget(lab = new QLabel( i18n("Please read Help-Sync Howto\nto know what settings to use."), this ) ); |
87 | lab->setAlignment (AlignHCenter ); | 87 | lab->setAlignment (AlignHCenter ); |
88 | QHBox* temphb; | 88 | QHBox* temphb; |
89 | temphb = new QHBox( this ); | 89 | temphb = new QHBox( this ); |
90 | new QLabel( i18n("I/O device: "), temphb ); | 90 | new QLabel( i18n("I/O device: "), temphb ); |
91 | mPhoneDevice = new QLineEdit( temphb); | 91 | mPhoneDevice = new QLineEdit( temphb); |
92 | lay->addWidget( temphb ); | 92 | lay->addWidget( temphb ); |
93 | temphb = new QHBox( this ); | 93 | temphb = new QHBox( this ); |
94 | new QLabel( i18n("Connection: "), temphb ); | 94 | new QLabel( i18n("Connection: "), temphb ); |
95 | mPhoneConnection = new QLineEdit( temphb); | 95 | mPhoneConnection = new QLineEdit( temphb); |
96 | lay->addWidget( temphb ); | 96 | lay->addWidget( temphb ); |
97 | temphb = new QHBox( this ); | 97 | temphb = new QHBox( this ); |
98 | new QLabel( i18n("Model(opt.): "), temphb ); | 98 | new QLabel( i18n("Model(opt.): "), temphb ); |
99 | mPhoneModel = new QLineEdit( temphb); | 99 | mPhoneModel = new QLineEdit( temphb); |
100 | lay->addWidget( temphb ); | 100 | lay->addWidget( temphb ); |
101 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); | 101 | mWriteBackFuture= new QCheckBox( i18n("Write back events in future only"), this ); |
102 | mWriteBackFuture->setChecked( true ); | 102 | mWriteBackFuture->setChecked( true ); |
103 | lay->addWidget( mWriteBackFuture ); | 103 | lay->addWidget( mWriteBackFuture ); |
104 | temphb = new QHBox( this ); | 104 | temphb = new QHBox( this ); |
105 | new QLabel( i18n("Max. weeks in future: ") , temphb ); | 105 | new QLabel( i18n("Max. weeks in future: ") , temphb ); |
106 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); | 106 | mWriteBackFutureWeeks= new QSpinBox(1,104, 1, temphb); |
107 | mWriteBackFutureWeeks->setValue( 8 ); | 107 | mWriteBackFutureWeeks->setValue( 8 ); |
108 | lay->addWidget( temphb ); | 108 | lay->addWidget( temphb ); |
109 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); | 109 | lay->addWidget(lab = new QLabel( i18n("NOTE: This will remove all old\ntodo/calendar data on phone!"), this ) ); |
110 | lab->setAlignment (AlignHCenter ); | 110 | lab->setAlignment (AlignHCenter ); |
111 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); | 111 | QPushButton * ok = new QPushButton( i18n("Export to mobile phone!"), this ); |
112 | lay->addWidget( ok ); | 112 | lay->addWidget( ok ); |
113 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); | 113 | QPushButton * cancel = new QPushButton( i18n("Cancel"), this ); |
114 | lay->addWidget( cancel ); | 114 | lay->addWidget( cancel ); |
115 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); | 115 | connect ( ok,SIGNAL(clicked() ),this , SLOT ( accept() ) ); |
116 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); | 116 | connect (cancel, SIGNAL(clicked() ), this, SLOT ( reject()) ); |
117 | resize( 220, 240 ); | 117 | resize( 220, 240 ); |
118 | qApp->processEvents(); | 118 | qApp->processEvents(); |
119 | int dw = QApplication::desktop()->width(); | 119 | int dw = QApplication::desktop()->width(); |
120 | int dh = QApplication::desktop()->height(); | 120 | int dh = QApplication::desktop()->height(); |
121 | move( (dw-width())/2, (dh - height() )/2 ); | 121 | move( (dw-width())/2, (dh - height() )/2 ); |
122 | } | 122 | } |
123 | 123 | ||
124 | public: | 124 | public: |
125 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; | 125 | QLineEdit* mPhoneConnection, *mPhoneDevice, *mPhoneModel; |
126 | QCheckBox* mWriteBackFuture; | 126 | QCheckBox* mWriteBackFuture; |
127 | QSpinBox* mWriteBackFutureWeeks; | 127 | QSpinBox* mWriteBackFutureWeeks; |
128 | }; | 128 | }; |
129 | 129 | ||
130 | int globalFlagBlockStartup; | 130 | int globalFlagBlockStartup; |
131 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : | 131 | MainWindow::MainWindow( QWidget *parent, const char *name, QString msg) : |
132 | QMainWindow( parent, name ) | 132 | QMainWindow( parent, name ) |
133 | { | 133 | { |
134 | 134 | ||
135 | #ifdef DESKTOP_VERSION | 135 | #ifdef DESKTOP_VERSION |
136 | setFont( QFont("Arial"), 14 ); | 136 | setFont( QFont("Arial"), 14 ); |
137 | #endif | 137 | #endif |
138 | mClosed = false; | 138 | mClosed = false; |
139 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; | 139 | //QString confFile = KStandardDirs::appDir() + "config/korganizerrc"; |
140 | QString confFile = locateLocal("config","korganizerrc"); | 140 | QString confFile = locateLocal("config","korganizerrc"); |
141 | QFileInfo finf ( confFile ); | 141 | QFileInfo finf ( confFile ); |
142 | bool showWarning = !finf.exists(); | 142 | bool showWarning = !finf.exists(); |
143 | setIcon(SmallIcon( "ko24" ) ); | 143 | setIcon(SmallIcon( "ko24" ) ); |
144 | mBlockAtStartup = true; | 144 | mBlockAtStartup = true; |
145 | mFlagKeyPressed = false; | 145 | mFlagKeyPressed = false; |
146 | setCaption("KOrganizer/Pi"); | 146 | setCaption("KOrganizer/Pi"); |
147 | KPimGlobalPrefs::instance()->setGlobalConfig(); | 147 | KPimGlobalPrefs::instance()->setGlobalConfig(); |
148 | KOPrefs *p = KOPrefs::instance(); | 148 | KOPrefs *p = KOPrefs::instance(); |
149 | if ( p->mHourSize > 18 ) | 149 | if ( p->mHourSize > 18 ) |
150 | p->mHourSize = 18; | 150 | p->mHourSize = 18; |
151 | QMainWindow::ToolBarDock tbd; | 151 | QMainWindow::ToolBarDock tbd; |
152 | if ( p->mToolBarHor ) { | 152 | if ( p->mToolBarHor ) { |
153 | if ( p->mToolBarUp ) | 153 | if ( p->mToolBarUp ) |
154 | tbd = Bottom; | 154 | tbd = Bottom; |
155 | else | 155 | else |
156 | tbd = Top; | 156 | tbd = Top; |
157 | } | 157 | } |
158 | else { | 158 | else { |
159 | if ( p->mToolBarUp ) | 159 | if ( p->mToolBarUp ) |
160 | tbd = Right; | 160 | tbd = Right; |
161 | else | 161 | else |
162 | tbd = Left; | 162 | tbd = Left; |
163 | } | 163 | } |
164 | if ( KOPrefs::instance()->mUseAppColors ) | 164 | if ( KOPrefs::instance()->mUseAppColors ) |
165 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); | 165 | QApplication::setPalette( QPalette (KOPrefs::instance()->mAppColor1, KOPrefs::instance()->mAppColor2), true ); |
166 | globalFlagBlockStartup = 1; | 166 | globalFlagBlockStartup = 1; |
167 | iconToolBar = new QPEToolBar( this ); | 167 | iconToolBar = new QPEToolBar( this ); |
168 | addToolBar (iconToolBar , tbd ); | 168 | addToolBar (iconToolBar , tbd ); |
169 | mCalendarModifiedFlag = false; | 169 | mCalendarModifiedFlag = false; |
170 | 170 | ||
171 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); | 171 | QLabel* splash = new QLabel(i18n("KO/Pi is starting ... "), this ); |
172 | splash->setAlignment ( AlignCenter ); | 172 | splash->setAlignment ( AlignCenter ); |
173 | setCentralWidget( splash ); | 173 | setCentralWidget( splash ); |
174 | #ifndef DESKTOP_VERSION | 174 | #ifndef DESKTOP_VERSION |
175 | showMaximized(); | 175 | showMaximized(); |
176 | #endif | 176 | #endif |
177 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); | 177 | //qDebug("Mainwidget x %d y %d w %d h %d", x(), y(), width(), height ()); |
178 | setDefaultPreferences(); | 178 | setDefaultPreferences(); |
179 | mCalendar = new CalendarLocal(); | 179 | mCalendar = new CalendarLocal(); |
180 | mView = new CalendarView( mCalendar, this,"mCalendar " ); | 180 | mView = new CalendarView( mCalendar, this,"mCalendar " ); |
181 | mView->hide(); | 181 | mView->hide(); |
182 | //mView->resize(splash->size() ); | 182 | //mView->resize(splash->size() ); |
183 | initActions(); | 183 | initActions(); |
184 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); | 184 | mSyncManager = new KSyncManager((QWidget*)this, (KSyncInterface*)mView, KSyncManager::KOPI, KOPrefs::instance(), syncMenu); |
185 | mSyncManager->setBlockSave(false); | 185 | mSyncManager->setBlockSave(false); |
186 | mView->setSyncManager(mSyncManager); | 186 | mView->setSyncManager(mSyncManager); |
187 | #ifndef DESKTOP_VERSION | 187 | #ifndef DESKTOP_VERSION |
188 | iconToolBar->show(); | 188 | iconToolBar->show(); |
189 | qApp->processEvents(); | 189 | qApp->processEvents(); |
190 | #endif | 190 | #endif |
191 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); | 191 | //qDebug("Splashwidget x %d y %d w %d h %d", splash-> x(), splash->y(), splash->width(),splash-> height ()); |
192 | int vh = height() ; | 192 | int vh = height() ; |
193 | int vw = width(); | 193 | int vw = width(); |
194 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); | 194 | //qDebug("Toolbar hei %d ",iconToolBar->height() ); |
195 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { | 195 | if ( iconToolBar->orientation () == Qt:: Horizontal ) { |
196 | vh -= iconToolBar->height(); | 196 | vh -= iconToolBar->height(); |
197 | } else { | 197 | } else { |
198 | vw -= iconToolBar->height(); | 198 | vw -= iconToolBar->height(); |
199 | } | 199 | } |
200 | //mView->setMaximumSize( splash->size() ); | 200 | //mView->setMaximumSize( splash->size() ); |
201 | //mView->resize( splash->size() ); | 201 | //mView->resize( splash->size() ); |
202 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 202 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
203 | mView->readSettings(); | 203 | mView->readSettings(); |
204 | bool newFile = false; | 204 | bool newFile = false; |
205 | if( !QFile::exists( defaultFileName() ) ) { | 205 | if( !QFile::exists( defaultFileName() ) ) { |
206 | QFileInfo finfo ( defaultFileName() ); | 206 | QFileInfo finfo ( defaultFileName() ); |
207 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); | 207 | QString oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/Applications/korganizer/mycalendar.ics"); |
208 | qDebug("oldfile %s ", oldFile.latin1()); | 208 | qDebug("oldfile %s ", oldFile.latin1()); |
209 | 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"; | 209 | 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"; |
210 | finfo.setFile( oldFile ); | 210 | finfo.setFile( oldFile ); |
211 | if (finfo.exists() ) { | 211 | if (finfo.exists() ) { |
212 | KMessageBox::information( this, message); | 212 | KMessageBox::information( this, message); |
213 | mView->openCalendar( oldFile ); | 213 | mView->openCalendar( oldFile ); |
214 | qApp->processEvents(); | 214 | qApp->processEvents(); |
215 | } else { | 215 | } else { |
216 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); | 216 | oldFile = QDir::convertSeparators( QDir::homeDirPath()+"/korganizer/mycalendar.ics"); |
217 | finfo.setFile( oldFile ); | 217 | finfo.setFile( oldFile ); |
218 | if (finfo.exists() ) { | 218 | if (finfo.exists() ) { |
219 | KMessageBox::information( this, message); | 219 | KMessageBox::information( this, message); |
220 | mView->openCalendar( oldFile ); | 220 | mView->openCalendar( oldFile ); |
221 | qApp->processEvents(); | 221 | qApp->processEvents(); |
222 | } | 222 | } |
223 | } | 223 | } |
224 | mView->saveCalendar( defaultFileName() ); | 224 | mView->saveCalendar( defaultFileName() ); |
225 | newFile = true; | 225 | newFile = true; |
226 | } | 226 | } |
227 | 227 | ||
228 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 228 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
229 | mView->openCalendar( defaultFileName() ); | 229 | mView->openCalendar( defaultFileName() ); |
230 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 230 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
231 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); | 231 | qDebug("KO: Calendar loading time: %d ms",msNeeded ); |
232 | 232 | ||
233 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { | 233 | if ( KPimGlobalPrefs::instance()->mPreferredLanguage != KOPrefs::instance()->mOldLoadedLanguage ) { |
234 | KOPrefs::instance()->setCategoryDefaults(); | 234 | KOPrefs::instance()->setCategoryDefaults(); |
235 | int count = mView->addCategories(); | 235 | int count = mView->addCategories(); |
236 | } | 236 | } |
237 | processIncidenceSelection( 0 ); | 237 | processIncidenceSelection( 0 ); |
238 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), | 238 | connect( mView, SIGNAL( incidenceSelected( Incidence * ) ), |
239 | SLOT( processIncidenceSelection( Incidence * ) ) ); | 239 | SLOT( processIncidenceSelection( Incidence * ) ) ); |
240 | connect( mView, SIGNAL( modifiedChanged( bool ) ), | 240 | connect( mView, SIGNAL( modifiedChanged( bool ) ), |
241 | SLOT( slotModifiedChanged( bool ) ) ); | 241 | SLOT( slotModifiedChanged( bool ) ) ); |
242 | 242 | ||
243 | 243 | ||
244 | connect( mView, SIGNAL( tempDisableBR(bool) ), | 244 | connect( mView, SIGNAL( tempDisableBR(bool) ), |
245 | SLOT( disableBR(bool) ) ); | 245 | SLOT( disableBR(bool) ) ); |
246 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); | 246 | connect( &mSaveTimer, SIGNAL( timeout() ), SLOT( save() ) ); |
247 | mView->setModified( false ); | 247 | mView->setModified( false ); |
248 | mBlockAtStartup = false; | 248 | mBlockAtStartup = false; |
249 | mView->setModified( false ); | 249 | mView->setModified( false ); |
250 | setCentralWidget( mView ); | 250 | setCentralWidget( mView ); |
251 | globalFlagBlockStartup = 0; | 251 | globalFlagBlockStartup = 0; |
252 | mView->show(); | 252 | mView->show(); |
253 | delete splash; | 253 | delete splash; |
254 | if ( newFile ) | 254 | if ( newFile ) |
255 | mView->updateConfig(); | 255 | mView->updateConfig(); |
256 | // qApp->processEvents(); | 256 | // qApp->processEvents(); |
257 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); | 257 | //qDebug("MainView x %d y %d w %d h %d", mView->x(),mView-> y(), mView->width(), mView->height ()); |
258 | //fillSyncMenu(); | 258 | //fillSyncMenu(); |
259 | 259 | ||
260 | 260 | ||
261 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); | 261 | connect(mSyncManager , SIGNAL( save() ), this, SLOT( save() ) ); |
262 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); | 262 | connect(mView , SIGNAL( save() ), this, SLOT( save() ) ); |
263 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); | 263 | connect(mView , SIGNAL( saveStopTimer() ), this, SLOT( saveStopTimer() ) ); |
264 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); | 264 | connect(mSyncManager , SIGNAL( request_file() ), this, SLOT( syncFileRequest() ) ); |
265 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); | 265 | connect(mSyncManager , SIGNAL( getFile( bool )), this, SLOT(getFile( bool ) ) ); |
266 | mSyncManager->setDefaultFileName( defaultFileName()); | 266 | mSyncManager->setDefaultFileName( defaultFileName()); |
267 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); | 267 | connect ( syncMenu, SIGNAL( activated ( int ) ), mSyncManager, SLOT (slotSyncMenu( int ) ) ); |
268 | mSyncManager->fillSyncMenu(); | 268 | mSyncManager->fillSyncMenu(); |
269 | 269 | ||
270 | 270 | ||
271 | 271 | ||
272 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); | 272 | mView->viewManager()->agendaView()->setStartHour( KOPrefs::instance()->mDayBegins ); |
273 | if ( showWarning ) { | 273 | if ( showWarning ) { |
274 | KMessageBox::information( this, | 274 | KMessageBox::information( this, |
275 | "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"); | 275 | "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"); |
276 | qApp->processEvents(); | 276 | qApp->processEvents(); |
277 | mView->dialogManager()->showSyncOptions(); | 277 | mView->dialogManager()->showSyncOptions(); |
278 | } | 278 | } |
279 | 279 | ||
280 | //US listen for result adressed from Ka/Pi | 280 | //US listen for result adressed from Ka/Pi |
281 | #ifndef DESKTOP_VERSION | 281 | #ifndef DESKTOP_VERSION |
282 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); | 282 | connect(qApp, SIGNAL (appMessage ( const QCString &, const QByteArray & )), ExternalAppHandler::instance(), SLOT (appMessage ( const QCString &, const QByteArray & ))); |
283 | #endif | 283 | #endif |
284 | #ifndef DESKTOP_VERSION | 284 | #ifndef DESKTOP_VERSION |
285 | infrared = 0; | 285 | infrared = 0; |
286 | #endif | 286 | #endif |
287 | 287 | updateWeek( mView->startDate() ); | |
288 | connect( mView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | ||
289 | SLOT( updateWeekNum( const KCal::DateList & ) ) ); | ||
288 | mBRdisabled = false; | 290 | mBRdisabled = false; |
289 | //toggleBeamReceive(); | 291 | //toggleBeamReceive(); |
290 | } | 292 | } |
291 | MainWindow::~MainWindow() | 293 | MainWindow::~MainWindow() |
292 | { | 294 | { |
293 | //qDebug("MainWindow::~MainWindow() "); | 295 | //qDebug("MainWindow::~MainWindow() "); |
294 | //save toolbar location | 296 | //save toolbar location |
295 | delete mCalendar; | 297 | delete mCalendar; |
296 | delete mSyncManager; | 298 | delete mSyncManager; |
297 | #ifndef DESKTOP_VERSION | 299 | #ifndef DESKTOP_VERSION |
298 | if ( infrared ) | 300 | if ( infrared ) |
299 | delete infrared; | 301 | delete infrared; |
300 | #endif | 302 | #endif |
301 | 303 | ||
302 | 304 | ||
303 | } | 305 | } |
304 | 306 | ||
305 | void MainWindow::disableBR(bool b) | 307 | void MainWindow::disableBR(bool b) |
306 | { | 308 | { |
307 | #ifndef DESKTOP_VERSION | 309 | #ifndef DESKTOP_VERSION |
308 | if ( b ) { | 310 | if ( b ) { |
309 | if ( infrared ) { | 311 | if ( infrared ) { |
310 | toggleBeamReceive(); | 312 | toggleBeamReceive(); |
311 | mBRdisabled = true; | 313 | mBRdisabled = true; |
312 | } | 314 | } |
313 | mBRdisabled = true; | 315 | mBRdisabled = true; |
314 | } else { | 316 | } else { |
315 | if ( mBRdisabled ) { | 317 | if ( mBRdisabled ) { |
316 | mBRdisabled = false; | 318 | mBRdisabled = false; |
317 | //makes no sense,because other cal ap is probably running | 319 | //makes no sense,because other cal ap is probably running |
318 | // toggleBeamReceive(); | 320 | // toggleBeamReceive(); |
319 | } | 321 | } |
320 | } | 322 | } |
321 | #endif | 323 | #endif |
322 | 324 | ||
323 | } | 325 | } |
324 | bool MainWindow::beamReceiveEnabled() | 326 | bool MainWindow::beamReceiveEnabled() |
325 | { | 327 | { |
326 | #ifndef DESKTOP_VERSION | 328 | #ifndef DESKTOP_VERSION |
327 | return ( infrared != 0 ); | 329 | return ( infrared != 0 ); |
328 | #endif | 330 | #endif |
329 | return false; | 331 | return false; |
330 | } | 332 | } |
331 | 333 | ||
332 | void MainWindow::toggleBeamReceive() | 334 | void MainWindow::toggleBeamReceive() |
333 | { | 335 | { |
334 | if ( mBRdisabled ) | 336 | if ( mBRdisabled ) |
335 | return; | 337 | return; |
336 | #ifndef DESKTOP_VERSION | 338 | #ifndef DESKTOP_VERSION |
337 | if ( infrared ) { | 339 | if ( infrared ) { |
338 | qDebug("disable BeamReceive "); | 340 | qDebug("disable BeamReceive "); |
339 | delete infrared; | 341 | delete infrared; |
340 | infrared = 0; | 342 | infrared = 0; |
341 | brAction->setOn(false); | 343 | brAction->setOn(false); |
342 | return; | 344 | return; |
343 | } | 345 | } |
344 | qDebug("enable BeamReceive "); | 346 | qDebug("enable BeamReceive "); |
345 | brAction->setOn(true); | 347 | brAction->setOn(true); |
346 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; | 348 | infrared = new QCopChannel("QPE/Application/datebook",this, "channel" ) ; |
347 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); | 349 | QObject::connect( infrared, SIGNAL (received ( const QCString &, const QByteArray & )),this, SLOT(recieve( const QCString&, const QByteArray& ))); |
348 | #endif | 350 | #endif |
349 | } | 351 | } |
350 | void MainWindow::showMaximized () | 352 | void MainWindow::showMaximized () |
351 | { | 353 | { |
352 | #ifndef DESKTOP_VERSION | 354 | #ifndef DESKTOP_VERSION |
353 | if ( ! globalFlagBlockStartup ) | 355 | if ( ! globalFlagBlockStartup ) |
354 | if ( mClosed ) | 356 | if ( mClosed ) |
355 | mView->goToday(); | 357 | mView->goToday(); |
356 | #endif | 358 | #endif |
357 | QWidget::showMaximized () ; | 359 | QWidget::showMaximized () ; |
358 | mClosed = false; | 360 | mClosed = false; |
359 | } | 361 | } |
360 | void MainWindow::closeEvent( QCloseEvent* ce ) | 362 | void MainWindow::closeEvent( QCloseEvent* ce ) |
361 | { | 363 | { |
362 | 364 | ||
363 | 365 | ||
364 | 366 | ||
365 | if ( ! KOPrefs::instance()->mAskForQuit ) { | 367 | if ( ! KOPrefs::instance()->mAskForQuit ) { |
366 | saveOnClose(); | 368 | saveOnClose(); |
367 | mClosed = true; | 369 | mClosed = true; |
368 | ce->accept(); | 370 | ce->accept(); |
369 | return; | 371 | return; |
370 | 372 | ||
371 | } | 373 | } |
372 | 374 | ||
373 | switch( QMessageBox::information( this, "KO/Pi", | 375 | switch( QMessageBox::information( this, "KO/Pi", |
374 | i18n("Do you really want\nto close KO/Pi?"), | 376 | i18n("Do you really want\nto close KO/Pi?"), |
375 | i18n("Close"), i18n("No"), | 377 | i18n("Close"), i18n("No"), |
376 | 0, 0 ) ) { | 378 | 0, 0 ) ) { |
377 | case 0: | 379 | case 0: |
378 | saveOnClose(); | 380 | saveOnClose(); |
379 | mClosed = true; | 381 | mClosed = true; |
380 | ce->accept(); | 382 | ce->accept(); |
381 | break; | 383 | break; |
382 | case 1: | 384 | case 1: |
383 | ce->ignore(); | 385 | ce->ignore(); |
384 | break; | 386 | break; |
385 | case 2: | 387 | case 2: |
386 | 388 | ||
387 | default: | 389 | default: |
388 | break; | 390 | break; |
389 | } | 391 | } |
390 | 392 | ||
391 | 393 | ||
392 | } | 394 | } |
393 | 395 | ||
394 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) | 396 | void MainWindow::recieve( const QCString& cmsg, const QByteArray& data ) |
395 | { | 397 | { |
396 | QDataStream stream( data, IO_ReadOnly ); | 398 | QDataStream stream( data, IO_ReadOnly ); |
397 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); | 399 | // QMessageBox::about( this, "About KOrganizer/Pi", "*" +msg +"*" ); |
398 | //QString datamess; | 400 | //QString datamess; |
399 | //qDebug("message "); | 401 | //qDebug("message "); |
400 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); | 402 | qDebug("KO: QCOP message received: %s ", cmsg.data() ); |
401 | 403 | ||
402 | if ( cmsg == "setDocument(QString)" ) { | 404 | if ( cmsg == "setDocument(QString)" ) { |
403 | QDataStream stream( data, IO_ReadOnly ); | 405 | QDataStream stream( data, IO_ReadOnly ); |
404 | QString fileName; | 406 | QString fileName; |
405 | stream >> fileName; | 407 | stream >> fileName; |
406 | //qDebug("filename %s ", fileName.latin1()); | 408 | //qDebug("filename %s ", fileName.latin1()); |
407 | showMaximized(); | 409 | showMaximized(); |
408 | raise(); | 410 | raise(); |
409 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; | 411 | KOPrefs::instance()->mLastSyncedLocalFile = fileName ; |
410 | mSyncManager->slotSyncMenu( 1002 ); | 412 | mSyncManager->slotSyncMenu( 1002 ); |
411 | return; | 413 | return; |
412 | } | 414 | } |
413 | 415 | ||
414 | if ( cmsg == "-writeFile" ) { | 416 | if ( cmsg == "-writeFile" ) { |
415 | // I made from the "-writeFile" an "-writeAlarm" | 417 | // I made from the "-writeFile" an "-writeAlarm" |
416 | mView->viewManager()->showWhatsNextView(); | 418 | mView->viewManager()->showWhatsNextView(); |
417 | mCalendar->checkAlarmForIncidence( 0, true); | 419 | mCalendar->checkAlarmForIncidence( 0, true); |
418 | showMaximized(); | 420 | showMaximized(); |
419 | raise(); | 421 | raise(); |
420 | return; | 422 | return; |
421 | 423 | ||
422 | } | 424 | } |
423 | if ( cmsg == "-writeFileSilent" ) { | 425 | if ( cmsg == "-writeFileSilent" ) { |
424 | // I made from the "-writeFile" an "-writeAlarm" | 426 | // I made from the "-writeFile" an "-writeAlarm" |
425 | // mView->viewManager()->showWhatsNextView(); | 427 | // mView->viewManager()->showWhatsNextView(); |
426 | mCalendar->checkAlarmForIncidence( 0, true); | 428 | mCalendar->checkAlarmForIncidence( 0, true); |
427 | //showMaximized(); | 429 | //showMaximized(); |
428 | //raise(); | 430 | //raise(); |
429 | hide(); | 431 | hide(); |
430 | return; | 432 | return; |
431 | } | 433 | } |
432 | if ( cmsg == "-newCountdown" ) { | 434 | if ( cmsg == "-newCountdown" ) { |
433 | qDebug("newCountdown "); | 435 | qDebug("newCountdown "); |
434 | 436 | ||
435 | } | 437 | } |
436 | QString msg ; | 438 | QString msg ; |
437 | QString allmsg = cmsg; | 439 | QString allmsg = cmsg; |
438 | while ( allmsg.length() > 0 ) { | 440 | while ( allmsg.length() > 0 ) { |
439 | int nextC = allmsg.find( "-", 1 ); | 441 | int nextC = allmsg.find( "-", 1 ); |
440 | if ( nextC == -1 ) { | 442 | if ( nextC == -1 ) { |
441 | msg = allmsg; | 443 | msg = allmsg; |
442 | allmsg = ""; | 444 | allmsg = ""; |
443 | } else{ | 445 | } else{ |
444 | msg = allmsg.left( nextC ); | 446 | msg = allmsg.left( nextC ); |
445 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); | 447 | allmsg = allmsg.mid( nextC, allmsg.length()-nextC ); |
446 | } | 448 | } |
447 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); | 449 | //qDebug("msg: %s all: %s ", msg.latin1(), allmsg.latin1() ); |
448 | if ( msg == "-newEvent" ) { | 450 | if ( msg == "-newEvent" ) { |
449 | mView->newEvent(); | 451 | mView->newEvent(); |
450 | } | 452 | } |
451 | if ( msg == "-newTodo" ) { | 453 | if ( msg == "-newTodo" ) { |
452 | mView->newTodo(); | 454 | mView->newTodo(); |
453 | 455 | ||
454 | } | 456 | } |
455 | if ( msg == "-showWN" ) { | 457 | if ( msg == "-showWN" ) { |
456 | mView->viewManager()->showWhatsNextView(); | 458 | mView->viewManager()->showWhatsNextView(); |
457 | } | 459 | } |
458 | if ( msg == "-showTodo" ) { | 460 | if ( msg == "-showTodo" ) { |
459 | mView->viewManager()->showTodoView(); | 461 | mView->viewManager()->showTodoView(); |
460 | } | 462 | } |
461 | if ( msg == "-showList" ) { | 463 | if ( msg == "-showList" ) { |
462 | mView->viewManager()->showListView(); | 464 | mView->viewManager()->showListView(); |
463 | } | 465 | } |
464 | else if ( msg == "-showDay" ) { | 466 | else if ( msg == "-showDay" ) { |
465 | mView->viewManager()->showDayView(); | 467 | mView->viewManager()->showDayView(); |
466 | } | 468 | } |
467 | else if ( msg == "-showWWeek" ) { | 469 | else if ( msg == "-showWWeek" ) { |
468 | mView->viewManager()->showWorkWeekView(); | 470 | mView->viewManager()->showWorkWeekView(); |
469 | } | 471 | } |
470 | else if ( msg == "-ringSync" ) { | 472 | else if ( msg == "-ringSync" ) { |
471 | mSyncManager->multiSync( false ); | 473 | mSyncManager->multiSync( false ); |
472 | } | 474 | } |
473 | else if ( msg == "-showWeek" ) { | 475 | else if ( msg == "-showWeek" ) { |
474 | mView->viewManager()->showWeekView(); | 476 | mView->viewManager()->showWeekView(); |
475 | } | 477 | } |
476 | else if ( msg == "-showTodo" ) { | 478 | else if ( msg == "-showTodo" ) { |
477 | mView->viewManager()->showTodoView(); | 479 | mView->viewManager()->showTodoView(); |
478 | } | 480 | } |
479 | else if ( msg == "-showJournal" ) { | 481 | else if ( msg == "-showJournal" ) { |
480 | mView->dateNavigator()->selectDates( 1 ); | 482 | mView->dateNavigator()->selectDates( 1 ); |
481 | mView->dateNavigator()->selectToday(); | 483 | mView->dateNavigator()->selectToday(); |
482 | mView->viewManager()->showJournalView(); | 484 | mView->viewManager()->showJournalView(); |
483 | } | 485 | } |
484 | else if ( msg == "-showKO" ) { | 486 | else if ( msg == "-showKO" ) { |
485 | mView->viewManager()->showNextXView(); | 487 | mView->viewManager()->showNextXView(); |
486 | } | 488 | } |
487 | else if ( msg == "-showWNext" || msg == "nextView()" ) { | 489 | else if ( msg == "-showWNext" || msg == "nextView()" ) { |
488 | mView->viewManager()->showWhatsNextView(); | 490 | mView->viewManager()->showWhatsNextView(); |
489 | } | 491 | } |
490 | else if ( msg == "-showNextXView" ) { | 492 | else if ( msg == "-showNextXView" ) { |
491 | mView->viewManager()->showNextXView(); | 493 | mView->viewManager()->showNextXView(); |
492 | } | 494 | } |
493 | 495 | ||
494 | 496 | ||
495 | } | 497 | } |
496 | 498 | ||
497 | showMaximized(); | 499 | showMaximized(); |
498 | raise(); | 500 | raise(); |
499 | } | 501 | } |
500 | 502 | ||
501 | QPixmap MainWindow::loadPixmap( QString name ) | 503 | QPixmap MainWindow::loadPixmap( QString name ) |
502 | { | 504 | { |
503 | return SmallIcon( name ); | 505 | return SmallIcon( name ); |
504 | 506 | ||
505 | } | 507 | } |
506 | void MainWindow::initActions() | 508 | void MainWindow::initActions() |
507 | { | 509 | { |
508 | //KOPrefs::instance()->mShowFullMenu | 510 | //KOPrefs::instance()->mShowFullMenu |
509 | iconToolBar->clear(); | 511 | iconToolBar->clear(); |
510 | KOPrefs *p = KOPrefs::instance(); | 512 | KOPrefs *p = KOPrefs::instance(); |
511 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); | 513 | //QPEMenuBar *menuBar1;// = new QPEMenuBar( iconToolBar ); |
512 | 514 | ||
513 | QPopupMenu *viewMenu = new QPopupMenu( this ); | 515 | QPopupMenu *viewMenu = new QPopupMenu( this ); |
514 | QPopupMenu *actionMenu = new QPopupMenu( this ); | 516 | QPopupMenu *actionMenu = new QPopupMenu( this ); |
515 | QPopupMenu *importMenu = new QPopupMenu( this ); | 517 | QPopupMenu *importMenu = new QPopupMenu( this ); |
516 | selectFilterMenu = new QPopupMenu( this ); | 518 | selectFilterMenu = new QPopupMenu( this ); |
517 | selectFilterMenu->setCheckable( true ); | 519 | selectFilterMenu->setCheckable( true ); |
518 | syncMenu = new QPopupMenu( this ); | 520 | syncMenu = new QPopupMenu( this ); |
519 | configureAgendaMenu = new QPopupMenu( this ); | 521 | configureAgendaMenu = new QPopupMenu( this ); |
520 | configureToolBarMenu = new QPopupMenu( this ); | 522 | configureToolBarMenu = new QPopupMenu( this ); |
521 | QPopupMenu *helpMenu = new QPopupMenu( this ); | 523 | QPopupMenu *helpMenu = new QPopupMenu( this ); |
522 | if ( KOPrefs::instance()->mShowFullMenu ) { | 524 | if ( KOPrefs::instance()->mShowFullMenu ) { |
523 | QMenuBar *menuBar1; | 525 | QMenuBar *menuBar1; |
524 | menuBar1 = menuBar(); | 526 | menuBar1 = menuBar(); |
525 | menuBar1->insertItem( i18n("File"), importMenu ); | 527 | menuBar1->insertItem( i18n("File"), importMenu ); |
526 | menuBar1->insertItem( i18n("View"), viewMenu ); | 528 | menuBar1->insertItem( i18n("View"), viewMenu ); |
527 | menuBar1->insertItem( i18n("Actions"), actionMenu ); | 529 | menuBar1->insertItem( i18n("Actions"), actionMenu ); |
528 | #ifdef DESKTOP_VERSION | 530 | #ifdef DESKTOP_VERSION |
529 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); | 531 | menuBar1->insertItem( i18n("Synchronize"), syncMenu ); |
530 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 532 | menuBar1->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
531 | #else | 533 | #else |
532 | menuBar1->insertItem( i18n("Sync"), syncMenu ); | 534 | menuBar1->insertItem( i18n("Sync"), syncMenu ); |
533 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); | 535 | menuBar1->insertItem( i18n("Agenda"),configureAgendaMenu ); |
534 | #endif | 536 | #endif |
535 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 537 | //menuBar1->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
536 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); | 538 | menuBar1->insertItem( i18n("Filter"),selectFilterMenu ); |
537 | menuBar1->insertItem( i18n("Help"), helpMenu ); | 539 | menuBar1->insertItem( i18n("Help"), helpMenu ); |
538 | } else { | 540 | } else { |
539 | QPEMenuBar *menuBar1; | 541 | QPEMenuBar *menuBar1; |
540 | menuBar1 = new QPEMenuBar( iconToolBar ); | 542 | menuBar1 = new QPEMenuBar( iconToolBar ); |
541 | QPopupMenu *menuBar = new QPopupMenu( this ); | 543 | QPopupMenu *menuBar = new QPopupMenu( this ); |
542 | menuBar1->insertItem( i18n("ME"), menuBar); | 544 | menuBar1->insertItem( i18n("ME"), menuBar); |
543 | menuBar->insertItem( i18n("File"), importMenu ); | 545 | menuBar->insertItem( i18n("File"), importMenu ); |
544 | menuBar->insertItem( i18n("View"), viewMenu ); | 546 | menuBar->insertItem( i18n("View"), viewMenu ); |
545 | menuBar->insertItem( i18n("Actions"), actionMenu ); | 547 | menuBar->insertItem( i18n("Actions"), actionMenu ); |
546 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); | 548 | menuBar->insertItem( i18n("Synchronize"), syncMenu ); |
547 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); | 549 | menuBar->insertItem( i18n("AgendaSize"),configureAgendaMenu ); |
548 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); | 550 | menuBar->insertItem( i18n("Toolbar"),configureToolBarMenu ); |
549 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); | 551 | menuBar->insertItem( i18n("Filter"),selectFilterMenu ); |
550 | menuBar->insertItem( i18n("Help"), helpMenu ); | 552 | menuBar->insertItem( i18n("Help"), helpMenu ); |
551 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); | 553 | //menuBar1->setMaximumWidth( menuBar1->sizeHint().width() ); |
552 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); | 554 | menuBar1->setMaximumSize( menuBar1->sizeHint( )); |
553 | } | 555 | } |
554 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); | 556 | connect ( selectFilterMenu, SIGNAL( activated ( int ) ), this, SLOT (selectFilter( int ) ) ); |
555 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); | 557 | connect ( selectFilterMenu, SIGNAL( aboutToShow() ), this, SLOT (fillFilterMenu() ) ); |
556 | 558 | ||
559 | menuBarWeek = new QPEMenuBar( iconToolBar ); | ||
560 | QPopupMenu * wpo = new QPopupMenu (this); | ||
561 | QPopupMenu * all = new QPopupMenu (this); | ||
562 | //wpo->insertItem( i18n("W#"), 0 ); | ||
563 | int first = 1; | ||
564 | int i; | ||
565 | for ( i = 1; i < 50; ++i ) { | ||
566 | if ( !(i%10) ) { | ||
567 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
568 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) ); | ||
569 | first = i; | ||
570 | wpo = new QPopupMenu (this); | ||
571 | } | ||
572 | wpo->insertItem( QString::number(i), i ); | ||
573 | } | ||
574 | for ( i = 50; i < 53; ++i ) { | ||
575 | wpo->insertItem( QString::number(i), i); | ||
576 | } | ||
577 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
578 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) ); | ||
579 | menuBarWeek->insertItem( "00",all,1); | ||
580 | menuBarWeek->setMaximumSize( menuBarWeek->sizeHint( )); | ||
581 | |||
582 | connect( this, SIGNAL( selectWeek ( int ) ), mView->dateNavigator(), SLOT( selectWeek ( int ) ) ); | ||
557 | // ****************** | 583 | // ****************** |
558 | QAction *action; | 584 | QAction *action; |
559 | QIconSet icon; | 585 | QIconSet icon; |
560 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); | 586 | // QPopupMenu *configureMenu= new QPopupMenu( menuBar ); |
561 | configureToolBarMenu->setCheckable( true ); | 587 | configureToolBarMenu->setCheckable( true ); |
562 | 588 | ||
563 | QString pathString = ""; | 589 | QString pathString = ""; |
564 | if ( !p->mToolBarMiniIcons ) { | 590 | if ( !p->mToolBarMiniIcons ) { |
565 | if ( QApplication::desktop()->width() < 480 ) | 591 | if ( QApplication::desktop()->width() < 480 ) |
566 | pathString += "icons16/"; | 592 | pathString += "icons16/"; |
567 | } else | 593 | } else |
568 | pathString += "iconsmini/"; | 594 | pathString += "iconsmini/"; |
569 | configureAgendaMenu->setCheckable( true ); | 595 | configureAgendaMenu->setCheckable( true ); |
570 | int iii ; | 596 | int iii ; |
571 | for ( iii = 1;iii<= 10 ;++iii ){ | 597 | for ( iii = 1;iii<= 10 ;++iii ){ |
572 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); | 598 | configureAgendaMenu->insertItem(i18n("Size %1").arg(iii), (iii+1)*2 ); |
573 | } | 599 | } |
574 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); | 600 | //configureMenu->insertItem( "AgendaSize",configureAgendaMenu ); |
575 | 601 | ||
576 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), | 602 | connect( configureAgendaMenu, SIGNAL( aboutToShow()), |
577 | this, SLOT( showConfigureAgenda( ) ) ); | 603 | this, SLOT( showConfigureAgenda( ) ) ); |
578 | 604 | ||
579 | icon = loadPixmap( pathString + "configure" ); | 605 | icon = loadPixmap( pathString + "configure" ); |
580 | action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this ); | 606 | action = new QAction( i18n("Configure"),icon, i18n("Configure..."), 0, this ); |
581 | action->addTo( actionMenu ); | 607 | action->addTo( actionMenu ); |
582 | connect( action, SIGNAL( activated() ), | 608 | connect( action, SIGNAL( activated() ), |
583 | mView, SLOT( edit_options() ) ); | 609 | mView, SLOT( edit_options() ) ); |
584 | actionMenu->insertSeparator(); | 610 | actionMenu->insertSeparator(); |
585 | 611 | ||
586 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); | 612 | action = new QAction( i18n("Undo Delete"), i18n("Undo Delete..."), 0, this ); |
587 | action->addTo( actionMenu ); | 613 | action->addTo( actionMenu ); |
588 | connect( action, SIGNAL( activated() ), | 614 | connect( action, SIGNAL( activated() ), |
589 | mView, SLOT( undo_delete() ) ); | 615 | mView, SLOT( undo_delete() ) ); |
590 | actionMenu->insertSeparator(); | 616 | actionMenu->insertSeparator(); |
591 | 617 | ||
592 | icon = loadPixmap( pathString + "newevent" ); | 618 | icon = loadPixmap( pathString + "newevent" ); |
593 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); | 619 | configureToolBarMenu->insertItem(i18n("Stretched TB"), 5 ); |
594 | configureToolBarMenu->insertSeparator(); | 620 | configureToolBarMenu->insertSeparator(); |
595 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); | 621 | configureToolBarMenu->insertItem(icon, i18n("New Event..."), 10 ); |
596 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); | 622 | QAction* ne_action = new QAction( i18n("New Event..."), icon, i18n("New Event..."), 0, this ); |
597 | ne_action->addTo( actionMenu ); | 623 | ne_action->addTo( actionMenu ); |
598 | connect( ne_action, SIGNAL( activated() ), | 624 | connect( ne_action, SIGNAL( activated() ), |
599 | mView, SLOT( newEvent() ) ); | 625 | mView, SLOT( newEvent() ) ); |
600 | icon = loadPixmap( pathString + "newtodo" ); | 626 | icon = loadPixmap( pathString + "newtodo" ); |
601 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); | 627 | configureToolBarMenu->insertItem(icon, i18n("New Todo..."), 20 ); |
602 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); | 628 | QAction* nt_action = new QAction( i18n("New Todo..."), icon, i18n("New Todo..."), 0, this ); |
603 | nt_action->addTo( actionMenu ); | 629 | nt_action->addTo( actionMenu ); |
604 | connect( nt_action, SIGNAL( activated() ), | 630 | connect( nt_action, SIGNAL( activated() ), |
605 | mView, SLOT( newTodo() ) ); | 631 | mView, SLOT( newTodo() ) ); |
606 | 632 | ||
607 | icon = loadPixmap( pathString + "today" ); | 633 | icon = loadPixmap( pathString + "today" ); |
608 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); | 634 | QAction* today_action = new QAction( i18n("Go to Today"), icon, i18n("Go to Today"), 0, this ); |
609 | today_action->addTo( viewMenu ); | 635 | today_action->addTo( viewMenu ); |
610 | connect( today_action, SIGNAL( activated() ), | 636 | connect( today_action, SIGNAL( activated() ), |
611 | mView, SLOT( goToday() ) ); | 637 | mView, SLOT( goToday() ) ); |
612 | viewMenu->insertSeparator(); | 638 | viewMenu->insertSeparator(); |
613 | 639 | ||
614 | icon = loadPixmap( pathString + "navi" ); | 640 | icon = loadPixmap( pathString + "navi" ); |
615 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); | 641 | action = new QAction( i18n("Toggle DateNavigator"), icon, i18n("Toggle DateNavigator"), 0, this ); |
616 | action->addTo( viewMenu ); | 642 | action->addTo( viewMenu ); |
617 | connect( action, SIGNAL( activated() ), | 643 | connect( action, SIGNAL( activated() ), |
618 | mView, SLOT( toggleDateNavigatorWidget() ) ); | 644 | mView, SLOT( toggleDateNavigatorWidget() ) ); |
619 | mToggleNav = action ; | 645 | mToggleNav = action ; |
620 | icon = loadPixmap( pathString + "filter" ); | 646 | icon = loadPixmap( pathString + "filter" ); |
621 | action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); | 647 | action = new QAction( i18n("Toggle FilterView"), icon, i18n("Toggle FilterView"), 0, this ); |
622 | action->addTo( viewMenu ); | 648 | action->addTo( viewMenu ); |
623 | connect( action, SIGNAL( activated() ), | 649 | connect( action, SIGNAL( activated() ), |
624 | mView, SLOT( toggleFilter() ) ); | 650 | mView, SLOT( toggleFilter() ) ); |
625 | mToggleFilter = action; | 651 | mToggleFilter = action; |
626 | icon = loadPixmap( pathString + "allday" ); | 652 | icon = loadPixmap( pathString + "allday" ); |
627 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); | 653 | action = new QAction( i18n("Toggle Allday"), icon,i18n("Toggle Allday"), 0, this ); |
628 | action->addTo( viewMenu ); | 654 | action->addTo( viewMenu ); |
629 | connect( action, SIGNAL( activated() ), | 655 | connect( action, SIGNAL( activated() ), |
630 | mView, SLOT( toggleAllDaySize() ) ); | 656 | mView, SLOT( toggleAllDaySize() ) ); |
631 | mToggleAllday = action; | 657 | mToggleAllday = action; |
632 | 658 | ||
633 | 659 | ||
634 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 660 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
635 | mToggleNav, SLOT( setEnabled ( bool ) ) ); | 661 | mToggleNav, SLOT( setEnabled ( bool ) ) ); |
636 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), | 662 | connect( mView->viewManager(), SIGNAL( signalFullScreen( bool ) ), |
637 | mToggleFilter, SLOT( setEnabled ( bool ) ) ); | 663 | mToggleFilter, SLOT( setEnabled ( bool ) ) ); |
638 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), | 664 | connect( mView->viewManager(), SIGNAL( signalAgendaView( bool ) ), |
639 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); | 665 | mToggleAllday, SLOT( setEnabled ( bool ) ) ); |
640 | 666 | ||
641 | viewMenu->insertSeparator(); | 667 | viewMenu->insertSeparator(); |
642 | icon = loadPixmap( pathString + "picker" ); | 668 | icon = loadPixmap( pathString + "picker" ); |
643 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); | 669 | action = new QAction( i18n("Date Picker"), icon, i18n("Date Picker"), 0, this ); |
644 | action->addTo( viewMenu ); | 670 | action->addTo( viewMenu ); |
645 | connect( action, SIGNAL( activated() ), | 671 | connect( action, SIGNAL( activated() ), |
646 | mView, SLOT( showDatePicker() ) ); | 672 | mView, SLOT( showDatePicker() ) ); |
647 | action->addTo( iconToolBar ); | 673 | action->addTo( iconToolBar ); |
648 | viewMenu->insertSeparator(); | 674 | viewMenu->insertSeparator(); |
649 | icon = loadPixmap( pathString + "list" ); | 675 | icon = loadPixmap( pathString + "list" ); |
650 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); | 676 | configureToolBarMenu->insertItem(icon, i18n("List View"), 30 ); |
651 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); | 677 | QAction* showlist_action = new QAction( i18n("List View"), icon, i18n("List View"), 0, this ); |
652 | showlist_action->addTo( viewMenu ); | 678 | showlist_action->addTo( viewMenu ); |
653 | connect( showlist_action, SIGNAL( activated() ), | 679 | connect( showlist_action, SIGNAL( activated() ), |
654 | mView->viewManager(), SLOT( showListView() ) ); | 680 | mView->viewManager(), SLOT( showListView() ) ); |
655 | 681 | ||
656 | 682 | ||
657 | icon = loadPixmap( pathString + "day" ); | 683 | icon = loadPixmap( pathString + "day" ); |
658 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); | 684 | configureToolBarMenu->insertItem(icon, i18n("Day View"), 40 ); |
659 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); | 685 | QAction* day1_action = new QAction( i18n("Day View"), icon, i18n("Day View"), 0, this ); |
660 | day1_action->addTo( viewMenu ); | 686 | day1_action->addTo( viewMenu ); |
661 | // action->addTo( toolBar ); | 687 | // action->addTo( toolBar ); |
662 | connect( day1_action, SIGNAL( activated() ), | 688 | connect( day1_action, SIGNAL( activated() ), |
663 | mView->viewManager(), SLOT( showDayView() ) ); | 689 | mView->viewManager(), SLOT( showDayView() ) ); |
664 | 690 | ||
665 | icon = loadPixmap( pathString + "workweek" ); | 691 | icon = loadPixmap( pathString + "workweek" ); |
666 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); | 692 | configureToolBarMenu->insertItem(icon, i18n("Work Week"), 50 ); |
667 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); | 693 | QAction* day5_action = new QAction( i18n("Work Week"), icon, i18n("Work Week"), 0, this ); |
668 | day5_action->addTo( viewMenu ); | 694 | day5_action->addTo( viewMenu ); |
669 | connect( day5_action, SIGNAL( activated() ), | 695 | connect( day5_action, SIGNAL( activated() ), |
670 | mView->viewManager(), SLOT( showWorkWeekView() ) ); | 696 | mView->viewManager(), SLOT( showWorkWeekView() ) ); |
671 | 697 | ||
672 | icon = loadPixmap( pathString + "week" ); | 698 | icon = loadPixmap( pathString + "week" ); |
673 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); | 699 | configureToolBarMenu->insertItem(icon, i18n("Week"), 60 ); |
674 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); | 700 | QAction* day7_action = new QAction( i18n("Week"), icon, i18n("Week"), 0, this ); |
675 | day7_action->addTo( viewMenu ); | 701 | day7_action->addTo( viewMenu ); |
676 | connect( day7_action, SIGNAL( activated() ), | 702 | connect( day7_action, SIGNAL( activated() ), |
677 | mView->viewManager(), SLOT( showWeekView() ) ); | 703 | mView->viewManager(), SLOT( showWeekView() ) ); |
678 | 704 | ||
679 | icon = loadPixmap( pathString + "month" ); | 705 | icon = loadPixmap( pathString + "month" ); |
680 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); | 706 | configureToolBarMenu->insertItem(icon, i18n("Month"), 70 ); |
681 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); | 707 | QAction* month_action = new QAction( i18n("Month"), icon, i18n("Month"), 0, this ); |
682 | month_action->addTo( viewMenu ); | 708 | month_action->addTo( viewMenu ); |
683 | connect( month_action, SIGNAL( activated() ), | 709 | connect( month_action, SIGNAL( activated() ), |
684 | mView->viewManager(), SLOT( showMonthView() ) ); | 710 | mView->viewManager(), SLOT( showMonthView() ) ); |
685 | 711 | ||
686 | icon = loadPixmap( pathString + "todo" ); | 712 | icon = loadPixmap( pathString + "todo" ); |
687 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); | 713 | configureToolBarMenu->insertItem(icon, i18n("Todo View"), 80 ); |
688 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); | 714 | QAction* todoview_action = new QAction( i18n("Todo View"), icon, i18n("Todo View"), 0, this ); |
689 | todoview_action->addTo( viewMenu ); | 715 | todoview_action->addTo( viewMenu ); |
690 | connect( todoview_action, SIGNAL( activated() ), | 716 | connect( todoview_action, SIGNAL( activated() ), |
691 | mView->viewManager(), SLOT( showTodoView() ) ); | 717 | mView->viewManager(), SLOT( showTodoView() ) ); |
692 | 718 | ||
693 | icon = loadPixmap( pathString + "journal" ); | 719 | icon = loadPixmap( pathString + "journal" ); |
694 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); | 720 | configureToolBarMenu->insertItem(icon, i18n("Journal"), 90 ); |
695 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); | 721 | QAction* viewjournal_action = new QAction( i18n("Journal"), icon, i18n("Journal"), 0, this ); |
696 | viewjournal_action->addTo( viewMenu ); | 722 | viewjournal_action->addTo( viewMenu ); |
697 | connect( viewjournal_action, SIGNAL( activated() ), | 723 | connect( viewjournal_action, SIGNAL( activated() ), |
698 | mView->viewManager(), SLOT( showJournalView() ) ); | 724 | mView->viewManager(), SLOT( showJournalView() ) ); |
699 | 725 | ||
700 | icon = loadPixmap( pathString + "xdays" ); | 726 | icon = loadPixmap( pathString + "xdays" ); |
701 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100,4 ); | 727 | configureToolBarMenu->insertItem(icon, i18n("Next days"), 100,4 ); |
702 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); | 728 | QAction* xdays_action = new QAction( i18n("Next days"), icon, i18n("Next days"), 0, this ); |
703 | xdays_action->addTo( viewMenu ); | 729 | xdays_action->addTo( viewMenu ); |
704 | connect( xdays_action, SIGNAL( activated() ), | 730 | connect( xdays_action, SIGNAL( activated() ), |
705 | mView->viewManager(), SLOT( showNextXView() ) ); | 731 | mView->viewManager(), SLOT( showNextXView() ) ); |
706 | 732 | ||
707 | icon = loadPixmap( pathString + "whatsnext" ); | 733 | icon = loadPixmap( pathString + "whatsnext" ); |
708 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110, 4 ); | 734 | configureToolBarMenu->insertItem(icon, i18n("What's Next"), 110, 4 ); |
709 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); | 735 | QAction* whatsnext_action = new QAction( i18n("What's Next"), icon, i18n("What's Next"), 0, this ); |
710 | whatsnext_action->addTo( viewMenu ); | 736 | whatsnext_action->addTo( viewMenu ); |
711 | connect( whatsnext_action, SIGNAL( activated() ), | 737 | connect( whatsnext_action, SIGNAL( activated() ), |
712 | mView->viewManager(), SLOT( showWhatsNextView() ) ); | 738 | mView->viewManager(), SLOT( showWhatsNextView() ) ); |
713 | 739 | ||
714 | #if 0 | 740 | #if 0 |
715 | action = new QAction( "view_timespan", "Time Span", 0, this ); | 741 | action = new QAction( "view_timespan", "Time Span", 0, this ); |
716 | action->addTo( viewMenu ); | 742 | action->addTo( viewMenu ); |
717 | connect( action, SIGNAL( activated() ), | 743 | connect( action, SIGNAL( activated() ), |
718 | mView->viewManager(), SLOT( showTimeSpanView() ) ); | 744 | mView->viewManager(), SLOT( showTimeSpanView() ) ); |
719 | #endif | 745 | #endif |
720 | 746 | ||
721 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, | 747 | mNewSubTodoAction = new QAction( "new_subtodo", i18n("New Sub-Todo..."), 0, |
722 | this ); | 748 | this ); |
723 | mNewSubTodoAction->addTo( actionMenu ); | 749 | mNewSubTodoAction->addTo( actionMenu ); |
724 | connect( mNewSubTodoAction, SIGNAL( activated() ), | 750 | connect( mNewSubTodoAction, SIGNAL( activated() ), |
725 | mView, SLOT( newSubTodo() ) ); | 751 | mView, SLOT( newSubTodo() ) ); |
726 | 752 | ||
727 | actionMenu->insertSeparator(); | 753 | actionMenu->insertSeparator(); |
728 | 754 | ||
729 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); | 755 | mShowAction = new QAction( "show_incidence", i18n("Show..."), 0, this ); |
730 | mShowAction->addTo( actionMenu ); | 756 | mShowAction->addTo( actionMenu ); |
731 | connect( mShowAction, SIGNAL( activated() ), | 757 | connect( mShowAction, SIGNAL( activated() ), |
732 | mView, SLOT( showIncidence() ) ); | 758 | mView, SLOT( showIncidence() ) ); |
733 | 759 | ||
734 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); | 760 | mEditAction = new QAction( "edit_incidence", i18n("Edit..."), 0, this ); |
735 | mEditAction->addTo( actionMenu ); | 761 | mEditAction->addTo( actionMenu ); |
736 | connect( mEditAction, SIGNAL( activated() ), | 762 | connect( mEditAction, SIGNAL( activated() ), |
737 | mView, SLOT( editIncidence() ) ); | 763 | mView, SLOT( editIncidence() ) ); |
738 | 764 | ||
739 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); | 765 | mDeleteAction = new QAction( "delete_incidence", i18n("Delete..."), 0, this ); |
740 | mDeleteAction->addTo( actionMenu ); | 766 | mDeleteAction->addTo( actionMenu ); |
741 | connect( mDeleteAction, SIGNAL( activated() ), | 767 | connect( mDeleteAction, SIGNAL( activated() ), |
742 | mView, SLOT( deleteIncidence() ) ); | 768 | mView, SLOT( deleteIncidence() ) ); |
743 | 769 | ||
744 | 770 | ||
745 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); | 771 | mCloneAction = new QAction( "clone_incidence", i18n("Clone..."), 0, this ); |
746 | mCloneAction->addTo( actionMenu ); | 772 | mCloneAction->addTo( actionMenu ); |
747 | connect( mCloneAction, SIGNAL( activated() ), | 773 | connect( mCloneAction, SIGNAL( activated() ), |
748 | mView, SLOT( cloneIncidence() ) ); | 774 | mView, SLOT( cloneIncidence() ) ); |
749 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); | 775 | mMoveAction = new QAction( "Move_incidence", i18n("Move..."), 0, this ); |
750 | mMoveAction->addTo( actionMenu ); | 776 | mMoveAction->addTo( actionMenu ); |
751 | connect( mMoveAction, SIGNAL( activated() ), | 777 | connect( mMoveAction, SIGNAL( activated() ), |
752 | mView, SLOT( moveIncidence() ) ); | 778 | mView, SLOT( moveIncidence() ) ); |
753 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); | 779 | mBeamAction = new QAction( "Beam_incidence", i18n("Beam..."), 0, this ); |
754 | mBeamAction->addTo( actionMenu ); | 780 | mBeamAction->addTo( actionMenu ); |
755 | connect( mBeamAction, SIGNAL( activated() ), | 781 | connect( mBeamAction, SIGNAL( activated() ), |
756 | mView, SLOT( beamIncidence() ) ); | 782 | mView, SLOT( beamIncidence() ) ); |
757 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); | 783 | mCancelAction = new QAction( "Cancel_incidence", i18n("Toggle Cancel"), 0, this ); |
758 | mCancelAction->addTo( actionMenu ); | 784 | mCancelAction->addTo( actionMenu ); |
759 | connect( mCancelAction, SIGNAL( activated() ), | 785 | connect( mCancelAction, SIGNAL( activated() ), |
760 | mView, SLOT( toggleCancelIncidence() ) ); | 786 | mView, SLOT( toggleCancelIncidence() ) ); |
761 | 787 | ||
762 | actionMenu->insertSeparator(); | 788 | actionMenu->insertSeparator(); |
763 | 789 | ||
764 | action = new QAction( "purge_completed", i18n("Purge Completed"), 0, | 790 | action = new QAction( "purge_completed", i18n("Purge Completed"), 0, |
765 | this ); | 791 | this ); |
766 | action->addTo( actionMenu ); | 792 | action->addTo( actionMenu ); |
767 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); | 793 | connect( action, SIGNAL( activated() ), mView, SLOT( purgeCompleted() ) ); |
768 | 794 | ||
769 | icon = loadPixmap( pathString + "search" ); | 795 | icon = loadPixmap( pathString + "search" ); |
770 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); | 796 | QAction* search_action = new QAction( i18n("Search"), icon, i18n("Search..."), 0, this ); |
771 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 4); | 797 | configureToolBarMenu->insertItem(icon, i18n("Search"), 120 , 4); |
772 | search_action->addTo( actionMenu ); | 798 | search_action->addTo( actionMenu ); |
773 | connect( search_action, SIGNAL( activated() ), | 799 | connect( search_action, SIGNAL( activated() ), |
774 | mView->dialogManager(), SLOT( showSearchDialog() ) ); | 800 | mView->dialogManager(), SLOT( showSearchDialog() ) ); |
775 | 801 | ||
776 | 802 | ||
777 | 803 | ||
778 | if ( KOPrefs::instance()->mShowFullMenu ) { | 804 | if ( KOPrefs::instance()->mShowFullMenu ) { |
779 | actionMenu->insertSeparator(); | 805 | actionMenu->insertSeparator(); |
780 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); | 806 | actionMenu->insertItem( i18n("Configure Toolbar"),configureToolBarMenu ); |
781 | 807 | ||
782 | } | 808 | } |
783 | // actionMenu->insertSeparator(); | 809 | // actionMenu->insertSeparator(); |
784 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, | 810 | action = new QAction( "import_qtopia", i18n("Import (*.ics/*.vcs) file"), 0, |
785 | this ); | 811 | this ); |
786 | action->addTo( importMenu ); | 812 | action->addTo( importMenu ); |
787 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); | 813 | connect( action, SIGNAL( activated() ), SLOT( importIcal() ) ); |
788 | action = new QAction( "import_quick", i18n("Import last file"), 0, | 814 | action = new QAction( "import_quick", i18n("Import last file"), 0, |
789 | this ); | 815 | this ); |
790 | action->addTo( importMenu ); | 816 | action->addTo( importMenu ); |
791 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); | 817 | connect( action, SIGNAL( activated() ), SLOT( quickImportIcal() ) ); |
792 | importMenu->insertSeparator(); | 818 | importMenu->insertSeparator(); |
793 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, | 819 | action = new QAction( "import_bday", i18n("Import Birthdays (KA/Pi)"), 0, |
794 | this ); | 820 | this ); |
795 | action->addTo( importMenu ); | 821 | action->addTo( importMenu ); |
796 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); | 822 | connect( action, SIGNAL( activated() ), SLOT( importBday() ) ); |
797 | #ifndef DESKTOP_VERSION | 823 | #ifndef DESKTOP_VERSION |
798 | importMenu->insertSeparator(); | 824 | importMenu->insertSeparator(); |
799 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, | 825 | action = new QAction( "import_qtopia", i18n("Import Opie/Qtopia Cal."), 0, |
800 | this ); | 826 | this ); |
801 | action->addTo( importMenu ); | 827 | action->addTo( importMenu ); |
802 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); | 828 | connect( action, SIGNAL( activated() ), SLOT( importQtopia() ) ); |
803 | #else | 829 | #else |
804 | #ifdef _OL_IMPORT_ | 830 | #ifdef _OL_IMPORT_ |
805 | importMenu->insertSeparator(); | 831 | importMenu->insertSeparator(); |
806 | action = new QAction( "import_ol", i18n("Import from OL"), 0, | 832 | action = new QAction( "import_ol", i18n("Import from OL"), 0, |
807 | this ); | 833 | this ); |
808 | action->addTo( importMenu ); | 834 | action->addTo( importMenu ); |
809 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); | 835 | connect( action, SIGNAL( activated() ), SLOT( importOL() ) ); |
810 | #endif | 836 | #endif |
811 | #endif | 837 | #endif |
812 | 838 | ||
813 | importMenu->insertSeparator(); | 839 | importMenu->insertSeparator(); |
814 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, | 840 | action = new QAction( "load_cal", i18n("Load Calendar Backup"), 0, |
815 | this ); | 841 | this ); |
816 | action->addTo( importMenu ); | 842 | action->addTo( importMenu ); |
817 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); | 843 | connect( action, SIGNAL( activated() ), SLOT( loadCalendar() ) ); |
818 | 844 | ||
819 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, | 845 | action = new QAction( "save_cal", i18n("Save Calendar Backup"), 0, |
820 | this ); | 846 | this ); |
821 | action->addTo( importMenu ); | 847 | action->addTo( importMenu ); |
822 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); | 848 | connect( action, SIGNAL( activated() ), SLOT( saveCalendar() ) ); |
823 | 849 | ||
824 | importMenu->insertSeparator(); | 850 | importMenu->insertSeparator(); |
825 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, | 851 | action = new QAction( "import_qtopia", i18n("Export VCalendar"), 0, |
826 | this ); | 852 | this ); |
827 | action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); | 853 | action->addTo( importMenu ); connect( action, SIGNAL( activated() ), SLOT( exportVCalendar() ) ); |
828 | 854 | ||
829 | 855 | ||
830 | //LR | 856 | //LR |
831 | QPopupMenu *ex2phone = new QPopupMenu( this ); | 857 | QPopupMenu *ex2phone = new QPopupMenu( this ); |
832 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 858 | ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
833 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 859 | ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
834 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); | 860 | connect( ex2phone, SIGNAL( activated(int) ), this, SLOT( exportToPhone( int)) ); |
835 | importMenu->insertItem( i18n("Export to phone"), ex2phone ); | 861 | importMenu->insertItem( i18n("Export to phone"), ex2phone ); |
836 | 862 | ||
837 | importMenu->insertSeparator(); | 863 | importMenu->insertSeparator(); |
838 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, | 864 | action = new QAction( "manage cat", i18n("Manage new categories..."), 0, |
839 | this ); | 865 | this ); |
840 | action->addTo( importMenu ); | 866 | action->addTo( importMenu ); |
841 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); | 867 | connect( action, SIGNAL( activated() ), mView, SLOT( manageCategories() ) ); |
842 | #ifndef DESKTOP_VERSION | 868 | #ifndef DESKTOP_VERSION |
843 | importMenu->insertSeparator(); | 869 | importMenu->insertSeparator(); |
844 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, | 870 | brAction = new QAction( "beam toggle", i18n("Beam receive enabled"), 0, |
845 | this ); | 871 | this ); |
846 | brAction->addTo( importMenu ); | 872 | brAction->addTo( importMenu ); |
847 | brAction->setToggleAction (true ) ; | 873 | brAction->setToggleAction (true ) ; |
848 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); | 874 | connect( brAction, SIGNAL( activated() ), this, SLOT( toggleBeamReceive() ) ); |
849 | 875 | ||
850 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, | 876 | action = new QAction( "beam all", i18n("Beam complete calendar..."), 0, |
851 | this ); | 877 | this ); |
852 | action->addTo( importMenu ); | 878 | action->addTo( importMenu ); |
853 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); | 879 | connect( action, SIGNAL( activated() ), mView, SLOT( beamCalendar() ) ); |
854 | 880 | ||
855 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, | 881 | action = new QAction( "beam all", i18n("Beam filtered calendar..."), 0, |
856 | this ); | 882 | this ); |
857 | action->addTo( importMenu ); | 883 | action->addTo( importMenu ); |
858 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); | 884 | connect( action, SIGNAL( activated() ), mView, SLOT( beamFilteredCalendar()) ); |
859 | #else | 885 | #else |
860 | importMenu->insertSeparator(); | 886 | importMenu->insertSeparator(); |
861 | icon = loadPixmap( pathString + "print" ); | 887 | icon = loadPixmap( pathString + "print" ); |
862 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); | 888 | action = new QAction( i18n("Print calendar..."),icon,i18n("Print calendar..."), 0, this ); |
863 | action->addTo( importMenu ); | 889 | action->addTo( importMenu ); |
864 | connect( action, SIGNAL( activated() ), | 890 | connect( action, SIGNAL( activated() ), |
865 | this, SLOT( printCal() ) ); | 891 | this, SLOT( printCal() ) ); |
866 | 892 | ||
867 | icon = loadPixmap( pathString + "print" ); | 893 | icon = loadPixmap( pathString + "print" ); |
868 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); | 894 | action = new QAction( i18n("Print agenda selection..."),icon,i18n("Print agenda selection..."), 0, this ); |
869 | action->addTo( importMenu ); | 895 | action->addTo( importMenu ); |
870 | connect( action, SIGNAL( activated() ), | 896 | connect( action, SIGNAL( activated() ), |
871 | this, SLOT( printSel() ) ); | 897 | this, SLOT( printSel() ) ); |
872 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); | 898 | action = new QAction( i18n("Print What's Next View..."),icon,i18n("Print What's Next View..."), 0, this ); |
873 | action->addTo( importMenu ); | 899 | action->addTo( importMenu ); |
874 | connect( action, SIGNAL( activated() ), | 900 | connect( action, SIGNAL( activated() ), |
875 | mView->viewManager(), SIGNAL( printWNV() ) ); | 901 | mView->viewManager(), SIGNAL( printWNV() ) ); |
876 | #endif | 902 | #endif |
877 | importMenu->insertSeparator(); | 903 | importMenu->insertSeparator(); |
878 | action = new QAction( "beam all", i18n("Save"), 0, | 904 | action = new QAction( "beam all", i18n("Save"), 0, |
879 | this ); | 905 | this ); |
880 | action->addTo( importMenu ); | 906 | action->addTo( importMenu ); |
881 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); | 907 | connect( action, SIGNAL( activated() ), this, SLOT( save() ) ); |
882 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, | 908 | action = new QAction( "beam all", i18n("Exit (+save)"), 0, |
883 | this ); | 909 | this ); |
884 | action->addTo( importMenu ); | 910 | action->addTo( importMenu ); |
885 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); | 911 | connect( action, SIGNAL( activated() ), this, SLOT( close() ) ); |
886 | 912 | ||
887 | //menuBar->insertItem( "Configure",configureMenu ); | 913 | //menuBar->insertItem( "Configure",configureMenu ); |
888 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); | 914 | //configureMenu->insertItem( "Toolbar",configureToolBarMenu ); |
889 | icon = loadPixmap( "korganizer/korganizer" ); | 915 | icon = loadPixmap( "korganizer/korganizer" ); |
890 | 916 | ||
891 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); | 917 | action = new QAction( "Whats New", i18n("What's new?"), 0,this ); |
892 | action->addTo( helpMenu ); | 918 | action->addTo( helpMenu ); |
893 | connect( action, SIGNAL( activated() ), | 919 | connect( action, SIGNAL( activated() ), |
894 | SLOT( whatsNew() ) ); | 920 | SLOT( whatsNew() ) ); |
895 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); | 921 | action = new QAction( "featureHowto", i18n("Features + hints..."), 0,this ); |
896 | action->addTo( helpMenu ); | 922 | action->addTo( helpMenu ); |
897 | connect( action, SIGNAL( activated() ), | 923 | connect( action, SIGNAL( activated() ), |
898 | SLOT( features() ) ); | 924 | SLOT( features() ) ); |
899 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); | 925 | action = new QAction( "Keys + Colors", i18n("Keys + Colors..."), 0, this ); |
900 | action->addTo( helpMenu ); | 926 | action->addTo( helpMenu ); |
901 | connect( action, SIGNAL( activated() ), | 927 | connect( action, SIGNAL( activated() ), |
902 | SLOT( keyBindings() ) ); | 928 | SLOT( keyBindings() ) ); |
903 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); | 929 | action = new QAction( "Sync Howto", i18n("Sync HowTo..."), 0,this ); |
904 | action->addTo( helpMenu ); | 930 | action->addTo( helpMenu ); |
905 | connect( action, SIGNAL( activated() ), | 931 | connect( action, SIGNAL( activated() ), |
906 | SLOT( synchowto() ) ); | 932 | SLOT( synchowto() ) ); |
907 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); | 933 | action = new QAction( "KDE Sync Howto", i18n("KDE Sync HowTo..."), 0,this ); |
908 | action->addTo( helpMenu ); | 934 | action->addTo( helpMenu ); |
909 | connect( action, SIGNAL( activated() ), | 935 | connect( action, SIGNAL( activated() ), |
910 | SLOT( kdesynchowto() ) ); | 936 | SLOT( kdesynchowto() ) ); |
911 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); | 937 | action = new QAction( "Multi Sync Howto", i18n("Multi Sync HowTo..."), 0,this ); |
912 | action->addTo( helpMenu ); | 938 | action->addTo( helpMenu ); |
913 | connect( action, SIGNAL( activated() ), | 939 | connect( action, SIGNAL( activated() ), |
914 | SLOT( multisynchowto() ) ); | 940 | SLOT( multisynchowto() ) ); |
915 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); | 941 | action = new QAction( "Auto saving", i18n("Auto saving..."), 0, this ); |
916 | action->addTo( helpMenu ); | 942 | action->addTo( helpMenu ); |
917 | connect( action, SIGNAL( activated() ), | 943 | connect( action, SIGNAL( activated() ), |
918 | SLOT( aboutAutoSaving() ) ); | 944 | SLOT( aboutAutoSaving() ) ); |
919 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); | 945 | action = new QAction( "Problemd", i18n("Known Problems..."), 0,this ); |
920 | action->addTo( helpMenu ); | 946 | action->addTo( helpMenu ); |
921 | connect( action, SIGNAL( activated() ), | 947 | connect( action, SIGNAL( activated() ), |
922 | SLOT( aboutKnownBugs() ) ); | 948 | SLOT( aboutKnownBugs() ) ); |
923 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); | 949 | action = new QAction( "Translate Howto", i18n("User translation..."), 0,this ); |
924 | action->addTo( helpMenu ); | 950 | action->addTo( helpMenu ); |
925 | connect( action, SIGNAL( activated() ), | 951 | connect( action, SIGNAL( activated() ), |
926 | SLOT( usertrans() ) ); | 952 | SLOT( usertrans() ) ); |
927 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); | 953 | action = new QAction( "Frequently asked questions", i18n("FAQ..."), 0,this ); |
928 | action->addTo( helpMenu ); | 954 | action->addTo( helpMenu ); |
929 | connect( action, SIGNAL( activated() ), | 955 | connect( action, SIGNAL( activated() ), |
930 | SLOT( faq() ) ); | 956 | SLOT( faq() ) ); |
931 | action = new QAction( "licence", i18n("Licence..."), 0, this ); | 957 | action = new QAction( "licence", i18n("Licence..."), 0, this ); |
932 | action->addTo( helpMenu ); | 958 | action->addTo( helpMenu ); |
933 | connect( action, SIGNAL( activated() ), | 959 | connect( action, SIGNAL( activated() ), |
934 | SLOT( licence() ) ); | 960 | SLOT( licence() ) ); |
935 | action = new QAction( "about", i18n("About..."), 0, this ); | 961 | action = new QAction( "about", i18n("About..."), 0, this ); |
936 | action->addTo( helpMenu ); | 962 | action->addTo( helpMenu ); |
937 | connect( action, SIGNAL( activated() ), | 963 | connect( action, SIGNAL( activated() ), |
938 | SLOT( about() ) ); | 964 | SLOT( about() ) ); |
939 | //menuBar->insertSeparator(); | 965 | //menuBar->insertSeparator(); |
940 | 966 | ||
941 | // ****************************************************** | 967 | // ****************************************************** |
942 | // menubar icons | 968 | // menubar icons |
943 | 969 | ||
944 | 970 | ||
945 | iconToolBar->setHorizontalStretchable (true ); | 971 | iconToolBar->setHorizontalStretchable (true ); |
946 | //menuBar->insertItem( iconToolBar ); | 972 | //menuBar->insertItem( iconToolBar ); |
947 | //xdays_action | 973 | //xdays_action |
948 | if (p-> mShowIconNewEvent) | 974 | if (p-> mShowIconNewEvent) |
949 | ne_action->addTo( iconToolBar ); | 975 | ne_action->addTo( iconToolBar ); |
950 | if (p->mShowIconNewTodo ) | 976 | if (p->mShowIconNewTodo ) |
951 | nt_action->addTo( iconToolBar ); | 977 | nt_action->addTo( iconToolBar ); |
952 | if (p-> mShowIconSearch) | 978 | if (p-> mShowIconSearch) |
953 | search_action->addTo( iconToolBar ); | 979 | search_action->addTo( iconToolBar ); |
954 | if (p-> mShowIconNext) | 980 | if (p-> mShowIconNext) |
955 | whatsnext_action->addTo( iconToolBar ); | 981 | whatsnext_action->addTo( iconToolBar ); |
956 | if (p-> mShowIconNextDays) | 982 | if (p-> mShowIconNextDays) |
957 | xdays_action->addTo( iconToolBar ); | 983 | xdays_action->addTo( iconToolBar ); |
958 | if (p-> mShowIconList) | 984 | if (p-> mShowIconList) |
959 | showlist_action->addTo( iconToolBar ); | 985 | showlist_action->addTo( iconToolBar ); |
960 | if (p-> mShowIconDay1) | 986 | if (p-> mShowIconDay1) |
961 | day1_action->addTo( iconToolBar ); | 987 | day1_action->addTo( iconToolBar ); |
962 | if (p-> mShowIconDay5) | 988 | if (p-> mShowIconDay5) |
963 | day5_action->addTo( iconToolBar ); | 989 | day5_action->addTo( iconToolBar ); |
964 | if (p-> mShowIconDay7) | 990 | if (p-> mShowIconDay7) |
965 | day7_action->addTo( iconToolBar ); | 991 | day7_action->addTo( iconToolBar ); |
966 | if (p-> mShowIconMonth) | 992 | if (p-> mShowIconMonth) |
967 | month_action->addTo( iconToolBar ); | 993 | month_action->addTo( iconToolBar ); |
968 | if (p-> mShowIconTodoview) | 994 | if (p-> mShowIconTodoview) |
969 | todoview_action->addTo( iconToolBar ); | 995 | todoview_action->addTo( iconToolBar ); |
970 | if (p-> mShowIconJournal) | 996 | if (p-> mShowIconJournal) |
971 | viewjournal_action->addTo( iconToolBar ); | 997 | viewjournal_action->addTo( iconToolBar ); |
972 | icon = loadPixmap( pathString + "2leftarrowB" ); | 998 | icon = loadPixmap( pathString + "2leftarrowB" ); |
973 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); | 999 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); |
974 | if (p-> mShowIconBackFast) { | 1000 | if (p-> mShowIconBackFast) { |
975 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 1001 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
976 | connect( action, SIGNAL( activated() ), | 1002 | connect( action, SIGNAL( activated() ), |
977 | mView, SLOT( goPreviousMonth() ) ); | 1003 | mView, SLOT( goPreviousMonth() ) ); |
978 | action->addTo( iconToolBar ); | 1004 | action->addTo( iconToolBar ); |
979 | } | 1005 | } |
980 | icon = loadPixmap( pathString + "1leftarrowB" ); | 1006 | icon = loadPixmap( pathString + "1leftarrowB" ); |
981 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); | 1007 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); |
982 | if (p-> mShowIconBack) { | 1008 | if (p-> mShowIconBack) { |
983 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 1009 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
984 | connect( action, SIGNAL( activated() ), | 1010 | connect( action, SIGNAL( activated() ), |
985 | mView, SLOT( goPrevious() ) ); | 1011 | mView, SLOT( goPrevious() ) ); |
986 | action->addTo( iconToolBar ); | 1012 | action->addTo( iconToolBar ); |
987 | } | 1013 | } |
988 | icon = loadPixmap( pathString + "today" ); | 1014 | icon = loadPixmap( pathString + "today" ); |
989 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); | 1015 | configureToolBarMenu->insertItem(icon, i18n("Go to Today"), 130); |
990 | if (p-> mShowIconToday) | 1016 | if (p-> mShowIconToday) |
991 | today_action->addTo( iconToolBar ); | 1017 | today_action->addTo( iconToolBar ); |
992 | icon = loadPixmap( pathString + "1rightarrowB" ); | 1018 | icon = loadPixmap( pathString + "1rightarrowB" ); |
993 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); | 1019 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); |
994 | if (p-> mShowIconForward) { | 1020 | if (p-> mShowIconForward) { |
995 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); | 1021 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); |
996 | connect( action, SIGNAL( activated() ), | 1022 | connect( action, SIGNAL( activated() ), |
997 | mView, SLOT( goNext() ) ); | 1023 | mView, SLOT( goNext() ) ); |
998 | action->addTo( iconToolBar ); | 1024 | action->addTo( iconToolBar ); |
999 | } | 1025 | } |
1000 | icon = loadPixmap( pathString + "2rightarrowB" ); | 1026 | icon = loadPixmap( pathString + "2rightarrowB" ); |
1001 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); | 1027 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); |
1002 | if (p-> mShowIconForwardFast) { | 1028 | if (p-> mShowIconForwardFast) { |
1003 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); | 1029 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); |
1004 | connect( action, SIGNAL( activated() ), | 1030 | connect( action, SIGNAL( activated() ), |
1005 | mView, SLOT( goNextMonth() ) ); | 1031 | mView, SLOT( goNextMonth() ) ); |
1006 | action->addTo( iconToolBar ); | 1032 | action->addTo( iconToolBar ); |
1007 | } | 1033 | } |
1008 | 1034 | ||
1009 | 1035 | ||
1010 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); | 1036 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); |
1011 | 1037 | ||
1012 | if (p-> mShowIconNewEvent) | 1038 | if (p-> mShowIconNewEvent) |
1013 | configureToolBarMenu->setItemChecked( 10, true ); | 1039 | configureToolBarMenu->setItemChecked( 10, true ); |
1014 | if (p->mShowIconNewTodo ) | 1040 | if (p->mShowIconNewTodo ) |
1015 | configureToolBarMenu->setItemChecked( 20, true ); | 1041 | configureToolBarMenu->setItemChecked( 20, true ); |
1016 | if (p-> mShowIconSearch) | 1042 | if (p-> mShowIconSearch) |
1017 | configureToolBarMenu->setItemChecked( 120, true ); | 1043 | configureToolBarMenu->setItemChecked( 120, true ); |
1018 | if (p-> mShowIconList) | 1044 | if (p-> mShowIconList) |
1019 | configureToolBarMenu->setItemChecked( 30, true ); | 1045 | configureToolBarMenu->setItemChecked( 30, true ); |
1020 | if (p-> mShowIconDay1) | 1046 | if (p-> mShowIconDay1) |
1021 | configureToolBarMenu->setItemChecked( 40, true ); | 1047 | configureToolBarMenu->setItemChecked( 40, true ); |
1022 | if (p-> mShowIconDay5) | 1048 | if (p-> mShowIconDay5) |
1023 | configureToolBarMenu->setItemChecked( 50, true ); | 1049 | configureToolBarMenu->setItemChecked( 50, true ); |
1024 | if (p-> mShowIconDay7) | 1050 | if (p-> mShowIconDay7) |
1025 | configureToolBarMenu->setItemChecked( 60, true ); | 1051 | configureToolBarMenu->setItemChecked( 60, true ); |
1026 | if (p-> mShowIconMonth) | 1052 | if (p-> mShowIconMonth) |
1027 | configureToolBarMenu->setItemChecked( 70, true ); | 1053 | configureToolBarMenu->setItemChecked( 70, true ); |
1028 | if (p-> mShowIconTodoview) | 1054 | if (p-> mShowIconTodoview) |
1029 | configureToolBarMenu->setItemChecked( 80, true ); | 1055 | configureToolBarMenu->setItemChecked( 80, true ); |
1030 | if (p-> mShowIconBackFast) | 1056 | if (p-> mShowIconBackFast) |
1031 | configureToolBarMenu->setItemChecked( 200, true ); | 1057 | configureToolBarMenu->setItemChecked( 200, true ); |
1032 | if (p-> mShowIconBack) | 1058 | if (p-> mShowIconBack) |
1033 | configureToolBarMenu->setItemChecked( 210, true ); | 1059 | configureToolBarMenu->setItemChecked( 210, true ); |
1034 | if (p-> mShowIconToday) | 1060 | if (p-> mShowIconToday) |
1035 | configureToolBarMenu->setItemChecked( 130, true ); | 1061 | configureToolBarMenu->setItemChecked( 130, true ); |
1036 | if (p-> mShowIconForward) | 1062 | if (p-> mShowIconForward) |
1037 | configureToolBarMenu->setItemChecked( 220, true ); | 1063 | configureToolBarMenu->setItemChecked( 220, true ); |
1038 | if (p-> mShowIconForwardFast) | 1064 | if (p-> mShowIconForwardFast) |
1039 | configureToolBarMenu->setItemChecked( 230, true ); | 1065 | configureToolBarMenu->setItemChecked( 230, true ); |
1040 | if (p-> mShowIconNextDays) | 1066 | if (p-> mShowIconNextDays) |
1041 | configureToolBarMenu->setItemChecked( 100, true ); | 1067 | configureToolBarMenu->setItemChecked( 100, true ); |
1042 | if (p-> mShowIconNext) | 1068 | if (p-> mShowIconNext) |
1043 | configureToolBarMenu->setItemChecked( 110, true ); | 1069 | configureToolBarMenu->setItemChecked( 110, true ); |
1044 | if (p-> mShowIconJournal) | 1070 | if (p-> mShowIconJournal) |
1045 | configureToolBarMenu->setItemChecked( 90, true ); | 1071 | configureToolBarMenu->setItemChecked( 90, true ); |
1046 | if (p-> mShowIconWhatsThis) | 1072 | if (p-> mShowIconWhatsThis) |
1047 | configureToolBarMenu->setItemChecked( 300, true ); | 1073 | configureToolBarMenu->setItemChecked( 300, true ); |
1048 | 1074 | ||
1049 | QLabel* dummy = new QLabel( iconToolBar ); | 1075 | QLabel* dummy = new QLabel( iconToolBar ); |
1050 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 1076 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
1051 | if (!p-> mShowIconStretch) | 1077 | if (!p-> mShowIconStretch) |
1052 | iconToolBar->setStretchableWidget ( dummy ) ; | 1078 | iconToolBar->setStretchableWidget ( dummy ) ; |
1053 | else | 1079 | else |
1054 | configureToolBarMenu->setItemChecked( 5, true ); | 1080 | configureToolBarMenu->setItemChecked( 5, true ); |
1055 | if (p-> mShowIconWhatsThis) | 1081 | if (p-> mShowIconWhatsThis) |
1056 | QWhatsThis::whatsThisButton ( iconToolBar ); | 1082 | QWhatsThis::whatsThisButton ( iconToolBar ); |
1057 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 1083 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
1058 | configureAgenda( p->mHourSize ); | 1084 | configureAgenda( p->mHourSize ); |
1059 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 1085 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
1060 | } | 1086 | } |
1061 | 1087 | ||
1062 | void MainWindow::exportToPhone( int mode ) | 1088 | void MainWindow::exportToPhone( int mode ) |
1063 | { | 1089 | { |
1064 | 1090 | ||
1065 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 1091 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
1066 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 1092 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
1067 | KOex2phonePrefs ex2phone; | 1093 | KOex2phonePrefs ex2phone; |
1068 | 1094 | ||
1069 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 1095 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
1070 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 1096 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
1071 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1097 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1072 | if ( mode == 1 ) | 1098 | if ( mode == 1 ) |
1073 | ex2phone.setCaption(i18n("Export complete calendar")); | 1099 | ex2phone.setCaption(i18n("Export complete calendar")); |
1074 | if ( mode == 2 ) | 1100 | if ( mode == 2 ) |
1075 | ex2phone.setCaption(i18n("Export filtered calendar")); | 1101 | ex2phone.setCaption(i18n("Export filtered calendar")); |
1076 | 1102 | ||
1077 | if ( !ex2phone.exec() ) { | 1103 | if ( !ex2phone.exec() ) { |
1078 | return; | 1104 | return; |
1079 | } | 1105 | } |
1080 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 1106 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
1081 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 1107 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
1082 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 1108 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
1083 | 1109 | ||
1084 | int inFuture = 0; | 1110 | int inFuture = 0; |
1085 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 1111 | if ( ex2phone.mWriteBackFuture->isChecked() ) |
1086 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); | 1112 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); |
1087 | QPtrList<Incidence> delSel; | 1113 | QPtrList<Incidence> delSel; |
1088 | if ( mode == 1 ) | 1114 | if ( mode == 1 ) |
1089 | delSel = mCalendar->rawIncidences(); | 1115 | delSel = mCalendar->rawIncidences(); |
1090 | if ( mode == 2 ) | 1116 | if ( mode == 2 ) |
1091 | delSel = mCalendar->incidences(); | 1117 | delSel = mCalendar->incidences(); |
1092 | CalendarLocal* cal = new CalendarLocal(); | 1118 | CalendarLocal* cal = new CalendarLocal(); |
1093 | cal->setLocalTime(); | 1119 | cal->setLocalTime(); |
1094 | Incidence *incidence = delSel.first(); | 1120 | Incidence *incidence = delSel.first(); |
1095 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); | 1121 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); |
1096 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); | 1122 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); |
1097 | while ( incidence ) { | 1123 | while ( incidence ) { |
1098 | if ( incidence->type() != "Journal" ) { | 1124 | if ( incidence->type() != "Journal" ) { |
1099 | bool add = true; | 1125 | bool add = true; |
1100 | if ( inFuture ) { | 1126 | if ( inFuture ) { |
1101 | QDateTime dt; | 1127 | QDateTime dt; |
1102 | if ( incidence->type() == "Todo" ) { | 1128 | if ( incidence->type() == "Todo" ) { |
1103 | Todo * t = (Todo*)incidence; | 1129 | Todo * t = (Todo*)incidence; |
1104 | if ( t->hasDueDate() ) | 1130 | if ( t->hasDueDate() ) |
1105 | dt = t->dtDue(); | 1131 | dt = t->dtDue(); |
1106 | else | 1132 | else |
1107 | dt = cur.addSecs( 62 ); | 1133 | dt = cur.addSecs( 62 ); |
1108 | } | 1134 | } |
1109 | else { | 1135 | else { |
1110 | bool ok; | 1136 | bool ok; |
1111 | dt = incidence->getNextOccurence( cur, &ok ); | 1137 | dt = incidence->getNextOccurence( cur, &ok ); |
1112 | if ( !ok ) | 1138 | if ( !ok ) |
1113 | dt = cur.addSecs( -62 ); | 1139 | dt = cur.addSecs( -62 ); |
1114 | } | 1140 | } |
1115 | if ( dt < cur || dt > end ) { | 1141 | if ( dt < cur || dt > end ) { |
1116 | add = false; | 1142 | add = false; |
1117 | } | 1143 | } |
1118 | } | 1144 | } |
1119 | if ( add ) { | 1145 | if ( add ) { |
1120 | Incidence *in = incidence->clone(); | 1146 | Incidence *in = incidence->clone(); |
1121 | cal->addIncidence( in ); | 1147 | cal->addIncidence( in ); |
1122 | } | 1148 | } |
1123 | } | 1149 | } |
1124 | incidence = delSel.next(); | 1150 | incidence = delSel.next(); |
1125 | } | 1151 | } |
1126 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 1152 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
1127 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 1153 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
1128 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1154 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1129 | 1155 | ||
1130 | setCaption( i18n("Writing to phone...")); | 1156 | setCaption( i18n("Writing to phone...")); |
1131 | if ( PhoneFormat::writeToPhone( cal ) ) | 1157 | if ( PhoneFormat::writeToPhone( cal ) ) |
1132 | setCaption( i18n("Export to phone successful!")); | 1158 | setCaption( i18n("Export to phone successful!")); |
1133 | else | 1159 | else |
1134 | setCaption( i18n("Error exporting to phone!")); | 1160 | setCaption( i18n("Error exporting to phone!")); |
1135 | delete cal; | 1161 | delete cal; |
1136 | } | 1162 | } |
1137 | 1163 | ||
1138 | 1164 | ||
1139 | void MainWindow::setDefaultPreferences() | 1165 | void MainWindow::setDefaultPreferences() |
1140 | { | 1166 | { |
1141 | KOPrefs *p = KOPrefs::instance(); | 1167 | KOPrefs *p = KOPrefs::instance(); |
1142 | 1168 | ||
1143 | p->mCompactDialogs = true; | 1169 | p->mCompactDialogs = true; |
1144 | p->mConfirm = true; | 1170 | p->mConfirm = true; |
1145 | // p->mEnableQuickTodo = false; | 1171 | // p->mEnableQuickTodo = false; |
1146 | 1172 | ||
1147 | } | 1173 | } |
1148 | 1174 | ||
1149 | QString MainWindow::resourcePath() | 1175 | QString MainWindow::resourcePath() |
1150 | { | 1176 | { |
1151 | return KGlobal::iconLoader()->iconPath(); | 1177 | return KGlobal::iconLoader()->iconPath(); |
1152 | } | 1178 | } |
1153 | 1179 | ||
1154 | void MainWindow::displayText( QString text ,QString cap ) | 1180 | void MainWindow::displayText( QString text ,QString cap ) |
1155 | { | 1181 | { |
1156 | QDialog dia( this, "name", true ); ; | 1182 | QDialog dia( this, "name", true ); ; |
1157 | dia.setCaption( cap ); | 1183 | dia.setCaption( cap ); |
1158 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1184 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1159 | lay->setSpacing( 3 ); | 1185 | lay->setSpacing( 3 ); |
1160 | lay->setMargin( 3 ); | 1186 | lay->setMargin( 3 ); |
1161 | QTextBrowser tb ( &dia ); | 1187 | QTextBrowser tb ( &dia ); |
1162 | lay->addWidget( &tb ); | 1188 | lay->addWidget( &tb ); |
1163 | tb.setText( text ); | 1189 | tb.setText( text ); |
1164 | #ifdef DESKTOP_VERSION | 1190 | #ifdef DESKTOP_VERSION |
1165 | dia.resize( 640, 480); | 1191 | dia.resize( 640, 480); |
1166 | #else | 1192 | #else |
1167 | dia.showMaximized(); | 1193 | dia.showMaximized(); |
1168 | #endif | 1194 | #endif |
1169 | dia.exec(); | 1195 | dia.exec(); |
1170 | } | 1196 | } |
1171 | 1197 | ||
1172 | void MainWindow::features() | 1198 | void MainWindow::features() |
1173 | { | 1199 | { |
1174 | 1200 | ||
1175 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); | 1201 | KApplication::showFile( i18n("KO/Pi Features and hints"), "kdepim/korganizer/featuresKOPI.txt" ); |
1176 | } | 1202 | } |
1177 | 1203 | ||
1178 | void MainWindow::usertrans() | 1204 | void MainWindow::usertrans() |
1179 | { | 1205 | { |
1180 | 1206 | ||
1181 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); | 1207 | KApplication::showFile( i18n("KO/Pi User translation HowTo"), "kdepim/korganizer/usertranslationHOWTO.txt" ); |
1182 | } | 1208 | } |
1183 | 1209 | ||
1184 | void MainWindow::kdesynchowto() | 1210 | void MainWindow::kdesynchowto() |
1185 | { | 1211 | { |
1186 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); | 1212 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/Zaurus-KDE_syncHowTo.txt" ); |
1187 | } | 1213 | } |
1188 | void MainWindow::multisynchowto() | 1214 | void MainWindow::multisynchowto() |
1189 | { | 1215 | { |
1190 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); | 1216 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/MultiSyncHowTo.txt" ); |
1191 | } | 1217 | } |
1192 | void MainWindow::synchowto() | 1218 | void MainWindow::synchowto() |
1193 | { | 1219 | { |
1194 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); | 1220 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1195 | } | 1221 | } |
1196 | void MainWindow::faq() | 1222 | void MainWindow::faq() |
1197 | { | 1223 | { |
1198 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); | 1224 | KApplication::showFile( i18n("KO/Pi FAQ"), "kdepim/korganizer/kopiFAQ.txt" ); |
1199 | 1225 | ||
1200 | } | 1226 | } |
1201 | void MainWindow::whatsNew() | 1227 | void MainWindow::whatsNew() |
1202 | { | 1228 | { |
1203 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); | 1229 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1204 | 1230 | ||
1205 | } | 1231 | } |
1206 | void MainWindow::licence() | 1232 | void MainWindow::licence() |
1207 | { | 1233 | { |
1208 | KApplication::showLicence(); | 1234 | KApplication::showLicence(); |
1209 | 1235 | ||
1210 | } | 1236 | } |
1211 | void MainWindow::about() | 1237 | void MainWindow::about() |
1212 | { | 1238 | { |
1213 | QString version; | 1239 | QString version; |
1214 | #include <../version> | 1240 | #include <../version> |
1215 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1241 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1216 | i18n("KOrganizer/Platform-independent\n") + | 1242 | i18n("KOrganizer/Platform-independent\n") + |
1217 | "(KO/Pi) " + version + " - " + | 1243 | "(KO/Pi) " + version + " - " + |
1218 | 1244 | ||
1219 | #ifdef DESKTOP_VERSION | 1245 | #ifdef DESKTOP_VERSION |
1220 | i18n("Desktop Edition\n") + | 1246 | i18n("Desktop Edition\n") + |
1221 | #else | 1247 | #else |
1222 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + | 1248 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + |
1223 | #endif | 1249 | #endif |
1224 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); | 1250 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); |
1225 | } | 1251 | } |
1226 | void MainWindow::keyBindings() | 1252 | void MainWindow::keyBindings() |
1227 | { | 1253 | { |
1228 | QString cap = i18n("KO/Pi Keys + Colors"); | 1254 | QString cap = i18n("KO/Pi Keys + Colors"); |
1229 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1255 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1230 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1256 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1231 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1257 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1232 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1258 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1233 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1259 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1234 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1260 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1235 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1261 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1236 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1262 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ |
1237 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1263 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1238 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1264 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1239 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1265 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1240 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1266 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1241 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1267 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1242 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1268 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ |
1243 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1269 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1244 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1270 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1245 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1271 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1246 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1272 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1247 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1273 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1248 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1274 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1249 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1275 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1250 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1276 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1251 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1277 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1252 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1278 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1253 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ | 1279 | i18n("<p><b>shift+U</b>: <b>U</b>nparent todo (make root todo)</p>\n")+ |
1254 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ | 1280 | i18n("<p><b>shift+S</b>: Make <b>S</b>ubtodo (reparent todo)</p>\n")+ |
1255 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ | 1281 | i18n("<p><b>shift+P</b>: Make new <b>P</b>arent for todo selected with shift+S</p>\n")+ |
1256 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1282 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1257 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1283 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1258 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1284 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1259 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1285 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1260 | i18n("<p><h3>In list view:</h3></p>\n") + | 1286 | i18n("<p><h3>In list view:</h3></p>\n") + |
1261 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1287 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1262 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1288 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1263 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1289 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1264 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1290 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1265 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1291 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1266 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1292 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1267 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1293 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1268 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1294 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1269 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1295 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1270 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1296 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1271 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1297 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1272 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1298 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1273 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1299 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1274 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1300 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1275 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1301 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1276 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1302 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1277 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1303 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1278 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1304 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1279 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1305 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1280 | displayText( text, cap); | 1306 | displayText( text, cap); |
1281 | } | 1307 | } |
1282 | void MainWindow::aboutAutoSaving() | 1308 | void MainWindow::aboutAutoSaving() |
1283 | { | 1309 | { |
1284 | 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"); | 1310 | 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"); |
1285 | 1311 | ||
1286 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); | 1312 | KApplication::showText( i18n("Auto Saving in KOrganizer/Pi"), text); |
1287 | 1313 | ||
1288 | } | 1314 | } |
1289 | void MainWindow::aboutKnownBugs() | 1315 | void MainWindow::aboutKnownBugs() |
1290 | { | 1316 | { |
1291 | QMessageBox* msg; | 1317 | QMessageBox* msg; |
1292 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), | 1318 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), |
1293 | 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")+ | 1319 | 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")+ |
1294 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ | 1320 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ |
1295 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") + | 1321 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") + |
1296 | i18n("\nor report them in the bugtracker on\n") + | 1322 | i18n("\nor report them in the bugtracker on\n") + |
1297 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), | 1323 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), |
1298 | QMessageBox::NoIcon, | 1324 | QMessageBox::NoIcon, |
1299 | QMessageBox::Ok, | 1325 | QMessageBox::Ok, |
1300 | QMessageBox::NoButton, | 1326 | QMessageBox::NoButton, |
1301 | QMessageBox::NoButton); | 1327 | QMessageBox::NoButton); |
1302 | msg->exec(); | 1328 | msg->exec(); |
1303 | delete msg; | 1329 | delete msg; |
1304 | 1330 | ||
1305 | } | 1331 | } |
1306 | 1332 | ||
1307 | QString MainWindow::defaultFileName() | 1333 | QString MainWindow::defaultFileName() |
1308 | { | 1334 | { |
1309 | return locateLocal( "data", "korganizer/mycalendar.ics" ); | 1335 | return locateLocal( "data", "korganizer/mycalendar.ics" ); |
1310 | } | 1336 | } |
1311 | QString MainWindow::syncFileName() | 1337 | QString MainWindow::syncFileName() |
1312 | { | 1338 | { |
1313 | #ifdef DESKTOP_VERSION | 1339 | #ifdef DESKTOP_VERSION |
1314 | return locateLocal( "tmp", "synccalendar.ics" ); | 1340 | return locateLocal( "tmp", "synccalendar.ics" ); |
1315 | #else | 1341 | #else |
1316 | return QString( "/tmp/synccalendar.ics" ); | 1342 | return QString( "/tmp/synccalendar.ics" ); |
1317 | #endif | 1343 | #endif |
1318 | } | 1344 | } |
1345 | void MainWindow::updateWeek(QDate seda) | ||
1346 | { | ||
1347 | int weekNum = 0; | ||
1348 | QDate d = QDate ( seda.year(), 1,1); | ||
1349 | seda = seda.addDays( 1-seda.dayOfWeek() );//we are on monday | ||
1350 | if ( seda.addDays(6).year() != seda.year() ) { | ||
1351 | if ( seda.year() != d.year() ) { | ||
1352 | if ( d.dayOfWeek() > 4 ) | ||
1353 | d = QDate ( seda.year(), 1,1); | ||
1354 | else | ||
1355 | weekNum = 1; | ||
1356 | } else { | ||
1357 | QDate dd( seda.year()+1, 1,1); | ||
1358 | if ( dd.dayOfWeek() <= 4 ) | ||
1359 | weekNum = 1; | ||
1360 | } | ||
1361 | } | ||
1362 | if ( weekNum == 0 ){ | ||
1363 | int dow = d.dayOfWeek(); | ||
1364 | if ( dow <= 4 ) | ||
1365 | d = d.addDays( 1-dow ); | ||
1366 | else // 5,6,7 | ||
1367 | d = d.addDays( 8-dow ); | ||
1368 | // we have the first week of the year.we are on monday | ||
1369 | weekNum = d.daysTo( seda ) / 7 +1; | ||
1370 | } | ||
1371 | //qDebug("weeknum %s ", QString::number( weekNum).latin1()); | ||
1372 | menuBarWeek-> changeItem(1, QString::number( weekNum) ); | ||
1319 | 1373 | ||
1374 | } | ||
1375 | void MainWindow::updateWeekNum(const DateList &selectedDates) | ||
1376 | { | ||
1377 | updateWeek( selectedDates.first() ); | ||
1378 | } | ||
1320 | void MainWindow::processIncidenceSelection( Incidence *incidence ) | 1379 | void MainWindow::processIncidenceSelection( Incidence *incidence ) |
1321 | { | 1380 | { |
1381 | |||
1322 | if ( !incidence ) { | 1382 | if ( !incidence ) { |
1323 | enableIncidenceActions( false ); | 1383 | enableIncidenceActions( false ); |
1324 | 1384 | ||
1325 | mNewSubTodoAction->setEnabled( false ); | 1385 | mNewSubTodoAction->setEnabled( false ); |
1326 | setCaptionToDates(); | 1386 | setCaptionToDates(); |
1327 | return; | 1387 | return; |
1328 | 1388 | ||
1329 | } | 1389 | } |
1330 | 1390 | ||
1331 | //KGlobal::locale()->formatDateTime(nextA, true); | 1391 | //KGlobal::locale()->formatDateTime(nextA, true); |
1332 | QString startString = ""; | 1392 | QString startString = ""; |
1333 | if ( incidence->type() != "Todo" ) { | 1393 | if ( incidence->type() != "Todo" ) { |
1334 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { | 1394 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { |
1335 | if ( incidence->doesFloat() ) { | 1395 | if ( incidence->doesFloat() ) { |
1336 | startString += ": "+incidence->dtStartDateStr( true ); | 1396 | startString += ": "+incidence->dtStartDateStr( true ); |
1337 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); | 1397 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); |
1338 | 1398 | ||
1339 | } else { | 1399 | } else { |
1340 | startString = ": "+incidence->dtStartStr(true); | 1400 | startString = ": "+incidence->dtStartStr(true); |
1341 | startString += " --- "+((Event*)incidence)->dtEndStr(true); | 1401 | startString += " --- "+((Event*)incidence)->dtEndStr(true); |
1342 | 1402 | ||
1343 | } | 1403 | } |
1344 | 1404 | ||
1345 | } else { | 1405 | } else { |
1346 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) | 1406 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) |
1347 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ | 1407 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ |
1348 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); | 1408 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); |
1349 | if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { | 1409 | if ( incidence->categories().contains( i18n("Birthday") ) || incidence->categories().contains( i18n("Anniversary") ) ) { |
1350 | bool ok; | 1410 | bool ok; |
1351 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); | 1411 | QDateTime noc = incidence->getNextOccurence( mView->startDate().addDays(-1), &ok ); |
1352 | if ( ok ) { | 1412 | if ( ok ) { |
1353 | int years = noc.date().year() - incidence->dtStart().date().year(); | 1413 | int years = noc.date().year() - incidence->dtStart().date().year(); |
1354 | startString += i18n(" (%1 y.)"). arg( years ); | 1414 | startString += i18n(" (%1 y.)"). arg( years ); |
1355 | } | 1415 | } |
1356 | } | 1416 | } |
1357 | else | 1417 | else |
1358 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); | 1418 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); |
1359 | } | 1419 | } |
1360 | 1420 | ||
1361 | } | 1421 | } |
1362 | else | 1422 | else |
1363 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); | 1423 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); |
1364 | if ( !incidence->location().isEmpty() ) | 1424 | if ( !incidence->location().isEmpty() ) |
1365 | startString += " (" +incidence->location()+")"; | 1425 | startString += " (" +incidence->location()+")"; |
1366 | setCaption( incidence->summary()+startString); | 1426 | setCaption( incidence->summary()+startString); |
1367 | 1427 | ||
1368 | enableIncidenceActions( true ); | 1428 | enableIncidenceActions( true ); |
1369 | 1429 | ||
1370 | if ( incidence->type() == "Event" ) { | 1430 | if ( incidence->type() == "Event" ) { |
1371 | mShowAction->setText( i18n("Show Event...") ); | 1431 | mShowAction->setText( i18n("Show Event...") ); |
1372 | mEditAction->setText( i18n("Edit Event...") ); | 1432 | mEditAction->setText( i18n("Edit Event...") ); |
1373 | mDeleteAction->setText( i18n("Delete Event...") ); | 1433 | mDeleteAction->setText( i18n("Delete Event...") ); |
1374 | 1434 | ||
1375 | mNewSubTodoAction->setEnabled( false ); | 1435 | mNewSubTodoAction->setEnabled( false ); |
1376 | } else if ( incidence->type() == "Todo" ) { | 1436 | } else if ( incidence->type() == "Todo" ) { |
1377 | mShowAction->setText( i18n("Show Todo...") ); | 1437 | mShowAction->setText( i18n("Show Todo...") ); |
1378 | mEditAction->setText( i18n("Edit Todo...") ); | 1438 | mEditAction->setText( i18n("Edit Todo...") ); |
1379 | mDeleteAction->setText( i18n("Delete Todo...") ); | 1439 | mDeleteAction->setText( i18n("Delete Todo...") ); |
1380 | 1440 | ||
1381 | mNewSubTodoAction->setEnabled( true ); | 1441 | mNewSubTodoAction->setEnabled( true ); |
1382 | } else { | 1442 | } else { |
1383 | mShowAction->setText( i18n("Show...") ); | 1443 | mShowAction->setText( i18n("Show...") ); |
1384 | mShowAction->setText( i18n("Edit...") ); | 1444 | mShowAction->setText( i18n("Edit...") ); |
1385 | mShowAction->setText( i18n("Delete...") ); | 1445 | mShowAction->setText( i18n("Delete...") ); |
1386 | 1446 | ||
1387 | mNewSubTodoAction->setEnabled( false ); | 1447 | mNewSubTodoAction->setEnabled( false ); |
1388 | } | 1448 | } |
1389 | } | 1449 | } |
1390 | 1450 | ||
1391 | void MainWindow::enableIncidenceActions( bool enabled ) | 1451 | void MainWindow::enableIncidenceActions( bool enabled ) |
1392 | { | 1452 | { |
1393 | mShowAction->setEnabled( enabled ); | 1453 | mShowAction->setEnabled( enabled ); |
1394 | mEditAction->setEnabled( enabled ); | 1454 | mEditAction->setEnabled( enabled ); |
1395 | mDeleteAction->setEnabled( enabled ); | 1455 | mDeleteAction->setEnabled( enabled ); |
1396 | 1456 | ||
1397 | mCloneAction->setEnabled( enabled ); | 1457 | mCloneAction->setEnabled( enabled ); |
1398 | mMoveAction->setEnabled( enabled ); | 1458 | mMoveAction->setEnabled( enabled ); |
1399 | mBeamAction->setEnabled( enabled ); | 1459 | mBeamAction->setEnabled( enabled ); |
1400 | mCancelAction->setEnabled( enabled ); | 1460 | mCancelAction->setEnabled( enabled ); |
1401 | } | 1461 | } |
1402 | 1462 | ||
1403 | void MainWindow::importOL() | 1463 | void MainWindow::importOL() |
1404 | { | 1464 | { |
1405 | #ifdef _OL_IMPORT_ | 1465 | #ifdef _OL_IMPORT_ |
1406 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1466 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1407 | id->exec(); | 1467 | id->exec(); |
1408 | delete id; | 1468 | delete id; |
1409 | mView->updateView(); | 1469 | mView->updateView(); |
1410 | #endif | 1470 | #endif |
1411 | } | 1471 | } |
1412 | void MainWindow::importBday() | 1472 | void MainWindow::importBday() |
1413 | { | 1473 | { |
1414 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1474 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1415 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), | 1475 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), |
1416 | i18n("Import!"), i18n("Cancel"), 0, | 1476 | i18n("Import!"), i18n("Cancel"), 0, |
1417 | 0, 1 ); | 1477 | 0, 1 ); |
1418 | if ( result == 0 ) { | 1478 | if ( result == 0 ) { |
1419 | mView->importBday(); | 1479 | mView->importBday(); |
1420 | 1480 | ||
1421 | } | 1481 | } |
1422 | 1482 | ||
1423 | 1483 | ||
1424 | } | 1484 | } |
1425 | void MainWindow::importQtopia() | 1485 | void MainWindow::importQtopia() |
1426 | { | 1486 | { |
1427 | #ifndef DESKTOP_VERSION | 1487 | #ifndef DESKTOP_VERSION |
1428 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1488 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1429 | 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"), | 1489 | 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"), |
1430 | i18n("Import!"), i18n("Cancel"), 0, | 1490 | i18n("Import!"), i18n("Cancel"), 0, |
1431 | 0, 1 ); | 1491 | 0, 1 ); |
1432 | if ( result == 0 ) { | 1492 | if ( result == 0 ) { |
1433 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); | 1493 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); |
1434 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); | 1494 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); |
1435 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; | 1495 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; |
1436 | mView->importQtopia( categories, datebook, todolist ); | 1496 | mView->importQtopia( categories, datebook, todolist ); |
1437 | } | 1497 | } |
1438 | #else | 1498 | #else |
1439 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1499 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1440 | i18n("Not supported \non desktop!\n"), | 1500 | i18n("Not supported \non desktop!\n"), |
1441 | i18n("Ok"), i18n("Cancel"), 0, | 1501 | i18n("Ok"), i18n("Cancel"), 0, |
1442 | 0, 1 ); | 1502 | 0, 1 ); |
1443 | 1503 | ||
1444 | #endif | 1504 | #endif |
1445 | } | 1505 | } |
1446 | 1506 | ||
1447 | void MainWindow::saveOnClose() | 1507 | void MainWindow::saveOnClose() |
1448 | { | 1508 | { |
1449 | KOPrefs *p = KOPrefs::instance(); | 1509 | KOPrefs *p = KOPrefs::instance(); |
1450 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1510 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1451 | p->mToolBarUp = iconToolBar->x() > width()/2 || | 1511 | p->mToolBarUp = iconToolBar->x() > width()/2 || |
1452 | iconToolBar->y() > height()/2; | 1512 | iconToolBar->y() > height()/2; |
1453 | mView->writeSettings(); | 1513 | mView->writeSettings(); |
1454 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1514 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |
1455 | save(); | 1515 | save(); |
1456 | } | 1516 | } |
1457 | void MainWindow::slotModifiedChanged( bool changed ) | 1517 | void MainWindow::slotModifiedChanged( bool changed ) |
1458 | { | 1518 | { |
1459 | if ( mBlockAtStartup ) | 1519 | if ( mBlockAtStartup ) |
1460 | return; | 1520 | return; |
1461 | 1521 | ||
1462 | int msec; | 1522 | int msec; |
1463 | // we store the changes after 1 minute, | 1523 | // we store the changes after 1 minute, |
1464 | // and for safety reasons after 10 minutes again | 1524 | // and for safety reasons after 10 minutes again |
1465 | if ( !mSyncManager->blockSave() ) | 1525 | if ( !mSyncManager->blockSave() ) |
1466 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; | 1526 | msec = (1000 * 60*KOPrefs::instance()->mAutoSaveInterval) +1000; |
1467 | else | 1527 | else |
1468 | msec = 1000 * 600; | 1528 | msec = 1000 * 600; |
1469 | mSaveTimer.start( msec, true ); // 1 minute | 1529 | mSaveTimer.start( msec, true ); // 1 minute |
1470 | qDebug("KO: Saving File in %d secs!", msec/1000); | 1530 | qDebug("KO: Saving File in %d secs!", msec/1000); |
1471 | mCalendarModifiedFlag = true; | 1531 | mCalendarModifiedFlag = true; |
1472 | } | 1532 | } |
1473 | void MainWindow::saveStopTimer() | 1533 | void MainWindow::saveStopTimer() |
1474 | { | 1534 | { |
1475 | mSaveTimer.stop(); | 1535 | mSaveTimer.stop(); |
1476 | if (mSaveTimer.isActive() ) | 1536 | if (mSaveTimer.isActive() ) |
1477 | qDebug("ti active "); | 1537 | qDebug("ti active "); |
1478 | else | 1538 | else |
1479 | qDebug("KO: Save timer stopped"); | 1539 | qDebug("KO: Save timer stopped"); |
1480 | } | 1540 | } |
1481 | void MainWindow::save() | 1541 | void MainWindow::save() |
1482 | { | 1542 | { |
1483 | if ( !mCalendarModifiedFlag ) { | 1543 | if ( !mCalendarModifiedFlag ) { |
1484 | qDebug("KO: Calendar not modified. Nothing saved."); | 1544 | qDebug("KO: Calendar not modified. Nothing saved."); |
1485 | return; | 1545 | return; |
1486 | } | 1546 | } |
1487 | if ( mSyncManager->blockSave() ) | 1547 | if ( mSyncManager->blockSave() ) |
1488 | return; | 1548 | return; |
1489 | mSyncManager->setBlockSave(true); | 1549 | mSyncManager->setBlockSave(true); |
1490 | if ( mView->checkFileVersion( defaultFileName()) ) { | 1550 | if ( mView->checkFileVersion( defaultFileName()) ) { |
1491 | QTime neededSaveTime = QDateTime::currentDateTime().time(); | 1551 | QTime neededSaveTime = QDateTime::currentDateTime().time(); |
1492 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); | 1552 | setCaption(i18n("KO/Pi:Saving Data to File ..." )); |
1493 | qDebug("KO: Start saving data to file!"); | 1553 | qDebug("KO: Start saving data to file!"); |
1494 | mView->saveCalendar( defaultFileName() ); | 1554 | mView->saveCalendar( defaultFileName() ); |
1495 | mCalendarModifiedFlag = false; | 1555 | mCalendarModifiedFlag = false; |
1496 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); | 1556 | int msNeeded = neededSaveTime.msecsTo( QDateTime::currentDateTime().time() ); |
1497 | qDebug("KO: Needed %d ms for saving.",msNeeded ); | 1557 | qDebug("KO: Needed %d ms for saving.",msNeeded ); |
1498 | QString savemes; | 1558 | QString savemes; |
1499 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); | 1559 | savemes.sprintf(i18n("KO/Pi:File Saved. Needed %d sec, %d ms"),(msNeeded/1000)%100,msNeeded%1000 ); |
1500 | setCaption(savemes); | 1560 | setCaption(savemes); |
1501 | } else | 1561 | } else |
1502 | setCaption(i18n("Saving cancelled!")); | 1562 | setCaption(i18n("Saving cancelled!")); |
1503 | mSyncManager->setBlockSave( false ); | 1563 | mSyncManager->setBlockSave( false ); |
1504 | } | 1564 | } |
1505 | 1565 | ||
1506 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) | 1566 | void MainWindow::keyReleaseEvent ( QKeyEvent * e) |
1507 | { | 1567 | { |
1508 | if ( !e->isAutoRepeat() ) { | 1568 | if ( !e->isAutoRepeat() ) { |
1509 | mFlagKeyPressed = false; | 1569 | mFlagKeyPressed = false; |
1510 | } | 1570 | } |
1511 | } | 1571 | } |
1512 | void MainWindow::keyPressEvent ( QKeyEvent * e ) | 1572 | void MainWindow::keyPressEvent ( QKeyEvent * e ) |
1513 | { | 1573 | { |
1514 | qApp->processEvents(); | 1574 | qApp->processEvents(); |
1515 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { | 1575 | if ( e->isAutoRepeat() && !mFlagKeyPressed ) { |
1516 | e->ignore(); | 1576 | e->ignore(); |
1517 | // qDebug(" ignore %d",e->isAutoRepeat() ); | 1577 | // qDebug(" ignore %d",e->isAutoRepeat() ); |
1518 | return; | 1578 | return; |
1519 | } | 1579 | } |
1520 | if (! e->isAutoRepeat() ) | 1580 | if (! e->isAutoRepeat() ) |
1521 | mFlagKeyPressed = true; | 1581 | mFlagKeyPressed = true; |
1522 | KOPrefs *p = KOPrefs::instance(); | 1582 | KOPrefs *p = KOPrefs::instance(); |
1523 | bool showSelectedDates = false; | 1583 | bool showSelectedDates = false; |
1524 | int size; | 1584 | int size; |
1525 | int pro = 0; | 1585 | int pro = 0; |
1526 | //qDebug("MainWindow::keyPressEvent "); | 1586 | //qDebug("MainWindow::keyPressEvent "); |
1527 | switch ( e->key() ) { | 1587 | switch ( e->key() ) { |
1528 | case Qt::Key_Right: | 1588 | case Qt::Key_Right: |
1529 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1589 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1530 | mView->goNextMonth(); | 1590 | mView->goNextMonth(); |
1531 | else | 1591 | else |
1532 | mView->goNext(); | 1592 | mView->goNext(); |
1533 | showSelectedDates = true; | 1593 | showSelectedDates = true; |
1534 | break; | 1594 | break; |
1535 | case Qt::Key_Left: | 1595 | case Qt::Key_Left: |
1536 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1596 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1537 | mView->goPreviousMonth(); | 1597 | mView->goPreviousMonth(); |
1538 | else | 1598 | else |
1539 | mView->goPrevious(); | 1599 | mView->goPrevious(); |
1540 | showSelectedDates = true; | 1600 | showSelectedDates = true; |
1541 | break; | 1601 | break; |
1542 | case Qt::Key_Down: | 1602 | case Qt::Key_Down: |
1543 | mView->viewManager()->agendaView()->scrollOneHourDown(); | 1603 | mView->viewManager()->agendaView()->scrollOneHourDown(); |
1544 | break; | 1604 | break; |
1545 | case Qt::Key_Up: | 1605 | case Qt::Key_Up: |
1546 | mView->viewManager()->agendaView()->scrollOneHourUp(); | 1606 | mView->viewManager()->agendaView()->scrollOneHourUp(); |
1547 | break; | 1607 | break; |
1548 | case Qt::Key_I: | 1608 | case Qt::Key_I: |
1549 | mView->showIncidence(); | 1609 | mView->showIncidence(); |
1550 | break; | 1610 | break; |
1551 | case Qt::Key_Delete: | 1611 | case Qt::Key_Delete: |
1552 | case Qt::Key_Backspace: | 1612 | case Qt::Key_Backspace: |
1553 | mView->deleteIncidence(); | 1613 | mView->deleteIncidence(); |
1554 | break; | 1614 | break; |
1555 | case Qt::Key_D: | 1615 | case Qt::Key_D: |
1556 | mView->viewManager()->showDayView(); | 1616 | mView->viewManager()->showDayView(); |
1557 | showSelectedDates = true; | 1617 | showSelectedDates = true; |
1558 | break; | 1618 | break; |
1559 | case Qt::Key_O: | 1619 | case Qt::Key_O: |
1560 | mView->toggleFilerEnabled( ); | 1620 | mView->toggleFilerEnabled( ); |
1561 | break; | 1621 | break; |
1562 | case Qt::Key_0: | 1622 | case Qt::Key_0: |
1563 | case Qt::Key_1: | 1623 | case Qt::Key_1: |
1564 | case Qt::Key_2: | 1624 | case Qt::Key_2: |
1565 | case Qt::Key_3: | 1625 | case Qt::Key_3: |
1566 | case Qt::Key_4: | 1626 | case Qt::Key_4: |
1567 | case Qt::Key_5: | 1627 | case Qt::Key_5: |
1568 | case Qt::Key_6: | 1628 | case Qt::Key_6: |
1569 | case Qt::Key_7: | 1629 | case Qt::Key_7: |
1570 | case Qt::Key_8: | 1630 | case Qt::Key_8: |
1571 | case Qt::Key_9: | 1631 | case Qt::Key_9: |
1572 | pro = e->key()-48; | 1632 | pro = e->key()-48; |
1573 | if ( pro == 0 ) | 1633 | if ( pro == 0 ) |
1574 | pro = 10; | 1634 | pro = 10; |
1575 | if ( e->state() == Qt::ControlButton) | 1635 | if ( e->state() == Qt::ControlButton) |
1576 | pro += 10; | 1636 | pro += 10; |
1577 | break; | 1637 | break; |
1578 | case Qt::Key_M: | 1638 | case Qt::Key_M: |
1579 | mView->viewManager()->showMonthView(); | 1639 | mView->viewManager()->showMonthView(); |
1580 | showSelectedDates = true; | 1640 | showSelectedDates = true; |
1581 | break; | 1641 | break; |
1582 | case Qt::Key_Insert: | 1642 | case Qt::Key_Insert: |
1583 | mView->newEvent(); | 1643 | mView->newEvent(); |
1584 | break; | 1644 | break; |
1585 | case Qt::Key_S : | 1645 | case Qt::Key_S : |
1586 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) | 1646 | if ( e->state() == Qt::ControlButton || e->state() == Qt::ShiftButton) |
1587 | mView->newSubTodo(); | 1647 | mView->newSubTodo(); |
1588 | else | 1648 | else |
1589 | mView->dialogManager()->showSearchDialog(); | 1649 | mView->dialogManager()->showSearchDialog(); |
1590 | break; | 1650 | break; |
1591 | case Qt::Key_Y : | 1651 | case Qt::Key_Y : |
1592 | case Qt::Key_Z : | 1652 | case Qt::Key_Z : |
1593 | mView->viewManager()->showWorkWeekView(); | 1653 | mView->viewManager()->showWorkWeekView(); |
1594 | showSelectedDates = true; | 1654 | showSelectedDates = true; |
1595 | break; | 1655 | break; |
1596 | case Qt::Key_U : | 1656 | case Qt::Key_U : |
1597 | mView->viewManager()->showWeekView(); | 1657 | mView->viewManager()->showWeekView(); |
1598 | showSelectedDates = true; | 1658 | showSelectedDates = true; |
1599 | break; | 1659 | break; |
1600 | case Qt::Key_H : | 1660 | case Qt::Key_H : |
1601 | keyBindings(); | 1661 | keyBindings(); |
1602 | break; | 1662 | break; |
1603 | case Qt::Key_W: | 1663 | case Qt::Key_W: |
1604 | mView->viewManager()->showWhatsNextView(); | 1664 | mView->viewManager()->showWhatsNextView(); |
1605 | break; | 1665 | break; |
1606 | case Qt::Key_L: | 1666 | case Qt::Key_L: |
1607 | mView->viewManager()->showListView(); | 1667 | mView->viewManager()->showListView(); |
1608 | break; | 1668 | break; |
1609 | case Qt::Key_N: | 1669 | case Qt::Key_N: |
1610 | mView->viewManager()->showNextXView(); | 1670 | mView->viewManager()->showNextXView(); |
1611 | showSelectedDates = true; | 1671 | showSelectedDates = true; |
1612 | break; | 1672 | break; |
1613 | case Qt::Key_V: | 1673 | case Qt::Key_V: |
1614 | mView->viewManager()->showTodoView(); | 1674 | mView->viewManager()->showTodoView(); |
1615 | break; | 1675 | break; |
1616 | case Qt::Key_C: | 1676 | case Qt::Key_C: |
1617 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); | 1677 | mView->viewManager()->agendaView()->setStartHour( QTime::currentTime ().hour() ); |
1618 | break; | 1678 | break; |
1619 | case Qt::Key_P: | 1679 | case Qt::Key_P: |
1620 | mView->showDatePicker( ); | 1680 | mView->showDatePicker( ); |
1621 | break; | 1681 | break; |
1622 | case Qt::Key_F: | 1682 | case Qt::Key_F: |
1623 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1683 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1624 | mView->editFilters(); | 1684 | mView->editFilters(); |
1625 | else | 1685 | else |
1626 | mView->toggleFilter(); | 1686 | mView->toggleFilter(); |
1627 | break; | 1687 | break; |
1628 | case Qt::Key_X: | 1688 | case Qt::Key_X: |
1629 | mView->toggleDateNavigatorWidget(); | 1689 | mView->toggleDateNavigatorWidget(); |
1630 | break; | 1690 | break; |
1631 | case Qt::Key_Space: | 1691 | case Qt::Key_Space: |
1632 | mView->toggleExpand(); | 1692 | mView->toggleExpand(); |
1633 | break; | 1693 | break; |
1634 | case Qt::Key_A: | 1694 | case Qt::Key_A: |
1635 | mView->toggleAllDaySize(); | 1695 | mView->toggleAllDaySize(); |
1636 | break; | 1696 | break; |
1637 | case Qt::Key_T: | 1697 | case Qt::Key_T: |
1638 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1698 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1639 | mView->newTodo(); | 1699 | mView->newTodo(); |
1640 | else { | 1700 | else { |
1641 | mView->goToday(); | 1701 | mView->goToday(); |
1642 | showSelectedDates = true; | 1702 | showSelectedDates = true; |
1643 | } | 1703 | } |
1644 | break; | 1704 | break; |
1645 | case Qt::Key_J: | 1705 | case Qt::Key_J: |
1646 | mView->viewManager()->showJournalView(); | 1706 | mView->viewManager()->showJournalView(); |
1647 | break; | 1707 | break; |
1648 | case Qt::Key_B: | 1708 | case Qt::Key_B: |
1649 | mView->editIncidenceDescription();; | 1709 | mView->editIncidenceDescription();; |
1650 | break; | 1710 | break; |
1651 | // case Qt::Key_Return: | 1711 | // case Qt::Key_Return: |
1652 | case Qt::Key_E: | 1712 | case Qt::Key_E: |
1653 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 1713 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
1654 | mView->newEvent(); | 1714 | mView->newEvent(); |
1655 | else | 1715 | else |
1656 | mView->editIncidence(); | 1716 | mView->editIncidence(); |
1657 | break; | 1717 | break; |
1658 | case Qt::Key_Plus: | 1718 | case Qt::Key_Plus: |
1659 | size = p->mHourSize +2; | 1719 | size = p->mHourSize +2; |
1660 | if ( size <= 18 ) | 1720 | if ( size <= 18 ) |
1661 | configureAgenda( size ); | 1721 | configureAgenda( size ); |
1662 | break; | 1722 | break; |
1663 | case Qt::Key_Minus: | 1723 | case Qt::Key_Minus: |
1664 | size = p->mHourSize - 2; | 1724 | size = p->mHourSize - 2; |
1665 | if ( size >= 4 ) | 1725 | if ( size >= 4 ) |
1666 | configureAgenda( size ); | 1726 | configureAgenda( size ); |
1667 | break; | 1727 | break; |
1668 | 1728 | ||
1669 | 1729 | ||
1670 | default: | 1730 | default: |
1671 | e->ignore(); | 1731 | e->ignore(); |
1672 | } | 1732 | } |
1673 | if ( pro > 0 ) { | 1733 | if ( pro > 0 ) { |
1674 | mView->selectFilter( pro-1 ); | 1734 | mView->selectFilter( pro-1 ); |
1675 | } | 1735 | } |
1676 | if ( showSelectedDates ) { | 1736 | if ( showSelectedDates ) { |
1677 | ;// setCaptionToDates(); | 1737 | ;// setCaptionToDates(); |
1678 | } | 1738 | } |
1679 | 1739 | ||
1680 | } | 1740 | } |
1681 | 1741 | ||
1682 | void MainWindow::fillFilterMenu() | 1742 | void MainWindow::fillFilterMenu() |
1683 | { | 1743 | { |
1684 | selectFilterMenu->clear(); | 1744 | selectFilterMenu->clear(); |
1685 | bool disable = false; | 1745 | bool disable = false; |
1686 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); | 1746 | selectFilterMenu->insertItem(i18n ( "Edit Filters" ), 0 ); |
1687 | selectFilterMenu->insertSeparator(); | 1747 | selectFilterMenu->insertSeparator(); |
1688 | if ( mView->filterView()->filtersEnabled() ) { | 1748 | if ( mView->filterView()->filtersEnabled() ) { |
1689 | selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 1 ); | 1749 | selectFilterMenu->insertItem(i18n ( "Turn filter off" ), 1 ); |
1690 | } | 1750 | } |
1691 | else { | 1751 | else { |
1692 | selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 1 ); | 1752 | selectFilterMenu->insertItem(i18n ( "Turn filter on" ), 1 ); |
1693 | disable = true; | 1753 | disable = true; |
1694 | } | 1754 | } |
1695 | selectFilterMenu->insertSeparator(); | 1755 | selectFilterMenu->insertSeparator(); |
1696 | QPtrList<CalFilter> fili = mView->filters(); | 1756 | QPtrList<CalFilter> fili = mView->filters(); |
1697 | CalFilter *curfilter = mView->filterView()->selectedFilter(); | 1757 | CalFilter *curfilter = mView->filterView()->selectedFilter(); |
1698 | CalFilter *filter = fili.first(); | 1758 | CalFilter *filter = fili.first(); |
1699 | int iii = 2; | 1759 | int iii = 2; |
1700 | while(filter) { | 1760 | while(filter) { |
1701 | selectFilterMenu->insertItem( filter->name(), iii ); | 1761 | selectFilterMenu->insertItem( filter->name(), iii ); |
1702 | if ( filter == curfilter) | 1762 | if ( filter == curfilter) |
1703 | selectFilterMenu->setItemChecked( iii, true ); | 1763 | selectFilterMenu->setItemChecked( iii, true ); |
1704 | if ( disable ) | 1764 | if ( disable ) |
1705 | selectFilterMenu->setItemEnabled( iii, false ); | 1765 | selectFilterMenu->setItemEnabled( iii, false ); |
1706 | filter = fili.next(); | 1766 | filter = fili.next(); |
1707 | ++iii; | 1767 | ++iii; |
1708 | } | 1768 | } |
1709 | } | 1769 | } |
1710 | void MainWindow::selectFilter( int fil ) | 1770 | void MainWindow::selectFilter( int fil ) |
1711 | { | 1771 | { |
1712 | if ( fil == 0 ) { | 1772 | if ( fil == 0 ) { |
1713 | mView->editFilters( ); | 1773 | mView->editFilters( ); |
1714 | } else if ( fil == 1 ){ | 1774 | } else if ( fil == 1 ){ |
1715 | mView->toggleFilerEnabled( ); | 1775 | mView->toggleFilerEnabled( ); |
1716 | } else { | 1776 | } else { |
1717 | mView->selectFilter( fil-2 ); | 1777 | mView->selectFilter( fil-2 ); |
1718 | } | 1778 | } |
1719 | } | 1779 | } |
1720 | void MainWindow::configureToolBar( int item ) | 1780 | void MainWindow::configureToolBar( int item ) |
1721 | { | 1781 | { |
1722 | 1782 | ||
1723 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); | 1783 | configureToolBarMenu->setItemChecked( item, !configureToolBarMenu-> isItemChecked ( item ) ); |
1724 | KOPrefs *p = KOPrefs::instance(); | 1784 | KOPrefs *p = KOPrefs::instance(); |
1725 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); | 1785 | p-> mShowIconStretch= configureToolBarMenu->isItemChecked( 5 ); |
1726 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); | 1786 | p-> mShowIconNewEvent= configureToolBarMenu->isItemChecked( 10 ); |
1727 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); | 1787 | p->mShowIconNewTodo = configureToolBarMenu->isItemChecked( 20 ); |
1728 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); | 1788 | p-> mShowIconSearch= configureToolBarMenu->isItemChecked( 120 ); |
1729 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); | 1789 | p-> mShowIconList= configureToolBarMenu->isItemChecked( 30 ); |
1730 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); | 1790 | p-> mShowIconDay1= configureToolBarMenu->isItemChecked( 40 ); |
1731 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); | 1791 | p-> mShowIconDay5= configureToolBarMenu->isItemChecked( 50 ); |
1732 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); | 1792 | p-> mShowIconDay7= configureToolBarMenu->isItemChecked( 60 ); |
1733 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); | 1793 | p-> mShowIconMonth= configureToolBarMenu->isItemChecked( 70 ); |
1734 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); | 1794 | p-> mShowIconTodoview= configureToolBarMenu->isItemChecked( 80 ); |
1735 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); | 1795 | p-> mShowIconBackFast= configureToolBarMenu->isItemChecked( 200 ); |
1736 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); | 1796 | p-> mShowIconBack = configureToolBarMenu->isItemChecked( 210 ); |
1737 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); | 1797 | p-> mShowIconToday= configureToolBarMenu->isItemChecked( 130 ); |
1738 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); | 1798 | p-> mShowIconForward= configureToolBarMenu->isItemChecked( 220 ); |
1739 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); | 1799 | p-> mShowIconForwardFast= configureToolBarMenu->isItemChecked( 230 ); |
1740 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); | 1800 | p-> mShowIconNextDays= configureToolBarMenu->isItemChecked( 100 ); |
1741 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); | 1801 | p-> mShowIconNext= configureToolBarMenu->isItemChecked( 110 ); |
1742 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); | 1802 | p-> mShowIconJournal= configureToolBarMenu->isItemChecked( 90 ); |
1743 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); | 1803 | p-> mShowIconWhatsThis= configureToolBarMenu->isItemChecked( 300 ); |
1744 | // initActions(); | 1804 | // initActions(); |
1745 | } | 1805 | } |
1746 | 1806 | ||
1747 | void MainWindow::setCaptionToDates() | 1807 | void MainWindow::setCaptionToDates() |
1748 | { | 1808 | { |
1749 | QString selDates; | 1809 | QString selDates; |
1750 | selDates = KGlobal::locale()->formatDate(mView->startDate(), true); | 1810 | selDates = KGlobal::locale()->formatDate(mView->startDate(), true); |
1751 | if (mView->startDate() < mView->endDate() ) | 1811 | if (mView->startDate() < mView->endDate() ) |
1752 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); | 1812 | selDates += " - " + KGlobal::locale()->formatDate(mView->endDate(), true); |
1753 | else { | 1813 | else { |
1754 | QString addString; | 1814 | QString addString; |
1755 | if ( mView->startDate() == QDateTime::currentDateTime().date() ) | 1815 | if ( mView->startDate() == QDateTime::currentDateTime().date() ) |
1756 | addString = i18n("Today"); | 1816 | addString = i18n("Today"); |
1757 | else if ( mView->startDate() == QDateTime::currentDateTime().date().addDays(1) ) | 1817 | else if ( mView->startDate() == QDateTime::currentDateTime().date().addDays(1) ) |
1758 | addString = i18n("Tomorrow"); | 1818 | addString = i18n("Tomorrow"); |
1759 | if ( !addString.isEmpty() ) | 1819 | if ( !addString.isEmpty() ) |
1760 | selDates = addString+", "+selDates ; | 1820 | selDates = addString+", "+selDates ; |
1761 | } | 1821 | } |
1762 | setCaption( i18n("Dates: ") + selDates ); | 1822 | setCaption( i18n("Dates: ") + selDates ); |
1763 | 1823 | ||
1764 | } | 1824 | } |
1765 | void MainWindow::showConfigureAgenda( ) | 1825 | void MainWindow::showConfigureAgenda( ) |
1766 | { | 1826 | { |
1767 | int iii; | 1827 | int iii; |
1768 | for ( iii = 1;iii<= 10 ;++iii ){ | 1828 | for ( iii = 1;iii<= 10 ;++iii ){ |
1769 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); | 1829 | configureAgendaMenu->setItemChecked( (iii+1)*2, false ); |
1770 | } | 1830 | } |
1771 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); | 1831 | configureAgendaMenu->setItemChecked( (KOPrefs::instance()->mHourSize/2)*2, true ); |
1772 | } | 1832 | } |
1773 | void MainWindow::configureAgenda( int item ) | 1833 | void MainWindow::configureAgenda( int item ) |
1774 | { | 1834 | { |
1775 | if ( KOPrefs::instance()->mHourSize == item ) | 1835 | if ( KOPrefs::instance()->mHourSize == item ) |
1776 | return; | 1836 | return; |
1777 | KOPrefs::instance()->mHourSize=item; | 1837 | KOPrefs::instance()->mHourSize=item; |
1778 | mView->viewManager()->agendaView()->updateConfig(); | 1838 | mView->viewManager()->agendaView()->updateConfig(); |
1779 | } | 1839 | } |
1780 | 1840 | ||
1781 | void MainWindow::saveCalendar() | 1841 | void MainWindow::saveCalendar() |
1782 | { | 1842 | { |
1783 | QString fn = KOPrefs::instance()->mLastSaveFile; | 1843 | QString fn = KOPrefs::instance()->mLastSaveFile; |
1784 | fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); | 1844 | fn = KFileDialog::getSaveFileName( fn, i18n("Save backup filename"), this ); |
1785 | 1845 | ||
1786 | if ( fn == "" ) | 1846 | if ( fn == "" ) |
1787 | return; | 1847 | return; |
1788 | QFileInfo info; | 1848 | QFileInfo info; |
1789 | info.setFile( fn ); | 1849 | info.setFile( fn ); |
1790 | QString mes; | 1850 | QString mes; |
1791 | bool createbup = true; | 1851 | bool createbup = true; |
1792 | if ( info. exists() ) { | 1852 | if ( info. exists() ) { |
1793 | mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ; | 1853 | mes = i18n("Backup file\nalready exists!\nOld backup file from:\n%1\nOverwrite?\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )) ; |
1794 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 1854 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
1795 | i18n("Overwrite!"), i18n("Cancel"), 0, | 1855 | i18n("Overwrite!"), i18n("Cancel"), 0, |
1796 | 0, 1 ); | 1856 | 0, 1 ); |
1797 | if ( result != 0 ) { | 1857 | if ( result != 0 ) { |
1798 | createbup = false; | 1858 | createbup = false; |
1799 | } | 1859 | } |
1800 | } | 1860 | } |
1801 | if ( createbup ) { | 1861 | if ( createbup ) { |
1802 | mView->saveCalendar( fn ); | 1862 | mView->saveCalendar( fn ); |
1803 | mes = i18n("KO/Pi:Saved %1").arg(fn); | 1863 | mes = i18n("KO/Pi:Saved %1").arg(fn); |
1804 | KOPrefs::instance()->mLastSaveFile = fn; | 1864 | KOPrefs::instance()->mLastSaveFile = fn; |
1805 | setCaption(mes); | 1865 | setCaption(mes); |
1806 | } | 1866 | } |
1807 | } | 1867 | } |
1808 | void MainWindow::loadCalendar() | 1868 | void MainWindow::loadCalendar() |
1809 | { | 1869 | { |
1810 | 1870 | ||
1811 | QString fn = KOPrefs::instance()->mLastLoadFile; | 1871 | QString fn = KOPrefs::instance()->mLastLoadFile; |
1812 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); | 1872 | fn = KFileDialog::getOpenFileName( fn, i18n("Load backup filename"), this ); |
1813 | 1873 | ||
1814 | if ( fn == "" ) | 1874 | if ( fn == "" ) |
1815 | return; | 1875 | return; |
1816 | QFileInfo info; | 1876 | QFileInfo info; |
1817 | info.setFile( fn ); | 1877 | info.setFile( fn ); |
1818 | QString mess; | 1878 | QString mess; |
1819 | bool loadbup = true; | 1879 | bool loadbup = true; |
1820 | if ( info. exists() ) { | 1880 | if ( info. exists() ) { |
1821 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); | 1881 | mess = i18n("Backup file from:\n%1\nLoading backup\nfile will delete\nyour current Data!\n").arg(KGlobal::locale()->formatDateTime(info.lastModified (), true, false )); |
1822 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", | 1882 | int result = QMessageBox::warning( this, "KO/Pi: Warning!", |
1823 | mess, | 1883 | mess, |
1824 | i18n("Load!"), i18n("Cancel"), 0, | 1884 | i18n("Load!"), i18n("Cancel"), 0, |
1825 | 0, 1 ); | 1885 | 0, 1 ); |
1826 | if ( result != 0 ) { | 1886 | if ( result != 0 ) { |
1827 | loadbup = false; | 1887 | loadbup = false; |
1828 | } | 1888 | } |
1829 | } else { | 1889 | } else { |
1830 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1890 | QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1831 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, | 1891 | i18n("Backup file\ndoes not exist!\nNothing loaded!"), 0, 0, |
1832 | 0, 1 ); | 1892 | 0, 1 ); |
1833 | 1893 | ||
1834 | return; | 1894 | return; |
1835 | } | 1895 | } |
1836 | if ( loadbup ) { | 1896 | if ( loadbup ) { |
1837 | mView->openCalendar( fn ); | 1897 | mView->openCalendar( fn ); |
1838 | KOPrefs::instance()->mLastLoadFile = fn; | 1898 | KOPrefs::instance()->mLastLoadFile = fn; |
1839 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; | 1899 | mess = i18n("KO/Pi:Loaded %1").arg(fn) ; |
1840 | setCaption(mess); | 1900 | setCaption(mess); |
1841 | } | 1901 | } |
1842 | 1902 | ||
1843 | } | 1903 | } |
1844 | void MainWindow::quickImportIcal() | 1904 | void MainWindow::quickImportIcal() |
1845 | { | 1905 | { |
1846 | importFile( KOPrefs::instance()->mLastImportFile, false ); | 1906 | importFile( KOPrefs::instance()->mLastImportFile, false ); |
1847 | } | 1907 | } |
1848 | void MainWindow::importFile( QString fn, bool quick ) | 1908 | void MainWindow::importFile( QString fn, bool quick ) |
1849 | { | 1909 | { |
1850 | QFileInfo info; | 1910 | QFileInfo info; |
1851 | info.setFile( fn ); | 1911 | info.setFile( fn ); |
1852 | QString mess; | 1912 | QString mess; |
1853 | bool loadbup = true; | 1913 | bool loadbup = true; |
1854 | if ( !info. exists() ) { | 1914 | if ( !info. exists() ) { |
1855 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); | 1915 | mess = i18n("Import file \n...%1\ndoes not exist!\nNothing imported!\n").arg(fn.right( 30)); |
1856 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1916 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1857 | mess ); | 1917 | mess ); |
1858 | return; | 1918 | return; |
1859 | } | 1919 | } |
1860 | int result = 0; | 1920 | int result = 0; |
1861 | if ( !quick ) { | 1921 | if ( !quick ) { |
1862 | 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 )); | 1922 | 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 )); |
1863 | result = QMessageBox::warning( this, "KO/Pi: Warning!", | 1923 | result = QMessageBox::warning( this, "KO/Pi: Warning!", |
1864 | mess, | 1924 | mess, |
1865 | "Import", "Cancel", 0, | 1925 | "Import", "Cancel", 0, |
1866 | 0, 1 ); | 1926 | 0, 1 ); |
1867 | } | 1927 | } |
1868 | if ( result == 0 ) { | 1928 | if ( result == 0 ) { |
1869 | if ( mView->openCalendar( fn, true )) { | 1929 | if ( mView->openCalendar( fn, true )) { |
1870 | KOPrefs::instance()->mLastImportFile = fn; | 1930 | KOPrefs::instance()->mLastImportFile = fn; |
1871 | setCaption(i18n("Imported file successfully")); | 1931 | setCaption(i18n("Imported file successfully")); |
1872 | } else { | 1932 | } else { |
1873 | setCaption(i18n("Error importing file")); | 1933 | setCaption(i18n("Error importing file")); |
1874 | } | 1934 | } |
1875 | } | 1935 | } |
1876 | } | 1936 | } |
1877 | 1937 | ||
1878 | void MainWindow::importIcal() | 1938 | void MainWindow::importIcal() |
1879 | { | 1939 | { |
1880 | 1940 | ||
1881 | QString fn =KOPrefs::instance()->mLastImportFile; | 1941 | QString fn =KOPrefs::instance()->mLastImportFile; |
1882 | 1942 | ||
1883 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); | 1943 | fn =KFileDialog:: getOpenFileName( fn, i18n("Import filename(*.ics/*.vcs)"), this ); |
1884 | if ( fn == "" ) | 1944 | if ( fn == "" ) |
1885 | return; | 1945 | return; |
1886 | importFile( fn, true ); | 1946 | importFile( fn, true ); |
1887 | 1947 | ||
1888 | } | 1948 | } |
1889 | 1949 | ||
1890 | void MainWindow::exportVCalendar() | 1950 | void MainWindow::exportVCalendar() |
1891 | { | 1951 | { |
1892 | QString fn = KOPrefs::instance()->mLastVcalFile; | 1952 | QString fn = KOPrefs::instance()->mLastVcalFile; |
1893 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); | 1953 | fn = KFileDialog::getSaveFileName( fn, i18n("Export vcal filename(*.vcs)"), this ); |
1894 | if ( fn == "" ) | 1954 | if ( fn == "" ) |
1895 | return; | 1955 | return; |
1896 | QFileInfo info; | 1956 | QFileInfo info; |
1897 | info.setFile( fn ); | 1957 | info.setFile( fn ); |
1898 | QString mes; | 1958 | QString mes; |
1899 | bool createbup = true; | 1959 | bool createbup = true; |
1900 | if ( info. exists() ) { | 1960 | if ( info. exists() ) { |
1901 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); | 1961 | mes = i18n("Save file\nalready exists!\nOld save file from:\n%1\nOverwrite?\n").arg (KGlobal::locale()->formatDateTime(info.lastModified (), true, false ) ); |
1902 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, | 1962 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"),mes, |
1903 | i18n("Overwrite!"), i18n("Cancel"), 0, | 1963 | i18n("Overwrite!"), i18n("Cancel"), 0, |
1904 | 0, 1 ); | 1964 | 0, 1 ); |
1905 | if ( result != 0 ) { | 1965 | if ( result != 0 ) { |
1906 | createbup = false; | 1966 | createbup = false; |
1907 | } | 1967 | } |
1908 | } | 1968 | } |
1909 | if ( createbup ) { | 1969 | if ( createbup ) { |
1910 | if ( mView->exportVCalendar( fn ) ) { | 1970 | if ( mView->exportVCalendar( fn ) ) { |
1911 | KOPrefs::instance()->mLastVcalFile = fn; | 1971 | KOPrefs::instance()->mLastVcalFile = fn; |
1912 | if ( fn.length() > 20 ) | 1972 | if ( fn.length() > 20 ) |
1913 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; | 1973 | mes = i18n("KO/Pi:Exported to ...%1").arg(fn.right(20)) ; |
1914 | else | 1974 | else |
1915 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); | 1975 | mes = i18n("KO/Pi:Exported to %1").arg(fn ); |
1916 | setCaption(mes); | 1976 | setCaption(mes); |
1917 | } | 1977 | } |
1918 | } | 1978 | } |
1919 | 1979 | ||
1920 | } | 1980 | } |
1921 | 1981 | ||
1922 | void MainWindow::syncFileRequest() | 1982 | void MainWindow::syncFileRequest() |
1923 | { | 1983 | { |
1924 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 1984 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
1925 | mSyncManager->slotSyncMenu( 999 ); | 1985 | mSyncManager->slotSyncMenu( 999 ); |
1926 | } | 1986 | } |
1927 | save(); | 1987 | save(); |
1928 | } | 1988 | } |
1929 | void MainWindow::getFile( bool success ) | 1989 | void MainWindow::getFile( bool success ) |
1930 | { | 1990 | { |
1931 | if ( ! success ) { | 1991 | if ( ! success ) { |
1932 | setCaption( i18n("Error receiving file. Nothing changed!") ); | 1992 | setCaption( i18n("Error receiving file. Nothing changed!") ); |
1933 | return; | 1993 | return; |
1934 | } | 1994 | } |
1935 | mView->openCalendar( defaultFileName() ); | 1995 | mView->openCalendar( defaultFileName() ); |
1936 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { | 1996 | if ( KOPrefs::instance()->mPassiveSyncWithDesktop ) { |
1937 | mSyncManager->slotSyncMenu( 999 ); | 1997 | mSyncManager->slotSyncMenu( 999 ); |
1938 | } | 1998 | } |
1939 | setCaption( i18n("Pi-Sync successful!") ); | 1999 | setCaption( i18n("Pi-Sync successful!") ); |
1940 | } | 2000 | } |
1941 | 2001 | ||
1942 | void MainWindow::printSel( ) | 2002 | void MainWindow::printSel( ) |
1943 | { | 2003 | { |
1944 | mView->viewManager()->agendaView()->agenda()->printSelection(); | 2004 | mView->viewManager()->agendaView()->agenda()->printSelection(); |
1945 | } | 2005 | } |
1946 | 2006 | ||
1947 | void MainWindow::printCal() | 2007 | void MainWindow::printCal() |
1948 | { | 2008 | { |
1949 | mView->print();//mCp->showDialog(); | 2009 | mView->print();//mCp->showDialog(); |
1950 | } | 2010 | } |
1951 | 2011 | ||
diff --git a/korganizer/mainwindow.h b/korganizer/mainwindow.h index 8dd55ac..076ab94 100644 --- a/korganizer/mainwindow.h +++ b/korganizer/mainwindow.h | |||
@@ -1,142 +1,147 @@ | |||
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 <qtextstream.h> | 8 | #include <qtextstream.h> |
9 | #include <qregexp.h> | 9 | #include <qregexp.h> |
10 | 10 | ||
11 | #include <libkcal/incidence.h> | 11 | #include <libkcal/incidence.h> |
12 | #include "simplealarmclient.h" | 12 | #include "simplealarmclient.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 | 27 | ||
27 | 28 | ||
28 | namespace KCal { | 29 | namespace KCal { |
29 | class CalendarLocal; | 30 | class CalendarLocal; |
30 | } | 31 | } |
31 | 32 | ||
32 | using namespace KCal; | 33 | using namespace KCal; |
33 | 34 | ||
34 | class MainWindow : public QMainWindow | 35 | class MainWindow : public QMainWindow |
35 | { | 36 | { |
36 | Q_OBJECT | 37 | Q_OBJECT |
37 | public: | 38 | public: |
38 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); | 39 | MainWindow( QWidget *parent = 0, const char *name = 0, QString command = ""); |
39 | ~MainWindow(); | 40 | ~MainWindow(); |
40 | bool beamReceiveEnabled(); | 41 | bool beamReceiveEnabled(); |
41 | static QString defaultFileName(); | 42 | static QString defaultFileName(); |
42 | static QString syncFileName(); | 43 | static QString syncFileName(); |
43 | static QString resourcePath(); | 44 | static QString resourcePath(); |
44 | public slots: | 45 | public slots: |
46 | void updateWeekNum(const KCal::DateList &); | ||
47 | void updateWeek(QDate); | ||
45 | virtual void showMaximized (); | 48 | virtual void showMaximized (); |
46 | void configureAgenda( int ); | 49 | void configureAgenda( int ); |
47 | void recieve( const QCString& msg, const QByteArray& data ); | 50 | void recieve( const QCString& msg, const QByteArray& data ); |
48 | protected slots: | 51 | protected slots: |
49 | void setCaptionToDates(); | 52 | void setCaptionToDates(); |
50 | void about(); | 53 | void about(); |
51 | void licence(); | 54 | void licence(); |
52 | void faq(); | 55 | void faq(); |
53 | void usertrans(); | 56 | void usertrans(); |
54 | void features(); | 57 | void features(); |
55 | void synchowto(); | 58 | void synchowto(); |
56 | void kdesynchowto(); | 59 | void kdesynchowto(); |
57 | void multisynchowto(); | 60 | void multisynchowto(); |
58 | void whatsNew(); | 61 | void whatsNew(); |
59 | void keyBindings(); | 62 | void keyBindings(); |
60 | void aboutAutoSaving();; | 63 | void aboutAutoSaving();; |
61 | void aboutKnownBugs(); | 64 | void aboutKnownBugs(); |
62 | 65 | ||
63 | void processIncidenceSelection( Incidence * ); | 66 | void processIncidenceSelection( Incidence * ); |
64 | 67 | ||
65 | void importQtopia(); | 68 | void importQtopia(); |
66 | void importBday(); | 69 | void importBday(); |
67 | void importOL(); | 70 | void importOL(); |
68 | void importIcal(); | 71 | void importIcal(); |
69 | void importFile( QString, bool ); | 72 | void importFile( QString, bool ); |
70 | void quickImportIcal(); | 73 | void quickImportIcal(); |
71 | 74 | ||
72 | void slotModifiedChanged( bool ); | 75 | void slotModifiedChanged( bool ); |
73 | 76 | ||
74 | void save(); | 77 | void save(); |
75 | void saveStopTimer(); | 78 | void saveStopTimer(); |
76 | void configureToolBar( int ); | 79 | void configureToolBar( int ); |
77 | void printSel(); | 80 | void printSel(); |
78 | void printCal(); | 81 | void printCal(); |
79 | void saveCalendar(); | 82 | void saveCalendar(); |
80 | void loadCalendar(); | 83 | void loadCalendar(); |
81 | void exportVCalendar(); | 84 | void exportVCalendar(); |
82 | void fillFilterMenu(); | 85 | void fillFilterMenu(); |
83 | void selectFilter( int ); | 86 | void selectFilter( int ); |
84 | void exportToPhone( int ); | 87 | void exportToPhone( int ); |
85 | void toggleBeamReceive(); | 88 | void toggleBeamReceive(); |
86 | void disableBR(bool); | 89 | void disableBR(bool); |
87 | 90 | signals: | |
91 | void selectWeek ( int ); | ||
88 | private slots: | 92 | private slots: |
89 | void showConfigureAgenda(); | 93 | void showConfigureAgenda(); |
90 | void getFile( bool ); | 94 | void getFile( bool ); |
91 | void syncFileRequest(); | 95 | void syncFileRequest(); |
92 | 96 | ||
93 | protected: | 97 | protected: |
94 | void displayText( QString, QString); | 98 | void displayText( QString, QString); |
95 | void enableIncidenceActions( bool ); | 99 | void enableIncidenceActions( bool ); |
96 | 100 | ||
97 | private: | 101 | private: |
98 | bool mBRdisabled; | 102 | bool mBRdisabled; |
99 | #ifndef DESKTOP_VERSION | 103 | #ifndef DESKTOP_VERSION |
100 | QCopChannel* infrared; | 104 | QCopChannel* infrared; |
101 | #endif | 105 | #endif |
102 | QAction* brAction; | 106 | QAction* brAction; |
103 | KSyncManager* mSyncManager; | 107 | KSyncManager* mSyncManager; |
104 | bool mClosed; | 108 | bool mClosed; |
105 | void saveOnClose(); | 109 | void saveOnClose(); |
106 | bool mFlagKeyPressed; | 110 | bool mFlagKeyPressed; |
107 | bool mBlockAtStartup; | 111 | bool mBlockAtStartup; |
108 | QPEToolBar *iconToolBar; | 112 | QPEToolBar *iconToolBar; |
109 | void initActions(); | 113 | void initActions(); |
110 | void setDefaultPreferences(); | 114 | void setDefaultPreferences(); |
111 | void keyPressEvent ( QKeyEvent * ) ; | 115 | void keyPressEvent ( QKeyEvent * ) ; |
112 | void keyReleaseEvent ( QKeyEvent * ) ; | 116 | void keyReleaseEvent ( QKeyEvent * ) ; |
113 | QPopupMenu *configureToolBarMenu; | 117 | QPopupMenu *configureToolBarMenu; |
114 | QPopupMenu *selectFilterMenu; | 118 | QPopupMenu *selectFilterMenu; |
115 | QPopupMenu *configureAgendaMenu, *syncMenu; | 119 | QPopupMenu *configureAgendaMenu, *syncMenu; |
116 | CalendarLocal *mCalendar; | 120 | CalendarLocal *mCalendar; |
117 | CalendarView *mView; | 121 | CalendarView *mView; |
118 | QAction *mNewSubTodoAction; | 122 | QAction *mNewSubTodoAction; |
123 | QPEMenuBar *menuBarWeek; | ||
119 | 124 | ||
120 | QAction *mShowAction; | 125 | QAction *mShowAction; |
121 | QAction *mEditAction; | 126 | QAction *mEditAction; |
122 | QAction *mDeleteAction; | 127 | QAction *mDeleteAction; |
123 | QAction *mCloneAction; | 128 | QAction *mCloneAction; |
124 | QAction *mMoveAction; | 129 | QAction *mMoveAction; |
125 | QAction *mBeamAction; | 130 | QAction *mBeamAction; |
126 | QAction *mCancelAction; | 131 | QAction *mCancelAction; |
127 | 132 | ||
128 | QAction *mToggleNav; | 133 | QAction *mToggleNav; |
129 | QAction *mToggleFilter; | 134 | QAction *mToggleFilter; |
130 | QAction *mToggleAllday; | 135 | QAction *mToggleAllday; |
131 | 136 | ||
132 | 137 | ||
133 | void closeEvent( QCloseEvent* ce ); | 138 | void closeEvent( QCloseEvent* ce ); |
134 | SimpleAlarmClient mAlarmClient; | 139 | SimpleAlarmClient mAlarmClient; |
135 | QTimer mSaveTimer; | 140 | QTimer mSaveTimer; |
136 | //bool mBlockSaveFlag; | 141 | //bool mBlockSaveFlag; |
137 | bool mCalendarModifiedFlag; | 142 | bool mCalendarModifiedFlag; |
138 | QPixmap loadPixmap( QString ); | 143 | QPixmap loadPixmap( QString ); |
139 | }; | 144 | }; |
140 | 145 | ||
141 | 146 | ||
142 | #endif | 147 | #endif |
diff --git a/korganizer/navigatorbar.cpp b/korganizer/navigatorbar.cpp index 24de01f..657f98d 100644 --- a/korganizer/navigatorbar.cpp +++ b/korganizer/navigatorbar.cpp | |||
@@ -1,236 +1,201 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | 3 | ||
4 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> | 4 | Copyright (c) 2003 Cornelius Schumacher <schumacher@kde.org> |
5 | 5 | ||
6 | This program is free software; you can redistribute it and/or modify | 6 | This program is free software; you can redistribute it and/or modify |
7 | it under the terms of the GNU General Public License as published by | 7 | it under the terms of the GNU General Public License as published by |
8 | the Free Software Foundation; either version 2 of the License, or | 8 | the Free Software Foundation; either version 2 of the License, or |
9 | (at your option) any later version. | 9 | (at your option) any later version. |
10 | 10 | ||
11 | This program is distributed in the hope that it will be useful, | 11 | This program is distributed in the hope that it will be useful, |
12 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 12 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 13 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
14 | GNU General Public License for more details. | 14 | GNU General Public License for more details. |
15 | 15 | ||
16 | You should have received a copy of the GNU General Public License | 16 | You should have received a copy of the GNU General Public License |
17 | along with this program; if not, write to the Free Software | 17 | along with this program; if not, write to the Free Software |
18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 18 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
19 | 19 | ||
20 | As a special exception, permission is given to link this program | 20 | As a special exception, permission is given to link this program |
21 | with any edition of Qt, and distribute the resulting executable, | 21 | with any edition of Qt, and distribute the resulting executable, |
22 | without including the source code for Qt in the source distribution. | 22 | without including the source code for Qt in the source distribution. |
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include <qstring.h> | 25 | #include <qstring.h> |
26 | #include <qtooltip.h> | 26 | #include <qtooltip.h> |
27 | #include <qpushbutton.h> | 27 | #include <qpushbutton.h> |
28 | #include <qlayout.h> | 28 | #include <qlayout.h> |
29 | #include <qframe.h> | 29 | #include <qframe.h> |
30 | #include <qlabel.h> | 30 | #include <qlabel.h> |
31 | #include <qpopupmenu.h> | 31 | #include <qpopupmenu.h> |
32 | #include <qapplication.h> | 32 | #include <qapplication.h> |
33 | 33 | ||
34 | #include <kdebug.h> | 34 | #include <kdebug.h> |
35 | #include <klocale.h> | 35 | #include <klocale.h> |
36 | #include <kglobal.h> | 36 | #include <kglobal.h> |
37 | #include <kiconloader.h> | 37 | #include <kiconloader.h> |
38 | #include "libkdepim/kdatepicker.h" | 38 | #include "libkdepim/kdatepicker.h" |
39 | #include <knotifyclient.h> | 39 | #include <knotifyclient.h> |
40 | #include "kdatetbl.h" | 40 | #include "kdatetbl.h" |
41 | 41 | ||
42 | #include "koglobals.h" | 42 | #include "koglobals.h" |
43 | #include "koprefs.h" | 43 | #include "koprefs.h" |
44 | #ifndef KORG_NOPLUGINS | 44 | #ifndef KORG_NOPLUGINS |
45 | #include "kocore.h" | 45 | #include "kocore.h" |
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | #include <kcalendarsystem.h> | 48 | #include <kcalendarsystem.h> |
49 | 49 | ||
50 | #include "navigatorbar.h" | 50 | #include "navigatorbar.h" |
51 | 51 | ||
52 | NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *name ) | 52 | NavigatorBar::NavigatorBar( const QDate & date, QWidget *parent, const char *name ) |
53 | : QWidget( parent, name ) | 53 | : QWidget( parent, name ) |
54 | { | 54 | { |
55 | QBoxLayout *topLayout = new QHBoxLayout( this ); | 55 | QBoxLayout *topLayout = new QHBoxLayout( this ); |
56 | 56 | ||
57 | // Set up the control buttons and date label | 57 | // Set up the control buttons and date label |
58 | mCtrlFrame = new QFrame( this ); | 58 | mCtrlFrame = new QFrame( this ); |
59 | mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised); | 59 | mCtrlFrame->setFrameStyle(QFrame::Panel|QFrame::Raised); |
60 | mCtrlFrame->setLineWidth(1); | 60 | mCtrlFrame->setLineWidth(1); |
61 | 61 | ||
62 | topLayout->addWidget( mCtrlFrame ); | 62 | topLayout->addWidget( mCtrlFrame ); |
63 | 63 | ||
64 | QFont tfont = font(); | 64 | QFont tfont = font(); |
65 | if ( QApplication::desktop()->width() >= 480 ) | 65 | if ( QApplication::desktop()->width() >= 480 ) |
66 | tfont.setPointSize(tfont.pointSize()+2); | 66 | tfont.setPointSize(tfont.pointSize()+2); |
67 | tfont.setBold(true); | 67 | tfont.setBold(true); |
68 | 68 | ||
69 | bool isRTL = KOGlobals::self()->reverseLayout(); | 69 | bool isRTL = KOGlobals::self()->reverseLayout(); |
70 | #ifndef DESKTOP_VERSION | 70 | #ifndef DESKTOP_VERSION |
71 | bool isDesktop = false; | 71 | bool isDesktop = false; |
72 | #else | 72 | #else |
73 | bool isDesktop = true; | 73 | bool isDesktop = true; |
74 | #endif | 74 | #endif |
75 | bool insertWeek = (QString ( name ) == QString("useBigPixmaps")) ; | 75 | if ( QString ( name ) == QString("useBigPixmaps") && QApplication::desktop()->width() > 320 ) |
76 | if ( insertWeek && QApplication::desktop()->width() > 320 ) | ||
77 | isDesktop = true; | 76 | isDesktop = true; |
78 | // Create backward navigation buttons | 77 | // Create backward navigation buttons |
79 | mPrevYear = new QPushButton( mCtrlFrame ); | 78 | mPrevYear = new QPushButton( mCtrlFrame ); |
80 | mPrevYear->setPixmap( SmallIcon( isDesktop ? "2leftarrowB" : "2leftarrow" ) ); | 79 | mPrevYear->setPixmap( SmallIcon( isDesktop ? "2leftarrowB" : "2leftarrow" ) ); |
81 | QToolTip::add( mPrevYear, i18n("Previous Year") ); | 80 | QToolTip::add( mPrevYear, i18n("Previous Year") ); |
82 | 81 | ||
83 | mPrevMonth = new QPushButton( mCtrlFrame ); | 82 | mPrevMonth = new QPushButton( mCtrlFrame ); |
84 | mPrevMonth->setPixmap( SmallIcon( isDesktop ? "1leftarrowB" : "1leftarrow") ); | 83 | mPrevMonth->setPixmap( SmallIcon( isDesktop ? "1leftarrowB" : "1leftarrow") ); |
85 | QToolTip::add( mPrevMonth, i18n("Previous Month") ); | 84 | QToolTip::add( mPrevMonth, i18n("Previous Month") ); |
86 | 85 | ||
87 | // Create forward navigation buttons | 86 | // Create forward navigation buttons |
88 | mNextMonth = new QPushButton( mCtrlFrame ); | 87 | mNextMonth = new QPushButton( mCtrlFrame ); |
89 | mNextMonth->setPixmap( SmallIcon( isDesktop ? "1rightarrowB" : "1rightarrow") ); | 88 | mNextMonth->setPixmap( SmallIcon( isDesktop ? "1rightarrowB" : "1rightarrow") ); |
90 | QToolTip::add( mNextMonth, i18n("Next Month") ); | 89 | QToolTip::add( mNextMonth, i18n("Next Month") ); |
91 | 90 | ||
92 | QPushButton * selWeek = 0; | ||
93 | if ( insertWeek ) { | ||
94 | selWeek = new QPushButton( mCtrlFrame ); | ||
95 | QToolTip::add( selWeek, i18n("Select Week") ); | ||
96 | selWeek->setFocusPolicy(NoFocus); | ||
97 | } | ||
98 | |||
99 | mNextYear = new QPushButton( mCtrlFrame ); | 91 | mNextYear = new QPushButton( mCtrlFrame ); |
100 | mNextYear->setPixmap( SmallIcon( isDesktop ? "2rightarrowB": "2rightarrow") ); | 92 | mNextYear->setPixmap( SmallIcon( isDesktop ? "2rightarrowB": "2rightarrow") ); |
101 | QToolTip::add( mNextYear, i18n("Next Year") ); | 93 | QToolTip::add( mNextYear, i18n("Next Year") ); |
102 | mSelectMonth = new QPushButton( mCtrlFrame ); | 94 | mSelectMonth = new QPushButton( mCtrlFrame ); |
103 | // Create month name label | 95 | // Create month name label |
104 | //selectMonth->setFont( tfont ); | 96 | //selectMonth->setFont( tfont ); |
105 | // selectMonth->setAlignment( AlignCenter ); | 97 | // selectMonth->setAlignment( AlignCenter ); |
106 | //mDateLabel = new QLabel( selectMonth ); | 98 | //mDateLabel = new QLabel( selectMonth ); |
107 | //mDateLabel->setFont( tfont ); | 99 | //mDateLabel->setFont( tfont ); |
108 | //mDateLabel->setAlignment( AlignCenter ); | 100 | //mDateLabel->setAlignment( AlignCenter ); |
109 | if ( QString ( name ) == QString("useBigPixmaps") ) { | 101 | if ( QString ( name ) == QString("useBigPixmaps") ) { |
110 | mNextMonth->setFlat( true); | 102 | mNextMonth->setFlat( true); |
111 | mNextYear->setFlat( true); | 103 | mNextYear->setFlat( true); |
112 | mSelectMonth->setFlat( true); | 104 | mSelectMonth->setFlat( true); |
113 | mPrevYear->setFlat( true); | 105 | mPrevYear->setFlat( true); |
114 | mPrevMonth->setFlat( true); | 106 | mPrevMonth->setFlat( true); |
115 | if ( insertWeek ) | ||
116 | selWeek->setFlat( true); | ||
117 | } | 107 | } |
118 | mSelectMonth->setFont( tfont ); | 108 | mSelectMonth->setFont( tfont ); |
119 | // Set minimum width to width of widest month name label | 109 | // Set minimum width to width of widest month name label |
120 | int i; | 110 | int i; |
121 | int maxwidth = 0; | 111 | int maxwidth = 0; |
122 | QFontMetrics fm ( mSelectMonth->font() ); | 112 | QFontMetrics fm ( mSelectMonth->font() ); |
123 | int width = fm.width("September '00" ); | 113 | int width = fm.width("September '00" ); |
124 | // for( i = 1; i <= KOGlobals::self()->calendarSystem()->monthsInYear(date); | 114 | // for( i = 1; i <= KOGlobals::self()->calendarSystem()->monthsInYear(date); |
125 | // ++i ) { | 115 | // ++i ) { |
126 | // //int width = fm.width( KOGlobals::self()->calendarSystem()->monthName(i, | 116 | // //int width = fm.width( KOGlobals::self()->calendarSystem()->monthName(i, |
127 | // // KOGlobals::self()->calendarSystem()->year(date) ) + " 2000" ); | 117 | // // KOGlobals::self()->calendarSystem()->year(date) ) + " 2000" ); |
128 | // int width = fm.width("September 2000" ); | 118 | // int width = fm.width("September 2000" ); |
129 | // if ( width > maxwidth ) maxwidth = width; | 119 | // if ( width > maxwidth ) maxwidth = width; |
130 | // } | 120 | // } |
131 | maxwidth = width+2; | 121 | maxwidth = width+2; |
132 | int size = fm.height()+2; | 122 | int size = fm.height()+2; |
133 | if ( QApplication::desktop()->width() >= 480 ) { | 123 | if ( QApplication::desktop()->width() >= 480 ) { |
134 | size += 6; | 124 | size += 6; |
135 | maxwidth+= 6; | 125 | maxwidth+= 6; |
136 | } | 126 | } |
137 | 127 | ||
138 | if ( insertWeek ) { | ||
139 | QPopupMenu * wpo = new QPopupMenu (this); | ||
140 | QPopupMenu * all = new QPopupMenu (this); | ||
141 | //wpo->insertItem( i18n("W#"), 0 ); | ||
142 | int first = 1; | ||
143 | for ( i = 1; i < 50; ++i ) { | ||
144 | if ( !(i%10) ) { | ||
145 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
146 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) ); | ||
147 | first = i; | ||
148 | wpo = new QPopupMenu (this); | ||
149 | } | ||
150 | wpo->insertItem( QString::number(i), i ); | ||
151 | } | ||
152 | for ( i = 50; i < 53; ++i ) { | ||
153 | wpo->insertItem( QString::number(i), i); | ||
154 | } | ||
155 | all->insertItem( i18n("Select week %1-%2" ).arg(first).arg( i-1) ,wpo ); | ||
156 | selWeek->setPopup( all ); | ||
157 | selWeek->setFixedWidth( (size/5)*4 ); | ||
158 | selWeek->setFixedHeight( size ); | ||
159 | connect( wpo, SIGNAL( activated(int) ), SIGNAL( selectWeek ( int ) ) ); | ||
160 | } | ||
161 | mSelectMonth->setFixedWidth( maxwidth ); | 128 | mSelectMonth->setFixedWidth( maxwidth ); |
162 | mSelectMonth->setFixedHeight( size ); | 129 | mSelectMonth->setFixedHeight( size ); |
163 | mPrevYear->setFixedHeight( size ); | 130 | mPrevYear->setFixedHeight( size ); |
164 | mPrevMonth->setFixedHeight( size ); | 131 | mPrevMonth->setFixedHeight( size ); |
165 | mNextMonth->setFixedHeight( size ); | 132 | mNextMonth->setFixedHeight( size ); |
166 | mNextYear->setFixedHeight ( size ); | 133 | mNextYear->setFixedHeight ( size ); |
167 | // set up control frame layout | 134 | // set up control frame layout |
168 | QBoxLayout *ctrlLayout = new QHBoxLayout( mCtrlFrame, 1 ); | 135 | QBoxLayout *ctrlLayout = new QHBoxLayout( mCtrlFrame, 1 ); |
169 | ctrlLayout->addWidget( mPrevYear, 3 ); | 136 | ctrlLayout->addWidget( mPrevYear, 3 ); |
170 | ctrlLayout->addWidget( mPrevMonth, 3 ); | 137 | ctrlLayout->addWidget( mPrevMonth, 3 ); |
171 | //ctrlLayout->addStretch( 1 ); | 138 | //ctrlLayout->addStretch( 1 ); |
172 | // ctrlLayout->addSpacing( 1 ); | 139 | // ctrlLayout->addSpacing( 1 ); |
173 | // ctrlLayout->addWidget( mDateLabel ); | 140 | // ctrlLayout->addWidget( mDateLabel ); |
174 | ctrlLayout->addWidget( mSelectMonth ); | 141 | ctrlLayout->addWidget( mSelectMonth ); |
175 | // ctrlLayout->addSpacing( 1 ); | 142 | // ctrlLayout->addSpacing( 1 ); |
176 | // ctrlLayout->addStretch( 1 ); | 143 | // ctrlLayout->addStretch( 1 ); |
177 | ctrlLayout->addWidget( mNextMonth, 3 ); | 144 | ctrlLayout->addWidget( mNextMonth, 3 ); |
178 | ctrlLayout->addWidget( mNextYear, 3 ); | 145 | ctrlLayout->addWidget( mNextYear, 3 ); |
179 | if ( insertWeek ) | ||
180 | ctrlLayout->addWidget( selWeek ); | ||
181 | 146 | ||
182 | connect( mPrevYear, SIGNAL( clicked() ), SIGNAL( goPrevYear() ) ); | 147 | connect( mPrevYear, SIGNAL( clicked() ), SIGNAL( goPrevYear() ) ); |
183 | connect( mPrevMonth, SIGNAL( clicked() ), SIGNAL( goPrevMonth() ) ); | 148 | connect( mPrevMonth, SIGNAL( clicked() ), SIGNAL( goPrevMonth() ) ); |
184 | connect( mNextMonth, SIGNAL( clicked() ), SIGNAL( goNextMonth() ) ); | 149 | connect( mNextMonth, SIGNAL( clicked() ), SIGNAL( goNextMonth() ) ); |
185 | connect( mNextYear, SIGNAL( clicked() ), SIGNAL( goNextYear() ) ); | 150 | connect( mNextYear, SIGNAL( clicked() ), SIGNAL( goNextYear() ) ); |
186 | connect( mSelectMonth, SIGNAL( clicked() ),SLOT( selectMonth() ) ); | 151 | connect( mSelectMonth, SIGNAL( clicked() ),SLOT( selectMonth() ) ); |
187 | mPrevYear->setFocusPolicy(NoFocus); | 152 | mPrevYear->setFocusPolicy(NoFocus); |
188 | mPrevMonth->setFocusPolicy(NoFocus); | 153 | mPrevMonth->setFocusPolicy(NoFocus); |
189 | mNextMonth->setFocusPolicy(NoFocus); | 154 | mNextMonth->setFocusPolicy(NoFocus); |
190 | mNextYear->setFocusPolicy(NoFocus); | 155 | mNextYear->setFocusPolicy(NoFocus); |
191 | mSelectMonth->setFocusPolicy(NoFocus); | 156 | mSelectMonth->setFocusPolicy(NoFocus); |
192 | 157 | ||
193 | } | 158 | } |
194 | 159 | ||
195 | NavigatorBar::~NavigatorBar() | 160 | NavigatorBar::~NavigatorBar() |
196 | { | 161 | { |
197 | } | 162 | } |
198 | 163 | ||
199 | void NavigatorBar::selectMonth() | 164 | void NavigatorBar::selectMonth() |
200 | { | 165 | { |
201 | 166 | ||
202 | int month; | 167 | int month; |
203 | KPopupFrame* popup = new KPopupFrame(this); | 168 | KPopupFrame* popup = new KPopupFrame(this); |
204 | int size = 12; | 169 | int size = 12; |
205 | if ( QApplication::desktop()->width() >= 480 ) | 170 | if ( QApplication::desktop()->width() >= 480 ) |
206 | size = 18; | 171 | size = 18; |
207 | KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(size, popup); | 172 | KDateInternalMonthPicker* picker = new KDateInternalMonthPicker(size, popup); |
208 | // ----- | 173 | // ----- |
209 | picker->resize(picker->sizeHint()); | 174 | picker->resize(picker->sizeHint()); |
210 | popup->setMainWidget(picker); | 175 | popup->setMainWidget(picker); |
211 | picker->setFocus(); | 176 | picker->setFocus(); |
212 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); | 177 | connect(picker, SIGNAL(closeMe(int)), popup, SLOT(close(int))); |
213 | if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height())))) | 178 | if(popup->exec(mSelectMonth->mapToGlobal(QPoint(0, mSelectMonth->height())))) |
214 | { | 179 | { |
215 | month = picker->getResult(); | 180 | month = picker->getResult(); |
216 | emit monthSelected ( month ); | 181 | emit monthSelected ( month ); |
217 | } else { | 182 | } else { |
218 | KNotifyClient::beep(); | 183 | KNotifyClient::beep(); |
219 | } | 184 | } |
220 | delete popup; | 185 | delete popup; |
221 | } | 186 | } |
222 | void NavigatorBar::selectDates( const KCal::DateList &dateList ) | 187 | void NavigatorBar::selectDates( const KCal::DateList &dateList ) |
223 | { | 188 | { |
224 | if (dateList.count() > 0) { | 189 | if (dateList.count() > 0) { |
225 | QDate date = dateList.first(); | 190 | QDate date = dateList.first(); |
226 | 191 | ||
227 | const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); | 192 | const KCalendarSystem *calSys = KOGlobals::self()->calendarSystem(); |
228 | 193 | ||
229 | // compute the label at the top of the navigator | 194 | // compute the label at the top of the navigator |
230 | QString dtstr = i18n(calSys->monthName( date )) + " '" + | 195 | QString dtstr = i18n(calSys->monthName( date )) + " '" + |
231 | QString::number( calSys->year( date ) ).right(2); | 196 | QString::number( calSys->year( date ) ).right(2); |
232 | 197 | ||
233 | mSelectMonth->setText( dtstr ); | 198 | mSelectMonth->setText( dtstr ); |
234 | } | 199 | } |
235 | } | 200 | } |
236 | 201 | ||