The InspectorWidgetFactoryInterface class. More...
Detailed Description
The InspectorWidgetFactoryInterface class.
This class has to be registered in the inspector for each plug-in that provides it.
When an object in the Document is selected, the pointer to the object is sent to the inspector using the signal-slot mechanism. The factory can then make a widget from the QObject, which can be displayed in the inspector.
Public Types | |
using | InspectedObjects = QList< const IdentifiedObjectAbstract * > |
Public Member Functions | |
virtual QWidget * | make (const InspectedObjects &sourceElement, const score::DocumentContext &doc, QWidget *parent) const =0 |
makeWidget Makes a widget for the inspector from an object More... | |
virtual bool | update (QWidget *cur, const InspectedObjects &obj) const |
virtual bool | matches (const InspectedObjects &objects) const =0 |
Public Member Functions inherited from score::InterfaceBase | |
virtual InterfaceKey | interfaceKey () const noexcept=0 |
Identifies an interface uniquely. | |
Static Public Attributes | |
static constexpr const bool | ui_interface = true |
Member Function Documentation
◆ make()
|
pure virtual |
makeWidget Makes a widget for the inspector from an object
- Parameters
-
sourceElement Element from which an inspector widget is to be made
- Returns
- An inspector widget corresponding to the object.
Implemented in Scenario::ScenarioInspectorWidgetFactoryWrapper, Scenario::IntervalInspectorFactory, Interpolation::StateInspectorFactory, Scenario::TempoPointInspectorFactory, Dataflow::OutletInspectorFactory, Dataflow::InletInspectorFactory, Dataflow::CableInspectorFactory, Automation::PointInspectorFactory, Automation::StateInspectorFactory, and Process::InspectorWidgetDelegateFactory.
The documentation for this class was generated from the following files:
- InspectorWidgetFactoryInterface.hpp
- InspectorWidgetFactoryInterface.cpp