#pragma once #include #include struct Context; struct InfoComponent; struct TransformComponent; struct MeshComponent; struct LightComponent; 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); void addLightInspector(LightComponent* light); QVBoxLayout* layout = nullptr; QList sections; Context& context; };