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

mailcommon

  • sources
  • kde-4.14
  • kdepim
  • mailcommon
  • tag
tagwidget.h
Go to the documentation of this file.
1 /*
2  Copyright (c) 2012-2015 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() const;
49  QCheckBox *textColorCheck() const;
50  QCheckBox *textFontCheck() const;
51  QCheckBox *backgroundColorCheck() const;
52  QCheckBox *inToolBarCheck() const;
53 
54  KColorCombo *textColorCombo() const;
55  KColorCombo *backgroundColorCombo() const;
56 
57  KFontRequester *fontRequester() const;
58 
59  KIconButton *iconButton() const;
60 
61  KKeySequenceWidget *keySequenceWidget() const;
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
QWidget
QFont
QFlags
QSharedPointer
Definition: collectiongeneralpage.h:30
mailcommon_export.h
QCheckBox
QString
QList
QColor
MAILCOMMON_EXPORT
#define MAILCOMMON_EXPORT
Definition: mailcommon_export.h:35
MailCommon::TagWidget
Definition: tagwidget.h:37
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:31:41 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
  • pimprint

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