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