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/inspector.h
2018-12-25 22:38:26 -05:00

28 lines
544 B
C++

#pragma once
#include <QWidget>
#include <QVBoxLayout>
struct Context;
struct InfoComponent;
struct TransformComponent;
struct MeshComponent;
class Inspector : public QWidget {
Q_OBJECT
public:
Inspector(Context& context, QWidget* parent = nullptr);
private:
void rebuild();
void addInfoInspector(InfoComponent* info);
void addTransformInspector(TransformComponent* transform);
void addMeshInspector(MeshComponent* mesh);
QVBoxLayout* layout = nullptr;
QList<QWidget*> sections;
Context& context;
};