--- kmail/configuredialog.cpp 2006/11/02 10:03:21 601149
+++ kmail/configuredialog.cpp 2006/11/02 10:06:27 601150
@@ -2557,6 +2557,24 @@
connect( mAutoAppSignFileCheck, SIGNAL( stateChanged(int) ),
this, SLOT( slotEmitChanged( void ) ) );
+ mTopQuoteCheck =
+ new QCheckBox( GlobalSettings::self()->prependSignatureItem()->label(), this );
+ mTopQuoteCheck->setEnabled( false );
+ vlay->addWidget( mTopQuoteCheck);
+ connect( mTopQuoteCheck, SIGNAL( stateChanged(int) ),
+ this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutoAppSignFileCheck, SIGNAL(toggled(bool)),
+ mTopQuoteCheck, SLOT(setEnabled(bool)) );
+
+ mDashDashCheck =
+ new QCheckBox( GlobalSettings::self()->dashDashSignatureItem()->label(), this );
+ mDashDashCheck->setEnabled( false );
+ vlay->addWidget( mDashDashCheck);
+ connect( mDashDashCheck, SIGNAL( stateChanged(int) ),
+ this, SLOT( slotEmitChanged( void ) ) );
+ connect( mAutoAppSignFileCheck, SIGNAL(toggled(bool)),
+ mDashDashCheck, SLOT(setEnabled(bool)) );
+
mSmartQuoteCheck = new QCheckBox(
GlobalSettings::self()->smartQuoteItem()->label(),
this, "kcfg_SmartQuote" );
@@ -2674,6 +2689,8 @@
mAutoAppSignFileCheck->setChecked(
GlobalSettings::self()->autoTextSignature()=="auto" );
+ mTopQuoteCheck->setChecked( GlobalSettings::self()->prependSignature() );
+ mDashDashCheck->setChecked( GlobalSettings::self()->dashDashSignature() );
mSmartQuoteCheck->setChecked( GlobalSettings::self()->smartQuote() );
mAutoRequestMDNCheck->setChecked( GlobalSettings::self()->requestMDN() );
mWordWrapCheck->setChecked( GlobalSettings::self()->wordWrap() );
@@ -2694,6 +2711,12 @@
bool state = composer.readBoolEntry("signature");
mAutoAppSignFileCheck->setChecked( state );
}
+ if ( composer.hasKey( "prepend-signature" ) )
+ mTopQuoteCheck->setChecked( composer.readBoolEntry( "prepend-signature" ) );
+
+ if ( composer.hasKey( "dash-dash-signature" ) )
+ mDashDashCheck->setChecked( composer.readBoolEntry( "dash-dash-signature" ) );
+
if ( composer.hasKey( "smart-quote" ) )
mSmartQuoteCheck->setChecked( composer.readBoolEntry( "smart-quote" ) );
if ( composer.hasKey( "request-mdn" ) )
@@ -2715,6 +2738,8 @@
void ComposerPage::GeneralTab::save() {
GlobalSettings::self()->setAutoTextSignature(
mAutoAppSignFileCheck->isChecked() ? "auto" : "manual" );
+ GlobalSettings::self()->setPrependSignature( mTopQuoteCheck->isChecked());
+ GlobalSettings::self()->setDashDashSignature( mDashDashCheck->isChecked());
GlobalSettings::self()->setSmartQuote( mSmartQuoteCheck->isChecked() );
GlobalSettings::self()->setRequestMDN( mAutoRequestMDNCheck->isChecked() );
GlobalSettings::self()->setWordWrap( mWordWrapCheck->isChecked() );
--- kmail/configuredialog_p.h 2006/11/02 10:03:21 601149
+++ kmail/configuredialog_p.h 2006/11/02 10:06:27 601150
@@ -604,6 +604,8 @@
private:
QCheckBox *mAutoAppSignFileCheck;
+ QCheckBox *mTopQuoteCheck;
+ QCheckBox *mDashDashCheck;
QCheckBox *mSmartQuoteCheck;
QCheckBox *mAutoRequestMDNCheck;
QCheckBox *mShowRecentAddressesInComposer;
--- kmail/kmail.kcfg 2006/11/02 10:03:21 601149
+++ kmail/kmail.kcfg 2006/11/02 10:06:27 601150
@@ -253,7 +253,7 @@
false
-
+
auto
@@ -350,6 +350,17 @@
A backup copy of the text in the composer window can be created regularly. The interval used to create the backups is set here. You can disable autosaving by setting it to the value 0.
2
+
+
+
+ false
+
+
+
+
+ true
+
+
Re\\s*:,Re\\[\\d+\\]:,Re\\d+:
--- kmail/kmcomposerui.rc 2006/11/02 10:03:21 601149
+++ kmail/kmcomposerui.rc 2006/11/02 10:06:27 601150
@@ -63,6 +63,9 @@