Archived
1
Fork 0
This repository has been archived on 2025-04-12. You can view files and clone it, but cannot push or open issues or pull requests.
graphite/editor/include/objectselectiondialog.h
2024-01-03 16:05:02 -05:00

33 lines
No EOL
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;
};