#pragma once #include #include 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 sections; Context& context; };