2 #include <Process/Dataflow/PortFactory.hpp>
3 #include <Process/Dataflow/PortListWidget.hpp>
5 #include <Dataflow/PortItem.hpp>
6 #include <Inspector/InspectorLayout.hpp>
8 #include <score/application/GUIApplicationContext.hpp>
9 #include <score/document/DocumentContext.hpp>
22 lay->addRow(port.name(), (QWidget*)
nullptr);
25 auto fact = pf.
get(port.concreteKey());
28 fact->setupInletInspector(port, ctx,
this, *lay,
this);
32 Process::PortWidgetSetup::setupAlone(port, ctx, *lay,
this);
40 lay->addRow(port.name(), (QWidget*)
nullptr);
43 auto fact = pf.
get(port.concreteKey());
46 fact->setupOutletInspector(port, ctx,
this, *lay,
this);
50 Process::PortWidgetSetup::setupAlone(port, ctx, *lay,
this);
58 SCORE_CONCRETE(
"1e7166bb-278a-49ce-b6a9-d662b8cd8dd2")
61 : InspectorWidgetFactory{}
67 QWidget* parent)
const override
70 doc, safe_cast<const Process::Inlet&>(*sourceElements.first()), parent};
73 bool matches(
const InspectedObjects& objects)
const override
75 return qobject_cast<const Process::Inlet*>(objects.first());
81 SCORE_CONCRETE(
"2479a7a1-8dbc-49d5-a146-3d29d5106cba")
85 : InspectorWidgetFactory{}
91 QWidget* parent)
const override
94 doc, safe_cast<const Process::Outlet&>(*sourceElements.first()), parent};
97 bool matches(
const InspectedObjects& objects)
const override
99 return qobject_cast<const Process::Outlet*>(objects.first());
Definition: PortInspectorFactory.hpp:57
QWidget * make(const InspectedObjects &sourceElements, const score::DocumentContext &doc, QWidget *parent) const override
makeWidget Makes a widget for the inspector from an object
Definition: PortInspectorFactory.hpp:65
Definition: PortInspectorFactory.hpp:80
QWidget * make(const InspectedObjects &sourceElements, const score::DocumentContext &doc, QWidget *parent) const override
makeWidget Makes a widget for the inspector from an object
Definition: PortInspectorFactory.hpp:89
Definition: lib/score/widgets/Layout.hpp:29
Definition: PortFactory.hpp:74
FactoryType * get(const key_type &k) const noexcept
Get a particular factory from its ConcreteKey.
Definition: InterfaceList.hpp:123
Definition: ObjectMatches.hpp:6
const T & interfaces() const
Access to a specific interface list.
Definition: ApplicationContext.hpp:67
Definition: DocumentContext.hpp:18