Krita Source Code Documentation
Loading...
Searching...
No Matches
DlgDbExplorer.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef DLG_DBEXPLORER
8#define DLG_DBEXPLORER
9
10#include <KoDialog.h>
11
12#include "ui_WdgDbExplorer.h"
13//#include <KisTagFilterResourceProxyModel.h>
14
16class KisTagModel;
19class QModelIndex;
20
21class WdgDbExplorer : public QWidget, public Ui::WdgDbExplorer
22{
23 Q_OBJECT
24
25public:
26 WdgDbExplorer(QWidget *parent) : QWidget(parent) {
27 setupUi(this);
28 }
29};
30
32{
33 Q_OBJECT
34public:
35 DlgDbExplorer(QWidget * parent = 0);
36 ~DlgDbExplorer() override;
37
38private Q_SLOTS:
39
40 void slotTbResourceTypeSelected(int index);
42
43 void slotRvResourceTypeSelected(int index);
44 void slotRvTagSelected(int index);
45
46 void slotTbTagSelected(const QModelIndex &index);
47
48private:
49 void updateTagModel(const QString& resourceType);
50
52
56};
57
58#endif // DLG_DBEXPLORER
KisTagModel * m_tagModel
void updateTagModel(const QString &resourceType)
void slotTbResourceTypeSelected(int index)
KisTagFilterResourceProxyModel * m_filterProxyModel
void slotTbTagSelected(const QModelIndex &index)
DlgDbExplorer(QWidget *parent=0)
void slotRvResourceTypeSelected(int index)
WdgDbExplorer * m_page
void slotTbResourceItemSelected()
~DlgDbExplorer() override
KisResourceTypeModel * m_resourceTypeModel
void slotRvTagSelected(int index)
The KisResourceModel class provides the main access to resources. It is possible to filter the resour...
The KisTagFilterResourceProxyModel class filters the resources by tag or resource name.
A dialog base class with standard buttons and predefined layouts.
Definition KoDialog.h:116
WdgDbExplorer(QWidget *parent)