28 lines
544 B
C++
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;
|
|
};
|