-rw-r--r-- | bin/kdepim/SyncHowto.txt (renamed from bin/kdepim/korganizer/howtoSYNC.txt) | 0 | ||||
-rw-r--r-- | bin/kdepim/WhatsNew.txt (renamed from bin/kdepim/korganizer/kopiWhatsNew.txt) | 6 | ||||
-rw-r--r-- | korganizer/mainwindow.cpp | 19 |
3 files changed, 7 insertions, 18 deletions
diff --git a/bin/kdepim/korganizer/howtoSYNC.txt b/bin/kdepim/SyncHowto.txt index 3cab446..3cab446 100644 --- a/bin/kdepim/korganizer/howtoSYNC.txt +++ b/bin/kdepim/SyncHowto.txt | |||
diff --git a/bin/kdepim/korganizer/kopiWhatsNew.txt b/bin/kdepim/WhatsNew.txt index 3f95dcf..3eecf8c 100644 --- a/bin/kdepim/korganizer/kopiWhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,283 +1,285 @@ | |||
1 | Info about the changes in new versions of KO/Pi | 1 | Info about the changes in new versions of KDE-Pim/Pi |
2 | and KDE-Pim/Pi | ||
3 | 2 | ||
4 | ********** VERSION 1.9.7 ************ | 3 | ********** VERSION 1.9.7 ************ |
5 | 4 | ||
6 | KO/Pi - KA/Pi on Windows: | 5 | KO/Pi - KA/Pi on Windows: |
7 | Now a directory can be defined by the user, where the | 6 | Now a directory can be defined by the user, where the |
8 | application/config data should be saved. | 7 | application/config data should be saved. |
9 | Define your desired path in the evironment variable | 8 | Define your desired path in the evironment variable |
10 | MICROKDEHOME | 9 | MICROKDEHOME |
11 | before starting KO/Pi or KA/Pi. | 10 | before starting KO/Pi or KA/Pi. |
12 | 11 | ||
13 | An easy Kx/Pi to Kx/Pi syncing is now possible | 12 | An easy Kx/Pi to Kx/Pi syncing is now possible |
14 | (it is called Pi-Sync) via network. | 13 | (it is called Pi-Sync) via network. |
15 | Please look at the Sync Howto. | 14 | Please look at the Sync Howto. |
16 | 15 | ||
17 | Exporting of calendar data and contacts to mobile phones is now possible. | 16 | Exporting of calendar data and contacts to mobile phones is now possible. |
18 | The SyncHowto is updated with information howto | 17 | The SyncHowto is updated with information howto |
19 | access/sync mobile phones. | 18 | access/sync mobile phones. |
20 | Please look at the Sync Howto. | 19 | Please look at the Sync Howto. |
21 | 20 | ||
22 | Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly. | 21 | Now KO/Pi and KA/Pi on the Zaurus can receive data via infrared directly. |
23 | Please disable Fastload for the original contact/calendar applications | 22 | Please disable Fastload for the original contact/calendar applications |
24 | and close them. | 23 | and close them. |
25 | KO/Pi and KA/Pi must be running in order to receive the data. | 24 | KO/Pi and KA/Pi must be running in order to receive the data. |
26 | (KO/Pi and KA/Pi are always running if Fastload for them is enabled!) | 25 | (KO/Pi and KA/Pi are always running if Fastload for them is enabled!) |
27 | 26 | ||
27 | In the KA/Pi details view are now the preferred tel. numbers displayed on top | ||
28 | of the other data ( emails/tel.numbers/addresses) | ||
29 | |||
28 | 30 | ||
29 | ********** VERSION 1.9.6 ************ | 31 | ********** VERSION 1.9.6 ************ |
30 | 32 | ||
31 | Changes in the external application communication on the Zaurus | 33 | Changes in the external application communication on the Zaurus |
32 | in order to use less RAM when the apps are running. | 34 | in order to use less RAM when the apps are running. |
33 | First syncing of addressbooks (KA/Pi) is possible. | 35 | First syncing of addressbooks (KA/Pi) is possible. |
34 | 36 | ||
35 | 37 | ||
36 | ********** VERSION 1.9.5a ************ | 38 | ********** VERSION 1.9.5a ************ |
37 | 39 | ||
38 | Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5. | 40 | Fixed a bug in KO/Pi in the SharpDTM sync of version 1.9.5. |
39 | Fixed some small bugs. | 41 | Fixed some small bugs. |
40 | KA/Pi shows now the birthday in summary view. | 42 | KA/Pi shows now the birthday in summary view. |
41 | Now OM/Pi and KA/Pi are using the date format defined in KO/Pi | 43 | Now OM/Pi and KA/Pi are using the date format defined in KO/Pi |
42 | for displaying dates. | 44 | for displaying dates. |
43 | 45 | ||
44 | 46 | ||
45 | ********** VERSION 1.9.5 ************ | 47 | ********** VERSION 1.9.5 ************ |
46 | 48 | ||
47 | There is still no Addressbook syncing! | 49 | There is still no Addressbook syncing! |
48 | 50 | ||
49 | New in 1.9.5: | 51 | New in 1.9.5: |
50 | 52 | ||
51 | Many bugfixes. | 53 | Many bugfixes. |
52 | Better searching in KA/Pi. | 54 | Better searching in KA/Pi. |
53 | You can configure in KA/Pi if you want to search only after | 55 | You can configure in KA/Pi if you want to search only after |
54 | <return> key pressed. | 56 | <return> key pressed. |
55 | 57 | ||
56 | Better mail downloading in OM/Pi. | 58 | Better mail downloading in OM/Pi. |
57 | 59 | ||
58 | First experimental alpha version of sync of KO/Pi with mobile phones. | 60 | First experimental alpha version of sync of KO/Pi with mobile phones. |
59 | See gammu documentation for supported phones. | 61 | See gammu documentation for supported phones. |
60 | You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp. | 62 | You need to install the package kammu_1.9.5_arm.ipk for sync of KO/Pi with mobile phones. kammu_1.9.5_arm.ipk needs libbluetooth and libsdp. |
61 | Quick hint how to use: | 63 | Quick hint how to use: |
62 | NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL! | 64 | NOTE: MOBILE PHONE SYNC IS EXPERIMENTAL! |
63 | Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp. | 65 | Install kammu_1.9.5_arm.ipk , libbluetooth and libsdp. |
64 | Create syncprofile - mobile device | 66 | Create syncprofile - mobile device |
65 | Remove entry for model. (Leave empty ). | 67 | Remove entry for model. (Leave empty ). |
66 | Enable infrared on Zaurus and your Phone. | 68 | Enable infrared on Zaurus and your Phone. |
67 | Sync. | 69 | Sync. |
68 | To get a more detailed log, start kopi from konsole. | 70 | To get a more detailed log, start kopi from konsole. |
69 | 71 | ||
70 | ********** VERSION 1.9.4 ************ | 72 | ********** VERSION 1.9.4 ************ |
71 | 73 | ||
72 | This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus. | 74 | This is the version 1.9.4 of KDE-Pim/Pi for the Zaurus. |
73 | 75 | ||
74 | WARNING: | 76 | WARNING: |
75 | PLEASE BACKUP ALL YOUR DATA! | 77 | PLEASE BACKUP ALL YOUR DATA! |
76 | We have changed a lot and maybe there are some unknown problems. | 78 | We have changed a lot and maybe there are some unknown problems. |
77 | 79 | ||
78 | SYNC HANDLING HAS CHANGED! | 80 | SYNC HANDLING HAS CHANGED! |
79 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. | 81 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. |
80 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). | 82 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). |
81 | 83 | ||
82 | You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs. | 84 | You need the kmicrokdelibs_1.9.4_arm.ipk as a base for the other programs. |
83 | If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well. | 85 | If you get the error: "Install only possible in main memory", just try it again to install it on SD card. That worked for me. And it was reported that rebooting Qtopia did help in this case as well. |
84 | 86 | ||
85 | As programs are available: | 87 | As programs are available: |
86 | KO/Pi (korganizer ipk) - a calendar program. | 88 | KO/Pi (korganizer ipk) - a calendar program. |
87 | KA/Pi (kaddressbook ipk ) - an addressbook | 89 | KA/Pi (kaddressbook ipk ) - an addressbook |
88 | OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support. | 90 | OM/Pi (kopiemail ipk ) an email program with pop/smtp and IMAP support. |
89 | 91 | ||
90 | An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode. | 92 | An alarm notification program ( korganizer-alarm ipk ) for KO/Pi that notifies you about alarms, even if the Zaurus is in suspend mode. |
91 | (If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia) | 93 | (If you do not see an icon in the taskbar after installing korganizer-alarm, please restart Qtopia) |
92 | 94 | ||
93 | All the applications are installed in a "Pim" TAB. | 95 | All the applications are installed in a "Pim" TAB. |
94 | If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk | 96 | If this TAB is new on your system, you can get an icon in this TAB by installing pim_TAB_icon_1.9.4_arm.ipk |
95 | 97 | ||
96 | All the application are integrated. | 98 | All the application are integrated. |
97 | Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail. | 99 | Such that you can choose in KO/Pi the attendees of a meeting from the addresses in KA/Pi. When you click in KA/Pi on the email address, OM/Pi is started to write the mail. |
98 | 100 | ||
99 | HINT: | 101 | HINT: |
100 | If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number. | 102 | If you install KPhone/Pi 0.9.7, it will be called, if you click in KA/Pi on a phone number. |
101 | 103 | ||
102 | What's new? | 104 | What's new? |
103 | 105 | ||
104 | SYNC HANDLING HAS CHANGED! | 106 | SYNC HANDLING HAS CHANGED! |
105 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. | 107 | Such that, if you sync now with an already synded device, you will duplicated entries after the first sync. |
106 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). | 108 | (This change was introduced to make it possible to sync with mobile phones, which will be available later (maybe in 4 weeks). |
107 | 109 | ||
108 | New in OM/Pi: | 110 | New in OM/Pi: |
109 | When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails. | 111 | When copying(i.e. downloading mails) , you can specify, that only mails of a given size should be downloaded. Added mail copy possibility for selected mails. |
110 | 112 | ||
111 | New in KO/Pi: | 113 | New in KO/Pi: |
112 | French is now available for KO/Pi. | 114 | French is now available for KO/Pi. |
113 | Choose menu:Actions - Configure:TAB locale | 115 | Choose menu:Actions - Configure:TAB locale |
114 | Syncing has changed. | 116 | Syncing has changed. |
115 | Phone sync available soon. | 117 | Phone sync available soon. |
116 | Not much changes, I cannot remember them ... | 118 | Not much changes, I cannot remember them ... |
117 | 119 | ||
118 | New in KA/Pi: | 120 | New in KA/Pi: |
119 | Beaming possible. | 121 | Beaming possible. |
120 | Sharp DTM readonly access possible( create a new DTM resource ); | 122 | Sharp DTM readonly access possible( create a new DTM resource ); |
121 | Better searching possible. | 123 | Better searching possible. |
122 | Search is performed only after pressing the return key. | 124 | Search is performed only after pressing the return key. |
123 | Use wildcard * to specify parts of a name. | 125 | Use wildcard * to specify parts of a name. |
124 | 126 | ||
125 | Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * . | 127 | Better name/email selection dialog (called from KO/Pi or OM/Pi). In this dialog, now searching is possible. Like in KA/Pi, use return key and wildcard * . |
126 | 128 | ||
127 | A big improvement is the new management of the contact access. | 129 | A big improvement is the new management of the contact access. |
128 | In version 1.9.3, every application was using their own addressbook access data. | 130 | In version 1.9.3, every application was using their own addressbook access data. |
129 | That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi. | 131 | That means, the addressbook was loaded up to three times in the memory, when accessed by KA/Pi, KO/Pi and OM/Pi. |
130 | That was wasting of memory, if you had several hundreds of contacts. | 132 | That was wasting of memory, if you had several hundreds of contacts. |
131 | 133 | ||
132 | Now only KA/Pi accesses the addressbook. | 134 | Now only KA/Pi accesses the addressbook. |
133 | If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them. | 135 | If KO/Pi or OM/Pi want to get some name/email data, they request KA/Pi to open the name/email selection dialog and send it back to them. |
134 | If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly. | 136 | If you click on an attendee in a meeting, its contact data is displayed in KA/Pi directly. |
135 | That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first. | 137 | That means, if KO/Pi or OM/Pi want to access contact data, KA/Pi is started first. |
136 | 138 | ||
137 | New in the KO/Pi alarm applet: | 139 | New in the KO/Pi alarm applet: |
138 | Configure your own timer popup menu! | 140 | Configure your own timer popup menu! |
139 | (Text and minutes for timer countdown) | 141 | (Text and minutes for timer countdown) |
140 | Just edit the file | 142 | Just edit the file |
141 | (yourhomedir)/.kopialarmtimerrc | 143 | (yourhomedir)/.kopialarmtimerrc |
142 | and start/stop a timer to get a new menu with the data of this file. | 144 | and start/stop a timer to get a new menu with the data of this file. |
143 | 145 | ||
144 | ********** VERSION 1.9.3 ************ | 146 | ********** VERSION 1.9.3 ************ |
145 | 1) | 147 | 1) |
146 | Now KO/Pi on Windows imports directly the calendar data of | 148 | Now KO/Pi on Windows imports directly the calendar data of |
147 | an installed Outlook. Should work with OL version >= 2000. | 149 | an installed Outlook. Should work with OL version >= 2000. |
148 | 150 | ||
149 | ********** VERSION 1.9.2 ************ | 151 | ********** VERSION 1.9.2 ************ |
150 | 1) | 152 | 1) |
151 | KDE-Pim/Pi has got a new member: | 153 | KDE-Pim/Pi has got a new member: |
152 | KmicroMail (KM/Pi) is a mail program, | 154 | KmicroMail (KM/Pi) is a mail program, |
153 | which can handle IMAP and POP mail access. | 155 | which can handle IMAP and POP mail access. |
154 | It is based on Opie-Mail v3. | 156 | It is based on Opie-Mail v3. |
155 | All dependencies to the Opie libraries ar removed, | 157 | All dependencies to the Opie libraries ar removed, |
156 | such that no additional Opie lib is needed. | 158 | such that no additional Opie lib is needed. |
157 | It is already integrated in KO/Pi and KA/Pi. | 159 | It is already integrated in KO/Pi and KA/Pi. |
158 | It it now available for the Zaurus,probably it | 160 | It it now available for the Zaurus,probably it |
159 | will be available for other platforms later. | 161 | will be available for other platforms later. |
160 | Hint: | 162 | Hint: |
161 | Create your own contact (name + email) | 163 | Create your own contact (name + email) |
162 | in KA/Pi, select this contact and choose menu: | 164 | in KA/Pi, select this contact and choose menu: |
163 | Settings - Set Who Am I. | 165 | Settings - Set Who Am I. |
164 | Now the settings of this contact are used as | 166 | Now the settings of this contact are used as |
165 | the sender data in KM/Pi. | 167 | the sender data in KM/Pi. |
166 | 2) | 168 | 2) |
167 | KDE-Pim/Pi is split up in five different | 169 | KDE-Pim/Pi is split up in five different |
168 | packages now precompiled for Sharp Zaurus: | 170 | packages now precompiled for Sharp Zaurus: |
169 | --kmicrokdelibs_1.9.2_arm.ipk | 171 | --kmicrokdelibs_1.9.2_arm.ipk |
170 | The libs are needed for any | 172 | The libs are needed for any |
171 | of the following programs: | 173 | of the following programs: |
172 | --kaddressbook_1.9.2_arm.ipk | 174 | --kaddressbook_1.9.2_arm.ipk |
173 | --kmicromail_1.9.2_arm.ipk | 175 | --kmicromail_1.9.2_arm.ipk |
174 | --korganizer_1.9.2_arm.ipk | 176 | --korganizer_1.9.2_arm.ipk |
175 | Independ from that, there is the alarm applet | 177 | Independ from that, there is the alarm applet |
176 | available for KO/Pi, which also offers | 178 | available for KO/Pi, which also offers |
177 | quick access for a new mail or | 179 | quick access for a new mail or |
178 | showing the addressbook.: | 180 | showing the addressbook.: |
179 | --korganizer-alarm_1.9.2_arm.ipk | 181 | --korganizer-alarm_1.9.2_arm.ipk |
180 | Independend means, that the alarm applet | 182 | Independend means, that the alarm applet |
181 | does not need any of the libs or programs above to run. | 183 | does not need any of the libs or programs above to run. |
182 | But it would be quite useless without these programs. | 184 | But it would be quite useless without these programs. |
183 | NOTE: | 185 | NOTE: |
184 | If you get a | 186 | If you get a |
185 | "This application depends on other programs" | 187 | "This application depends on other programs" |
186 | during installation of | 188 | during installation of |
187 | --kmicrokdelibs_1.9.2_arm.ipk | 189 | --kmicrokdelibs_1.9.2_arm.ipk |
188 | you probably do not have to care about that. | 190 | you probably do not have to care about that. |
189 | kmicrokdelibs_1.9.2 will come with some | 191 | kmicrokdelibs_1.9.2 will come with some |
190 | resource plugins, which needs additional libraries. | 192 | resource plugins, which needs additional libraries. |
191 | (E.g. libopie1, if you want to use the | 193 | (E.g. libopie1, if you want to use the |
192 | opie resource connector in KA/Pi). | 194 | opie resource connector in KA/Pi). |
193 | If you do not have this libraries installed, | 195 | If you do not have this libraries installed, |
194 | you simply cannot use the resource. | 196 | you simply cannot use the resource. |
195 | To make it clear: | 197 | To make it clear: |
196 | If the libraries are missing, the applications | 198 | If the libraries are missing, the applications |
197 | using kmicrokdelibs will start, | 199 | using kmicrokdelibs will start, |
198 | because the resources are plugins. | 200 | because the resources are plugins. |
199 | 3) | 201 | 3) |
200 | KO/Pi and friends are now installable on SD-Card! | 202 | KO/Pi and friends are now installable on SD-Card! |
201 | It is recommended to install all libs and apps | 203 | It is recommended to install all libs and apps |
202 | on the SD card or all in the internal storage. | 204 | on the SD card or all in the internal storage. |
203 | There may be problems, if this is mixed. | 205 | There may be problems, if this is mixed. |
204 | 4) | 206 | 4) |
205 | Fixed two bugs in the alarm notification on Windows. | 207 | Fixed two bugs in the alarm notification on Windows. |
206 | 5) | 208 | 5) |
207 | Great improvement! | 209 | Great improvement! |
208 | KO/Pi uses now the latest version of libical. | 210 | KO/Pi uses now the latest version of libical. |
209 | Libical is the library which actually reads | 211 | Libical is the library which actually reads |
210 | the calendar files and extract the data from it. | 212 | the calendar files and extract the data from it. |
211 | With the old version, there were problems | 213 | With the old version, there were problems |
212 | (crashes or program hangs) when licical did read | 214 | (crashes or program hangs) when licical did read |
213 | files, which were not stored from KO/Pi. | 215 | files, which were not stored from KO/Pi. |
214 | I do not know, if the new libical works perfect, | 216 | I do not know, if the new libical works perfect, |
215 | but actually it works much better than | 217 | but actually it works much better than |
216 | the old version. | 218 | the old version. |
217 | There are no problems with compatibility with | 219 | There are no problems with compatibility with |
218 | old calendar files of KO/Pi, of course! | 220 | old calendar files of KO/Pi, of course! |
219 | 6) | 221 | 6) |
220 | New in KA/Pi: | 222 | New in KA/Pi: |
221 | Opie addressbook resource connector available! | 223 | Opie addressbook resource connector available! |
222 | You will need libopie1 and the opie addressbook, | 224 | You will need libopie1 and the opie addressbook, |
223 | of course. | 225 | of course. |
224 | With the Opie addressbook resource connector, | 226 | With the Opie addressbook resource connector, |
225 | you can access the Opie addressbook readonly in KA/Pi. | 227 | you can access the Opie addressbook readonly in KA/Pi. |
226 | If you want to edit or import the data into KA/Pi, | 228 | If you want to edit or import the data into KA/Pi, |
227 | do this: | 229 | do this: |
228 | a) Create an Opie resource. | 230 | a) Create an Opie resource. |
229 | (Menu: Settings-Configure Resources). | 231 | (Menu: Settings-Configure Resources). |
230 | After configuration and restarting KA/Pi you should see | 232 | After configuration and restarting KA/Pi you should see |
231 | the Opie contacts in KA/Pi. | 233 | the Opie contacts in KA/Pi. |
232 | b) Select some or all Opie contacts. | 234 | b) Select some or all Opie contacts. |
233 | (NOTE: +++++ | 235 | (NOTE: +++++ |
234 | To know exactly, what contacts are Opie contacts, | 236 | To know exactly, what contacts are Opie contacts, |
235 | do this: Choose menu: | 237 | do this: Choose menu: |
236 | View-Modify View - TAB Fields. | 238 | View-Modify View - TAB Fields. |
237 | Select in the above list "Resource" and click | 239 | Select in the above list "Resource" and click |
238 | down arrow to add it to the "Selected fields". | 240 | down arrow to add it to the "Selected fields". |
239 | Click OK. | 241 | Click OK. |
240 | Now you have a new column "Resource" in your list, | 242 | Now you have a new column "Resource" in your list, |
241 | where you can see, what an Opie resource is. | 243 | where you can see, what an Opie resource is. |
242 | ++++ NOTE end.) | 244 | ++++ NOTE end.) |
243 | Ok, we do have now some Opie contacts seleted. | 245 | Ok, we do have now some Opie contacts seleted. |
244 | (Use SHIFT or CTRL key in order to multiple select). | 246 | (Use SHIFT or CTRL key in order to multiple select). |
245 | c) Choose menu: Edit-Copy. | 247 | c) Choose menu: Edit-Copy. |
246 | d) Choose menu: Edit-Paste. | 248 | d) Choose menu: Edit-Paste. |
247 | e) Select the resource, you want to add the contacts to. | 249 | e) Select the resource, you want to add the contacts to. |
248 | Congrats! Now you have read/write access to the copied | 250 | Congrats! Now you have read/write access to the copied |
249 | opie contacts as "real" KA/Pi contacts. | 251 | opie contacts as "real" KA/Pi contacts. |
250 | 252 | ||
251 | 253 | ||
252 | ********** VERSION 1.9.1 ************ | 254 | ********** VERSION 1.9.1 ************ |
253 | 1) | 255 | 1) |
254 | +++ IMPORTANT 1 +++ | 256 | +++ IMPORTANT 1 +++ |
255 | 257 | ||
256 | The storing place of the default calendar | 258 | The storing place of the default calendar |
257 | file has changed! | 259 | file has changed! |
258 | The default calendar file was | 260 | The default calendar file was |
259 | Applications/korganizer/mycalendar.ics | 261 | Applications/korganizer/mycalendar.ics |
260 | on Zaurus and | 262 | on Zaurus and |
261 | (yourHomeDir)/korganizer/mycalendar.ics | 263 | (yourHomeDir)/korganizer/mycalendar.ics |
262 | on Windows/Linux desktop. Now it is | 264 | on Windows/Linux desktop. Now it is |
263 | (yourHomeDir)/kdepim/korganizer/mycalendar.ics | 265 | (yourHomeDir)/kdepim/korganizer/mycalendar.ics |
264 | on Zaurus, Windows and Linux. | 266 | on Zaurus, Windows and Linux. |
265 | To load the old file, choose menu | 267 | To load the old file, choose menu |
266 | File-Load calendar backup. | 268 | File-Load calendar backup. |
267 | (It should be loaded automatically | 269 | (It should be loaded automatically |
268 | at startup with a warning message displayed). | 270 | at startup with a warning message displayed). |
269 | The place of the configuration file has changed too. | 271 | The place of the configuration file has changed too. |
270 | If you want to use your old KO/Pi config, | 272 | If you want to use your old KO/Pi config, |
271 | copy it to | 273 | copy it to |
272 | (yourHomeDir)/kdepim/config/korganizerrc | 274 | (yourHomeDir)/kdepim/config/korganizerrc |
273 | Please read VERSION 1.9.0 - topic 3) as well! | 275 | Please read VERSION 1.9.0 - topic 3) as well! |
274 | 276 | ||
275 | +++ IMPORTANT 2 +++ | 277 | +++ IMPORTANT 2 +++ |
276 | 278 | ||
277 | Because of the new paths, you will need | 279 | Because of the new paths, you will need |
278 | a new version of the KO/Pi alarm applet | 280 | a new version of the KO/Pi alarm applet |
279 | for Zaurus. | 281 | for Zaurus. |
280 | Use version >= 1.9.1 | 282 | Use version >= 1.9.1 |
281 | 283 | ||
282 | 2) | 284 | 2) |
283 | Now the QWhat'sThis Icon works for items | 285 | Now the QWhat'sThis Icon works for items |
diff --git a/korganizer/mainwindow.cpp b/korganizer/mainwindow.cpp index a69a0bd..58d8d34 100644 --- a/korganizer/mainwindow.cpp +++ b/korganizer/mainwindow.cpp | |||
@@ -831,536 +831,523 @@ void MainWindow::initActions() | |||
831 | // ****************************************************** | 831 | // ****************************************************** |
832 | // menubar icons | 832 | // menubar icons |
833 | 833 | ||
834 | 834 | ||
835 | iconToolBar->setHorizontalStretchable (true ); | 835 | iconToolBar->setHorizontalStretchable (true ); |
836 | //menuBar->insertItem( iconToolBar ); | 836 | //menuBar->insertItem( iconToolBar ); |
837 | //xdays_action | 837 | //xdays_action |
838 | if (p-> mShowIconNewEvent) | 838 | if (p-> mShowIconNewEvent) |
839 | ne_action->addTo( iconToolBar ); | 839 | ne_action->addTo( iconToolBar ); |
840 | if (p->mShowIconNewTodo ) | 840 | if (p->mShowIconNewTodo ) |
841 | nt_action->addTo( iconToolBar ); | 841 | nt_action->addTo( iconToolBar ); |
842 | if (p-> mShowIconSearch) | 842 | if (p-> mShowIconSearch) |
843 | search_action->addTo( iconToolBar ); | 843 | search_action->addTo( iconToolBar ); |
844 | if (p-> mShowIconNext) | 844 | if (p-> mShowIconNext) |
845 | whatsnext_action->addTo( iconToolBar ); | 845 | whatsnext_action->addTo( iconToolBar ); |
846 | if (p-> mShowIconNextDays) | 846 | if (p-> mShowIconNextDays) |
847 | xdays_action->addTo( iconToolBar ); | 847 | xdays_action->addTo( iconToolBar ); |
848 | if (p-> mShowIconList) | 848 | if (p-> mShowIconList) |
849 | showlist_action->addTo( iconToolBar ); | 849 | showlist_action->addTo( iconToolBar ); |
850 | if (p-> mShowIconDay1) | 850 | if (p-> mShowIconDay1) |
851 | day1_action->addTo( iconToolBar ); | 851 | day1_action->addTo( iconToolBar ); |
852 | if (p-> mShowIconDay5) | 852 | if (p-> mShowIconDay5) |
853 | day5_action->addTo( iconToolBar ); | 853 | day5_action->addTo( iconToolBar ); |
854 | if (p-> mShowIconDay7) | 854 | if (p-> mShowIconDay7) |
855 | day7_action->addTo( iconToolBar ); | 855 | day7_action->addTo( iconToolBar ); |
856 | if (p-> mShowIconMonth) | 856 | if (p-> mShowIconMonth) |
857 | month_action->addTo( iconToolBar ); | 857 | month_action->addTo( iconToolBar ); |
858 | if (p-> mShowIconTodoview) | 858 | if (p-> mShowIconTodoview) |
859 | todoview_action->addTo( iconToolBar ); | 859 | todoview_action->addTo( iconToolBar ); |
860 | if (p-> mShowIconJournal) | 860 | if (p-> mShowIconJournal) |
861 | viewjournal_action->addTo( iconToolBar ); | 861 | viewjournal_action->addTo( iconToolBar ); |
862 | icon = loadPixmap( pathString + "2leftarrowB" ); | 862 | icon = loadPixmap( pathString + "2leftarrowB" ); |
863 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); | 863 | configureToolBarMenu->insertItem(icon, i18n("Prev. month"), 200, 14); |
864 | if (p-> mShowIconBackFast) { | 864 | if (p-> mShowIconBackFast) { |
865 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); | 865 | action = new QAction( i18n("Prev. month"), icon, i18n("Prev. month"),0 , this ); |
866 | connect( action, SIGNAL( activated() ), | 866 | connect( action, SIGNAL( activated() ), |
867 | mView, SLOT( goPreviousMonth() ) ); | 867 | mView, SLOT( goPreviousMonth() ) ); |
868 | action->addTo( iconToolBar ); | 868 | action->addTo( iconToolBar ); |
869 | } | 869 | } |
870 | icon = loadPixmap( pathString + "1leftarrowB" ); | 870 | icon = loadPixmap( pathString + "1leftarrowB" ); |
871 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); | 871 | configureToolBarMenu->insertItem(icon, i18n("Go backward"), 210,15); |
872 | if (p-> mShowIconBack) { | 872 | if (p-> mShowIconBack) { |
873 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); | 873 | action = new QAction( i18n("Go backward"), icon, i18n("Go backward"),0 , this ); |
874 | connect( action, SIGNAL( activated() ), | 874 | connect( action, SIGNAL( activated() ), |
875 | mView, SLOT( goPrevious() ) ); | 875 | mView, SLOT( goPrevious() ) ); |
876 | action->addTo( iconToolBar ); | 876 | action->addTo( iconToolBar ); |
877 | } | 877 | } |
878 | if (p-> mShowIconToday) | 878 | if (p-> mShowIconToday) |
879 | today_action->addTo( iconToolBar ); | 879 | today_action->addTo( iconToolBar ); |
880 | icon = loadPixmap( pathString + "1rightarrowB" ); | 880 | icon = loadPixmap( pathString + "1rightarrowB" ); |
881 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); | 881 | configureToolBarMenu->insertItem(icon, i18n("Go forward"), 220); |
882 | if (p-> mShowIconForward) { | 882 | if (p-> mShowIconForward) { |
883 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); | 883 | action = new QAction( i18n("Go forward"), icon, i18n("Go forward"),0 , this ); |
884 | connect( action, SIGNAL( activated() ), | 884 | connect( action, SIGNAL( activated() ), |
885 | mView, SLOT( goNext() ) ); | 885 | mView, SLOT( goNext() ) ); |
886 | action->addTo( iconToolBar ); | 886 | action->addTo( iconToolBar ); |
887 | } | 887 | } |
888 | icon = loadPixmap( pathString + "2rightarrowB" ); | 888 | icon = loadPixmap( pathString + "2rightarrowB" ); |
889 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); | 889 | configureToolBarMenu->insertItem(icon, i18n("Next month"), 230); |
890 | if (p-> mShowIconForwardFast) { | 890 | if (p-> mShowIconForwardFast) { |
891 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); | 891 | action = new QAction( i18n("Next month"), icon, i18n("Next month"),0 , this ); |
892 | connect( action, SIGNAL( activated() ), | 892 | connect( action, SIGNAL( activated() ), |
893 | mView, SLOT( goNextMonth() ) ); | 893 | mView, SLOT( goNextMonth() ) ); |
894 | action->addTo( iconToolBar ); | 894 | action->addTo( iconToolBar ); |
895 | } | 895 | } |
896 | 896 | ||
897 | 897 | ||
898 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); | 898 | configureToolBarMenu->insertItem(i18n("What's This?"), 300); |
899 | 899 | ||
900 | if (p-> mShowIconNewEvent) | 900 | if (p-> mShowIconNewEvent) |
901 | configureToolBarMenu->setItemChecked( 10, true ); | 901 | configureToolBarMenu->setItemChecked( 10, true ); |
902 | if (p->mShowIconNewTodo ) | 902 | if (p->mShowIconNewTodo ) |
903 | configureToolBarMenu->setItemChecked( 20, true ); | 903 | configureToolBarMenu->setItemChecked( 20, true ); |
904 | if (p-> mShowIconSearch) | 904 | if (p-> mShowIconSearch) |
905 | configureToolBarMenu->setItemChecked( 120, true ); | 905 | configureToolBarMenu->setItemChecked( 120, true ); |
906 | if (p-> mShowIconList) | 906 | if (p-> mShowIconList) |
907 | configureToolBarMenu->setItemChecked( 30, true ); | 907 | configureToolBarMenu->setItemChecked( 30, true ); |
908 | if (p-> mShowIconDay1) | 908 | if (p-> mShowIconDay1) |
909 | configureToolBarMenu->setItemChecked( 40, true ); | 909 | configureToolBarMenu->setItemChecked( 40, true ); |
910 | if (p-> mShowIconDay5) | 910 | if (p-> mShowIconDay5) |
911 | configureToolBarMenu->setItemChecked( 50, true ); | 911 | configureToolBarMenu->setItemChecked( 50, true ); |
912 | if (p-> mShowIconDay7) | 912 | if (p-> mShowIconDay7) |
913 | configureToolBarMenu->setItemChecked( 60, true ); | 913 | configureToolBarMenu->setItemChecked( 60, true ); |
914 | if (p-> mShowIconMonth) | 914 | if (p-> mShowIconMonth) |
915 | configureToolBarMenu->setItemChecked( 70, true ); | 915 | configureToolBarMenu->setItemChecked( 70, true ); |
916 | if (p-> mShowIconTodoview) | 916 | if (p-> mShowIconTodoview) |
917 | configureToolBarMenu->setItemChecked( 80, true ); | 917 | configureToolBarMenu->setItemChecked( 80, true ); |
918 | if (p-> mShowIconBackFast) | 918 | if (p-> mShowIconBackFast) |
919 | configureToolBarMenu->setItemChecked( 200, true ); | 919 | configureToolBarMenu->setItemChecked( 200, true ); |
920 | if (p-> mShowIconBack) | 920 | if (p-> mShowIconBack) |
921 | configureToolBarMenu->setItemChecked( 210, true ); | 921 | configureToolBarMenu->setItemChecked( 210, true ); |
922 | if (p-> mShowIconToday) | 922 | if (p-> mShowIconToday) |
923 | configureToolBarMenu->setItemChecked( 130, true ); | 923 | configureToolBarMenu->setItemChecked( 130, true ); |
924 | if (p-> mShowIconForward) | 924 | if (p-> mShowIconForward) |
925 | configureToolBarMenu->setItemChecked( 220, true ); | 925 | configureToolBarMenu->setItemChecked( 220, true ); |
926 | if (p-> mShowIconForwardFast) | 926 | if (p-> mShowIconForwardFast) |
927 | configureToolBarMenu->setItemChecked( 230, true ); | 927 | configureToolBarMenu->setItemChecked( 230, true ); |
928 | if (p-> mShowIconNextDays) | 928 | if (p-> mShowIconNextDays) |
929 | configureToolBarMenu->setItemChecked( 100, true ); | 929 | configureToolBarMenu->setItemChecked( 100, true ); |
930 | if (p-> mShowIconNext) | 930 | if (p-> mShowIconNext) |
931 | configureToolBarMenu->setItemChecked( 110, true ); | 931 | configureToolBarMenu->setItemChecked( 110, true ); |
932 | if (p-> mShowIconJournal) | 932 | if (p-> mShowIconJournal) |
933 | configureToolBarMenu->setItemChecked( 90, true ); | 933 | configureToolBarMenu->setItemChecked( 90, true ); |
934 | if (p-> mShowIconWhatsThis) | 934 | if (p-> mShowIconWhatsThis) |
935 | configureToolBarMenu->setItemChecked( 300, true ); | 935 | configureToolBarMenu->setItemChecked( 300, true ); |
936 | 936 | ||
937 | QLabel* dummy = new QLabel( iconToolBar ); | 937 | QLabel* dummy = new QLabel( iconToolBar ); |
938 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); | 938 | dummy->setBackgroundColor( iconToolBar->backgroundColor() ); |
939 | if (!p-> mShowIconStretch) | 939 | if (!p-> mShowIconStretch) |
940 | iconToolBar->setStretchableWidget ( dummy ) ; | 940 | iconToolBar->setStretchableWidget ( dummy ) ; |
941 | else | 941 | else |
942 | configureToolBarMenu->setItemChecked( 5, true ); | 942 | configureToolBarMenu->setItemChecked( 5, true ); |
943 | if (p-> mShowIconWhatsThis) | 943 | if (p-> mShowIconWhatsThis) |
944 | QWhatsThis::whatsThisButton ( iconToolBar ); | 944 | QWhatsThis::whatsThisButton ( iconToolBar ); |
945 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); | 945 | connect( configureToolBarMenu, SIGNAL( activated( int ) ),this, SLOT(configureToolBar( int ) ) ); |
946 | configureAgenda( p->mHourSize ); | 946 | configureAgenda( p->mHourSize ); |
947 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); | 947 | connect( configureAgendaMenu, SIGNAL( activated( int ) ),this, SLOT(configureAgenda( int ) ) ); |
948 | } | 948 | } |
949 | 949 | ||
950 | void MainWindow::exportToPhone( int mode ) | 950 | void MainWindow::exportToPhone( int mode ) |
951 | { | 951 | { |
952 | 952 | ||
953 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); | 953 | //ex2phone->insertItem(i18n("Complete calendar..."), 1 ); |
954 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); | 954 | //ex2phone->insertItem(i18n("Filtered calendar..."), 2 ); |
955 | KOex2phonePrefs ex2phone; | 955 | KOex2phonePrefs ex2phone; |
956 | 956 | ||
957 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); | 957 | ex2phone.mPhoneConnection->setText( KPimGlobalPrefs::instance()->mEx2PhoneConnection ); |
958 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); | 958 | ex2phone.mPhoneDevice->setText( KPimGlobalPrefs::instance()->mEx2PhoneDevice ); |
959 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 959 | ex2phone.mPhoneModel->setText( KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
960 | if ( mode == 1 ) | 960 | if ( mode == 1 ) |
961 | ex2phone.setCaption(i18n("Export complete calendar")); | 961 | ex2phone.setCaption(i18n("Export complete calendar")); |
962 | if ( mode == 2 ) | 962 | if ( mode == 2 ) |
963 | ex2phone.setCaption(i18n("Export filtered calendar")); | 963 | ex2phone.setCaption(i18n("Export filtered calendar")); |
964 | 964 | ||
965 | if ( !ex2phone.exec() ) { | 965 | if ( !ex2phone.exec() ) { |
966 | return; | 966 | return; |
967 | } | 967 | } |
968 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); | 968 | KPimGlobalPrefs::instance()->mEx2PhoneConnection = ex2phone.mPhoneConnection->text(); |
969 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); | 969 | KPimGlobalPrefs::instance()->mEx2PhoneDevice = ex2phone.mPhoneDevice->text(); |
970 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); | 970 | KPimGlobalPrefs::instance()->mEx2PhoneModel = ex2phone.mPhoneModel->text(); |
971 | 971 | ||
972 | int inFuture = 0; | 972 | int inFuture = 0; |
973 | if ( ex2phone.mWriteBackFuture->isChecked() ) | 973 | if ( ex2phone.mWriteBackFuture->isChecked() ) |
974 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); | 974 | inFuture = ex2phone.mWriteBackFutureWeeks->value(); |
975 | QPtrList<Incidence> delSel; | 975 | QPtrList<Incidence> delSel; |
976 | if ( mode == 1 ) | 976 | if ( mode == 1 ) |
977 | delSel = mCalendar->rawIncidences(); | 977 | delSel = mCalendar->rawIncidences(); |
978 | if ( mode == 2 ) | 978 | if ( mode == 2 ) |
979 | delSel = mCalendar->incidences(); | 979 | delSel = mCalendar->incidences(); |
980 | CalendarLocal* cal = new CalendarLocal(); | 980 | CalendarLocal* cal = new CalendarLocal(); |
981 | cal->setLocalTime(); | 981 | cal->setLocalTime(); |
982 | Incidence *incidence = delSel.first(); | 982 | Incidence *incidence = delSel.first(); |
983 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); | 983 | QDateTime cur = QDateTime::currentDateTime().addDays( -7 ); |
984 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); | 984 | QDateTime end = cur.addDays( ( inFuture +1 ) *7 ); |
985 | while ( incidence ) { | 985 | while ( incidence ) { |
986 | if ( incidence->type() != "Journal" ) { | 986 | if ( incidence->type() != "Journal" ) { |
987 | bool add = true; | 987 | bool add = true; |
988 | if ( inFuture ) { | 988 | if ( inFuture ) { |
989 | QDateTime dt; | 989 | QDateTime dt; |
990 | if ( incidence->type() == "Todo" ) { | 990 | if ( incidence->type() == "Todo" ) { |
991 | Todo * t = (Todo*)incidence; | 991 | Todo * t = (Todo*)incidence; |
992 | if ( t->hasDueDate() ) | 992 | if ( t->hasDueDate() ) |
993 | dt = t->dtDue(); | 993 | dt = t->dtDue(); |
994 | else | 994 | else |
995 | dt = cur.addSecs( 62 ); | 995 | dt = cur.addSecs( 62 ); |
996 | } | 996 | } |
997 | else { | 997 | else { |
998 | bool ok; | 998 | bool ok; |
999 | dt = incidence->getNextOccurence( cur, &ok ); | 999 | dt = incidence->getNextOccurence( cur, &ok ); |
1000 | if ( !ok ) | 1000 | if ( !ok ) |
1001 | dt = cur.addSecs( -62 ); | 1001 | dt = cur.addSecs( -62 ); |
1002 | } | 1002 | } |
1003 | if ( dt < cur || dt > end ) { | 1003 | if ( dt < cur || dt > end ) { |
1004 | add = false; | 1004 | add = false; |
1005 | } | 1005 | } |
1006 | } | 1006 | } |
1007 | if ( add ) { | 1007 | if ( add ) { |
1008 | Incidence *in = incidence->clone(); | 1008 | Incidence *in = incidence->clone(); |
1009 | cal->addIncidence( in ); | 1009 | cal->addIncidence( in ); |
1010 | } | 1010 | } |
1011 | } | 1011 | } |
1012 | incidence = delSel.next(); | 1012 | incidence = delSel.next(); |
1013 | } | 1013 | } |
1014 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, | 1014 | PhoneAccess::writeConfig( KPimGlobalPrefs::instance()->mEx2PhoneDevice, |
1015 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, | 1015 | KPimGlobalPrefs::instance()->mEx2PhoneConnection, |
1016 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); | 1016 | KPimGlobalPrefs::instance()->mEx2PhoneModel ); |
1017 | 1017 | ||
1018 | setCaption( i18n("Writing to phone...")); | 1018 | setCaption( i18n("Writing to phone...")); |
1019 | if ( PhoneFormat::writeToPhone( cal ) ) | 1019 | if ( PhoneFormat::writeToPhone( cal ) ) |
1020 | setCaption( i18n("Export to phone successful!")); | 1020 | setCaption( i18n("Export to phone successful!")); |
1021 | else | 1021 | else |
1022 | setCaption( i18n("Error exporting to phone!")); | 1022 | setCaption( i18n("Error exporting to phone!")); |
1023 | delete cal; | 1023 | delete cal; |
1024 | } | 1024 | } |
1025 | 1025 | ||
1026 | 1026 | ||
1027 | void MainWindow::setDefaultPreferences() | 1027 | void MainWindow::setDefaultPreferences() |
1028 | { | 1028 | { |
1029 | KOPrefs *p = KOPrefs::instance(); | 1029 | KOPrefs *p = KOPrefs::instance(); |
1030 | 1030 | ||
1031 | p->mCompactDialogs = true; | 1031 | p->mCompactDialogs = true; |
1032 | p->mConfirm = true; | 1032 | p->mConfirm = true; |
1033 | // p->mEnableQuickTodo = false; | 1033 | // p->mEnableQuickTodo = false; |
1034 | 1034 | ||
1035 | } | 1035 | } |
1036 | 1036 | ||
1037 | QString MainWindow::resourcePath() | 1037 | QString MainWindow::resourcePath() |
1038 | { | 1038 | { |
1039 | return KGlobal::iconLoader()->iconPath(); | 1039 | return KGlobal::iconLoader()->iconPath(); |
1040 | } | 1040 | } |
1041 | 1041 | ||
1042 | void MainWindow::displayText( QString text ,QString cap ) | 1042 | void MainWindow::displayText( QString text ,QString cap ) |
1043 | { | 1043 | { |
1044 | QDialog dia( this, "name", true ); ; | 1044 | QDialog dia( this, "name", true ); ; |
1045 | dia.setCaption( cap ); | 1045 | dia.setCaption( cap ); |
1046 | QVBoxLayout* lay = new QVBoxLayout( &dia ); | 1046 | QVBoxLayout* lay = new QVBoxLayout( &dia ); |
1047 | lay->setSpacing( 3 ); | 1047 | lay->setSpacing( 3 ); |
1048 | lay->setMargin( 3 ); | 1048 | lay->setMargin( 3 ); |
1049 | QTextBrowser tb ( &dia ); | 1049 | QTextBrowser tb ( &dia ); |
1050 | lay->addWidget( &tb ); | 1050 | lay->addWidget( &tb ); |
1051 | tb.setText( text ); | 1051 | tb.setText( text ); |
1052 | #ifdef DESKTOP_VERSION | 1052 | #ifdef DESKTOP_VERSION |
1053 | dia.resize( 640, 480); | 1053 | dia.resize( 640, 480); |
1054 | #else | 1054 | #else |
1055 | dia.showMaximized(); | 1055 | dia.showMaximized(); |
1056 | #endif | 1056 | #endif |
1057 | dia.exec(); | 1057 | dia.exec(); |
1058 | } | 1058 | } |
1059 | void MainWindow::displayFile( QString fn, QString cap ) | 1059 | void MainWindow::displayFile( QString fn, QString cap ) |
1060 | { | 1060 | { |
1061 | QString fileName = resourcePath() + fn; | 1061 | QString fileName = resourcePath() + fn; |
1062 | QString text; | 1062 | QString text; |
1063 | QFile file( fileName ); | 1063 | QFile file( fileName ); |
1064 | if (!file.open( IO_ReadOnly ) ) { | 1064 | if (!file.open( IO_ReadOnly ) ) { |
1065 | return ; | 1065 | return ; |
1066 | 1066 | ||
1067 | } | 1067 | } |
1068 | QTextStream ts( &file ); | 1068 | QTextStream ts( &file ); |
1069 | text = ts.read(); | 1069 | text = ts.read(); |
1070 | file.close(); | 1070 | file.close(); |
1071 | displayText( text, cap); | 1071 | displayText( text, cap); |
1072 | } | 1072 | } |
1073 | void MainWindow::features() | 1073 | void MainWindow::features() |
1074 | { | 1074 | { |
1075 | 1075 | ||
1076 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); | 1076 | displayFile( "featuresKOPI.txt",i18n("KO/Pi Features and hints") ); |
1077 | } | 1077 | } |
1078 | 1078 | ||
1079 | void MainWindow::usertrans() | 1079 | void MainWindow::usertrans() |
1080 | { | 1080 | { |
1081 | 1081 | ||
1082 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); | 1082 | displayFile( "usertranslationHOWTO.txt",i18n("KO/Pi User translation HowTo") ); |
1083 | } | 1083 | } |
1084 | 1084 | ||
1085 | void MainWindow::synchowto() | 1085 | void MainWindow::synchowto() |
1086 | { | 1086 | { |
1087 | #if 0 | 1087 | |
1088 | QPtrList<Incidence> er = mCalendar->rawIncidences(); | 1088 | KApplication::showFile( "KDE-Pim/Pi Synchronization HowTo", "kdepim/SyncHowto.txt" ); |
1089 | Incidence* inR = er.first(); | ||
1090 | VCalFormat vf; | ||
1091 | QString strout; | ||
1092 | while ( inR ) { | ||
1093 | if ( inR->type() == "Todo" ) | ||
1094 | strout = vf.todoToString( (Todo *) inR ); | ||
1095 | if ( inR->type() == "Event" ) | ||
1096 | strout = vf.eventToString( (Event *) inR ); | ||
1097 | qDebug("incidence: \n%s\n ente\n\n",strout.latin1() ); | ||
1098 | inR = er.next(); | ||
1099 | } | ||
1100 | #endif | ||
1101 | displayFile( "howtoSYNC.txt",i18n("KO/Pi Synchronization HowTo") ); | ||
1102 | } | 1089 | } |
1103 | void MainWindow::faq() | 1090 | void MainWindow::faq() |
1104 | { | 1091 | { |
1105 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); | 1092 | displayFile( "kopiFAQ.txt",i18n("KO/Pi FAQ") ); |
1106 | 1093 | ||
1107 | } | 1094 | } |
1108 | void MainWindow::whatsNew() | 1095 | void MainWindow::whatsNew() |
1109 | { | 1096 | { |
1110 | displayFile( "kopiWhatsNew.txt",i18n("KO/Pi Version Info") ); | 1097 | KApplication::showFile( "KDE-Pim/Pi Version Info", "kdepim/WhatsNew.txt" ); |
1111 | 1098 | ||
1112 | } | 1099 | } |
1113 | void MainWindow::licence() | 1100 | void MainWindow::licence() |
1114 | { | 1101 | { |
1115 | KApplication::showLicence(); | 1102 | KApplication::showLicence(); |
1116 | 1103 | ||
1117 | } | 1104 | } |
1118 | void MainWindow::about() | 1105 | void MainWindow::about() |
1119 | { | 1106 | { |
1120 | QString version; | 1107 | QString version; |
1121 | #include <../version> | 1108 | #include <../version> |
1122 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), | 1109 | QMessageBox::about( this, i18n("About KOrganizer/Pi"), |
1123 | i18n("KOrganizer/Platform-independent\n") + | 1110 | i18n("KOrganizer/Platform-independent\n") + |
1124 | "(KO/Pi) " + version + " - " + | 1111 | "(KO/Pi) " + version + " - " + |
1125 | 1112 | ||
1126 | #ifdef DESKTOP_VERSION | 1113 | #ifdef DESKTOP_VERSION |
1127 | i18n("Desktop Edition\n") + | 1114 | i18n("Desktop Edition\n") + |
1128 | #else | 1115 | #else |
1129 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + | 1116 | i18n("PDA-Edition\nfor: Zaurus 5x00 / 7x0 / 8x0\n") + |
1130 | #endif | 1117 | #endif |
1131 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); | 1118 | i18n("(c) 2004 Lutz Rogowski\nEmail:lutz@pi-sync.net\nKO/Pi is based on KOrganizer\n(c) 2002,2003 Cornelius Schumacher\nEmail: schumacher@kde.org\nKOrganizer/Pi is licensed\nunder the GPL.\nKO/Pi can be compiled for\nLinux, Zaurus-PDA and Windows\nwww.korganizer.org\nwww.pi-sync.net\n") ); |
1132 | } | 1119 | } |
1133 | void MainWindow::keyBindings() | 1120 | void MainWindow::keyBindings() |
1134 | { | 1121 | { |
1135 | QString cap = i18n("Key bindings KOrganizer/Pi"); | 1122 | QString cap = i18n("Key bindings KOrganizer/Pi"); |
1136 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + | 1123 | QString text = i18n("<p><h2>KO/Pi key shortcuts:</h2></p>\n") + |
1137 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ | 1124 | i18n("<p><b>H</b>: This help dialog | <b>S</b>: Search dialog</p>\n")+ |
1138 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + | 1125 | i18n("<p><b>I</b>: Show info for selected event/todo</p>\n") + |
1139 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ | 1126 | i18n("<p><b>Space</b>: Toggle fullscreen | <b>P</b>: Date picker</p>\n")+ |
1140 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ | 1127 | i18n("<p><b>F</b>: Toggle filterview |<b>F+ctrl</b>: Edit filter </p>\n")+ |
1141 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ | 1128 | i18n("<p><b>O</b>: Filter On/Off | <b>J</b>: Journal view</p>\n")+ |
1142 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ | 1129 | i18n("<p><b>1-0</b> (+<b>ctrl</b>): Select filter 1-10 (11-20)</p>\n")+ |
1143 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ | 1130 | i18n("<p><b>N</b>: Next days view| <b>W</b>: What's next view\n ")+ |
1144 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ | 1131 | i18n("<p><b>V</b>: Todo view | <b>L</b>: Event list view</p>\n")+ |
1145 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ | 1132 | i18n("<p><b>Z,Y</b>: Work week view | <b>U</b>: Week view</p>\n")+ |
1146 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ | 1133 | i18n("<p><b>D</b>: One day view | <b>M</b>: Month view</p>\n")+ |
1147 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ | 1134 | i18n("<p><b>E</b>: Edit selected item |<b> E+ctrl</b>: New Event</p>\n")+ |
1148 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ | 1135 | i18n("<p><b>T</b>: Goto today | <b>T+ctrl</b>: New Todo</p>\n")+ |
1149 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ | 1136 | i18n("<p><b>S+ctrl</b>: Add sub-todo | <b>X</b>: Toggle datenavigator</p>\n")+ |
1150 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ | 1137 | i18n("<p><b>+,-</b> : Zoom in/out agenda | <b>A</b>: Toggle allday agenda height</p>\n")+ |
1151 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ | 1138 | i18n("<p><b>C</b>: Show current time in agenda view</p>\n")+ |
1152 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ | 1139 | i18n("<p><b>B</b>: Edit description (details) of selected item</p>\n")+ |
1153 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ | 1140 | i18n("<p><b>right</b>: Next week | <b>right+ctrl</b>: Next month</p>\n")+ |
1154 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ | 1141 | i18n("<p><b>left</b>: Prev. week | <b>left+ctrl</b>: Prev. month</p>\n")+ |
1155 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ | 1142 | i18n("<p><b>del,backspace</b>: Delete selected item</p>\n")+ |
1156 | i18n("<p><h3>In agenda view:</h3></p>\n") + | 1143 | i18n("<p><h3>In agenda view:</h3></p>\n") + |
1157 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ | 1144 | i18n("<p><b>up/down</b>: Scroll agenda view</p>\n")+ |
1158 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ | 1145 | i18n("<p><b>ctrl+up/down</b>: Scroll small todo view</p>\n")+ |
1159 | i18n("<p><h3>In todo view:</h3></p>\n") + | 1146 | i18n("<p><h3>In todo view:</h3></p>\n") + |
1160 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ | 1147 | i18n("<p><b>Q</b>: Toggle quick todo line edit.</p>\n")+ |
1161 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1148 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1162 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ | 1149 | i18n("<p><b>return</b>: Mark item as completed+one step down.</p>\n")+ |
1163 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ | 1150 | i18n("<p><b>return+shift</b>: Mark item as not completed+one step down</p>\n")+ |
1164 | i18n("<p><h3>In list view:</h3></p>\n") + | 1151 | i18n("<p><h3>In list view:</h3></p>\n") + |
1165 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ | 1152 | i18n("<p><b>I</b>: Show info of current item+one step down.</p>\n")+ |
1166 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ | 1153 | i18n("<p><b>return</b>: Select item+one step down</p>\n")+ |
1167 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ | 1154 | i18n("<p><b>return+shift</b>: Deselect item+one step down</p>\n")+ |
1168 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ | 1155 | i18n("<p><b>up/down</b>: Next/prev item</p>\n")+ |
1169 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ | 1156 | i18n("<p><b>ctrl+up/down</b>: Goto up/down by 20% of items</p>\n")+ |
1170 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ | 1157 | i18n("<p><b>shift+up/down</b>: Goto first/last item</p>\n")+ |
1171 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + | 1158 | i18n("<p><h3>In event/todo viewer:</h3></p>\n") + |
1172 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ | 1159 | i18n("<p><b>I,C</b>: Close dialog.</p>\n")+ |
1173 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ | 1160 | i18n("<p><b>A</b>: Show agenda view.</p>\n")+ |
1174 | i18n("<p><b>E</b>: Edit item</p>\n") + | 1161 | i18n("<p><b>E</b>: Edit item</p>\n") + |
1175 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + | 1162 | i18n("<p><h2>KO/Pi icon colors:</h2></p>\n") + |
1176 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + | 1163 | i18n("<p><b>(for square icons in agenda and month view)</b></p>\n") + |
1177 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ | 1164 | i18n("<p><b>Cross</b>: Item cancelled.([c] in Whats'Next view)</p>\n")+ |
1178 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ | 1165 | i18n("<p><b>Red</b>: Alarm set.([a] in Whats'Next view)</p>\n")+ |
1179 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ | 1166 | i18n("<p><b>Blue</b>: Recurrent event.([r] in Whats'Next view)</p>\n")+ |
1180 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ | 1167 | i18n("<p><b>Dark green</b>: Information(description) available.([i] in WN view)</p>\n")+ |
1181 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ | 1168 | i18n("<p><b>Black</b>: Event/todo with attendees. You are the organizer!</p>\n")+ |
1182 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + | 1169 | i18n("<p><b>Dark yellow</b>: Event/todo with attendees.</p>\n") + |
1183 | i18n("<p><b>White</b>: Item readonly</p>\n"); | 1170 | i18n("<p><b>White</b>: Item readonly</p>\n"); |
1184 | displayText( text, cap); | 1171 | displayText( text, cap); |
1185 | 1172 | ||
1186 | } | 1173 | } |
1187 | void MainWindow::aboutAutoSaving() | 1174 | void MainWindow::aboutAutoSaving() |
1188 | { | 1175 | { |
1189 | QMessageBox* msg; | 1176 | QMessageBox* msg; |
1190 | msg = new QMessageBox( i18n("Auto Saving in KOrganizer/Pi"), | 1177 | msg = new QMessageBox( i18n("Auto Saving in KOrganizer/Pi"), |
1191 | i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configureable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"), QMessageBox::NoIcon, | 1178 | i18n("After changing something, the data is\nautomatically saved to the file\n~/kdepim/apps/korganizer/mycalendar.ics\nafter (configureable) three minutes.\nFor safety reasons there is one autosaving\nafter 10 minutes (of idle time) again. The \ndata is saved automatically when closing KO/Pi\nYou can create a backup file \nwith: File - Save Calendar Backup\n"), QMessageBox::NoIcon, |
1192 | QMessageBox::Ok, | 1179 | QMessageBox::Ok, |
1193 | QMessageBox::NoButton, | 1180 | QMessageBox::NoButton, |
1194 | QMessageBox::NoButton); | 1181 | QMessageBox::NoButton); |
1195 | msg->exec(); | 1182 | msg->exec(); |
1196 | delete msg; | 1183 | delete msg; |
1197 | 1184 | ||
1198 | 1185 | ||
1199 | } | 1186 | } |
1200 | void MainWindow::aboutKnownBugs() | 1187 | void MainWindow::aboutKnownBugs() |
1201 | { | 1188 | { |
1202 | QMessageBox* msg; | 1189 | QMessageBox* msg; |
1203 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), | 1190 | msg = new QMessageBox( i18n("Known Problems in KOrganizer/Pi"), |
1204 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ | 1191 | i18n("1) Importing *.vcs or *.ics files from\nother applications may not work properly,\nif there are events with properties\nKO/Pi does not support.\n")+ |
1205 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ | 1192 | i18n("2) Audio alarm daemon\nfor Zaurus is available!\nas an additional small application\n")+ |
1206 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") + | 1193 | i18n("\nPlease report unexpected behaviour to\nlutz@pi-sync.net\n") + |
1207 | i18n("\nor report them in the bugtracker on\n") + | 1194 | i18n("\nor report them in the bugtracker on\n") + |
1208 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), | 1195 | i18n("\nhttp://sourceforge.net/projects/kdepimpi\n"), |
1209 | QMessageBox::NoIcon, | 1196 | QMessageBox::NoIcon, |
1210 | QMessageBox::Ok, | 1197 | QMessageBox::Ok, |
1211 | QMessageBox::NoButton, | 1198 | QMessageBox::NoButton, |
1212 | QMessageBox::NoButton); | 1199 | QMessageBox::NoButton); |
1213 | msg->exec(); | 1200 | msg->exec(); |
1214 | delete msg; | 1201 | delete msg; |
1215 | 1202 | ||
1216 | } | 1203 | } |
1217 | 1204 | ||
1218 | QString MainWindow::defaultFileName() | 1205 | QString MainWindow::defaultFileName() |
1219 | { | 1206 | { |
1220 | return locateLocal( "data", "korganizer/mycalendar.ics" ); | 1207 | return locateLocal( "data", "korganizer/mycalendar.ics" ); |
1221 | } | 1208 | } |
1222 | QString MainWindow::syncFileName() | 1209 | QString MainWindow::syncFileName() |
1223 | { | 1210 | { |
1224 | #ifdef _WIN32_ | 1211 | #ifdef _WIN32_ |
1225 | return locateLocal( "tmp", "synccalendar.ics" ); | 1212 | return locateLocal( "tmp", "synccalendar.ics" ); |
1226 | #else | 1213 | #else |
1227 | return QString( "/tmp/kopitempfile.ics" ); | 1214 | return QString( "/tmp/kopitempfile.ics" ); |
1228 | #endif | 1215 | #endif |
1229 | } | 1216 | } |
1230 | 1217 | ||
1231 | void MainWindow::processIncidenceSelection( Incidence *incidence ) | 1218 | void MainWindow::processIncidenceSelection( Incidence *incidence ) |
1232 | { | 1219 | { |
1233 | if ( !incidence ) { | 1220 | if ( !incidence ) { |
1234 | enableIncidenceActions( false ); | 1221 | enableIncidenceActions( false ); |
1235 | 1222 | ||
1236 | mNewSubTodoAction->setEnabled( false ); | 1223 | mNewSubTodoAction->setEnabled( false ); |
1237 | setCaptionToDates(); | 1224 | setCaptionToDates(); |
1238 | return; | 1225 | return; |
1239 | 1226 | ||
1240 | } | 1227 | } |
1241 | 1228 | ||
1242 | //KGlobal::locale()->formatDateTime(nextA, true); | 1229 | //KGlobal::locale()->formatDateTime(nextA, true); |
1243 | QString startString = ""; | 1230 | QString startString = ""; |
1244 | if ( incidence->type() != "Todo" ) { | 1231 | if ( incidence->type() != "Todo" ) { |
1245 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { | 1232 | if ( incidence->dtStart().date() < incidence->dtEnd().date() ) { |
1246 | if ( incidence->doesFloat() ) { | 1233 | if ( incidence->doesFloat() ) { |
1247 | startString += ": "+incidence->dtStartDateStr( true ); | 1234 | startString += ": "+incidence->dtStartDateStr( true ); |
1248 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); | 1235 | startString += " --- "+((Event*)incidence)->dtEndDateStr( true ); |
1249 | 1236 | ||
1250 | } else { | 1237 | } else { |
1251 | startString = ": "+incidence->dtStartStr(true); | 1238 | startString = ": "+incidence->dtStartStr(true); |
1252 | startString += " --- "+((Event*)incidence)->dtEndStr(true); | 1239 | startString += " --- "+((Event*)incidence)->dtEndStr(true); |
1253 | 1240 | ||
1254 | } | 1241 | } |
1255 | 1242 | ||
1256 | } else { | 1243 | } else { |
1257 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) | 1244 | if ( incidence->dtStart().time() != incidence->dtEnd().time() ) |
1258 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ | 1245 | startString = ": "+KGlobal::locale()->formatTime(incidence->dtStart().time())+ |
1259 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); | 1246 | "-"+KGlobal::locale()->formatTime(incidence->dtEnd().time()); |
1260 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); | 1247 | startString +=" "+KGlobal::locale()->formatDate( incidence->dtStart().date(), true); |
1261 | } | 1248 | } |
1262 | 1249 | ||
1263 | } | 1250 | } |
1264 | else | 1251 | else |
1265 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); | 1252 | startString = i18n(": (Prio ") +QString::number( (( KCal::Todo*)incidence)->priority() ) +") "+QString::number( (( KCal::Todo*)incidence)->percentComplete() ) +i18n("\% completed"); |
1266 | if ( !incidence->location().isEmpty() ) | 1253 | if ( !incidence->location().isEmpty() ) |
1267 | startString += " (" +incidence->location()+")"; | 1254 | startString += " (" +incidence->location()+")"; |
1268 | setCaption( incidence->summary()+startString); | 1255 | setCaption( incidence->summary()+startString); |
1269 | 1256 | ||
1270 | enableIncidenceActions( true ); | 1257 | enableIncidenceActions( true ); |
1271 | 1258 | ||
1272 | if ( incidence->type() == "Event" ) { | 1259 | if ( incidence->type() == "Event" ) { |
1273 | mShowAction->setText( i18n("Show Event...") ); | 1260 | mShowAction->setText( i18n("Show Event...") ); |
1274 | mEditAction->setText( i18n("Edit Event...") ); | 1261 | mEditAction->setText( i18n("Edit Event...") ); |
1275 | mDeleteAction->setText( i18n("Delete Event...") ); | 1262 | mDeleteAction->setText( i18n("Delete Event...") ); |
1276 | 1263 | ||
1277 | mNewSubTodoAction->setEnabled( false ); | 1264 | mNewSubTodoAction->setEnabled( false ); |
1278 | } else if ( incidence->type() == "Todo" ) { | 1265 | } else if ( incidence->type() == "Todo" ) { |
1279 | mShowAction->setText( i18n("Show Todo...") ); | 1266 | mShowAction->setText( i18n("Show Todo...") ); |
1280 | mEditAction->setText( i18n("Edit Todo...") ); | 1267 | mEditAction->setText( i18n("Edit Todo...") ); |
1281 | mDeleteAction->setText( i18n("Delete Todo...") ); | 1268 | mDeleteAction->setText( i18n("Delete Todo...") ); |
1282 | 1269 | ||
1283 | mNewSubTodoAction->setEnabled( true ); | 1270 | mNewSubTodoAction->setEnabled( true ); |
1284 | } else { | 1271 | } else { |
1285 | mShowAction->setText( i18n("Show...") ); | 1272 | mShowAction->setText( i18n("Show...") ); |
1286 | mShowAction->setText( i18n("Edit...") ); | 1273 | mShowAction->setText( i18n("Edit...") ); |
1287 | mShowAction->setText( i18n("Delete...") ); | 1274 | mShowAction->setText( i18n("Delete...") ); |
1288 | 1275 | ||
1289 | mNewSubTodoAction->setEnabled( false ); | 1276 | mNewSubTodoAction->setEnabled( false ); |
1290 | } | 1277 | } |
1291 | } | 1278 | } |
1292 | 1279 | ||
1293 | void MainWindow::enableIncidenceActions( bool enabled ) | 1280 | void MainWindow::enableIncidenceActions( bool enabled ) |
1294 | { | 1281 | { |
1295 | mShowAction->setEnabled( enabled ); | 1282 | mShowAction->setEnabled( enabled ); |
1296 | mEditAction->setEnabled( enabled ); | 1283 | mEditAction->setEnabled( enabled ); |
1297 | mDeleteAction->setEnabled( enabled ); | 1284 | mDeleteAction->setEnabled( enabled ); |
1298 | 1285 | ||
1299 | mCloneAction->setEnabled( enabled ); | 1286 | mCloneAction->setEnabled( enabled ); |
1300 | mMoveAction->setEnabled( enabled ); | 1287 | mMoveAction->setEnabled( enabled ); |
1301 | mBeamAction->setEnabled( enabled ); | 1288 | mBeamAction->setEnabled( enabled ); |
1302 | mCancelAction->setEnabled( enabled ); | 1289 | mCancelAction->setEnabled( enabled ); |
1303 | } | 1290 | } |
1304 | 1291 | ||
1305 | void MainWindow::importOL() | 1292 | void MainWindow::importOL() |
1306 | { | 1293 | { |
1307 | #ifdef _WIN32_ | 1294 | #ifdef _WIN32_ |
1308 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); | 1295 | KOImportOLdialog *id = new KOImportOLdialog("Import from OL - select folder!" , mView->calendar(),this ); |
1309 | id->exec(); | 1296 | id->exec(); |
1310 | delete id; | 1297 | delete id; |
1311 | mView->updateView(); | 1298 | mView->updateView(); |
1312 | #endif | 1299 | #endif |
1313 | } | 1300 | } |
1314 | void MainWindow::importBday() | 1301 | void MainWindow::importBday() |
1315 | { | 1302 | { |
1316 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1303 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1317 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), | 1304 | i18n("When importing birthdays twice\nduplicated events will be ignored,\nif the event has not been\nchanged in KO/Pi!\n"), |
1318 | i18n("Import!"), i18n("Cancel"), 0, | 1305 | i18n("Import!"), i18n("Cancel"), 0, |
1319 | 0, 1 ); | 1306 | 0, 1 ); |
1320 | if ( result == 0 ) { | 1307 | if ( result == 0 ) { |
1321 | mView->importBday(); | 1308 | mView->importBday(); |
1322 | 1309 | ||
1323 | } | 1310 | } |
1324 | 1311 | ||
1325 | 1312 | ||
1326 | } | 1313 | } |
1327 | void MainWindow::importQtopia() | 1314 | void MainWindow::importQtopia() |
1328 | { | 1315 | { |
1329 | #ifndef DESKTOP_VERSION | 1316 | #ifndef DESKTOP_VERSION |
1330 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1317 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1331 | i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"), | 1318 | i18n("When importing a calendar twice\nduplicated events will be ignored!\nYou can create a backup file with\nFile - Save Calendar Backup\nto revert importing"), |
1332 | i18n("Import!"), i18n("Cancel"), 0, | 1319 | i18n("Import!"), i18n("Cancel"), 0, |
1333 | 0, 1 ); | 1320 | 0, 1 ); |
1334 | if ( result == 0 ) { | 1321 | if ( result == 0 ) { |
1335 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); | 1322 | QString datebook = Global::applicationFileName( "datebook", "datebook.xml"); |
1336 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); | 1323 | QString todolist = Global::applicationFileName( "todolist", "todolist.xml"); |
1337 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; | 1324 | QString categories = QString( getenv( "HOME" ) ) + "/Settings/Categories.xml"; |
1338 | mView->importQtopia( categories, datebook, todolist ); | 1325 | mView->importQtopia( categories, datebook, todolist ); |
1339 | } | 1326 | } |
1340 | #else | 1327 | #else |
1341 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), | 1328 | int result = QMessageBox::warning( this, i18n("KO/Pi: Warning!"), |
1342 | i18n("Not supported \non desktop!\n"), | 1329 | i18n("Not supported \non desktop!\n"), |
1343 | i18n("Ok"), i18n("Cancel"), 0, | 1330 | i18n("Ok"), i18n("Cancel"), 0, |
1344 | 0, 1 ); | 1331 | 0, 1 ); |
1345 | 1332 | ||
1346 | #endif | 1333 | #endif |
1347 | } | 1334 | } |
1348 | 1335 | ||
1349 | void MainWindow::saveOnClose() | 1336 | void MainWindow::saveOnClose() |
1350 | { | 1337 | { |
1351 | KOPrefs *p = KOPrefs::instance(); | 1338 | KOPrefs *p = KOPrefs::instance(); |
1352 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); | 1339 | p->mToolBarHor = ( iconToolBar->orientation () == Qt:: Horizontal ); |
1353 | p->mToolBarUp = iconToolBar->x() > width()/2 || | 1340 | p->mToolBarUp = iconToolBar->x() > width()/2 || |
1354 | iconToolBar->y() > height()/2; | 1341 | iconToolBar->y() > height()/2; |
1355 | mView->writeSettings(); | 1342 | mView->writeSettings(); |
1356 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) | 1343 | if ( mCalendarModifiedFlag || mView->checkFileChanged( defaultFileName())) |
1357 | save(); | 1344 | save(); |
1358 | } | 1345 | } |
1359 | void MainWindow::slotModifiedChanged( bool changed ) | 1346 | void MainWindow::slotModifiedChanged( bool changed ) |
1360 | { | 1347 | { |
1361 | if ( mBlockAtStartup ) | 1348 | if ( mBlockAtStartup ) |
1362 | return; | 1349 | return; |
1363 | int msec; | 1350 | int msec; |
1364 | // we store the changes after 1 minute, | 1351 | // we store the changes after 1 minute, |
1365 | // and for safety reasons after 10 minutes again | 1352 | // and for safety reasons after 10 minutes again |
1366 | if ( !mSyncManager->blockSave() ) | 1353 | if ( !mSyncManager->blockSave() ) |