File indexing completed on 2024-12-22 04:15:05
0001 /* 0002 * SPDX-FileCopyrightText: 2018 Boudewijn Rempt <boud@valdyas.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #ifndef DLG_DBEXPLORER 0008 #define DLG_DBEXPLORER 0009 0010 #include <KoDialog.h> 0011 0012 #include "ui_WdgDbExplorer.h" 0013 //#include <KisTagFilterResourceProxyModel.h> 0014 0015 class KisResourceModel; 0016 class KisTagModel; 0017 class KisResourceTypeModel; 0018 class KisTagFilterResourceProxyModel; 0019 class QModelIndex; 0020 0021 class WdgDbExplorer : public QWidget, public Ui::WdgDbExplorer 0022 { 0023 Q_OBJECT 0024 0025 public: 0026 WdgDbExplorer(QWidget *parent) : QWidget(parent) { 0027 setupUi(this); 0028 } 0029 }; 0030 0031 class DlgDbExplorer: public KoDialog 0032 { 0033 Q_OBJECT 0034 public: 0035 DlgDbExplorer(QWidget * parent = 0); 0036 ~DlgDbExplorer() override; 0037 0038 private Q_SLOTS: 0039 0040 void slotTbResourceTypeSelected(int index); 0041 void slotTbResourceItemSelected(); 0042 0043 void slotRvResourceTypeSelected(int index); 0044 void slotRvTagSelected(int index); 0045 0046 void slotTbTagSelected(const QModelIndex &index); 0047 0048 private: 0049 void updateTagModel(const QString& resourceType); 0050 0051 WdgDbExplorer *m_page {0}; 0052 0053 KisTagModel *m_tagModel {0}; 0054 KisResourceTypeModel *m_resourceTypeModel {0}; 0055 KisTagFilterResourceProxyModel* m_filterProxyModel {0}; 0056 }; 0057 0058 #endif // DLG_DBEXPLORER