summaryrefslogtreecommitdiffabout
authorulf69 <ulf69>2004-09-15 22:40:33 (UTC)
committer ulf69 <ulf69>2004-09-15 22:40:33 (UTC)
commit56450c0322c2335a59ae8d8796e41397cdb09329 (patch) (side-by-side diff)
treef2b331be957fc022fe7110671f7434755f21eca3
parent610cf2a6c7aaf9855b54cd0453f347edf9c1a855 (diff)
downloadkdepimpi-56450c0322c2335a59ae8d8796e41397cdb09329.zip
kdepimpi-56450c0322c2335a59ae8d8796e41397cdb09329.tar.gz
kdepimpi-56450c0322c2335a59ae8d8796e41397cdb09329.tar.bz2
better openfile dialogs / make dialogs explicit modal
Diffstat (more/less context) (ignore whitespace changes)
-rw-r--r--pwmanager/pwmanager/addentrywndimpl.cpp3
-rw-r--r--pwmanager/pwmanager/configwndimpl.cpp10
2 files changed, 13 insertions, 0 deletions
diff --git a/pwmanager/pwmanager/addentrywndimpl.cpp b/pwmanager/pwmanager/addentrywndimpl.cpp
index 9e0fde9..73ba36c 100644
--- a/pwmanager/pwmanager/addentrywndimpl.cpp
+++ b/pwmanager/pwmanager/addentrywndimpl.cpp
@@ -27,24 +27,27 @@
#include "advcommeditimpl.h"
#endif
#include "htmlgen.h"
#include <kmessagebox.h>
#include <klocale.h>
#include <qpushbutton.h>
#include <qlabel.h>
AddEntryWndImpl::AddEntryWndImpl()
+#ifdef PWM_EMBEDDED
+ : addEntryWnd( 0, "AddEntryWndImpl", TRUE)
+#endif
{
editAdvCommentButton = 0;
commentTextEdit = 0;
switchComment(false);
pwGen = new PwGenWndImpl(this);
}
AddEntryWndImpl::~AddEntryWndImpl()
{
delete_ifnot_null(editAdvCommentButton);
delete_ifnot_null(commentTextEdit);
delete pwGen;
diff --git a/pwmanager/pwmanager/configwndimpl.cpp b/pwmanager/pwmanager/configwndimpl.cpp
index 5aa38d4..595a6e7 100644
--- a/pwmanager/pwmanager/configwndimpl.cpp
+++ b/pwmanager/pwmanager/configwndimpl.cpp
@@ -28,46 +28,56 @@
#include <kstandarddirs.h>
#include <kfiledialog.h>
#include <klocale.h>
#include <stdlib.h>
#include <stdio.h>
#ifdef PWM_EMBEDDED
#include <kfontdialog.h>
#endif
ConfigWndImpl::ConfigWndImpl()
+#ifdef PWM_EMBEDDED
+ : configWnd(0, "ConfigWndImpl", TRUE)
+#endif
+
{
}
ConfigWndImpl::~ConfigWndImpl()
{
}
void ConfigWndImpl::okButton_slot()
{
done(0);
}
void ConfigWndImpl::cancelButton_slot()
{
done(1);
}
void ConfigWndImpl::browseAutoStButton_slot()
{
+#ifndef PWM_EMBEDDED
QString path(KFileDialog::getOpenFileName(QString::null,
i18n("*.pwm|PwM Password file\n"
"*|All files"), this));
+#else
+ QString path = locateLocal( "data", KGlobal::getAppName() + "/*.pwm");
+ path = KFileDialog::getOpenFileName(filename,
+ i18n("password filename(*.pwm)"), this);
+#endif
if (path != QString::null)
autoStartLineEdit->setText(path);
}
void ConfigWndImpl::selEntrFontButton_slot()
{
bool ok;
#ifndef PWM_EMBEDDED
QFont fnt = QFontDialog::getFont(&ok, currentEntryFont, this);
#else
QFont fnt = KFontDialog::getFont(currentEntryFont, ok);
#endif