knode
#include <kncomposerview.h>
Public Slots | |
void | appendSignature () |
void | editCurrentAttachment () |
void | removeCurrentAttachment () |
Signals | |
void | closeExternalEditor () |
Public Member Functions | |
View (KNComposer *_composer) | |
virtual | ~View () |
void | addAttachment (KNAttachment::Ptr attachment) |
const QList< KNAttachment::Ptr > | attachments () const |
void | completeSetup (bool firstEdit, KNComposer::MessageMode mode) |
void | displayFollowuptoHint () |
KNComposerEditor * | editor () const |
const QString | emailRecipient () const |
void | focusNextPrevEdit (const QWidget *aCur, bool aNext) |
const QStringList | followupTo () const |
const QString | from () |
const QStringList | groups () const |
void | hideAttachmentView () |
void | hideExternalNotification () |
bool | isAttachmentViewVisible () const |
uint | selectedIdentity () const |
void | setComposingFont (const QFont &font) |
void | setEmailRecipient (const QString &to) |
void | setFollowupTo (const QString &followupTo) |
void | setFrom (const QString &from) |
void | setGroups (const QString &groups) |
void | setIdentity (uint uoid) |
void | setMessageMode (KNComposer::MessageMode mode) |
void | setSubject (const QString &subject) |
void | showAttachmentView () |
void | showExternalNotification () |
const QString | subject () const |
Detailed Description
Message composer view.
Definition at line 33 of file kncomposerview.h.
Constructor & Destructor Documentation
|
explicit |
|
virtual |
Destructor.
Definition at line 91 of file kncomposerview.cpp.
Member Function Documentation
void KNode::Composer::View::addAttachment | ( | KNAttachment::Ptr | attachment | ) |
Adds an attachment to the message.
Definition at line 458 of file kncomposerview.cpp.
|
slot |
Appends the signature to the editor.
Definition at line 345 of file kncomposerview.cpp.
const QList< KNAttachment::Ptr > KNode::Composer::View::attachments | ( | ) | const |
Returns the list of attachments of this message.
Definition at line 464 of file kncomposerview.cpp.
|
signal |
This signal is emitted when the user request the external body editor to be closed.
void KNode::Composer::View::completeSetup | ( | bool | firstEdit, |
KNComposer::MessageMode | mode | ||
) |
Completes the setup of this view.
This must be call once after all setter methods (for identity, groups, subject, etc.) have all been called.
- Parameters
-
firstEdit this indicates if this is the first edition of the post. mode the mode of this message.
Definition at line 108 of file kncomposerview.cpp.
void KNode::Composer::View::displayFollowuptoHint | ( | ) |
Display an indication to the user about followup-to.
Definition at line 296 of file kncomposerview.cpp.
|
slot |
Edit the currently selected attachment.
Definition at line 474 of file kncomposerview.cpp.
KNComposerEditor * KNode::Composer::View::editor | ( | ) | const |
Returns the main text editor.
Definition at line 338 of file kncomposerview.cpp.
const QString KNode::Composer::View::emailRecipient | ( | ) | const |
Returns the email recipient of this message (as type by the user in the To: field).
Definition at line 273 of file kncomposerview.cpp.
void KNode::Composer::View::focusNextPrevEdit | ( | const QWidget * | aCur, |
bool | aNext | ||
) |
Gives the focus to the next/previous edition widget (group, to, subject, body, etc.)
- Parameters
-
aCur the widget which currently have the focus aNext if true, the next widget get the focus., otherwise the previous one get the focus.
Definition at line 151 of file kncomposerview.cpp.
const QStringList KNode::Composer::View::followupTo | ( | ) | const |
Returns the followup-to list of groups (name are trimmed).
Definition at line 284 of file kncomposerview.cpp.
const QString KNode::Composer::View::from | ( | ) |
Returns the sender full name and email address to use in a From: header of a message.
Definition at line 224 of file kncomposerview.cpp.
const QStringList KNode::Composer::View::groups | ( | ) | const |
Returns the followup-to list of groups (name are trimmed).
Definition at line 235 of file kncomposerview.cpp.
void KNode::Composer::View::hideAttachmentView | ( | ) |
Definition at line 453 of file kncomposerview.cpp.
void KNode::Composer::View::hideExternalNotification | ( | ) |
Definition at line 494 of file kncomposerview.cpp.
|
inline |
Indicates whether the attachment view is visible or not.
- Returns
- true when it is shown.
Definition at line 92 of file kncomposerview.h.
|
slot |
Remove the currently selected attachment if there is a selection.
Definition at line 469 of file kncomposerview.cpp.
uint KNode::Composer::View::selectedIdentity | ( | ) | const |
Return the UOID of the selected identity.
Definition at line 201 of file kncomposerview.cpp.
void KNode::Composer::View::setComposingFont | ( | const QFont & | font | ) |
Changes the font used in edition widget within this ComposerView.
Definition at line 182 of file kncomposerview.cpp.
void KNode::Composer::View::setEmailRecipient | ( | const QString & | to | ) |
Sets the email recipient list as a string.
- Parameters
-
to a coma separated list of recipient address.
Definition at line 278 of file kncomposerview.cpp.
void KNode::Composer::View::setFollowupTo | ( | const QString & | followupTo | ) |
Sets the followup-to list as a string (must be a coma separated list of groups).
Definition at line 290 of file kncomposerview.cpp.
void KNode::Composer::View::setFrom | ( | const QString & | from | ) |
Set the name and email address of the sender of the message.
Definition at line 229 of file kncomposerview.cpp.
void KNode::Composer::View::setGroups | ( | const QString & | groups | ) |
Sets the group list as a string (must be coma separated).
Definition at line 241 of file kncomposerview.cpp.
void KNode::Composer::View::setIdentity | ( | uint | uoid | ) |
Changes the selected identity and update related edit lines.
Definition at line 206 of file kncomposerview.cpp.
void KNode::Composer::View::setMessageMode | ( | KNComposer::MessageMode | mode | ) |
void KNode::Composer::View::setSubject | ( | const QString & | subject | ) |
Sets the subject.
Definition at line 332 of file kncomposerview.cpp.
void KNode::Composer::View::showAttachmentView | ( | ) |
Definition at line 396 of file kncomposerview.cpp.
void KNode::Composer::View::showExternalNotification | ( | ) |
Definition at line 488 of file kncomposerview.cpp.
const QString KNode::Composer::View::subject | ( | ) | const |
Returns the subject text.
Definition at line 327 of file kncomposerview.cpp.
The documentation for this class was generated from the following files:
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.