Inspector::InspectorWidgetFactory Class Referenceabstract

The InspectorWidgetFactoryInterface class. More...

Inheritance diagram for Inspector::InspectorWidgetFactory:
score::InterfaceBase Automation::PointInspectorFactory Automation::StateInspectorFactory Dataflow::CableInspectorFactory Dataflow::InletInspectorFactory Dataflow::OutletInspectorFactory Interpolation::StateInspectorFactory Process::InspectorWidgetDelegateFactory Scenario::IntervalInspectorFactory Scenario::ScenarioInspectorWidgetFactoryWrapper Scenario::TempoPointInspectorFactory

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()

virtual QWidget* Inspector::InspectorWidgetFactory::make ( const InspectedObjects &  sourceElement,
const score::DocumentContext doc,
QWidget *  parent 
) const
pure virtual

The documentation for this class was generated from the following files: