Created new resource selector widget class

This commit is contained in:
Aruki
2017-02-01 08:43:42 -07:00
parent 8a66e393e7
commit 4e8ecdb79c
18 changed files with 285 additions and 34 deletions

View File

@@ -15,6 +15,7 @@ class CResourceBrowser : public QDialog
{
Q_OBJECT
Ui::CResourceBrowser *mpUI;
CResourceEntry *mpSelectedEntry;
CResourceStore *mpStore;
CResourceTableModel *mpModel;
CResourceProxyModel *mpProxyModel;
@@ -24,19 +25,25 @@ class CResourceBrowser : public QDialog
public:
explicit CResourceBrowser(QWidget *pParent = 0);
~CResourceBrowser();
void RefreshResources();
// Accessors
inline CResourceEntry* SelectedEntry() const { return mpSelectedEntry; }
public slots:
void OnStoreChanged(int Index);
void RefreshResources();
void OnSortModeChanged(int Index);
void OnSearchStringChanged();
void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex, const QModelIndex& rkPrevIndex);
void OnDoubleClickResource(QModelIndex Index);
void OnResourceSelectionChanged(const QModelIndex& rkNewIndex, const QModelIndex& rkPrevIndex);
void OnImportPakContentsTxt();
void OnGenerateAssetNames();
void OnImportNamesFromAssetNameMap();
void ExportAssetNames();
void UpdateFilter();
signals:
void SelectedResourceChanged(CResourceEntry *pNewRes);
};
#endif // CRESOURCEBROWSER_H