Physics Simulation & Visualization Tool 0.1
A C++ physics simulation engine with real-time 3D visualization
Loading...
Searching...
No Matches
GlobalsInspectorWidget.h
Go to the documentation of this file.
1#pragma once
2#include <vector>
3#include <QFormLayout>
4#include "IInspectorSection.h"
5#include "InspectorRow.h"
6
7class SceneManager;
8class ScalarWidget;
9
11 Q_OBJECT
12public:
13 explicit GlobalsInspectorWidget(SceneManager* mgr, QWidget* parent = nullptr);
14
15 void load(SceneObject* object) override;
16 void unload() override;
17 void refresh() override;
18
19 // Specific accessors
20 ScalarWidget* getTimeConstraintWidget() const { return timeConstraint; }
21
22 signals:
24
25 public slots:
26 void runSolver();
27
28private:
29 SceneManager* sceneManager;
30 QFormLayout* layout;
31 std::vector<InspectorRow> rows;
32
33 ScalarWidget* timeConstraint = nullptr;
34
35 void createUiComponents();
36 void createStopConditionUi();
37};
Interface for inspector panel sections in the editor UI.
void load(SceneObject *object) override
Loads and binds this section to a scene object.
ScalarWidget * getTimeConstraintWidget() const
void refresh() override
Updates UI widgets from the current object's state.
void unload() override
Unloads the current object and clears section state.
Abstract base class for inspector panel sections.