mirror of
https://github.com/AxioDL/PrimeWorldEditor.git
synced 2025-12-17 00:47:05 +00:00
Changed resource selector widgets so they can pop up a panel with a list of acceptable resources
This commit is contained in:
31
src/Editor/Widgets/CSelectResourcePanel.h
Normal file
31
src/Editor/Widgets/CSelectResourcePanel.h
Normal file
@@ -0,0 +1,31 @@
|
||||
#ifndef CSELECTRESOURCEPANEL_H
|
||||
#define CSELECTRESOURCEPANEL_H
|
||||
|
||||
#include <QWidget>
|
||||
#include "CFilteredResourceModel.h"
|
||||
#include "CResourceSelector.h"
|
||||
|
||||
namespace Ui {
|
||||
class CSelectResourcePanel;
|
||||
}
|
||||
|
||||
class CSelectResourcePanel : public QWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
Ui::CSelectResourcePanel *mpUI;
|
||||
CResourceSelector *mpSelector;
|
||||
|
||||
CFilteredResourceModel mModel;
|
||||
CFilteredResourceProxyModel mProxyModel;
|
||||
|
||||
public:
|
||||
explicit CSelectResourcePanel(CResourceSelector *pSelector);
|
||||
~CSelectResourcePanel();
|
||||
|
||||
public slots:
|
||||
void FocusChanged(QWidget *pOld, QWidget *pNew);
|
||||
void SearchStringChanged(QString SearchString);
|
||||
void ResourceClicked(QModelIndex Index);
|
||||
};
|
||||
|
||||
#endif // CSELECTRESOURCEPANEL_H
|
||||
Reference in New Issue
Block a user