knode
#include <kncomposer.h>
|
| KNComposer (KNLocalArticle::Ptr a, const QString &text=QString(), const QString &unwraped=QString(), bool firstEdit=false, bool dislikesCopies=false, bool createCopy=false, bool allowMail=true) |
|
| ~KNComposer () |
|
bool | applyChanges () |
|
KNLocalArticle::Ptr | article () const |
|
void | closeEvent (QCloseEvent *e) |
|
bool | hasValidData () |
|
void | insertFile (QFile *file, bool clear=false, bool box=false, const QString &boxTitle=QString()) |
|
void | insertFile (bool clear=false, bool box=false) |
|
composerResult | result () const |
|
void | setCharset (const QString &charset) |
|
void | setConfig (bool onlyFonts) |
|
void | setMessageMode (MessageMode mode) |
|
Message composer window.
Definition at line 41 of file kncomposer.h.
Enumerator |
---|
CRsendNow |
|
CRsendLater |
|
CRdelAsk |
|
CRdel |
|
CRsave |
|
CRcancel |
|
Definition at line 47 of file kncomposer.h.
Enumerator |
---|
news |
Message is to be sent to a newsgroup.
|
mail |
Message is to be sent by e-mail.
|
news_mail |
Message is to be sent by e-mail and to a newsgroup.
|
Definition at line 50 of file kncomposer.h.
KNComposer::KNComposer |
( |
KNLocalArticle::Ptr |
a, |
|
|
const QString & |
text = QString() , |
|
|
const QString & |
unwraped = QString() , |
|
|
bool |
firstEdit = false , |
|
|
bool |
dislikesCopies = false , |
|
|
bool |
createCopy = false , |
|
|
bool |
allowMail = true |
|
) |
| |
|
explicit |
Create a composer for a message (e-mail or newsgroup post).
- Parameters
-
a | The article to edit. |
text | The wraped text of the message. |
unwraped | The original, not rewraped text. |
firstEdit | Indicates if it is the first time that this message is edited. |
dislikesCopies | When true, this indicates that the author of the message that is replied to did not want an e-mail copy of the answer. |
createCopy | When true, this indicates that a copy should be sent by e-mail. |
allowMail | Enables or disables sending the message via e-mail. |
Definition at line 166 of file kncomposer.cpp.
KNComposer::~KNComposer |
( |
| ) |
|
void KNComposer::addRecentAddress |
( |
| ) |
|
|
protectedslot |
bool KNComposer::applyChanges |
( |
| ) |
|
Applies changes from the editor into the article being edited.
- Returns
- false if an error occurred.
Definition at line 725 of file kncomposer.cpp.
void KNComposer::closeEvent |
( |
QCloseEvent * |
e | ) |
|
void KNComposer::dragEnterEvent |
( |
QDragEnterEvent * |
event | ) |
|
|
protectedvirtual |
Reimplemented to accept list of URI as drag content.
Definition at line 1505 of file kncomposer.cpp.
void KNComposer::dropEvent |
( |
QDropEvent * |
event | ) |
|
|
protectedvirtual |
Reimplemented to add the dropped files as attachments.
Definition at line 1513 of file kncomposer.cpp.
bool KNComposer::hasValidData |
( |
| ) |
|
void KNComposer::initData |
( |
const QString & |
text | ) |
|
|
slot |
void KNComposer::insertFile |
( |
QFile * |
file, |
|
|
bool |
clear = false , |
|
|
bool |
box = false , |
|
|
const QString & |
boxTitle = QString() |
|
) |
| |
Inserts at cursor position if clear is false, replaces content otherwise puts the file content into a box if box==true "file" is already open for reading.
Definition at line 1014 of file kncomposer.cpp.
void KNComposer::insertFile |
( |
bool |
clear = false , |
|
|
bool |
box = false |
|
) |
| |
void KNComposer::setCharset |
( |
const QString & |
charset | ) |
|
Sets the character set to used to encode this message.
This also enforces some sanity check.
Definition at line 889 of file kncomposer.cpp.
void KNComposer::setConfig |
( |
bool |
onlyFonts | ) |
|
void KNComposer::slotArtDelete |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotAttachFile |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotAttachmentChanged |
( |
| ) |
|
|
protectedslot |
Called by the View to notify that an attachment was modified.
Definition at line 1163 of file kncomposer.cpp.
void KNComposer::slotAttachmentPopup |
( |
const QPoint & |
point | ) |
|
|
protectedslot |
Open a popup menu to do action on an attachment.
- Parameters
-
point | the global position where the popup should be opened. |
Definition at line 1497 of file kncomposer.cpp.
Called by the View when an attachment was removed.
Definition at line 1145 of file kncomposer.cpp.
void KNComposer::slotAutoSpellCheckingToggled |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotCancelEditor |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotConfKeys |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotConfToolbar |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotCopy |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotCut |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotEditorFinished |
( |
int |
, |
|
|
QProcess::ExitStatus |
exitStatus |
|
) |
| |
|
protectedslot |
void KNComposer::slotExternalEditor |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotGroupsBtnClicked |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotInsertFile |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotInsertFileBoxed |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotNewToolbarConfig |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotPaste |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotRedo |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSaveAsDraft |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSelectAll |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSendLater |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSendNow |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSetCharset |
( |
const QString & |
s | ) |
|
|
protectedslot |
void KNComposer::slotSetCharsetKeyboard |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotSubjectChanged |
( |
const QString & |
t | ) |
|
|
protectedslot |
void KNComposer::slotToBtnClicked |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotToggleDoMail |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotToggleDoPost |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotToggleWordWrap |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotUndo |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotUndoRewrap |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotUpdateCheckSpellChecking |
( |
bool |
_b | ) |
|
|
protectedslot |
void KNComposer::slotUpdateCursorPos |
( |
| ) |
|
|
protectedslot |
void KNComposer::slotUpdateStatusBar |
( |
| ) |
|
|
protectedslot |
QAction * KNComposer::a_ctAttachmentProperties |
KToggleAction * KNComposer::a_ctAutoSpellChecking |
KToggleAction * KNComposer::a_ctDoMail |
KToggleAction * KNComposer::a_ctDoPost |
QAction* KNComposer::a_ctExternalEditor |
KToggleAction* KNComposer::a_ctPGPsign |
QAction * KNComposer::a_ctRemoveAttachment |
KSelectAction* KNComposer::a_ctSetCharset |
QAction * KNComposer::a_ctSetCharsetKeyb |
QAction * KNComposer::a_ctSpellCheck |
KToggleAction * KNComposer::a_ctWordWrap |
bool KNComposer::a_ttChanged |
bool KNComposer::a_uthorDislikesMailCopies |
KTemporaryFile* KNComposer::e_ditorTempfile |
bool KNComposer::e_xternalEdited |
KProcess* KNComposer::e_xternalEditor |
bool KNComposer::n_eeds8Bit |
QString KNComposer::u_nwraped |
bool KNComposer::v_alidated |
The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:37 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.