author | zautrix <zautrix> | 2004-09-22 02:03:15 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2004-09-22 02:03:15 (UTC) |
commit | 633522024e48efc423155a04b71083a03696211d (patch) (side-by-side diff) | |
tree | c383ee8fa3489351450b948eb83a42b504752131 /korganizer | |
parent | ed2feaa9f7e2064e5b26ff678a25eb79ceae599b (diff) | |
download | kdepimpi-633522024e48efc423155a04b71083a03696211d.zip kdepimpi-633522024e48efc423155a04b71083a03696211d.tar.gz kdepimpi-633522024e48efc423155a04b71083a03696211d.tar.bz2 |
global prefs integrated in kopi amd ompi
-rw-r--r-- | korganizer/koprefsdialog.cpp | 12 | ||||
-rw-r--r-- | korganizer/koprefsdialog.h | 3 |
2 files changed, 15 insertions, 0 deletions
diff --git a/korganizer/koprefsdialog.cpp b/korganizer/koprefsdialog.cpp index 1c30faa..7dafcd8 100644 --- a/korganizer/koprefsdialog.cpp +++ b/korganizer/koprefsdialog.cpp @@ -67,6 +67,7 @@ #include "koprefs.h" #include "koprefsdialog.h" +#include "kpimglobalprefs.h" KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : @@ -78,6 +79,7 @@ KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : KGlobal::locale()->insertCatalogue("timezones"); + setupGlobalTab(); setupMainTab(); setupLocaleTab(); setupTimeZoneTab(); @@ -97,7 +99,15 @@ KOPrefsDialog::KOPrefsDialog(QWidget *parent, char *name, bool modal) : KOPrefsDialog::~KOPrefsDialog() { } +void KOPrefsDialog::setupGlobalTab() +{ + QFrame *topFrame = addPage(i18n("Global"),0,0); + kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); + QVBoxLayout *topLayout = new QVBoxLayout(topFrame); + topLayout->addWidget( kdelibcfg ); + +} void KOPrefsDialog::setupLocaleDateTab() { QFrame *topFrame = addPage(i18n("Date Format"),0,0); @@ -1321,6 +1331,7 @@ void KOPrefsDialog::setCombo(QComboBox *combo, const QString & text, void KOPrefsDialog::usrReadConfig() { + kdelibcfg->readConfig(); mNameEdit->setText(KOPrefs::instance()->fullName()); mEmailEdit->setText(KOPrefs::instance()->email()); @@ -1370,6 +1381,7 @@ void KOPrefsDialog::usrReadConfig() void KOPrefsDialog::usrWriteConfig() { + kdelibcfg->writeConfig(); // KOPrefs::instance()->mRemoteIP = mRemoteIPEdit->text(); //KOPrefs::instance()->mRemoteUser = mRemoteUser->text(); //KOPrefs::instance()->mRemotePassWd = mRemotePassWd->text(); diff --git a/korganizer/koprefsdialog.h b/korganizer/koprefsdialog.h index 83dc1eb..e20969a 100644 --- a/korganizer/koprefsdialog.h +++ b/korganizer/koprefsdialog.h @@ -32,6 +32,7 @@ #include <libkdepim/kprefsdialog.h> #include <libkdepim/kdateedit.h> +#include <kcmconfigs/kdepimconfigwidget.h> class KColorButton; class QSpinBox; @@ -79,6 +80,7 @@ class KOPrefsDialog : public KPrefsDialog protected: void usrReadConfig(); void usrWriteConfig(); + void setupGlobalTab(); void setupMainTab(); void setupTimeTab(); @@ -99,6 +101,7 @@ class KOPrefsDialog : public KPrefsDialog private: + KDEPIMConfigWidget* kdelibcfg; KPrefsDialogWidBool *mEnableGroupScheduling; KPrefsDialogWidBool *mEnableProjectView; |