Krita Source Code Documentation
Loading...
Searching...
No Matches
KisTagToolButton.h
Go to the documentation of this file.
1/*
2 * This file is part of the KDE project
3 * SPDX-FileCopyrightText: 2002 Patrick Julien <freak@codepimps.org>
4 * SPDX-FileCopyrightText: 2007 Jan Hambrecht <jaham@gmx.net>
5 * SPDX-FileCopyrightText: 2007 Sven Langkamp <sven.langkamp@gmail.com>
6 * SPDX-FileCopyrightText: 2011 Srikanth Tiyyagura <srikanth.tulasiram@gmail.com>
7 * SPDX-FileCopyrightText: 2011 José Luis Vergara <pentalis@gmail.com>
8 * SPDX-FileCopyrightText: 2013 Sascha Suelzer <s.suelzer@gmail.com>
9 * SPDX-FileCopyrightText: 2020 Agata Cacko <cacko.azh@gmail.com>
10 *
11 * SPDX-License-Identifier: LGPL-2.0-or-later
12 */
13
14#ifndef KISTAGTOOLBUTTON_H
15#define KISTAGTOOLBUTTON_H
16
17#include <QWidget>
18#include <KisTag.h>
19
20class KisTagModel;
21
22#include <KoResource.h>
23
32class KisTagToolButton : public QWidget
33{
34 Q_OBJECT
35
36private:
37 explicit KisTagToolButton(QWidget* parent = 0);
38 ~KisTagToolButton() override;
39
47 void readOnlyMode(bool activate);
48
57 void setUndeletionCandidate(const KisTagSP deletedTag);
59
60 void setCurrentTag(const KisTagSP tag);
61
65 void loadIcon();
66
67Q_SIGNALS:
75 void newTagRequested(const QString &tagName);
76
83 void renamingOfCurrentTagRequested(const QString &tagName);
84
91
106
107private Q_SLOTS:
112
113private:
114 class Private;
115 Private* const d;
117};
118
119#endif // KISTAGTOOLBUTTON_H
The KisTagChooserWidget class is responsible for all the logic that the tags combobox has in various ...
The KisTagToolButton class manages the logic of the tag management popup.
void popupMenuAboutToShow()
popupMenuAboutToShow signals that the tags popup will be shown soon.
void deletionOfCurrentTagRequested()
deletionOfCurrentTagRequested signals to KisTagChooserWidget to delete the current tag
void setCurrentTag(const KisTagSP tag)
KisTagToolButton(QWidget *parent=0)
void newTagRequested(const QString &tagName)
newTagRequested signals to the KisTagChooserWidget to create a new tag
void renamingOfCurrentTagRequested(const QString &tagName)
renamingOfCurrentTagRequested signals to KisTagChooserWidget to rename the current tag
void onTagUndeleteClicked()
onTagUndeleteClicked is called when the user
void loadIcon()
updates icon file when loading and changing themes
void readOnlyMode(bool activate)
readOnlyMode sets the mode of the popup
void undeletionOfTagRequested(const KisTagSP tag)
undeletionOfTagRequested signals to KisTagChooserWidget to undelete the mentioned tag
void setUndeletionCandidate(const KisTagSP deletedTag)
setUndeletionCandidate sets a new item in the deleted tags list
KisTagSP undeletionCandidate() const