InspectorFactory
InspectorFactory
Factory for creating type-specific inspector widgets. More…
#include <InspectorFactory.hpp>
Public Functions
| Name | |
|---|---|
| std::unique_ptr< BaseInspector > | createInspector(DM_DataType type, std::shared_ptr< DataManager > data_manager, GroupManager * group_manager =[nullptr], QWidget * parent =[nullptr]) Create an inspector for the given data type. |
| bool | hasInspector(DM_DataType type) Check if a data type has a supported inspector. |
Detailed Description
class InspectorFactory;Factory for creating type-specific inspector widgets.
Provides methods to create the appropriate inspector based on data type.
Public Functions Documentation
function createInspector
static std::unique_ptr< BaseInspector > createInspector(
DM_DataType type,
std::shared_ptr< DataManager > data_manager,
GroupManager * group_manager =nullptr,
QWidget * parent =nullptr
)Create an inspector for the given data type.
Parameters:
- type The data type to create an inspector for
- data_manager Shared DataManager for data access
- group_manager Optional GroupManager for group features
- parent Parent widget
Return: Unique pointer to the created inspector, or nullptr if type not supported
The returned inspector implements IDataInspector and can be used with DataInspectorPropertiesWidget.
function hasInspector
static bool hasInspector(
DM_DataType type
)Check if a data type has a supported inspector.
Parameters:
- type The data type to check
Return: true if an inspector exists for this type
Updated on 2026-11-13 at 20:25:40 +0000