33 lines
581 B
C
33 lines
581 B
C
|
#pragma once
|
||
|
|
||
|
#include <QDialog>
|
||
|
#include <QVBoxLayout>
|
||
|
#include <QFrame>
|
||
|
#include <QScrollArea>
|
||
|
|
||
|
enum ObjectSelectionType
|
||
|
{
|
||
|
Select_Mesh,
|
||
|
Select_Material,
|
||
|
Select_Texture,
|
||
|
Select_Map,
|
||
|
Select_Entity,
|
||
|
Select_Cubemap
|
||
|
};
|
||
|
|
||
|
class ObjectSelectionDialog : public QDialog
|
||
|
{
|
||
|
Q_OBJECT
|
||
|
public:
|
||
|
ObjectSelectionDialog(ObjectSelectionType type, int& ref);
|
||
|
|
||
|
private:
|
||
|
void AddToList(const std::string& name, int id);
|
||
|
|
||
|
int& m_reference;
|
||
|
QVBoxLayout* m_itemsLayout;
|
||
|
QFrame* m_itemsContainer;
|
||
|
QScrollArea* m_scrollArea;
|
||
|
|
||
|
QVBoxLayout* m_layout;
|
||
|
};
|