author | zautrix <zautrix> | 2005-02-11 06:29:27 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-02-11 06:29:27 (UTC) |
commit | 22240f208a62931d28f6a90f6b84869a5a6caa7b (patch) (unidiff) | |
tree | 4c5bfc7a73eb58eb070499dc64e6e63731e0a44a | |
parent | 0c1191e3253542b4858261241975c159ee7910c6 (diff) | |
download | kdepimpi-22240f208a62931d28f6a90f6b84869a5a6caa7b.zip kdepimpi-22240f208a62931d28f6a90f6b84869a5a6caa7b.tar.gz kdepimpi-22240f208a62931d28f6a90f6b84869a5a6caa7b.tar.bz2 |
ffiixx
-rw-r--r-- | bin/kdepim/WhatsNew.txt | 5 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmprefs.cpp | 3 |
2 files changed, 7 insertions, 1 deletions
diff --git a/bin/kdepim/WhatsNew.txt b/bin/kdepim/WhatsNew.txt index 81b0d59..77f5829 100644 --- a/bin/kdepim/WhatsNew.txt +++ b/bin/kdepim/WhatsNew.txt | |||
@@ -1,258 +1,263 @@ | |||
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.7 ************ | ||
4 | |||
5 | Added global application font settings | ||
6 | (for all KDE-Pim/Pi apps) to the general settings. | ||
7 | |||
3 | ********** VERSION 2.0.6 ************ | 8 | ********** VERSION 2.0.6 ************ |
4 | 9 | ||
5 | Some bugfixes in the pi-sync mode. | 10 | Some bugfixes in the pi-sync mode. |
6 | Added German translation for pi-sync mode. | 11 | Added German translation for pi-sync mode. |
7 | 12 | ||
8 | KO/Pi: | 13 | KO/Pi: |
9 | Made the todolist using alternate background. | 14 | Made the todolist using alternate background. |
10 | 15 | ||
11 | Other minor fixes in KO/Pi. | 16 | Other minor fixes in KO/Pi. |
12 | 17 | ||
13 | 18 | ||
14 | ********** VERSION 2.0.5 ************ | 19 | ********** VERSION 2.0.5 ************ |
15 | 20 | ||
16 | Bugfixes in KO/Pi. | 21 | Bugfixes in KO/Pi. |
17 | 22 | ||
18 | ********** VERSION 2.0.4 ************ | 23 | ********** VERSION 2.0.4 ************ |
19 | 24 | ||
20 | KO/Pi: | 25 | KO/Pi: |
21 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. | 26 | Fixed problem loading translations for summary/location edit boxes in event/todo editor. |
22 | 27 | ||
23 | Added a general "select week number" to the toolbar. | 28 | Added a general "select week number" to the toolbar. |
24 | 29 | ||
25 | Fixed some small problem of the new features introduced in version 2.0.3. | 30 | Fixed some small problem of the new features introduced in version 2.0.3. |
26 | 31 | ||
27 | Made it possible to specify one specific category as category color, | 32 | Made it possible to specify one specific category as category color, |
28 | if more than one categories are selected. | 33 | if more than one categories are selected. |
29 | 34 | ||
30 | Fixed a bug in saving colors for categories with non-ascii characters. | 35 | Fixed a bug in saving colors for categories with non-ascii characters. |
31 | (Like, e.g. German Umlauts). | 36 | (Like, e.g. German Umlauts). |
32 | Propably you have to set your colors again for those categories. | 37 | Propably you have to set your colors again for those categories. |
33 | 38 | ||
34 | 39 | ||
35 | ********** VERSION 2.0.3 ************ | 40 | ********** VERSION 2.0.3 ************ |
36 | 41 | ||
37 | KO/Pi: | 42 | KO/Pi: |
38 | Added feature for changing alarm settings for many items at once: | 43 | Added feature for changing alarm settings for many items at once: |
39 | Open list view (or search dialog), select the desired items and choose in | 44 | Open list view (or search dialog), select the desired items and choose in |
40 | the popup menu: Set alarm for selected... | 45 | the popup menu: Set alarm for selected... |
41 | 46 | ||
42 | Added to the event/todo viewer the option to send an email to | 47 | Added to the event/todo viewer the option to send an email to |
43 | all attendees or all selected (with RSVP) attendees. | 48 | all attendees or all selected (with RSVP) attendees. |
44 | 49 | ||
45 | Made the week-month mode changing in month view faster. | 50 | Made the week-month mode changing in month view faster. |
46 | 51 | ||
47 | Made month view better useable with keyboard. | 52 | Made month view better useable with keyboard. |
48 | Now TAB key jumps to next cell with an event/todo. | 53 | Now TAB key jumps to next cell with an event/todo. |
49 | Scroll in cell with coursor keys, scroll in time (next week) with | 54 | Scroll in cell with coursor keys, scroll in time (next week) with |
50 | Shift/Control + coursorkeys. | 55 | Shift/Control + coursorkeys. |
51 | 56 | ||
52 | Fixed bug that the todo view flat mode was reset after first view update. | 57 | Fixed bug that the todo view flat mode was reset after first view update. |
53 | 58 | ||
54 | If a todo is displayed closed in the todo view, | 59 | If a todo is displayed closed in the todo view, |
55 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. | 60 | it is now displayed in overdue/due today color depending on the subtodos overdue/due today properties. |
56 | 61 | ||
57 | Added info about the numbers of years to the caption (title) information about a birthday event. | 62 | Added info about the numbers of years to the caption (title) information about a birthday event. |
58 | 63 | ||
59 | Made completion date in todo editor editable. | 64 | Made completion date in todo editor editable. |
60 | 65 | ||
61 | Added possibility to save/load templates for journals. | 66 | Added possibility to save/load templates for journals. |
62 | (Which is just a simple "save text to file" or "insert text from file". | 67 | (Which is just a simple "save text to file" or "insert text from file". |
63 | 68 | ||
64 | ********** VERSION 2.0.2 ************ | 69 | ********** VERSION 2.0.2 ************ |
65 | 70 | ||
66 | KO/Pi: | 71 | KO/Pi: |
67 | Fixed the layout problem of the day label buttons | 72 | Fixed the layout problem of the day label buttons |
68 | of the agenda view introduced in version 2.0.1. | 73 | of the agenda view introduced in version 2.0.1. |
69 | 74 | ||
70 | Added WhatsThis support for the todo view and the list view. | 75 | Added WhatsThis support for the todo view and the list view. |
71 | 76 | ||
72 | Added a quite useful feature to the montview. | 77 | Added a quite useful feature to the montview. |
73 | Just click on the week numbers on the left. | 78 | Just click on the week numbers on the left. |
74 | And in the top right corner of month view/agenda view | 79 | And in the top right corner of month view/agenda view |
75 | there is now a "week number quick selector". | 80 | there is now a "week number quick selector". |
76 | (Click on the black triangle). | 81 | (Click on the black triangle). |
77 | 82 | ||
78 | Made the quite difficult timezone change in KO/Pi easy. | 83 | Made the quite difficult timezone change in KO/Pi easy. |
79 | 84 | ||
80 | OM/Pi: | 85 | OM/Pi: |
81 | Fixed too small icons on desktop. | 86 | Fixed too small icons on desktop. |
82 | Fixed non visible icons in mainwindow on Z with fastload enabled. | 87 | Fixed non visible icons in mainwindow on Z with fastload enabled. |
83 | Added signature file setting to smtp account config. | 88 | Added signature file setting to smtp account config. |
84 | And the signature can be edited and saved in the edit mail dialog. | 89 | And the signature can be edited and saved in the edit mail dialog. |
85 | That does mean: | 90 | That does mean: |
86 | Simply edit the signature for the selected smtp account in the | 91 | Simply edit the signature for the selected smtp account in the |
87 | edit new mail dialog and press the "save signature" button there. | 92 | edit new mail dialog and press the "save signature" button there. |
88 | Then the signature is saved to the file specified in the smtp account settings. | 93 | Then the signature is saved to the file specified in the smtp account settings. |
89 | If there is no file specified, it is saved automatically to the file | 94 | If there is no file specified, it is saved automatically to the file |
90 | kdepim/apps/kopiemail/<accountname>.sig. | 95 | kdepim/apps/kopiemail/<accountname>.sig. |
91 | 96 | ||
92 | 97 | ||
93 | 98 | ||
94 | ********** VERSION 2.0.1 ************ | 99 | ********** VERSION 2.0.1 ************ |
95 | 100 | ||
96 | Oooops ... I forgot to test on the Zaurus 5500 ... | 101 | Oooops ... I forgot to test on the Zaurus 5500 ... |
97 | 102 | ||
98 | Fixed many problems of new (english) strings (and german translations) | 103 | Fixed many problems of new (english) strings (and german translations) |
99 | introduced in the latest versions, where the text was not fitting on the | 104 | introduced in the latest versions, where the text was not fitting on the |
100 | 240x320 display of the Zaurus 5500. | 105 | 240x320 display of the Zaurus 5500. |
101 | 106 | ||
102 | KO/Pi: | 107 | KO/Pi: |
103 | Added a popup menu ( press pen and hold to get popup ) to the agenda view | 108 | Added a popup menu ( press pen and hold to get popup ) to the agenda view |
104 | with many useful items (add event/todo, show next week, two weeks, month, journal). | 109 | with many useful items (add event/todo, show next week, two weeks, month, journal). |
105 | 110 | ||
106 | Added items to the todolist popup menu for: | 111 | Added items to the todolist popup menu for: |
107 | Display all opened, all closed or all todos flat. | 112 | Display all opened, all closed or all todos flat. |
108 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. | 113 | The "flat" view makes is possible to sort all todos after ,e.g., prio or date. |
109 | Made the reparenting of todos on the desktop possible via Drag&Drop. | 114 | Made the reparenting of todos on the desktop possible via Drag&Drop. |
110 | Fixed several bugs in setting the completed datetime for todos. | 115 | Fixed several bugs in setting the completed datetime for todos. |
111 | Added info about completed datetime of todos to the todo viewer. | 116 | Added info about completed datetime of todos to the todo viewer. |
112 | Now displaying a completed todo (with completed datetime set) in the agenda view | 117 | Now displaying a completed todo (with completed datetime set) in the agenda view |
113 | at the time of the completion. Such that now it is possible to see in the agenda view | 118 | at the time of the completion. Such that now it is possible to see in the agenda view |
114 | when what todo was completed. | 119 | when what todo was completed. |
115 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. | 120 | Fixed behaviour of automatic setting completion of todos with sub-todos/parent todos. |
116 | Now the behaviour is: | 121 | Now the behaviour is: |
117 | Setting a parent to complete sets all (sub)childs to complete. | 122 | Setting a parent to complete sets all (sub)childs to complete. |
118 | Setting a parent to uncomplete does not change the childs. | 123 | Setting a parent to uncomplete does not change the childs. |
119 | Setting a child to uncomplete sets all parent to uncomplete. | 124 | Setting a child to uncomplete sets all parent to uncomplete. |
120 | Setting a child to complete does not change the parents. | 125 | Setting a child to complete does not change the parents. |
121 | 126 | ||
122 | Smart updating and double buffering of the daymatrix. | 127 | Smart updating and double buffering of the daymatrix. |
123 | Showing holidays in the day matrix. | 128 | Showing holidays in the day matrix. |
124 | Many other small performance updates. | 129 | Many other small performance updates. |
125 | 130 | ||
126 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. | 131 | Made day labels in agenda clickable. By clicking a label, the day is displayed in single day mode. |
127 | 132 | ||
128 | Now the translation file usertranslation.txt is supposed to be in utf8 format. | 133 | Now the translation file usertranslation.txt is supposed to be in utf8 format. |
129 | 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. | 134 | 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. |
130 | 135 | ||
131 | 136 | ||
132 | ********** VERSION 2.0.0 ************ | 137 | ********** VERSION 2.0.0 ************ |
133 | 138 | ||
134 | Stable release 2.0.0! | 139 | Stable release 2.0.0! |
135 | 140 | ||
136 | KO/Pi: | 141 | KO/Pi: |
137 | Fixed problem in edit dialog recreation at startup. | 142 | Fixed problem in edit dialog recreation at startup. |
138 | Made "toggle view*" menu items enabled context sensitive. | 143 | Made "toggle view*" menu items enabled context sensitive. |
139 | Changed agenda size menu to items 1-10. | 144 | Changed agenda size menu to items 1-10. |
140 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. | 145 | Made it possible to change agenda size quickly by pressing mouse on timelabels in agenda view and move mouse up/down. |
141 | Usebility enhancements in the KO/Pi menus. | 146 | Usebility enhancements in the KO/Pi menus. |
142 | Birthday import now adds year to summary. | 147 | Birthday import now adds year to summary. |
143 | What's Next view shows age in years for birthday. | 148 | What's Next view shows age in years for birthday. |
144 | 149 | ||
145 | OM/Pi: | 150 | OM/Pi: |
146 | Added three info lines to display subject, from and to of selected mails. | 151 | Added three info lines to display subject, from and to of selected mails. |
147 | 152 | ||
148 | KA/Pi: | 153 | KA/Pi: |
149 | Fixed jump bar behaviour on Zaurus. | 154 | Fixed jump bar behaviour on Zaurus. |
150 | Now KA/Pi search field supports searching for a range of starting characters. | 155 | Now KA/Pi search field supports searching for a range of starting characters. |
151 | E.g. to search for all contact beginning with b to n, type | 156 | E.g. to search for all contact beginning with b to n, type |
152 | b-n | 157 | b-n |
153 | in the search field. | 158 | in the search field. |
154 | 159 | ||
155 | ********** VERSION 1.9.20 ************ | 160 | ********** VERSION 1.9.20 ************ |
156 | 161 | ||
157 | KO/Pi: | 162 | KO/Pi: |
158 | Added for the "dislplay one day" agenda mode | 163 | Added for the "dislplay one day" agenda mode |
159 | info in the caption and in the day lables: | 164 | info in the caption and in the day lables: |
160 | Now it is displayed, if the selected day is from "day before yesterday" | 165 | Now it is displayed, if the selected day is from "day before yesterday" |
161 | to "day after tomorrow". | 166 | to "day after tomorrow". |
162 | Made it possible to delete a Todo, which has sub-todos. | 167 | Made it possible to delete a Todo, which has sub-todos. |
163 | Fixed two small problems in the todo view. | 168 | Fixed two small problems in the todo view. |
164 | Added missing German translation for filter edit and print dialog. | 169 | Added missing German translation for filter edit and print dialog. |
165 | Made search dialog closeable by cancel key. | 170 | Made search dialog closeable by cancel key. |
166 | 171 | ||
167 | Made it possible to select in the date picker the (ligt grey ) | 172 | Made it possible to select in the date picker the (ligt grey ) |
168 | dates of the prev./next month with the mouse. | 173 | dates of the prev./next month with the mouse. |
169 | 174 | ||
170 | OM/Pi: | 175 | OM/Pi: |
171 | "Delete mail" icon in main window now deletes all selected mails. | 176 | "Delete mail" icon in main window now deletes all selected mails. |
172 | Fixed the problem, that the state flag of imap mails was ignored. | 177 | Fixed the problem, that the state flag of imap mails was ignored. |
173 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view | 178 | Now mails with "FLAG_SEEN" on the imap server get no icon in the list view |
174 | to indecate that they are already seen. | 179 | to indecate that they are already seen. |
175 | Fixed the problem that the body of some mails was not displayed in the | 180 | Fixed the problem that the body of some mails was not displayed in the |
176 | mail viewer when fetching them from the imap server directly to read them. | 181 | mail viewer when fetching them from the imap server directly to read them. |
177 | Made it (configurable) possible to show the "To:" field in the list view. | 182 | Made it (configurable) possible to show the "To:" field in the list view. |
178 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. | 183 | Added to the mail viewer the option "View Source" to make it possible to see the raw mail data. |
179 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the | 184 | Added a "Download Mail" button to the mail viewer to quickly download the viewed mail to the |
180 | local storage folder (specified in account settings) of the account of the mail. | 185 | local storage folder (specified in account settings) of the account of the mail. |
181 | Removed some memory leaks in OM/Pi. | 186 | Removed some memory leaks in OM/Pi. |
182 | 187 | ||
183 | 188 | ||
184 | ********** VERSION 1.9.19 ************ | 189 | ********** VERSION 1.9.19 ************ |
185 | 190 | ||
186 | Added a lot of missing translations to KA/Pi, | 191 | Added a lot of missing translations to KA/Pi, |
187 | Added some missing translations to KO/Pi and OM/Pi. | 192 | Added some missing translations to KO/Pi and OM/Pi. |
188 | 193 | ||
189 | Fixed some minor problems in KA/Pi + KO/Pi. | 194 | Fixed some minor problems in KA/Pi + KO/Pi. |
190 | 195 | ||
191 | Fixed a crash when closing PwM/Pi. | 196 | Fixed a crash when closing PwM/Pi. |
192 | Added German translation for PwM/Pi. | 197 | Added German translation for PwM/Pi. |
193 | 198 | ||
194 | Made view change and Month View update faster in KO/Pi. | 199 | Made view change and Month View update faster in KO/Pi. |
195 | 200 | ||
196 | 201 | ||
197 | ********** VERSION 1.9.18 ************ | 202 | ********** VERSION 1.9.18 ************ |
198 | 203 | ||
199 | FYI: The VERSION 1.9.17 was a testing release only. | 204 | FYI: The VERSION 1.9.17 was a testing release only. |
200 | Please read the changelog of VERSION 1.9.17 as well. | 205 | Please read the changelog of VERSION 1.9.17 as well. |
201 | 206 | ||
202 | Cleaned up the syncing config dialog. | 207 | Cleaned up the syncing config dialog. |
203 | Added sync config options for date range for events. | 208 | Added sync config options for date range for events. |
204 | Added sync config options for filters on incoming data. | 209 | Added sync config options for filters on incoming data. |
205 | Added sync config options for filters on outgoing data. | 210 | Added sync config options for filters on outgoing data. |
206 | Please read the updated SyncHowTo about the new filter settings. | 211 | Please read the updated SyncHowTo about the new filter settings. |
207 | These filter settings make it now possible to sync with shared | 212 | These filter settings make it now possible to sync with shared |
208 | calendars without writing back private or confidential data | 213 | calendars without writing back private or confidential data |
209 | (via the outgoing filters). | 214 | (via the outgoing filters). |
210 | To sync only with particular parts of a shared calendar, | 215 | To sync only with particular parts of a shared calendar, |
211 | the incoming filter settings can be used. | 216 | the incoming filter settings can be used. |
212 | An example can be found in the SyncHowTo. | 217 | An example can be found in the SyncHowTo. |
213 | Same for shared addressbooks. | 218 | Same for shared addressbooks. |
214 | 219 | ||
215 | Added a setting for the global kdepim data storage. | 220 | Added a setting for the global kdepim data storage. |
216 | Usually the data is stored in (yourhomedir/kdepim). | 221 | Usually the data is stored in (yourhomedir/kdepim). |
217 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" | 222 | Now you can set in the Global config dialog TAB, subTAB "Data storage path" |
218 | a directory where all the kdepim data is stored. | 223 | a directory where all the kdepim data is stored. |
219 | That makes it easy to save all kdepim data on a SD card on the Z, for example. | 224 | That makes it easy to save all kdepim data on a SD card on the Z, for example. |
220 | 225 | ||
221 | KO/Pi: | 226 | KO/Pi: |
222 | The timeedit input has a pulldown list for times. | 227 | The timeedit input has a pulldown list for times. |
223 | If opened, this pulldown list should now has the right time highlighted. | 228 | If opened, this pulldown list should now has the right time highlighted. |
224 | Added the possibility to exclude events/todos/journals in a filter. | 229 | Added the possibility to exclude events/todos/journals in a filter. |
225 | You should exclude journals, if you do not want them to sync with a public calendar. | 230 | You should exclude journals, if you do not want them to sync with a public calendar. |
226 | 231 | ||
227 | KA/Pi: | 232 | KA/Pi: |
228 | Added the possibility to in/exclude public/private/confidential contacts to a filter. | 233 | Added the possibility to in/exclude public/private/confidential contacts to a filter. |
229 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... | 234 | If you have already defined filterrules in KA/Pi you have to adjust them all by setting the "include public/private/confidential" property manually. Sorry for that ... |
230 | Added printing of card view and details view on desktop. | 235 | Added printing of card view and details view on desktop. |
231 | Printing of list view is not working... | 236 | Printing of list view is not working... |
232 | Added button for removing pictures in contact editor. | 237 | Added button for removing pictures in contact editor. |
233 | Parsing data fix of KA/Pi version 1.9.17. | 238 | Parsing data fix of KA/Pi version 1.9.17. |
234 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. | 239 | Fixed the "parse name automatically" problem of KA/Pi version 1.9.17. |
235 | Fixed some syncing merging problems. | 240 | Fixed some syncing merging problems. |
236 | 241 | ||
237 | 242 | ||
238 | ********** VERSION 1.9.17 ************ | 243 | ********** VERSION 1.9.17 ************ |
239 | 244 | ||
240 | KO/Pi: | 245 | KO/Pi: |
241 | Fixed that tooltips were not updated after moving an item in agenda view. | 246 | Fixed that tooltips were not updated after moving an item in agenda view. |
242 | Fixed a bug in sorting start date for recurring events in list view. | 247 | Fixed a bug in sorting start date for recurring events in list view. |
243 | Changed the left button in todo viewer from "Agenda" to "Set completed". | 248 | Changed the left button in todo viewer from "Agenda" to "Set completed". |
244 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. | 249 | This makes it possible to change a todo in the What's Next View quickly to the completed state without leaving the What's Next View. |
245 | Added more info in the todo viewer: Startdate, parent/sub todos. | 250 | Added more info in the todo viewer: Startdate, parent/sub todos. |
246 | 251 | ||
247 | 252 | ||
248 | KA/Pi: | 253 | KA/Pi: |
249 | All fields search does now actually search all the (possible) fields, | 254 | All fields search does now actually search all the (possible) fields, |
250 | not only those listed in the contact list. | 255 | not only those listed in the contact list. |
251 | Made is possible to inline a picture in a vcard on the Z. | 256 | Made is possible to inline a picture in a vcard on the Z. |
252 | This was only possible on the desktop, now is it possible on the Z as well. | 257 | This was only possible on the desktop, now is it possible on the Z as well. |
253 | Fixed of missing save settings after filter configuration. | 258 | Fixed of missing save settings after filter configuration. |
254 | Made saving of addressbook much faster. | 259 | Made saving of addressbook much faster. |
255 | Fixed extension widget layout problem. | 260 | Fixed extension widget layout problem. |
256 | Fixed saving of default formatted name settings. | 261 | Fixed saving of default formatted name settings. |
257 | Fixed formatted name handling in edit dialog. | 262 | Fixed formatted name handling in edit dialog. |
258 | Added an option for changing formatted names of many contacts | 263 | Added an option for changing formatted names of many contacts |
diff --git a/pwmanager/pwmanager/pwmprefs.cpp b/pwmanager/pwmanager/pwmprefs.cpp index 68d5b68..31fb2e0 100644 --- a/pwmanager/pwmanager/pwmprefs.cpp +++ b/pwmanager/pwmanager/pwmprefs.cpp | |||
@@ -1,300 +1,301 @@ | |||
1 | /* | 1 | /* |
2 | This file is part of PwManager/Pi | 2 | This file is part of PwManager/Pi |
3 | Copyright (c) 2004 Ulf Schenk | 3 | Copyright (c) 2004 Ulf Schenk |
4 | 4 | ||
5 | This program is free software; you can redistribute it and/or modify | 5 | This program is free software; you can redistribute it and/or modify |
6 | it under the terms of the GNU General Public License as published by | 6 | it under the terms of the GNU General Public License as published by |
7 | the Free Software Foundation; either version 2 of the License, or | 7 | the Free Software Foundation; either version 2 of the License, or |
8 | (at your option) any later version. | 8 | (at your option) any later version. |
9 | 9 | ||
10 | This program is distributed in the hope that it will be useful, | 10 | This program is distributed in the hope that it will be useful, |
11 | but WITHOUT ANY WARRANTY; without even the implied warranty of | 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of |
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
13 | GNU General Public License for more details. | 13 | GNU General Public License for more details. |
14 | 14 | ||
15 | You should have received a copy of the GNU General Public License | 15 | You should have received a copy of the GNU General Public License |
16 | along with this program; if not, write to the Free Software | 16 | along with this program; if not, write to the Free Software |
17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. | 17 | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. |
18 | 18 | ||
19 | As a special exception, permission is given to link this program | 19 | As a special exception, permission is given to link this program |
20 | with any edition of Qt, and distribute the resulting executable, | 20 | with any edition of Qt, and distribute the resulting executable, |
21 | without including the source code for Qt in the source distribution. | 21 | without including the source code for Qt in the source distribution. |
22 | 22 | ||
23 | $Id$ | 23 | $Id$ |
24 | */ | 24 | */ |
25 | 25 | ||
26 | 26 | ||
27 | #include <kconfig.h> | 27 | #include <kconfig.h> |
28 | #include <klocale.h> | 28 | #include <klocale.h> |
29 | #include <kstaticdeleter.h> | 29 | #include <kstaticdeleter.h> |
30 | #include <kglobalsettings.h> | ||
30 | 31 | ||
31 | #include "pwmprefs.h" | 32 | #include "pwmprefs.h" |
32 | 33 | ||
33 | PWMPrefs *PWMPrefs::sInstance = 0; | 34 | PWMPrefs *PWMPrefs::sInstance = 0; |
34 | static KStaticDeleter<PWMPrefs> staticDeleterPP; | 35 | static KStaticDeleter<PWMPrefs> staticDeleterPP; |
35 | 36 | ||
36 | PWMPrefs::PWMPrefs() | 37 | PWMPrefs::PWMPrefs() |
37 | : KPimPrefs("pwmanagerrc") | 38 | : KPimPrefs("pwmanagerrc") |
38 | { | 39 | { |
39 | KPrefs::setCurrentGroup( "Global" ); | 40 | KPrefs::setCurrentGroup( "Global" ); |
40 | 41 | ||
41 | addItemString( "autoStart", &mAutoStart, "" ); | 42 | addItemString( "autoStart", &mAutoStart, "" ); |
42 | addItemString( "browserCommand", &mBrowserCommand, "" ); | 43 | addItemString( "browserCommand", &mBrowserCommand, "" ); |
43 | addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND); | 44 | addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND); |
44 | addItemFont( "entryFont", &mEntryFont); | 45 | addItemFont( "entryFont", &mEntryFont,KGlobalSettings::generalFont()); |
45 | addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT ); | 46 | addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT ); |
46 | addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT ); | 47 | addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT ); |
47 | addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION ); | 48 | addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION ); |
48 | addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO); | 49 | addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO); |
49 | addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO); | 50 | addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO); |
50 | addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS ); | 51 | addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS ); |
51 | addItemInt( "minimizeLock", &mMinimizeLock, CONF_DEFAULT_MINIMIZELOCK ); | 52 | addItemInt( "minimizeLock", &mMinimizeLock, CONF_DEFAULT_MINIMIZELOCK ); |
52 | addItemBool( "unlockOnOpen", &mUnlockOnOpen, CONF_DEFAULT_UNLOCKONOPEN ); | 53 | addItemBool( "unlockOnOpen", &mUnlockOnOpen, CONF_DEFAULT_UNLOCKONOPEN ); |
53 | addItemBool( "tray", &mTray, CONF_DEFAULT_TRAY ); | 54 | addItemBool( "tray", &mTray, CONF_DEFAULT_TRAY ); |
54 | addItemBool( "makeFileBackup", &mMakeFileBackup, CONF_DEFAULT_MAKEFILEBACKUP ); | 55 | addItemBool( "makeFileBackup", &mMakeFileBackup, CONF_DEFAULT_MAKEFILEBACKUP ); |
55 | addItemBool( "autostartDeepLocked", &mAutostartDeeplocked, CONF_DEFAULT_AUTOSTART_DEEPL ); | 56 | addItemBool( "autostartDeepLocked", &mAutostartDeeplocked, CONF_DEFAULT_AUTOSTART_DEEPL ); |
56 | addItemBool( "autoDeepLock", &mAutoDeeplock, CONF_DEFAULT_AUTODEEPLOCK ); | 57 | addItemBool( "autoDeepLock", &mAutoDeeplock, CONF_DEFAULT_AUTODEEPLOCK ); |
57 | addItemBool( "kwalletEmu", &mKWalletEmu, CONF_DEFAULT_KWALLETEMU ); | 58 | addItemBool( "kwalletEmu", &mKWalletEmu, CONF_DEFAULT_KWALLETEMU ); |
58 | addItemBool( "newEntrLockStat", &mNewEntrLockStat, CONF_DEFAULT_NEWENTRLOCKSTAT ); | 59 | addItemBool( "newEntrLockStat", &mNewEntrLockStat, CONF_DEFAULT_NEWENTRLOCKSTAT ); |
59 | 60 | ||
60 | KPrefs::setCurrentGroup( "Wnd" ); | 61 | KPrefs::setCurrentGroup( "Wnd" ); |
61 | 62 | ||
62 | addItemSize( "MainWndSize", &mMainWndSize); | 63 | addItemSize( "MainWndSize", &mMainWndSize); |
63 | addItemInt( "MainViewStyle", &mMainViewStyle, CONF_DEFAULT_MAINVIEWSTYLE ); | 64 | addItemInt( "MainViewStyle", &mMainViewStyle, CONF_DEFAULT_MAINVIEWSTYLE ); |
64 | addItemBool( "autoMinimizeOnStart", &mAutoMinimizeOnStart, CONF_DEFAULT_AUTOMINIMIZE ); | 65 | addItemBool( "autoMinimizeOnStart", &mAutoMinimizeOnStart, CONF_DEFAULT_AUTOMINIMIZE ); |
65 | addItemBool( "close", &mClose, CONF_DEFAULT_WNDCLOSE ); | 66 | addItemBool( "close", &mClose, CONF_DEFAULT_WNDCLOSE ); |
66 | addItemIntList( "commentSplitter", &mCommentSplitter ); | 67 | addItemIntList( "commentSplitter", &mCommentSplitter ); |
67 | addItemIntList( "categorySplitter", &mCategorySplitter ); | 68 | addItemIntList( "categorySplitter", &mCategorySplitter ); |
68 | } | 69 | } |
69 | 70 | ||
70 | PWMPrefs::~PWMPrefs() | 71 | PWMPrefs::~PWMPrefs() |
71 | { | 72 | { |
72 | if (sInstance == this) | 73 | if (sInstance == this) |
73 | sInstance = staticDeleterPP.setObject(0); | 74 | sInstance = staticDeleterPP.setObject(0); |
74 | else | 75 | else |
75 | qDebug("Whats this? Error in PWMPrefs::~PWMPrefs()?"); | 76 | qDebug("Whats this? Error in PWMPrefs::~PWMPrefs()?"); |
76 | } | 77 | } |
77 | 78 | ||
78 | PWMPrefs *PWMPrefs::instance() | 79 | PWMPrefs *PWMPrefs::instance() |
79 | { | 80 | { |
80 | if ( !sInstance ) { | 81 | if ( !sInstance ) { |
81 | #ifdef PWM_EMBEDDED | 82 | #ifdef PWM_EMBEDDED |
82 | sInstance = staticDeleterPP.setObject( new PWMPrefs() ); | 83 | sInstance = staticDeleterPP.setObject( new PWMPrefs() ); |
83 | #else //PWM_EMBEDDED | 84 | #else //PWM_EMBEDDED |
84 | //US the following line has changed ???. Why | 85 | //US the following line has changed ???. Why |
85 | staticDeleterPP.setObject( sInstance, new PWMPrefs() ); | 86 | staticDeleterPP.setObject( sInstance, new PWMPrefs() ); |
86 | #endif //KAB_EMBEDDED | 87 | #endif //KAB_EMBEDDED |
87 | sInstance->readConfig(); | 88 | sInstance->readConfig(); |
88 | } | 89 | } |
89 | 90 | ||
90 | return sInstance; | 91 | return sInstance; |
91 | } | 92 | } |
92 | 93 | ||
93 | // US introduce a nonconst way to return the config object. | 94 | // US introduce a nonconst way to return the config object. |
94 | KConfig* PWMPrefs::getConfig() | 95 | KConfig* PWMPrefs::getConfig() |
95 | { | 96 | { |
96 | return config(); | 97 | return config(); |
97 | } | 98 | } |
98 | 99 | ||
99 | /******************************************************************* | 100 | /******************************************************************* |
100 | * functions for reading the configuration settings | 101 | * functions for reading the configuration settings |
101 | *******************************************************************/ | 102 | *******************************************************************/ |
102 | 103 | ||
103 | QString PWMPrefs::confGlobAutoStart() | 104 | QString PWMPrefs::confGlobAutoStart() |
104 | { | 105 | { |
105 | return mAutoStart; | 106 | return mAutoStart; |
106 | } | 107 | } |
107 | 108 | ||
108 | QString PWMPrefs::confGlobBrowserCommand() | 109 | QString PWMPrefs::confGlobBrowserCommand() |
109 | { | 110 | { |
110 | return mBrowserCommand; | 111 | return mBrowserCommand; |
111 | } | 112 | } |
112 | 113 | ||
113 | QString PWMPrefs::confGlobXtermCommand() | 114 | QString PWMPrefs::confGlobXtermCommand() |
114 | { | 115 | { |
115 | return mXTermCommand; | 116 | return mXTermCommand; |
116 | } | 117 | } |
117 | 118 | ||
118 | QFont PWMPrefs::confGlobEntryFont() | 119 | QFont PWMPrefs::confGlobEntryFont() |
119 | { | 120 | { |
120 | return mEntryFont; | 121 | return mEntryFont; |
121 | } | 122 | } |
122 | 123 | ||
123 | int PWMPrefs::confGlobPwTimeout() | 124 | int PWMPrefs::confGlobPwTimeout() |
124 | { | 125 | { |
125 | return mPwTimeout; | 126 | return mPwTimeout; |
126 | } | 127 | } |
127 | 128 | ||
128 | int PWMPrefs::confGlobLockTimeout() | 129 | int PWMPrefs::confGlobLockTimeout() |
129 | { | 130 | { |
130 | return mLockTimeout; | 131 | return mLockTimeout; |
131 | } | 132 | } |
132 | 133 | ||
133 | int PWMPrefs::confGlobCompression() | 134 | int PWMPrefs::confGlobCompression() |
134 | { | 135 | { |
135 | return mCompression; | 136 | return mCompression; |
136 | } | 137 | } |
137 | 138 | ||
138 | int PWMPrefs::confGlobFilePermissions() | 139 | int PWMPrefs::confGlobFilePermissions() |
139 | { | 140 | { |
140 | return mFilePermissions; | 141 | return mFilePermissions; |
141 | } | 142 | } |
142 | 143 | ||
143 | int PWMPrefs::confGlobMinimizeLock() | 144 | int PWMPrefs::confGlobMinimizeLock() |
144 | { | 145 | { |
145 | return mMinimizeLock; | 146 | return mMinimizeLock; |
146 | } | 147 | } |
147 | 148 | ||
148 | bool PWMPrefs::confGlobUnlockOnOpen() | 149 | bool PWMPrefs::confGlobUnlockOnOpen() |
149 | { | 150 | { |
150 | return mUnlockOnOpen; | 151 | return mUnlockOnOpen; |
151 | } | 152 | } |
152 | 153 | ||
153 | bool PWMPrefs::confGlobTray() | 154 | bool PWMPrefs::confGlobTray() |
154 | { | 155 | { |
155 | return mTray; | 156 | return mTray; |
156 | } | 157 | } |
157 | 158 | ||
158 | bool PWMPrefs::confGlobMakeFileBackup() | 159 | bool PWMPrefs::confGlobMakeFileBackup() |
159 | { | 160 | { |
160 | return mMakeFileBackup; | 161 | return mMakeFileBackup; |
161 | } | 162 | } |
162 | 163 | ||
163 | bool PWMPrefs::confGlobAutostartDeepLocked() | 164 | bool PWMPrefs::confGlobAutostartDeepLocked() |
164 | { | 165 | { |
165 | return mAutostartDeeplocked; | 166 | return mAutostartDeeplocked; |
166 | } | 167 | } |
167 | 168 | ||
168 | bool PWMPrefs::confGlobAutoDeepLock() | 169 | bool PWMPrefs::confGlobAutoDeepLock() |
169 | { | 170 | { |
170 | return mAutoDeeplock; | 171 | return mAutoDeeplock; |
171 | } | 172 | } |
172 | 173 | ||
173 | bool PWMPrefs::confGlobKwalletEmu() | 174 | bool PWMPrefs::confGlobKwalletEmu() |
174 | { | 175 | { |
175 | return mKWalletEmu; | 176 | return mKWalletEmu; |
176 | } | 177 | } |
177 | 178 | ||
178 | bool PWMPrefs::confGlobNewEntrLockStat() | 179 | bool PWMPrefs::confGlobNewEntrLockStat() |
179 | { | 180 | { |
180 | return mNewEntrLockStat; | 181 | return mNewEntrLockStat; |
181 | } | 182 | } |
182 | 183 | ||
183 | QSize PWMPrefs::confWndMainWndSize() | 184 | QSize PWMPrefs::confWndMainWndSize() |
184 | { | 185 | { |
185 | return mMainWndSize; | 186 | return mMainWndSize; |
186 | } | 187 | } |
187 | 188 | ||
188 | int PWMPrefs::confWndMainViewStyle() | 189 | int PWMPrefs::confWndMainViewStyle() |
189 | { | 190 | { |
190 | return mMainViewStyle; | 191 | return mMainViewStyle; |
191 | } | 192 | } |
192 | 193 | ||
193 | bool PWMPrefs::confWndAutoMinimizeOnStart() | 194 | bool PWMPrefs::confWndAutoMinimizeOnStart() |
194 | { | 195 | { |
195 | return mAutoMinimizeOnStart; | 196 | return mAutoMinimizeOnStart; |
196 | } | 197 | } |
197 | 198 | ||
198 | bool PWMPrefs::confWndClose() | 199 | bool PWMPrefs::confWndClose() |
199 | { | 200 | { |
200 | return mClose; | 201 | return mClose; |
201 | } | 202 | } |
202 | 203 | ||
203 | int PWMPrefs::confGlobCryptAlgo() | 204 | int PWMPrefs::confGlobCryptAlgo() |
204 | { | 205 | { |
205 | return mCryptAlgo + 1; | 206 | return mCryptAlgo + 1; |
206 | } | 207 | } |
207 | 208 | ||
208 | int PWMPrefs::confGlobHashAlgo() | 209 | int PWMPrefs::confGlobHashAlgo() |
209 | { | 210 | { |
210 | return mHashAlgo + 1; | 211 | return mHashAlgo + 1; |
211 | } | 212 | } |
212 | 213 | ||
213 | /******************************************************************* | 214 | /******************************************************************* |
214 | * functions for writing the configuration settings | 215 | * functions for writing the configuration settings |
215 | *******************************************************************/ | 216 | *******************************************************************/ |
216 | 217 | ||
217 | void PWMPrefs::confGlobAutoStart(const QString &e) | 218 | void PWMPrefs::confGlobAutoStart(const QString &e) |
218 | { | 219 | { |
219 | mAutoStart = e; | 220 | mAutoStart = e; |
220 | } | 221 | } |
221 | 222 | ||
222 | void PWMPrefs::confGlobBrowserCommand(const QString &e) | 223 | void PWMPrefs::confGlobBrowserCommand(const QString &e) |
223 | { | 224 | { |
224 | mBrowserCommand = e; | 225 | mBrowserCommand = e; |
225 | } | 226 | } |
226 | 227 | ||
227 | void PWMPrefs::confGlobXtermCommand(const QString &e) | 228 | void PWMPrefs::confGlobXtermCommand(const QString &e) |
228 | { | 229 | { |
229 | mXTermCommand = e; | 230 | mXTermCommand = e; |
230 | } | 231 | } |
231 | 232 | ||
232 | void PWMPrefs::confGlobEntryFont(const QFont &e) | 233 | void PWMPrefs::confGlobEntryFont(const QFont &e) |
233 | { | 234 | { |
234 | mEntryFont = e; | 235 | mEntryFont = e; |
235 | } | 236 | } |
236 | 237 | ||
237 | void PWMPrefs::confGlobPwTimeout(int e) | 238 | void PWMPrefs::confGlobPwTimeout(int e) |
238 | { | 239 | { |
239 | mPwTimeout = e; | 240 | mPwTimeout = e; |
240 | } | 241 | } |
241 | 242 | ||
242 | void PWMPrefs::confGlobLockTimeout(int e) | 243 | void PWMPrefs::confGlobLockTimeout(int e) |
243 | { | 244 | { |
244 | mLockTimeout = e; | 245 | mLockTimeout = e; |
245 | } | 246 | } |
246 | 247 | ||
247 | void PWMPrefs::confGlobCompression(int e) | 248 | void PWMPrefs::confGlobCompression(int e) |
248 | { | 249 | { |
249 | mCompression = e; | 250 | mCompression = e; |
250 | } | 251 | } |
251 | 252 | ||
252 | void PWMPrefs::confGlobFilePermissions(int e) | 253 | void PWMPrefs::confGlobFilePermissions(int e) |
253 | { | 254 | { |
254 | mFilePermissions = e; | 255 | mFilePermissions = e; |
255 | } | 256 | } |
256 | 257 | ||
257 | void PWMPrefs::confGlobMinimizeLock(int e) | 258 | void PWMPrefs::confGlobMinimizeLock(int e) |
258 | { | 259 | { |
259 | mMinimizeLock = e; | 260 | mMinimizeLock = e; |
260 | } | 261 | } |
261 | 262 | ||
262 | void PWMPrefs::confGlobUnlockOnOpen(bool e) | 263 | void PWMPrefs::confGlobUnlockOnOpen(bool e) |
263 | { | 264 | { |
264 | mUnlockOnOpen = e; | 265 | mUnlockOnOpen = e; |
265 | } | 266 | } |
266 | 267 | ||
267 | void PWMPrefs::confGlobTray(bool e) | 268 | void PWMPrefs::confGlobTray(bool e) |
268 | { | 269 | { |
269 | mTray = e; | 270 | mTray = e; |
270 | } | 271 | } |
271 | 272 | ||
272 | void PWMPrefs::confGlobMakeFileBackup(bool e) | 273 | void PWMPrefs::confGlobMakeFileBackup(bool e) |
273 | { | 274 | { |
274 | mMakeFileBackup = e; | 275 | mMakeFileBackup = e; |
275 | } | 276 | } |
276 | 277 | ||
277 | void PWMPrefs::confGlobAutostartDeepLocked(bool e) | 278 | void PWMPrefs::confGlobAutostartDeepLocked(bool e) |
278 | { | 279 | { |
279 | mAutostartDeeplocked = e; | 280 | mAutostartDeeplocked = e; |
280 | } | 281 | } |
281 | 282 | ||
282 | void PWMPrefs::confGlobAutoDeepLock(bool e) | 283 | void PWMPrefs::confGlobAutoDeepLock(bool e) |
283 | { | 284 | { |
284 | mAutoDeeplock = e; | 285 | mAutoDeeplock = e; |
285 | } | 286 | } |
286 | 287 | ||
287 | void PWMPrefs::confGlobKwalletEmu(bool e) | 288 | void PWMPrefs::confGlobKwalletEmu(bool e) |
288 | { | 289 | { |
289 | mKWalletEmu = e; | 290 | mKWalletEmu = e; |
290 | } | 291 | } |
291 | 292 | ||
292 | void PWMPrefs::confGlobNewEntrLockStat(bool e) | 293 | void PWMPrefs::confGlobNewEntrLockStat(bool e) |
293 | { | 294 | { |
294 | mNewEntrLockStat = e; | 295 | mNewEntrLockStat = e; |
295 | } | 296 | } |
296 | 297 | ||
297 | void PWMPrefs::confWndMainWndSize(const QSize &e) | 298 | void PWMPrefs::confWndMainWndSize(const QSize &e) |
298 | { | 299 | { |
299 | mMainWndSize = e; | 300 | mMainWndSize = e; |
300 | } | 301 | } |