summaryrefslogtreecommitdiffstats
path: root/kmail/kmcomposewin.h
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2010-09-01 00:37:02 +0000
commitcc29364f06178f8f6b457384f2ec37a042bd9d43 (patch)
tree7c77a3184c698bbf9d98cef09fb1ba8124daceba /kmail/kmcomposewin.h
parent4f6c584bacc8c3c694228f36ada3de77a76614a6 (diff)
downloadtdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.tar.gz
tdepim-cc29364f06178f8f6b457384f2ec37a042bd9d43.zip
* Massive set of changes to bring in all fixes and enhancements from the Enterprise PIM branch
* Ensured that the Trinity changes were applied on top of those enhancements, and any redundancy removed * Added journal read support to the CalDAV resource * Fixed CalDAV resource to use events URL for tasks and journals when separate URL checkbox unchecked git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdepim@1170461 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'kmail/kmcomposewin.h')
-rw-r--r--kmail/kmcomposewin.h54
1 files changed, 48 insertions, 6 deletions
diff --git a/kmail/kmcomposewin.h b/kmail/kmcomposewin.h
index 7f003d44a..f38a8f682 100644
--- a/kmail/kmcomposewin.h
+++ b/kmail/kmcomposewin.h
@@ -96,7 +96,7 @@ namespace GpgME {
}
//-----------------------------------------------------------------------------
-class KMComposeWin : public KMail::Composer, virtual public MailComposerIface
+class KMComposeWin : public KMail::Composer, public MailComposerIface
{
Q_OBJECT
friend class ::KMEdit;
@@ -161,6 +161,32 @@ public: // kmkernel, kmcommands, callback
void disableWordWrap();
+ /** Don't check if there are too many recipients for a mail,
+ * eg. when sending out invitations.
+ */
+ void disableRecipientNumberCheck();
+
+ /** Don't check for forgotten attachments for a mail,
+ * eg. when sending out invitations.
+ */
+ void disableForgottenAttachmentsCheck();
+
+ /**
+ * Ignore the "sticky" setting of the transport combo box and prefer the X-KMail-Transport
+ * header field of the message instead.
+ * Do the same for the identity combo box, don't obey the "sticky" setting but use the
+ * X-KMail-Identity header field instead.
+ *
+ * This is useful when sending out invitations, since you don't see the GUI and want the
+ * identity and transport to be set to the values stored in the messages.
+ */
+ void ignoreStickyFields();
+
+ /**
+ * Returns @c true while the message composing is in progress.
+ */
+ bool isComposing() const { return mComposer != 0; }
+
private: // kmedit
/**
* Returns message of the composer. To apply the user changes to the
@@ -524,14 +550,22 @@ private:
*/
void rethinkHeaderLine( int aValue, int aMask, int& aRow,
- const TQString &aLabelStr, TQLabel* aLbl,
+ TQLabel* aLbl,
TQLineEdit* aEdt, TQPushButton* aBtn = 0,
const TQString &toolTip = TQString::null,
const TQString &whatsThis = TQString::null );
void rethinkHeaderLine( int value, int mask, int& row,
- const TQString& labelStr, TQLabel* lbl,
- TQComboBox* cbx, TQCheckBox *chk );
+ TQLabel* lbl, TQComboBox* cbx, TQCheckBox *chk );
+
+ /**
+ * Checks how many recipients are and warns if there are too many.
+ * @return true, if the user accepted the warning and the message should be sent
+ */
+ bool checkRecipientNumber() const;
+
+
+ bool checkTransport() const;
/**
* Initialization methods
@@ -691,11 +725,13 @@ private:
*/
void setTransport( const TQString & transport );
+ enum SignaturePlacement { Append, Prepend, AtCursor };
+
/**
* Helper to insert the signature of the current identy at the
* beginning or end of the editor.
*/
- void insertSignature( bool append = true, int pos = 0 );
+ void insertSignature( SignaturePlacement placement = Append );
private slots:
/**
* Compress an attachemnt with the given index
@@ -717,11 +753,12 @@ private:
TQLabel *mLblIdentity, *mLblTransport, *mLblFcc;
TQLabel *mLblFrom, *mLblReplyTo, *mLblTo, *mLblCc, *mLblBcc, *mLblSubject;
TQLabel *mDictionaryLabel;
- TQCheckBox *mBtnIdentity, *mBtnTransport, *mBtnFcc;
+ TQCheckBox *mBtnIdentity, *mBtnDictionary, *mBtnTransport, *mBtnFcc;
TQPushButton *mBtnTo, *mBtnCc, *mBtnBcc, /* *mBtnFrom, */ *mBtnReplyTo;
bool mSpellCheckInProgress;
bool mDone;
bool mAtmModified;
+ TQListViewItem *mAtmSelectNew;
KMEdit* mEditor;
TQGridLayout* mGrid;
@@ -906,6 +943,11 @@ private:
* accidentally moving the cursor.
*/
bool mPreserveUserCursorPosition;
+
+ bool mPreventFccOverwrite;
+ bool mCheckForRecipients;
+ bool mCheckForForgottenAttachments;
+ bool mIgnoreStickyFields;
};
#endif