mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-09 05:27:41 +00:00
Implemented initial version of resource browser
This commit is contained in:
32
src/Editor/ResourceBrowser/CResourceBrowser.h
Normal file
32
src/Editor/ResourceBrowser/CResourceBrowser.h
Normal file
@@ -0,0 +1,32 @@
|
||||
#ifndef CRESOURCEBROWSER_H
|
||||
#define CRESOURCEBROWSER_H
|
||||
|
||||
#include "CResourceProxyModel.h"
|
||||
#include "CResourceTableModel.h"
|
||||
#include "CVirtualDirectoryModel.h"
|
||||
#include <QDialog>
|
||||
|
||||
namespace Ui {
|
||||
class CResourceBrowser;
|
||||
}
|
||||
|
||||
class CResourceBrowser : public QDialog
|
||||
{
|
||||
Q_OBJECT
|
||||
Ui::CResourceBrowser *mpUI;
|
||||
CResourceTableModel *mpModel;
|
||||
CResourceProxyModel *mpProxyModel;
|
||||
CVirtualDirectoryModel *mpDirectoryModel;
|
||||
|
||||
public:
|
||||
explicit CResourceBrowser(QWidget *pParent = 0);
|
||||
~CResourceBrowser();
|
||||
void RefreshResources();
|
||||
|
||||
public slots:
|
||||
void OnSortModeChanged(int Index);
|
||||
void OnSearchStringChanged();
|
||||
void OnDirectorySelectionChanged(const QModelIndex& rkNewIndex, const QModelIndex& rkPrevIndex);
|
||||
};
|
||||
|
||||
#endif // CRESOURCEBROWSER_H
|
||||
Reference in New Issue
Block a user