Krita Source Code Documentation
Loading...
Searching...
No Matches
page_tag_chooser.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2023 Srirupa Datta <srirupa.sps@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef PAGE_TAG_CHOOSER_H
8#define PAGE_TAG_CHOOSER_H
9
10#include <QWizardPage>
11#include <KoResourceBundle.h>
13#include <KisTag.h>
14#include "KisBundleStorage.h"
15
16
17namespace Ui {
18class PageTagChooser;
19}
20
21class PageTagChooser : public QWizardPage
22{
23 Q_OBJECT
24
25public:
26 explicit PageTagChooser(KoResourceBundleSP bundle = nullptr, QWidget *parent = nullptr);
28
30 void updateTags(bool flag, QString tag);
31
32Q_SIGNALS:
34
35private Q_SLOTS:
36
37 void addSelected(KisTagSP tagSP);
38 void removeSelected(KisTagSP tagSP);
39
40private:
41 Ui::PageTagChooser *m_ui;
43
46};
47
48#endif // PAGE_TAG_CHOOSER_H
PageTagChooser(KoResourceBundleSP bundle=nullptr, QWidget *parent=nullptr)
KoResourceBundleSP m_bundle
void removeSelected(KisTagSP tagSP)
QList< int > m_selectedTagIds
QList< int > selectedTagIds()
void tagsUpdated()
KisBundleStorage * m_bundleStorage
void addSelected(KisTagSP tagSP)
void updateTags(bool flag, QString tag)
Ui::PageTagChooser * m_ui