Krita Source Code Documentation
Loading...
Searching...
No Matches
DlgResourceManager.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2021 Mathias Wein <lynx.mw+kde@gmail.com>
3 * SPDX-FileCopyrightText: 2023 Srirupa Datta <srirupa.sps@gmail.com>
4 *
5 * SPDX-License-Identifier: LGPL-2.0-or-later
6 */
7
8#ifndef DLGRESOURCEMANAGER_H
9#define DLGRESOURCEMANAGER_H
10
11#include <KoDialog.h>
12#include <QScopedPointer>
13#include <QSortFilterProxyModel>
14#include <QItemSelection>
17
18
21class KisStorageModel;
22class KisTagModel;
25class KisTag;
27
28namespace Ui
29{
30class WdgDlgResourceManager;
31} // namespace Ui
32
34{
35 Q_OBJECT
36public:
37 DlgResourceManager(KisActionManager* actionMgr, QWidget *parent = 0);
38 ~DlgResourceManager() override;
39
40private Q_SLOTS:
41 void slotResourcesSelectionChanged(QModelIndex selected);
42
46 void slotCreateBundle();
47 void slotSaveTags();
48private:
50
51 static QString constructMetadata(const QMap<QString, QVariant> &metadata, const QString &resourceType);
52
53private:
54 QWidget *m_page {nullptr};
55 QScopedPointer<Ui::WdgDlgResourceManager> m_ui;
57
58 QScopedPointer<KisWdgTagSelectionControllerOneResource> m_tagsController;
59
61
62 bool m_undeleteMode {false};
63
65};
66
67#endif // DLGRESOURCEMANAGER_H
DlgResourceManager(KisActionManager *actionMgr, QWidget *parent=0)
void updateDeleteButtonState(const QModelIndexList &list)
QScopedPointer< KisWdgTagSelectionControllerOneResource > m_tagsController
KisActionManager * m_actionManager
WdgResourcePreview * m_wdgResourcePreview
void slotResourcesSelectionChanged(QModelIndex selected)
KisResourceThumbnailPainter m_thumbnailPainter
QScopedPointer< Ui::WdgDlgResourceManager > m_ui
static QString constructMetadata(const QMap< QString, QVariant > &metadata, const QString &resourceType)
A KisActionManager class keeps track of KisActions. These actions are always associated with the GUI....
The KisResourceModel class provides the main access to resources. It is possible to filter the resour...
The resource item delegate for rendering the resource preview.
The KisTagFilterResourceProxyModel class filters the resources by tag or resource name.
The KisTag loads a tag from a .tag file. A .tag file is a .desktop file. The following fields are imp...
Definition KisTag.h:34
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116