author | zautrix <zautrix> | 2005-06-10 11:53:12 (UTC) |
---|---|---|
committer | zautrix <zautrix> | 2005-06-10 11:53:12 (UTC) |
commit | d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc (patch) (unidiff) | |
tree | 0764371abfdb5d663ffebf408d47d49f0ca919f3 | |
parent | e5ca8e0d8d6d08b597253f43de401aa1a99a6abe (diff) | |
download | kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.zip kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.tar.gz kdepimpi-d2f00fc2034450bc9a3cd1d2c3510bef1758d3bc.tar.bz2 |
config dialog changes
-rw-r--r-- | bin/kdepim/kaddressbook/germantranslation.txt | 2 | ||||
-rw-r--r-- | bin/kdepim/kopiemail/germantranslation.txt | 2 | ||||
-rw-r--r-- | bin/kdepim/pwmanager/germantranslation.txt | 2 | ||||
-rw-r--r-- | kaddressbook/kabcore.cpp | 6 | ||||
-rw-r--r-- | kmicromail/koprefsdialog.cpp | 7 | ||||
-rw-r--r-- | kmicromail/koprefsdialog.h | 1 | ||||
-rw-r--r-- | kmicromail/mainwindow.cpp | 15 | ||||
-rw-r--r-- | kmicromail/mainwindow.h | 1 | ||||
-rw-r--r-- | kmicromail/opiemail.cpp | 5 | ||||
-rw-r--r-- | kmicromail/opiemail.h | 1 | ||||
-rw-r--r-- | microkde/kdialogbase.cpp | 5 | ||||
-rw-r--r-- | microkde/kdialogbase.h | 4 | ||||
-rw-r--r-- | pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.h | 1 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.cpp | 45 | ||||
-rw-r--r-- | pwmanager/pwmanager/pwm.h | 1 |
15 files changed, 76 insertions, 22 deletions
diff --git a/bin/kdepim/kaddressbook/germantranslation.txt b/bin/kdepim/kaddressbook/germantranslation.txt index e076e1e..d6bf118 100644 --- a/bin/kdepim/kaddressbook/germantranslation.txt +++ b/bin/kdepim/kaddressbook/germantranslation.txt | |||
@@ -772,6 +772,8 @@ | |||
772 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 772 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
773 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 773 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
774 | { "Choose action","Wähle Aktion" }, | 774 | { "Choose action","Wähle Aktion" }, |
775 | { "&Configure KA/Pi...","Konfiguriere KA/Pi..." }, | ||
776 | { "Global Settings...","Globale Einstellungen..." }, | ||
775 | { "","" }, | 777 | { "","" }, |
776 | { "","" }, | 778 | { "","" }, |
777 | { "","" }, | 779 | { "","" }, |
diff --git a/bin/kdepim/kopiemail/germantranslation.txt b/bin/kdepim/kopiemail/germantranslation.txt index 75fdd11..14e5c0b 100644 --- a/bin/kdepim/kopiemail/germantranslation.txt +++ b/bin/kdepim/kopiemail/germantranslation.txt | |||
@@ -275,6 +275,8 @@ | |||
275 | { "Error sending queued mail.\nBreaking.","Fehler beim Mailversand.\nAbbruch." }, | 275 | { "Error sending queued mail.\nBreaking.","Fehler beim Mailversand.\nAbbruch." }, |
276 | { "Colors","Farben" }, | 276 | { "Colors","Farben" }, |
277 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, | 277 | { "Alternating background of list views","Abwechselnder Hintergrund für Listen" }, |
278 | { "Configure OM/Pi...","Konfiguriere OM/Pi..." }, | ||
279 | { "Global Settings...","Globale Einstellungen..." }, | ||
278 | { "","" }, | 280 | { "","" }, |
279 | { "","" }, | 281 | { "","" }, |
280 | { "","" }, \ No newline at end of file | 282 | { "","" }, \ No newline at end of file |
diff --git a/bin/kdepim/pwmanager/germantranslation.txt b/bin/kdepim/pwmanager/germantranslation.txt index 06fa727..255f2eb 100644 --- a/bin/kdepim/pwmanager/germantranslation.txt +++ b/bin/kdepim/pwmanager/germantranslation.txt | |||
@@ -367,6 +367,8 @@ | |||
367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, | 367 | { "<b>Backup directory does not exist: </b>","<b>Backup Verzeichnis existiert nicht: </b>" }, |
368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, | 368 | { "<b>The backup copy command failed!</b>","<b>Das Backup Kopierkommando is fehlgeschlagen!</b>" }, |
369 | { "Choose action","Wähle Aktion" }, | 369 | { "Choose action","Wähle Aktion" }, |
370 | { "&Configure PwM/Pi...","Konfiguriere PwM/Pi..." }, | ||
371 | { "Global Settings...","Globale Einstellungen..." }, | ||
370 | { "","" }, | 372 | { "","" }, |
371 | { "","" }, | 373 | { "","" }, |
372 | { "","" }, | 374 | { "","" }, |
diff --git a/kaddressbook/kabcore.cpp b/kaddressbook/kabcore.cpp index cd833cf..b107e2d 100644 --- a/kaddressbook/kabcore.cpp +++ b/kaddressbook/kabcore.cpp | |||
@@ -1627,9 +1627,9 @@ void KABCore::openConfigDialog() | |||
1627 | this, SLOT( configurationChanged() ) ); | 1627 | this, SLOT( configurationChanged() ) ); |
1628 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | 1628 | connect( ConfigureDialog, SIGNAL( applyClicked() ), |
1629 | kabcfg, SLOT( save() ) ); | 1629 | kabcfg, SLOT( save() ) ); |
1630 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1630 | connect( ConfigureDialog, SIGNAL( acceptClicked() ), |
1631 | this, SLOT( configurationChanged() ) ); | 1631 | this, SLOT( configurationChanged() ) ); |
1632 | connect( ConfigureDialog, SIGNAL( okClicked() ), | 1632 | connect( ConfigureDialog, SIGNAL( acceptClicked() ), |
1633 | kabcfg, SLOT( save() ) ); | 1633 | kabcfg, SLOT( save() ) ); |
1634 | connect( ConfigureDialog, SIGNAL( defaultClicked() ), | 1634 | connect( ConfigureDialog, SIGNAL( defaultClicked() ), |
1635 | kabcfg, SLOT( defaults() ) ); | 1635 | kabcfg, SLOT( defaults() ) ); |
@@ -3430,5 +3430,5 @@ QString KABCore::sentSyncFile() | |||
3430 | void KABCore::setCaptionBack() | 3430 | void KABCore::setCaptionBack() |
3431 | { | 3431 | { |
3432 | mMessageTimer->stop(); | 3432 | mMessageTimer->stop(); |
3433 | topLevelWidget()->setCaption( i18n("KAddressbook/Pi") ); | 3433 | topLevelWidget()->setCaption( i18n("KA/Pi") ); |
3434 | } | 3434 | } |
diff --git a/kmicromail/koprefsdialog.cpp b/kmicromail/koprefsdialog.cpp index 7de7064..017f1f7 100644 --- a/kmicromail/koprefsdialog.cpp +++ b/kmicromail/koprefsdialog.cpp | |||
@@ -105,10 +105,7 @@ KOPrefsDialog::~KOPrefsDialog() | |||
105 | } | 105 | } |
106 | void KOPrefsDialog::setupGlobalTab() | 106 | void KOPrefsDialog::setupGlobalTab() |
107 | { | 107 | { |
108 | QFrame *topFrame = addPage(i18n("Global"),0,0); | 108 | |
109 | kdelibcfg = new KDEPIMConfigWidget( KPimGlobalPrefs::instance(), topFrame, "KCMKdeLibConfig" ); | ||
110 | QVBoxLayout *topLayout = new QVBoxLayout(topFrame); | ||
111 | topLayout->addWidget( kdelibcfg ); | ||
112 | 109 | ||
113 | 110 | ||
114 | } | 111 | } |
@@ -228,14 +225,12 @@ void KOPrefsDialog::usrReadConfig() | |||
228 | mNameEdit->setText(KOPrefs::instance()->mName); | 225 | mNameEdit->setText(KOPrefs::instance()->mName); |
229 | mEmailEdit->setText(KOPrefs::instance()->mEmail); | 226 | mEmailEdit->setText(KOPrefs::instance()->mEmail); |
230 | //mCodecEdit->setText(KOPrefs::instance()->mSendCodec); | 227 | //mCodecEdit->setText(KOPrefs::instance()->mSendCodec); |
231 | kdelibcfg->readConfig(); | ||
232 | } | 228 | } |
233 | void KOPrefsDialog::usrWriteConfig() | 229 | void KOPrefsDialog::usrWriteConfig() |
234 | { | 230 | { |
235 | KOPrefs::instance()->mName = mNameEdit->text(); | 231 | KOPrefs::instance()->mName = mNameEdit->text(); |
236 | KOPrefs::instance()->mEmail = mEmailEdit->text(); | 232 | KOPrefs::instance()->mEmail = mEmailEdit->text(); |
237 | //KOPrefs::instance()->mSendCodec = mCodecEdit->text(); | 233 | //KOPrefs::instance()->mSendCodec = mCodecEdit->text(); |
238 | kdelibcfg->writeConfig(); | ||
239 | 234 | ||
240 | 235 | ||
241 | } | 236 | } |
diff --git a/kmicromail/koprefsdialog.h b/kmicromail/koprefsdialog.h index a0416ae..7fa9261 100644 --- a/kmicromail/koprefsdialog.h +++ b/kmicromail/koprefsdialog.h | |||
@@ -61,7 +61,6 @@ protected: | |||
61 | void setupMailTab(); | 61 | void setupMailTab(); |
62 | void setupFontsTab(); | 62 | void setupFontsTab(); |
63 | private: | 63 | private: |
64 | KDEPIMConfigWidget* kdelibcfg; | ||
65 | QLineEdit *mNameEdit; | 64 | QLineEdit *mNameEdit; |
66 | QLineEdit *mCodecEdit; | 65 | QLineEdit *mCodecEdit; |
67 | QLineEdit *mEmailEdit; | 66 | QLineEdit *mEmailEdit; |
diff --git a/kmicromail/mainwindow.cpp b/kmicromail/mainwindow.cpp index 9a52d1b..e3c5ec3 100644 --- a/kmicromail/mainwindow.cpp +++ b/kmicromail/mainwindow.cpp | |||
@@ -95,11 +95,21 @@ MainWindow::MainWindow( QWidget *parent, const char *name, WFlags flags ) | |||
95 | connect( deleteMails, SIGNAL( activated() ), | 95 | connect( deleteMails, SIGNAL( activated() ), |
96 | SLOT( slotDeleteAllMail() ) ); | 96 | SLOT( slotDeleteAllMail() ) ); |
97 | 97 | ||
98 | editSettings = new QAction( i18n( "Edit settings" ), SmallIcon("SettingsIcon") , | 98 | editSettings = new QAction( i18n( "Configure OM/Pi..." ), SmallIcon("SettingsIcon") , |
99 | 0, 0, this ); | 99 | 0, 0, this ); |
100 | editSettings->addTo( settingsMenu ); | 100 | editSettings->addTo( settingsMenu ); |
101 | connect( editSettings, SIGNAL( activated() ), | 101 | connect( editSettings, SIGNAL( activated() ), |
102 | SLOT( slotEditSettings() ) ); | 102 | SLOT( slotEditSettings() ) ); |
103 | |||
104 | |||
105 | QAction * editSettings2 = new QAction( i18n( "Global Settings..." ), SmallIcon("SettingsIcon") , | ||
106 | 0, 0, this ); | ||
107 | editSettings2->addTo( settingsMenu ); | ||
108 | connect( editSettings2, SIGNAL( activated() ), | ||
109 | SLOT( slotEditGlobalSettings() ) ); | ||
110 | |||
111 | |||
112 | |||
103 | editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") , | 113 | editAccounts = new QAction( i18n( "Configure accounts" ), SmallIcon("editaccounts") , |
104 | 0, 0, this ); | 114 | 0, 0, this ); |
105 | editAccounts->addTo( settingsMenu ); | 115 | editAccounts->addTo( settingsMenu ); |
@@ -369,6 +379,9 @@ void MainWindow::slotAdjustColumns() | |||
369 | void MainWindow::slotEditSettings() | 379 | void MainWindow::slotEditSettings() |
370 | { | 380 | { |
371 | } | 381 | } |
382 | void MainWindow::slotEditGlobalSettings() | ||
383 | { | ||
384 | } | ||
372 | 385 | ||
373 | void MainWindow::slotShowFolders( bool ) | 386 | void MainWindow::slotShowFolders( bool ) |
374 | { | 387 | { |
diff --git a/kmicromail/mainwindow.h b/kmicromail/mainwindow.h index ddb3fca..6894039 100644 --- a/kmicromail/mainwindow.h +++ b/kmicromail/mainwindow.h | |||
@@ -52,6 +52,7 @@ protected slots: | |||
52 | virtual void mailHold(int, QListViewItem *,const QPoint&,int); | 52 | virtual void mailHold(int, QListViewItem *,const QPoint&,int); |
53 | virtual void slotAdjustLayout(); | 53 | virtual void slotAdjustLayout(); |
54 | virtual void slotEditSettings(); | 54 | virtual void slotEditSettings(); |
55 | virtual void slotEditGlobalSettings(); | ||
55 | virtual void mailLeftClicked( QListViewItem * ); | 56 | virtual void mailLeftClicked( QListViewItem * ); |
56 | void showLicence(); | 57 | void showLicence(); |
57 | void showAbout(); | 58 | void showAbout(); |
diff --git a/kmicromail/opiemail.cpp b/kmicromail/opiemail.cpp index 4436ad6..8ac3451 100644 --- a/kmicromail/opiemail.cpp +++ b/kmicromail/opiemail.cpp | |||
@@ -244,6 +244,11 @@ void OpieMail::slotSearchMails() | |||
244 | { | 244 | { |
245 | qDebug("OpieMail::slotSearchMails():not implemented "); | 245 | qDebug("OpieMail::slotSearchMails():not implemented "); |
246 | } | 246 | } |
247 | void OpieMail::slotEditGlobalSettings() | ||
248 | { | ||
249 | KPimPrefsGlobalDialog gc ( this ); | ||
250 | gc.exec(); | ||
251 | } | ||
247 | 252 | ||
248 | void OpieMail::slotEditSettings() | 253 | void OpieMail::slotEditSettings() |
249 | { | 254 | { |
diff --git a/kmicromail/opiemail.h b/kmicromail/opiemail.h index 4f75b3f..48c5dda 100644 --- a/kmicromail/opiemail.h +++ b/kmicromail/opiemail.h | |||
@@ -35,6 +35,7 @@ protected slots: | |||
35 | virtual void slotSendQueued(); | 35 | virtual void slotSendQueued(); |
36 | virtual void slotSearchMails(); | 36 | virtual void slotSearchMails(); |
37 | virtual void slotEditSettings(); | 37 | virtual void slotEditSettings(); |
38 | virtual void slotEditGlobalSettings(); | ||
38 | virtual void slotEditAccounts(); | 39 | virtual void slotEditAccounts(); |
39 | virtual void displayMail(); | 40 | virtual void displayMail(); |
40 | virtual void replyMail(); | 41 | virtual void replyMail(); |
diff --git a/microkde/kdialogbase.cpp b/microkde/kdialogbase.cpp index 11635e1..d5c7e61 100644 --- a/microkde/kdialogbase.cpp +++ b/microkde/kdialogbase.cpp | |||
@@ -286,6 +286,11 @@ void KDialogBase::slotClose() | |||
286 | reject(); | 286 | reject(); |
287 | } | 287 | } |
288 | 288 | ||
289 | void KDialogBase::accept () | ||
290 | { | ||
291 | emit acceptClicked(); | ||
292 | KDialog::accept(); | ||
293 | } | ||
289 | void KDialogBase::slotUser1() | 294 | void KDialogBase::slotUser1() |
290 | { | 295 | { |
291 | emit user1Clicked(); | 296 | emit user1Clicked(); |
diff --git a/microkde/kdialogbase.h b/microkde/kdialogbase.h index a2fc2dc..17c186b 100644 --- a/microkde/kdialogbase.h +++ b/microkde/kdialogbase.h | |||
@@ -107,6 +107,8 @@ class KDialogBase : public KDialog | |||
107 | void closeClicked(); | 107 | void closeClicked(); |
108 | void defaultClicked(); | 108 | void defaultClicked(); |
109 | 109 | ||
110 | void acceptClicked(); | ||
111 | |||
110 | protected slots: | 112 | protected slots: |
111 | virtual void slotOk(); | 113 | virtual void slotOk(); |
112 | virtual void slotApply(); | 114 | virtual void slotApply(); |
@@ -114,7 +116,7 @@ class KDialogBase : public KDialog | |||
114 | virtual void slotClose(); | 116 | virtual void slotClose(); |
115 | virtual void slotUser1(); | 117 | virtual void slotUser1(); |
116 | virtual void slotUser2(); | 118 | virtual void slotUser2(); |
117 | 119 | virtual void accept (); | |
118 | protected: | 120 | protected: |
119 | QPushButton *findButton( ButtonCode ); | 121 | QPushButton *findButton( ButtonCode ); |
120 | QTabWidget *tabWidget(); | 122 | QTabWidget *tabWidget(); |
diff --git a/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.h b/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.h index b9ea6b8..2d19680 100644 --- a/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.h +++ b/pwmanager/pwmanager/kcmconfigs/kcmpwmconfig.h | |||
@@ -36,6 +36,7 @@ class KCMPwmConfig : public KCModule | |||
36 | public: | 36 | public: |
37 | KCMPwmConfig(QWidget *parent = 0, const char *name = 0 ); | 37 | KCMPwmConfig(QWidget *parent = 0, const char *name = 0 ); |
38 | 38 | ||
39 | public slots: | ||
39 | virtual void load(); | 40 | virtual void load(); |
40 | virtual void save(); | 41 | virtual void save(); |
41 | virtual void defaults(); | 42 | virtual void defaults(); |
diff --git a/pwmanager/pwmanager/pwm.cpp b/pwmanager/pwmanager/pwm.cpp index 9c8d12d..e12dc49 100644 --- a/pwmanager/pwmanager/pwm.cpp +++ b/pwmanager/pwmanager/pwm.cpp | |||
@@ -37,6 +37,7 @@ | |||
37 | #include <qmessagebox.h> | 37 | #include <qmessagebox.h> |
38 | #include <pwmprefs.h> | 38 | #include <pwmprefs.h> |
39 | #include <kpimglobalprefs.h> | 39 | #include <kpimglobalprefs.h> |
40 | #include <kprefsdialog.h> | ||
40 | #include <kcmconfigs/kcmpwmconfig.h> | 41 | #include <kcmconfigs/kcmpwmconfig.h> |
41 | #include <kcmconfigs/kcmkdepimconfig.h> | 42 | #include <kcmconfigs/kcmkdepimconfig.h> |
42 | #include <kcmultidialog.h> | 43 | #include <kcmultidialog.h> |
@@ -74,7 +75,6 @@ | |||
74 | # include "pwmkeycard.h" | 75 | # include "pwmkeycard.h" |
75 | #endif | 76 | #endif |
76 | 77 | ||
77 | |||
78 | #define DEFAULT_SIZE (QSize(700, 400)) | 78 | #define DEFAULT_SIZE (QSize(700, 400)) |
79 | 79 | ||
80 | // Button IDs for "file" popup menu | 80 | // Button IDs for "file" popup menu |
@@ -117,7 +117,8 @@ enum { | |||
117 | }; | 117 | }; |
118 | // Button IDs for "options" popup menu | 118 | // Button IDs for "options" popup menu |
119 | enum { | 119 | enum { |
120 | BUTTON_POPUP_OPTIONS_CONFIG = 0 | 120 | BUTTON_POPUP_OPTIONS_CONFIG = 0, |
121 | BUTTON_POPUP_OPTIONS_GLOBAL_CONFIG | ||
121 | #ifdef PWM_EMBEDDED | 122 | #ifdef PWM_EMBEDDED |
122 | ,BUTTON_POPUP_OPTIONS_CATEGORY | 123 | ,BUTTON_POPUP_OPTIONS_CATEGORY |
123 | #endif | 124 | #endif |
@@ -359,9 +360,13 @@ void PwM::initMenubar() | |||
359 | menuBar()->insertItem(i18n("&View"), viewPopup); | 360 | menuBar()->insertItem(i18n("&View"), viewPopup); |
360 | // "options" popup menu | 361 | // "options" popup menu |
361 | optionsPopup->insertItem(QIconSet(picons->loadIcon("configure", KIcon::Small)), | 362 | optionsPopup->insertItem(QIconSet(picons->loadIcon("configure", KIcon::Small)), |
362 | i18n("&Configure..."), this, | 363 | i18n("&Configure PwM/Pi..."), this, |
363 | SLOT(config_slot()),0, | 364 | SLOT(config_slot()),0, |
364 | BUTTON_POPUP_OPTIONS_CONFIG); | 365 | BUTTON_POPUP_OPTIONS_CONFIG); |
366 | optionsPopup->insertItem(QIconSet(picons->loadIcon("configure", KIcon::Small)), | ||
367 | i18n("Global Settings..."), this, | ||
368 | SLOT(config_global_slot()),0, | ||
369 | BUTTON_POPUP_OPTIONS_GLOBAL_CONFIG); | ||
365 | if ( QApplication::desktop()->width() <= 240 ) { | 370 | if ( QApplication::desktop()->width() <= 240 ) { |
366 | managePopup->insertSeparator(); | 371 | managePopup->insertSeparator(); |
367 | managePopup->insertItem(i18n("&Options"), optionsPopup); | 372 | managePopup->insertItem(i18n("&Options"), optionsPopup); |
@@ -851,11 +856,16 @@ void PwM::unlockWnd_slot() | |||
851 | PWM_ASSERT(curDoc()); | 856 | PWM_ASSERT(curDoc()); |
852 | curDoc()->lockAll(false); | 857 | curDoc()->lockAll(false); |
853 | } | 858 | } |
854 | 859 | void PwM::config_global_slot() | |
860 | { | ||
861 | KPimPrefsGlobalDialog gc ( this ); | ||
862 | gc.exec(); | ||
863 | } | ||
855 | void PwM::config_slot() | 864 | void PwM::config_slot() |
856 | { | 865 | { |
857 | int oldStyle = conf()->confWndMainViewStyle(); | 866 | int oldStyle = conf()->confWndMainViewStyle(); |
858 | #ifdef PWM_EMBEDDED | 867 | |
868 | #if 0 | ||
859 | KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"pwmconfigdialog", true ); | 869 | KCMultiDialog* ConfigureDialog = new KCMultiDialog( "PIM", this ,"pwmconfigdialog", true ); |
860 | 870 | ||
861 | KCMPwmConfig* pwmcfg = new KCMPwmConfig( ConfigureDialog->getNewVBoxPage(i18n( "PwManager")) , "KCMPwmConfig" ); | 871 | KCMPwmConfig* pwmcfg = new KCMPwmConfig( ConfigureDialog->getNewVBoxPage(i18n( "PwManager")) , "KCMPwmConfig" ); |
@@ -863,19 +873,34 @@ void PwM::config_slot() | |||
863 | 873 | ||
864 | KCMKdePimConfig* kdelibcfg = new KCMKdePimConfig( ConfigureDialog->getNewVBoxPage(i18n( "Global")) , "KCMKdeLibConfig" ); | 874 | KCMKdePimConfig* kdelibcfg = new KCMKdePimConfig( ConfigureDialog->getNewVBoxPage(i18n( "Global")) , "KCMKdeLibConfig" ); |
865 | ConfigureDialog->addModule(kdelibcfg ); | 875 | ConfigureDialog->addModule(kdelibcfg ); |
876 | #endif | ||
877 | |||
866 | 878 | ||
879 | |||
880 | KDialogBase * ConfigureDialog = new KDialogBase ( KDialogBase::Plain , i18n("Configure KA/Pi"), KDialogBase::Default |KDialogBase::Cancel | KDialogBase::Apply | KDialogBase::Ok, KDialogBase::Ok,0, "name", true, true); | ||
881 | |||
882 | KCMPwmConfig* kabcfg = new KCMPwmConfig( ConfigureDialog , "KCMpwmConfig" ); | ||
883 | ConfigureDialog->setMainWidget( kabcfg ); | ||
884 | connect( ConfigureDialog, SIGNAL( applyClicked() ), | ||
885 | kabcfg, SLOT( save() ) ); | ||
886 | connect( ConfigureDialog, SIGNAL( acceptClicked() ), | ||
887 | kabcfg, SLOT( save() ) ); | ||
888 | connect( ConfigureDialog, SIGNAL( defaultClicked() ), | ||
889 | kabcfg, SLOT( defaults() ) ); | ||
890 | //saveSettings(); | ||
891 | kabcfg->load(); | ||
867 | #ifndef DESKTOP_VERSION | 892 | #ifndef DESKTOP_VERSION |
893 | if ( QApplication::desktop()->height() <= 480 ) | ||
894 | ;// ConfigureDialog->hideButtons(); | ||
868 | ConfigureDialog->showMaximized(); | 895 | ConfigureDialog->showMaximized(); |
869 | #endif | 896 | #endif |
897 | |||
898 | |||
870 | if ( ConfigureDialog->exec() ) | 899 | if ( ConfigureDialog->exec() ) |
871 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); | 900 | KMessageBox::information( this, i18n("Some changes are only\neffective after a restart!\n") ); |
872 | delete ConfigureDialog; | 901 | delete ConfigureDialog; |
873 | 902 | ||
874 | #else //PWM_EMBEDDED | 903 | |
875 | // display the configuration window (modal mode) | ||
876 | if (!conf()->showConfWnd(this)) | ||
877 | return; | ||
878 | #endif | ||
879 | 904 | ||
880 | int newStyle = conf()->confWndMainViewStyle(); | 905 | int newStyle = conf()->confWndMainViewStyle(); |
881 | // reinitialize tray | 906 | // reinitialize tray |
diff --git a/pwmanager/pwmanager/pwm.h b/pwmanager/pwmanager/pwm.h index 9fa9edc..2d1b854 100644 --- a/pwmanager/pwmanager/pwm.h +++ b/pwmanager/pwmanager/pwm.h | |||
@@ -165,6 +165,7 @@ public slots: | |||
165 | void find_slot(); | 165 | void find_slot(); |
166 | /** configure clicked */ | 166 | /** configure clicked */ |
167 | void config_slot(); | 167 | void config_slot(); |
168 | void config_global_slot(); | ||
168 | /** (de)activate the "change master pw" button in the menu-bar */ | 169 | /** (de)activate the "change master pw" button in the menu-bar */ |
169 | void activateMpButton(bool activate = true); | 170 | void activateMpButton(bool activate = true); |
170 | /** generate a new chipcard */ | 171 | /** generate a new chipcard */ |