author | ulf69 <ulf69> | 2004-08-11 19:20:53 (UTC) |
---|---|---|
committer | ulf69 <ulf69> | 2004-08-11 19:20:53 (UTC) |
commit | f79407b018b3abd9a99ccd259f1ff24f3bfee6a4 (patch) (side-by-side diff) | |
tree | 5063b159ec286ebe074e96391fd1a034aca208ae | |
parent | 4e4e196bc4fbe4e078b4fbe6b372bd643bf372f1 (diff) | |
download | kdepimpi-f79407b018b3abd9a99ccd259f1ff24f3bfee6a4.zip kdepimpi-f79407b018b3abd9a99ccd259f1ff24f3bfee6a4.tar.gz kdepimpi-f79407b018b3abd9a99ccd259f1ff24f3bfee6a4.tar.bz2 |
added a configurationsettings that aloowes the user to choose between
the display of multiple views at once or just one
-rw-r--r-- | kaddressbook/kabprefs.cpp | 2 | ||||
-rw-r--r-- | kaddressbook/kabprefs.h | 1 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.cpp | 9 | ||||
-rw-r--r-- | kaddressbook/kcmconfigs/kabconfigwidget.h | 2 |
4 files changed, 13 insertions, 1 deletions
diff --git a/kaddressbook/kabprefs.cpp b/kaddressbook/kabprefs.cpp index 0c192dd..03c5e76 100644 --- a/kaddressbook/kabprefs.cpp +++ b/kaddressbook/kabprefs.cpp @@ -58,6 +58,8 @@ KABPrefs::KABPrefs() addItemBool( "DetailsPageVisible", &mDetailsPageVisible, true ); addItemIntList( "ExtensionsSplitter", &mExtensionsSplitter ); addItemIntList( "DetailsSplitter", &mDetailsSplitter ); + addItemBool( "MultipleViewsAtOnce", &mMultipleViewsAtOnce, true ); + KPrefs::setCurrentGroup( "Extensions_General" ); QStringList defaultExtensions; diff --git a/kaddressbook/kabprefs.h b/kaddressbook/kabprefs.h index 8f149ac..03e529f 100644 --- a/kaddressbook/kabprefs.h +++ b/kaddressbook/kabprefs.h @@ -65,6 +65,7 @@ class KABPrefs : public KPimPrefs // GUI bool mJumpButtonBarVisible; bool mDetailsPageVisible; + bool mMultipleViewsAtOnce; QValueList<int> mExtensionsSplitter; QValueList<int> mDetailsSplitter; diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.cpp b/kaddressbook/kcmconfigs/kabconfigwidget.cpp index b5309c0..31ab7b5 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.cpp +++ b/kaddressbook/kcmconfigs/kabconfigwidget.cpp @@ -111,12 +111,15 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) mNameParsing = new QCheckBox( i18n( "Automatic name parsing for new addressees" ), groupBox, "mparse" ); boxLayout->addWidget( mNameParsing ); + mMultipleViewsAtOnce = new QCheckBox( i18n( "Display List and Details at once (restart)" ), groupBox, "mdisplay" ); + boxLayout->addWidget( mMultipleViewsAtOnce ); + layout->addWidget( groupBox ); //extensions groupbox - groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions" ), generalPage ); + groupBox = new QGroupBox( 0, Qt::Vertical, i18n( "Extensions (restart)" ), generalPage ); boxLayout = new QVBoxLayout( groupBox->layout() ); boxLayout->setAlignment( Qt::AlignTop ); boxLayout->setMargin(KDialog::marginHintSmall()); @@ -139,6 +142,7 @@ KABConfigWidget::KABConfigWidget( QWidget *parent, const char *name ) connect( mNameParsing, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); connect( mViewsSingleClickBox, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); + connect( mMultipleViewsAtOnce, SIGNAL( toggled( bool ) ), this, SLOT( modified() ) ); connect( mExtensionView, SIGNAL( selectionChanged( QListViewItem* ) ), SLOT( selectionChanged( QListViewItem* ) ) ); connect( mExtensionView, SIGNAL( clicked( QListViewItem* ) ), @@ -165,6 +169,7 @@ void KABConfigWidget::restoreSettings(KABPrefs* prefs) mNameParsing->setChecked( prefs->mAutomaticNameParsing ); mViewsSingleClickBox->setChecked( prefs->mHonorSingleClick ); + mMultipleViewsAtOnce->setChecked( prefs->mMultipleViewsAtOnce ); mAddresseeWidget->restoreSettings(); @@ -179,6 +184,7 @@ void KABConfigWidget::saveSettings(KABPrefs* prefs) { prefs->mAutomaticNameParsing = mNameParsing->isChecked(); prefs->mHonorSingleClick = mViewsSingleClickBox->isChecked(); + prefs->mMultipleViewsAtOnce = mMultipleViewsAtOnce->isChecked(); mAddresseeWidget->saveSettings(); @@ -192,6 +198,7 @@ void KABConfigWidget::defaults(KABPrefs* prefs) { mNameParsing->setChecked( true ); mViewsSingleClickBox->setChecked( false ); + mMultipleViewsAtOnce->setChecked( true ); emit changed( true ); } diff --git a/kaddressbook/kcmconfigs/kabconfigwidget.h b/kaddressbook/kcmconfigs/kabconfigwidget.h index 8c0c436..2928495 100644 --- a/kaddressbook/kcmconfigs/kabconfigwidget.h +++ b/kaddressbook/kcmconfigs/kabconfigwidget.h @@ -68,6 +68,8 @@ class KABConfigWidget : public QWidget QCheckBox *mNameParsing; QCheckBox *mViewsSingleClickBox; + QCheckBox *mMultipleViewsAtOnce; + QPushButton *mConfigureButton; AddresseeWidget *mAddresseeWidget; |