NDEVR
API Documentation
DesignObjectDialogLookup.h
1#pragma once
2#include <NDEVR/Dictionary.h>
3#include <NDEVR/UUID.h>
4#include <NDEVR/DockWidget.h>
5#include <NDEVR/DesignObjectDialog.h>
6#include <QPointer>
7#include <functional>
8namespace NDEVR
9{
17 class DesignObjectDialogLookup : public QObject
18 {
19 public:
52 void setDropArea(const std::function<DropArea(const QCustomDockWidget* dock_widget)>& drop_area) { m_drop_area = drop_area; };
57 void setReference(const std::function<SectionWidget*(const QCustomDockWidget* dock_widget)>& drop_area) { m_drop_reference = drop_area; };
63 private:
64 std::function<DropArea(const QCustomDockWidget* dock_widget)> m_drop_area;
65 std::function<SectionWidget*(const QCustomDockWidget* dock_widget)> m_drop_reference;
68 QTModelManager* m_model_manager;
69 };
70}
The root class that manages a series of SectionContent that can share the same space or lay out in va...
void setDropArea(const std::function< DropArea(const QCustomDockWidget *dock_widget)> &drop_area)
Sets the callback that determines the drop area for a dock widget.
DesignObjectDialogLookup(QTModelManager *model_manager)
Constructs a DesignObjectDialogLookup with the given model manager.
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 editin...
virtual DesignObjectDialog * createDesignObjectDialog(const DynamicPointer< QTDesignObject > &object, const ShowPropertiesSettings &settings)
Creates a new DesignObjectDialog for the given object and settings.
virtual DockWidget< DesignObjectDialog > * setupDesignDock(const ShowPropertiesSettings &settings, ContainerWidgetBase *container)
Creates or retrieves a docked DesignObjectDialog for the given settings.
void setReference(const std::function< SectionWidget *(const QCustomDockWidget *dock_widget)> &drop_area)
Sets the callback that determines the reference section widget for docking.
void updateLayout(ContainerWidgetBase *container)
Updates the layout of all managed dialog dock widgets within the container.
A popup dialog for showing options or information to the user for a particular DesignObject.
A hash-based key-value store, useful for quick associative lookups.
Definition Dictionary.h:64
A type-safe dock widget that wraps a specific widget type.
Provides a modifiable pointer that has shared ownership of a dynamically allocated object.
Definition Pointer.hpp:356
Provides a wrapper for a widget that can be docked inside a Container or floated as a top-level windo...
A wrapper around DesignObjectLookup that provides signal and slot functionality and adds rendering ca...
SectionWidget manages multiple instances of SectionContent.
The primary namespace for the NDEVR SDK.
DropArea
relates where a widget should be dropped relative to another.
Definition RibbonArea.h:46
Stores settings for setting up and displaying a DesignObjectDialog such as whether the dialog is part...