summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-02-20 11:14:04 (UTC)
committer zautrix <zautrix>2005-02-20 11:14:04 (UTC)
commitbb74ffa01010ca364e101e05a6b3e090ae363a0e (patch) (unidiff)
tree573f3b5244f064996c9cb4c73cc0ad04816bda9b
parentce9aa88149547443452a2077f5c3832fbea34f63 (diff)
downloadkdepimpi-bb74ffa01010ca364e101e05a6b3e090ae363a0e.zip
kdepimpi-bb74ffa01010ca364e101e05a6b3e090ae363a0e.tar.gz
kdepimpi-bb74ffa01010ca364e101e05a6b3e090ae363a0e.tar.bz2
minor month-weekview fixes
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/WhatsNew.txt3
-rw-r--r--korganizer/komonthview.h2
-rw-r--r--korganizer/koviewmanager.cpp1
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,978 +1,981 @@
1Info about the changes in new versions of KDE-Pim/Pi 1Info about the changes in new versions of KDE-Pim/Pi
2 2
3********** VERSION 2.0.9 ************ 3********** VERSION 2.0.9 ************
4 4
5Made month view icons for multiday events a bit nicer. 5Made month view icons for multiday events a bit nicer.
6Some 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
9Fixed a problem in dependency info in the ipk files for the Zaurus. 12Fixed a problem in dependency info in the ipk files for the Zaurus.
10 13
11Added 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. 14Added 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
13Added a "go today" button to the datepicker. 16Added a "go today" button to the datepicker.
14 17
15Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) 18Added "created" and "last modified" to event/todo viewer (and What'sThis viewer)
16and made it configureable to show these values. 19and made it configureable to show these values.
17 20
18Fixed a problem for events (from external iCal files) that do have a duration but no end date. 21Fixed 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
23Added global application font settings 26Added 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
26Fixed a problem in OM/Pi when trying to login to some IMAP servers 29Fixed 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
29Added recurring todos to KO/Pi. 32Added recurring todos to KO/Pi.
30 33
31 34
32********** VERSION 2.0.6 ************ 35********** VERSION 2.0.6 ************
33 36
34Some bugfixes in the pi-sync mode. 37Some bugfixes in the pi-sync mode.
35Added German translation for pi-sync mode. 38Added German translation for pi-sync mode.
36 39
37KO/Pi: 40KO/Pi:
38Made the todolist using alternate background. 41Made the todolist using alternate background.
39 42
40Other minor fixes in KO/Pi. 43Other minor fixes in KO/Pi.
41 44
42 45
43********** VERSION 2.0.5 ************ 46********** VERSION 2.0.5 ************
44 47
45Bugfixes in KO/Pi. 48Bugfixes in KO/Pi.
46 49
47********** VERSION 2.0.4 ************ 50********** VERSION 2.0.4 ************
48 51
49KO/Pi: 52KO/Pi:
50Fixed problem loading translations for summary/location edit boxes in event/todo editor. 53Fixed problem loading translations for summary/location edit boxes in event/todo editor.
51 54
52Added a general "select week number" to the toolbar. 55Added a general "select week number" to the toolbar.
53 56
54Fixed some small problem of the new features introduced in version 2.0.3. 57Fixed some small problem of the new features introduced in version 2.0.3.
55 58
56Made it possible to specify one specific category as category color, 59Made it possible to specify one specific category as category color,
57if more than one categories are selected. 60if more than one categories are selected.
58 61
59Fixed a bug in saving colors for categories with non-ascii characters. 62Fixed a bug in saving colors for categories with non-ascii characters.
60(Like, e.g. German Umlauts). 63(Like, e.g. German Umlauts).
61Propably you have to set your colors again for those categories. 64Propably 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
66KO/Pi: 69KO/Pi:
67Added feature for changing alarm settings for many items at once: 70Added feature for changing alarm settings for many items at once:
68Open list view (or search dialog), select the desired items and choose in 71Open list view (or search dialog), select the desired items and choose in
69the popup menu: Set alarm for selected... 72the popup menu: Set alarm for selected...
70 73
71Added to the event/todo viewer the option to send an email to 74Added to the event/todo viewer the option to send an email to
72all attendees or all selected (with RSVP) attendees. 75all attendees or all selected (with RSVP) attendees.
73 76
74Made the week-month mode changing in month view faster. 77Made the week-month mode changing in month view faster.
75 78
76Made month view better useable with keyboard. 79Made month view better useable with keyboard.
77Now TAB key jumps to next cell with an event/todo. 80Now TAB key jumps to next cell with an event/todo.
78Scroll in cell with coursor keys, scroll in time (next week) with 81Scroll in cell with coursor keys, scroll in time (next week) with
79Shift/Control + coursorkeys. 82Shift/Control + coursorkeys.
80 83
81Fixed bug that the todo view flat mode was reset after first view update. 84Fixed bug that the todo view flat mode was reset after first view update.
82 85
83If a todo is displayed closed in the todo view, 86If a todo is displayed closed in the todo view,
84it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. 87it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties.
85 88
86Added info about the numbers of years to the caption (title) information about a birthday event. 89Added info about the numbers of years to the caption (title) information about a birthday event.
87 90
88Made completion date in todo editor editable. 91Made completion date in todo editor editable.
89 92
90Added possibility to save/load templates for journals. 93Added 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
95KO/Pi: 98KO/Pi:
96Fixed the layout problem of the day label buttons 99Fixed the layout problem of the day label buttons
97of the agenda view introduced in version 2.0.1. 100of the agenda view introduced in version 2.0.1.
98 101
99Added WhatsThis support for the todo view and the list view. 102Added WhatsThis support for the todo view and the list view.
100 103
101Added a quite useful feature to the montview. 104Added a quite useful feature to the montview.
102Just click on the week numbers on the left. 105Just click on the week numbers on the left.
103And in the top right corner of month view/agenda view 106And in the top right corner of month view/agenda view
104there is now a "week number quick selector". 107there is now a "week number quick selector".
105(Click on the black triangle). 108(Click on the black triangle).
106 109
107Made the quite difficult timezone change in KO/Pi easy. 110Made the quite difficult timezone change in KO/Pi easy.
108 111
109OM/Pi: 112OM/Pi:
110Fixed too small icons on desktop. 113Fixed too small icons on desktop.
111Fixed non visible icons in mainwindow on Z with fastload enabled. 114Fixed non visible icons in mainwindow on Z with fastload enabled.
112Added signature file setting to smtp account config. 115Added signature file setting to smtp account config.
113And the signature can be edited and saved in the edit mail dialog. 116And the signature can be edited and saved in the edit mail dialog.
114That does mean: 117That does mean:
115Simply edit the signature for the selected smtp account in the 118Simply edit the signature for the selected smtp account in the
116edit new mail dialog and press the "save signature" button there. 119edit new mail dialog and press the "save signature" button there.
117Then the signature is saved to the file specified in the smtp account settings. 120Then the signature is saved to the file specified in the smtp account settings.
118If there is no file specified, it is saved automatically to the file 121If there is no file specified, it is saved automatically to the file
119kdepim/apps/kopiemail/<accountname>.sig. 122kdepim/apps/kopiemail/<accountname>.sig.
120 123
121 124
122 125
123********** VERSION 2.0.1 ************ 126********** VERSION 2.0.1 ************
124 127
125Oooops ... I forgot to test on the Zaurus 5500 ... 128Oooops ... I forgot to test on the Zaurus 5500 ...
126 129
127Fixed many problems of new (english) strings (and german translations) 130Fixed many problems of new (english) strings (and german translations)
128introduced in the latest versions, where the text was not fitting on the 131introduced in the latest versions, where the text was not fitting on the
129240x320 display of the Zaurus 5500. 132240x320 display of the Zaurus 5500.
130 133
131KO/Pi: 134KO/Pi:
132Added a popup menu ( press pen and hold to get popup ) to the agenda view 135Added a popup menu ( press pen and hold to get popup ) to the agenda view
133with many useful items (add event/todo, show next week, two weeks, month, journal). 136with many useful items (add event/todo, show next week, two weeks, month, journal).
134 137
135Added items to the todolist popup menu for: 138Added items to the todolist popup menu for:
136Display all opened, all closed or all todos flat. 139Display all opened, all closed or all todos flat.
137The "flat" view makes is possible to sort all todos after ,e.g., prio or date. 140The "flat" view makes is possible to sort all todos after ,e.g., prio or date.
138Made the reparenting of todos on the desktop possible via Drag&Drop. 141Made the reparenting of todos on the desktop possible via Drag&Drop.
139Fixed several bugs in setting the completed datetime for todos. 142Fixed several bugs in setting the completed datetime for todos.
140Added info about completed datetime of todos to the todo viewer. 143Added info about completed datetime of todos to the todo viewer.
141Now displaying a completed todo (with completed datetime set) in the agenda view 144Now displaying a completed todo (with completed datetime set) in the agenda view
142at the time of the completion. Such that now it is possible to see in the agenda view 145at the time of the completion. Such that now it is possible to see in the agenda view
143when what todo was completed. 146when what todo was completed.
144Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. 147Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos.
145Now the behaviour is: 148Now the behaviour is:
146Setting a parent to complete sets all (sub)childs to complete. 149Setting a parent to complete sets all (sub)childs to complete.
147Setting a parent to uncomplete does not change the childs. 150Setting a parent to uncomplete does not change the childs.
148Setting a child to uncomplete sets all parent to uncomplete. 151Setting a child to uncomplete sets all parent to uncomplete.
149Setting a child to complete does not change the parents. 152Setting a child to complete does not change the parents.
150 153
151Smart updating and double buffering of the daymatrix. 154Smart updating and double buffering of the daymatrix.
152Showing holidays in the day matrix. 155Showing holidays in the day matrix.
153Many other small performance updates. 156Many other small performance updates.
154 157
155Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. 158Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode.
156 159
157Now the translation file usertranslation.txt is supposed to be in utf8 format. 160Now the translation file usertranslation.txt is supposed to be in utf8 format.
158If 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. 161If 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
163Stable release 2.0.0! 166Stable release 2.0.0!
164 167
165KO/Pi: 168KO/Pi:
166Fixed problem in edit dialog recreation at startup. 169Fixed problem in edit dialog recreation at startup.
167Made "toggle view*" menu items enabled context sensitive. 170Made "toggle view*" menu items enabled context sensitive.
168Changed agenda size menu to items 1-10. 171Changed agenda size menu to items 1-10.
169Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. 172Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down.
170Usebility enhancements in the KO/Pi menus. 173Usebility enhancements in the KO/Pi menus.
171Birthday import now adds year to summary. 174Birthday import now adds year to summary.
172What's Next view shows age in years for birthday. 175What's Next view shows age in years for birthday.
173 176
174OM/Pi: 177OM/Pi:
175Added three info lines to display subject, from and to of selected mails. 178Added three info lines to display subject, from and to of selected mails.
176 179
177KA/Pi: 180KA/Pi:
178Fixed jump bar behaviour on Zaurus. 181Fixed jump bar behaviour on Zaurus.
179Now KA/Pi search field supports searching for a range of starting characters. 182Now KA/Pi search field supports searching for a range of starting characters.
180E.g. to search for all contact beginning with b to n, type 183E.g. to search for all contact beginning with b to n, type
181b-n 184b-n
182in the search field. 185in the search field.
183 186
184********** VERSION 1.9.20 ************ 187********** VERSION 1.9.20 ************
185 188
186KO/Pi: 189KO/Pi:
187Added for the "dislplay one day" agenda mode 190Added for the "dislplay one day" agenda mode
188info in the caption and in the day lables: 191info in the caption and in the day lables:
189Now it is displayed, if the selected day is from "day before yesterday" 192Now it is displayed, if the selected day is from "day before yesterday"
190to "day after tomorrow". 193to "day after tomorrow".
191Made it possible to delete a Todo, which has sub-todos. 194Made it possible to delete a Todo, which has sub-todos.
192Fixed two small problems in the todo view. 195Fixed two small problems in the todo view.
193Added missing German translation for filter edit and print dialog. 196Added missing German translation for filter edit and print dialog.
194Made search dialog closeable by cancel key. 197Made search dialog closeable by cancel key.
195 198
196Made it possible to select in the date picker the (ligt grey ) 199Made it possible to select in the date picker the (ligt grey )
197dates of the prev./next month with the mouse. 200dates of the prev./next month with the mouse.
198 201
199OM/Pi: 202OM/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.
201Fixed the problem, that the state flag of imap mails was ignored. 204Fixed the problem, that the state flag of imap mails was ignored.
202Now mails with "FLAG_SEEN" on the imap server get no icon in the list view 205Now mails with "FLAG_SEEN" on the imap server get no icon in the list view
203to indecate that they are already seen. 206to indecate that they are already seen.
204Fixed the problem that the body of some mails was not displayed in the 207Fixed the problem that the body of some mails was not displayed in the
205mail viewer when fetching them from the imap server directly to read them. 208mail viewer when fetching them from the imap server directly to read them.
206Made it (configurable) possible to show the "To:" field in the list view. 209Made it (configurable) possible to show the "To:" field in the list view.
207Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. 210Added to the mail viewer the option "View Source" to make it possible to see the raw mail data.
208Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the 211Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the
209local storage folder (specified in account settings) of the account of the mail. 212local storage folder (specified in account settings) of the account of the mail.
210Removed some memory leaks in OM/Pi. 213Removed some memory leaks in OM/Pi.
211 214
212 215
213********** VERSION 1.9.19 ************ 216********** VERSION 1.9.19 ************
214 217
215Added a lot of missing translations to KA/Pi, 218Added a lot of missing translations to KA/Pi,
216Added some missing translations to KO/Pi and OM/Pi. 219Added some missing translations to KO/Pi and OM/Pi.
217 220
218Fixed some minor problems in KA/Pi + KO/Pi. 221Fixed some minor problems in KA/Pi + KO/Pi.
219 222
220Fixed a crash when closing PwM/Pi. 223Fixed a crash when closing PwM/Pi.
221Added German translation for PwM/Pi. 224Added German translation for PwM/Pi.
222 225
223Made view change and Month View update faster in KO/Pi. 226Made 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
228FYI: The VERSION 1.9.17 was a testing release only. 231FYI: The VERSION 1.9.17 was a testing release only.
229Please read the changelog of VERSION 1.9.17 as well. 232Please read the changelog of VERSION 1.9.17 as well.
230 233
231Cleaned up the syncing config dialog. 234Cleaned up the syncing config dialog.
232Added sync config options for date range for events. 235Added sync config options for date range for events.
233Added sync config options for filters on incoming data. 236Added sync config options for filters on incoming data.
234Added sync config options for filters on outgoing data. 237Added sync config options for filters on outgoing data.
235Please read the updated SyncHowTo about the new filter settings. 238Please read the updated SyncHowTo about the new filter settings.
236These filter settings make it now possible to sync with shared 239These filter settings make it now possible to sync with shared
237calendars without writing back private or confidential data 240calendars without writing back private or confidential data
238(via the outgoing filters). 241(via the outgoing filters).
239To sync only with particular parts of a shared calendar, 242To sync only with particular parts of a shared calendar,
240the incoming filter settings can be used. 243the incoming filter settings can be used.
241An example can be found in the SyncHowTo. 244An example can be found in the SyncHowTo.
242Same for shared addressbooks. 245Same for shared addressbooks.
243 246
244Added a setting for the global kdepim data storage. 247Added a setting for the global kdepim data storage.
245Usually the data is stored in (yourhomedir/kdepim). 248Usually the data is stored in (yourhomedir/kdepim).
246Now you can set in the Global config dialog TAB, subTAB "Data storage path" 249Now you can set in the Global config dialog TAB, subTAB "Data storage path"
247a directory where all the kdepim data is stored. 250a directory where all the kdepim data is stored.
248That makes it easy to save all kdepim data on a SD card on the Z, for example. 251That makes it easy to save all kdepim data on a SD card on the Z, for example.
249 252
250KO/Pi: 253KO/Pi:
251The timeedit input has a pulldown list for times. 254The timeedit input has a pulldown list for times.
252If opened, this pulldown list should now has the right time highlighted. 255If opened, this pulldown list should now has the right time highlighted.
253Added the possibility to exclude events/todos/journals in a filter. 256Added the possibility to exclude events/todos/journals in a filter.
254You should exclude journals, if you do not want them to sync with a public calendar. 257You should exclude journals, if you do not want them to sync with a public calendar.
255 258
256KA/Pi: 259KA/Pi:
257Added the possibility to in/exclude public/private/confidential contacts to a filter. 260Added the possibility to in/exclude public/private/confidential contacts to a filter.
258If 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 ... 261If 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 ...
259Added printing of card view and details view on desktop. 262Added printing of card view and details view on desktop.
260Printing of list view is not working... 263Printing of list view is not working...
261Added button for removing pictures in contact editor. 264Added button for removing pictures in contact editor.
262Parsing data fix of KA/Pi version 1.9.17. 265Parsing data fix of KA/Pi version 1.9.17.
263Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. 266Fixed the "parse name automatically" problem of KA/Pi version 1.9.17.
264Fixed some syncing merging problems. 267Fixed some syncing merging problems.
265 268
266 269
267********** VERSION 1.9.17 ************ 270********** VERSION 1.9.17 ************
268 271
269KO/Pi: 272KO/Pi:
270Fixed that tooltips were not updated after moving an item in agenda view. 273Fixed that tooltips were not updated after moving an item in agenda view.
271Fixed a bug in sorting start date for recurring events in list view. 274Fixed a bug in sorting start date for recurring events in list view.
272Changed the left button in todo viewer from "Agenda" to "Set completed". 275Changed the left button in todo viewer from "Agenda" to "Set completed".
273This 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. 276This 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.
274Added more info in the todo viewer: Startdate, parent/sub todos. 277Added more info in the todo viewer: Startdate, parent/sub todos.
275 278
276 279
277KA/Pi: 280KA/Pi:
278All fields search does now actually search all the (possible) fields, 281All fields search does now actually search all the (possible) fields,
279not only those listed in the contact list. 282not only those listed in the contact list.
280Made is possible to inline a picture in a vcard on the Z. 283Made is possible to inline a picture in a vcard on the Z.
281This was only possible on the desktop, now is it possible on the Z as well. 284This was only possible on the desktop, now is it possible on the Z as well.
282Fixed of missing save settings after filter configuration. 285Fixed of missing save settings after filter configuration.
283Made saving of addressbook much faster. 286Made saving of addressbook much faster.
284Fixed extension widget layout problem. 287Fixed extension widget layout problem.
285Fixed saving of default formatted name settings. 288Fixed saving of default formatted name settings.
286Fixed formatted name handling in edit dialog. 289Fixed formatted name handling in edit dialog.
287Added an option for changing formatted names of many contacts 290Added 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
290QWhatsThis was not working on the Z ( only black rectangle was shown). 293QWhatsThis was not working on the Z ( only black rectangle was shown).
291This is Fixed. 294This is Fixed.
292 295
293KDE-Sync: 296KDE-Sync:
294Now readonly KDE resources are synced as well. 297Now 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
301KO/Pi: 304KO/Pi:
302Fixed search dialog size on Z 6000 (480x640 display). 305Fixed search dialog size on Z 6000 (480x640 display).
303Added setting to hide/show time in agenda items. 306Added setting to hide/show time in agenda items.
304Added setting to hide not running todos in todo view. 307Added setting to hide not running todos in todo view.
305Added columns for start date/time in todo view. 308Added columns for start date/time in todo view.
306Replaced the solid half-hour lines in agenda view by dot lines. 309Replaced the solid half-hour lines in agenda view by dot lines.
307Added possibility of printing the What's Next View on the desktop 310Added possibility of printing the What's Next View on the desktop
308(i.e. Windows and Linux). 311(i.e. Windows and Linux).
309Fixed a crash in KO/Pi when starting KO/Pi with What's Next view. 312Fixed a crash in KO/Pi when starting KO/Pi with What's Next view.
310Added tooltips in month view.(Tooltips only available on desktop) 313Added tooltips in month view.(Tooltips only available on desktop)
311 314
312Fixed a strange problem in KO/Pi alarm applet. 315Fixed a strange problem in KO/Pi alarm applet.
313Did not find the actual problem, 316Did not find the actual problem,
314such that now Qtopia reboots again if deinstalling the alarm applet. 317such that now Qtopia reboots again if deinstalling the alarm applet.
315But the alarm applet should work again. 318But the alarm applet should work again.
316 319
317KA/Pi: 320KA/Pi:
318Fixed the problem, that internal pictures were not saved. 321Fixed the problem, that internal pictures were not saved.
319 322
320Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes. 323Fixed a problem in the pi-sync mode by increasing the timeout for data transfer from 20 seconds to 5 minutes.
321 324
322Fixed some minor problems. (Like word wrap in help text windows). 325Fixed some minor problems. (Like word wrap in help text windows).
323 326
324Fixed a compiling problem in microkde/kresources. 327Fixed a compiling problem in microkde/kresources.
325 328
326KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM. 329KO/Pi is using zdbat (renamed to db2file) for syncing with Sharp DTM.
327This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9) 330This version now includes zdbat 1.0.0 (old version was zdbat 0.2.9)
328such that now syncing KO/Pi with Sharp DTM should work on the 331such that now syncing KO/Pi with Sharp DTM should work on the
329Zaurus C 3000 model. 332Zaurus C 3000 model.
330 333
331********** VERSION 1.9.15 ************ 334********** VERSION 1.9.15 ************
332 335
333Usebilty enhancements in KO/Pi: 336Usebilty enhancements in KO/Pi:
334When clicking on the date in a month view cell, the day view is shown. 337When clicking on the date in a month view cell, the day view is shown.
335Old behaviour was, that the "new event" dialog popped up. 338Old behaviour was, that the "new event" dialog popped up.
336 339
337Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu). 340Added a one step "undo delete" in KO/Pi (Accessable in the "Action" menu).
338That means, you can restore the latest 341That means, you can restore the latest
339event/todo/journal you have deleted. 342event/todo/journal you have deleted.
340A journal is deleted, if you clear all the text of the journal. 343A journal is deleted, if you clear all the text of the journal.
341 344
342Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14. 345Fixed the bug of the editor dialogs in KO/Pi of version 1.9.14.
343 346
344KA/Pi starting in 480x640 resolution: 347KA/Pi starting in 480x640 resolution:
345Hide the filter action in toolbar 348Hide the filter action in toolbar
346and added icons for undo/delete/redo in toolbar. 349and added icons for undo/delete/redo in toolbar.
347 350
348Change in OM/Pi ViewMail dialog: 351Change in OM/Pi ViewMail dialog:
349When clicking on the "delete" icon the mail is deleted after confirmation as usual. 352When clicking on the "delete" icon the mail is deleted after confirmation as usual.
350But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any). 353But the edit dialog is not closed as before, now the next mail in the folder is shown automatically (if there is any).
351 354
352Fixed a crash when deleting mail-accounts in OM/Pi. 355Fixed 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
357Fixed some problems with the dialog sizes when switching 360Fixed some problems with the dialog sizes when switching
358portrait/landscape mode on 640x480 PDA display. 361portrait/landscape mode on 640x480 PDA display.
359 362
360Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi. 363Fixed some other small bugs in KA/Pi KO/Pi and OM/Pi and PwM/Pi.
361 364
362Fixed an ugly bug in KOpieMail: 365Fixed an ugly bug in KOpieMail:
363KOpieMail was not able to write files (mails) to MSDOS file system, 366KOpieMail was not able to write files (mails) to MSDOS file system,
364like on an usual preformatted SD card. That should work now. 367like on an usual preformatted SD card. That should work now.
365To save your mail data on the Sd card do the following: 368To save your mail data on the Sd card do the following:
366Create a dir on the SD card: 369Create a dir on the SD card:
367mkdir /mnt/card/localmail 370mkdir /mnt/card/localmail
368Go to your home dir: 371Go to your home dir:
369cd 372cd
370Go to kopiemail data storage dir: 373Go to kopiemail data storage dir:
371cd kdepim/apps/kopiemail 374cd kdepim/apps/kopiemail
372Create a symlink to the SD card: 375Create a symlink to the SD card:
373ls -s /mnt/card/localmail 376ls -s /mnt/card/localmail
374Now KOpieMail will store all mails on the SD card. 377Now KOpieMail will store all mails on the SD card.
375 378
376KO/Pi Monthview: 379KO/Pi Monthview:
377Now "Go to Today" selects the current month from day 1-end, 380Now "Go to Today" selects the current month from day 1-end,
378not the current date + some days. 381not the current date + some days.
379I.e. "Go to Today" shows now always 382I.e. "Go to Today" shows now always
380the current month with first day of month in the first row. 383the current month with first day of month in the first row.
381 384
382Added missing German translation. 385Added missing German translation.
383 386
384Fixed icons of executeable on Wintendo. 387Fixed icons of executeable on Wintendo.
385 388
386Added a "Show next Mail" button to the OM/Pi 389Added a "Show next Mail" button to the OM/Pi
387mail viewer such that the mail below the current mail 390mail viewer such that the mail below the current mail
388in the mail list view of the current folder 391in the mail list view of the current folder
389can be read with a single click. 392can be read with a single click.
390 393
391 394
392********** VERSION 1.9.13 ************ 395********** VERSION 1.9.13 ************
393 396
394Fixed nasty PwM/Pi file reading bug, when 397Fixed nasty PwM/Pi file reading bug, when
395the used hash algo of file is different then the global 398the used hash algo of file is different then the global
396hash algo. 399hash algo.
397 400
398Added KA/Pi support for opie mailit mailapplication. 401Added KA/Pi support for opie mailit mailapplication.
399 402
400Fixed some bugs in OM/Pi. 403Fixed some bugs in OM/Pi.
401Now character conversion tables are available for the Zaurus 404Now character conversion tables are available for the Zaurus
402to make OM/Pi working properly. 405to make OM/Pi working properly.
403To get the character conversion in OM/Pi working, please download 406To get the character conversion in OM/Pi working, please download
404at the sourceforge project site the package 407at the sourceforge project site the package
405sr-character-conversion_SharpROM_arm.ipk.zip 408sr-character-conversion_SharpROM_arm.ipk.zip
406(or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms) 409(or oz-character-conversion_OZ-gcc3xx_arm.ipk.zip for OZ roms)
407from the section "general files for KDE/Pim" 410from the section "general files for KDE/Pim"
408Instructions how to install this package are in a ReadMe in this file. 411Instructions how to install this package are in a ReadMe in this file.
409 412
410 413
411Fixed the orientation change problem in KA/Pi when switching 414Fixed the orientation change problem in KA/Pi when switching
412portrait/landscape mode. 415portrait/landscape mode.
413 416
414French translation available for KA/Pi and OM/Pi. 417French translation available for KA/Pi and OM/Pi.
415 418
416Fixed some problems with categories in KO/Pi in DTM sync. 419Fixed some problems with categories in KO/Pi in DTM sync.
417 420
418Added selection dialog for export to phone in KA/Pi. 421Added selection dialog for export to phone in KA/Pi.
419 422
420If in KO/Pi is an attendee selected to add to a meeting and this 423If in KO/Pi is an attendee selected to add to a meeting and this
421attendee is already in the list of attendees, this person is not added 424attendee is already in the list of attendees, this person is not added
422again. 425again.
423 426
424Some menu cleanup in KA/Pi. 427Some menu cleanup in KA/Pi.
425 428
426********** VERSION 1.9.12 ************ 429********** VERSION 1.9.12 ************
427 430
428Fix for the bug in KO/Pi What's Next view of version 1.9.11. 431Fix for the bug in KO/Pi What's Next view of version 1.9.11.
429 432
430Bugfix: Licence file is now shown again. 433Bugfix: Licence file is now shown again.
431 434
432OM/Pi now supports Unicode (utf8 charset). 435OM/Pi now supports Unicode (utf8 charset).
433Fixed some bugs in OM/Pi. 436Fixed some bugs in OM/Pi.
434 437
435KA/Pi has more German translation. 438KA/Pi has more German translation.
436 439
437 440
438********** VERSION 1.9.11 ************ 441********** VERSION 1.9.11 ************
439 442
440Fixed several problems in PWM/Pi, like 443Fixed several problems in PWM/Pi, like
441asking the user, if unsaved changed are pending 444asking the user, if unsaved changed are pending
442when closing the app. 445when closing the app.
443And PwM/Pi handles now different texts for the 446And PwM/Pi handles now different texts for the
444fields Description, Username, Password, configurable per category. 447fields Description, Username, Password, configurable per category.
445 448
446Fixed a crash in KO/Pi , when importing/loading vcs files 449Fixed a crash in KO/Pi , when importing/loading vcs files
447which have an entry with an attendee with state: 450which have an entry with an attendee with state:
448NEEDS ACTION 451NEEDS ACTION
449 452
450Fixed some problems in the German translation of OM/Pi, 453Fixed some problems in the German translation of OM/Pi,
451which makes some dialogs not fitting on the screen 454which makes some dialogs not fitting on the screen
452of the Z 5500. 455of the Z 5500.
453 456
454Fixed Qtopia crash, when disabling/deinstalling 457Fixed Qtopia crash, when disabling/deinstalling
455KO/Pi alarm applet. 458KO/Pi alarm applet.
456 459
457Implemented direct KDE<->KA/Pi sync for KA/Pi running 460Implemented direct KDE<->KA/Pi sync for KA/Pi running
458on Linux desktop. 461on Linux desktop.
459 462
460Added feature "remove sync info" to sync menu. 463Added feature "remove sync info" to sync menu.
461 464
462Tweaked the KO/Pi What's next view a bit, added 465Tweaked the KO/Pi What's next view a bit, added
463setting to hide events that are done. 466setting to hide events that are done.
464 467
465Disabled "beam receive enabled" on startup to 468Disabled "beam receive enabled" on startup to
466avoid problems if Fastload is enabled. 469avoid problems if Fastload is enabled.
467Please set "beam receive enabled", 470Please set "beam receive enabled",
468if you want to receive data via IR. 471if you want to receive data via IR.
469 472
470Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running 473Fixed bug in direct KDE<->KO/Pi sync for KO/Pi running
471on Linux desktop. 474on Linux desktop.
472 475
473Made in KA/Pi scrolling possible, if details view is selected. 476Made in KA/Pi scrolling possible, if details view is selected.
474(The keyboard focus is set automatically to the search line) 477(The keyboard focus is set automatically to the search line)
475 478
476Fixed a bug in DMT sync, that a new entry in DTM was added 479Fixed a bug in DMT sync, that a new entry in DTM was added
477on every sync to Kx/Pi. 480on every sync to Kx/Pi.
478 481
479Fixed missing writing of KA/Pi categories to DMT entries when syncing. 482Fixed missing writing of KA/Pi categories to DMT entries when syncing.
480 483
481Fixed a bug in DMT sync with todos created in KO/Pi containing 484Fixed a bug in DMT sync with todos created in KO/Pi containing
482non-latin1 characters. 485non-latin1 characters.
483 486
484Rearranged package contents of Sharp-ipks and made all 487Rearranged package contents of Sharp-ipks and made all
485packages installable on SD again. 488packages installable on SD again.
486 489
487Fixed the writing of addressbook data in DTM sync. 490Fixed the writing of addressbook data in DTM sync.
488Empty fields in KA/Pi were not removed. 491Empty fields in KA/Pi were not removed.
489 492
490Added better category handling in KA/Pi: 493Added better category handling in KA/Pi:
491Added item 494Added item
492Edit Categories and 495Edit Categories and
493Manage new categories 496Manage new categories
494to the settings menu. 497to the settings menu.
495Possible to configure a view to display categories. 498Possible to configure a view to display categories.
496 499
497Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu. 500Added detailed "KDE Sync Howto" and "Multi Sync Howto" to Help menu.
498 501
499Fixed displaying of "free" days and time in KO Monthview and Agendaview. 502Fixed displaying of "free" days and time in KO Monthview and Agendaview.
500 503
501... and many other bugfixes. 504... and many other bugfixes.
502 505
503********** VERSION 1.9.10 ************ 506********** VERSION 1.9.10 ************
504 507
505Many internal small bugfixes. 508Many internal small bugfixes.
506And fix of the "big" bug in KO/Pi, 509And fix of the "big" bug in KO/Pi,
507that after Syncing the appointments had an offset by several hours. 510that after Syncing the appointments had an offset by several hours.
508That was a problem with the internal timezone setting, 511That was a problem with the internal timezone setting,
509introduced by the changed timezone configuration settings. 512introduced by the changed timezone configuration settings.
510 513
511German translation for OM/Pi is now available. 514German translation for OM/Pi is now available.
512 515
513 516
514********** VERSION 1.9.9 ************ 517********** VERSION 1.9.9 ************
515 518
516KDE-Pim/Pi has a new Member! 519KDE-Pim/Pi has a new Member!
517It is called PWM/Pi (Passwordmanager/platform-independent) 520It is called PWM/Pi (Passwordmanager/platform-independent)
518and it is available for the Zaurus. 521and it is available for the Zaurus.
519It is planned, that it will be available later for Windows. 522It is planned, that it will be available later for Windows.
520(And for Linux, of course). 523(And for Linux, of course).
521It is a port of the Passwordmanager of KDE. 524It is a port of the Passwordmanager of KDE.
522It will need the MicroKDElibs to run. 525It will need the MicroKDElibs to run.
523 526
524Made loading of addressbooks in KA/Pi up to 7 times faster! 527Made loading of addressbooks in KA/Pi up to 7 times faster!
525The bigger your addressbook file, the more starting speed 528The bigger your addressbook file, the more starting speed
526will you gain. (relatively) 529will you gain. (relatively)
527 530
528The Qtopia addressbook connector is now platform independend 531The Qtopia addressbook connector is now platform independend
529as well and should work on any platform for importing/exporting 532as well and should work on any platform for importing/exporting
530Qtopia and Opie XML files. 533Qtopia and Opie XML files.
531 534
532Added a +30min feature to the timezone settings to make 535Added a +30min feature to the timezone settings to make
533KDE-Pim/Pi useable in Australia and other parts on the 536KDE-Pim/Pi useable in Australia and other parts on the
534world with strange timezones ;-) 537world with strange timezones ;-)
535 538
536German "Umlaute" should now be sorted correctly on the Z in KA/Pi. 539German "Umlaute" should now be sorted correctly on the Z in KA/Pi.
537 540
538It is now possible to disable the 541It is now possible to disable the
539"receive data via infrared" feature, such that syncing with 542"receive data via infrared" feature, such that syncing with
540Outlook is now possible again with Kx/Pi runing. 543Outlook is now possible again with Kx/Pi runing.
541Please disable it, before syncing Sharp DTM with Outlook. 544Please disable it, before syncing Sharp DTM with Outlook.
542For your convenience, the "receive data via infrared" feature 545For your convenience, the "receive data via infrared" feature
543is disabled automatically, if you sync Kx/Pi with DTM. 546is disabled automatically, if you sync Kx/Pi with DTM.
544You have to enable it again manually after syncing. 547You have to enable it again manually after syncing.
545Enabling this feature makes it impossible to start the 548Enabling this feature makes it impossible to start the
546Sharp DTM apps. If this feature is enabled, you will only get the 549Sharp DTM apps. If this feature is enabled, you will only get the
547alarm notification from KO/Pi and not from the Sharp calendar. 550alarm notification from KO/Pi and not from the Sharp calendar.
548This is very useful if you sync KO/Pi with Sharp DTM, 551This is very useful if you sync KO/Pi with Sharp DTM,
549because after syncing you usually would get notified about 552because after syncing you usually would get notified about
550an alarm by KO/Pi and the Sharp Calendar. 553an alarm by KO/Pi and the Sharp Calendar.
551 554
552Together with the Linux desktop version of KO/Pi 555Together with the Linux desktop version of KO/Pi
553it is now possible to sync KO/Pi on the Zaurus 556it is now possible to sync KO/Pi on the Zaurus
554with the complete KDE-desktop (3.3 or later) 557with the complete KDE-desktop (3.3 or later)
555calendar data easily. 558calendar data easily.
556That makes it possible to sync the Z with one 559That makes it possible to sync the Z with one
557click of a mouse with the KDE-Desktop. 560click of a mouse with the KDE-Desktop.
558This feature it available for all Zaurus platforms KO/Pi 561This feature it available for all Zaurus platforms KO/Pi
559is running on. 562is running on.
560The only thing needed is a running KO/Pi on Linux and 563The only thing needed is a running KO/Pi on Linux and
561a compiled version of the small 564a compiled version of the small
562KDE-Pim/Pi<->KDE-Desktop access command line program, 565KDE-Pim/Pi<->KDE-Desktop access command line program,
563which is in the KDE-Pim/Pi sources available. 566which is in the KDE-Pim/Pi sources available.
564 567
565The "KDE-desktop" syncing feature for KA/Pi will follow 568The "KDE-desktop" syncing feature for KA/Pi will follow
566in the next releases. 569in the next releases.
567 570
568Fixed the vcard export bug, which had the version 1.9.8. 571Fixed the vcard export bug, which had the version 1.9.8.
569 572
570Added missing GERMAN translation to KO/Pi. 573Added missing GERMAN translation to KO/Pi.
571Hi PsionX, could you add the missing french translation?Thx! 574Hi PsionX, could you add the missing french translation?Thx!
572 575
573Translation files for KA/Pi are available as well. 576Translation files for KA/Pi are available as well.
574GERMAN translation will be available in the next release. 577GERMAN translation will be available in the next release.
575PsionX ( yres, you again ;-) ), could you start translating 578PsionX ( yres, you again ;-) ), could you start translating
576KA/Pi? Thx! 579KA/Pi? Thx!
577 580
578You can download the version 1.9.9 at 581You can download the version 1.9.9 at
579 582
580http://sourceforge.net/project/showfiles.php?group_id=104103&package_id=112604 583http://sourceforge.net/project/showfiles.php?group_id=104103&package_id=112604
581 584
582Note: 585Note:
583To run the mail program OM/Pi you need libopenssl. 586To run the mail program OM/Pi you need libopenssl.
584A link to a download loaction is available at 587A link to a download loaction is available at
585ZSI at www.killefiz.de 588ZSI at www.killefiz.de
586 589
587 590
588********** VERSION 1.9.8 ************ 591********** VERSION 1.9.8 ************
589 592
590Fixed character decoding in OM/Pi. 593Fixed character decoding in OM/Pi.
591(e.g. German "Umlaute" were not displayed properly.) 594(e.g. German "Umlaute" were not displayed properly.)
592 595
593Made is possible to reparent todos in KO/Pi. 596Made is possible to reparent todos in KO/Pi.
594Use contextmenu or keys (look at Help-Keys + Colors) for that. 597Use contextmenu or keys (look at Help-Keys + Colors) for that.
595 598
596Added the missing Sync-Howto and WhatsNew to the packages. 599Added the missing Sync-Howto and WhatsNew to the packages.
597 600
598KO/Pi on Linux desktop can now sync with KDE desktop. 601KO/Pi on Linux desktop can now sync with KDE desktop.
599That means: When using KO/Pi on Linux desktop for syncing with 602That means: When using KO/Pi on Linux desktop for syncing with
600KDE desktop and the Zaurus, the Zaurus can be synced now 603KDE desktop and the Zaurus, the Zaurus can be synced now
601with all KDE-Calendar resources, not only with one local file. 604with all KDE-Calendar resources, not only with one local file.
602(That makes it possible to sync the Zaurus with the 605(That makes it possible to sync the Zaurus with the
603calendar data on a Kolab server) 606calendar data on a Kolab server)
604 607
605KA/Pi syncing with KDE desktop will be available in the next version. 608KA/Pi syncing with KDE desktop will be available in the next version.
606 609
607 610
608********** VERSION 1.9.7 ************ 611********** VERSION 1.9.7 ************
609 612
610KO/Pi - KA/Pi on Windows: 613KO/Pi - KA/Pi on Windows:
611Now a directory can be defined by the user, where the 614Now a directory can be defined by the user, where the
612application/config data should be saved. 615application/config data should be saved.
613 Define your desired path in the evironment variable 616 Define your desired path in the evironment variable
614 MICROKDEHOME 617 MICROKDEHOME
615 before starting KO/Pi or KA/Pi. 618 before starting KO/Pi or KA/Pi.
616 619
617An easy Kx/Pi to Kx/Pi syncing is now possible 620An easy Kx/Pi to Kx/Pi syncing is now possible
618(it is called Pi-Sync) via network. 621(it is called Pi-Sync) via network.
619Please look at the Sync Howto. 622Please look at the Sync Howto.
620 623
621Exporting of calendar data and contacts to mobile phones is now possible. 624Exporting of calendar data and contacts to mobile phones is now possible.
622The SyncHowto is updated with information howto 625The SyncHowto is updated with information howto
623access/sync mobile phones. 626access/sync mobile phones.
624Please look at the Sync Howto. 627Please look at the Sync Howto.
625 628
626Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly. 629Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly.
627Please disable Fastload for the original contact/calendar applications 630Please disable Fastload for the original contact/calendar applications
628and close them. 631and close them.
629KO/Pi and KA/Pi must be running in order to receive the data. 632KO/Pi and KA/Pi must be running in order to receive the data.
630(KO/Pi and KA/Pi are always running if Fastload for them is enabled!) 633(KO/Pi and KA/Pi are always running if Fastload for them is enabled!)
631 634
632In the KA/Pi details view are now the preferred tel. numbers displayed on top 635In the KA/Pi details view are now the preferred tel. numbers displayed on top
633of the other data ( emails/tel.numbers/addresses) 636of the other data ( emails/tel.numbers/addresses)
634 637
635Fixed some syncing problems in KA/Pi. 638Fixed some syncing problems in KA/Pi.
636 639
637Added font settings for the KA/Pi details view. 640Added font settings for the KA/Pi details view.
638Added fields "children's name" and "gender" to KA/Pi. 641Added fields "children's name" and "gender" to KA/Pi.
639 642
640Made searching in KA/Pi better: 643Made searching in KA/Pi better:
641Now the first item in a view is selected after a search automatically and 644Now the first item in a view is selected after a search automatically and
642the views can be scrolled up/down when the search input field has the keyboard focus. 645the views can be scrolled up/down when the search input field has the keyboard focus.
643 646
644And, of course, fixed a bunch of reported bugs in KO/Pi and KA/Pi. 647And, of course, fixed a bunch of reported bugs in KO/Pi and KA/Pi.
645 648
646 649
647********** VERSION 1.9.6 ************ 650********** VERSION 1.9.6 ************
648 651
649Changes in the external application communication on the Zaurus 652Changes in the external application communication on the Zaurus
650in order to use less RAM when the apps are running. 653in order to use less RAM when the apps are running.
651First syncing of addressbooks (KA/Pi) is possible. 654First syncing of addressbooks (KA/Pi) is possible.
652 655
653 656
654********** VERSION 1.9.5a ************ 657********** VERSION 1.9.5a ************
655 658
656Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5. 659Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5.
657Fixed some small bugs. 660Fixed some small bugs.
658KA/Pi shows now the birthday in summary view. 661KA/Pi shows now the birthday in summary view.
659Now OM/Pi and KA/Pi are using the date format defined in KO/Pi 662Now OM/Pi and KA/Pi are using the date format defined in KO/Pi
660for displaying dates. 663for displaying dates.
661 664
662 665
663********** VERSION 1.9.5 ************ 666********** VERSION 1.9.5 ************
664 667
665There is still no Addressbook syncing! 668There is still no Addressbook syncing!
666 669
667New in 1.9.5: 670New in 1.9.5:
668 671
669Many bugfixes. 672Many bugfixes.
670Better searching in KA/Pi. 673Better searching in KA/Pi.
671You can configure in KA/Pi if you want to search only after 674You can configure in KA/Pi if you want to search only after
672<return> key pressed. 675<return> key pressed.
673 676
674Better mail downloading in OM/Pi. 677Better mail downloading in OM/Pi.
675 678
676First experimental alpha version of sync of KO/Pi with mobile phones. 679First experimental alpha version of sync of KO/Pi with mobile phones.
677See gammu documentation for supported phones. 680See gammu documentation for supported phones.
678You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp. 681You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp.
679Quick hint how to use: 682Quick hint how to use:
680NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL! 683NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL!
681Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp. 684Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp.
682Create syncprofile - mobile device 685Create syncprofile - mobile device
683Remove entry for model. (Leave empty ). 686Remove entry for model. (Leave empty ).
684Enable infrared on Zaurus and your Phone. 687Enable infrared on Zaurus and your Phone.
685Sync. 688Sync.
686To get a more detailed log, start kopi from konsole. 689To get a more detailed log, start kopi from konsole.
687 690
688********** VERSION 1.9.4 ************ 691********** VERSION 1.9.4 ************
689 692
690This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus. 693This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus.
691 694
692WARNING: 695WARNING:
693PLEASE BACKUP ALL YOUR DATA! 696PLEASE BACKUP ALL YOUR DATA!
694We have changed a lot and maybe there are some unknown problems. 697We have changed a lot and maybe there are some unknown problems.
695 698
696SYNC HANDLING HAS CHANGED! 699SYNC HANDLING HAS CHANGED!
697Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. 700Such that, if you sync now with an already synded device, you will duplicated entries after the first sync.
698(This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). 701(This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks).
699 702
700You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs. 703You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs.
701If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well. 704If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well.
702 705
703As programs are available: 706As programs are available:
704KO/Pi (korganizer ipk) - a calendar program. 707KO/Pi (korganizer ipk) - a calendar program.
705KA/Pi (kaddressbook ipk ) - an addressbook 708KA/Pi (kaddressbook ipk ) - an addressbook
706OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support. 709OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support.
707 710
708An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode. 711An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode.
709(If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia) 712(If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia)
710 713
711All the applications are installed in a "Pim" TAB. 714All the applications are installed in a "Pim" TAB.
712If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk 715If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk
713 716
714All the application are integrated. 717All the application are integrated.
715Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail. 718Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail.
716 719
717HINT: 720HINT:
718If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number. 721If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number.
719 722
720What's new? 723What's new?
721 724
722SYNC HANDLING HAS CHANGED! 725SYNC HANDLING HAS CHANGED!
723Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. 726Such that, if you sync now with an already synded device, you will duplicated entries after the first sync.
724(This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). 727(This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks).
725 728
726New in OM/Pi: 729New in OM/Pi:
727When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails. 730When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails.
728 731
729New in KO/Pi: 732New in KO/Pi:
730French is now available for KO/Pi. 733French is now available for KO/Pi.
731Choose menu:Actions - Configure:TAB locale 734Choose menu:Actions - Configure:TAB locale
732Syncing has changed. 735Syncing has changed.
733Phone sync available soon. 736Phone sync available soon.
734Not much changes, I cannot remember them ... 737Not much changes, I cannot remember them ...
735 738
736New in KA/Pi: 739New in KA/Pi:
737Beaming possible. 740Beaming possible.
738Sharp DTM readonly access possible( create a new DTM resource ); 741Sharp DTM readonly access possible( create a new DTM resource );
739Better searching possible. 742Better searching possible.
740Search is performed only after pressing the return key. 743Search is performed only after pressing the return key.
741Use wildcard * to specify parts of a name. 744Use wildcard * to specify parts of a name.
742 745
743Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * . 746Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * .
744 747
745A big improvement is the new management of the contact access. 748A big improvement is the new management of the contact access.
746In version 1.9.3, every application was using their own addressbook access data. 749In version 1.9.3, every application was using their own addressbook access data.
747That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi. 750That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi.
748That was wasting of memory, if you had several hundreds of contacts. 751That was wasting of memory, if you had several hundreds of contacts.
749 752
750Now only KA/Pi accesses the addressbook. 753Now only KA/Pi accesses the addressbook.
751If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them. 754If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them.
752If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly. 755If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly.
753That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first. 756That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first.
754 757
755New in the KO/Pi alarm applet: 758New in the KO/Pi alarm applet:
756Configure your own timer popup menu! 759Configure your own timer popup menu!
757(Text and minutes for timer countdown) 760(Text and minutes for timer countdown)
758Just edit the file 761Just edit the file
759(yourhomedir)/.kopialarmtimerrc 762(yourhomedir)/.kopialarmtimerrc
760and start/stop a timer to get a new menu with the data of this file. 763and start/stop a timer to get a new menu with the data of this file.
761 764
762********** VERSION 1.9.3 ************ 765********** VERSION 1.9.3 ************
7631) 7661)
764Now KO/Pi on Windows imports directly the calendar data of 767Now KO/Pi on Windows imports directly the calendar data of
765an installed Outlook. Should work with OL version >= 2000. 768an installed Outlook. Should work with OL version >= 2000.
766 769
767********** VERSION 1.9.2 ************ 770********** VERSION 1.9.2 ************
7681) 7711)
769KDE-Pim/Pi has got a new member: 772KDE-Pim/Pi has got a new member:
770KmicroMail (KM/Pi) is a mail program, 773KmicroMail (KM/Pi) is a mail program,
771which can handle IMAP and POP mail access. 774which can handle IMAP and POP mail access.
772It is based on Opie-Mail v3. 775It is based on Opie-Mail v3.
773All dependencies to the Opie libraries ar removed, 776All dependencies to the Opie libraries ar removed,
774such that no additional Opie lib is needed. 777such that no additional Opie lib is needed.
775It is already integrated in KO/Pi and KA/Pi. 778It is already integrated in KO/Pi and KA/Pi.
776It it now available for the Zaurus,probably it 779It it now available for the Zaurus,probably it
777will be available for other platforms later. 780will be available for other platforms later.
778Hint: 781Hint:
779Create your own contact (name + email) 782Create your own contact (name + email)
780in KA/Pi, select this contact and choose menu: 783in KA/Pi, select this contact and choose menu:
781Settings - Set Who Am I. 784Settings - Set Who Am I.
782Now the settings of this contact are used as 785Now the settings of this contact are used as
783the sender data in KM/Pi. 786the sender data in KM/Pi.
7842) 7872)
785KDE-Pim/Pi is split up in five different 788KDE-Pim/Pi is split up in five different
786packages now precompiled for Sharp Zaurus: 789packages now precompiled for Sharp Zaurus:
787--kmicrokdelibs_1.9.2_arm.ipk 790--kmicrokdelibs_1.9.2_arm.ipk
788The libs are needed for any 791The libs are needed for any
789of the following programs: 792of the following programs:
790--kaddressbook_1.9.2_arm.ipk 793--kaddressbook_1.9.2_arm.ipk
791--kmicromail_1.9.2_arm.ipk 794--kmicromail_1.9.2_arm.ipk
792--korganizer_1.9.2_arm.ipk 795--korganizer_1.9.2_arm.ipk
793Independ from that, there is the alarm applet 796Independ from that, there is the alarm applet
794available for KO/Pi, which also offers 797available for KO/Pi, which also offers
795quick access for a new mail or 798quick access for a new mail or
796showing the addressbook.: 799showing the addressbook.:
797--korganizer-alarm_1.9.2_arm.ipk 800--korganizer-alarm_1.9.2_arm.ipk
798Independend means, that the alarm applet 801Independend means, that the alarm applet
799does not need any of the libs or programs above to run. 802does not need any of the libs or programs above to run.
800But it would be quite useless without these programs. 803But it would be quite useless without these programs.
801NOTE: 804NOTE:
802If you get a 805If you get a
803"This application depends on other programs" 806"This application depends on other programs"
804during installation of 807during installation of
805--kmicrokdelibs_1.9.2_arm.ipk 808--kmicrokdelibs_1.9.2_arm.ipk
806you probably do not have to care about that. 809you probably do not have to care about that.
807kmicrokdelibs_1.9.2 will come with some 810kmicrokdelibs_1.9.2 will come with some
808resource plugins, which needs additional libraries. 811resource plugins, which needs additional libraries.
809(E.g. libopie1, if you want to use the 812(E.g. libopie1, if you want to use the
810opie resource connector in KA/Pi). 813opie resource connector in KA/Pi).
811If you do not have this libraries installed, 814If you do not have this libraries installed,
812you simply cannot use the resource. 815you simply cannot use the resource.
813To make it clear: 816To make it clear:
814If the libraries are missing, the applications 817If the libraries are missing, the applications
815using kmicrokdelibs will start, 818using kmicrokdelibs will start,
816because the resources are plugins. 819because the resources are plugins.
8173) 8203)
818KO/Pi and friends are now installable on SD-Card! 821KO/Pi and friends are now installable on SD-Card!
819It is recommended to install all libs and apps 822It is recommended to install all libs and apps
820on the SD card or all in the internal storage. 823on the SD card or all in the internal storage.
821There may be problems, if this is mixed. 824There may be problems, if this is mixed.
8224) 8254)
823Fixed two bugs in the alarm notification on Windows. 826Fixed two bugs in the alarm notification on Windows.
8245) 8275)
825Great improvement! 828Great improvement!
826KO/Pi uses now the latest version of libical. 829KO/Pi uses now the latest version of libical.
827Libical is the library which actually reads 830Libical is the library which actually reads
828the calendar files and extract the data from it. 831the calendar files and extract the data from it.
829With the old version, there were problems 832With the old version, there were problems
830(crashes or program hangs) when licical did read 833(crashes or program hangs) when licical did read
831files, which were not stored from KO/Pi. 834files, which were not stored from KO/Pi.
832I do not know, if the new libical works perfect, 835I do not know, if the new libical works perfect,
833but actually it works much better than 836but actually it works much better than
834the old version. 837the old version.
835There are no problems with compatibility with 838There are no problems with compatibility with
836old calendar files of KO/Pi, of course! 839old calendar files of KO/Pi, of course!
8376) 8406)
838New in KA/Pi: 841New in KA/Pi:
839Opie addressbook resource connector available! 842Opie addressbook resource connector available!
840You will need libopie1 and the opie addressbook, 843You will need libopie1 and the opie addressbook,
841of course. 844of course.
842With the Opie addressbook resource connector, 845With the Opie addressbook resource connector,
843you can access the Opie addressbook readonly in KA/Pi. 846you can access the Opie addressbook readonly in KA/Pi.
844If you want to edit or import the data into KA/Pi, 847If you want to edit or import the data into KA/Pi,
845do this: 848do this:
846a) Create an Opie resource. 849a) Create an Opie resource.
847 (Menu: Settings-Configure Resources). 850 (Menu: Settings-Configure Resources).
848After configuration and restarting KA/Pi you should see 851After configuration and restarting KA/Pi you should see
849the Opie contacts in KA/Pi. 852the Opie contacts in KA/Pi.
850b) Select some or all Opie contacts. 853b) Select some or all Opie contacts.
851(NOTE: +++++ 854(NOTE: +++++
852To know exactly, what contacts are Opie contacts, 855To know exactly, what contacts are Opie contacts,
853do this: Choose menu: 856do this: Choose menu:
854View-Modify View - TAB Fields. 857View-Modify View - TAB Fields.
855Select in the above list "Resource" and click 858Select in the above list "Resource" and click
856down arrow to add it to the "Selected fields". 859down arrow to add it to the "Selected fields".
857Click OK. 860Click OK.
858Now you have a new column "Resource" in your list, 861Now you have a new column "Resource" in your list,
859where you can see, what an Opie resource is. 862where you can see, what an Opie resource is.
860++++ NOTE end.) 863++++ NOTE end.)
861Ok, we do have now some Opie contacts seleted. 864Ok, we do have now some Opie contacts seleted.
862(Use SHIFT or CTRL key in order to multiple select). 865(Use SHIFT or CTRL key in order to multiple select).
863c) Choose menu: Edit-Copy. 866c) Choose menu: Edit-Copy.
864d) Choose menu: Edit-Paste. 867d) Choose menu: Edit-Paste.
865e) Select the resource, you want to add the contacts to. 868e) Select the resource, you want to add the contacts to.
866Congrats! Now you have read/write access to the copied 869Congrats! Now you have read/write access to the copied
867opie contacts as "real" KA/Pi contacts. 870opie contacts as "real" KA/Pi contacts.
868 871
869 872
870********** VERSION 1.9.1 ************ 873********** VERSION 1.9.1 ************
8711) 8741)
872 +++ IMPORTANT 1 +++ 875 +++ IMPORTANT 1 +++
873 876
874The storing place of the default calendar 877The storing place of the default calendar
875file has changed! 878file has changed!
876The default calendar file was 879The default calendar file was
877Applications/korganizer/mycalendar.ics 880Applications/korganizer/mycalendar.ics
878on Zaurus and 881on Zaurus and
879(yourHomeDir)/korganizer/mycalendar.ics 882(yourHomeDir)/korganizer/mycalendar.ics
880on Windows/Linux desktop. Now it is 883on Windows/Linux desktop. Now it is
881(yourHomeDir)/kdepim/korganizer/mycalendar.ics 884(yourHomeDir)/kdepim/korganizer/mycalendar.ics
882on Zaurus, Windows and Linux. 885on Zaurus, Windows and Linux.
883To load the old file, choose menu 886To load the old file, choose menu
884File-Load calendar backup. 887File-Load calendar backup.
885(It should be loaded automatically 888(It should be loaded automatically
886at startup with a warning message displayed). 889at startup with a warning message displayed).
887The place of the configuration file has changed too. 890The place of the configuration file has changed too.
888If you want to use your old KO/Pi config, 891If you want to use your old KO/Pi config,
889copy it to 892copy it to
890(yourHomeDir)/kdepim/config/korganizerrc 893(yourHomeDir)/kdepim/config/korganizerrc
891Please read VERSION 1.9.0 - topic 3) as well! 894Please read VERSION 1.9.0 - topic 3) as well!
892 895
893 +++ IMPORTANT 2 +++ 896 +++ IMPORTANT 2 +++
894 897
895Because of the new paths, you will need 898Because of the new paths, you will need
896a new version of the KO/Pi alarm applet 899a new version of the KO/Pi alarm applet
897for Zaurus. 900for Zaurus.
898Use version >= 1.9.1 901Use version >= 1.9.1
899 902
9002) 9032)
901Now the QWhat'sThis Icon works for items 904Now the QWhat'sThis Icon works for items
902in the month view as well. 905in the month view as well.
903(See VERSION 1.7.8 Topic 1) ). 906(See VERSION 1.7.8 Topic 1) ).
9043) 9073)
905You can import birtsdays/anniversaries 908You can import birtsdays/anniversaries
906from KA/Pi into KO/Pi. 909from KA/Pi into KO/Pi.
907Choose menu File-Import birthdays. 910Choose menu File-Import birthdays.
908If you import twice, already imported items 911If you import twice, already imported items
909will not be imported again, if they 912will not be imported again, if they
910have not been changed in KO/Pi. 913have not been changed in KO/Pi.
9114) 9144)
912When syncing with sharp DTM, now a progress 915When syncing with sharp DTM, now a progress
913is shown, when the data is written back. 916is shown, when the data is written back.
914If there is much data in KO/Pi and no data 917If there is much data in KO/Pi and no data
915in DTM, that can take a long time. 918in DTM, that can take a long time.
916(But only for the first time ). 919(But only for the first time ).
9175) 9205)
918In the search dialog, you can search 921In the search dialog, you can search
919now for the name/email of an attendee 922now for the name/email of an attendee
920of an event/todo. 923of an event/todo.
921To get more space for displaying 924To get more space for displaying
922search results, the buttons 925search results, the buttons
923for "search" and "close" on the 926for "search" and "close" on the
924bottom are removed in the PDA version. 927bottom are removed in the PDA version.
925You have to click OK in the top right 928You have to click OK in the top right
926corner to do a search. 929corner to do a search.
9276) 9306)
928Now it is possible to disable the displaying 931Now it is possible to disable the displaying
929of todo items in the Allday part of the Agenda. 932of todo items in the Allday part of the Agenda.
930Choose Menu Action-Configure, 933Choose Menu Action-Configure,
931TAB Todo View, checkbox 934TAB Todo View, checkbox
932"Allday Agenda view shows todos" 935"Allday Agenda view shows todos"
9337) 9367)
934If FastLoad is enabled, now the settings and the 937If FastLoad is enabled, now the settings and the
935calendar data are saved, when KO/Pi is closed. 938calendar data are saved, when KO/Pi is closed.
936(If no Fastload is enabled, KO/Pi saves 939(If no Fastload is enabled, KO/Pi saves
937the data as well, of course) 940the data as well, of course)
9388) 9418)
939The Agenda View has a minimize-splitter now, 942The Agenda View has a minimize-splitter now,
940such that the height of the allday part can be 943such that the height of the allday part can be
941changed quickly. 944changed quickly.
942 945
943********** VERSION 1.9.0 ************ 946********** VERSION 1.9.0 ************
9441) 9471)
945KO/Pi is now merged with the new microKDE from KA/Pi. 948KO/Pi is now merged with the new microKDE from KA/Pi.
946KO/Pi accesses now KA/Pi as the addressbook. 949KO/Pi accesses now KA/Pi as the addressbook.
947The other ddressbook-plugins are not working any longer. 950The other ddressbook-plugins are not working any longer.
948(It is planned, that later KA/Pi itself uses these plugins) 951(It is planned, that later KA/Pi itself uses these plugins)
949New versions of KO/Pi are only available 952New versions of KO/Pi are only available
950together with KA/Pi as the KDE-Pim/Pi package. 953together with KA/Pi as the KDE-Pim/Pi package.
9512) 9542)
952If you click on an attendee of a meeting in the 955If you click on an attendee of a meeting in the
953event viewer, a detailed summary of the 956event viewer, a detailed summary of the
954attendee is shown. 957attendee is shown.
9553) 9583)
956The place of the configuration file has changed. 959The place of the configuration file has changed.
957If you want to use your old KO/Pi config, copy 960If you want to use your old KO/Pi config, copy
958Applications/korganizer/config_korganizerrc 961Applications/korganizer/config_korganizerrc
959to 962to
960Applications/korganizer/config/korganizerrc 963Applications/korganizer/config/korganizerrc
961 964
962********** VERSION 1.7.8 ************ 965********** VERSION 1.7.8 ************
9631) 9661)
964Now the QWhat'sThis ist working. 967Now the QWhat'sThis ist working.
965Enable the QWhat'sThis icon in the toolbar. 968Enable the QWhat'sThis icon in the toolbar.
966(You have to restart to reload the changed toolbar config). 969(You have to restart to reload the changed toolbar config).
967Now click on the QWhat'sThis Icon 970Now click on the QWhat'sThis Icon
968in the top right corner of KO/Pi. 971in the top right corner of KO/Pi.
969Then click on an item in the Agenda View: 972Then click on an item in the Agenda View:
970You will get a detailed display of the items content. 973You will get a detailed display of the items content.
9712) 9742)
972Some other very minor changes. 975Some other very minor changes.
973But I have forgotten the details ... 976But I have forgotten the details ...
974For that reason I start this log here: 977For that reason I start this log here:
975To document my changes, when I am doing it. 978To document my changes, when I am doing it.
976 979
977********** VERSION 1.7.7 ************ 980********** VERSION 1.7.7 ************
978Stable Version of KO/Pi 981Stable Version of KO/Pi
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
42class QToolTipGroup; 42class QToolTipGroup;
43#endif 43#endif
44 44
45class KNOWhatsThis; 45class KNOWhatsThis;
46class KOWeekButton : public QPushButton 46class 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 );
61private: 61private:
62 int mNumber; 62 int mNumber;
63private slots : 63private slots :
64 void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); } 64 void bottonClicked() { if ( mNumber > 0 ) emit selectWeekNum ( mNumber ); }
65}; 65};
66 66
67class KNoScrollListBox: public QListBox 67class 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
91class MonthViewItem: public QListBoxItem 91class 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
128class KOMonthView; 128class KOMonthView;
129 129
130class MonthViewCell : public QWidget 130class 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
208class KOMonthView: public KOEventView 208class 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
@@ -1,714 +1,715 @@
1/* 1/*
2 This file is part of KOrganizer. 2 This file is part of KOrganizer.
3 3
4 Copyright (c) 2001 4 Copyright (c) 2001
5 Cornelius Schumacher <schumacher@kde.org> 5 Cornelius Schumacher <schumacher@kde.org>
6 6
7 This program is free software; you can redistribute it and/or modify 7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by 8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 2 of the License, or 9 the Free Software Foundation; either version 2 of the License, or
10 (at your option) any later version. 10 (at your option) any later version.
11 11
12 This program is distributed in the hope that it will be useful, 12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of 13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the 14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.See the
15 GNU General Public License for more details. 15 GNU General Public License for more details.
16 16
17 You should have received a copy of the GNU General Public License 17 You should have received a copy of the GNU General Public License
18 along with this program; if not, write to the Free Software 18 along with this program; if not, write to the Free Software
19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 19 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
20 20
21 As a special exception, permission is given to link this program 21 As a special exception, permission is given to link this program
22 with any edition of Qt, and distribute the resulting executable, 22 with any edition of Qt, and distribute the resulting executable,
23 without including the source code for Qt in the source distribution. 23 without including the source code for Qt in the source distribution.
24*/ 24*/
25 25
26#include <qwidgetstack.h> 26#include <qwidgetstack.h>
27 27
28#include <kconfig.h> 28#include <kconfig.h>
29#include <kglobal.h> 29#include <kglobal.h>
30#ifndef DESKTOP_VERSION 30#ifndef DESKTOP_VERSION
31#include <qpe/qpeapplication.h> 31#include <qpe/qpeapplication.h>
32#else 32#else
33#include <qapplication.h> 33#include <qapplication.h>
34#endif 34#endif
35#include <qdatetime.h> 35#include <qdatetime.h>
36#include "calendarview.h" 36#include "calendarview.h"
37#include "datenavigator.h" 37#include "datenavigator.h"
38#include "kotodoview.h" 38#include "kotodoview.h"
39#include "koagendaview.h" 39#include "koagendaview.h"
40#include "kodialogmanager.h" 40#include "kodialogmanager.h"
41#include "komonthview.h" 41#include "komonthview.h"
42#include "kolistview.h" 42#include "kolistview.h"
43#include "kowhatsnextview.h" 43#include "kowhatsnextview.h"
44#include "kojournalview.h" 44#include "kojournalview.h"
45#include "kotimespanview.h" 45#include "kotimespanview.h"
46#include "koprefs.h" 46#include "koprefs.h"
47#include "navigatorbar.h" 47#include "navigatorbar.h"
48#include "kdatenavigator.h" 48#include "kdatenavigator.h"
49 49
50#include "koviewmanager.h" 50#include "koviewmanager.h"
51//extern bool externFlagMonthviewBlockPainting; 51//extern bool externFlagMonthviewBlockPainting;
52 52
53//bool globalFlagBlockPainting = false; 53//bool globalFlagBlockPainting = false;
54int globalFlagBlockAgenda = 0; 54int globalFlagBlockAgenda = 0;
55int globalFlagBlockLabel = 0; 55int globalFlagBlockLabel = 0;
56int globalFlagBlockAgendaItemPaint = 1; 56int globalFlagBlockAgendaItemPaint = 1;
57int globalFlagBlockAgendaItemUpdate = 1; 57int globalFlagBlockAgendaItemUpdate = 1;
58 58
59 59
60KOViewManager::KOViewManager( CalendarView *mainView ) : 60KOViewManager::KOViewManager( CalendarView *mainView ) :
61 QObject(), mMainView( mainView ) 61 QObject(), mMainView( mainView )
62{ 62{
63 mCurrentView = 0; 63 mCurrentView = 0;
64 64
65 mWhatsNextView = 0; 65 mWhatsNextView = 0;
66 mTodoView = 0; 66 mTodoView = 0;
67 mAgendaView = 0; 67 mAgendaView = 0;
68 mMonthView = 0; 68 mMonthView = 0;
69 mListView = 0; 69 mListView = 0;
70 mJournalView = 0; 70 mJournalView = 0;
71 mTimeSpanView = 0; 71 mTimeSpanView = 0;
72 mCurrentAgendaView = 0 ; 72 mCurrentAgendaView = 0 ;
73 mFlagShowNextxDays = false; 73 mFlagShowNextxDays = false;
74} 74}
75 75
76KOViewManager::~KOViewManager() 76KOViewManager::~KOViewManager()
77{ 77{
78} 78}
79 79
80 80
81KOrg::BaseView *KOViewManager::currentView() 81KOrg::BaseView *KOViewManager::currentView()
82{ 82{
83 return mCurrentView; 83 return mCurrentView;
84} 84}
85 85
86void KOViewManager::readSettings(KConfig *config) 86void KOViewManager::readSettings(KConfig *config)
87{ 87{
88 config->setGroup("General"); 88 config->setGroup("General");
89 QString view = config->readEntry("Current View"); 89 QString view = config->readEntry("Current View");
90 if (view == "WhatsNext") showWhatsNextView(); 90 if (view == "WhatsNext") showWhatsNextView();
91 else if (view == "Month") { 91 else if (view == "Month") {
92 if ( !KOPrefs::instance()->mMonthViewWeek ) 92 if ( !KOPrefs::instance()->mMonthViewWeek )
93 showMonthView(); 93 showMonthView();
94 else 94 else
95 showMonthViewWeek(); 95 showMonthViewWeek();
96 } 96 }
97 else if (view == "List") showListView(); 97 else if (view == "List") showListView();
98 else if (view == "Journal") showJournalView(); 98 else if (view == "Journal") showJournalView();
99 else if (view == "TimeSpan") showTimeSpanView(); 99 else if (view == "TimeSpan") showTimeSpanView();
100 else if (view == "Todo") showTodoView(); 100 else if (view == "Todo") showTodoView();
101 else { 101 else {
102 config->setGroup( "Views" ); 102 config->setGroup( "Views" );
103 int dateCount = config->readNumEntry( "ShownDatesCount", 7 ); 103 int dateCount = config->readNumEntry( "ShownDatesCount", 7 );
104 mCurrentAgendaView = dateCount; 104 mCurrentAgendaView = dateCount;
105 showAgendaView(); 105 showAgendaView();
106 mCurrentAgendaView = dateCount; 106 mCurrentAgendaView = dateCount;
107#ifdef DESKTOP_VERSION 107#ifdef DESKTOP_VERSION
108 QTimer::singleShot( 1000, mAgendaView, SLOT ( setInitStartHour() ) ); 108 QTimer::singleShot( 1000, mAgendaView, SLOT ( setInitStartHour() ) );
109#endif 109#endif
110 } 110 }
111} 111}
112 112
113void KOViewManager::showDateView( int view, QDate date) 113void KOViewManager::showDateView( int view, QDate date)
114{ 114{
115 static int lastMode = 0; 115 static int lastMode = 0;
116 static int lastCount = 0; 116 static int lastCount = 0;
117 static bool lastNDMode = false; 117 static bool lastNDMode = false;
118 static QDate lastDate; 118 static QDate lastDate;
119 //qDebug("date %d %s", view, date.toString().latin1()); 119 //qDebug("date %d %s", view, date.toString().latin1());
120 120
121 if (view != 9) 121 if (view != 9)
122 lastMode = 0; 122 lastMode = 0;
123 //qDebug("%d %d ", lastNDMode, mFlagShowNextxDays ); 123 //qDebug("%d %d ", lastNDMode, mFlagShowNextxDays );
124 bool savemFlagShowNextxDays = mFlagShowNextxDays; 124 bool savemFlagShowNextxDays = mFlagShowNextxDays;
125 mFlagShowNextxDays = false; 125 mFlagShowNextxDays = false;
126 if ( view == 3 ) { 126 if ( view == 3 ) {
127 //mCurrentAgendaView = 1 ; 127 //mCurrentAgendaView = 1 ;
128 lastDate = mMainView->dateNavigator()->selectedDates().first(); 128 lastDate = mMainView->dateNavigator()->selectedDates().first();
129 lastCount = mMainView->dateNavigator()->selectedDates().count(); 129 lastCount = mMainView->dateNavigator()->selectedDates().count();
130 lastNDMode = savemFlagShowNextxDays; 130 lastNDMode = savemFlagShowNextxDays;
131 mMainView->showDay( date ); 131 mMainView->showDay( date );
132 lastMode = 1; 132 lastMode = 1;
133 } else if (view == 4 ) { 133 } else if (view == 4 ) {
134 mCurrentAgendaView = 7 ; 134 mCurrentAgendaView = 7 ;
135 mMainView->dateNavigator()->selectDates( date, 7 ); 135 mMainView->dateNavigator()->selectDates( date, 7 );
136 } else if (view == 5 ) { 136 } else if (view == 5 ) {
137 mCurrentAgendaView = 14 ; 137 mCurrentAgendaView = 14 ;
138 mMainView->dateNavigator()->selectDates( date, 14); 138 mMainView->dateNavigator()->selectDates( date, 14);
139 } else if (view == 6 ) { 139 } else if (view == 6 ) {
140 //mMainView->dateNavigator()->selectDates( date, 7 ); 140 //mMainView->dateNavigator()->selectDates( date, 7 );
141 showMonthView(); 141 showMonthView();
142 } else if (view == 7 ) { 142 } else if (view == 7 ) {
143 mMainView->dateNavigator()->selectDate( date ); 143 mMainView->dateNavigator()->selectDate( date );
144 showJournalView(); 144 showJournalView();
145 } else if (view == 8 ) { 145 } else if (view == 8 ) {
146 globalFlagBlockAgenda = 1; 146 globalFlagBlockAgenda = 1;
147 if ( mCurrentAgendaView != 3 ) 147 if ( mCurrentAgendaView != 3 )
148 mCurrentAgendaView = -1; 148 mCurrentAgendaView = -1;
149 showAgendaView(KOPrefs::instance()->mFullViewMonth); 149 showAgendaView(KOPrefs::instance()->mFullViewMonth);
150 globalFlagBlockAgenda = 2; 150 globalFlagBlockAgenda = 2;
151 mMainView->dateNavigator()->selectDates( date , 151 mMainView->dateNavigator()->selectDates( date ,
152 KOPrefs::instance()->mNextXDays ); 152 KOPrefs::instance()->mNextXDays );
153 mFlagShowNextxDays = true; 153 mFlagShowNextxDays = true;
154 mCurrentAgendaView = 3 ; 154 mCurrentAgendaView = 3 ;
155 } if (view == 9) { // return behaviour, for getting back from mode == 3 (single day mode ) 155 } if (view == 9) { // return behaviour, for getting back from mode == 3 (single day mode )
156 if ( lastMode ) { 156 if ( lastMode ) {
157 mCurrentAgendaView = lastCount ; 157 mCurrentAgendaView = lastCount ;
158 mMainView->dateNavigator()->selectDates( lastDate, lastCount); 158 mMainView->dateNavigator()->selectDates( lastDate, lastCount);
159 mFlagShowNextxDays = lastNDMode; 159 mFlagShowNextxDays = lastNDMode;
160 if ( mFlagShowNextxDays ) { 160 if ( mFlagShowNextxDays ) {
161 mCurrentAgendaView = 3 ; 161 mCurrentAgendaView = 3 ;
162 } 162 }
163 } else 163 } else
164 showWeekView(); 164 showWeekView();
165 } else if (view == 10) { 165 } else if (view == 10) {
166 mMainView->dateNavigator()->selectDates( date,mMainView->dateNavigator()->selectedDates().count() ); 166 mMainView->dateNavigator()->selectDates( date,mMainView->dateNavigator()->selectedDates().count() );
167 } 167 }
168} 168}
169 169
170 170
171 171
172void KOViewManager::writeSettings(KConfig *config) 172void KOViewManager::writeSettings(KConfig *config)
173{ 173{
174 config->setGroup("General"); 174 config->setGroup("General");
175 175
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
201void KOViewManager::showView(KOrg::BaseView *view, bool fullScreen ) 201void 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
236void KOViewManager::raiseCurrentView( bool fullScreen, bool callUpdateView ) 236void 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
273void KOViewManager::updateView() 273void 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
283void KOViewManager::updateView(const QDate &start, const QDate &end) 283void 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
293void KOViewManager::updateWNview() 293void KOViewManager::updateWNview()
294{ 294{
295 if ( mCurrentView == mWhatsNextView && mWhatsNextView ) 295 if ( mCurrentView == mWhatsNextView && mWhatsNextView )
296 mWhatsNextView->updateView(); 296 mWhatsNextView->updateView();
297 297
298} 298}
299void KOViewManager::showWhatsNextView() 299void 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
316void KOViewManager::showListView() 316void 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
354void KOViewManager::showAgendaView( bool fullScreen ) 354void 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
422void KOViewManager::showDayView() 422void 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
438void KOViewManager::showWorkWeekView() 438void 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
454void KOViewManager::showWeekView() 454void 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
478void KOViewManager::showNextXView() 478void 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}
491bool KOViewManager::showsNextDays() 491bool KOViewManager::showsNextDays()
492{ 492{
493 return mFlagShowNextxDays; 493 return mFlagShowNextxDays;
494} 494}
495void KOViewManager::createMonthView() 495void KOViewManager::createMonthView()
496{ 496{
497if (!mMonthView) { 497if (!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}
557void KOViewManager::showMonthViewWeek() 557void 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
574void KOViewManager::showMonthView() 575void 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
597void KOViewManager::showTodoView() 598void 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
652void KOViewManager::showJournalView() 653void 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
668void KOViewManager::showTimeSpanView() 669void 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
682Incidence *KOViewManager::currentSelection() 683Incidence *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
692QDate KOViewManager::currentSelectionDate() 693QDate 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
702void KOViewManager::addView(KOrg::BaseView *view) 703void 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
711void KOViewManager::setDocumentId( const QString &id ) 712void KOViewManager::setDocumentId( const QString &id )
712{ 713{
713 if (mTodoView) mTodoView->setDocumentId( id ); 714 if (mTodoView) mTodoView->setDocumentId( id );
714} 715}