Skip to content

armgit / krita

Public Imported from GitHub
0

Krita is a free and open source cross-platform application that offers an end-to-end solution for creating digital art files from scratch built on the KDE and Qt frameworks.

C++
1.0 KB
Raw Blame
/*
 *  SPDX-FileCopyrightText: 2023 Srirupa Datta <[email protected]>
 *
 *  SPDX-License-Identifier: GPL-2.0-or-later
 */

#ifndef WDGTAGPREVIEW_H
#define WDGTAGPREVIEW_H

#include "KisTagSelectionWidget.h"
#include "KoID.h"
#include <KisTag.h>
#include <KoResourceBundle.h>

#include <QWidget>

class KisTag;
class KisWdgTagSelectionControllerBundleTags;

namespace Ui {
class WdgTagPreview;
}

class WdgTagPreview : public QWidget
{
    Q_OBJECT


Q_SIGNALS:
    void tagsAdded(KisTagSP tagSP);
    void tagsRemoved(KisTagSP tagSP);

public:
    explicit WdgTagPreview(QString resourceType, KoResourceBundleSP bundle = nullptr, QWidget *parent = nullptr);
    ~WdgTagPreview();

public Q_SLOTS:
    void onTagAdded(KoID custom);
    void onTagRemoved(KoID custom);

private:
    Ui::WdgTagPreview *m_ui;

    QString m_resourceType;
    KisWdgTagSelectionControllerBundleTags *m_tagsController;
    KisTagSelectionWidget* m_wdgResourcesTags;
    QLayout* m_layout {nullptr};
    KoResourceBundleSP m_bundle;
};

#endif // WDGTAGPREVIEW_H