![]() |
NDEVR
API Documentation
|
Manages the creation and lookup of DesignObjectDialog instances for design objects. More...
Public Member Functions | |
| DesignObjectDialogLookup (QTModelManager *model_manager) | |
| Constructs a DesignObjectDialogLookup with the given model manager. | |
| virtual DesignObjectDialog * | createDesignObjectDialog (const DynamicPointer< QTDesignObject > &object, const ShowPropertiesSettings &settings) |
| Creates a new DesignObjectDialog for the given object and settings. | |
| void | setDropArea (const std::function< DropArea(const QCustomDockWidget *dock_widget)> &drop_area) |
| Sets the callback that determines the drop area for a dock widget. | |
| void | setReference (const std::function< SectionWidget *(const QCustomDockWidget *dock_widget)> &drop_area) |
| Sets the callback that determines the reference section widget for docking. | |
| virtual DockWidget< DesignObjectDialog > * | setupDesignDock (const ShowPropertiesSettings &settings, ContainerWidgetBase *container) |
| Creates or retrieves a docked DesignObjectDialog for the given settings. | |
| virtual DockWidget< DesignObjectDialog > * | showModelProperties (const ShowPropertiesSettings &settings, ContainerWidgetBase *container) |
| Called when we want to show the dialog for editing a specific object using application default editing dialogs. | |
| void | updateLayout (ContainerWidgetBase *container) |
| Updates the layout of all managed dialog dock widgets within the container. | |
Manages the creation and lookup of DesignObjectDialog instances for design objects.
Tracks which dialogs are currently shown and reuses or creates dock widgets as needed when the user requests to view or edit object properties.
Definition at line 17 of file DesignObjectDialogLookup.h.
| DesignObjectDialogLookup::DesignObjectDialogLookup | ( | QTModelManager * | model_manager | ) |
Constructs a DesignObjectDialogLookup with the given model manager.
| [in] | model_manager | The model manager providing scene data and object access. |
|
virtual |
Creates a new DesignObjectDialog for the given object and settings.
| [in] | object | The target design object. |
| [in] | settings | The property display settings. |
|
inline |
Sets the callback that determines the drop area for a dock widget.
| [in] | drop_area | A function returning the DropArea for a given dock widget. |
Definition at line 52 of file DesignObjectDialogLookup.h.
|
inline |
Sets the callback that determines the reference section widget for docking.
| [in] | drop_area | A function returning the SectionWidget reference for a given dock widget. |
Definition at line 57 of file DesignObjectDialogLookup.h.
|
virtual |
Creates or retrieves a docked DesignObjectDialog for the given settings.
| [in] | settings | The property display settings. |
| [in] | container | The container widget to dock the dialog into. |
|
virtual |
Called when we want to show the dialog for editing a specific object using application default editing dialogs.
This can be called for creating new objects, editing existing objects, etc based on the provided settings
| [in] | settings | - The information used to generate the editing dialog |
| [in] | container | The container widget to dock the dialog into. |
| void DesignObjectDialogLookup::updateLayout | ( | ContainerWidgetBase * | container | ) |
Updates the layout of all managed dialog dock widgets within the container.
| [in] | container | The container widget to update layouts in. |