summaryrefslogtreecommitdiffabout
path: root/kmicromail/settingsdialog.cpp
authorzautrix <zautrix>2004-09-15 06:15:59 (UTC)
committer zautrix <zautrix>2004-09-15 06:15:59 (UTC)
commit35b8948c6c203473866c74f1d13185a848454e04 (patch) (side-by-side diff)
treeb6d8eca9863cbca8e24d474d8c895065faa17458 /kmicromail/settingsdialog.cpp
parentf1f43030eefa765950cb501aece6cc71fb4e9859 (diff)
downloadkdepimpi-35b8948c6c203473866c74f1d13185a848454e04.zip
kdepimpi-35b8948c6c203473866c74f1d13185a848454e04.tar.gz
kdepimpi-35b8948c6c203473866c74f1d13185a848454e04.tar.bz2
Mail config added
Diffstat (limited to 'kmicromail/settingsdialog.cpp') (more/less context) (show whitespace changes)
-rw-r--r--kmicromail/settingsdialog.cpp46
1 files changed, 43 insertions, 3 deletions
diff --git a/kmicromail/settingsdialog.cpp b/kmicromail/settingsdialog.cpp
index 061ea72..c593b48 100644
--- a/kmicromail/settingsdialog.cpp
+++ b/kmicromail/settingsdialog.cpp
@@ -1,7 +1,13 @@
#include <qcheckbox.h>
#include <qspinbox.h>
+#include <qlayout.h>
+#include <qtabwidget.h>
-#include <qpe/config.h>
+#include <kconfig.h>
+#include <kprefs.h>
+#include <klocale.h>
+#include <kglobal.h>
+#include <kfontdialog.h>
#include "settingsdialog.h"
@@ -9,7 +15,41 @@
SettingsDialog::SettingsDialog( QWidget* parent, const char* name, bool modal, WFlags fl )
: SettingsDialogUI( parent, name, modal, fl ) {
+#if 0
+ QTabWidget *topFrame = TabWidget2;
+
+ QGridLayout *topLayout = new QGridLayout(topFrame,3,3);
+ topLayout->setSpacing(2);
+ topLayout->setMargin(3);
+ KPrefsWidFont * tVFont;
+ int i = 0;
+ KPrefsWidFont *timeLabelsFont =
+ addWidFont(i18n("OK"),i18n("Application(nr):"),
+ &(mAppFont),topFrame);
+ topLayout->addWidget(timeLabelsFont->label(),i,0);
+ topLayout->addWidget(timeLabelsFont->preview(),i,1);
+ topLayout->addWidget(timeLabelsFont->button(),i,2);
+ ++i;
+
+
+ timeLabelsFont =
+ addWidFont(i18n("Mon 15"),i18n("Compose Mail:"),
+ &(mComposeFont),topFrame);
+ topLayout->addWidget(timeLabelsFont->label(),i,0);
+ topLayout->addWidget(timeLabelsFont->preview(),i,1);
+ topLayout->addWidget(timeLabelsFont->button(),i,2);
+ ++i;
+
+ KPrefsWidFont *timeBarFont =
+ addWidFont(i18n("Mon 15"),i18n("Read Mail:"),
+ &(mReadFont),topFrame);
+ topLayout->addWidget(timeBarFont->label(),i,0);
+ topLayout->addWidget(timeBarFont->preview(),i,1);
+ topLayout->addWidget(timeBarFont->button(),i,2);
+ ++i;
+
readConfig();
+#endif
}
SettingsDialog::~SettingsDialog() {
@@ -17,7 +57,7 @@ SettingsDialog::~SettingsDialog() {
}
void SettingsDialog::readConfig() {
- Config cfg("mail");
+ KConfig cfg = ( locateLocal("config","kopiemailrc" ));
cfg.setGroup( "Settings" );
showHtmlButton->setChecked( cfg.readBoolEntry( "showHtml", false ) );
cfg.setGroup( "Compose" );
@@ -31,7 +71,7 @@ void SettingsDialog::readConfig() {
}
void SettingsDialog::writeConfig() {
- Config cfg( "mail" );
+ KConfig cfg ( locateLocal("config","kopiemailrc" ));
cfg.setGroup( "Settings" );
cfg.writeEntry( "showHtml", showHtmlButton->isChecked() );
cfg.setGroup( "Compose" );