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.
graph/tools/leveleditor/include/properties.h

34 lines
673 B
C
Raw Normal View History

2018-12-25 22:38:26 -05:00
#pragma once
#include <QWidget>
#include <QVBoxLayout>
2018-12-26 07:13:03 -05:00
#include <QPushButton>
2018-12-25 22:38:26 -05:00
struct Context;
struct InfoComponent;
struct TransformComponent;
struct MeshComponent;
2018-12-25 22:51:26 -05:00
struct LightComponent;
2018-12-25 22:38:26 -05:00
2018-12-25 23:04:32 -05:00
class Properties : public QWidget {
2018-12-25 22:38:26 -05:00
Q_OBJECT
public:
2018-12-25 23:04:32 -05:00
Properties(Context& context, QWidget* parent = nullptr);
2018-12-25 22:38:26 -05:00
private:
void rebuild();
2018-12-25 23:04:32 -05:00
void addInfoSection(InfoComponent* info);
void addTransformSection(TransformComponent* transform);
void addMeshSection(MeshComponent* mesh);
void addLightSection(LightComponent* light);
2018-12-25 22:38:26 -05:00
QVBoxLayout* layout = nullptr;
2018-12-26 07:13:03 -05:00
QPushButton* addComponentButton;
2018-12-25 22:38:26 -05:00
QList<QWidget*> sections;
Context& context;
};