summaryrefslogtreecommitdiffabout
Unidiff
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--bin/kdepim/pwmanager/germantranslation.txt4
-rw-r--r--pwmanager/pwmanager/commentbox.cpp1
-rw-r--r--pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp19
-rw-r--r--pwmanager/pwmanager/listviewpwm.cpp1
-rw-r--r--pwmanager/pwmanager/pwmprefs.cpp9
-rw-r--r--pwmanager/pwmanager/pwmprefs.h3
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_0.cpp2
-rw-r--r--pwmanager/pwmanager/pwmviewstyle_1.cpp1
8 files changed, 33 insertions, 7 deletions
diff --git a/bin/kdepim/pwmanager/germantranslation.txt b/bin/kdepim/pwmanager/germantranslation.txt
index adf288b..a63be31 100644
--- a/bin/kdepim/pwmanager/germantranslation.txt
+++ b/bin/kdepim/pwmanager/germantranslation.txt
@@ -214,98 +214,100 @@
214{ "&Sync","&Sync" }, 214{ "&Sync","&Sync" },
215{ "&License","&Lizenz" }, 215{ "&License","&Lizenz" },
216{ "&Faq","&Faq" }, 216{ "&Faq","&Faq" },
217{ "&About PwManager","Über PwManager" }, 217{ "&About PwManager","Über PwManager" },
218{ "&Sync HowTo","&Sync HowTo" }, 218{ "&Sync HowTo","&Sync HowTo" },
219{ "&What's New","Was ist neu?" }, 219{ "&What's New","Was ist neu?" },
220{ "New","Neu" }, 220{ "New","Neu" },
221{ "Open","Öffnen" }, 221{ "Open","Öffnen" },
222{ "Save","Speichern" }, 222{ "Save","Speichern" },
223{ "Save as","Speichern als" }, 223{ "Save as","Speichern als" },
224{ "Print...","Drucke..." }, 224{ "Print...","Drucke..." },
225{ "Add password","Passwort hinzufügen" }, 225{ "Add password","Passwort hinzufügen" },
226{ "Edit password","Passwort ändern" }, 226{ "Edit password","Passwort ändern" },
227{ "Delete password","Passwort löschen" }, 227{ "Delete password","Passwort löschen" },
228{ "Find entry","Finde Eintrag" }, 228{ "Find entry","Finde Eintrag" },
229{ "Lock all entries","Sperre alle Einträge" }, 229{ "Lock all entries","Sperre alle Einträge" },
230{ "Deep-Lock all entries","Sperre total alle Einträge" }, 230{ "Deep-Lock all entries","Sperre total alle Einträge" },
231{ "Unlock all entries","Entsperre alle Einträge" }, 231{ "Unlock all entries","Entsperre alle Einträge" },
232{ "Categories:","Kategorien:" }, 232{ "Categories:","Kategorien:" },
233{ "&Rename","&Umbenennen" }, 233{ "&Rename","&Umbenennen" },
234{ "Username","Benutzername" }, 234{ "Username","Benutzername" },
235{ "Password","Passwort" }, 235{ "Password","Passwort" },
236{ "Launcher","Launcher" }, 236{ "Launcher","Launcher" },
237{ "copy password to clipboard","Kopiere Passwort ins Clipboard" }, 237{ "copy password to clipboard","Kopiere Passwort ins Clipboard" },
238{ "copy username to clipboard","Kopiere Benutzername ins Clipboard" }, 238{ "copy username to clipboard","Kopiere Benutzername ins Clipboard" },
239{ "copy description to clipboard","Kopiere Beschreibung ins Clipboard" }, 239{ "copy description to clipboard","Kopiere Beschreibung ins Clipboard" },
240{ "copy url to clipboard","Kopiere URL ins Clipboard" }, 240{ "copy url to clipboard","Kopiere URL ins Clipboard" },
241{ "copy launcher to clipboard","Kopiere Launcher ins Clipboard" }, 241{ "copy launcher to clipboard","Kopiere Launcher ins Clipboard" },
242{ "copy comment to clipboard","Kopiere Kommentare ins Clipboard" }, 242{ "copy comment to clipboard","Kopiere Kommentare ins Clipboard" },
243{ "Execute "Launcher"",""Launcher" ausführen" }, 243{ "Execute "Launcher"",""Launcher" ausführen" },
244{ "Go to "URL"","Gehe zu "URL"" }, 244{ "Go to "URL"","Gehe zu "URL"" },
245{ "Ready.","Fertig." }, 245{ "Ready.","Fertig." },
246{ "password filename(*.pwm)","passwort dateiname(*.pwm)" }, 246{ "password filename(*.pwm)","passwort dateiname(*.pwm)" },
247{ "File error","Datei Fehler" }, 247{ "File error","Datei Fehler" },
248{ "Could not read file!","Kann Datei nicht lesen!" }, 248{ "Could not read file!","Kann Datei nicht lesen!" },
249{ "Master-password","Master-Passwort" }, 249{ "Master-password","Master-Passwort" },
250{ "Please enter the master-password:","Bitter Master-Passwort eingeben:" }, 250{ "Please enter the master-password:","Bitter Master-Passwort eingeben:" },
251{ "Wrong master-password!\nPlease try again.","Falsches Master-Passwort!\nBitte erneut versuchen." }, 251{ "Wrong master-password!\nPlease try again.","Falsches Master-Passwort!\nBitte erneut versuchen." },
252{ "password error","Passwort Fehler" }, 252{ "password error","Passwort Fehler" },
253{ "Successfully opened file.","Datei erfolgreich geöffnet." }, 253{ "Successfully opened file.","Datei erfolgreich geöffnet." },
254{ "DEEP-LOCKED","TOTAL-GESPERRT" }, 254{ "DEEP-LOCKED","TOTAL-GESPERRT" },
255{ "This file is DEEP-LOCKED!\nThat means all data has been encrypted\nand written out to the file. If you want\nto see the entries, please UNLOCK the file.\nWhile unlocking, you will be prompted for the\nmaster-password or the key-card.","Diese Datei ist TOTAL-GESPERRT!\nDas bedeutet, dass alle Daten verschlüsselt\nsind und in die Datei geschrieben wurden.\nWenn Sie die Einträge sehen möchten\nENTSPERREN Sie bitte die Datei.\nZum Entsperren werden Sie nach\ndem Master-Passwort gefragt." }, 255{ "This file is DEEP-LOCKED!\nThat means all data has been encrypted\nand written out to the file. If you want\nto see the entries, please UNLOCK the file.\nWhile unlocking, you will be prompted for the\nmaster-password or the key-card.","Diese Datei ist TOTAL-GESPERRT!\nDas bedeutet, dass alle Daten verschlüsselt\nsind und in die Datei geschrieben wurden.\nWenn Sie die Einträge sehen möchten\nENTSPERREN Sie bitte die Datei.\nZum Entsperren werden Sie nach\ndem Master-Passwort gefragt." },
256{ "<LOCKED>","<GESPERRT>" }, 256{ "<LOCKED>","<GESPERRT>" },
257{ "To unlock click the icon on the left.","Zum Entsperren auf linkes Icon klicken." }, 257{ "To unlock click the icon on the left.","Zum Entsperren auf linkes Icon klicken." },
258{ "PwManager","PwManager" }, 258{ "PwManager","PwManager" },
259{ "Window-style:","Window-Stil:" }, 259{ "Window-style:","Window-Stil:" },
260{ "Category on top","Kategorien oben" }, 260{ "Category on top","Kategorien oben" },
261{ "Category-list left/top","Kategorien links oben" }, 261{ "Category-list left/top","Kategorien links oben" },
262{ "<b>Font for Password entries:</b>","<b>Schrift für Passwort Einträge:</b>" }, 262{ "Font for Password entries:","Schrift für Passwort Einträge:" },
263{ "Font for Password summary:","Schrift für Passwort Übersicht:" },
263{ "Font:","Schriftart:" }, 264{ "Font:","Schriftart:" },
265{ "Summary","Übersicht" },
264{ "Compression:","Kompression:" }, 266{ "Compression:","Kompression:" },
265{ "gzip","gzip" }, 267{ "gzip","gzip" },
266{ "Encryption:","Verschlüsselung:" }, 268{ "Encryption:","Verschlüsselung:" },
267{ "Blowfish (128 bit)","Blowfish (128 bit)" }, 269{ "Blowfish (128 bit)","Blowfish (128 bit)" },
268{ "AES-128, Rijndael (128 bit)","AES-128, Rijndael (128 bit)" }, 270{ "AES-128, Rijndael (128 bit)","AES-128, Rijndael (128 bit)" },
269{ "AES-192, Rijndael (192 bit)","AES-192, Rijndael (192 bit)" }, 271{ "AES-192, Rijndael (192 bit)","AES-192, Rijndael (192 bit)" },
270{ "AES-256, Rijndael (256 bit)","AES-256, Rijndael (256 bit)" }, 272{ "AES-256, Rijndael (256 bit)","AES-256, Rijndael (256 bit)" },
271{ "Triple-DES (168 bit)","Triple-DES (168 bit)" }, 273{ "Triple-DES (168 bit)","Triple-DES (168 bit)" },
272{ "Twofish (256 bit)","Twofish (256 bit)" }, 274{ "Twofish (256 bit)","Twofish (256 bit)" },
273{ "Twofish-128 (128 bit)","Twofish-128 (128 bit)" }, 275{ "Twofish-128 (128 bit)","Twofish-128 (128 bit)" },
274{ "Hashing:","Hashing:" }, 276{ "Hashing:","Hashing:" },
275{ "SHA-160, SHA1 (160 bit)","SHA-160, SHA1 (160 bit)" }, 277{ "SHA-160, SHA1 (160 bit)","SHA-160, SHA1 (160 bit)" },
276{ "SHA-256 (256 bit)","SHA-256 (256 bit)" }, 278{ "SHA-256 (256 bit)","SHA-256 (256 bit)" },
277{ "SHA-384 (384 bit)","SHA-384 (384 bit)" }, 279{ "SHA-384 (384 bit)","SHA-384 (384 bit)" },
278{ "SHA-512 (512 bit)","SHA-512 (512 bit)" }, 280{ "SHA-512 (512 bit)","SHA-512 (512 bit)" },
279{ "MD5 (128 bit)","MD5 (128 bit)" }, 281{ "MD5 (128 bit)","MD5 (128 bit)" },
280{ "RIPE-MD-160 (160 bit)","RIPE-MD-160 (160 bit)" }, 282{ "RIPE-MD-160 (160 bit)","RIPE-MD-160 (160 bit)" },
281{ "Tiger (192 bit)","Tiger (192 bit)" }, 283{ "Tiger (192 bit)","Tiger (192 bit)" },
282{ "Permissions:","Zugriffsrechte:" }, 284{ "Permissions:","Zugriffsrechte:" },
283{ "Make backup before saving","Mache Backup vor dem Speichern" }, 285{ "Make backup before saving","Mache Backup vor dem Speichern" },
284{ "Password timeout\n(timeout to hold password in\nmemory,so you don't have to\nre-enter it,if you\nalready have entered it)\n[set to 0 to disable]:","Passwort Timeout\n(Timeout um das Passwort\nim Speicher zu halten,\nso dass es nicht noch mal\neingegeben werden muß.)\n[Setze auf 0 zum deaktivieren]:" }, 286{ "Password timeout\n(timeout to hold password in\nmemory,so you don't have to\nre-enter it,if you\nalready have entered it)\n[set to 0 to disable]:","Passwort Timeout\n(Timeout um das Passwort\nim Speicher zu halten,\nso dass es nicht noch mal\neingegeben werden muß.)\n[Setze auf 0 zum deaktivieren]:" },
285{ "Auto-lock timeout\n(auto lock document after this\namount of seconds)\n[set to 0 to disable]:","(Total-)Sperr-Timeout\n(Sperre Dokument total nach\ndieser Anzahl Sekunden)\n[Setze auf 0 zum deaktivieren]:" }, 287{ "Auto-lock timeout\n(auto lock document after this\namount of seconds)\n[set to 0 to disable]:","(Total-)Sperr-Timeout\n(Sperre Dokument total nach\ndieser Anzahl Sekunden)\n[Setze auf 0 zum deaktivieren]:" },
286{ "deep-lock on autolock","Sperre total beim Sperr-Timeout" }, 288{ "deep-lock on autolock","Sperre total beim Sperr-Timeout" },
287{ "open deeplocked","Öffne total gesperrt" }, 289{ "open deeplocked","Öffne total gesperrt" },
288{ "Favourite browser:","Bevorzugter Browser:" }, 290{ "Favourite browser:","Bevorzugter Browser:" },
289{ "Favourite x-terminal:","Bevorzugtes x-terminal:" }, 291{ "Favourite x-terminal:","Bevorzugtes x-terminal:" },
290{ "Open document with passwords unlocked","Öffne Dokument mit Passwort ungesperrt" }, 292{ "Open document with passwords unlocked","Öffne Dokument mit Passwort ungesperrt" },
291{ "Look && feel","Aussehen" }, 293{ "Look && feel","Aussehen" },
292{ "File","Datei" }, 294{ "File","Datei" },
293{ "Timeout","Timeout" }, 295{ "Timeout","Timeout" },
294{ "Autostart","Autostart" }, 296{ "Autostart","Autostart" },
295{ "External apps","Externe Applik." }, 297{ "External apps","Externe Applik." },
296{ "Miscellaneous","Verschiedenes" }, 298{ "Miscellaneous","Verschiedenes" },
297{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" }, 299{ "+01:00 Europe/Oslo(CET)","+01:00 Europe/Oslo(CET)" },
298{ "edit category descriptions","Ändere Label für Kategorie" }, 300{ "edit category descriptions","Ändere Label für Kategorie" },
299{ "Close","Schließen" }, 301{ "Close","Schließen" },
300{ "Category:","Category:" }, 302{ "Category:","Category:" },
301{ "Text1 (Description):","Text1 (Beschreibung):" }, 303{ "Text1 (Description):","Text1 (Beschreibung):" },
302{ "Text2 (Username):","Text2 (Benutzername):" }, 304{ "Text2 (Username):","Text2 (Benutzername):" },
303{ "Text3 (Password):","Text3 (Passwort):" }, 305{ "Text3 (Password):","Text3 (Passwort):" },
304{ "edit/add a password entry","Ändere/hinzufüge Passwort Eintrag" }, 306{ "edit/add a password entry","Ändere/hinzufüge Passwort Eintrag" },
305{ "Description:","Beschreibung:" }, 307{ "Description:","Beschreibung:" },
306{ "Username:","Benutzername:" }, 308{ "Username:","Benutzername:" },
307{ "Password:","Passwort:" }, 309{ "Password:","Passwort:" },
308{ "&Reveal","&Offen zeigen" }, 310{ "&Reveal","&Offen zeigen" },
309{ "&Generate","&Generiere" }, 311{ "&Generate","&Generiere" },
310{ "&Password","&Passwort" }, 312{ "&Password","&Passwort" },
311{ "&Comments","Kommentar" }, 313{ "&Comments","Kommentar" },
diff --git a/pwmanager/pwmanager/commentbox.cpp b/pwmanager/pwmanager/commentbox.cpp
index 0f32561..51f88b2 100644
--- a/pwmanager/pwmanager/commentbox.cpp
+++ b/pwmanager/pwmanager/commentbox.cpp
@@ -1,91 +1,92 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2004 by Michael Buesch * 3 * copyright (C) 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#include "commentbox.h" 20#include "commentbox.h"
21#include "pwmexception.h" 21#include "pwmexception.h"
22#include "htmlgen.h" 22#include "htmlgen.h"
23 23
24#include <klocale.h> 24#include <klocale.h>
25 25
26#ifndef PWM_EMBEDDED 26#ifndef PWM_EMBEDDED
27#include <khtml_part.h> 27#include <khtml_part.h>
28#include <khtmlview.h> 28#include <khtmlview.h>
29#include <qtextedit.h> 29#include <qtextedit.h>
30#else 30#else
31#include <qmultilineedit.h> 31#include <qmultilineedit.h>
32#endif 32#endif
33 33
34 34
35 35
36#ifndef PWM_EMBEDDED 36#ifndef PWM_EMBEDDED
37CommentBox::CommentBox(QWidget *_parentWidget) 37CommentBox::CommentBox(QWidget *_parentWidget)
38{ 38{
39 PWM_ASSERT(_parentWidget); 39 PWM_ASSERT(_parentWidget);
40 parentWidget = _parentWidget; 40 parentWidget = _parentWidget;
41 textDta = 0; 41 textDta = 0;
42 htmlDta = 0; 42 htmlDta = 0;
43 mode = mode_notSet; 43 mode = mode_notSet;
44 setFont( prefs->mViewFont );
44} 45}
45 46
46CommentBox::~CommentBox() 47CommentBox::~CommentBox()
47{ 48{
48 clearText(); 49 clearText();
49 clearHtml(); 50 clearHtml();
50} 51}
51 52
52void CommentBox::clear() 53void CommentBox::clear()
53{ 54{
54 clearText(); 55 clearText();
55 clearHtml(); 56 clearHtml();
56 mode = mode_notSet; 57 mode = mode_notSet;
57 this->hide(); 58 this->hide();
58} 59}
59 60
60void CommentBox::clearText() 61void CommentBox::clearText()
61{ 62{
62 delete_ifnot_null(textDta); 63 delete_ifnot_null(textDta);
63} 64}
64 65
65void CommentBox::clearHtml() 66void CommentBox::clearHtml()
66{ 67{
67 delete_ifnot_null(htmlDta); 68 delete_ifnot_null(htmlDta);
68} 69}
69 70
70void CommentBox::setText(const QString &text) 71void CommentBox::setText(const QString &text)
71{ 72{
72 switchTo(mode_text); 73 switchTo(mode_text);
73 PWM_ASSERT(textDta); 74 PWM_ASSERT(textDta);
74 textDta->setText( text); 75 textDta->setText( text);
75 if (!textDta->isVisible()) 76 if (!textDta->isVisible())
76 textDta->show(); 77 textDta->show();
77} 78}
78 79
79bool CommentBox::getText(QString *text) 80bool CommentBox::getText(QString *text)
80{ 81{
81 if (mode != mode_text) 82 if (mode != mode_text)
82 return false; 83 return false;
83 PWM_ASSERT(text); 84 PWM_ASSERT(text);
84 if (!textDta) { 85 if (!textDta) {
85 *text = ""; 86 *text = "";
86 return true; 87 return true;
87 } 88 }
88 *text = textDta->text(); 89 *text = textDta->text();
89 return true; 90 return true;
90} 91}
91 92
diff --git a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
index a8696ea..c1ca536 100644
--- a/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
+++ b/pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp
@@ -25,109 +25,118 @@
25#include <qframe.h> 25#include <qframe.h>
26#include <qgroupbox.h> 26#include <qgroupbox.h>
27#include <qlayout.h> 27#include <qlayout.h>
28#include <qpushbutton.h> 28#include <qpushbutton.h>
29#include <qtabwidget.h> 29#include <qtabwidget.h>
30#include <qcombobox.h> 30#include <qcombobox.h>
31#include <qlineedit.h> 31#include <qlineedit.h>
32#include <qspinbox.h> 32#include <qspinbox.h>
33#include <qlabel.h> 33#include <qlabel.h>
34#include <qfile.h> 34#include <qfile.h>
35#include <qvbox.h> 35#include <qvbox.h>
36 36
37#include <kconfig.h> 37#include <kconfig.h>
38#include <kdebug.h> 38#include <kdebug.h>
39#include <kdialog.h> 39#include <kdialog.h>
40#include <klistview.h> 40#include <klistview.h>
41#include <klocale.h> 41#include <klocale.h>
42#include <kglobal.h> 42#include <kglobal.h>
43#include <kmessagebox.h> 43#include <kmessagebox.h>
44#include <kstandarddirs.h> 44#include <kstandarddirs.h>
45#include <kio/kfile/kurlrequester.h> 45#include <kio/kfile/kurlrequester.h>
46 46
47#include "pwmprefs.h" 47#include "pwmprefs.h"
48 48
49#include "pwmconfigwidget.h" 49#include "pwmconfigwidget.h"
50#include "pwmexception.h" 50#include "pwmexception.h"
51 51
52PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *name ) 52PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *name )
53 : KPrefsWidget(prefs, parent, name ) 53 : KPrefsWidget(prefs, parent, name )
54{ 54{
55 QVBoxLayout *topLayout = new QVBoxLayout( this, 0, 55 QVBoxLayout *topLayout = new QVBoxLayout( this, 0,
56 KDialog::spacingHint() ); 56 KDialog::spacingHint() );
57 57
58 QTabWidget *tabWidget = new QTabWidget( this ); 58 QTabWidget *tabWidget = new QTabWidget( this );
59 topLayout->addWidget( tabWidget ); 59 topLayout->addWidget( tabWidget );
60 60
61 // windowsStyle page 61 // windowsStyle page
62 ////////////////////////////////////////////////////// 62 //////////////////////////////////////////////////////
63 QWidget *windowStylePage = new QWidget( this ); 63 QWidget *windowStylePage = new QWidget( this );
64 QGridLayout *windowStyleLayout = new QGridLayout( windowStylePage, 3, 3); 64 QGridLayout *windowStyleLayout = new QGridLayout( windowStylePage, 3, 3);
65 65
66 int i = 0; 66 int i = 0;
67 KPrefsWidRadios * windowStyle = addWidRadios(i18n("Window-style:") ,&(prefs->mMainViewStyle), windowStylePage); 67 KPrefsWidRadios * windowStyle = addWidRadios(i18n("Window-style:") ,&(prefs->mMainViewStyle), windowStylePage);
68 windowStyle->addRadio(i18n("Category on top")); 68 windowStyle->addRadio(i18n("Category on top"));
69 windowStyle->addRadio(i18n("Category-list left/top")); 69 windowStyle->addRadio(i18n("Category-list left/top"));
70 windowStyleLayout->addMultiCellWidget( (QWidget*)windowStyle->groupBox(),i,i,0,2); 70 windowStyleLayout->addMultiCellWidget( (QWidget*)windowStyle->groupBox(),i,i,0,2);
71 ++i; 71 ++i;
72 72
73 QLabel* lab = new QLabel(i18n("<b>Font for Password entries:</b>"), windowStylePage); 73 QLabel* lab = new QLabel(i18n("Font for Password entries:"), windowStylePage);
74 windowStyleLayout->addMultiCellWidget( lab,i,i,0,2); 74 windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
75
76
77 ++i; 75 ++i;
78 76 KPrefsWidFont *selEntrFont =
79 KPrefsWidFont *selEntrFont =
80 addWidFont(i18n("Password"),i18n("Font:"), 77 addWidFont(i18n("Password"),i18n("Font:"),
81 &(prefs->mEntryFont),windowStylePage); 78 &(prefs->mEntryFont),windowStylePage);
82 windowStyleLayout->addWidget(selEntrFont->label(),i,0); 79 windowStyleLayout->addWidget(selEntrFont->label(),i,0);
83 windowStyleLayout->addWidget(selEntrFont->preview(),i,1); 80 windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
84 windowStyleLayout->addWidget(selEntrFont->button(),i,2); 81 windowStyleLayout->addWidget(selEntrFont->button(),i,2);
85 ++i; 82 ++i;
83
84 lab = new QLabel(i18n("Font for Password summary:"), windowStylePage);
85 windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
86 ++i;
87 selEntrFont =
88 addWidFont(i18n("Summary"),i18n("Font:"),
89 &(prefs->mViewFont),windowStylePage);
90 windowStyleLayout->addWidget(selEntrFont->label(),i,0);
91 windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
92 windowStyleLayout->addWidget(selEntrFont->button(),i,2);
93 ++i;
94
86 lab = new QLabel(i18n(""), windowStylePage); 95 lab = new QLabel(i18n(""), windowStylePage);
87 windowStyleLayout->addMultiCellWidget( lab,i,i,0,2); 96 windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
88 97
89 // File page 98 // File page
90 ////////////////////////////////////////////////////// 99 //////////////////////////////////////////////////////
91 QWidget *filePage = new QWidget( this ); 100 QWidget *filePage = new QWidget( this );
92 QGridLayout *fileLayout = new QGridLayout( filePage, 3, 2); 101 QGridLayout *fileLayout = new QGridLayout( filePage, 3, 2);
93 102
94 i = 0; 103 i = 0;
95 QLabel* kcfg_compression_label = new QLabel(i18n("Compression:"), filePage); 104 QLabel* kcfg_compression_label = new QLabel(i18n("Compression:"), filePage);
96 fileLayout->addWidget(kcfg_compression_label,i,0); 105 fileLayout->addWidget(kcfg_compression_label,i,0);
97 kcfg_compression = new QComboBox(filePage, "kcfg_compression"); 106 kcfg_compression = new QComboBox(filePage, "kcfg_compression");
98 kcfg_compression->insertItem(i18n("None")); 107 kcfg_compression->insertItem(i18n("None"));
99 kcfg_compression->insertItem(i18n("gzip")); 108 kcfg_compression->insertItem(i18n("gzip"));
100 //US not yet supported: kcfg_compression->insertItem(i18n("bzip2")); 109 //US not yet supported: kcfg_compression->insertItem(i18n("bzip2"));
101 fileLayout->addWidget( kcfg_compression,i,1); 110 fileLayout->addWidget( kcfg_compression,i,1);
102 ++i; 111 ++i;
103 112
104 QLabel* kcfg_crypt_label = new QLabel(i18n("Encryption:"), filePage); 113 QLabel* kcfg_crypt_label = new QLabel(i18n("Encryption:"), filePage);
105 fileLayout->addWidget(kcfg_crypt_label,i,0); 114 fileLayout->addWidget(kcfg_crypt_label,i,0);
106 kcfg_cryptAlgo = new QComboBox(filePage, "kcfg_cryptAlgo"); 115 kcfg_cryptAlgo = new QComboBox(filePage, "kcfg_cryptAlgo");
107 kcfg_cryptAlgo->insertItem(i18n("Blowfish (128 bit)")); 116 kcfg_cryptAlgo->insertItem(i18n("Blowfish (128 bit)"));
108#ifdef CONFIG_PWMANAGER_GCRY 117#ifdef CONFIG_PWMANAGER_GCRY
109 kcfg_cryptAlgo->insertItem(i18n("AES-128, Rijndael (128 bit)")); 118 kcfg_cryptAlgo->insertItem(i18n("AES-128, Rijndael (128 bit)"));
110 kcfg_cryptAlgo->insertItem(i18n("AES-192, Rijndael (192 bit)")); 119 kcfg_cryptAlgo->insertItem(i18n("AES-192, Rijndael (192 bit)"));
111 kcfg_cryptAlgo->insertItem(i18n("AES-256, Rijndael (256 bit)")); 120 kcfg_cryptAlgo->insertItem(i18n("AES-256, Rijndael (256 bit)"));
112 kcfg_cryptAlgo->insertItem(i18n("Triple-DES (168 bit)")); 121 kcfg_cryptAlgo->insertItem(i18n("Triple-DES (168 bit)"));
113 kcfg_cryptAlgo->insertItem(i18n("Twofish (256 bit)")); 122 kcfg_cryptAlgo->insertItem(i18n("Twofish (256 bit)"));
114 kcfg_cryptAlgo->insertItem(i18n("Twofish-128 (128 bit)")); 123 kcfg_cryptAlgo->insertItem(i18n("Twofish-128 (128 bit)"));
115#endif // CONFIG_PWMANAGER_GCRY 124#endif // CONFIG_PWMANAGER_GCRY
116 fileLayout->addWidget( kcfg_cryptAlgo,i,1); 125 fileLayout->addWidget( kcfg_cryptAlgo,i,1);
117 ++i; 126 ++i;
118 127
119 QLabel* kcfg_hash_label = new QLabel(i18n("Hashing:"), filePage); 128 QLabel* kcfg_hash_label = new QLabel(i18n("Hashing:"), filePage);
120 fileLayout->addWidget(kcfg_hash_label,i,0); 129 fileLayout->addWidget(kcfg_hash_label,i,0);
121 kcfg_hashAlgo = new QComboBox(filePage, "kcfg_hashAlgo"); 130 kcfg_hashAlgo = new QComboBox(filePage, "kcfg_hashAlgo");
122 kcfg_hashAlgo->insertItem(i18n("SHA-160, SHA1 (160 bit)")); 131 kcfg_hashAlgo->insertItem(i18n("SHA-160, SHA1 (160 bit)"));
123#ifdef CONFIG_PWMANAGER_GCRY 132#ifdef CONFIG_PWMANAGER_GCRY
124 kcfg_hashAlgo->insertItem(i18n("SHA-256 (256 bit)")); 133 kcfg_hashAlgo->insertItem(i18n("SHA-256 (256 bit)"));
125 kcfg_hashAlgo->insertItem(i18n("SHA-384 (384 bit)")); 134 kcfg_hashAlgo->insertItem(i18n("SHA-384 (384 bit)"));
126 kcfg_hashAlgo->insertItem(i18n("SHA-512 (512 bit)")); 135 kcfg_hashAlgo->insertItem(i18n("SHA-512 (512 bit)"));
127 kcfg_hashAlgo->insertItem(i18n("MD5 (128 bit)")); 136 kcfg_hashAlgo->insertItem(i18n("MD5 (128 bit)"));
128 kcfg_hashAlgo->insertItem(i18n("RIPE-MD-160 (160 bit)")); 137 kcfg_hashAlgo->insertItem(i18n("RIPE-MD-160 (160 bit)"));
129 kcfg_hashAlgo->insertItem(i18n("Tiger (192 bit)")); 138 kcfg_hashAlgo->insertItem(i18n("Tiger (192 bit)"));
130#endif // CONFIG_PWMANAGER_GCRY 139#endif // CONFIG_PWMANAGER_GCRY
131 fileLayout->addWidget( kcfg_hashAlgo,i,1); 140 fileLayout->addWidget( kcfg_hashAlgo,i,1);
132 ++i; 141 ++i;
133 142
diff --git a/pwmanager/pwmanager/listviewpwm.cpp b/pwmanager/pwmanager/listviewpwm.cpp
index 9f351d6..85e788c 100644
--- a/pwmanager/pwmanager/listviewpwm.cpp
+++ b/pwmanager/pwmanager/listviewpwm.cpp
@@ -1,84 +1,85 @@
1/*************************************************************************** 1/***************************************************************************
2 * * 2 * *
3 * copyright (C) 2004 by Michael Buesch * 3 * copyright (C) 2004 by Michael Buesch *
4 * email: mbuesch@freenet.de * 4 * email: mbuesch@freenet.de *
5 * * 5 * *
6 * This program is free software; you can redistribute it and/or modify * 6 * This program is free software; you can redistribute it and/or modify *
7 * it under the terms of the GNU General Public License version 2 * 7 * it under the terms of the GNU General Public License version 2 *
8 * as published by the Free Software Foundation. * 8 * as published by the Free Software Foundation. *
9 * * 9 * *
10 ***************************************************************************/ 10 ***************************************************************************/
11 11
12/*************************************************************************** 12/***************************************************************************
13 * copyright (C) 2004 by Ulf Schenk 13 * copyright (C) 2004 by Ulf Schenk
14 * This file is originaly based on version 1.0.1 of pwmanager 14 * This file is originaly based on version 1.0.1 of pwmanager
15 * and was modified to run on embedded devices that run microkde 15 * and was modified to run on embedded devices that run microkde
16 * 16 *
17 * $Id$ 17 * $Id$
18 **************************************************************************/ 18 **************************************************************************/
19 19
20#include "listviewpwm.h" 20#include "listviewpwm.h"
21#include "pwmexception.h" 21#include "pwmexception.h"
22#include "pwmview.h" 22#include "pwmview.h"
23 23
24#include <qpainter.h> 24#include <qpainter.h>
25#include <qpixmap.h> 25#include <qpixmap.h>
26 26
27#include <kiconloader.h> 27#include <kiconloader.h>
28 28
29#ifdef PWM_EMBEDDED 29#ifdef PWM_EMBEDDED
30#include <kglobal.h> 30#include <kglobal.h>
31#endif 31#endif
32 32
33ListViewPwM::ListViewPwM(QWidget *parent, const char *name) 33ListViewPwM::ListViewPwM(QWidget *parent, const char *name)
34 : KListView(parent, name) 34 : KListView(parent, name)
35{ 35{
36 //setResizeMode(QListView::AllColumns); 36 //setResizeMode(QListView::AllColumns);
37 setAllColumnsShowFocus (true );
37} 38}
38 39
39bool ListViewPwM::event(QEvent *e) 40bool ListViewPwM::event(QEvent *e)
40{ 41{
41 if (e->type() == QEvent::LayoutHint) 42 if (e->type() == QEvent::LayoutHint)
42 emit layoutChanged(); 43 emit layoutChanged();
43 return KListView::event(e); 44 return KListView::event(e);
44} 45}
45 46
46 47
47QPixmap * ListViewItemPwM::onPix = 0; 48QPixmap * ListViewItemPwM::onPix = 0;
48QPixmap * ListViewItemPwM::offPix = 0; 49QPixmap * ListViewItemPwM::offPix = 0;
49 50
50ListViewItemPwM::ListViewItemPwM(QListView *parent) 51ListViewItemPwM::ListViewItemPwM(QListView *parent)
51 : QCheckListItem(parent, "", QCheckListItem::CheckBox) 52 : QCheckListItem(parent, "", QCheckListItem::CheckBox)
52{ 53{
53 if (!onPix) { 54 if (!onPix) {
54 PWM_ASSERT(!offPix); 55 PWM_ASSERT(!offPix);
55 KIconLoader* picons; 56 KIconLoader* picons;
56#ifndef PWM_EMBEDDED 57#ifndef PWM_EMBEDDED
57 KIconLoader il; 58 KIconLoader il;
58 picons = &il; 59 picons = &il;
59#else 60#else
60 picons = KGlobal::iconLoader(); 61 picons = KGlobal::iconLoader();
61#endif 62#endif
62 63
63 KIconLoader il; 64 KIconLoader il;
64#ifndef PWM_EMBEDDED 65#ifndef PWM_EMBEDDED
65 static QPixmap onP(picons->loadIcon("button_ok", KIcon::Small)); 66 static QPixmap onP(picons->loadIcon("button_ok", KIcon::Small));
66#else 67#else
67 static QPixmap onP(picons->loadIcon("decrypted", KIcon::Small)); 68 static QPixmap onP(picons->loadIcon("decrypted", KIcon::Small));
68#endif 69#endif
69 onPix = &onP; 70 onPix = &onP;
70 static QPixmap offP(picons->loadIcon("encrypted", KIcon::Small)); 71 static QPixmap offP(picons->loadIcon("encrypted", KIcon::Small));
71 offPix = &offP; 72 offPix = &offP;
72 } 73 }
73} 74}
74 75
75void ListViewItemPwM::paintCell(QPainter *p, const QColorGroup &cg, 76void ListViewItemPwM::paintCell(QPainter *p, const QColorGroup &cg,
76 int column, int width, int align) 77 int column, int width, int align)
77{ 78{
78 // qDebug("ListViewItemPwM::paintCell column=%i", column); 79 // qDebug("ListViewItemPwM::paintCell column=%i", column);
79 if (!p) 80 if (!p)
80 return; 81 return;
81 //US BUG: 82 //US BUG:
82 if (column != COLUMN_DESC) { 83 if (column != COLUMN_DESC) {
83 QCheckListItem::paintCell(p, cg, column, width, align); 84 QCheckListItem::paintCell(p, cg, column, width, align);
84 return; 85 return;
diff --git a/pwmanager/pwmanager/pwmprefs.cpp b/pwmanager/pwmanager/pwmprefs.cpp
index 31fb2e0..444186c 100644
--- a/pwmanager/pwmanager/pwmprefs.cpp
+++ b/pwmanager/pwmanager/pwmprefs.cpp
@@ -1,170 +1,175 @@
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#include <kglobalsettings.h>
31 31
32#include "pwmprefs.h" 32#include "pwmprefs.h"
33 33
34PWMPrefs *PWMPrefs::sInstance = 0; 34PWMPrefs *PWMPrefs::sInstance = 0;
35static KStaticDeleter<PWMPrefs> staticDeleterPP; 35static KStaticDeleter<PWMPrefs> staticDeleterPP;
36 36
37PWMPrefs::PWMPrefs() 37PWMPrefs::PWMPrefs()
38 : KPimPrefs("pwmanagerrc") 38 : KPimPrefs("pwmanagerrc")
39{ 39{
40 KPrefs::setCurrentGroup( "Global" ); 40 KPrefs::setCurrentGroup( "Global" );
41 41
42 addItemString( "autoStart", &mAutoStart, "" ); 42 addItemString( "autoStart", &mAutoStart, "" );
43 addItemString( "browserCommand", &mBrowserCommand, "" ); 43 addItemString( "browserCommand", &mBrowserCommand, "" );
44 addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND); 44 addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND);
45 addItemFont( "entryFont", &mEntryFont,KGlobalSettings::generalFont()); 45 addItemFont( "entryFont", &mEntryFont,KGlobalSettings::generalFont());
46 addItemFont( "viewFont", &mViewFont,KGlobalSettings::generalFont());
46 addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT ); 47 addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT );
47 addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT ); 48 addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT );
48 addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION ); 49 addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION );
49 addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO); 50 addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO);
50 addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO); 51 addItemInt("hashAlgo", &mHashAlgo, CONF_DEFAULT_HASHALGO);
51 addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS ); 52 addItemInt( "filePermissions", &mFilePermissions, CONF_DEFAULT_FILEPERMISSIONS );
52 addItemInt( "minimizeLock", &mMinimizeLock, CONF_DEFAULT_MINIMIZELOCK ); 53 addItemInt( "minimizeLock", &mMinimizeLock, CONF_DEFAULT_MINIMIZELOCK );
53 addItemBool( "unlockOnOpen", &mUnlockOnOpen, CONF_DEFAULT_UNLOCKONOPEN ); 54 addItemBool( "unlockOnOpen", &mUnlockOnOpen, CONF_DEFAULT_UNLOCKONOPEN );
54 addItemBool( "tray", &mTray, CONF_DEFAULT_TRAY ); 55 addItemBool( "tray", &mTray, CONF_DEFAULT_TRAY );
55 addItemBool( "makeFileBackup", &mMakeFileBackup, CONF_DEFAULT_MAKEFILEBACKUP ); 56 addItemBool( "makeFileBackup", &mMakeFileBackup, CONF_DEFAULT_MAKEFILEBACKUP );
56 addItemBool( "autostartDeepLocked", &mAutostartDeeplocked, CONF_DEFAULT_AUTOSTART_DEEPL ); 57 addItemBool( "autostartDeepLocked", &mAutostartDeeplocked, CONF_DEFAULT_AUTOSTART_DEEPL );
57 addItemBool( "autoDeepLock", &mAutoDeeplock, CONF_DEFAULT_AUTODEEPLOCK ); 58 addItemBool( "autoDeepLock", &mAutoDeeplock, CONF_DEFAULT_AUTODEEPLOCK );
58 addItemBool( "kwalletEmu", &mKWalletEmu, CONF_DEFAULT_KWALLETEMU ); 59 addItemBool( "kwalletEmu", &mKWalletEmu, CONF_DEFAULT_KWALLETEMU );
59 addItemBool( "newEntrLockStat", &mNewEntrLockStat, CONF_DEFAULT_NEWENTRLOCKSTAT ); 60 addItemBool( "newEntrLockStat", &mNewEntrLockStat, CONF_DEFAULT_NEWENTRLOCKSTAT );
60 61
61 KPrefs::setCurrentGroup( "Wnd" ); 62 KPrefs::setCurrentGroup( "Wnd" );
62 63
63 addItemSize( "MainWndSize", &mMainWndSize); 64 addItemSize( "MainWndSize", &mMainWndSize);
64 addItemInt( "MainViewStyle", &mMainViewStyle, CONF_DEFAULT_MAINVIEWSTYLE ); 65 addItemInt( "MainViewStyle", &mMainViewStyle, CONF_DEFAULT_MAINVIEWSTYLE );
65 addItemBool( "autoMinimizeOnStart", &mAutoMinimizeOnStart, CONF_DEFAULT_AUTOMINIMIZE ); 66 addItemBool( "autoMinimizeOnStart", &mAutoMinimizeOnStart, CONF_DEFAULT_AUTOMINIMIZE );
66 addItemBool( "close", &mClose, CONF_DEFAULT_WNDCLOSE ); 67 addItemBool( "close", &mClose, CONF_DEFAULT_WNDCLOSE );
67 addItemIntList( "commentSplitter", &mCommentSplitter ); 68 addItemIntList( "commentSplitter", &mCommentSplitter );
68 addItemIntList( "categorySplitter", &mCategorySplitter ); 69 addItemIntList( "categorySplitter", &mCategorySplitter );
69} 70}
70 71
71PWMPrefs::~PWMPrefs() 72PWMPrefs::~PWMPrefs()
72{ 73{
73 if (sInstance == this) 74 if (sInstance == this)
74 sInstance = staticDeleterPP.setObject(0); 75 sInstance = staticDeleterPP.setObject(0);
75 else 76 else
76 qDebug("Whats this? Error in PWMPrefs::~PWMPrefs()?"); 77 qDebug("Whats this? Error in PWMPrefs::~PWMPrefs()?");
77} 78}
78 79
79PWMPrefs *PWMPrefs::instance() 80PWMPrefs *PWMPrefs::instance()
80{ 81{
81 if ( !sInstance ) { 82 if ( !sInstance ) {
82#ifdef PWM_EMBEDDED 83#ifdef PWM_EMBEDDED
83 sInstance = staticDeleterPP.setObject( new PWMPrefs() ); 84 sInstance = staticDeleterPP.setObject( new PWMPrefs() );
84#else //PWM_EMBEDDED 85#else //PWM_EMBEDDED
85 //US the following line has changed ???. Why 86 //US the following line has changed ???. Why
86 staticDeleterPP.setObject( sInstance, new PWMPrefs() ); 87 staticDeleterPP.setObject( sInstance, new PWMPrefs() );
87#endif //KAB_EMBEDDED 88#endif //KAB_EMBEDDED
88 sInstance->readConfig(); 89 sInstance->readConfig();
89 } 90 }
90 91
91 return sInstance; 92 return sInstance;
92} 93}
93 94
94 // US introduce a nonconst way to return the config object. 95 // US introduce a nonconst way to return the config object.
95KConfig* PWMPrefs::getConfig() 96KConfig* PWMPrefs::getConfig()
96{ 97{
97 return config(); 98 return config();
98} 99}
99 100
100/******************************************************************* 101/*******************************************************************
101 * functions for reading the configuration settings 102 * functions for reading the configuration settings
102 *******************************************************************/ 103 *******************************************************************/
103 104
104QString PWMPrefs::confGlobAutoStart() 105QString PWMPrefs::confGlobAutoStart()
105{ 106{
106 return mAutoStart; 107 return mAutoStart;
107} 108}
108 109
109QString PWMPrefs::confGlobBrowserCommand() 110QString PWMPrefs::confGlobBrowserCommand()
110{ 111{
111 return mBrowserCommand; 112 return mBrowserCommand;
112} 113}
113 114
114QString PWMPrefs::confGlobXtermCommand() 115QString PWMPrefs::confGlobXtermCommand()
115{ 116{
116 return mXTermCommand; 117 return mXTermCommand;
117} 118}
118 119
119QFont PWMPrefs::confGlobEntryFont() 120QFont PWMPrefs::confGlobEntryFont()
120{ 121{
121 return mEntryFont; 122 return mEntryFont;
122} 123}
124QFont PWMPrefs::confGlobViewFont()
125{
126 return mViewFont;
127}
123 128
124int PWMPrefs::confGlobPwTimeout() 129int PWMPrefs::confGlobPwTimeout()
125{ 130{
126 return mPwTimeout; 131 return mPwTimeout;
127} 132}
128 133
129int PWMPrefs::confGlobLockTimeout() 134int PWMPrefs::confGlobLockTimeout()
130{ 135{
131 return mLockTimeout; 136 return mLockTimeout;
132} 137}
133 138
134int PWMPrefs::confGlobCompression() 139int PWMPrefs::confGlobCompression()
135{ 140{
136 return mCompression; 141 return mCompression;
137} 142}
138 143
139int PWMPrefs::confGlobFilePermissions() 144int PWMPrefs::confGlobFilePermissions()
140{ 145{
141 return mFilePermissions; 146 return mFilePermissions;
142} 147}
143 148
144int PWMPrefs::confGlobMinimizeLock() 149int PWMPrefs::confGlobMinimizeLock()
145{ 150{
146 return mMinimizeLock; 151 return mMinimizeLock;
147} 152}
148 153
149bool PWMPrefs::confGlobUnlockOnOpen() 154bool PWMPrefs::confGlobUnlockOnOpen()
150{ 155{
151 return mUnlockOnOpen; 156 return mUnlockOnOpen;
152} 157}
153 158
154bool PWMPrefs::confGlobTray() 159bool PWMPrefs::confGlobTray()
155{ 160{
156 return mTray; 161 return mTray;
157} 162}
158 163
159bool PWMPrefs::confGlobMakeFileBackup() 164bool PWMPrefs::confGlobMakeFileBackup()
160{ 165{
161 return mMakeFileBackup; 166 return mMakeFileBackup;
162} 167}
163 168
164bool PWMPrefs::confGlobAutostartDeepLocked() 169bool PWMPrefs::confGlobAutostartDeepLocked()
165{ 170{
166 return mAutostartDeeplocked; 171 return mAutostartDeeplocked;
167} 172}
168 173
169bool PWMPrefs::confGlobAutoDeepLock() 174bool PWMPrefs::confGlobAutoDeepLock()
170{ 175{
@@ -189,96 +194,100 @@ QSize PWMPrefs::confWndMainWndSize()
189int PWMPrefs::confWndMainViewStyle() 194int PWMPrefs::confWndMainViewStyle()
190{ 195{
191 return mMainViewStyle; 196 return mMainViewStyle;
192} 197}
193 198
194bool PWMPrefs::confWndAutoMinimizeOnStart() 199bool PWMPrefs::confWndAutoMinimizeOnStart()
195{ 200{
196 return mAutoMinimizeOnStart; 201 return mAutoMinimizeOnStart;
197} 202}
198 203
199bool PWMPrefs::confWndClose() 204bool PWMPrefs::confWndClose()
200{ 205{
201 return mClose; 206 return mClose;
202} 207}
203 208
204int PWMPrefs::confGlobCryptAlgo() 209int PWMPrefs::confGlobCryptAlgo()
205{ 210{
206 return mCryptAlgo + 1; 211 return mCryptAlgo + 1;
207} 212}
208 213
209int PWMPrefs::confGlobHashAlgo() 214int PWMPrefs::confGlobHashAlgo()
210{ 215{
211 return mHashAlgo + 1; 216 return mHashAlgo + 1;
212} 217}
213 218
214/******************************************************************* 219/*******************************************************************
215 * functions for writing the configuration settings 220 * functions for writing the configuration settings
216 *******************************************************************/ 221 *******************************************************************/
217 222
218void PWMPrefs::confGlobAutoStart(const QString &e) 223void PWMPrefs::confGlobAutoStart(const QString &e)
219{ 224{
220 mAutoStart = e; 225 mAutoStart = e;
221} 226}
222 227
223void PWMPrefs::confGlobBrowserCommand(const QString &e) 228void PWMPrefs::confGlobBrowserCommand(const QString &e)
224{ 229{
225 mBrowserCommand = e; 230 mBrowserCommand = e;
226} 231}
227 232
228void PWMPrefs::confGlobXtermCommand(const QString &e) 233void PWMPrefs::confGlobXtermCommand(const QString &e)
229{ 234{
230 mXTermCommand = e; 235 mXTermCommand = e;
231} 236}
232 237
233void PWMPrefs::confGlobEntryFont(const QFont &e) 238void PWMPrefs::confGlobEntryFont(const QFont &e)
234{ 239{
235 mEntryFont = e; 240 mEntryFont = e;
236} 241}
242void PWMPrefs::confGlobViewFont(const QFont &e)
243{
244 mViewFont = e;
245}
237 246
238void PWMPrefs::confGlobPwTimeout(int e) 247void PWMPrefs::confGlobPwTimeout(int e)
239{ 248{
240 mPwTimeout = e; 249 mPwTimeout = e;
241} 250}
242 251
243void PWMPrefs::confGlobLockTimeout(int e) 252void PWMPrefs::confGlobLockTimeout(int e)
244{ 253{
245 mLockTimeout = e; 254 mLockTimeout = e;
246} 255}
247 256
248void PWMPrefs::confGlobCompression(int e) 257void PWMPrefs::confGlobCompression(int e)
249{ 258{
250 mCompression = e; 259 mCompression = e;
251} 260}
252 261
253void PWMPrefs::confGlobFilePermissions(int e) 262void PWMPrefs::confGlobFilePermissions(int e)
254{ 263{
255 mFilePermissions = e; 264 mFilePermissions = e;
256} 265}
257 266
258void PWMPrefs::confGlobMinimizeLock(int e) 267void PWMPrefs::confGlobMinimizeLock(int e)
259{ 268{
260 mMinimizeLock = e; 269 mMinimizeLock = e;
261} 270}
262 271
263void PWMPrefs::confGlobUnlockOnOpen(bool e) 272void PWMPrefs::confGlobUnlockOnOpen(bool e)
264{ 273{
265 mUnlockOnOpen = e; 274 mUnlockOnOpen = e;
266} 275}
267 276
268void PWMPrefs::confGlobTray(bool e) 277void PWMPrefs::confGlobTray(bool e)
269{ 278{
270 mTray = e; 279 mTray = e;
271} 280}
272 281
273void PWMPrefs::confGlobMakeFileBackup(bool e) 282void PWMPrefs::confGlobMakeFileBackup(bool e)
274{ 283{
275 mMakeFileBackup = e; 284 mMakeFileBackup = e;
276} 285}
277 286
278void PWMPrefs::confGlobAutostartDeepLocked(bool e) 287void PWMPrefs::confGlobAutostartDeepLocked(bool e)
279{ 288{
280 mAutostartDeeplocked = e; 289 mAutostartDeeplocked = e;
281} 290}
282 291
283void PWMPrefs::confGlobAutoDeepLock(bool e) 292void PWMPrefs::confGlobAutoDeepLock(bool e)
284{ 293{
diff --git a/pwmanager/pwmanager/pwmprefs.h b/pwmanager/pwmanager/pwmprefs.h
index 5b8f9d8..1f6a35c 100644
--- a/pwmanager/pwmanager/pwmprefs.h
+++ b/pwmanager/pwmanager/pwmprefs.h
@@ -28,136 +28,139 @@
28 28
29#include <qstringlist.h> 29#include <qstringlist.h>
30#include <qsize.h> 30#include <qsize.h>
31 31
32#include <kpimprefs.h> 32#include <kpimprefs.h>
33 33
34class KConfig; 34class KConfig;
35 35
36#define conf() PWMPrefs::instance() 36#define conf() PWMPrefs::instance()
37 37
38 38
39 39
40 40
41#define CONF_DEFAULT_PWTIMEOUT 10/* 10 sec */ 41#define CONF_DEFAULT_PWTIMEOUT 10/* 10 sec */
42#define CONF_DEFAULT_LOCKTIMEOUT 0/* 0 == disable */ 42#define CONF_DEFAULT_LOCKTIMEOUT 0/* 0 == disable */
43#define CONF_DEFAULT_TRAY false 43#define CONF_DEFAULT_TRAY false
44#define CONF_DEFAULT_UNLOCKONOPEN true 44#define CONF_DEFAULT_UNLOCKONOPEN true
45#define CONF_DEFAULT_MAINVIEWSTYLE 1/* Category List Left */ 45#define CONF_DEFAULT_MAINVIEWSTYLE 1/* Category List Left */
46#define CONF_DEFAULT_COMPRESSION 0x01/* gzip */ 46#define CONF_DEFAULT_COMPRESSION 0x01/* gzip */
47#define CONF_DEFAULT_CRYPTALGO (0x01 - 1)/* blowfish */ 47#define CONF_DEFAULT_CRYPTALGO (0x01 - 1)/* blowfish */
48#define CONF_DEFAULT_HASHALGO (0x01 - 1)/* sha1 */ 48#define CONF_DEFAULT_HASHALGO (0x01 - 1)/* sha1 */
49#define CONF_DEFAULT_AUTOMINIMIZE false 49#define CONF_DEFAULT_AUTOMINIMIZE false
50#define CONF_DEFAULT_BROWSERCOMMAND "" 50#define CONF_DEFAULT_BROWSERCOMMAND ""
51#define CONF_DEFAULT_XTERMCOMMAND "konsole -e" 51#define CONF_DEFAULT_XTERMCOMMAND "konsole -e"
52#define CONF_DEFAULT_FILEPERMISSIONS 0600 52#define CONF_DEFAULT_FILEPERMISSIONS 0600
53#define CONF_DEFAULT_MAKEFILEBACKUP false 53#define CONF_DEFAULT_MAKEFILEBACKUP false
54#define CONF_DEFAULT_AUTOSTART_DEEPL true 54#define CONF_DEFAULT_AUTOSTART_DEEPL true
55#define CONF_DEFAULT_AUTODEEPLOCK true 55#define CONF_DEFAULT_AUTODEEPLOCK true
56#define CONF_DEFAULT_KWALLETEMU false 56#define CONF_DEFAULT_KWALLETEMU false
57#define CONF_DEFAULT_MINIMIZELOCK 2/* deep-lock */ 57#define CONF_DEFAULT_MINIMIZELOCK 2/* deep-lock */
58#define CONF_DEFAULT_NEWENTRLOCKSTAT false/* new entries unlocked */ 58#define CONF_DEFAULT_NEWENTRLOCKSTAT false/* new entries unlocked */
59#define CONF_DEFAULT_WNDCLOSE true/* don't minimize to tray */ 59#define CONF_DEFAULT_WNDCLOSE true/* don't minimize to tray */
60 60
61 61
62class PWMPrefs : public KPimPrefs 62class PWMPrefs : public KPimPrefs
63{ 63{
64 public: 64 public:
65 virtual ~PWMPrefs(); 65 virtual ~PWMPrefs();
66 66
67 static PWMPrefs *instance(); 67 static PWMPrefs *instance();
68 68
69public: 69public:
70 /* functions for reading the configuration settings */ 70 /* functions for reading the configuration settings */
71 /* GLOBAL */ 71 /* GLOBAL */
72 QString confGlobAutoStart(); 72 QString confGlobAutoStart();
73 QString confGlobBrowserCommand(); 73 QString confGlobBrowserCommand();
74 QString confGlobXtermCommand(); 74 QString confGlobXtermCommand();
75 QFont confGlobEntryFont(); 75 QFont confGlobEntryFont();
76 QFont confGlobViewFont();
76 int confGlobPwTimeout(); 77 int confGlobPwTimeout();
77 int confGlobLockTimeout(); 78 int confGlobLockTimeout();
78 int confGlobCompression(); 79 int confGlobCompression();
79 int confGlobCryptAlgo(); 80 int confGlobCryptAlgo();
80 int confGlobHashAlgo(); 81 int confGlobHashAlgo();
81 int confGlobFilePermissions(); 82 int confGlobFilePermissions();
82 int confGlobMinimizeLock(); 83 int confGlobMinimizeLock();
83 bool confGlobUnlockOnOpen(); 84 bool confGlobUnlockOnOpen();
84 bool confGlobTray(); 85 bool confGlobTray();
85 bool confGlobMakeFileBackup(); 86 bool confGlobMakeFileBackup();
86 bool confGlobAutostartDeepLocked(); 87 bool confGlobAutostartDeepLocked();
87 bool confGlobAutoDeepLock(); 88 bool confGlobAutoDeepLock();
88 bool confGlobKwalletEmu(); 89 bool confGlobKwalletEmu();
89 bool confGlobNewEntrLockStat(); 90 bool confGlobNewEntrLockStat();
90 /* WND */ 91 /* WND */
91 QSize confWndMainWndSize(); 92 QSize confWndMainWndSize();
92 int confWndMainViewStyle(); 93 int confWndMainViewStyle();
93 bool confWndAutoMinimizeOnStart(); 94 bool confWndAutoMinimizeOnStart();
94 bool confWndClose(); 95 bool confWndClose();
95 96
96public: 97public:
97 /* functions for writing the configuration settings */ 98 /* functions for writing the configuration settings */
98 /* GLOBAL */ 99 /* GLOBAL */
99 void confGlobAutoStart(const QString &e); 100 void confGlobAutoStart(const QString &e);
100 void confGlobBrowserCommand(const QString &e); 101 void confGlobBrowserCommand(const QString &e);
101 void confGlobXtermCommand(const QString &e); 102 void confGlobXtermCommand(const QString &e);
102 void confGlobEntryFont(const QFont &e); 103 void confGlobEntryFont(const QFont &e);
104 void confGlobViewFont(const QFont &e);
103 void confGlobPwTimeout(int e); 105 void confGlobPwTimeout(int e);
104 void confGlobLockTimeout(int e); 106 void confGlobLockTimeout(int e);
105 void confGlobCompression(int e); 107 void confGlobCompression(int e);
106 void confGlobCryptAlgo(int e); 108 void confGlobCryptAlgo(int e);
107 void confGlobHashAlgo(int e); 109 void confGlobHashAlgo(int e);
108 110
109 void confGlobFilePermissions(int e); 111 void confGlobFilePermissions(int e);
110 void confGlobMinimizeLock(int e); 112 void confGlobMinimizeLock(int e);
111 void confGlobUnlockOnOpen(bool e); 113 void confGlobUnlockOnOpen(bool e);
112 void confGlobTray(bool e); 114 void confGlobTray(bool e);
113 void confGlobMakeFileBackup(bool e); 115 void confGlobMakeFileBackup(bool e);
114 void confGlobAutostartDeepLocked(bool e); 116 void confGlobAutostartDeepLocked(bool e);
115 void confGlobAutoDeepLock(bool e); 117 void confGlobAutoDeepLock(bool e);
116 void confGlobKwalletEmu(bool e); 118 void confGlobKwalletEmu(bool e);
117 void confGlobNewEntrLockStat(bool e); 119 void confGlobNewEntrLockStat(bool e);
118 /* WND */ 120 /* WND */
119 void confWndMainWndSize(const QSize &e); 121 void confWndMainWndSize(const QSize &e);
120 void confWndMainViewStyle(int e); 122 void confWndMainViewStyle(int e);
121 void confWndAutoMinimizeOnStart(bool e); 123 void confWndAutoMinimizeOnStart(bool e);
122 void confWndClose(bool e); 124 void confWndClose(bool e);
123 125
124 126
125 127
126 QString mAutoStart; 128 QString mAutoStart;
127 QString mBrowserCommand; 129 QString mBrowserCommand;
128 QString mXTermCommand; 130 QString mXTermCommand;
129 QFont mEntryFont; 131 QFont mEntryFont;
132 QFont mViewFont;
130 int mPwTimeout; 133 int mPwTimeout;
131 int mLockTimeout; 134 int mLockTimeout;
132 int mCompression; 135 int mCompression;
133 int mCryptAlgo; 136 int mCryptAlgo;
134 int mHashAlgo; 137 int mHashAlgo;
135 int mFilePermissions; 138 int mFilePermissions;
136 int mMinimizeLock; 139 int mMinimizeLock;
137 bool mUnlockOnOpen; 140 bool mUnlockOnOpen;
138 bool mTray; 141 bool mTray;
139 bool mMakeFileBackup; 142 bool mMakeFileBackup;
140 bool mAutostartDeeplocked; 143 bool mAutostartDeeplocked;
141 bool mAutoDeeplock; 144 bool mAutoDeeplock;
142 bool mKWalletEmu; 145 bool mKWalletEmu;
143 bool mNewEntrLockStat; 146 bool mNewEntrLockStat;
144 QSize mMainWndSize; 147 QSize mMainWndSize;
145 int mMainViewStyle; 148 int mMainViewStyle;
146 bool mAutoMinimizeOnStart; 149 bool mAutoMinimizeOnStart;
147 bool mClose; 150 bool mClose;
148 151
149 //US ENH 152 //US ENH
150 QValueList<int> mCommentSplitter; 153 QValueList<int> mCommentSplitter;
151 QValueList<int> mCategorySplitter; 154 QValueList<int> mCategorySplitter;
152 155
153 156
154 // US introduce a nonconst way to return the config object. 157 // US introduce a nonconst way to return the config object.
155 KConfig* getConfig(); 158 KConfig* getConfig();
156 159
157 private: 160 private:
158 PWMPrefs(); 161 PWMPrefs();
159 162
160 static PWMPrefs *sInstance; 163 static PWMPrefs *sInstance;
161}; 164};
162 165
163#endif 166#endif
diff --git a/pwmanager/pwmanager/pwmviewstyle_0.cpp b/pwmanager/pwmanager/pwmviewstyle_0.cpp
index 1453d03..1fc8a34 100644
--- a/pwmanager/pwmanager/pwmviewstyle_0.cpp
+++ b/pwmanager/pwmanager/pwmviewstyle_0.cpp
@@ -54,59 +54,59 @@ PwMViewStyle_0::PwMViewStyle_0(PwMView *view)
54 // connections 54 // connections
55 connect(categoriesCombo, SIGNAL(activated(int)), 55 connect(categoriesCombo, SIGNAL(activated(int)),
56 view, SLOT(shiftToView())); 56 view, SLOT(shiftToView()));
57 connect(renCatButton, SIGNAL(clicked()), 57 connect(renCatButton, SIGNAL(clicked()),
58 view, SLOT(renCatButton_slot())); 58 view, SLOT(renCatButton_slot()));
59 connect(delCatButton, SIGNAL(clicked()), 59 connect(delCatButton, SIGNAL(clicked()),
60 view, SLOT(delCatButton_slot())); 60 view, SLOT(delCatButton_slot()));
61} 61}
62 62
63PwMViewStyle_0::~PwMViewStyle_0() 63PwMViewStyle_0::~PwMViewStyle_0()
64{ 64{
65 delete vbox1; 65 delete vbox1;
66} 66}
67 67
68void PwMViewStyle_0::delCategory(const QString &cat) 68void PwMViewStyle_0::delCategory(const QString &cat)
69{ 69{
70 PWM_ASSERT(categoriesCombo); 70 PWM_ASSERT(categoriesCombo);
71 int i, count = categoriesCombo->count(); 71 int i, count = categoriesCombo->count();
72 for (i = 0; i < count; ++i) { 72 for (i = 0; i < count; ++i) {
73 if (categoriesCombo->text(i) == cat) { 73 if (categoriesCombo->text(i) == cat) {
74 categoriesCombo->removeItem(i); 74 categoriesCombo->removeItem(i);
75 return; 75 return;
76 } 76 }
77 } 77 }
78 BUG(); 78 BUG();
79} 79}
80 80
81void PwMViewStyle_0::selectCategory(const QString &cat) 81void PwMViewStyle_0::selectCategory(const QString &cat)
82{ 82{
83 PWM_ASSERT(categoriesCombo); 83 PWM_ASSERT(categoriesCombo);
84 int i, count = categoriesCombo->count(); 84 int i, count = categoriesCombo->count();
85 for (i = 0; i < count; ++i) { 85 for (i = 0; i < count; ++i) {
86 if (categoriesCombo->text(i) == cat) { 86 if (categoriesCombo->text(i) == cat) {
87 categoriesCombo->setCurrentItem(i); 87 categoriesCombo->setCurrentItem(i);
88 return; 88 return;
89 } 89 }
90 } 90 }
91 // fall back to 0 91 // fall back to 0
92 categoriesCombo->setCurrentItem(0); 92 categoriesCombo->setCurrentItem(0);
93} 93}
94 94
95 95
96//US ENH: I need a place to load the view dependend settings. Eg. splittersize 96//US ENH: I need a place to load the view dependend settings. Eg. splittersize
97void PwMViewStyle_0::restoreSettings(PWMPrefs* prefs) 97void PwMViewStyle_0::restoreSettings(PWMPrefs* prefs)
98{ 98{
99 //load and store the size of the listviewcolumns 99 //load and store the size of the listviewcolumns
100 lv->restoreLayout(prefs->getConfig(), "listview"); 100 lv->restoreLayout(prefs->getConfig(), "listview");
101 splitter1->setSizes( prefs->mCommentSplitter ); 101 splitter1->setSizes( prefs->mCommentSplitter );
102 102 commentBox->setFont( prefs->mViewFont );
103} 103}
104 104
105//US ENH: I need a place to load the view dependend settings. Eg. splittersize 105//US ENH: I need a place to load the view dependend settings. Eg. splittersize
106void PwMViewStyle_0::saveSettings(PWMPrefs* prefs) 106void PwMViewStyle_0::saveSettings(PWMPrefs* prefs)
107{ 107{
108 //store the size of the listviewcolumns 108 //store the size of the listviewcolumns
109 lv->saveLayout(prefs->getConfig(), "listview"); 109 lv->saveLayout(prefs->getConfig(), "listview");
110 prefs->mCommentSplitter = splitter1->sizes(); 110 prefs->mCommentSplitter = splitter1->sizes();
111 111
112} 112}
diff --git a/pwmanager/pwmanager/pwmviewstyle_1.cpp b/pwmanager/pwmanager/pwmviewstyle_1.cpp
index 27ad40e..4a7ffd7 100644
--- a/pwmanager/pwmanager/pwmviewstyle_1.cpp
+++ b/pwmanager/pwmanager/pwmviewstyle_1.cpp
@@ -108,65 +108,66 @@ PwMViewStyle_1::PwMViewStyle_1(PwMView *view)
108PwMViewStyle_1::~PwMViewStyle_1() 108PwMViewStyle_1::~PwMViewStyle_1()
109{ 109{
110 delete catCtxMenu; 110 delete catCtxMenu;
111 delete splitter; 111 delete splitter;
112} 112}
113 113
114void PwMViewStyle_1::catRightClick(QListBoxItem *item, const QPoint &point) 114void PwMViewStyle_1::catRightClick(QListBoxItem *item, const QPoint &point)
115{ 115{
116 if (!item) 116 if (!item)
117 return; 117 return;
118 catCtxMenu->move(point); 118 catCtxMenu->move(point);
119 catCtxMenu->show(); 119 catCtxMenu->show();
120} 120}
121 121
122void PwMViewStyle_1::delCategory(const QString &cat) 122void PwMViewStyle_1::delCategory(const QString &cat)
123{ 123{
124 PWM_ASSERT(categoriesList); 124 PWM_ASSERT(categoriesList);
125 int i, count = categoriesList->count(); 125 int i, count = categoriesList->count();
126 for (i = 0; i < count; ++i) { 126 for (i = 0; i < count; ++i) {
127 if (categoriesList->text(i) == cat) { 127 if (categoriesList->text(i) == cat) {
128 categoriesList->removeItem(i); 128 categoriesList->removeItem(i);
129 return; 129 return;
130 } 130 }
131 } 131 }
132 BUG(); 132 BUG();
133} 133}
134 134
135void PwMViewStyle_1::selectCategory(const QString &cat) 135void PwMViewStyle_1::selectCategory(const QString &cat)
136{ 136{
137 PWM_ASSERT(categoriesList); 137 PWM_ASSERT(categoriesList);
138 int i, count = categoriesList->count(); 138 int i, count = categoriesList->count();
139 for (i = 0; i < count; ++i) { 139 for (i = 0; i < count; ++i) {
140 if (categoriesList->text(i) == cat) { 140 if (categoriesList->text(i) == cat) {
141 categoriesList->setCurrentItem(i); 141 categoriesList->setCurrentItem(i);
142 return; 142 return;
143 } 143 }
144 } 144 }
145 // fall back to 0 145 // fall back to 0
146 categoriesList->setCurrentItem(0); 146 categoriesList->setCurrentItem(0);
147} 147}
148 148
149//US ENH: I need a place to load the view dependend settings. Eg. splittersize 149//US ENH: I need a place to load the view dependend settings. Eg. splittersize
150void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs) 150void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs)
151{ 151{
152 //load and store the size of the listviewcolumns 152 //load and store the size of the listviewcolumns
153 lv->restoreLayout(prefs->getConfig(), "listview"); 153 lv->restoreLayout(prefs->getConfig(), "listview");
154 splitter->setSizes( prefs->mCategorySplitter ); 154 splitter->setSizes( prefs->mCategorySplitter );
155 splitter2->setSizes( prefs->mCommentSplitter ); 155 splitter2->setSizes( prefs->mCommentSplitter );
156 commentBox->setFont( prefs->mViewFont );
156 157
157} 158}
158 159
159//US ENH: I need a place to load the view dependend settings. Eg. splittersize 160//US ENH: I need a place to load the view dependend settings. Eg. splittersize
160void PwMViewStyle_1::saveSettings(PWMPrefs* prefs) 161void PwMViewStyle_1::saveSettings(PWMPrefs* prefs)
161{ 162{
162 //store the size of the listviewcolumns 163 //store the size of the listviewcolumns
163 lv->saveLayout(prefs->getConfig(), "listview"); 164 lv->saveLayout(prefs->getConfig(), "listview");
164 prefs->mCategorySplitter = splitter->sizes(); 165 prefs->mCategorySplitter = splitter->sizes();
165 prefs->mCommentSplitter = splitter2->sizes(); 166 prefs->mCommentSplitter = splitter2->sizes();
166 167
167} 168}
168 169
169 170
170#ifndef PWM_EMBEDDED 171#ifndef PWM_EMBEDDED
171#include "pwmviewstyle_1.moc" 172#include "pwmviewstyle_1.moc"
172#endif 173#endif