-rw-r--r-- | bin/kdepim/pwmanager/germantranslation.txt | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/commentbox.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp | 19 | ||||
-rw-r--r-- | pwmanager/pwmanager/listviewpwm.cpp | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmprefs.cpp | 9 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmprefs.h | 3 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_0.cpp | 2 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwmviewstyle_1.cpp | 1 |
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 | |||
@@ -250,26 +250,28 @@ | |||
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)" }, |
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 | |||
@@ -32,24 +32,25 @@ | |||
32 | #endif | 32 | #endif |
33 | 33 | ||
34 | 34 | ||
35 | 35 | ||
36 | #ifndef PWM_EMBEDDED | 36 | #ifndef PWM_EMBEDDED |
37 | CommentBox::CommentBox(QWidget *_parentWidget) | 37 | CommentBox::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 | ||
46 | CommentBox::~CommentBox() | 47 | CommentBox::~CommentBox() |
47 | { | 48 | { |
48 | clearText(); | 49 | clearText(); |
49 | clearHtml(); | 50 | clearHtml(); |
50 | } | 51 | } |
51 | 52 | ||
52 | void CommentBox::clear() | 53 | void CommentBox::clear() |
53 | { | 54 | { |
54 | clearText(); | 55 | clearText(); |
55 | clearHtml(); | 56 | clearHtml(); |
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 | |||
@@ -61,37 +61,46 @@ PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *n | |||
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"); |
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 | |||
@@ -25,24 +25,25 @@ | |||
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 | ||
33 | ListViewPwM::ListViewPwM(QWidget *parent, const char *name) | 33 | ListViewPwM::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 | ||
39 | bool ListViewPwM::event(QEvent *e) | 40 | bool 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 | ||
47 | QPixmap * ListViewItemPwM::onPix = 0; | 48 | QPixmap * ListViewItemPwM::onPix = 0; |
48 | QPixmap * ListViewItemPwM::offPix = 0; | 49 | QPixmap * ListViewItemPwM::offPix = 0; |
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 | |||
@@ -34,24 +34,25 @@ | |||
34 | PWMPrefs *PWMPrefs::sInstance = 0; | 34 | PWMPrefs *PWMPrefs::sInstance = 0; |
35 | static KStaticDeleter<PWMPrefs> staticDeleterPP; | 35 | static KStaticDeleter<PWMPrefs> staticDeleterPP; |
36 | 36 | ||
37 | PWMPrefs::PWMPrefs() | 37 | PWMPrefs::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 ); |
@@ -111,24 +112,28 @@ QString PWMPrefs::confGlobBrowserCommand() | |||
111 | return mBrowserCommand; | 112 | return mBrowserCommand; |
112 | } | 113 | } |
113 | 114 | ||
114 | QString PWMPrefs::confGlobXtermCommand() | 115 | QString PWMPrefs::confGlobXtermCommand() |
115 | { | 116 | { |
116 | return mXTermCommand; | 117 | return mXTermCommand; |
117 | } | 118 | } |
118 | 119 | ||
119 | QFont PWMPrefs::confGlobEntryFont() | 120 | QFont PWMPrefs::confGlobEntryFont() |
120 | { | 121 | { |
121 | return mEntryFont; | 122 | return mEntryFont; |
122 | } | 123 | } |
124 | QFont PWMPrefs::confGlobViewFont() | ||
125 | { | ||
126 | return mViewFont; | ||
127 | } | ||
123 | 128 | ||
124 | int PWMPrefs::confGlobPwTimeout() | 129 | int PWMPrefs::confGlobPwTimeout() |
125 | { | 130 | { |
126 | return mPwTimeout; | 131 | return mPwTimeout; |
127 | } | 132 | } |
128 | 133 | ||
129 | int PWMPrefs::confGlobLockTimeout() | 134 | int PWMPrefs::confGlobLockTimeout() |
130 | { | 135 | { |
131 | return mLockTimeout; | 136 | return mLockTimeout; |
132 | } | 137 | } |
133 | 138 | ||
134 | int PWMPrefs::confGlobCompression() | 139 | int PWMPrefs::confGlobCompression() |
@@ -225,24 +230,28 @@ void PWMPrefs::confGlobBrowserCommand(const QString &e) | |||
225 | mBrowserCommand = e; | 230 | mBrowserCommand = e; |
226 | } | 231 | } |
227 | 232 | ||
228 | void PWMPrefs::confGlobXtermCommand(const QString &e) | 233 | void PWMPrefs::confGlobXtermCommand(const QString &e) |
229 | { | 234 | { |
230 | mXTermCommand = e; | 235 | mXTermCommand = e; |
231 | } | 236 | } |
232 | 237 | ||
233 | void PWMPrefs::confGlobEntryFont(const QFont &e) | 238 | void PWMPrefs::confGlobEntryFont(const QFont &e) |
234 | { | 239 | { |
235 | mEntryFont = e; | 240 | mEntryFont = e; |
236 | } | 241 | } |
242 | void PWMPrefs::confGlobViewFont(const QFont &e) | ||
243 | { | ||
244 | mViewFont = e; | ||
245 | } | ||
237 | 246 | ||
238 | void PWMPrefs::confGlobPwTimeout(int e) | 247 | void PWMPrefs::confGlobPwTimeout(int e) |
239 | { | 248 | { |
240 | mPwTimeout = e; | 249 | mPwTimeout = e; |
241 | } | 250 | } |
242 | 251 | ||
243 | void PWMPrefs::confGlobLockTimeout(int e) | 252 | void PWMPrefs::confGlobLockTimeout(int e) |
244 | { | 253 | { |
245 | mLockTimeout = e; | 254 | mLockTimeout = e; |
246 | } | 255 | } |
247 | 256 | ||
248 | void PWMPrefs::confGlobCompression(int e) | 257 | void PWMPrefs::confGlobCompression(int e) |
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 | |||
@@ -64,24 +64,25 @@ class PWMPrefs : public KPimPrefs | |||
64 | public: | 64 | public: |
65 | virtual ~PWMPrefs(); | 65 | virtual ~PWMPrefs(); |
66 | 66 | ||
67 | static PWMPrefs *instance(); | 67 | static PWMPrefs *instance(); |
68 | 68 | ||
69 | public: | 69 | public: |
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(); |
@@ -91,24 +92,25 @@ public: | |||
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 | ||
96 | public: | 97 | public: |
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); |
@@ -118,24 +120,25 @@ public: | |||
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; |
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 | |||
@@ -90,23 +90,23 @@ void PwMViewStyle_0::selectCategory(const QString &cat) | |||
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 |
97 | void PwMViewStyle_0::restoreSettings(PWMPrefs* prefs) | 97 | void 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 |
106 | void PwMViewStyle_0::saveSettings(PWMPrefs* prefs) | 106 | void 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 | |||
@@ -144,24 +144,25 @@ void PwMViewStyle_1::selectCategory(const QString &cat) | |||
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 |
150 | void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs) | 150 | void 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 |
160 | void PwMViewStyle_1::saveSettings(PWMPrefs* prefs) | 161 | void 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 | } |