summaryrefslogtreecommitdiffabout
authorzautrix <zautrix>2005-03-03 10:31:59 (UTC)
committer zautrix <zautrix>2005-03-03 10:31:59 (UTC)
commit806a806422872b6f31183267c6b084d425458902 (patch) (side-by-side diff)
treef36f659d6b595f82c918329a0b07476a2300f6e2
parent9e0ceaa58a686fb64f8133ffa9e73866e985a464 (diff)
downloadkdepimpi-806a806422872b6f31183267c6b084d425458902.zip
kdepimpi-806a806422872b6f31183267c6b084d425458902.tar.gz
kdepimpi-806a806422872b6f31183267c6b084d425458902.tar.bz2
pwmpi fixes
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--bin/kdepim/pwmanager/germantranslation.txt4
-rw-r--r--pwmanager/pwmanager/commentbox.cpp1
-rw-r--r--pwmanager/pwmanager/kcmconfigs/pwmconfigwidget.cpp17
-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, 32 insertions, 6 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
@@ -258,10 +258,12 @@
{ "PwManager","PwManager" },
{ "Window-style:","Window-Stil:" },
{ "Category on top","Kategorien oben" },
{ "Category-list left/top","Kategorien links oben" },
-{ "<b>Font for Password entries:</b>","<b>Schrift für Passwort Einträge:</b>" },
+{ "Font for Password entries:","Schrift für Passwort Einträge:" },
+{ "Font for Password summary:","Schrift für Passwort Übersicht:" },
{ "Font:","Schriftart:" },
+{ "Summary","Übersicht" },
{ "Compression:","Kompression:" },
{ "gzip","gzip" },
{ "Encryption:","Verschlüsselung:" },
{ "Blowfish (128 bit)","Blowfish (128 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
@@ -40,8 +40,9 @@ CommentBox::CommentBox(QWidget *_parentWidget)
parentWidget = _parentWidget;
textDta = 0;
htmlDta = 0;
mode = mode_notSet;
+ setFont( prefs->mViewFont );
}
CommentBox::~CommentBox()
{
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
@@ -69,21 +69,30 @@ PWMConfigWidget::PWMConfigWidget(PWMPrefs *prefs, QWidget *parent, const char *n
windowStyle->addRadio(i18n("Category-list left/top"));
windowStyleLayout->addMultiCellWidget( (QWidget*)windowStyle->groupBox(),i,i,0,2);
++i;
- QLabel* lab = new QLabel(i18n("<b>Font for Password entries:</b>"), windowStylePage);
+ QLabel* lab = new QLabel(i18n("Font for Password entries:"), windowStylePage);
windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
-
-
++i;
-
KPrefsWidFont *selEntrFont =
addWidFont(i18n("Password"),i18n("Font:"),
&(prefs->mEntryFont),windowStylePage);
windowStyleLayout->addWidget(selEntrFont->label(),i,0);
windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
windowStyleLayout->addWidget(selEntrFont->button(),i,2);
++i;
+
+ lab = new QLabel(i18n("Font for Password summary:"), windowStylePage);
+ windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
+ ++i;
+ selEntrFont =
+ addWidFont(i18n("Summary"),i18n("Font:"),
+ &(prefs->mViewFont),windowStylePage);
+ windowStyleLayout->addWidget(selEntrFont->label(),i,0);
+ windowStyleLayout->addWidget(selEntrFont->preview(),i,1);
+ windowStyleLayout->addWidget(selEntrFont->button(),i,2);
+ ++i;
+
lab = new QLabel(i18n(""), windowStylePage);
windowStyleLayout->addMultiCellWidget( lab,i,i,0,2);
// File page
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
@@ -33,8 +33,9 @@
ListViewPwM::ListViewPwM(QWidget *parent, const char *name)
: KListView(parent, name)
{
// setResizeMode(QListView::AllColumns);
+ setAllColumnsShowFocus (true );
}
bool ListViewPwM::event(QEvent *e)
{
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
@@ -42,8 +42,9 @@ PWMPrefs::PWMPrefs()
addItemString( "autoStart", &mAutoStart, "" );
addItemString( "browserCommand", &mBrowserCommand, "" );
addItemString( "xtermCommand", &mXTermCommand, CONF_DEFAULT_XTERMCOMMAND);
addItemFont( "entryFont", &mEntryFont,KGlobalSettings::generalFont());
+ addItemFont( "viewFont", &mViewFont,KGlobalSettings::generalFont());
addItemInt( "pwTimeout", &mPwTimeout, CONF_DEFAULT_PWTIMEOUT );
addItemInt( "lockTimeout", &mLockTimeout, CONF_DEFAULT_LOCKTIMEOUT );
addItemInt( "compression", &mCompression, CONF_DEFAULT_COMPRESSION );
addItemInt("cryptAlgo", &mCryptAlgo, CONF_DEFAULT_CRYPTALGO);
@@ -119,8 +120,12 @@ QString PWMPrefs::confGlobXtermCommand()
QFont PWMPrefs::confGlobEntryFont()
{
return mEntryFont;
}
+QFont PWMPrefs::confGlobViewFont()
+{
+ return mViewFont;
+}
int PWMPrefs::confGlobPwTimeout()
{
return mPwTimeout;
@@ -233,8 +238,12 @@ void PWMPrefs::confGlobXtermCommand(const QString &e)
void PWMPrefs::confGlobEntryFont(const QFont &e)
{
mEntryFont = e;
}
+void PWMPrefs::confGlobViewFont(const QFont &e)
+{
+ mViewFont = e;
+}
void PWMPrefs::confGlobPwTimeout(int e)
{
mPwTimeout = 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
@@ -72,8 +72,9 @@ public:
QString confGlobAutoStart();
QString confGlobBrowserCommand();
QString confGlobXtermCommand();
QFont confGlobEntryFont();
+ QFont confGlobViewFont();
int confGlobPwTimeout();
int confGlobLockTimeout();
int confGlobCompression();
int confGlobCryptAlgo();
@@ -99,8 +100,9 @@ public:
void confGlobAutoStart(const QString &e);
void confGlobBrowserCommand(const QString &e);
void confGlobXtermCommand(const QString &e);
void confGlobEntryFont(const QFont &e);
+ void confGlobViewFont(const QFont &e);
void confGlobPwTimeout(int e);
void confGlobLockTimeout(int e);
void confGlobCompression(int e);
void confGlobCryptAlgo(int e);
@@ -126,8 +128,9 @@ public:
QString mAutoStart;
QString mBrowserCommand;
QString mXTermCommand;
QFont mEntryFont;
+ QFont mViewFont;
int mPwTimeout;
int mLockTimeout;
int mCompression;
int mCryptAlgo;
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
@@ -98,9 +98,9 @@ void PwMViewStyle_0::restoreSettings(PWMPrefs* prefs)
{
//load and store the size of the listviewcolumns
lv->restoreLayout(prefs->getConfig(), "listview");
splitter1->setSizes( prefs->mCommentSplitter );
-
+ commentBox->setFont( prefs->mViewFont );
}
//US ENH: I need a place to load the view dependend settings. Eg. splittersize
void PwMViewStyle_0::saveSettings(PWMPrefs* prefs)
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
@@ -152,8 +152,9 @@ void PwMViewStyle_1::restoreSettings(PWMPrefs* prefs)
//load and store the size of the listviewcolumns
lv->restoreLayout(prefs->getConfig(), "listview");
splitter->setSizes( prefs->mCategorySplitter );
splitter2->setSizes( prefs->mCommentSplitter );
+ commentBox->setFont( prefs->mViewFont );
}
//US ENH: I need a place to load the view dependend settings. Eg. splittersize