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

mailcommon

  • sources
  • kde-4.12
  • kdepim
  • mailcommon
  • tag
tagwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2012 Montel Laurent <montel@kde.org>
3 
4  This program is free software; you can redistribute it and/or modify it
5  under the terms of the GNU General Public License, version 2, as
6  published by the Free Software Foundation.
7 
8  This program is distributed in the hope that it will be useful, but
9  WITHOUT ANY WARRANTY; without even the implied warranty of
10  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
11  General Public License for more details.
12 
13  You should have received a copy of the GNU General Public License along
14  with this program; if not, write to the Free Software Foundation, Inc.,
15  51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
16 */
17 
18 #ifndef MAILCOMMON_TAGWIDGET_H
19 #define MAILCOMMON_TAGWIDGET_H
20 
21 #include "mailcommon_export.h"
22 
23 #include "tag.h"
24 
25 #include <QWidget>
26 
27 class KLineEdit;
28 class KColorCombo;
29 class KFontRequester;
30 class KIconButton;
31 class KKeySequenceWidget;
32 class QCheckBox;
33 class KActionCollection;
34 
35 namespace MailCommon {
36 
37 class MAILCOMMON_EXPORT TagWidget : public QWidget
38 {
39  Q_OBJECT
40 public:
41  explicit TagWidget(const QList<KActionCollection *> &actionCollections, QWidget *parent = 0);
42  ~TagWidget();
43 
44  MailCommon::Tag::SaveFlags saveFlags() const;
45  void recordTagSettings( MailCommon::Tag::Ptr tag);
46 
47 
48  KLineEdit *tagNameLineEdit() { return mTagNameLineEdit; }
49  QCheckBox *textColorCheck() { return mTextColorCheck; }
50  QCheckBox *textFontCheck() { return mTextFontCheck; }
51  QCheckBox *backgroundColorCheck() { return mBackgroundColorCheck; }
52  QCheckBox *inToolBarCheck() { return mInToolbarCheck; }
53 
54  KColorCombo *textColorCombo() { return mTextColorCombo; }
55  KColorCombo *backgroundColorCombo() { return mBackgroundColorCombo; }
56 
57  KFontRequester *fontRequester() { return mFontRequester; }
58 
59  KIconButton *iconButton() { return mIconButton; }
60 
61  KKeySequenceWidget *keySequenceWidget() { return mKeySequenceWidget; }
62 
63  void setTagTextColor(const QColor& color);
64  void setTagBackgroundColor(const QColor& color);
65  void setTagTextFont(const QFont& font);
66 
67 Q_SIGNALS:
68  void changed();
69  void iconNameChanged(const QString&);
70 
71 private Q_SLOTS:
72  void slotEmitChangeCheck();
73 
74 
75 
76 private:
77  KLineEdit *mTagNameLineEdit;
78 
79  QCheckBox *mTextColorCheck, *mBackgroundColorCheck,
80  *mTextFontCheck, *mInToolbarCheck;
81 
82  KColorCombo *mTextColorCombo, *mBackgroundColorCombo;
83 
84  KFontRequester *mFontRequester;
85 
86  KIconButton *mIconButton;
87 
88  KKeySequenceWidget *mKeySequenceWidget;
89 };
90 }
91 
92 #endif // MAILCOMMON_TAGWIDGET_H
tag.h
MailCommon::TagWidget::keySequenceWidget
KKeySequenceWidget * keySequenceWidget()
Definition: tagwidget.h:61
QSharedPointer
Definition: collectiongeneralpage.h:30
MailCommon::TagWidget::textColorCombo
KColorCombo * textColorCombo()
Definition: tagwidget.h:54
MailCommon::TagWidget::fontRequester
KFontRequester * fontRequester()
Definition: tagwidget.h:57
QWidget
MailCommon::TagWidget::textColorCheck
QCheckBox * textColorCheck()
Definition: tagwidget.h:49
MailCommon::TagWidget::backgroundColorCheck
QCheckBox * backgroundColorCheck()
Definition: tagwidget.h:51
MailCommon::Tag::SaveFlags
QFlags< SaveFlag > SaveFlags
Definition: tag.h:52
mailcommon_export.h
MailCommon::TagWidget::textFontCheck
QCheckBox * textFontCheck()
Definition: tagwidget.h:50
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::TagWidget::inToolBarCheck
QCheckBox * inToolBarCheck()
Definition: tagwidget.h:52
MailCommon::TagWidget
Definition: tagwidget.h:37
MailCommon::TagWidget::tagNameLineEdit
KLineEdit * tagNameLineEdit()
Definition: tagwidget.h:48
MailCommon::TagWidget::backgroundColorCombo
KColorCombo * backgroundColorCombo()
Definition: tagwidget.h:55
MailCommon::TagWidget::iconButton
KIconButton * iconButton()
Definition: tagwidget.h:59
QList
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:55:15 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

mailcommon

Skip menu "mailcommon"
  • Main Page
  • Namespace List
  • Namespace Members
  • 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