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

33 lines
673 B
C++

#pragma once
#include <QWidget>
#include <QVBoxLayout>
#include <QPushButton>
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;
QPushButton* addComponentButton;
QList<QWidget*> sections;
Context& context;
};