• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdepim API Reference
  • KDE Home
  • Contact Us
 

knode

  • sources
  • kde-4.12
  • kdepim
  • knode
kncomposerview.h
Go to the documentation of this file.
1 /*
2  KNode, the KDE newsreader
3  Copyright (c) 1999-2007 the KNode authors.
4  See file AUTHORS for details
5 
6  This program is free software; you can redistribute it and/or modify
7  it under the terms of the GNU General Public License as published by
8  the Free Software Foundation; either version 2 of the License, or
9  (at your option) any later version.
10  You should have received a copy of the GNU General Public License
11  along with this program; if not, write to the Free Software Foundation,
12  Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, US
13 */
14 #ifndef KNCOMPOSERVIEW_H
15 #define KNCOMPOSERVIEW_H
16 
17 #include "kncomposer.h"
18 #include "ui_composer_view.h"
19 
20 #include <QSplitter>
21 
22 class KComboBox;
23 class KNComposerEditor;
24 class QGroupBox;
25 namespace KPIMIdentities {
26  class IdentityCombo;
27 }
28 
29 namespace KNode {
30 namespace Composer {
31 
33 class View : public QSplitter, private Ui::View
34 {
35  Q_OBJECT
36 
37  public:
42  explicit View( KNComposer *_composer );
46  virtual ~View();
47 
56  void completeSetup( bool firstEdit, KNComposer::MessageMode mode );
57 
58 
64  void focusNextPrevEdit(const QWidget* aCur, bool aNext);
65 
69  void setMessageMode(KNComposer::MessageMode mode);
70 
74  void setComposingFont( const QFont &font );
75 
76 
77  // Attachments
78  void showAttachmentView();
79  void hideAttachmentView();
83  void addAttachment( KNAttachment::Ptr attachment );
87  const QList<KNAttachment::Ptr> attachments() const;
92  bool isAttachmentViewVisible() const
93  { return mAttachmentWidget->isVisible(); }
94 
95  void showExternalNotification();
96  void hideExternalNotification();
97 
98 
99  // Editor accessors
103  uint selectedIdentity() const;
107  void setIdentity( uint uoid );
108 
112  const QString from();
116  void setFrom( const QString &from );
117 
121  const QStringList groups() const;
125  void setGroups( const QString &groups );
126 
130  const QString emailRecipient() const;
135  void setEmailRecipient( const QString &to );
136 
140  const QStringList followupTo() const;
144  void setFollowupTo( const QString &followupTo );
145 
149  void displayFollowuptoHint();
150 
154  const QString subject() const;
158  void setSubject( const QString &subject );
159 
163  KNComposerEditor * editor() const;
164 
165 
166  public slots:
170  void appendSignature();
174  void removeCurrentAttachment();
178  void editCurrentAttachment();
179 
180  signals:
185  void closeExternalEditor();
186 
187  private slots:
192  void slotIdentityChanged( uint uoid );
193 
197  void slotGroupsChanged();
198 
202  void hideFollowuptoHint();
203 
207  void slotAttachmentSelectionChanged();
208 
209  private:
210  QList<QWidget*> mEdtList;
211 
215  void showIdentity( bool show );
219  void showFrom( bool show );
223  void showTo( bool show );
227  void showGroups( bool show );
231  void showFollowupto( bool show );
235  void showSubject( bool show );
236 
240  bool mAttachmentSetup;
241 };
242 
243 
244 } // namespace Composer
245 } // namespace KNode
246 
247 #endif
KNode::Composer::View::emailRecipient
const QString emailRecipient() const
Returns the email recipient of this message (as type by the user in the To: field).
Definition: kncomposerview.cpp:273
KNode::Composer::View::focusNextPrevEdit
void focusNextPrevEdit(const QWidget *aCur, bool aNext)
Gives the focus to the next/previous edition widget (group, to, subject, body, etc.)
Definition: kncomposerview.cpp:151
KNode::Composer::View::isAttachmentViewVisible
bool isAttachmentViewVisible() const
Indicates whether the attachment view is visible or not.
Definition: kncomposerview.h:92
KNode::Composer::View::from
const QString from()
Returns the sender full name and email address to use in a From: header of a message.
Definition: kncomposerview.cpp:224
KNode::Composer::View::View
View(KNComposer *_composer)
Constructor.
Definition: kncomposerview.cpp:33
KNode::Composer::View::setIdentity
void setIdentity(uint uoid)
Changes the selected identity and update related edit lines.
Definition: kncomposerview.cpp:206
KNode::Composer::View::appendSignature
void appendSignature()
Appends the signature to the editor.
Definition: kncomposerview.cpp:345
KNode::Composer::View
Message composer view.
Definition: kncomposerview.h:33
KNode::Composer::View::editCurrentAttachment
void editCurrentAttachment()
Edit the currently selected attachment.
Definition: kncomposerview.cpp:474
QWidget
KNode::Composer::View::setEmailRecipient
void setEmailRecipient(const QString &to)
Sets the email recipient list as a string.
Definition: kncomposerview.cpp:278
KNode::Composer::View::setMessageMode
void setMessageMode(KNComposer::MessageMode mode)
Set the message mode to.
Definition: kncomposerview.cpp:192
KNode::Composer::View::hideExternalNotification
void hideExternalNotification()
Definition: kncomposerview.cpp:494
KNode::Composer::View::setFrom
void setFrom(const QString &from)
Set the name and email address of the sender of the message.
Definition: kncomposerview.cpp:229
KNComposer
Message composer window.
Definition: kncomposer.h:41
KNode::Composer::View::removeCurrentAttachment
void removeCurrentAttachment()
Remove the currently selected attachment if there is a selection.
Definition: kncomposerview.cpp:469
KNode::Composer::View::~View
virtual ~View()
Destructor.
Definition: kncomposerview.cpp:91
KNComposer::MessageMode
MessageMode
Definition: kncomposer.h:50
KNode::Composer::View::followupTo
const QStringList followupTo() const
Returns the followup-to list of groups (name are trimmed).
Definition: kncomposerview.cpp:284
KNode::Composer::View::subject
const QString subject() const
Returns the subject text.
Definition: kncomposerview.cpp:327
KNComposerEditor
Definition: kncomposereditor.h:28
to
QString to() const
QGroupBox
KNode::Composer::View::showAttachmentView
void showAttachmentView()
Definition: kncomposerview.cpp:396
KNode::Composer::View::closeExternalEditor
void closeExternalEditor()
This signal is emitted when the user request the external body editor to be closed.
KNode::Composer::View::setComposingFont
void setComposingFont(const QFont &font)
Changes the font used in edition widget within this ComposerView.
Definition: kncomposerview.cpp:182
KNode::Composer::View::setFollowupTo
void setFollowupTo(const QString &followupTo)
Sets the followup-to list as a string (must be a coma separated list of groups).
Definition: kncomposerview.cpp:290
KNode::Composer::View::showExternalNotification
void showExternalNotification()
Definition: kncomposerview.cpp:488
KNode::Composer::View::groups
const QStringList groups() const
Returns the followup-to list of groups (name are trimmed).
Definition: kncomposerview.cpp:235
KNode::Composer::View::attachments
const QList< KNAttachment::Ptr > attachments() const
Returns the list of attachments of this message.
Definition: kncomposerview.cpp:464
KNode::Composer::View::displayFollowuptoHint
void displayFollowuptoHint()
Display an indication to the user about followup-to.
Definition: kncomposerview.cpp:296
KNode::Composer::View::addAttachment
void addAttachment(KNAttachment::Ptr attachment)
Adds an attachment to the message.
Definition: kncomposerview.cpp:458
KNode::Composer::View::editor
KNComposerEditor * editor() const
Returns the main text editor.
Definition: kncomposerview.cpp:338
kncomposer.h
KNode::Composer::View::hideAttachmentView
void hideAttachmentView()
Definition: kncomposerview.cpp:453
KComboBox
KNode::Composer::View::setSubject
void setSubject(const QString &subject)
Sets the subject.
Definition: kncomposerview.cpp:332
KNAttachment::Ptr
boost::shared_ptr< KNAttachment > Ptr
Shared pointer to a KNAttachment.
Definition: knarticle.h:281
QSplitter
KNode::Composer::View::completeSetup
void completeSetup(bool firstEdit, KNComposer::MessageMode mode)
Completes the setup of this view.
Definition: kncomposerview.cpp:108
KNode::Composer::View::selectedIdentity
uint selectedIdentity() const
Return the UOID of the selected identity.
Definition: kncomposerview.cpp:201
QList< KNAttachment::Ptr >
KNode::Composer::View::setGroups
void setGroups(const QString &groups)
Sets the group list as a string (must be coma separated).
Definition: kncomposerview.cpp:241
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:58:36 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

knode

Skip menu "knode"
  • Main Page
  • Namespace List
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdepim API Reference

Skip menu "kdepim API Reference"
  • akonadi_next
  • akregator
  • blogilo
  • calendarsupport
  • console
  •   kabcclient
  •   konsolekalendar
  • kaddressbook
  • kalarm
  •   lib
  • kdgantt2
  • kjots
  • kleopatra
  • kmail
  • knode
  • knotes
  • kontact
  • korgac
  • korganizer
  • ktimetracker
  • libkdepim
  • libkleo
  • libkpgp
  • mailcommon
  • messagelist
  • messageviewer

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal