Mailcommon

tagwidget.h
1/*
2 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8
9#include "mailcommon_export.h"
10
11#include "tag.h"
12
13#include <QWidget>
14
15class QLineEdit;
16class KColorCombo;
17class KIconButton;
19class QCheckBox;
21
22namespace MailCommon
23{
24class TagWidgetPrivate;
25class MAILCOMMON_EXPORT TagWidget : public QWidget
26{
27 Q_OBJECT
28public:
29 explicit TagWidget(const QList<KActionCollection *> &actionCollections, QWidget *parent = nullptr);
30 ~TagWidget() override;
31
32 void recordTagSettings(MailCommon::Tag::Ptr tag);
33
34 [[nodiscard]] QLineEdit *tagNameLineEdit() const;
35 [[nodiscard]] QCheckBox *textColorCheck() const;
36 [[nodiscard]] QCheckBox *textFontCheck() const;
37 [[nodiscard]] QCheckBox *backgroundColorCheck() const;
38 [[nodiscard]] QCheckBox *inToolBarCheck() const;
39
40 [[nodiscard]] KColorCombo *textColorCombo() const;
41 [[nodiscard]] KColorCombo *backgroundColorCombo() const;
42
43 [[nodiscard]] QCheckBox *textBoldCheck() const;
44 [[nodiscard]] QCheckBox *textItalicCheck() const;
45
46 [[nodiscard]] KIconButton *iconButton() const;
47
48 [[nodiscard]] KKeySequenceWidget *keySequenceWidget() const;
49
50 void setTagTextColor(const QColor &color);
51 void setTagBackgroundColor(const QColor &color);
52 void setTagTextFormat(bool bold, bool italic);
53
54Q_SIGNALS:
55 void changed();
56 void iconNameChanged(const QString &);
57
58private:
59 MAILCOMMON_NO_EXPORT void slotEmitChangeCheck();
60 std::unique_ptr<TagWidgetPrivate> const d;
61};
62}
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.