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
2018-12-25 23:04:32 -05:00

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;
};