author | zautrix <zautrix> | 2005-02-19 16:07:52 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-19 16:07:52 (UTC) |
commit | e15d171a0630656b6e4a66d6cab6a7d64a37434b (patch) (unidiff) | |
tree | f406dd7fc0d4300f18294bc7fbe7b06ab4524481 | |
parent | 4858dcb045afc57ce98877cca787c4430146bea8 (diff) | |
download | kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.zip kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.tar.gz kdepimpi-e15d171a0630656b6e4a66d6cab6a7d64a37434b.tar.bz2 |
mday mv fix
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 4 | ||||
-rw-r--r-- | desktop/rpm/kdepim_rpm | 2 | ||||
-rw-r--r-- | korganizer/komonthview.cpp | 8 | ||||
-rw-r--r-- | version | 2 |
4 files changed, 11 insertions, 5 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 01d9e27..3c757a1 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,194 +1,198 @@ | |||
1 | Info about the changes in new versions of KDE-Pim/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | 2 | ||
3 | ********** VERSION 2.0.9 ************ | ||
4 | |||
5 | Made month view icons for multiday events a bit nicer. | ||
6 | |||
3 | ********** VERSION 2.0.8 ************ | 7 | ********** VERSION 2.0.8 ************ |
4 | 8 | ||
5 | Fixed a problem in dependency info in the ipk files for the Zaurus. | 9 | Fixed a problem in dependency info in the ipk files for the Zaurus. |
6 | 10 | ||
7 | Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. | 11 | Added icon for the stealth new week view and made navigation more user friendly in monthview by adding a prev/next week button to the navigator bar. |
8 | 12 | ||
9 | Added a "go today" button to the datepicker. | 13 | Added a "go today" button to the datepicker. |
10 | 14 | ||
11 | Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) | 15 | Added "created" and "last modified" to event/todo viewer (and What'sThis viewer) |
12 | and made it configureable to show these values. | 16 | and made it configureable to show these values. |
13 | 17 | ||
14 | Fixed a problem for events (from external iCal files) that do have a duration but no end date. | 18 | Fixed a problem for events (from external iCal files) that do have a duration but no end date. |
15 | 19 | ||
16 | 20 | ||
17 | ********** VERSION 2.0.7 ************ | 21 | ********** VERSION 2.0.7 ************ |
18 | 22 | ||
19 | Added global application font settings | 23 | Added global application font settings |
20 | (for all KDE-Pim/Pi apps) to the general settings. | 24 | (for all KDE-Pim/Pi apps) to the general settings. |
21 | 25 | ||
22 | Fixed a problem in OM/Pi when trying to login to some IMAP servers | 26 | Fixed a problem in OM/Pi when trying to login to some IMAP servers |
23 | (like the IMAP server of Apple: mail.mac.com ) | 27 | (like the IMAP server of Apple: mail.mac.com ) |
24 | 28 | ||
25 | Added recurring todos to KO/Pi. | 29 | Added recurring todos to KO/Pi. |
26 | 30 | ||
27 | 31 | ||
28 | ********** VERSION 2.0.6 ************ | 32 | ********** VERSION 2.0.6 ************ |
29 | 33 | ||
30 | Some bugfixes in the pi-sync mode. | 34 | Some bugfixes in the pi-sync mode. |
31 | Added German translation for pi-sync mode. | 35 | Added German translation for pi-sync mode. |
32 | 36 | ||
33 | KO/Pi: | 37 | KO/Pi: |
34 | Made the todolist using alternate background. | 38 | Made the todolist using alternate background. |
35 | 39 | ||
36 | Other minor fixes in KO/Pi. | 40 | Other minor fixes in KO/Pi. |
37 | 41 | ||
38 | 42 | ||
39 | ********** VERSION 2.0.5 ************ | 43 | ********** VERSION 2.0.5 ************ |
40 | 44 | ||
41 | Bugfixes in KO/Pi. | 45 | Bugfixes in KO/Pi. |
42 | 46 | ||
43 | ********** VERSION 2.0.4 ************ | 47 | ********** VERSION 2.0.4 ************ |
44 | 48 | ||
45 | KO/Pi: | 49 | KO/Pi: |
46 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. | 50 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. |
47 | 51 | ||
48 | Added a general "select week number" to the toolbar. | 52 | Added a general "select week number" to the toolbar. |
49 | 53 | ||
50 | Fixed some small problem of the new features introduced in version 2.0.3. | 54 | Fixed some small problem of the new features introduced in version 2.0.3. |
51 | 55 | ||
52 | Made it possible to specify one specific category as category color, | 56 | Made it possible to specify one specific category as category color, |
53 | if more than one categories are selected. | 57 | if more than one categories are selected. |
54 | 58 | ||
55 | Fixed a bug in saving colors for categories with non-ascii characters. | 59 | Fixed a bug in saving colors for categories with non-ascii characters. |
56 | (Like, e.g. German Umlauts). | 60 | (Like, e.g. German Umlauts). |
57 | Propably you have to set your colors again for those categories. | 61 | Propably you have to set your colors again for those categories. |
58 | 62 | ||
59 | 63 | ||
60 | ********** VERSION 2.0.3 ************ | 64 | ********** VERSION 2.0.3 ************ |
61 | 65 | ||
62 | KO/Pi: | 66 | KO/Pi: |
63 | Added feature for changing alarm settings for many items at once: | 67 | Added feature for changing alarm settings for many items at once: |
64 | Open list view (or search dialog), select the desired items and choose in | 68 | Open list view (or search dialog), select the desired items and choose in |
65 | the popup menu: Set alarm for selected... | 69 | the popup menu: Set alarm for selected... |
66 | 70 | ||
67 | Added to the event/todo viewer the option to send an email to | 71 | Added to the event/todo viewer the option to send an email to |
68 | all attendees or all selected (with RSVP) attendees. | 72 | all attendees or all selected (with RSVP) attendees. |
69 | 73 | ||
70 | Made the week-month mode changing in month view faster. | 74 | Made the week-month mode changing in month view faster. |
71 | 75 | ||
72 | Made month view better useable with keyboard. | 76 | Made month view better useable with keyboard. |
73 | Now TAB key jumps to next cell with an event/todo. | 77 | Now TAB key jumps to next cell with an event/todo. |
74 | Scroll in cell with coursor keys, scroll in time (next week) with | 78 | Scroll in cell with coursor keys, scroll in time (next week) with |
75 | Shift/Control + coursorkeys. | 79 | Shift/Control + coursorkeys. |
76 | 80 | ||
77 | Fixed bug that the todo view flat mode was reset after first view update. | 81 | Fixed bug that the todo view flat mode was reset after first view update. |
78 | 82 | ||
79 | If a todo is displayed closed in the todo view, | 83 | If a todo is displayed closed in the todo view, |
80 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. | 84 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. |
81 | 85 | ||
82 | Added info about the numbers of years to the caption (title) information about a birthday event. | 86 | Added info about the numbers of years to the caption (title) information about a birthday event. |
83 | 87 | ||
84 | Made completion date in todo editor editable. | 88 | Made completion date in todo editor editable. |
85 | 89 | ||
86 | Added possibility to save/load templates for journals. | 90 | Added possibility to save/load templates for journals. |
87 | (Which is just a simple "save text to file" or "insert text from file". | 91 | (Which is just a simple "save text to file" or "insert text from file". |
88 | 92 | ||
89 | ********** VERSION 2.0.2 ************ | 93 | ********** VERSION 2.0.2 ************ |
90 | 94 | ||
91 | KO/Pi: | 95 | KO/Pi: |
92 | Fixed the layout problem of the day label buttons | 96 | Fixed the layout problem of the day label buttons |
93 | of the agenda view introduced in version 2.0.1. | 97 | of the agenda view introduced in version 2.0.1. |
94 | 98 | ||
95 | Added WhatsThis support for the todo view and the list view. | 99 | Added WhatsThis support for the todo view and the list view. |
96 | 100 | ||
97 | Added a quite useful feature to the montview. | 101 | Added a quite useful feature to the montview. |
98 | Just click on the week numbers on the left. | 102 | Just click on the week numbers on the left. |
99 | And in the top right corner of month view/agenda view | 103 | And in the top right corner of month view/agenda view |
100 | there is now a "week number quick selector". | 104 | there is now a "week number quick selector". |
101 | (Click on the black triangle). | 105 | (Click on the black triangle). |
102 | 106 | ||
103 | Made the quite difficult timezone change in KO/Pi easy. | 107 | Made the quite difficult timezone change in KO/Pi easy. |
104 | 108 | ||
105 | OM/Pi: | 109 | OM/Pi: |
106 | Fixed too small icons on desktop. | 110 | Fixed too small icons on desktop. |
107 | Fixed non visible icons in mainwindow on Z with fastload enabled. | 111 | Fixed non visible icons in mainwindow on Z with fastload enabled. |
108 | Added signature file setting to smtp account config. | 112 | Added signature file setting to smtp account config. |
109 | And the signature can be edited and saved in the edit mail dialog. | 113 | And the signature can be edited and saved in the edit mail dialog. |
110 | That does mean: | 114 | That does mean: |
111 | Simply edit the signature for the selected smtp account in the | 115 | Simply edit the signature for the selected smtp account in the |
112 | edit new mail dialog and press the "save signature" button there. | 116 | edit new mail dialog and press the "save signature" button there. |
113 | Then the signature is saved to the file specified in the smtp account settings. | 117 | Then the signature is saved to the file specified in the smtp account settings. |
114 | If there is no file specified, it is saved automatically to the file | 118 | If there is no file specified, it is saved automatically to the file |
115 | kdepim/apps/kopiemail/<accountname>.sig. | 119 | kdepim/apps/kopiemail/<accountname>.sig. |
116 | 120 | ||
117 | 121 | ||
118 | 122 | ||
119 | ********** VERSION 2.0.1 ************ | 123 | ********** VERSION 2.0.1 ************ |
120 | 124 | ||
121 | Oooops ... I forgot to test on the Zaurus 5500 ... | 125 | Oooops ... I forgot to test on the Zaurus 5500 ... |
122 | 126 | ||
123 | Fixed many problems of new (english) strings (and german translations) | 127 | Fixed many problems of new (english) strings (and german translations) |
124 | introduced in the latest versions, where the text was not fitting on the | 128 | introduced in the latest versions, where the text was not fitting on the |
125 | 240x320 display of the Zaurus 5500. | 129 | 240x320 display of the Zaurus 5500. |
126 | 130 | ||
127 | KO/Pi: | 131 | KO/Pi: |
128 | Added a popup menu ( press pen and hold to get popup ) to the agenda view | 132 | Added a popup menu ( press pen and hold to get popup ) to the agenda view |
129 | with many useful items (add event/todo, show next week, two weeks, month, journal). | 133 | with many useful items (add event/todo, show next week, two weeks, month, journal). |
130 | 134 | ||
131 | Added items to the todolist popup menu for: | 135 | Added items to the todolist popup menu for: |
132 | Display all opened, all closed or all todos flat. | 136 | Display all opened, all closed or all todos flat. |
133 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. | 137 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. |
134 | Made the reparenting of todos on the desktop possible via Drag&Drop. | 138 | Made the reparenting of todos on the desktop possible via Drag&Drop. |
135 | Fixed several bugs in setting the completed datetime for todos. | 139 | Fixed several bugs in setting the completed datetime for todos. |
136 | Added info about completed datetime of todos to the todo viewer. | 140 | Added info about completed datetime of todos to the todo viewer. |
137 | Now displaying a completed todo (with completed datetime set) in the agenda view | 141 | Now displaying a completed todo (with completed datetime set) in the agenda view |
138 | at the time of the completion. Such that now it is possible to see in the agenda view | 142 | at the time of the completion. Such that now it is possible to see in the agenda view |
139 | when what todo was completed. | 143 | when what todo was completed. |
140 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. | 144 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. |
141 | Now the behaviour is: | 145 | Now the behaviour is: |
142 | Setting a parent to complete sets all (sub)childs to complete. | 146 | Setting a parent to complete sets all (sub)childs to complete. |
143 | Setting a parent to uncomplete does not change the childs. | 147 | Setting a parent to uncomplete does not change the childs. |
144 | Setting a child to uncomplete sets all parent to uncomplete. | 148 | Setting a child to uncomplete sets all parent to uncomplete. |
145 | Setting a child to complete does not change the parents. | 149 | Setting a child to complete does not change the parents. |
146 | 150 | ||
147 | Smart updating and double buffering of the daymatrix. | 151 | Smart updating and double buffering of the daymatrix. |
148 | Showing holidays in the day matrix. | 152 | Showing holidays in the day matrix. |
149 | Many other small performance updates. | 153 | Many other small performance updates. |
150 | 154 | ||
151 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. | 155 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. |
152 | 156 | ||
153 | Now the translation file usertranslation.txt is supposed to be in utf8 format. | 157 | Now the translation file usertranslation.txt is supposed to be in utf8 format. |
154 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. | 158 | If you want to translate a language from western europe, just change the germantranslation.txt file. Please read the updated Usertranslation HowTo in KO/Pi Help menu. |
155 | 159 | ||
156 | 160 | ||
157 | ********** VERSION 2.0.0 ************ | 161 | ********** VERSION 2.0.0 ************ |
158 | 162 | ||
159 | Stable release 2.0.0! | 163 | Stable release 2.0.0! |
160 | 164 | ||
161 | KO/Pi: | 165 | KO/Pi: |
162 | Fixed problem in edit dialog recreation at startup. | 166 | Fixed problem in edit dialog recreation at startup. |
163 | Made "toggle view*" menu items enabled context sensitive. | 167 | Made "toggle view*" menu items enabled context sensitive. |
164 | Changed agenda size menu to items 1-10. | 168 | Changed agenda size menu to items 1-10. |
165 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 169 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
166 | Usebility enhancements in the KO/Pi menus. | 170 | Usebility enhancements in the KO/Pi menus. |
167 | Birthday import now adds year to summary. | 171 | Birthday import now adds year to summary. |
168 | What's Next view shows age in years for birthday. | 172 | What's Next view shows age in years for birthday. |
169 | 173 | ||
170 | OM/Pi: | 174 | OM/Pi: |
171 | Added three info lines to display subject, from and to of selected mails. | 175 | Added three info lines to display subject, from and to of selected mails. |
172 | 176 | ||
173 | KA/Pi: | 177 | KA/Pi: |
174 | Fixed jump bar behaviour on Zaurus. | 178 | Fixed jump bar behaviour on Zaurus. |
175 | Now KA/Pi search field supports searching for a range of starting characters. | 179 | Now KA/Pi search field supports searching for a range of starting characters. |
176 | E.g. to search for all contact beginning with b to n, type | 180 | E.g. to search for all contact beginning with b to n, type |
177 | b-n | 181 | b-n |
178 | in the search field. | 182 | in the search field. |
179 | 183 | ||
180 | ********** VERSION 1.9.20 ************ | 184 | ********** VERSION 1.9.20 ************ |
181 | 185 | ||
182 | KO/Pi: | 186 | KO/Pi: |
183 | Added for the "dislplay one day" agenda mode | 187 | Added for the "dislplay one day" agenda mode |
184 | info in the caption and in the day lables: | 188 | info in the caption and in the day lables: |
185 | Now it is displayed, if the selected day is from "day before yesterday" | 189 | Now it is displayed, if the selected day is from "day before yesterday" |
186 | to "day after tomorrow". | 190 | to "day after tomorrow". |
187 | Made it possible to delete a Todo, which has sub-todos. | 191 | Made it possible to delete a Todo, which has sub-todos. |
188 | Fixed two small problems in the todo view. | 192 | Fixed two small problems in the todo view. |
189 | Added missing German translation for filter edit and print dialog. | 193 | Added missing German translation for filter edit and print dialog. |
190 | Made search dialog closeable by cancel key. | 194 | Made search dialog closeable by cancel key. |
191 | 195 | ||
192 | Made it possible to select in the date picker the (ligt grey ) | 196 | Made it possible to select in the date picker the (ligt grey ) |
193 | dates of the prev./next month with the mouse. | 197 | dates of the prev./next month with the mouse. |
194 | 198 | ||
diff --git a/desktop/rpm/kdepim_rpm b/desktop/rpm/kdepim_rpm index 4d81192..05f61c4 100644 --- a/desktop/rpm/kdepim_rpm +++ b/desktop/rpm/kdepim_rpm | |||
@@ -1,84 +1,84 @@ | |||
1 | Summary: A collection of PIM programs | 1 | Summary: A collection of PIM programs |
2 | Name: KDE-Pim-Pi | 2 | Name: KDE-Pim-Pi |
3 | Version: 2.0.8 | 3 | Version: 2.0.9 |
4 | Release: SuSE_9.2 | 4 | Release: SuSE_9.2 |
5 | Copyright:GPL | 5 | Copyright:GPL |
6 | Group: Productivity/Pim | 6 | Group: Productivity/Pim |
7 | Source:http://sourceforge.net/projects/kdepimpi/ | 7 | Source:http://sourceforge.net/projects/kdepimpi/ |
8 | URL:http://sourceforge.net/projects/kdepimpi/ | 8 | URL:http://sourceforge.net/projects/kdepimpi/ |
9 | Packager: zautrix | 9 | Packager: zautrix |
10 | 10 | ||
11 | %description | 11 | %description |
12 | This package contains the platform-independent PIM programs from | 12 | This package contains the platform-independent PIM programs from |
13 | www.pi-sync.net, compiled for SuSE 9.2: | 13 | www.pi-sync.net, compiled for SuSE 9.2: |
14 | KTimeTacker/Pi | 14 | KTimeTacker/Pi |
15 | KPhone/Pi | 15 | KPhone/Pi |
16 | KAddressbook/Pi | 16 | KAddressbook/Pi |
17 | KOrganizer/Pi | 17 | KOrganizer/Pi |
18 | PasswordManager/Pi | 18 | PasswordManager/Pi |
19 | KOPieMail/Pi | 19 | KOPieMail/Pi |
20 | 20 | ||
21 | These applications do not need anything from the KDE-desktop | 21 | These applications do not need anything from the KDE-desktop |
22 | at all to run on Linux. However, there is a dependency from | 22 | at all to run on Linux. However, there is a dependency from |
23 | two KDE libs, because a small command line program is included | 23 | two KDE libs, because a small command line program is included |
24 | to make it possible to sync with the KDE-desktop applications. | 24 | to make it possible to sync with the KDE-desktop applications. |
25 | 25 | ||
26 | These applications are independent from the KDE-desktop | 26 | These applications are independent from the KDE-desktop |
27 | environment. That means, nothing of your existing | 27 | environment. That means, nothing of your existing |
28 | KDE-desktop setup will be changed, or any data | 28 | KDE-desktop setup will be changed, or any data |
29 | (calendar-addressbook) used by the KDE-desktop | 29 | (calendar-addressbook) used by the KDE-desktop |
30 | applications will be changed or accessed. | 30 | applications will be changed or accessed. |
31 | These applications stores their data and config in | 31 | These applications stores their data and config in |
32 | $HOME/kdepim/ | 32 | $HOME/kdepim/ |
33 | However, because the same file format is used, | 33 | However, because the same file format is used, |
34 | an easy exchange of data with the KDE-desktop | 34 | an easy exchange of data with the KDE-desktop |
35 | is possible. | 35 | is possible. |
36 | A small command line program is included | 36 | A small command line program is included |
37 | to make it possible to sync with the KDE-desktop applications. | 37 | to make it possible to sync with the KDE-desktop applications. |
38 | You do not need to call this program from the commandline, | 38 | You do not need to call this program from the commandline, |
39 | it is called from the KDE-Pim/Pi apps when you choose there: | 39 | it is called from the KDE-Pim/Pi apps when you choose there: |
40 | Sync with KDE_Desktop. | 40 | Sync with KDE_Desktop. |
41 | If something is going wrong, please start the | 41 | If something is going wrong, please start the |
42 | KDE-Pim/Pi program itself from the console to get detailed output. | 42 | KDE-Pim/Pi program itself from the console to get detailed output. |
43 | 43 | ||
44 | After installation, you should have a | 44 | After installation, you should have a |
45 | PIM-pi | 45 | PIM-pi |
46 | folder in your KDE start menu, where you can | 46 | folder in your KDE start menu, where you can |
47 | start the applications from. | 47 | start the applications from. |
48 | 48 | ||
49 | These programs makes it possible to sync your Zaurus easily | 49 | These programs makes it possible to sync your Zaurus easily |
50 | (with the KDE-Pim/Pi programs running on the Zaurus) | 50 | (with the KDE-Pim/Pi programs running on the Zaurus) |
51 | with the KDE-desktop calendar/addressbook data. | 51 | with the KDE-desktop calendar/addressbook data. |
52 | If you want to use that, you have to update your | 52 | If you want to use that, you have to update your |
53 | KDE-desktop to version 3.3.0 or higher. | 53 | KDE-desktop to version 3.3.0 or higher. |
54 | SuSE 9.2 contains KDE 3.3.0 such that no update is needed. | 54 | SuSE 9.2 contains KDE 3.3.0 such that no update is needed. |
55 | Actually - after the (non difficult) configuration is set up - | 55 | Actually - after the (non difficult) configuration is set up - |
56 | with two mouseklicks on the Zaurus, | 56 | with two mouseklicks on the Zaurus, |
57 | the Zaurus syncs with the corresponding KDE-Pim/Pi | 57 | the Zaurus syncs with the corresponding KDE-Pim/Pi |
58 | program on the Linux Desktop which syncs automatically | 58 | program on the Linux Desktop which syncs automatically |
59 | with the KDE-desktop data. | 59 | with the KDE-desktop data. |
60 | 60 | ||
61 | If you want to use the KDE-desktop calendar/addressbook applications, | 61 | If you want to use the KDE-desktop calendar/addressbook applications, |
62 | just install these apps in this package and use them as a syncing tool for the | 62 | just install these apps in this package and use them as a syncing tool for the |
63 | Zaurus <-> KDE-desktop sync. | 63 | Zaurus <-> KDE-desktop sync. |
64 | The sync requires a network connection from your Zaurus to | 64 | The sync requires a network connection from your Zaurus to |
65 | the PC. A detailed Sync HowTo is available in the | 65 | the PC. A detailed Sync HowTo is available in the |
66 | Help menu of the applications. | 66 | Help menu of the applications. |
67 | 67 | ||
68 | These applications makes it also possible, that you can sync | 68 | These applications makes it also possible, that you can sync |
69 | (or just export the data to) your mobile phone with your | 69 | (or just export the data to) your mobile phone with your |
70 | data of the KDE-desktop calendar/addressbook applications. | 70 | data of the KDE-desktop calendar/addressbook applications. |
71 | This is tested and working for Nokia mobile phones, | 71 | This is tested and working for Nokia mobile phones, |
72 | it may work with others as well. | 72 | it may work with others as well. |
73 | (More info about that: -> Sync HowTo) | 73 | (More info about that: -> Sync HowTo) |
74 | 74 | ||
75 | NOTE: | 75 | NOTE: |
76 | When using SuSE 9.1 you have to update your KDE to 3.3.x | 76 | When using SuSE 9.1 you have to update your KDE to 3.3.x |
77 | and you have to make an online update in SuSE 9.1 to make it | 77 | and you have to make an online update in SuSE 9.1 to make it |
78 | possible to get the infrared connection working, such that | 78 | possible to get the infrared connection working, such that |
79 | you can sync your (Nokia) mobile phone via infrared. | 79 | you can sync your (Nokia) mobile phone via infrared. |
80 | 80 | ||
81 | %files | 81 | %files |
82 | /opt/kde3/share/applnk/PIM-pi/ | 82 | /opt/kde3/share/applnk/PIM-pi/ |
83 | /opt/kdepimpi/ | 83 | /opt/kdepimpi/ |
84 | /usr/lib/libmicro* | 84 | /usr/lib/libmicro* |
diff --git a/korganizer/komonthview.cpp b/korganizer/komonthview.cpp index f558084..ddac6e4 100644 --- a/korganizer/komonthview.cpp +++ b/korganizer/komonthview.cpp | |||
@@ -59,405 +59,407 @@ | |||
59 | #ifdef DESKTOP_VERSION | 59 | #ifdef DESKTOP_VERSION |
60 | QToolTipGroup *MonthViewCell::mToolTipGroup = 0; | 60 | QToolTipGroup *MonthViewCell::mToolTipGroup = 0; |
61 | #endif | 61 | #endif |
62 | class KNOWhatsThis :public QWhatsThis | 62 | class KNOWhatsThis :public QWhatsThis |
63 | { | 63 | { |
64 | public: | 64 | public: |
65 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; | 65 | KNOWhatsThis( KNoScrollListBox* sbox ) : QWhatsThis( sbox ), _wid( sbox) { }; |
66 | //~KNOWhatsThis( ) {qDebug("~KNOWhatsThis( ) "); }; | 66 | //~KNOWhatsThis( ) {qDebug("~KNOWhatsThis( ) "); }; |
67 | 67 | ||
68 | protected: | 68 | protected: |
69 | virtual QString text( const QPoint& p) | 69 | virtual QString text( const QPoint& p) |
70 | { | 70 | { |
71 | return _wid->getWhatsThisText(p) ; | 71 | return _wid->getWhatsThisText(p) ; |
72 | }; | 72 | }; |
73 | private: | 73 | private: |
74 | KNoScrollListBox* _wid; | 74 | KNoScrollListBox* _wid; |
75 | 75 | ||
76 | }; | 76 | }; |
77 | 77 | ||
78 | 78 | ||
79 | KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name) | 79 | KNoScrollListBox::KNoScrollListBox(QWidget *parent,const char *name) |
80 | : QListBox(parent, name, WRepaintNoErase) | 80 | : QListBox(parent, name, WRepaintNoErase) |
81 | { | 81 | { |
82 | #ifndef DESKTOP_VERSION | 82 | #ifndef DESKTOP_VERSION |
83 | QPEApplication::setStylusOperation( viewport(), QPEApplication::RightOnHold ); | 83 | QPEApplication::setStylusOperation( viewport(), QPEApplication::RightOnHold ); |
84 | #endif | 84 | #endif |
85 | mWT = new KNOWhatsThis(this); | 85 | mWT = new KNOWhatsThis(this); |
86 | } | 86 | } |
87 | KNoScrollListBox::~KNoScrollListBox() | 87 | KNoScrollListBox::~KNoScrollListBox() |
88 | { | 88 | { |
89 | 89 | ||
90 | } | 90 | } |
91 | QString KNoScrollListBox::getWhatsThisText(QPoint p) | 91 | QString KNoScrollListBox::getWhatsThisText(QPoint p) |
92 | { | 92 | { |
93 | QListBoxItem* item = itemAt ( p ); | 93 | QListBoxItem* item = itemAt ( p ); |
94 | if ( ! item ) { | 94 | if ( ! item ) { |
95 | return i18n("Click in the cell\nto add an event!"); | 95 | return i18n("Click in the cell\nto add an event!"); |
96 | } | 96 | } |
97 | return KIncidenceFormatter::instance()->getFormattedText(((MonthViewItem*) item)->incidence(), | 97 | return KIncidenceFormatter::instance()->getFormattedText(((MonthViewItem*) item)->incidence(), |
98 | KOPrefs::instance()->mWTshowDetails, | 98 | KOPrefs::instance()->mWTshowDetails, |
99 | KOPrefs::instance()->mWTshowCreated, | 99 | KOPrefs::instance()->mWTshowCreated, |
100 | KOPrefs::instance()->mWTshowChanged); | 100 | KOPrefs::instance()->mWTshowChanged); |
101 | } | 101 | } |
102 | void KNoScrollListBox::keyPressEvent(QKeyEvent *e) | 102 | void KNoScrollListBox::keyPressEvent(QKeyEvent *e) |
103 | { | 103 | { |
104 | 104 | ||
105 | switch(e->key()) { | 105 | switch(e->key()) { |
106 | case Key_Right: | 106 | case Key_Right: |
107 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 107 | if ( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
108 | { | 108 | { |
109 | e->ignore(); | 109 | e->ignore(); |
110 | return; | 110 | return; |
111 | } | 111 | } |
112 | scrollBy(10,0); | 112 | scrollBy(10,0); |
113 | break; | 113 | break; |
114 | case Key_Left: | 114 | case Key_Left: |
115 | if (e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) | 115 | if (e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton ) |
116 | { | 116 | { |
117 | e->ignore(); | 117 | e->ignore(); |
118 | return; | 118 | return; |
119 | } | 119 | } |
120 | scrollBy(-10,0); | 120 | scrollBy(-10,0); |
121 | break; | 121 | break; |
122 | case Key_Up: | 122 | case Key_Up: |
123 | if( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) { | 123 | if( e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) { |
124 | e->ignore(); | 124 | e->ignore(); |
125 | break; | 125 | break; |
126 | } | 126 | } |
127 | setCurrentItem((currentItem()+count()-1)%count()); | 127 | setCurrentItem((currentItem()+count()-1)%count()); |
128 | if(!itemVisible(currentItem())) { | 128 | if(!itemVisible(currentItem())) { |
129 | if((unsigned int) currentItem() == (count()-1)) { | 129 | if((unsigned int) currentItem() == (count()-1)) { |
130 | setTopItem(currentItem()-numItemsVisible()+1); | 130 | setTopItem(currentItem()-numItemsVisible()+1); |
131 | } else { | 131 | } else { |
132 | setTopItem(topItem()-1); | 132 | setTopItem(topItem()-1); |
133 | } | 133 | } |
134 | } | 134 | } |
135 | break; | 135 | break; |
136 | case Key_Down: | 136 | case Key_Down: |
137 | if(e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) { | 137 | if(e->state() == Qt::ControlButton|| e->state() == Qt::ShiftButton) { |
138 | e->ignore(); | 138 | e->ignore(); |
139 | break; | 139 | break; |
140 | } | 140 | } |
141 | setCurrentItem((currentItem()+1)%count()); | 141 | setCurrentItem((currentItem()+1)%count()); |
142 | if(!itemVisible(currentItem())) { | 142 | if(!itemVisible(currentItem())) { |
143 | if(currentItem() == 0) { | 143 | if(currentItem() == 0) { |
144 | setTopItem(0); | 144 | setTopItem(0); |
145 | } else { | 145 | } else { |
146 | setTopItem(topItem()+1); | 146 | setTopItem(topItem()+1); |
147 | } | 147 | } |
148 | } | 148 | } |
149 | break; | 149 | break; |
150 | case Key_I: | 150 | case Key_I: |
151 | QTimer::singleShot( 11, this, SLOT ( oneDown() ) ); | 151 | QTimer::singleShot( 11, this, SLOT ( oneDown() ) ); |
152 | e->ignore(); | 152 | e->ignore(); |
153 | break; | 153 | break; |
154 | case Key_Shift: | 154 | case Key_Shift: |
155 | emit shiftDown(); | 155 | emit shiftDown(); |
156 | break; | 156 | break; |
157 | default: | 157 | default: |
158 | e->ignore(); | 158 | e->ignore(); |
159 | break; | 159 | break; |
160 | } | 160 | } |
161 | } | 161 | } |
162 | 162 | ||
163 | void KNoScrollListBox::oneDown() | 163 | void KNoScrollListBox::oneDown() |
164 | { | 164 | { |
165 | setCurrentItem((currentItem()+1)%count()); | 165 | setCurrentItem((currentItem()+1)%count()); |
166 | if(!itemVisible(currentItem())) { | 166 | if(!itemVisible(currentItem())) { |
167 | if(currentItem() == 0) { | 167 | if(currentItem() == 0) { |
168 | setTopItem(0); | 168 | setTopItem(0); |
169 | } else { | 169 | } else { |
170 | setTopItem(topItem()+1); | 170 | setTopItem(topItem()+1); |
171 | } | 171 | } |
172 | } | 172 | } |
173 | } | 173 | } |
174 | void KNoScrollListBox::keyReleaseEvent(QKeyEvent *e) | 174 | void KNoScrollListBox::keyReleaseEvent(QKeyEvent *e) |
175 | { | 175 | { |
176 | switch(e->key()) { | 176 | switch(e->key()) { |
177 | case Key_Shift: | 177 | case Key_Shift: |
178 | emit shiftUp(); | 178 | emit shiftUp(); |
179 | break; | 179 | break; |
180 | default: | 180 | default: |
181 | break; | 181 | break; |
182 | } | 182 | } |
183 | } | 183 | } |
184 | 184 | ||
185 | void KNoScrollListBox::mousePressEvent(QMouseEvent *e) | 185 | void KNoScrollListBox::mousePressEvent(QMouseEvent *e) |
186 | { | 186 | { |
187 | QListBox::mousePressEvent(e); | 187 | QListBox::mousePressEvent(e); |
188 | 188 | ||
189 | if(e->button() == RightButton) { | 189 | if(e->button() == RightButton) { |
190 | emit rightClick(); | 190 | emit rightClick(); |
191 | } | 191 | } |
192 | } | 192 | } |
193 | 193 | ||
194 | MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) | 194 | MonthViewItem::MonthViewItem( Incidence *incidence, QDate qd, const QString & s) |
195 | : QListBoxItem() | 195 | : QListBoxItem() |
196 | { | 196 | { |
197 | setText( s ); | 197 | setText( s ); |
198 | 198 | ||
199 | mIncidence = incidence; | 199 | mIncidence = incidence; |
200 | mDate = qd; | 200 | mDate = qd; |
201 | mRecur = false; | 201 | mRecur = false; |
202 | mAlarm = false; | 202 | mAlarm = false; |
203 | mReply = false; | 203 | mReply = false; |
204 | mInfo = false; | 204 | mInfo = false; |
205 | } | 205 | } |
206 | 206 | ||
207 | void MonthViewItem::paint(QPainter *p) | 207 | void MonthViewItem::paint(QPainter *p) |
208 | { | 208 | { |
209 | #if QT_VERSION >= 0x030000 | 209 | #if QT_VERSION >= 0x030000 |
210 | bool sel = isSelected(); | 210 | bool sel = isSelected(); |
211 | #else | 211 | #else |
212 | bool sel = selected(); | 212 | bool sel = selected(); |
213 | #endif | 213 | #endif |
214 | 214 | ||
215 | 215 | ||
216 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) | 216 | if (KOPrefs::instance()->mMonthViewUsesCategoryColor) |
217 | { | 217 | { |
218 | p->setBackgroundColor( palette().color( QPalette::Normal, \ | 218 | p->setBackgroundColor( palette().color( QPalette::Normal, \ |
219 | sel ? QColorGroup::Highlight : QColorGroup::Background ) ); | 219 | sel ? QColorGroup::Highlight : QColorGroup::Background ) ); |
220 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) ); | 220 | p->eraseRect( 0, 0, listBox()->maxItemWidth(), height( listBox() ) ); |
221 | } | 221 | } |
222 | int x = 1; | 222 | int x = 1; |
223 | //int y = 3;//(height() - mRecurPixmap.height()) /2; | 223 | //int y = 3;//(height() - mRecurPixmap.height()) /2; |
224 | int size = PIXMAP_SIZE; | 224 | int size = PIXMAP_SIZE; |
225 | if ( QApplication::desktop()->width() < 300 ) | 225 | if ( QApplication::desktop()->width() < 300 ) |
226 | size = 3; | 226 | size = 3; |
227 | int y = (height( listBox () ) - size -1 ) /2; | 227 | int y = (height( listBox () ) - size -1 ) /2; |
228 | 228 | ||
229 | if ( KOPrefs::instance()->mMonthShowIcons ) { | 229 | if ( KOPrefs::instance()->mMonthShowIcons ) { |
230 | if ( mInfo ) { | 230 | if ( mInfo ) { |
231 | p->fillRect ( x, y,size,size, Qt::darkGreen ); | 231 | p->fillRect ( x, y,size,size, Qt::darkGreen ); |
232 | x += size + 1; | 232 | x += size + 1; |
233 | } | 233 | } |
234 | if ( mRecur ) { | 234 | if ( mRecur ) { |
235 | p->fillRect ( x, y,size,size, Qt::blue ); | 235 | p->fillRect ( x, y,size,size, Qt::blue ); |
236 | x += size + 1; | 236 | x += size + 1; |
237 | } | 237 | } |
238 | if ( mAlarm ) { | 238 | if ( mAlarm ) { |
239 | p->fillRect ( x, y,size,size, Qt::red ); | 239 | p->fillRect ( x, y,size,size, Qt::red ); |
240 | x += size + 1; | 240 | x += size + 1; |
241 | } | 241 | } |
242 | if ( mReply ) { | 242 | if ( mReply ) { |
243 | p->fillRect ( x, y,size,size, Qt::yellow ); | 243 | p->fillRect ( x, y,size,size, Qt::yellow ); |
244 | x += size + 1; | 244 | x += size + 1; |
245 | } | 245 | } |
246 | } | 246 | } |
247 | if ( mMultiday ) { | 247 | if ( mMultiday ) { |
248 | int yyy = y+(size/2); | 248 | int yyy = y+(size/2); |
249 | int sizeM = size+2; | 249 | int sizeM = size+2; |
250 | p->setBrush( QBrush::SolidPattern ); | 250 | p->setBrush( QBrush::SolidPattern ); |
251 | p->drawLine ( x+sizeM/2, yyy, x +sizeM +sizeM/2-2, yyy ) ; | 251 | p->drawLine ( x+1, yyy, x +sizeM +sizeM/2-1, yyy ) ; |
252 | if ( mMultiday == 2 || mMultiday == 3 ) { | 252 | if ( mMultiday == 2 || mMultiday == 3 ) { |
253 | QPointArray pa ( 3 ); | 253 | QPointArray pa ( 3 ); |
254 | pa.setPoint (0, x, yyy ); | 254 | pa.setPoint (0, x, yyy ); |
255 | pa.setPoint (1, x+sizeM/2, yyy+sizeM/2 ); | 255 | pa.setPoint (1, x+sizeM/2, yyy+sizeM/2 ); |
256 | pa.setPoint (2, x+sizeM/2, yyy-sizeM/2 ); | 256 | pa.setPoint (2, x+sizeM/2, yyy-sizeM/2 ); |
257 | p->drawPolygon( pa ); | 257 | p->drawPolygon( pa ); |
258 | } | 258 | } |
259 | if ( mMultiday == 2 || mMultiday == 1 ) { | 259 | if ( mMultiday == 2 || mMultiday == 1 ) { |
260 | QPointArray pa ( 3 ); | 260 | QPointArray pa ( 3 ); |
261 | pa.setPoint (0, x+sizeM +sizeM/2, yyy ); | 261 | pa.setPoint (0, x+sizeM +sizeM/2, yyy ); |
262 | pa.setPoint (1, x+sizeM, yyy+sizeM/2 ); | 262 | pa.setPoint (1, x+sizeM, yyy+sizeM/2 ); |
263 | pa.setPoint (2, x+sizeM, yyy-sizeM/2 ); | 263 | pa.setPoint (2, x+sizeM, yyy-sizeM/2 ); |
264 | p->drawPolygon( pa ); | 264 | p->drawPolygon( pa ); |
265 | } | 265 | } |
266 | if ( mMultiday == 1 ) { | 266 | if ( mMultiday == 1 ) { |
267 | p->fillRect ( x, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); | 267 | // p->fillRect ( x, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); |
268 | 268 | ||
269 | p->drawLine ( x+1, yyy-sizeM/2, x+1, yyy+sizeM/2 ); | ||
269 | } | 270 | } |
270 | if ( mMultiday == 3 ) { | 271 | if ( mMultiday == 3 ) { |
271 | p->fillRect ( x+sizeM, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); | 272 | // p->fillRect ( x+sizeM, yyy-sizeM/2+1, sizeM/2, size, QBrush ( QBrush::SolidPattern ) ); |
273 | p->drawLine ( x+sizeM +sizeM/2-1, yyy-sizeM/2, x+sizeM +sizeM/2-1, yyy+sizeM/2 ); | ||
272 | 274 | ||
273 | } | 275 | } |
274 | x += sizeM/2 + 1; | 276 | x += sizeM/2 + 1; |
275 | x += sizeM + 1; | 277 | x += sizeM + 1; |
276 | } | 278 | } |
277 | QFontMetrics fm = p->fontMetrics(); | 279 | QFontMetrics fm = p->fontMetrics(); |
278 | int yPos; | 280 | int yPos; |
279 | int pmheight = size; | 281 | int pmheight = size; |
280 | if( pmheight < fm.height() ) | 282 | if( pmheight < fm.height() ) |
281 | yPos = fm.ascent() + fm.leading()/2; | 283 | yPos = fm.ascent() + fm.leading()/2; |
282 | else | 284 | else |
283 | yPos = pmheight/2 - fm.height()/2 + fm.ascent(); | 285 | yPos = pmheight/2 - fm.height()/2 + fm.ascent(); |
284 | p->setPen( palette().color( QPalette::Normal, sel ? \ | 286 | p->setPen( palette().color( QPalette::Normal, sel ? \ |
285 | QColorGroup::HighlightedText : QColorGroup::Foreground ) ); | 287 | QColorGroup::HighlightedText : QColorGroup::Foreground ) ); |
286 | p->drawText( x, yPos, text() ); | 288 | p->drawText( x, yPos, text() ); |
287 | if ( mIncidence->cancelled() ) { | 289 | if ( mIncidence->cancelled() ) { |
288 | int wid = fm.width( text() ); | 290 | int wid = fm.width( text() ); |
289 | p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); | 291 | p->drawLine( x, yPos- fm.height()/2+3,x+wid, yPos- fm.height()/2 +3); |
290 | } | 292 | } |
291 | 293 | ||
292 | } | 294 | } |
293 | 295 | ||
294 | int MonthViewItem::height(const QListBox *lb) const | 296 | int MonthViewItem::height(const QListBox *lb) const |
295 | { | 297 | { |
296 | if ( lb ) | 298 | if ( lb ) |
297 | return lb->fontMetrics().lineSpacing()+1; | 299 | return lb->fontMetrics().lineSpacing()+1; |
298 | return 10; | 300 | return 10; |
299 | } | 301 | } |
300 | 302 | ||
301 | int MonthViewItem::width(const QListBox *lb) const | 303 | int MonthViewItem::width(const QListBox *lb) const |
302 | { | 304 | { |
303 | int size = PIXMAP_SIZE; | 305 | int size = PIXMAP_SIZE; |
304 | if ( QApplication::desktop()->width() < 300 ) | 306 | if ( QApplication::desktop()->width() < 300 ) |
305 | size = 3; | 307 | size = 3; |
306 | int x = 1; | 308 | int x = 1; |
307 | if ( KOPrefs::instance()->mMonthShowIcons ) { | 309 | if ( KOPrefs::instance()->mMonthShowIcons ) { |
308 | if ( mInfo ) { | 310 | if ( mInfo ) { |
309 | x += size + 1; | 311 | x += size + 1; |
310 | } | 312 | } |
311 | if( mRecur ) { | 313 | if( mRecur ) { |
312 | x += size+1; | 314 | x += size+1; |
313 | } | 315 | } |
314 | if( mAlarm ) { | 316 | if( mAlarm ) { |
315 | x += size+1; | 317 | x += size+1; |
316 | } | 318 | } |
317 | if( mReply ) { | 319 | if( mReply ) { |
318 | x += size+1; | 320 | x += size+1; |
319 | } | 321 | } |
320 | } | 322 | } |
321 | if( mMultiday ) { | 323 | if( mMultiday ) { |
322 | x += size+1+2+size/2; | 324 | x += size+1+2+size/2; |
323 | } | 325 | } |
324 | 326 | ||
325 | return( x + lb->fontMetrics().width( text() ) + 1 ); | 327 | return( x + lb->fontMetrics().width( text() ) + 1 ); |
326 | } | 328 | } |
327 | 329 | ||
328 | 330 | ||
329 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) | 331 | MonthViewCell::MonthViewCell( KOMonthView *parent,QWidget* par ) |
330 | : QWidget( par ), | 332 | : QWidget( par ), |
331 | mMonthView( parent ) | 333 | mMonthView( parent ) |
332 | { | 334 | { |
333 | 335 | ||
334 | QVBoxLayout *topLayout = new QVBoxLayout( this ); | 336 | QVBoxLayout *topLayout = new QVBoxLayout( this ); |
335 | 337 | ||
336 | // mLabel = new QLabel( this );QPushButton | 338 | // mLabel = new QLabel( this );QPushButton |
337 | mLabel = new QPushButton( this ); | 339 | mLabel = new QPushButton( this ); |
338 | //mLabel->setFrameStyle( QFrame::Panel | QFrame::Plain ); | 340 | //mLabel->setFrameStyle( QFrame::Panel | QFrame::Plain ); |
339 | //mLabel->setLineWidth( 1 ); | 341 | //mLabel->setLineWidth( 1 ); |
340 | //mLabel->setAlignment( AlignCenter ); | 342 | //mLabel->setAlignment( AlignCenter ); |
341 | mLabel->setFlat( true ); | 343 | mLabel->setFlat( true ); |
342 | mLabel->setFocusPolicy(NoFocus); | 344 | mLabel->setFocusPolicy(NoFocus); |
343 | mItemList = new KNoScrollListBox( this ); | 345 | mItemList = new KNoScrollListBox( this ); |
344 | mItemList->setMinimumSize( 10, 10 ); | 346 | mItemList->setMinimumSize( 10, 10 ); |
345 | mItemList->setFrameStyle( QFrame::Panel | QFrame::Plain ); | 347 | mItemList->setFrameStyle( QFrame::Panel | QFrame::Plain ); |
346 | mItemList->setLineWidth( 1 ); | 348 | mItemList->setLineWidth( 1 ); |
347 | topLayout->addWidget( mItemList ); | 349 | topLayout->addWidget( mItemList ); |
348 | mLabel->raise(); | 350 | mLabel->raise(); |
349 | // QColor( 0,0,255 ) QColor( 160,1600,255 ) | 351 | // QColor( 0,0,255 ) QColor( 160,1600,255 ) |
350 | mStandardPalette = palette(); | 352 | mStandardPalette = palette(); |
351 | mStandardPalette.setColor(QColorGroup::Base, mStandardPalette.color( QPalette::Normal, QColorGroup::Background ) ); | 353 | mStandardPalette.setColor(QColorGroup::Base, mStandardPalette.color( QPalette::Normal, QColorGroup::Background ) ); |
352 | 354 | ||
353 | enableScrollBars( false ); | 355 | enableScrollBars( false ); |
354 | updateConfig(); | 356 | updateConfig(); |
355 | //connect( mLabel, SIGNAL( clicked( )), SLOT( newEvent() )); | 357 | //connect( mLabel, SIGNAL( clicked( )), SLOT( newEvent() )); |
356 | connect( mLabel, SIGNAL( clicked( )), SLOT( showDay() )); | 358 | connect( mLabel, SIGNAL( clicked( )), SLOT( showDay() )); |
357 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), | 359 | connect( mItemList, SIGNAL( doubleClicked( QListBoxItem *) ), |
358 | SLOT( defaultAction( QListBoxItem * ) ) ); | 360 | SLOT( defaultAction( QListBoxItem * ) ) ); |
359 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, | 361 | connect( mItemList, SIGNAL( rightButtonPressed( QListBoxItem *, |
360 | const QPoint &) ), | 362 | const QPoint &) ), |
361 | SLOT( contextMenu( QListBoxItem * ) ) ); | 363 | SLOT( contextMenu( QListBoxItem * ) ) ); |
362 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), | 364 | connect( mItemList, SIGNAL( highlighted( QListBoxItem *) ), |
363 | SLOT( selection( QListBoxItem * ) ) ); | 365 | SLOT( selection( QListBoxItem * ) ) ); |
364 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 366 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
365 | SLOT( cellClicked( QListBoxItem * ) ) ); | 367 | SLOT( cellClicked( QListBoxItem * ) ) ); |
366 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), | 368 | connect( mItemList, SIGNAL( clicked( QListBoxItem * ) ), |
367 | SLOT( selection( QListBoxItem * ) ) ); | 369 | SLOT( selection( QListBoxItem * ) ) ); |
368 | } | 370 | } |
369 | #ifdef DESKTOP_VERSION | 371 | #ifdef DESKTOP_VERSION |
370 | QToolTipGroup *MonthViewCell::toolTipGroup() | 372 | QToolTipGroup *MonthViewCell::toolTipGroup() |
371 | { | 373 | { |
372 | if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); | 374 | if (!mToolTipGroup) mToolTipGroup = new QToolTipGroup(0); |
373 | return mToolTipGroup; | 375 | return mToolTipGroup; |
374 | } | 376 | } |
375 | #endif | 377 | #endif |
376 | 378 | ||
377 | void MonthViewCell::setDate( const QDate &date ) | 379 | void MonthViewCell::setDate( const QDate &date ) |
378 | { | 380 | { |
379 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; | 381 | // kdDebug() << "MonthViewCell::setDate(): " << date.toString() << endl; |
380 | mDate = date; | 382 | mDate = date; |
381 | 383 | ||
382 | 384 | ||
383 | 385 | ||
384 | //resizeEvent( 0 ); | 386 | //resizeEvent( 0 ); |
385 | } | 387 | } |
386 | 388 | ||
387 | QDate MonthViewCell::date() const | 389 | QDate MonthViewCell::date() const |
388 | { | 390 | { |
389 | return mDate; | 391 | return mDate; |
390 | } | 392 | } |
391 | 393 | ||
392 | void MonthViewCell::setPrimary( bool primary ) | 394 | void MonthViewCell::setPrimary( bool primary ) |
393 | { | 395 | { |
394 | mPrimary = primary; | 396 | mPrimary = primary; |
395 | //setMyPalette(); | 397 | //setMyPalette(); |
396 | } | 398 | } |
397 | void MonthViewCell::setMyPalette() | 399 | void MonthViewCell::setMyPalette() |
398 | { | 400 | { |
399 | 401 | ||
400 | if ( mHoliday) { | 402 | if ( mHoliday) { |
401 | setPalette( mHolidayPalette ); | 403 | setPalette( mHolidayPalette ); |
402 | } else { | 404 | } else { |
403 | if ( mPrimary ) { | 405 | if ( mPrimary ) { |
404 | setPalette( mPrimaryPalette ); | 406 | setPalette( mPrimaryPalette ); |
405 | } else { | 407 | } else { |
406 | setPalette( mNonPrimaryPalette ); | 408 | setPalette( mNonPrimaryPalette ); |
407 | } | 409 | } |
408 | } | 410 | } |
409 | QPalette pal = palette(); | 411 | QPalette pal = palette(); |
410 | 412 | ||
411 | mLabel->setPalette( QPalette ( pal.color( QPalette::Normal,QColorGroup::Base),pal.color(QPalette::Normal,QColorGroup::Base ) )); | 413 | mLabel->setPalette( QPalette ( pal.color( QPalette::Normal,QColorGroup::Base),pal.color(QPalette::Normal,QColorGroup::Base ) )); |
412 | } | 414 | } |
413 | QPalette MonthViewCell::getPalette () | 415 | QPalette MonthViewCell::getPalette () |
414 | { | 416 | { |
415 | if ( !KOPrefs::instance()->mMonthViewUsesDayColors ) | 417 | if ( !KOPrefs::instance()->mMonthViewUsesDayColors ) |
416 | return mStandardPalette; | 418 | return mStandardPalette; |
417 | if ( mHoliday) { | 419 | if ( mHoliday) { |
418 | return mHolidayPalette ; | 420 | return mHolidayPalette ; |
419 | } else { | 421 | } else { |
420 | if ( mPrimary ) { | 422 | if ( mPrimary ) { |
421 | return mPrimaryPalette ; | 423 | return mPrimaryPalette ; |
422 | } | 424 | } |
423 | } | 425 | } |
424 | return mNonPrimaryPalette; | 426 | return mNonPrimaryPalette; |
425 | } | 427 | } |
426 | bool MonthViewCell::isPrimary() const | 428 | bool MonthViewCell::isPrimary() const |
427 | { | 429 | { |
428 | return mPrimary; | 430 | return mPrimary; |
429 | } | 431 | } |
430 | 432 | ||
431 | void MonthViewCell::setHoliday( bool holiday ) | 433 | void MonthViewCell::setHoliday( bool holiday ) |
432 | { | 434 | { |
433 | mHoliday = holiday; | 435 | mHoliday = holiday; |
434 | //setMyPalette(); | 436 | //setMyPalette(); |
435 | } | 437 | } |
436 | 438 | ||
437 | void MonthViewCell::setHoliday( const QString &holiday ) | 439 | void MonthViewCell::setHoliday( const QString &holiday ) |
438 | { | 440 | { |
439 | mHolidayString = holiday; | 441 | mHolidayString = holiday; |
440 | 442 | ||
441 | if ( !holiday.isEmpty() ) { | 443 | if ( !holiday.isEmpty() ) { |
442 | setHoliday( true ); | 444 | setHoliday( true ); |
443 | } | 445 | } |
444 | } | 446 | } |
445 | void MonthViewCell::keyPressEvent ( QKeyEvent * e ) | 447 | void MonthViewCell::keyPressEvent ( QKeyEvent * e ) |
446 | { | 448 | { |
447 | 449 | ||
448 | e->ignore(); | 450 | e->ignore(); |
449 | 451 | ||
450 | } | 452 | } |
451 | 453 | ||
452 | void MonthViewCell::startUpdateCell() | 454 | void MonthViewCell::startUpdateCell() |
453 | { | 455 | { |
454 | 456 | ||
455 | mItemList->setFocusPolicy(NoFocus); | 457 | mItemList->setFocusPolicy(NoFocus); |
456 | if ( !mMonthView->isUpdatePossible() ) | 458 | if ( !mMonthView->isUpdatePossible() ) |
457 | return; | 459 | return; |
458 | 460 | ||
459 | /* | 461 | /* |
460 | if ( !isVisible() ){ | 462 | if ( !isVisible() ){ |
461 | return; | 463 | return; |
462 | } | 464 | } |
463 | */ | 465 | */ |
@@ -1 +1 @@ | |||
version = "2.0.8"; | version = "2.0.9"; | ||