30 lines
612 B
C++
30 lines
612 B
C++
#pragma once
|
|
|
|
#include <QWidget>
|
|
#include <QVBoxLayout>
|
|
|
|
struct Context;
|
|
struct InfoComponent;
|
|
struct TransformComponent;
|
|
struct MeshComponent;
|
|
struct LightComponent;
|
|
|
|
class Properties : public QWidget {
|
|
Q_OBJECT
|
|
public:
|
|
Properties(Context& context, QWidget* parent = nullptr);
|
|
|
|
private:
|
|
void rebuild();
|
|
|
|
void addInfoSection(InfoComponent* info);
|
|
void addTransformSection(TransformComponent* transform);
|
|
void addMeshSection(MeshComponent* mesh);
|
|
void addLightSection(LightComponent* light);
|
|
|
|
QVBoxLayout* layout = nullptr;
|
|
|
|
QList<QWidget*> sections;
|
|
|
|
Context& context;
|
|
};
|