-rw-r--r-- | bin/kdepim/WhatsNew.txt | 3 | ||||
-rw-r--r-- | korganizer/komonthview.h | 2 | ||||
-rw-r--r-- | korganizer/koviewmanager.cpp | 1 |
3 files changed, 5 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 3c757a1..7c81b3a 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,389 +1,392 @@ | |||
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.9 ************ | 3 | ********** VERSION 2.0.9 ************ |
4 | 4 | ||
5 | Made month view icons for multiday events a bit nicer. | 5 | Made month view icons for multiday events a bit nicer. |
6 | Some minor fixes in KO/Pi | ||
7 | (e.g. go to today did not work for new week view properly). | ||
8 | |||
6 | 9 | ||
7 | ********** VERSION 2.0.8 ************ | 10 | ********** VERSION 2.0.8 ************ |
8 | 11 | ||
9 | Fixed a problem in dependency info in the ipk files for the Zaurus. | 12 | Fixed a problem in dependency info in the ipk files for the Zaurus. |
10 | 13 | ||
11 | Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. | 14 | Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. |
12 | 15 | ||
13 | Added a "go today" button to the datepicker. | 16 | Added a "go today" button to the datepicker. |
14 | 17 | ||
15 | Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) | 18 | Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) |
16 | and made it configureable to show these values. | 19 | and made it configureable to show these values. |
17 | 20 | ||
18 | Fixed a problem for events (from external iCal files) that do have a duration but no end date. | 21 | Fixed a problem for events (from external iCal files) that do have a duration but no end date. |
19 | 22 | ||
20 | 23 | ||
21 | ********** VERSION 2.0.7 ************ | 24 | ********** VERSION 2.0.7 ************ |
22 | 25 | ||
23 | Added global application font settings | 26 | Added global application font settings |
24 | (for all KDE-Pim/Pi apps) to the general settings. | 27 | (for all KDE-Pim/Pi apps) to the general settings. |
25 | 28 | ||
26 | Fixed a problem in OM/Pi when trying to login to some IMAP servers | 29 | Fixed a problem in OM/Pi when trying to login to some IMAP servers |
27 | (like the IMAP server of Apple: mail.mac.com ) | 30 | (like the IMAP server of Apple: mail.mac.com ) |
28 | 31 | ||
29 | Added recurring todos to KO/Pi. | 32 | Added recurring todos to KO/Pi. |
30 | 33 | ||
31 | 34 | ||
32 | ********** VERSION 2.0.6 ************ | 35 | ********** VERSION 2.0.6 ************ |
33 | 36 | ||
34 | Some bugfixes in the pi-sync mode. | 37 | Some bugfixes in the pi-sync mode. |
35 | Added German translation for pi-sync mode. | 38 | Added German translation for pi-sync mode. |
36 | 39 | ||
37 | KO/Pi: | 40 | KO/Pi: |
38 | Made the todolist using alternate background. | 41 | Made the todolist using alternate background. |
39 | 42 | ||
40 | Other minor fixes in KO/Pi. | 43 | Other minor fixes in KO/Pi. |
41 | 44 | ||
42 | 45 | ||
43 | ********** VERSION 2.0.5 ************ | 46 | ********** VERSION 2.0.5 ************ |
44 | 47 | ||
45 | Bugfixes in KO/Pi. | 48 | Bugfixes in KO/Pi. |
46 | 49 | ||
47 | ********** VERSION 2.0.4 ************ | 50 | ********** VERSION 2.0.4 ************ |
48 | 51 | ||
49 | KO/Pi: | 52 | KO/Pi: |
50 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. | 53 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. |
51 | 54 | ||
52 | Added a general "select week number" to the toolbar. | 55 | Added a general "select week number" to the toolbar. |
53 | 56 | ||
54 | Fixed some small problem of the new features introduced in version 2.0.3. | 57 | Fixed some small problem of the new features introduced in version 2.0.3. |
55 | 58 | ||
56 | Made it possible to specify one specific category as category color, | 59 | Made it possible to specify one specific category as category color, |
57 | if more than one categories are selected. | 60 | if more than one categories are selected. |
58 | 61 | ||
59 | Fixed a bug in saving colors for categories with non-ascii characters. | 62 | Fixed a bug in saving colors for categories with non-ascii characters. |
60 | (Like, e.g. German Umlauts). | 63 | (Like, e.g. German Umlauts). |
61 | Propably you have to set your colors again for those categories. | 64 | Propably you have to set your colors again for those categories. |
62 | 65 | ||
63 | 66 | ||
64 | ********** VERSION 2.0.3 ************ | 67 | ********** VERSION 2.0.3 ************ |
65 | 68 | ||
66 | KO/Pi: | 69 | KO/Pi: |
67 | Added feature for changing alarm settings for many items at once: | 70 | Added feature for changing alarm settings for many items at once: |
68 | Open list view (or search dialog), select the desired items and choose in | 71 | Open list view (or search dialog), select the desired items and choose in |
69 | the popup menu: Set alarm for selected... | 72 | the popup menu: Set alarm for selected... |
70 | 73 | ||
71 | Added to the event/todo viewer the option to send an email to | 74 | Added to the event/todo viewer the option to send an email to |
72 | all attendees or all selected (with RSVP) attendees. | 75 | all attendees or all selected (with RSVP) attendees. |
73 | 76 | ||
74 | Made the week-month mode changing in month view faster. | 77 | Made the week-month mode changing in month view faster. |
75 | 78 | ||
76 | Made month view better useable with keyboard. | 79 | Made month view better useable with keyboard. |
77 | Now TAB key jumps to next cell with an event/todo. | 80 | Now TAB key jumps to next cell with an event/todo. |
78 | Scroll in cell with coursor keys, scroll in time (next week) with | 81 | Scroll in cell with coursor keys, scroll in time (next week) with |
79 | Shift/Control + coursorkeys. | 82 | Shift/Control + coursorkeys. |
80 | 83 | ||
81 | Fixed bug that the todo view flat mode was reset after first view update. | 84 | Fixed bug that the todo view flat mode was reset after first view update. |
82 | 85 | ||
83 | If a todo is displayed closed in the todo view, | 86 | If a todo is displayed closed in the todo view, |
84 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. | 87 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. |
85 | 88 | ||
86 | Added info about the numbers of years to the caption (title) information about a birthday event. | 89 | Added info about the numbers of years to the caption (title) information about a birthday event. |
87 | 90 | ||
88 | Made completion date in todo editor editable. | 91 | Made completion date in todo editor editable. |
89 | 92 | ||
90 | Added possibility to save/load templates for journals. | 93 | Added possibility to save/load templates for journals. |
91 | (Which is just a simple "save text to file" or "insert text from file". | 94 | (Which is just a simple "save text to file" or "insert text from file". |
92 | 95 | ||
93 | ********** VERSION 2.0.2 ************ | 96 | ********** VERSION 2.0.2 ************ |
94 | 97 | ||
95 | KO/Pi: | 98 | KO/Pi: |
96 | Fixed the layout problem of the day label buttons | 99 | Fixed the layout problem of the day label buttons |
97 | of the agenda view introduced in version 2.0.1. | 100 | of the agenda view introduced in version 2.0.1. |
98 | 101 | ||
99 | Added WhatsThis support for the todo view and the list view. | 102 | Added WhatsThis support for the todo view and the list view. |
100 | 103 | ||
101 | Added a quite useful feature to the montview. | 104 | Added a quite useful feature to the montview. |
102 | Just click on the week numbers on the left. | 105 | Just click on the week numbers on the left. |
103 | And in the top right corner of month view/agenda view | 106 | And in the top right corner of month view/agenda view |
104 | there is now a "week number quick selector". | 107 | there is now a "week number quick selector". |
105 | (Click on the black triangle). | 108 | (Click on the black triangle). |
106 | 109 | ||
107 | Made the quite difficult timezone change in KO/Pi easy. | 110 | Made the quite difficult timezone change in KO/Pi easy. |
108 | 111 | ||
109 | OM/Pi: | 112 | OM/Pi: |
110 | Fixed too small icons on desktop. | 113 | Fixed too small icons on desktop. |
111 | Fixed non visible icons in mainwindow on Z with fastload enabled. | 114 | Fixed non visible icons in mainwindow on Z with fastload enabled. |
112 | Added signature file setting to smtp account config. | 115 | Added signature file setting to smtp account config. |
113 | And the signature can be edited and saved in the edit mail dialog. | 116 | And the signature can be edited and saved in the edit mail dialog. |
114 | That does mean: | 117 | That does mean: |
115 | Simply edit the signature for the selected smtp account in the | 118 | Simply edit the signature for the selected smtp account in the |
116 | edit new mail dialog and press the "save signature" button there. | 119 | edit new mail dialog and press the "save signature" button there. |
117 | Then the signature is saved to the file specified in the smtp account settings. | 120 | Then the signature is saved to the file specified in the smtp account settings. |
118 | If there is no file specified, it is saved automatically to the file | 121 | If there is no file specified, it is saved automatically to the file |
119 | kdepim/apps/kopiemail/<accountname>.sig. | 122 | kdepim/apps/kopiemail/<accountname>.sig. |
120 | 123 | ||
121 | 124 | ||
122 | 125 | ||
123 | ********** VERSION 2.0.1 ************ | 126 | ********** VERSION 2.0.1 ************ |
124 | 127 | ||
125 | Oooops ... I forgot to test on the Zaurus 5500 ... | 128 | Oooops ... I forgot to test on the Zaurus 5500 ... |
126 | 129 | ||
127 | Fixed many problems of new (english) strings (and german translations) | 130 | Fixed many problems of new (english) strings (and german translations) |
128 | introduced in the latest versions, where the text was not fitting on the | 131 | introduced in the latest versions, where the text was not fitting on the |
129 | 240x320 display of the Zaurus 5500. | 132 | 240x320 display of the Zaurus 5500. |
130 | 133 | ||
131 | KO/Pi: | 134 | KO/Pi: |
132 | Added a popup menu ( press pen and hold to get popup ) to the agenda view | 135 | Added a popup menu ( press pen and hold to get popup ) to the agenda view |
133 | with many useful items (add event/todo, show next week, two weeks, month, journal). | 136 | with many useful items (add event/todo, show next week, two weeks, month, journal). |
134 | 137 | ||
135 | Added items to the todolist popup menu for: | 138 | Added items to the todolist popup menu for: |
136 | Display all opened, all closed or all todos flat. | 139 | Display all opened, all closed or all todos flat. |
137 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. | 140 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. |
138 | Made the reparenting of todos on the desktop possible via Drag&Drop. | 141 | Made the reparenting of todos on the desktop possible via Drag&Drop. |
139 | Fixed several bugs in setting the completed datetime for todos. | 142 | Fixed several bugs in setting the completed datetime for todos. |
140 | Added info about completed datetime of todos to the todo viewer. | 143 | Added info about completed datetime of todos to the todo viewer. |
141 | Now displaying a completed todo (with completed datetime set) in the agenda view | 144 | Now displaying a completed todo (with completed datetime set) in the agenda view |
142 | at the time of the completion. Such that now it is possible to see in the agenda view | 145 | at the time of the completion. Such that now it is possible to see in the agenda view |
143 | when what todo was completed. | 146 | when what todo was completed. |
144 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. | 147 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. |
145 | Now the behaviour is: | 148 | Now the behaviour is: |
146 | Setting a parent to complete sets all (sub)childs to complete. | 149 | Setting a parent to complete sets all (sub)childs to complete. |
147 | Setting a parent to uncomplete does not change the childs. | 150 | Setting a parent to uncomplete does not change the childs. |
148 | Setting a child to uncomplete sets all parent to uncomplete. | 151 | Setting a child to uncomplete sets all parent to uncomplete. |
149 | Setting a child to complete does not change the parents. | 152 | Setting a child to complete does not change the parents. |
150 | 153 | ||
151 | Smart updating and double buffering of the daymatrix. | 154 | Smart updating and double buffering of the daymatrix. |
152 | Showing holidays in the day matrix. | 155 | Showing holidays in the day matrix. |
153 | Many other small performance updates. | 156 | Many other small performance updates. |
154 | 157 | ||
155 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. | 158 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. |
156 | 159 | ||
157 | Now the translation file usertranslation.txt is supposed to be in utf8 format. | 160 | Now the translation file usertranslation.txt is supposed to be in utf8 format. |
158 | 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. | 161 | 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. |
159 | 162 | ||
160 | 163 | ||
161 | ********** VERSION 2.0.0 ************ | 164 | ********** VERSION 2.0.0 ************ |
162 | 165 | ||
163 | Stable release 2.0.0! | 166 | Stable release 2.0.0! |
164 | 167 | ||
165 | KO/Pi: | 168 | KO/Pi: |
166 | Fixed problem in edit dialog recreation at startup. | 169 | Fixed problem in edit dialog recreation at startup. |
167 | Made "toggle view*" menu items enabled context sensitive. | 170 | Made "toggle view*" menu items enabled context sensitive. |
168 | Changed agenda size menu to items 1-10. | 171 | Changed agenda size menu to items 1-10. |
169 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 172 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
170 | Usebility enhancements in the KO/Pi menus. | 173 | Usebility enhancements in the KO/Pi menus. |
171 | Birthday import now adds year to summary. | 174 | Birthday import now adds year to summary. |
172 | What's Next view shows age in years for birthday. | 175 | What's Next view shows age in years for birthday. |
173 | 176 | ||
174 | OM/Pi: | 177 | OM/Pi: |
175 | Added three info lines to display subject, from and to of selected mails. | 178 | Added three info lines to display subject, from and to of selected mails. |
176 | 179 | ||
177 | KA/Pi: | 180 | KA/Pi: |
178 | Fixed jump bar behaviour on Zaurus. | 181 | Fixed jump bar behaviour on Zaurus. |
179 | Now KA/Pi search field supports searching for a range of starting characters. | 182 | Now KA/Pi search field supports searching for a range of starting characters. |
180 | E.g. to search for all contact beginning with b to n, type | 183 | E.g. to search for all contact beginning with b to n, type |
181 | b-n | 184 | b-n |
182 | in the search field. | 185 | in the search field. |
183 | 186 | ||
184 | ********** VERSION 1.9.20 ************ | 187 | ********** VERSION 1.9.20 ************ |
185 | 188 | ||
186 | KO/Pi: | 189 | KO/Pi: |
187 | Added for the "dislplay one day" agenda mode | 190 | Added for the "dislplay one day" agenda mode |
188 | info in the caption and in the day lables: | 191 | info in the caption and in the day lables: |
189 | Now it is displayed, if the selected day is from "day before yesterday" | 192 | Now it is displayed, if the selected day is from "day before yesterday" |
190 | to "day after tomorrow". | 193 | to "day after tomorrow". |
191 | Made it possible to delete a Todo, which has sub-todos. | 194 | Made it possible to delete a Todo, which has sub-todos. |
192 | Fixed two small problems in the todo view. | 195 | Fixed two small problems in the todo view. |
193 | Added missing German translation for filter edit and print dialog. | 196 | Added missing German translation for filter edit and print dialog. |
194 | Made search dialog closeable by cancel key. | 197 | Made search dialog closeable by cancel key. |
195 | 198 | ||
196 | Made it possible to select in the date picker the (ligt grey ) | 199 | Made it possible to select in the date picker the (ligt grey ) |
197 | dates of the prev./next month with the mouse. | 200 | dates of the prev./next month with the mouse. |
198 | 201 | ||
199 | OM/Pi: | 202 | OM/Pi: |
200 | "Delete mail" icon in main window now deletes all selected mails. | 203 | "Delete mail" icon in main window now deletes all selected mails. |
201 | Fixed the problem, that the state flag of imap mails was ignored. | 204 | Fixed the problem, that the state flag of imap mails was ignored. |
202 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view | 205 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view |
203 | to indecate that they are already seen. | 206 | to indecate that they are already seen. |
204 | Fixed the problem that the body of some mails was not displayed in the | 207 | Fixed the problem that the body of some mails was not displayed in the |
205 | mail viewer when fetching them from the imap server directly to read them. | 208 | mail viewer when fetching them from the imap server directly to read them. |
206 | Made it (configurable) possible to show the "To:" field in the list view. | 209 | Made it (configurable) possible to show the "To:" field in the list view. |
207 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. | 210 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. |
208 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the | 211 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the |
209 | local storage folder (specified in account settings) of the account of the mail. | 212 | local storage folder (specified in account settings) of the account of the mail. |
210 | Removed some memory leaks in OM/Pi. | 213 | Removed some memory leaks in OM/Pi. |
211 | 214 | ||
212 | 215 | ||
213 | ********** VERSION 1.9.19 ************ | 216 | ********** VERSION 1.9.19 ************ |
214 | 217 | ||
215 | Added a lot of missing translations to KA/Pi, | 218 | Added a lot of missing translations to KA/Pi, |
216 | Added some missing translations to KO/Pi and OM/Pi. | 219 | Added some missing translations to KO/Pi and OM/Pi. |
217 | 220 | ||
218 | Fixed some minor problems in KA/Pi + KO/Pi. | 221 | Fixed some minor problems in KA/Pi + KO/Pi. |
219 | 222 | ||
220 | Fixed a crash when closing PwM/Pi. | 223 | Fixed a crash when closing PwM/Pi. |
221 | Added German translation for PwM/Pi. | 224 | Added German translation for PwM/Pi. |
222 | 225 | ||
223 | Made view change and Month View update faster in KO/Pi. | 226 | Made view change and Month View update faster in KO/Pi. |
224 | 227 | ||
225 | 228 | ||
226 | ********** VERSION 1.9.18 ************ | 229 | ********** VERSION 1.9.18 ************ |
227 | 230 | ||
228 | FYI: The VERSION 1.9.17 was a testing release only. | 231 | FYI: The VERSION 1.9.17 was a testing release only. |
229 | Please read the changelog of VERSION 1.9.17 as well. | 232 | Please read the changelog of VERSION 1.9.17 as well. |
230 | 233 | ||
231 | Cleaned up the syncing config dialog. | 234 | Cleaned up the syncing config dialog. |
232 | Added sync config options for date range for events. | 235 | Added sync config options for date range for events. |
233 | Added sync config options for filters on incoming data. | 236 | Added sync config options for filters on incoming data. |
234 | Added sync config options for filters on outgoing data. | 237 | Added sync config options for filters on outgoing data. |
235 | Please read the updated SyncHowTo about the new filter settings. | 238 | Please read the updated SyncHowTo about the new filter settings. |
236 | These filter settings make it now possible to sync with shared | 239 | These filter settings make it now possible to sync with shared |
237 | calendars without writing back private or confidential data | 240 | calendars without writing back private or confidential data |
238 | (via the outgoing filters). | 241 | (via the outgoing filters). |
239 | To sync only with particular parts of a shared calendar, | 242 | To sync only with particular parts of a shared calendar, |
240 | the incoming filter settings can be used. | 243 | the incoming filter settings can be used. |
241 | An example can be found in the SyncHowTo. | 244 | An example can be found in the SyncHowTo. |
242 | Same for shared addressbooks. | 245 | Same for shared addressbooks. |
243 | 246 | ||
244 | Added a setting for the global kdepim data storage. | 247 | Added a setting for the global kdepim data storage. |
245 | Usually the data is stored in (yourhomedir/kdepim). | 248 | Usually the data is stored in (yourhomedir/kdepim). |
246 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" | 249 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" |
247 | a directory where all the kdepim data is stored. | 250 | a directory where all the kdepim data is stored. |
248 | That makes it easy to save all kdepim data on a SD card on the Z, for example. | 251 | That makes it easy to save all kdepim data on a SD card on the Z, for example. |
249 | 252 | ||
250 | KO/Pi: | 253 | KO/Pi: |
251 | The timeedit input has a pulldown list for times. | 254 | The timeedit input has a pulldown list for times. |
252 | If opened, this pulldown list should now has the right time highlighted. | 255 | If opened, this pulldown list should now has the right time highlighted. |
253 | Added the possibility to exclude events/todos/journals in a filter. | 256 | Added the possibility to exclude events/todos/journals in a filter. |
254 | You should exclude journals, if you do not want them to sync with a public calendar. | 257 | You should exclude journals, if you do not want them to sync with a public calendar. |
255 | 258 | ||
256 | KA/Pi: | 259 | KA/Pi: |
257 | Added the possibility to in/exclude public/private/confidential contacts to a filter. | 260 | Added the possibility to in/exclude public/private/confidential contacts to a filter. |
258 | 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 ... | 261 | 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 ... |
259 | Added printing of card view and details view on desktop. | 262 | Added printing of card view and details view on desktop. |
260 | Printing of list view is not working... | 263 | Printing of list view is not working... |
261 | Added button for removing pictures in contact editor. | 264 | Added button for removing pictures in contact editor. |
262 | Parsing data fix of KA/Pi version 1.9.17. | 265 | Parsing data fix of KA/Pi version 1.9.17. |
263 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. | 266 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. |
264 | Fixed some syncing merging problems. | 267 | Fixed some syncing merging problems. |
265 | 268 | ||
266 | 269 | ||
267 | ********** VERSION 1.9.17 ************ | 270 | ********** VERSION 1.9.17 ************ |
268 | 271 | ||
269 | KO/Pi: | 272 | KO/Pi: |
270 | Fixed that tooltips were not updated after moving an item in agenda view. | 273 | Fixed that tooltips were not updated after moving an item in agenda view. |
271 | Fixed a bug in sorting start date for recurring events in list view. | 274 | Fixed a bug in sorting start date for recurring events in list view. |
272 | Changed the left button in todo viewer from "Agenda" to "Set completed". | 275 | Changed the left button in todo viewer from "Agenda" to "Set completed". |
273 | 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. | 276 | 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. |
274 | Added more info in the todo viewer: Startdate, parent/sub todos. | 277 | Added more info in the todo viewer: Startdate, parent/sub todos. |
275 | 278 | ||
276 | 279 | ||
277 | KA/Pi: | 280 | KA/Pi: |
278 | All fields search does now actually search all the (possible) fields, | 281 | All fields search does now actually search all the (possible) fields, |
279 | not only those listed in the contact list. | 282 | not only those listed in the contact list. |
280 | Made is possible to inline a picture in a vcard on the Z. | 283 | Made is possible to inline a picture in a vcard on the Z. |
281 | This was only possible on the desktop, now is it possible on the Z as well. | 284 | This was only possible on the desktop, now is it possible on the Z as well. |
282 | Fixed of missing save settings after filter configuration. | 285 | Fixed of missing save settings after filter configuration. |
283 | Made saving of addressbook much faster. | 286 | Made saving of addressbook much faster. |
284 | Fixed extension widget layout problem. | 287 | Fixed extension widget layout problem. |
285 | Fixed saving of default formatted name settings. | 288 | Fixed saving of default formatted name settings. |
286 | Fixed formatted name handling in edit dialog. | 289 | Fixed formatted name handling in edit dialog. |
287 | Added an option for changing formatted names of many contacts | 290 | Added an option for changing formatted names of many contacts |
288 | (menu: File - Change - Set formatted name). | 291 | (menu: File - Change - Set formatted name). |
289 | 292 | ||
290 | QWhatsThis was not working on the Z ( only black rectangle was shown). | 293 | QWhatsThis was not working on the Z ( only black rectangle was shown). |
291 | This is Fixed. | 294 | This is Fixed. |
292 | 295 | ||
293 | KDE-Sync: | 296 | KDE-Sync: |
294 | Now readonly KDE resources are synced as well. | 297 | Now readonly KDE resources are synced as well. |
295 | (They are not changed in KDE itself, of course). | 298 | (They are not changed in KDE itself, of course). |
296 | 299 | ||
297 | 300 | ||
298 | 301 | ||
299 | ********** VERSION 1.9.16 ************ | 302 | ********** VERSION 1.9.16 ************ |
300 | 303 | ||
301 | KO/Pi: | 304 | KO/Pi: |
302 | Fixed search dialog size on Z 6000 (480x640 display). | 305 | Fixed search dialog size on Z 6000 (480x640 display). |
303 | Added setting to hide/show time in agenda items. | 306 | Added setting to hide/show time in agenda items. |
304 | Added setting to hide not running todos in todo view. | 307 | Added setting to hide not running todos in todo view. |
305 | Added columns for start date/time in todo view. | 308 | Added columns for start date/time in todo view. |
306 | Replaced the solid half-hour lines in agenda view by dot lines. | 309 | Replaced the solid half-hour lines in agenda view by dot lines. |
307 | Added possibility of printing the What's Next View on the desktop | 310 | Added possibility of printing the What's Next View on the desktop |
308 | (i.e. Windows and Linux). | 311 | (i.e. Windows and Linux). |
309 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. | 312 | Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. |
310 | Added tooltips in month view.(Tooltips only available on desktop) | 313 | Added tooltips in month view.(Tooltips only available on desktop) |
311 | 314 | ||
312 | Fixed a strange problem in KO/Pi alarm applet. | 315 | Fixed a strange problem in KO/Pi alarm applet. |
313 | Did not find the actual problem, | 316 | Did not find the actual problem, |
314 | such that now Qtopia reboots again if deinstalling the alarm applet. | 317 | such that now Qtopia reboots again if deinstalling the alarm applet. |
315 | But the alarm applet should work again. | 318 | But the alarm applet should work again. |
316 | 319 | ||
317 | KA/Pi: | 320 | KA/Pi: |
318 | Fixed the problem, that internal pictures were not saved. | 321 | Fixed the problem, that internal pictures were not saved. |
319 | 322 | ||
320 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. | 323 | Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. |
321 | 324 | ||
322 | Fixed some minor problems. (Like word wrap in help text windows). | 325 | Fixed some minor problems. (Like word wrap in help text windows). |
323 | 326 | ||
324 | Fixed a compiling problem in microkde/kresources. | 327 | Fixed a compiling problem in microkde/kresources. |
325 | 328 | ||
326 | KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM. | 329 | KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM. |
327 | This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9) | 330 | This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9) |
328 | such that now syncing KO/Pi with Sharp DTM should work on the | 331 | such that now syncing KO/Pi with Sharp DTM should work on the |
329 | Zaurus C 3000 model. | 332 | Zaurus C 3000 model. |
330 | 333 | ||
331 | ********** VERSION 1.9.15 ************ | 334 | ********** VERSION 1.9.15 ************ |
332 | 335 | ||
333 | Usebilty enhancements in KO/Pi: | 336 | Usebilty enhancements in KO/Pi: |
334 | When clicking on the date in a month view cell, the day view is shown. | 337 | When clicking on the date in a month view cell, the day view is shown. |
335 | Old behaviour was, that the "new event" dialog popped up. | 338 | Old behaviour was, that the "new event" dialog popped up. |
336 | 339 | ||
337 | Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). | 340 | Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). |
338 | That means, you can restore the latest | 341 | That means, you can restore the latest |
339 | event/todo/journal you have deleted. | 342 | event/todo/journal you have deleted. |
340 | A journal is deleted, if you clear all the text of the journal. | 343 | A journal is deleted, if you clear all the text of the journal. |
341 | 344 | ||
342 | Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. | 345 | Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. |
343 | 346 | ||
344 | KA/Pi starting in 480x640 resolution: | 347 | KA/Pi starting in 480x640 resolution: |
345 | Hide the filter action in toolbar | 348 | Hide the filter action in toolbar |
346 | and added icons for undo/delete/redo in toolbar. | 349 | and added icons for undo/delete/redo in toolbar. |
347 | 350 | ||
348 | Change in OM/Pi ViewMail dialog: | 351 | Change in OM/Pi ViewMail dialog: |
349 | When clicking on the "delete" icon the mail is deleted after confirmation as usual. | 352 | When clicking on the "delete" icon the mail is deleted after confirmation as usual. |
350 | But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). | 353 | But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). |
351 | 354 | ||
352 | Fixed a crash when deleting mail-accounts in OM/Pi. | 355 | Fixed a crash when deleting mail-accounts in OM/Pi. |
353 | 356 | ||
354 | 357 | ||
355 | ********** VERSION 1.9.14 ************ | 358 | ********** VERSION 1.9.14 ************ |
356 | 359 | ||
357 | Fixed some problems with the dialog sizes when switching | 360 | Fixed some problems with the dialog sizes when switching |
358 | portrait/landscape mode on 640x480 PDA display. | 361 | portrait/landscape mode on 640x480 PDA display. |
359 | 362 | ||
360 | Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. | 363 | Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. |
361 | 364 | ||
362 | Fixed an ugly bug in KOpieMail: | 365 | Fixed an ugly bug in KOpieMail: |
363 | KOpieMail was not able to write files (mails) to MSDOS file system, | 366 | KOpieMail was not able to write files (mails) to MSDOS file system, |
364 | like on an usual preformatted SD card. That should work now. | 367 | like on an usual preformatted SD card. That should work now. |
365 | To save your mail data on the Sd card do the following: | 368 | To save your mail data on the Sd card do the following: |
366 | Create a dir on the SD card: | 369 | Create a dir on the SD card: |
367 | mkdir /mnt/card/localmail | 370 | mkdir /mnt/card/localmail |
368 | Go to your home dir: | 371 | Go to your home dir: |
369 | cd | 372 | cd |
370 | Go to kopiemail data storage dir: | 373 | Go to kopiemail data storage dir: |
371 | cd kdepim/apps/kopiemail | 374 | cd kdepim/apps/kopiemail |
372 | Create a symlink to the SD card: | 375 | Create a symlink to the SD card: |
373 | ls -s /mnt/card/localmail | 376 | ls -s /mnt/card/localmail |
374 | Now KOpieMail will store all mails on the SD card. | 377 | Now KOpieMail will store all mails on the SD card. |
375 | 378 | ||
376 | KO/Pi Monthview: | 379 | KO/Pi Monthview: |
377 | Now "Go to Today" selects the current month from day 1-end, | 380 | Now "Go to Today" selects the current month from day 1-end, |
378 | not the current date + some days. | 381 | not the current date + some days. |
379 | I.e. "Go to Today" shows now always | 382 | I.e. "Go to Today" shows now always |
380 | the current month with first day of month in the first row. | 383 | the current month with first day of month in the first row. |
381 | 384 | ||
382 | Added missing German translation. | 385 | Added missing German translation. |
383 | 386 | ||
384 | Fixed icons of executeable on Wintendo. | 387 | Fixed icons of executeable on Wintendo. |
385 | 388 | ||
386 | Added a "Show next Mail" button to the OM/Pi | 389 | Added a "Show next Mail" button to the OM/Pi |
387 | mail viewer such that the mail below the current mail | 390 | mail viewer such that the mail below the current mail |
388 | in the mail list view of the current folder | 391 | in the mail list view of the current folder |
389 | can be read with a single click. | 392 | can be read with a single click. |
diff --git a/korganizer/komonthview.h b/korganizer/komonthview.h index b79a41f..f92a69a 100644 --- a/korganizer/komonthview.h +++ b/korganizer/komonthview.h | |||
@@ -1,301 +1,301 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of KOrganizer. | 2 | This file is part of KOrganizer. |
3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> | 3 | Copyright (c) 2000,2001 Cornelius Schumacher <schumacher@kde.org> |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | #ifndef _KOMONTHVIEW_H | 20 | #ifndef _KOMONTHVIEW_H |
21 | #define _KOMONTHVIEW_H | 21 | #define _KOMONTHVIEW_H |
22 | 22 | ||
23 | #include <qlabel.h> | 23 | #include <qlabel.h> |
24 | #include <qframe.h> | 24 | #include <qframe.h> |
25 | #include <qdatetime.h> | 25 | #include <qdatetime.h> |
26 | #include <qlistbox.h> | 26 | #include <qlistbox.h> |
27 | #include <qpoint.h> | 27 | #include <qpoint.h> |
28 | #include <qwidgetstack.h> | 28 | #include <qwidgetstack.h> |
29 | #include <qlayout.h> | 29 | #include <qlayout.h> |
30 | #include <qintdict.h> | 30 | #include <qintdict.h> |
31 | #include <qpushbutton.h> | 31 | #include <qpushbutton.h> |
32 | #include <qvaluelist.h> | 32 | #include <qvaluelist.h> |
33 | #include <qptrvector.h> | 33 | #include <qptrvector.h> |
34 | 34 | ||
35 | #include <libkcal/calendar.h> | 35 | #include <libkcal/calendar.h> |
36 | #include <libkcal/event.h> | 36 | #include <libkcal/event.h> |
37 | 37 | ||
38 | #include "koeventview.h" | 38 | #include "koeventview.h" |
39 | #include "navigatorbar.h" | 39 | #include "navigatorbar.h" |
40 | 40 | ||
41 | #ifdef DESKTOP_VERSION | 41 | #ifdef DESKTOP_VERSION |
42 | class QToolTipGroup; | 42 | class QToolTipGroup; |
43 | #endif | 43 | #endif |
44 | 44 | ||
45 | class KNOWhatsThis; | 45 | class KNOWhatsThis; |
46 | class KOWeekButton : public QPushButton | 46 | class KOWeekButton : public QPushButton |
47 | { | 47 | { |
48 | Q_OBJECT | 48 | Q_OBJECT |
49 | public: | 49 | public: |
50 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : | 50 | KOWeekButton( QWidget *parent=0, const char *name=0 ) : |
51 | QPushButton( parent, name) | 51 | QPushButton( parent, name) |
52 | { | 52 | { |
53 | connect( this, SIGNAL( clicked() ), | 53 | connect( this, SIGNAL( clicked() ), |
54 | SLOT( bottonClicked() )); | 54 | SLOT( bottonClicked() )); |
55 | mNumber = -1; | 55 | mNumber = -1; |
56 | } | 56 | } |
57 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} | 57 | void setWeekNum ( int num ) {mNumber = num; setText( QString::number ( num ));} |
58 | int getWeekNum() { return mNumber;} | 58 | int getWeekNum() { return mNumber;} |
59 | signals: | 59 | signals: |
60 | void selectWeekNum ( int ); | 60 | void selectWeekNum ( int ); |
61 | private: | 61 | private: |
62 | int mNumber; | 62 | int mNumber; |
63 | private slots : | 63 | private slots : |
64 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } | 64 | void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } |
65 | }; | 65 | }; |
66 | 66 | ||
67 | class KNoScrollListBox: public QListBox | 67 | class KNoScrollListBox: public QListBox |
68 | { | 68 | { |
69 | Q_OBJECT | 69 | Q_OBJECT |
70 | public: | 70 | public: |
71 | KNoScrollListBox(QWidget *parent=0, const char *name=0); | 71 | KNoScrollListBox(QWidget *parent=0, const char *name=0); |
72 | ~KNoScrollListBox(); | 72 | ~KNoScrollListBox(); |
73 | QString getWhatsThisText(QPoint p) ; | 73 | QString getWhatsThisText(QPoint p) ; |
74 | 74 | ||
75 | signals: | 75 | signals: |
76 | void shiftDown(); | 76 | void shiftDown(); |
77 | void shiftUp(); | 77 | void shiftUp(); |
78 | void rightClick(); | 78 | void rightClick(); |
79 | 79 | ||
80 | protected slots: | 80 | protected slots: |
81 | void oneDown(); | 81 | void oneDown(); |
82 | void keyPressEvent(QKeyEvent *); | 82 | void keyPressEvent(QKeyEvent *); |
83 | void keyReleaseEvent(QKeyEvent *); | 83 | void keyReleaseEvent(QKeyEvent *); |
84 | void mousePressEvent(QMouseEvent *); | 84 | void mousePressEvent(QMouseEvent *); |
85 | 85 | ||
86 | private: | 86 | private: |
87 | KNOWhatsThis * mWT; | 87 | KNOWhatsThis * mWT; |
88 | }; | 88 | }; |
89 | 89 | ||
90 | 90 | ||
91 | class MonthViewItem: public QListBoxItem | 91 | class MonthViewItem: public QListBoxItem |
92 | { | 92 | { |
93 | public: | 93 | public: |
94 | MonthViewItem( Incidence *, QDate qd, const QString & title ); | 94 | MonthViewItem( Incidence *, QDate qd, const QString & title ); |
95 | 95 | ||
96 | void setRecur(bool on) { mRecur = on; } | 96 | void setRecur(bool on) { mRecur = on; } |
97 | void setAlarm(bool on) { mAlarm = on; } | 97 | void setAlarm(bool on) { mAlarm = on; } |
98 | void setReply(bool on) { mReply = on; } | 98 | void setReply(bool on) { mReply = on; } |
99 | void setMoreInfo(bool on) { mInfo = on; } | 99 | void setMoreInfo(bool on) { mInfo = on; } |
100 | void setMultiDay(int type) { mMultiday = type; } | 100 | void setMultiDay(int type) { mMultiday = type; } |
101 | 101 | ||
102 | 102 | ||
103 | void setPalette(const QPalette &p) { mPalette = p; } | 103 | void setPalette(const QPalette &p) { mPalette = p; } |
104 | QPalette palette() const { return mPalette; } | 104 | QPalette palette() const { return mPalette; } |
105 | 105 | ||
106 | Incidence *incidence() const { return mIncidence; } | 106 | Incidence *incidence() const { return mIncidence; } |
107 | QDate incidenceDate() { return mDate; } | 107 | QDate incidenceDate() { return mDate; } |
108 | 108 | ||
109 | protected: | 109 | protected: |
110 | virtual void paint(QPainter *); | 110 | virtual void paint(QPainter *); |
111 | virtual int height(const QListBox *) const; | 111 | virtual int height(const QListBox *) const; |
112 | virtual int width(const QListBox *) const; | 112 | virtual int width(const QListBox *) const; |
113 | 113 | ||
114 | private: | 114 | private: |
115 | int mMultiday; | 115 | int mMultiday; |
116 | bool mRecur; | 116 | bool mRecur; |
117 | bool mAlarm; | 117 | bool mAlarm; |
118 | bool mReply; | 118 | bool mReply; |
119 | bool mInfo; | 119 | bool mInfo; |
120 | 120 | ||
121 | QPalette mPalette; | 121 | QPalette mPalette; |
122 | QDate mDate; | 122 | QDate mDate; |
123 | 123 | ||
124 | Incidence *mIncidence; | 124 | Incidence *mIncidence; |
125 | }; | 125 | }; |
126 | 126 | ||
127 | 127 | ||
128 | class KOMonthView; | 128 | class KOMonthView; |
129 | 129 | ||
130 | class MonthViewCell : public QWidget | 130 | class MonthViewCell : public QWidget |
131 | { | 131 | { |
132 | Q_OBJECT | 132 | Q_OBJECT |
133 | public: | 133 | public: |
134 | MonthViewCell(KOMonthView *,QWidget* ); | 134 | MonthViewCell(KOMonthView *,QWidget* ); |
135 | 135 | ||
136 | void setDate( const QDate & ); | 136 | void setDate( const QDate & ); |
137 | QDate date() const; | 137 | QDate date() const; |
138 | 138 | ||
139 | void setPrimary( bool ); | 139 | void setPrimary( bool ); |
140 | bool isPrimary() const; | 140 | bool isPrimary() const; |
141 | 141 | ||
142 | void setHoliday( bool ); | 142 | void setHoliday( bool ); |
143 | void setHoliday( const QString & ); | 143 | void setHoliday( const QString & ); |
144 | 144 | ||
145 | void updateCell(); | 145 | void updateCell(); |
146 | void startUpdateCell(); | 146 | void startUpdateCell(); |
147 | void finishUpdateCell(); | 147 | void finishUpdateCell(); |
148 | void insertEvent(Event *); | 148 | void insertEvent(Event *); |
149 | void insertTodo(Todo *); | 149 | void insertTodo(Todo *); |
150 | 150 | ||
151 | void updateConfig( bool bigFont = false ); | 151 | void updateConfig( bool bigFont = false ); |
152 | 152 | ||
153 | void enableScrollBars( bool ); | 153 | void enableScrollBars( bool ); |
154 | 154 | ||
155 | Incidence *selectedIncidence(); | 155 | Incidence *selectedIncidence(); |
156 | QDate selectedIncidenceDate(); | 156 | QDate selectedIncidenceDate(); |
157 | 157 | ||
158 | void deselect(); | 158 | void deselect(); |
159 | void select(); | 159 | void select(); |
160 | 160 | ||
161 | #ifdef DESKTOP_VERSION | 161 | #ifdef DESKTOP_VERSION |
162 | static QToolTipGroup *toolTipGroup(); | 162 | static QToolTipGroup *toolTipGroup(); |
163 | #endif | 163 | #endif |
164 | signals: | 164 | signals: |
165 | void defaultAction( Incidence * ); | 165 | void defaultAction( Incidence * ); |
166 | void newEventSignal( QDateTime ); | 166 | void newEventSignal( QDateTime ); |
167 | void showDaySignal( QDate ); | 167 | void showDaySignal( QDate ); |
168 | 168 | ||
169 | protected: | 169 | protected: |
170 | QString mToolTip; | 170 | QString mToolTip; |
171 | void resizeEvent( QResizeEvent * ); | 171 | void resizeEvent( QResizeEvent * ); |
172 | 172 | ||
173 | protected slots: | 173 | protected slots: |
174 | void defaultAction( QListBoxItem * ); | 174 | void defaultAction( QListBoxItem * ); |
175 | void contextMenu( QListBoxItem * ); | 175 | void contextMenu( QListBoxItem * ); |
176 | void selection( QListBoxItem * ); | 176 | void selection( QListBoxItem * ); |
177 | void cellClicked( QListBoxItem * ); | 177 | void cellClicked( QListBoxItem * ); |
178 | void newEvent(); | 178 | void newEvent(); |
179 | void showDay(); | 179 | void showDay(); |
180 | 180 | ||
181 | private: | 181 | private: |
182 | KOMonthView *mMonthView; | 182 | KOMonthView *mMonthView; |
183 | 183 | ||
184 | QDate mDate; | 184 | QDate mDate; |
185 | bool mPrimary; | 185 | bool mPrimary; |
186 | bool mHoliday; | 186 | bool mHoliday; |
187 | QString mHolidayString; | 187 | QString mHolidayString; |
188 | 188 | ||
189 | //QLabel *mLabel; | 189 | //QLabel *mLabel; |
190 | QPushButton *mLabel; | 190 | QPushButton *mLabel; |
191 | QListBox *mItemList; | 191 | QListBox *mItemList; |
192 | #ifdef DESKTOP_VERSION | 192 | #ifdef DESKTOP_VERSION |
193 | static QToolTipGroup *mToolTipGroup; | 193 | static QToolTipGroup *mToolTipGroup; |
194 | #endif | 194 | #endif |
195 | QSize mLabelSize; | 195 | QSize mLabelSize; |
196 | QSize mLabelBigSize; | 196 | QSize mLabelBigSize; |
197 | QPalette mHolidayPalette; | 197 | QPalette mHolidayPalette; |
198 | QPalette mStandardPalette; | 198 | QPalette mStandardPalette; |
199 | QPalette mPrimaryPalette; | 199 | QPalette mPrimaryPalette; |
200 | QPalette mNonPrimaryPalette; | 200 | QPalette mNonPrimaryPalette; |
201 | void setMyPalette(); | 201 | void setMyPalette(); |
202 | QPalette getPalette (); | 202 | QPalette getPalette (); |
203 | void keyPressEvent ( QKeyEvent * ) ; | 203 | void keyPressEvent ( QKeyEvent * ) ; |
204 | 204 | ||
205 | }; | 205 | }; |
206 | 206 | ||
207 | 207 | ||
208 | class KOMonthView: public KOEventView | 208 | class KOMonthView: public KOEventView |
209 | { | 209 | { |
210 | Q_OBJECT | 210 | Q_OBJECT |
211 | public: | 211 | public: |
212 | KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); | 212 | KOMonthView(Calendar *cal, QWidget *parent = 0, const char *name = 0 ); |
213 | ~KOMonthView(); | 213 | ~KOMonthView(); |
214 | 214 | ||
215 | /** Returns maximum number of days supported by the komonthview */ | 215 | /** Returns maximum number of days supported by the komonthview */ |
216 | virtual int maxDatesHint(); | 216 | virtual int maxDatesHint(); |
217 | 217 | ||
218 | /** Returns number of currently shown dates. */ | 218 | /** Returns number of currently shown dates. */ |
219 | virtual int currentDateCount(); | 219 | virtual int currentDateCount(); |
220 | 220 | ||
221 | /** returns the currently selected events */ | 221 | /** returns the currently selected events */ |
222 | virtual QPtrList<Incidence> selectedIncidences(); | 222 | virtual QPtrList<Incidence> selectedIncidences(); |
223 | 223 | ||
224 | /** returns dates of the currently selected events */ | 224 | /** returns dates of the currently selected events */ |
225 | virtual DateList selectedDates(); | 225 | virtual DateList selectedDates(); |
226 | 226 | ||
227 | virtual void printPreview(CalPrinter *calPrinter, | 227 | virtual void printPreview(CalPrinter *calPrinter, |
228 | const QDate &, const QDate &); | 228 | const QDate &, const QDate &); |
229 | bool isMonthView() { return true; } | 229 | bool isMonthView() { return !mShowWeekView; } |
230 | bool isUpdatePossible() { return updatePossible; } | 230 | bool isUpdatePossible() { return updatePossible; } |
231 | 231 | ||
232 | MonthViewCell * selectedCell(); | 232 | MonthViewCell * selectedCell(); |
233 | bool skipResize; | 233 | bool skipResize; |
234 | NavigatorBar* navigatorBar() { return mNavigatorBar ;} | 234 | NavigatorBar* navigatorBar() { return mNavigatorBar ;} |
235 | public slots: | 235 | public slots: |
236 | virtual void updateView(); | 236 | virtual void updateView(); |
237 | virtual void updateConfig(); | 237 | virtual void updateConfig(); |
238 | virtual void showDates(const QDate &start, const QDate &end); | 238 | virtual void showDates(const QDate &start, const QDate &end); |
239 | virtual void showEvents(QPtrList<Event> eventList); | 239 | virtual void showEvents(QPtrList<Event> eventList); |
240 | 240 | ||
241 | void changeEventDisplay(Event *, int); | 241 | void changeEventDisplay(Event *, int); |
242 | 242 | ||
243 | void clearSelection(); | 243 | void clearSelection(); |
244 | 244 | ||
245 | void showContextMenu( Incidence * ); | 245 | void showContextMenu( Incidence * ); |
246 | 246 | ||
247 | void setSelectedCell( MonthViewCell * ); | 247 | void setSelectedCell( MonthViewCell * ); |
248 | void switchView(); | 248 | void switchView(); |
249 | 249 | ||
250 | protected slots: | 250 | protected slots: |
251 | void selectInternalWeekNum ( int ); | 251 | void selectInternalWeekNum ( int ); |
252 | void processSelectionChange(); | 252 | void processSelectionChange(); |
253 | signals: | 253 | signals: |
254 | void nextMonth(); | 254 | void nextMonth(); |
255 | void prevMonth(); | 255 | void prevMonth(); |
256 | void selectWeekNum ( int ); | 256 | void selectWeekNum ( int ); |
257 | void selectMonth (); | 257 | void selectMonth (); |
258 | void showDaySignal( QDate ); | 258 | void showDaySignal( QDate ); |
259 | protected: | 259 | protected: |
260 | void resizeEvent(QResizeEvent *); | 260 | void resizeEvent(QResizeEvent *); |
261 | void viewChanged(); | 261 | void viewChanged(); |
262 | void updateDayLabels(); | 262 | void updateDayLabels(); |
263 | 263 | ||
264 | private: | 264 | private: |
265 | NavigatorBar* mNavigatorBar; | 265 | NavigatorBar* mNavigatorBar; |
266 | int currentWeek(); | 266 | int currentWeek(); |
267 | bool clPending; | 267 | bool clPending; |
268 | QWidgetStack * mWidStack; | 268 | QWidgetStack * mWidStack; |
269 | QWidget* mMonthView; | 269 | QWidget* mMonthView; |
270 | QWidget* mWeekView; | 270 | QWidget* mWeekView; |
271 | bool mShowWeekView; | 271 | bool mShowWeekView; |
272 | bool updatePossible; | 272 | bool updatePossible; |
273 | int mDaysPerWeek; | 273 | int mDaysPerWeek; |
274 | int mNumWeeks; | 274 | int mNumWeeks; |
275 | int mNumCells; | 275 | int mNumCells; |
276 | bool mWeekStartsMonday; | 276 | bool mWeekStartsMonday; |
277 | bool mShowSatSunComp; | 277 | bool mShowSatSunComp; |
278 | void computeLayout(); | 278 | void computeLayout(); |
279 | void computeLayoutWeek(); | 279 | void computeLayoutWeek(); |
280 | 280 | ||
281 | QPtrVector<MonthViewCell> mCells; | 281 | QPtrVector<MonthViewCell> mCells; |
282 | QPtrVector<QLabel> mDayLabels; | 282 | QPtrVector<QLabel> mDayLabels; |
283 | QPtrVector<KOWeekButton> mWeekLabels; | 283 | QPtrVector<KOWeekButton> mWeekLabels; |
284 | QPtrVector<MonthViewCell> mCellsW; | 284 | QPtrVector<MonthViewCell> mCellsW; |
285 | QPtrVector<QLabel> mDayLabelsW; | 285 | QPtrVector<QLabel> mDayLabelsW; |
286 | QPtrVector<KOWeekButton> mWeekLabelsW; | 286 | QPtrVector<KOWeekButton> mWeekLabelsW; |
287 | 287 | ||
288 | bool mShortDayLabelsM; | 288 | bool mShortDayLabelsM; |
289 | bool mShortDayLabelsW; | 289 | bool mShortDayLabelsW; |
290 | int mWidthLongDayLabel; | 290 | int mWidthLongDayLabel; |
291 | 291 | ||
292 | QDate mStartDate; | 292 | QDate mStartDate; |
293 | 293 | ||
294 | MonthViewCell *mSelectedCell; | 294 | MonthViewCell *mSelectedCell; |
295 | 295 | ||
296 | KOEventPopupMenu *mContextMenu; | 296 | KOEventPopupMenu *mContextMenu; |
297 | void keyPressEvent ( QKeyEvent * ) ; | 297 | void keyPressEvent ( QKeyEvent * ) ; |
298 | 298 | ||
299 | }; | 299 | }; |
300 | 300 | ||
301 | #endif | 301 | #endif |
diff --git a/korganizer/koviewmanager.cpp b/korganizer/koviewmanager.cpp index ac67b58..a9f5a41 100644 --- a/korganizer/koviewmanager.cpp +++ b/korganizer/koviewmanager.cpp | |||
@@ -176,539 +176,540 @@ void KOViewManager::writeSettings(KConfig *config) | |||
176 | QString view; | 176 | QString view; |
177 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; | 177 | if (mCurrentView == mWhatsNextView) view = "WhatsNext"; |
178 | else if (mCurrentView == mMonthView) view = "Month"; | 178 | else if (mCurrentView == mMonthView) view = "Month"; |
179 | else if (mCurrentView == mListView) view = "List"; | 179 | else if (mCurrentView == mListView) view = "List"; |
180 | else if (mCurrentView == mJournalView) view = "Journal"; | 180 | else if (mCurrentView == mJournalView) view = "Journal"; |
181 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; | 181 | else if (mCurrentView == mTimeSpanView) view = "TimeSpan"; |
182 | else if (mCurrentView == mTodoView) view = "Todo"; | 182 | else if (mCurrentView == mTodoView) view = "Todo"; |
183 | else view = "Agenda"; | 183 | else view = "Agenda"; |
184 | 184 | ||
185 | config->writeEntry("Current View",view); | 185 | config->writeEntry("Current View",view); |
186 | 186 | ||
187 | if (mAgendaView) { | 187 | if (mAgendaView) { |
188 | mAgendaView->writeSettings(config); | 188 | mAgendaView->writeSettings(config); |
189 | } | 189 | } |
190 | if (mTimeSpanView) { | 190 | if (mTimeSpanView) { |
191 | mTimeSpanView->writeSettings(config); | 191 | mTimeSpanView->writeSettings(config); |
192 | } | 192 | } |
193 | if (mListView) { | 193 | if (mListView) { |
194 | mListView->writeSettings(config); | 194 | mListView->writeSettings(config); |
195 | } | 195 | } |
196 | if (mTodoView) { | 196 | if (mTodoView) { |
197 | mTodoView->saveLayout(config,"Todo View"); | 197 | mTodoView->saveLayout(config,"Todo View"); |
198 | } | 198 | } |
199 | } | 199 | } |
200 | 200 | ||
201 | void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen ) | 201 | void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen ) |
202 | { | 202 | { |
203 | 203 | ||
204 | //mFlagShowNextxDays = false; | 204 | //mFlagShowNextxDays = false; |
205 | //if(view == mCurrentView) return; | 205 | //if(view == mCurrentView) return; |
206 | if ( view == 0 ) { | 206 | if ( view == 0 ) { |
207 | view = mCurrentView; | 207 | view = mCurrentView; |
208 | if ( view == 0 ) | 208 | if ( view == 0 ) |
209 | return; | 209 | return; |
210 | } | 210 | } |
211 | bool full = fullScreen; | 211 | bool full = fullScreen; |
212 | if(view == mCurrentView && view != mWhatsNextView ) { | 212 | if(view == mCurrentView && view != mWhatsNextView ) { |
213 | if ( mCurrentAgendaView < 0 ) | 213 | if ( mCurrentAgendaView < 0 ) |
214 | return; | 214 | return; |
215 | if ( view != mMonthView ) | 215 | if ( view != mMonthView ) |
216 | full = mMainView->leftFrame()->isVisible(); | 216 | full = mMainView->leftFrame()->isVisible(); |
217 | } else { | 217 | } else { |
218 | if ( view == mMonthView && mMonthView) | 218 | if ( view == mMonthView && mMonthView) |
219 | ;//mMonthView->skipResize = true ; | 219 | ;//mMonthView->skipResize = true ; |
220 | mCurrentView = view; | 220 | mCurrentView = view; |
221 | // bool full = fullScreen; | 221 | // bool full = fullScreen; |
222 | bool isFull = !mMainView->leftFrame()->isVisible(); | 222 | bool isFull = !mMainView->leftFrame()->isVisible(); |
223 | if ( isFull && KOPrefs::instance()->mViewChangeHoldFullscreen ) | 223 | if ( isFull && KOPrefs::instance()->mViewChangeHoldFullscreen ) |
224 | full = true; | 224 | full = true; |
225 | if ( !isFull && KOPrefs::instance()->mViewChangeHoldNonFullscreen ) | 225 | if ( !isFull && KOPrefs::instance()->mViewChangeHoldNonFullscreen ) |
226 | full = false; | 226 | full = false; |
227 | } | 227 | } |
228 | if ( mAgendaView ) mAgendaView->deleteSelectedDateTime(); | 228 | if ( mAgendaView ) mAgendaView->deleteSelectedDateTime(); |
229 | //raiseCurrentView( full ); | 229 | //raiseCurrentView( full ); |
230 | mMainView->processIncidenceSelection( 0 ); | 230 | mMainView->processIncidenceSelection( 0 ); |
231 | //mMainView->updateView(); | 231 | //mMainView->updateView(); |
232 | raiseCurrentView( full, true ); | 232 | raiseCurrentView( full, true ); |
233 | mMainView->adaptNavigationUnits(); | 233 | mMainView->adaptNavigationUnits(); |
234 | } | 234 | } |
235 | 235 | ||
236 | void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) | 236 | void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) |
237 | { | 237 | { |
238 | mCurrentAgendaView = 0; | 238 | mCurrentAgendaView = 0; |
239 | if ( fullScreen ) { | 239 | if ( fullScreen ) { |
240 | mMainView->leftFrame()->hide(); | 240 | mMainView->leftFrame()->hide(); |
241 | } else { | 241 | } else { |
242 | mMainView->leftFrame()->show(); | 242 | mMainView->leftFrame()->show(); |
243 | } | 243 | } |
244 | emit signalFullScreen( !fullScreen ); | 244 | emit signalFullScreen( !fullScreen ); |
245 | if ( callUpdateView ) | 245 | if ( callUpdateView ) |
246 | mMainView->updateView(); | 246 | mMainView->updateView(); |
247 | 247 | ||
248 | if ( globalFlagBlockAgenda == 5 ) { | 248 | if ( globalFlagBlockAgenda == 5 ) { |
249 | globalFlagBlockAgenda = 4; | 249 | globalFlagBlockAgenda = 4; |
250 | globalFlagBlockAgendaItemPaint = 1; | 250 | globalFlagBlockAgendaItemPaint = 1; |
251 | } | 251 | } |
252 | mMainView->viewStack()->raiseWidget(mCurrentView); | 252 | mMainView->viewStack()->raiseWidget(mCurrentView); |
253 | if ( globalFlagBlockAgenda == 4 ) { | 253 | if ( globalFlagBlockAgenda == 4 ) { |
254 | if ( mCurrentView == mAgendaView ) { | 254 | if ( mCurrentView == mAgendaView ) { |
255 | //globalFlagBlockAgenda =1 ; | 255 | //globalFlagBlockAgenda =1 ; |
256 | if ( KOPrefs::instance()->mSetTimeToDayStartAt ) | 256 | if ( KOPrefs::instance()->mSetTimeToDayStartAt ) |
257 | mAgendaView->setStartHour( KOPrefs::instance()->mDayBegins ); | 257 | mAgendaView->setStartHour( KOPrefs::instance()->mDayBegins ); |
258 | else if ( KOPrefs::instance()->mCenterOnCurrentTime ) | 258 | else if ( KOPrefs::instance()->mCenterOnCurrentTime ) |
259 | mAgendaView->setStartHour( QTime::currentTime ().hour() ); | 259 | mAgendaView->setStartHour( QTime::currentTime ().hour() ); |
260 | qApp->processEvents(); | 260 | qApp->processEvents(); |
261 | //qDebug("qApp->processEvents() "); | 261 | //qDebug("qApp->processEvents() "); |
262 | globalFlagBlockAgenda = 0; | 262 | globalFlagBlockAgenda = 0; |
263 | mAgendaView->repaintAgenda(); | 263 | mAgendaView->repaintAgenda(); |
264 | 264 | ||
265 | } | 265 | } |
266 | globalFlagBlockAgenda = 0; | 266 | globalFlagBlockAgenda = 0; |
267 | } | 267 | } |
268 | emit signalAgendaView( mCurrentView == mAgendaView ); | 268 | emit signalAgendaView( mCurrentView == mAgendaView ); |
269 | //qDebug("raiseCurrentView ende "); | 269 | //qDebug("raiseCurrentView ende "); |
270 | 270 | ||
271 | } | 271 | } |
272 | 272 | ||
273 | void KOViewManager::updateView() | 273 | void KOViewManager::updateView() |
274 | { | 274 | { |
275 | // qDebug("KOViewManager::updateView() "); | 275 | // qDebug("KOViewManager::updateView() "); |
276 | // if we are updating mTodoView, we get endless recursion | 276 | // if we are updating mTodoView, we get endless recursion |
277 | if ( mTodoView == mCurrentView ) | 277 | if ( mTodoView == mCurrentView ) |
278 | return; | 278 | return; |
279 | if ( mCurrentView ) mCurrentView->updateView(); | 279 | if ( mCurrentView ) mCurrentView->updateView(); |
280 | 280 | ||
281 | } | 281 | } |
282 | 282 | ||
283 | void KOViewManager::updateView(const QDate &start, const QDate &end) | 283 | void KOViewManager::updateView(const QDate &start, const QDate &end) |
284 | { | 284 | { |
285 | // kdDebug() << "KOViewManager::updateView()" << endl; | 285 | // kdDebug() << "KOViewManager::updateView()" << endl; |
286 | 286 | ||
287 | if (mCurrentView) mCurrentView->showDates(start, end); | 287 | if (mCurrentView) mCurrentView->showDates(start, end); |
288 | 288 | ||
289 | if (mTodoView && mTodoView == mCurrentView ) mTodoView->updateView(); | 289 | if (mTodoView && mTodoView == mCurrentView ) mTodoView->updateView(); |
290 | } | 290 | } |
291 | 291 | ||
292 | 292 | ||
293 | void KOViewManager::updateWNview() | 293 | void KOViewManager::updateWNview() |
294 | { | 294 | { |
295 | if ( mCurrentView == mWhatsNextView && mWhatsNextView ) | 295 | if ( mCurrentView == mWhatsNextView && mWhatsNextView ) |
296 | mWhatsNextView->updateView(); | 296 | mWhatsNextView->updateView(); |
297 | 297 | ||
298 | } | 298 | } |
299 | void KOViewManager::showWhatsNextView() | 299 | void KOViewManager::showWhatsNextView() |
300 | { | 300 | { |
301 | if (!mWhatsNextView) { | 301 | if (!mWhatsNextView) { |
302 | mWhatsNextView = new KOWhatsNextView(mMainView->calendar(),mMainView->viewStack(), | 302 | mWhatsNextView = new KOWhatsNextView(mMainView->calendar(),mMainView->viewStack(), |
303 | "KOViewManager::WhatsNextView"); | 303 | "KOViewManager::WhatsNextView"); |
304 | mWhatsNextView->setEventViewer( mMainView->getEventViewerDialog()); | 304 | mWhatsNextView->setEventViewer( mMainView->getEventViewerDialog()); |
305 | connect(mMainView, SIGNAL(configChanged()), mWhatsNextView, SLOT(updateConfig())); | 305 | connect(mMainView, SIGNAL(configChanged()), mWhatsNextView, SLOT(updateConfig())); |
306 | addView(mWhatsNextView); | 306 | addView(mWhatsNextView); |
307 | connect(this, SIGNAL( printWNV() ), | 307 | connect(this, SIGNAL( printWNV() ), |
308 | mWhatsNextView, SLOT( printMe() ) ); | 308 | mWhatsNextView, SLOT( printMe() ) ); |
309 | } | 309 | } |
310 | globalFlagBlockAgenda = 1; | 310 | globalFlagBlockAgenda = 1; |
311 | showView(mWhatsNextView, true ); | 311 | showView(mWhatsNextView, true ); |
312 | //mWhatsNextView->updateView(); | 312 | //mWhatsNextView->updateView(); |
313 | 313 | ||
314 | } | 314 | } |
315 | 315 | ||
316 | void KOViewManager::showListView() | 316 | void KOViewManager::showListView() |
317 | { | 317 | { |
318 | if (!mListView) { | 318 | if (!mListView) { |
319 | mListView = new KOListView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::ListView"); | 319 | mListView = new KOListView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::ListView"); |
320 | addView(mListView); | 320 | addView(mListView); |
321 | 321 | ||
322 | connect(mListView, SIGNAL(showIncidenceSignal(Incidence *)), | 322 | connect(mListView, SIGNAL(showIncidenceSignal(Incidence *)), |
323 | mMainView, SLOT(showIncidence(Incidence *))); | 323 | mMainView, SLOT(showIncidence(Incidence *))); |
324 | connect(mListView, SIGNAL(editIncidenceSignal(Incidence *)), | 324 | connect(mListView, SIGNAL(editIncidenceSignal(Incidence *)), |
325 | mMainView, SLOT(editIncidence(Incidence *))); | 325 | mMainView, SLOT(editIncidence(Incidence *))); |
326 | connect(mListView, SIGNAL(deleteIncidenceSignal(Incidence *)), | 326 | connect(mListView, SIGNAL(deleteIncidenceSignal(Incidence *)), |
327 | mMainView, SLOT(deleteIncidence(Incidence *))); | 327 | mMainView, SLOT(deleteIncidence(Incidence *))); |
328 | connect( mListView, SIGNAL( incidenceSelected( Incidence * ) ), | 328 | connect( mListView, SIGNAL( incidenceSelected( Incidence * ) ), |
329 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 329 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
330 | connect( mListView, SIGNAL( signalNewEvent() ), | 330 | connect( mListView, SIGNAL( signalNewEvent() ), |
331 | mMainView, SLOT( newEvent() ) ); | 331 | mMainView, SLOT( newEvent() ) ); |
332 | connect(mMainView, SIGNAL(configChanged()), mListView, SLOT(updateConfig())); | 332 | connect(mMainView, SIGNAL(configChanged()), mListView, SLOT(updateConfig())); |
333 | connect( mListView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), | 333 | connect( mListView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), |
334 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); | 334 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); |
335 | connect( mListView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), | 335 | connect( mListView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), |
336 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); | 336 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); |
337 | connect( mListView, SIGNAL( moveIncidenceSignal( Incidence * ) ), | 337 | connect( mListView, SIGNAL( moveIncidenceSignal( Incidence * ) ), |
338 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); | 338 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); |
339 | connect( mListView, SIGNAL( beamIncidenceSignal( Incidence * ) ), | 339 | connect( mListView, SIGNAL( beamIncidenceSignal( Incidence * ) ), |
340 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); | 340 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); |
341 | } | 341 | } |
342 | // bool temp = mFlagShowNextxDays; | 342 | // bool temp = mFlagShowNextxDays; |
343 | //globalFlagBlockPainting = true; | 343 | //globalFlagBlockPainting = true; |
344 | globalFlagBlockAgenda = 1; | 344 | globalFlagBlockAgenda = 1; |
345 | if ( KOPrefs::instance()->mListViewMonthTimespan ) { | 345 | if ( KOPrefs::instance()->mListViewMonthTimespan ) { |
346 | mMainView->setBlockShowDates( true ); | 346 | mMainView->setBlockShowDates( true ); |
347 | mMainView->dateNavigator()->selectMonth(); | 347 | mMainView->dateNavigator()->selectMonth(); |
348 | mMainView->setBlockShowDates( false ); | 348 | mMainView->setBlockShowDates( false ); |
349 | } | 349 | } |
350 | showView(mListView, KOPrefs::instance()->mFullViewTodo); | 350 | showView(mListView, KOPrefs::instance()->mFullViewTodo); |
351 | //mFlagShowNextxDays = temp; | 351 | //mFlagShowNextxDays = temp; |
352 | } | 352 | } |
353 | 353 | ||
354 | void KOViewManager::showAgendaView( bool fullScreen ) | 354 | void KOViewManager::showAgendaView( bool fullScreen ) |
355 | { | 355 | { |
356 | 356 | ||
357 | mMainView->dialogManager()->hideSearchDialog(); | 357 | mMainView->dialogManager()->hideSearchDialog(); |
358 | // qDebug("KOViewManager::showAgendaView "); | 358 | // qDebug("KOViewManager::showAgendaView "); |
359 | bool full; | 359 | bool full; |
360 | full = fullScreen; | 360 | full = fullScreen; |
361 | if (!mAgendaView) { | 361 | if (!mAgendaView) { |
362 | full = false; | 362 | full = false; |
363 | mAgendaView = new KOAgendaView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::AgendaView"); | 363 | mAgendaView = new KOAgendaView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::AgendaView"); |
364 | addView(mAgendaView); | 364 | addView(mAgendaView); |
365 | #ifndef DESKTOP_VERSION | 365 | #ifndef DESKTOP_VERSION |
366 | QPEApplication::setStylusOperation( mAgendaView, QPEApplication::RightOnHold ); | 366 | QPEApplication::setStylusOperation( mAgendaView, QPEApplication::RightOnHold ); |
367 | #endif | 367 | #endif |
368 | connect( mAgendaView, SIGNAL( incidenceChanged(Incidence *, int )), | 368 | connect( mAgendaView, SIGNAL( incidenceChanged(Incidence *, int )), |
369 | mMainView, SLOT( changeIncidenceDisplay( Incidence *, int ) )); | 369 | mMainView, SLOT( changeIncidenceDisplay( Incidence *, int ) )); |
370 | 370 | ||
371 | // SIGNALS/SLOTS FOR DAY/WEEK VIEW | 371 | // SIGNALS/SLOTS FOR DAY/WEEK VIEW |
372 | 372 | ||
373 | connect(mAgendaView,SIGNAL(showDateView( int, QDate )),SLOT(showDateView( int, QDate ))); | 373 | connect(mAgendaView,SIGNAL(showDateView( int, QDate )),SLOT(showDateView( int, QDate ))); |
374 | 374 | ||
375 | connect(mAgendaView,SIGNAL(newTodoSignal(QDateTime,bool)), | 375 | connect(mAgendaView,SIGNAL(newTodoSignal(QDateTime,bool)), |
376 | mMainView, SLOT(newTodoDateTime(QDateTime,bool))); | 376 | mMainView, SLOT(newTodoDateTime(QDateTime,bool))); |
377 | connect(mAgendaView,SIGNAL(newEventSignal(QDateTime)), | 377 | connect(mAgendaView,SIGNAL(newEventSignal(QDateTime)), |
378 | mMainView, SLOT(newEvent(QDateTime))); | 378 | mMainView, SLOT(newEvent(QDateTime))); |
379 | connect(mAgendaView,SIGNAL(newEventSignal(QDateTime,QDateTime)), | 379 | connect(mAgendaView,SIGNAL(newEventSignal(QDateTime,QDateTime)), |
380 | mMainView, SLOT(newEvent(QDateTime,QDateTime))); | 380 | mMainView, SLOT(newEvent(QDateTime,QDateTime))); |
381 | connect(mAgendaView,SIGNAL(newEventSignal(QDate)), | 381 | connect(mAgendaView,SIGNAL(newEventSignal(QDate)), |
382 | mMainView, SLOT(newEvent(QDate))); | 382 | mMainView, SLOT(newEvent(QDate))); |
383 | 383 | ||
384 | connect(mAgendaView, SIGNAL(editIncidenceSignal(Incidence *)), | 384 | connect(mAgendaView, SIGNAL(editIncidenceSignal(Incidence *)), |
385 | mMainView, SLOT(editIncidence(Incidence *))); | 385 | mMainView, SLOT(editIncidence(Incidence *))); |
386 | connect(mAgendaView, SIGNAL(showIncidenceSignal(Incidence *)), | 386 | connect(mAgendaView, SIGNAL(showIncidenceSignal(Incidence *)), |
387 | mMainView, SLOT(showIncidence(Incidence *))); | 387 | mMainView, SLOT(showIncidence(Incidence *))); |
388 | connect(mAgendaView, SIGNAL(deleteIncidenceSignal(Incidence *)), | 388 | connect(mAgendaView, SIGNAL(deleteIncidenceSignal(Incidence *)), |
389 | mMainView, SLOT(deleteIncidence(Incidence *))); | 389 | mMainView, SLOT(deleteIncidence(Incidence *))); |
390 | 390 | ||
391 | connect( mAgendaView, SIGNAL( incidenceSelected( Incidence * ) ), | 391 | connect( mAgendaView, SIGNAL( incidenceSelected( Incidence * ) ), |
392 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 392 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
393 | 393 | ||
394 | connect(mAgendaView, SIGNAL( toggleExpand() ), | 394 | connect(mAgendaView, SIGNAL( toggleExpand() ), |
395 | mMainView, SLOT( toggleExpand() ) ); | 395 | mMainView, SLOT( toggleExpand() ) ); |
396 | 396 | ||
397 | connect(mMainView, SIGNAL( calendarViewExpanded( bool ) ), | 397 | connect(mMainView, SIGNAL( calendarViewExpanded( bool ) ), |
398 | mAgendaView, SLOT( setExpandedButton( bool ) ) ); | 398 | mAgendaView, SLOT( setExpandedButton( bool ) ) ); |
399 | connect( mAgendaView, SIGNAL( cloneIncidenceSignal(Incidence *) ), | 399 | connect( mAgendaView, SIGNAL( cloneIncidenceSignal(Incidence *) ), |
400 | mMainView, SLOT(cloneIncidence(Incidence *) ) ) ; | 400 | mMainView, SLOT(cloneIncidence(Incidence *) ) ) ; |
401 | connect( mAgendaView, SIGNAL( cancelIncidenceSignal(Incidence *) ), | 401 | connect( mAgendaView, SIGNAL( cancelIncidenceSignal(Incidence *) ), |
402 | mMainView, SLOT(cancelIncidence(Incidence *) ) ) ; | 402 | mMainView, SLOT(cancelIncidence(Incidence *) ) ) ; |
403 | connect(mMainView, SIGNAL(configChanged()), mAgendaView, SLOT(updateConfig())); | 403 | connect(mMainView, SIGNAL(configChanged()), mAgendaView, SLOT(updateConfig())); |
404 | connect( mMainView, SIGNAL( todoModified( Todo *, int )), mAgendaView, | 404 | connect( mMainView, SIGNAL( todoModified( Todo *, int )), mAgendaView, |
405 | SLOT( updateTodo( Todo *, int ) ) ); | 405 | SLOT( updateTodo( Todo *, int ) ) ); |
406 | connect( mAgendaView,SIGNAL( todoMoved( Todo *, int )), | 406 | connect( mAgendaView,SIGNAL( todoMoved( Todo *, int )), |
407 | mMainView, SIGNAL( todoModified( Todo *, int ))); | 407 | mMainView, SIGNAL( todoModified( Todo *, int ))); |
408 | connect( mAgendaView, SIGNAL( moveIncidenceSignal( Incidence * ) ), | 408 | connect( mAgendaView, SIGNAL( moveIncidenceSignal( Incidence * ) ), |
409 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); | 409 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); |
410 | connect( mAgendaView, SIGNAL( beamIncidenceSignal( Incidence * ) ), | 410 | connect( mAgendaView, SIGNAL( beamIncidenceSignal( Incidence * ) ), |
411 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); | 411 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); |
412 | connect( mAgendaView, SIGNAL( selectWeekNum( int ) ), | 412 | connect( mAgendaView, SIGNAL( selectWeekNum( int ) ), |
413 | mMainView->dateNavigator(), SLOT ( selectWeek( int ) ) ); | 413 | mMainView->dateNavigator(), SLOT ( selectWeek( int ) ) ); |
414 | mAgendaView->readSettings(); | 414 | mAgendaView->readSettings(); |
415 | mAgendaView->updateConfig(); | 415 | mAgendaView->updateConfig(); |
416 | } | 416 | } |
417 | 417 | ||
418 | showView( mAgendaView, full); | 418 | showView( mAgendaView, full); |
419 | 419 | ||
420 | } | 420 | } |
421 | 421 | ||
422 | void KOViewManager::showDayView() | 422 | void KOViewManager::showDayView() |
423 | { | 423 | { |
424 | mFlagShowNextxDays = false; | 424 | mFlagShowNextxDays = false; |
425 | globalFlagBlockLabel = 1; | 425 | globalFlagBlockLabel = 1; |
426 | globalFlagBlockAgenda = 1; | 426 | globalFlagBlockAgenda = 1; |
427 | if ( mCurrentAgendaView != 1 ) | 427 | if ( mCurrentAgendaView != 1 ) |
428 | mCurrentAgendaView = -1; | 428 | mCurrentAgendaView = -1; |
429 | showAgendaView(); | 429 | showAgendaView(); |
430 | qApp->processEvents(); | 430 | qApp->processEvents(); |
431 | globalFlagBlockAgenda = 2; | 431 | globalFlagBlockAgenda = 2; |
432 | globalFlagBlockLabel = 0; | 432 | globalFlagBlockLabel = 0; |
433 | mMainView->dateNavigator()->selectDates( 1 ); | 433 | mMainView->dateNavigator()->selectDates( 1 ); |
434 | mCurrentAgendaView = 1 ; | 434 | mCurrentAgendaView = 1 ; |
435 | 435 | ||
436 | } | 436 | } |
437 | 437 | ||
438 | void KOViewManager::showWorkWeekView() | 438 | void KOViewManager::showWorkWeekView() |
439 | { | 439 | { |
440 | mFlagShowNextxDays = false; | 440 | mFlagShowNextxDays = false; |
441 | globalFlagBlockAgenda = 1; | 441 | globalFlagBlockAgenda = 1; |
442 | globalFlagBlockLabel = 1; | 442 | globalFlagBlockLabel = 1; |
443 | if ( mCurrentAgendaView != 5 ) | 443 | if ( mCurrentAgendaView != 5 ) |
444 | mCurrentAgendaView = -1; | 444 | mCurrentAgendaView = -1; |
445 | showAgendaView(); | 445 | showAgendaView(); |
446 | qApp->processEvents(); | 446 | qApp->processEvents(); |
447 | globalFlagBlockAgenda = 2; | 447 | globalFlagBlockAgenda = 2; |
448 | globalFlagBlockLabel = 0; | 448 | globalFlagBlockLabel = 0; |
449 | mMainView->dateNavigator()->selectWorkWeek(); | 449 | mMainView->dateNavigator()->selectWorkWeek(); |
450 | mCurrentAgendaView = 5 ; | 450 | mCurrentAgendaView = 5 ; |
451 | 451 | ||
452 | } | 452 | } |
453 | 453 | ||
454 | void KOViewManager::showWeekView() | 454 | void KOViewManager::showWeekView() |
455 | { | 455 | { |
456 | /* | 456 | /* |
457 | globalFlagBlockAgenda = 2; | 457 | globalFlagBlockAgenda = 2; |
458 | qDebug("4globalFlagBlockAgenda = 2; "); | 458 | qDebug("4globalFlagBlockAgenda = 2; "); |
459 | //globalFlagBlockPainting = true; | 459 | //globalFlagBlockPainting = true; |
460 | mMainView->dateNavigator()->selectWeek(); | 460 | mMainView->dateNavigator()->selectWeek(); |
461 | showAgendaView(); | 461 | showAgendaView(); |
462 | */ | 462 | */ |
463 | 463 | ||
464 | 464 | ||
465 | mFlagShowNextxDays = false; | 465 | mFlagShowNextxDays = false; |
466 | globalFlagBlockAgenda = 1; | 466 | globalFlagBlockAgenda = 1; |
467 | globalFlagBlockLabel = 1; | 467 | globalFlagBlockLabel = 1; |
468 | if ( mCurrentAgendaView != 7 ) | 468 | if ( mCurrentAgendaView != 7 ) |
469 | mCurrentAgendaView = -1; | 469 | mCurrentAgendaView = -1; |
470 | showAgendaView(); | 470 | showAgendaView(); |
471 | qApp->processEvents(); | 471 | qApp->processEvents(); |
472 | globalFlagBlockAgenda = 2; | 472 | globalFlagBlockAgenda = 2; |
473 | globalFlagBlockLabel = 0; | 473 | globalFlagBlockLabel = 0; |
474 | mMainView->dateNavigator()->selectWeek(); | 474 | mMainView->dateNavigator()->selectWeek(); |
475 | mCurrentAgendaView = 7 ; | 475 | mCurrentAgendaView = 7 ; |
476 | } | 476 | } |
477 | 477 | ||
478 | void KOViewManager::showNextXView() | 478 | void KOViewManager::showNextXView() |
479 | { | 479 | { |
480 | 480 | ||
481 | globalFlagBlockAgenda = 1; | 481 | globalFlagBlockAgenda = 1; |
482 | if ( mCurrentAgendaView != 3 ) | 482 | if ( mCurrentAgendaView != 3 ) |
483 | mCurrentAgendaView = -1; | 483 | mCurrentAgendaView = -1; |
484 | showAgendaView(KOPrefs::instance()->mFullViewMonth); | 484 | showAgendaView(KOPrefs::instance()->mFullViewMonth); |
485 | globalFlagBlockAgenda = 2; | 485 | globalFlagBlockAgenda = 2; |
486 | mMainView->dateNavigator()->selectDates( QDate::currentDate(), | 486 | mMainView->dateNavigator()->selectDates( QDate::currentDate(), |
487 | KOPrefs::instance()->mNextXDays ); | 487 | KOPrefs::instance()->mNextXDays ); |
488 | mFlagShowNextxDays = true; | 488 | mFlagShowNextxDays = true; |
489 | mCurrentAgendaView = 3 ; | 489 | mCurrentAgendaView = 3 ; |
490 | } | 490 | } |
491 | bool KOViewManager::showsNextDays() | 491 | bool KOViewManager::showsNextDays() |
492 | { | 492 | { |
493 | return mFlagShowNextxDays; | 493 | return mFlagShowNextxDays; |
494 | } | 494 | } |
495 | void KOViewManager::createMonthView() | 495 | void KOViewManager::createMonthView() |
496 | { | 496 | { |
497 | if (!mMonthView) { | 497 | if (!mMonthView) { |
498 | mMonthView = new KOMonthView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::MonthView"); | 498 | mMonthView = new KOMonthView(mMainView->calendar(), mMainView->viewStack(), "KOViewManager::MonthView"); |
499 | 499 | ||
500 | addView(mMonthView); | 500 | addView(mMonthView); |
501 | // mMonthView->show(); | 501 | // mMonthView->show(); |
502 | // SIGNALS/SLOTS FOR MONTH VIEW | 502 | // SIGNALS/SLOTS FOR MONTH VIEW |
503 | connect(mMonthView, SIGNAL(newEventSignal(QDateTime)), | 503 | connect(mMonthView, SIGNAL(newEventSignal(QDateTime)), |
504 | mMainView, SLOT(newEvent(QDateTime))); | 504 | mMainView, SLOT(newEvent(QDateTime))); |
505 | 505 | ||
506 | connect(mMonthView, SIGNAL(showIncidenceSignal(Incidence *)), | 506 | connect(mMonthView, SIGNAL(showIncidenceSignal(Incidence *)), |
507 | mMainView, SLOT(showIncidence(Incidence *))); | 507 | mMainView, SLOT(showIncidence(Incidence *))); |
508 | connect(mMonthView, SIGNAL(editIncidenceSignal(Incidence *)), | 508 | connect(mMonthView, SIGNAL(editIncidenceSignal(Incidence *)), |
509 | mMainView, SLOT(editIncidence(Incidence *))); | 509 | mMainView, SLOT(editIncidence(Incidence *))); |
510 | connect(mMonthView, SIGNAL(deleteIncidenceSignal(Incidence *)), | 510 | connect(mMonthView, SIGNAL(deleteIncidenceSignal(Incidence *)), |
511 | mMainView, SLOT(deleteIncidence(Incidence *))); | 511 | mMainView, SLOT(deleteIncidence(Incidence *))); |
512 | 512 | ||
513 | connect( mMonthView, SIGNAL( incidenceSelected( Incidence * ) ), | 513 | connect( mMonthView, SIGNAL( incidenceSelected( Incidence * ) ), |
514 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 514 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
515 | connect( mMonthView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), | 515 | connect( mMonthView, SIGNAL( cloneIncidenceSignal( Incidence * ) ), |
516 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); | 516 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); |
517 | connect( mMonthView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), | 517 | connect( mMonthView, SIGNAL( cancelIncidenceSignal( Incidence * ) ), |
518 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); | 518 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); |
519 | 519 | ||
520 | connect( mMonthView, SIGNAL( moveIncidenceSignal( Incidence * ) ), | 520 | connect( mMonthView, SIGNAL( moveIncidenceSignal( Incidence * ) ), |
521 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); | 521 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); |
522 | connect( mMonthView, SIGNAL( beamIncidenceSignal( Incidence * ) ), | 522 | connect( mMonthView, SIGNAL( beamIncidenceSignal( Incidence * ) ), |
523 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); | 523 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); |
524 | connect( mMonthView, SIGNAL( selectWeekNum( int ) ), | 524 | connect( mMonthView, SIGNAL( selectWeekNum( int ) ), |
525 | mMainView->dateNavigator(), SLOT ( selectWeekFromMonthView( int ) ) ); | 525 | mMainView->dateNavigator(), SLOT ( selectWeekFromMonthView( int ) ) ); |
526 | connect( mMonthView, SIGNAL( selectMonth() ), | 526 | connect( mMonthView, SIGNAL( selectMonth() ), |
527 | mMainView->dateNavigator(), SLOT ( selectMonthFromMonthview() ) ); | 527 | mMainView->dateNavigator(), SLOT ( selectMonthFromMonthview() ) ); |
528 | connect( mMonthView, SIGNAL( showDaySignal( QDate ) ), | 528 | connect( mMonthView, SIGNAL( showDaySignal( QDate ) ), |
529 | mMainView, SLOT ( showDay( QDate ) ) ); | 529 | mMainView, SLOT ( showDay( QDate ) ) ); |
530 | connect(mMainView, SIGNAL(configChanged()), mMonthView, SLOT(updateConfig())); | 530 | connect(mMainView, SIGNAL(configChanged()), mMonthView, SLOT(updateConfig())); |
531 | connect( mMonthView, SIGNAL(nextMonth() ), | 531 | connect( mMonthView, SIGNAL(nextMonth() ), |
532 | mMonthView->navigatorBar(), SIGNAL(goNextMonth() ) ); | 532 | mMonthView->navigatorBar(), SIGNAL(goNextMonth() ) ); |
533 | connect( mMonthView, SIGNAL(prevMonth() ), | 533 | connect( mMonthView, SIGNAL(prevMonth() ), |
534 | mMonthView->navigatorBar(), SIGNAL(goPrevMonth() ) ); | 534 | mMonthView->navigatorBar(), SIGNAL(goPrevMonth() ) ); |
535 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevYear() ), | 535 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevYear() ), |
536 | mMainView->dateNavigator(), SLOT( selectPreviousYear() ) ); | 536 | mMainView->dateNavigator(), SLOT( selectPreviousYear() ) ); |
537 | connect( mMonthView->navigatorBar(), SIGNAL( goNextYear() ), | 537 | connect( mMonthView->navigatorBar(), SIGNAL( goNextYear() ), |
538 | mMainView->dateNavigator(), SLOT( selectNextYear() ) ); | 538 | mMainView->dateNavigator(), SLOT( selectNextYear() ) ); |
539 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevMonth() ), | 539 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevMonth() ), |
540 | mMainView->dateNavigator(), SLOT( selectPreviousMonth() ) ); | 540 | mMainView->dateNavigator(), SLOT( selectPreviousMonth() ) ); |
541 | connect( mMonthView->navigatorBar(), SIGNAL( goNextMonth() ), | 541 | connect( mMonthView->navigatorBar(), SIGNAL( goNextMonth() ), |
542 | mMainView->dateNavigator(), SLOT( selectNextMonth() ) ); | 542 | mMainView->dateNavigator(), SLOT( selectNextMonth() ) ); |
543 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevWeek() ), | 543 | connect( mMonthView->navigatorBar(), SIGNAL( goPrevWeek() ), |
544 | mMainView->dateNavigator(), SLOT( selectPreviousWeek() ) ); | 544 | mMainView->dateNavigator(), SLOT( selectPreviousWeek() ) ); |
545 | connect( mMonthView->navigatorBar(), SIGNAL( goNextWeek() ), | 545 | connect( mMonthView->navigatorBar(), SIGNAL( goNextWeek() ), |
546 | mMainView->dateNavigator(), SLOT( selectNextWeek() ) ); | 546 | mMainView->dateNavigator(), SLOT( selectNextWeek() ) ); |
547 | 547 | ||
548 | connect( mMainView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), | 548 | connect( mMainView->dateNavigator(), SIGNAL( datesSelected( const KCal::DateList & ) ), |
549 | mMonthView->navigatorBar(), SLOT( selectDates( const KCal::DateList & ) ) ); | 549 | mMonthView->navigatorBar(), SLOT( selectDates( const KCal::DateList & ) ) ); |
550 | 550 | ||
551 | 551 | ||
552 | connect( mMonthView->navigatorBar(), SIGNAL( monthSelected ( int ) ), | 552 | connect( mMonthView->navigatorBar(), SIGNAL( monthSelected ( int ) ), |
553 | mMainView->dateNavigator(), SLOT( slotMonthSelect( int ) ) ); | 553 | mMainView->dateNavigator(), SLOT( slotMonthSelect( int ) ) ); |
554 | 554 | ||
555 | } | 555 | } |
556 | } | 556 | } |
557 | void KOViewManager::showMonthViewWeek() | 557 | void KOViewManager::showMonthViewWeek() |
558 | { | 558 | { |
559 | createMonthView(); | 559 | createMonthView(); |
560 | globalFlagBlockAgenda = 1; | ||
560 | bool full = true; | 561 | bool full = true; |
561 | if ( mCurrentView == mMonthView) | 562 | if ( mCurrentView == mMonthView) |
562 | full = mMainView->leftFrame()->isVisible(); | 563 | full = mMainView->leftFrame()->isVisible(); |
563 | if ( !KOPrefs::instance()->mMonthViewWeek ) { | 564 | if ( !KOPrefs::instance()->mMonthViewWeek ) { |
564 | mMonthView->switchView(); | 565 | mMonthView->switchView(); |
565 | if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) | 566 | if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) |
566 | full = false; | 567 | full = false; |
567 | else | 568 | else |
568 | full = true; | 569 | full = true; |
569 | } | 570 | } |
570 | mMainView->dateNavigator()->selectWeek(); | 571 | mMainView->dateNavigator()->selectWeek(); |
571 | showView(mMonthView, full ); | 572 | showView(mMonthView, full ); |
572 | } | 573 | } |
573 | 574 | ||
574 | void KOViewManager::showMonthView() | 575 | void KOViewManager::showMonthView() |
575 | { | 576 | { |
576 | 577 | ||
577 | createMonthView(); | 578 | createMonthView(); |
578 | globalFlagBlockAgenda = 1; | 579 | globalFlagBlockAgenda = 1; |
579 | //mFlagShowNextxDays = false; | 580 | //mFlagShowNextxDays = false; |
580 | bool full = true; | 581 | bool full = true; |
581 | if ( mCurrentView == mMonthView) | 582 | if ( mCurrentView == mMonthView) |
582 | full = mMainView->leftFrame()->isVisible(); | 583 | full = mMainView->leftFrame()->isVisible(); |
583 | // if(mMonthView == mCurrentView) return; | 584 | // if(mMonthView == mCurrentView) return; |
584 | if ( KOPrefs::instance()->mMonthViewWeek ) { | 585 | if ( KOPrefs::instance()->mMonthViewWeek ) { |
585 | mMonthView->switchView(); | 586 | mMonthView->switchView(); |
586 | if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) | 587 | if ( KOPrefs::instance()->mViewChangeHoldNonFullscreen && mMainView->leftFrame()->isVisible() ) |
587 | full = false; | 588 | full = false; |
588 | else | 589 | else |
589 | full = true; | 590 | full = true; |
590 | } | 591 | } |
591 | mMainView->dateNavigator()->selectMonth(); | 592 | mMainView->dateNavigator()->selectMonth(); |
592 | 593 | ||
593 | showView(mMonthView, full ); | 594 | showView(mMonthView, full ); |
594 | 595 | ||
595 | } | 596 | } |
596 | 597 | ||
597 | void KOViewManager::showTodoView() | 598 | void KOViewManager::showTodoView() |
598 | { | 599 | { |
599 | //mFlagShowNextxDays = false; | 600 | //mFlagShowNextxDays = false; |
600 | if ( !mTodoView ) { | 601 | if ( !mTodoView ) { |
601 | mTodoView = new KOTodoView( mMainView->calendar(), mMainView->viewStack(), | 602 | mTodoView = new KOTodoView( mMainView->calendar(), mMainView->viewStack(), |
602 | "KOViewManager::TodoView" ); | 603 | "KOViewManager::TodoView" ); |
603 | 604 | ||
604 | addView( mTodoView ); | 605 | addView( mTodoView ); |
605 | // QPEApplication::setStylusOperation( mTodoView, QPEApplication::RightOnHold ); | 606 | // QPEApplication::setStylusOperation( mTodoView, QPEApplication::RightOnHold ); |
606 | 607 | ||
607 | // SIGNALS/SLOTS FOR TODO VIEW | 608 | // SIGNALS/SLOTS FOR TODO VIEW |
608 | connect( mTodoView, SIGNAL( newTodoSignal() ), | 609 | connect( mTodoView, SIGNAL( newTodoSignal() ), |
609 | mMainView, SLOT( newTodo() ) ); | 610 | mMainView, SLOT( newTodo() ) ); |
610 | connect( mTodoView, SIGNAL( newSubTodoSignal( Todo * ) ), | 611 | connect( mTodoView, SIGNAL( newSubTodoSignal( Todo * ) ), |
611 | mMainView, SLOT( newSubTodo( Todo *) ) ); | 612 | mMainView, SLOT( newSubTodo( Todo *) ) ); |
612 | connect( mTodoView, SIGNAL( showTodoSignal( Todo *) ), | 613 | connect( mTodoView, SIGNAL( showTodoSignal( Todo *) ), |
613 | mMainView, SLOT( showTodo( Todo * ) ) ); | 614 | mMainView, SLOT( showTodo( Todo * ) ) ); |
614 | connect( mTodoView, SIGNAL( editTodoSignal( Todo * ) ), | 615 | connect( mTodoView, SIGNAL( editTodoSignal( Todo * ) ), |
615 | mMainView, SLOT( editTodo( Todo * ) ) ); | 616 | mMainView, SLOT( editTodo( Todo * ) ) ); |
616 | connect( mTodoView, SIGNAL( deleteTodoSignal( Todo * ) ), | 617 | connect( mTodoView, SIGNAL( deleteTodoSignal( Todo * ) ), |
617 | mMainView, SLOT( deleteTodo( Todo * ) ) ); | 618 | mMainView, SLOT( deleteTodo( Todo * ) ) ); |
618 | connect( mTodoView, SIGNAL( purgeCompletedSignal() ), | 619 | connect( mTodoView, SIGNAL( purgeCompletedSignal() ), |
619 | mMainView, SLOT( purgeCompleted() ) ); | 620 | mMainView, SLOT( purgeCompleted() ) ); |
620 | 621 | ||
621 | connect( mTodoView, SIGNAL( incidenceSelected( Incidence * ) ), | 622 | connect( mTodoView, SIGNAL( incidenceSelected( Incidence * ) ), |
622 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); | 623 | mMainView, SLOT( processMainViewSelection( Incidence * ) ) ); |
623 | 624 | ||
624 | connect( mMainView, SIGNAL( configChanged() ), mTodoView, | 625 | connect( mMainView, SIGNAL( configChanged() ), mTodoView, |
625 | SLOT( updateConfig() ) ); | 626 | SLOT( updateConfig() ) ); |
626 | connect( mMainView, SIGNAL( todoModified( Todo *, int )), mTodoView, | 627 | connect( mMainView, SIGNAL( todoModified( Todo *, int )), mTodoView, |
627 | SLOT( updateTodo( Todo *, int ) ) ); | 628 | SLOT( updateTodo( Todo *, int ) ) ); |
628 | connect( mTodoView, SIGNAL( todoModifiedSignal( Todo *, int ) ), | 629 | connect( mTodoView, SIGNAL( todoModifiedSignal( Todo *, int ) ), |
629 | mMainView, SIGNAL ( todoModified( Todo *, int ) ) ); | 630 | mMainView, SIGNAL ( todoModified( Todo *, int ) ) ); |
630 | connect( mTodoView, SIGNAL( cloneTodoSignal( Incidence * ) ), | 631 | connect( mTodoView, SIGNAL( cloneTodoSignal( Incidence * ) ), |
631 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); | 632 | mMainView, SLOT ( cloneIncidence( Incidence * ) ) ); |
632 | connect( mTodoView, SIGNAL( cancelTodoSignal( Incidence * ) ), | 633 | connect( mTodoView, SIGNAL( cancelTodoSignal( Incidence * ) ), |
633 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); | 634 | mMainView, SLOT ( cancelIncidence( Incidence * ) ) ); |
634 | connect( mTodoView, SIGNAL( unparentTodoSignal( Todo * ) ), | 635 | connect( mTodoView, SIGNAL( unparentTodoSignal( Todo * ) ), |
635 | mMainView, SLOT ( todo_unsub( Todo * ) ) ); | 636 | mMainView, SLOT ( todo_unsub( Todo * ) ) ); |
636 | connect( mTodoView, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), | 637 | connect( mTodoView, SIGNAL( reparentTodoSignal( Todo *,Todo * ) ), |
637 | mMainView, SLOT ( todo_resub( Todo *, Todo *) ) ); | 638 | mMainView, SLOT ( todo_resub( Todo *, Todo *) ) ); |
638 | connect( mTodoView, SIGNAL( moveTodoSignal( Incidence * ) ), | 639 | connect( mTodoView, SIGNAL( moveTodoSignal( Incidence * ) ), |
639 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); | 640 | mMainView, SLOT ( moveIncidence( Incidence * ) ) ); |
640 | connect( mTodoView, SIGNAL( beamTodoSignal( Incidence * ) ), | 641 | connect( mTodoView, SIGNAL( beamTodoSignal( Incidence * ) ), |
641 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); | 642 | mMainView, SLOT ( beamIncidence( Incidence * ) ) ); |
642 | KConfig *config = KOGlobals::config(); | 643 | KConfig *config = KOGlobals::config(); |
643 | mTodoView->restoreLayout(config,"Todo View"); | 644 | mTodoView->restoreLayout(config,"Todo View"); |
644 | mTodoView->setNavigator( mMainView->dateNavigator() ); | 645 | mTodoView->setNavigator( mMainView->dateNavigator() ); |
645 | } | 646 | } |
646 | 647 | ||
647 | globalFlagBlockAgenda = 1; | 648 | globalFlagBlockAgenda = 1; |
648 | showView( mTodoView, true ); | 649 | showView( mTodoView, true ); |
649 | 650 | ||
650 | } | 651 | } |
651 | 652 | ||
652 | void KOViewManager::showJournalView() | 653 | void KOViewManager::showJournalView() |
653 | { | 654 | { |
654 | //mFlagShowNextxDays = false; | 655 | //mFlagShowNextxDays = false; |
655 | if (!mJournalView) { | 656 | if (!mJournalView) { |
656 | mJournalView = new KOJournalView(mMainView->calendar(),mMainView->viewStack(), | 657 | mJournalView = new KOJournalView(mMainView->calendar(),mMainView->viewStack(), |
657 | "KOViewManager::JournalView"); | 658 | "KOViewManager::JournalView"); |
658 | connect( mMainView, SIGNAL( configChanged() ), mJournalView, | 659 | connect( mMainView, SIGNAL( configChanged() ), mJournalView, |
659 | SLOT( updateConfig() ) ); | 660 | SLOT( updateConfig() ) ); |
660 | connect(mJournalView, SIGNAL(deleteJournal(Journal *) ), mMainView,SLOT(deleteJournal(Journal *)) ); | 661 | connect(mJournalView, SIGNAL(deleteJournal(Journal *) ), mMainView,SLOT(deleteJournal(Journal *)) ); |
661 | addView(mJournalView); | 662 | addView(mJournalView); |
662 | } | 663 | } |
663 | 664 | ||
664 | showView(mJournalView); | 665 | showView(mJournalView); |
665 | mMainView->dateNavigator()->selectDates( 1 ); | 666 | mMainView->dateNavigator()->selectDates( 1 ); |
666 | } | 667 | } |
667 | 668 | ||
668 | void KOViewManager::showTimeSpanView() | 669 | void KOViewManager::showTimeSpanView() |
669 | { | 670 | { |
670 | //mFlagShowNextxDays = false; | 671 | //mFlagShowNextxDays = false; |
671 | if (!mTimeSpanView) { | 672 | if (!mTimeSpanView) { |
672 | mTimeSpanView = new KOTimeSpanView(mMainView->calendar(),mMainView->viewStack(), | 673 | mTimeSpanView = new KOTimeSpanView(mMainView->calendar(),mMainView->viewStack(), |
673 | "KOViewManager::TimeSpanView"); | 674 | "KOViewManager::TimeSpanView"); |
674 | addView(mTimeSpanView); | 675 | addView(mTimeSpanView); |
675 | 676 | ||
676 | mTimeSpanView->readSettings(); | 677 | mTimeSpanView->readSettings(); |
677 | } | 678 | } |
678 | 679 | ||
679 | showView(mTimeSpanView); | 680 | showView(mTimeSpanView); |
680 | } | 681 | } |
681 | 682 | ||
682 | Incidence *KOViewManager::currentSelection() | 683 | Incidence *KOViewManager::currentSelection() |
683 | { | 684 | { |
684 | if (!mCurrentView) return 0; | 685 | if (!mCurrentView) return 0; |
685 | if ( mCurrentView == mListView ) { | 686 | if ( mCurrentView == mListView ) { |
686 | if ( mListView->currentItem() ) | 687 | if ( mListView->currentItem() ) |
687 | return mListView->currentItem(); | 688 | return mListView->currentItem(); |
688 | } | 689 | } |
689 | return mCurrentView->selectedIncidences().first(); | 690 | return mCurrentView->selectedIncidences().first(); |
690 | } | 691 | } |
691 | 692 | ||
692 | QDate KOViewManager::currentSelectionDate() | 693 | QDate KOViewManager::currentSelectionDate() |
693 | { | 694 | { |
694 | QDate qd; | 695 | QDate qd; |
695 | if (mCurrentView) { | 696 | if (mCurrentView) { |
696 | DateList qvl = mCurrentView->selectedDates(); | 697 | DateList qvl = mCurrentView->selectedDates(); |
697 | if (!qvl.isEmpty()) qd = qvl.first(); | 698 | if (!qvl.isEmpty()) qd = qvl.first(); |
698 | } | 699 | } |
699 | return qd; | 700 | return qd; |
700 | } | 701 | } |
701 | 702 | ||
702 | void KOViewManager::addView(KOrg::BaseView *view) | 703 | void KOViewManager::addView(KOrg::BaseView *view) |
703 | { | 704 | { |
704 | #if QT_VERSION >= 0x030000 | 705 | #if QT_VERSION >= 0x030000 |
705 | mMainView->viewStack()->addWidget( view ); | 706 | mMainView->viewStack()->addWidget( view ); |
706 | #else | 707 | #else |
707 | mMainView->viewStack()->addWidget( view, 1 ); | 708 | mMainView->viewStack()->addWidget( view, 1 ); |
708 | #endif | 709 | #endif |
709 | } | 710 | } |
710 | 711 | ||
711 | void KOViewManager::setDocumentId( const QString &id ) | 712 | void KOViewManager::setDocumentId( const QString &id ) |
712 | { | 713 | { |
713 | if (mTodoView) mTodoView->setDocumentId( id ); | 714 | if (mTodoView) mTodoView->setDocumentId( id ); |
714 | } | 715 | } |