Changed resource selector widgets so they can pop up a panel with a list of acceptable resources

This commit is contained in:
Aruki
2017-07-10 15:19:11 -06:00
parent 2348b8514f
commit 581d5f7267
20 changed files with 507 additions and 82 deletions

View 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