31 #include "invitationsettings.moc"
32 #include "ui_invitationsettings.h"
36 #include <KMessageBox>
38 using namespace MessageViewer;
41 :
QWidget( parent ), mInvitationUi( new Ui_InvitationSettings )
43 mInvitationUi->setupUi(
this );
45 mInvitationUi->mDeleteInvitations->setText(
47 deleteInvitationEmailsAfterSendingReplyItem()->label().toUtf8() ) );
48 mInvitationUi->mDeleteInvitations->setWhatsThis(
50 deleteInvitationEmailsAfterSendingReplyItem()->whatsThis().toUtf8() ) );
51 connect( mInvitationUi->mDeleteInvitations, SIGNAL(toggled(
bool)),
54 mInvitationUi->mLegacyMangleFromTo->setWhatsThis(
56 connect( mInvitationUi->mLegacyMangleFromTo, SIGNAL(stateChanged(
int)),
59 mInvitationUi->mLegacyBodyInvites->setWhatsThis(
61 connect( mInvitationUi->mLegacyBodyInvites, SIGNAL(toggled(
bool)),
62 this, SLOT(slotLegacyBodyInvitesToggled(
bool)) );
63 connect( mInvitationUi->mLegacyBodyInvites, SIGNAL(stateChanged(
int)),
66 mInvitationUi->mExchangeCompatibleInvitations->setWhatsThis(
68 connect( mInvitationUi->mExchangeCompatibleInvitations, SIGNAL(stateChanged(
int)),
71 mInvitationUi->mOutlookCompatibleInvitationComments->setWhatsThis(
73 outlookCompatibleInvitationReplyCommentsItem()->whatsThis().toUtf8() ) );
74 connect( mInvitationUi->mOutlookCompatibleInvitationComments, SIGNAL(stateChanged(
int)),
77 mInvitationUi->mOutlookCompatibleInvitationComparisons->setWhatsThis(
79 outlookCompatibleInvitationComparisonsItem()->whatsThis().toUtf8() ) );
80 connect( mInvitationUi->mOutlookCompatibleInvitationComparisons, SIGNAL(stateChanged(
int)),
84 mInvitationUi->mAutomaticSending->hide();
85 mInvitationUi->mAutomaticSending->setWhatsThis(
87 connect( mInvitationUi->mAutomaticSending, SIGNAL(stateChanged(
int)),
97 void InvitationSettings::slotLegacyBodyInvitesToggled(
bool on )
100 const QString txt = i18n(
"<qt>Invitations are normally sent as attachments to "
101 "a mail. This switch changes the invitation mails to "
102 "be sent in the text of the mail instead; this is "
103 "necessary to send invitations and replies to "
104 "Microsoft Outlook.<br />But, when you do this, you no "
105 "longer get descriptive text that mail programs "
106 "can read; so, to people who have email programs "
107 "that do not understand the invitations, the "
108 "resulting messages look very odd.<br />People that have email "
109 "programs that do understand invitations will still "
110 "be able to work with this.</qt>" );
111 KMessageBox::information(
this, txt, QString(), QLatin1String(
"LegacyBodyInvitesWarning") );
115 mInvitationUi->mAutomaticSending->setEnabled( !mInvitationUi->mLegacyBodyInvites->isChecked() );
120 mInvitationUi->mLegacyMangleFromTo->setChecked(
123 mInvitationUi->mExchangeCompatibleInvitations->setChecked(
126 mInvitationUi->mLegacyBodyInvites->blockSignals(
true );
128 mInvitationUi->mLegacyBodyInvites->blockSignals(
false );
130 mInvitationUi->mOutlookCompatibleInvitationComments->setChecked(
133 mInvitationUi->mOutlookCompatibleInvitationComparisons->setChecked(
137 mInvitationUi->mAutomaticSending->setEnabled( !mInvitationUi->mLegacyBodyInvites->isChecked() );
139 mInvitationUi->mDeleteInvitations->setChecked(
146 mInvitationUi->mLegacyMangleFromTo->isChecked() );
151 mInvitationUi->mExchangeCompatibleInvitations->isChecked() );
154 mInvitationUi->mOutlookCompatibleInvitationComments->isChecked() );
157 mInvitationUi->mOutlookCompatibleInvitationComparisons->isChecked() );
162 mInvitationUi->mDeleteInvitations->isChecked() );
167 return QString::fromLatin1(
"configure-misc-invites" );
174 mInvitationUi->mLegacyMangleFromTo->setChecked(
177 mInvitationUi->mExchangeCompatibleInvitations->setChecked(
180 mInvitationUi->mLegacyBodyInvites->blockSignals(
true );
182 mInvitationUi->mLegacyBodyInvites->blockSignals(
false );
184 mInvitationUi->mOutlookCompatibleInvitationComments->setChecked(
187 mInvitationUi->mOutlookCompatibleInvitationComparisons->setChecked(
191 mInvitationUi->mAutomaticSending->setEnabled( !mInvitationUi->mLegacyBodyInvites->isChecked() );
193 mInvitationUi->mDeleteInvitations->setChecked(
void doResetToDefaultsOther()
QString helpAnchor() const
InvitationSettings(QWidget *parent=0)
static GlobalSettings * self()
void doLoadFromGlobalSettings()