19 return Model_T::static_concreteKey();
24 return score::deserialize_dyn(vis, [&](
auto&& deserializer) {
25 return new Model_T{deserializer, parent};
29 void setupInletInspector(
33 auto& ctrl =
const_cast<Model_T&
>(
static_cast<const Model_T&
>(port));
34 auto widg = Widget::make_widget(ctrl, ctx, parent, parent);
37 Process::PortWidgetSetup::setupControl(ctrl, widg, ctx, lay, parent);
41 auto item = makeControlItem(ctrl, ctx,
nullptr, context);
42 auto widg = makeGraphicsViewForInspectorItem(item, parent);
43 Process::PortWidgetSetup::setupControl(ctrl, widg, ctx, lay, parent);
47 QGraphicsItem* makeControlItem(
49 QGraphicsItem* parent, QObject* context)
override
51 auto& ctrl =
static_cast<Model_T&
>(port);
52 return Widget::make_item(ctrl, ctrl, ctx,
nullptr, context);
57 return Widget::layout();
72 return score::deserialize_dyn(vis, [&](
auto&& deserializer) {
73 return new Model_T{deserializer, parent};
77 void setupOutletInspector(
81 auto& ctrl =
static_cast<const Model_T&
>(port);
82 auto widg = Widget::make_widget(ctrl, ctx, parent, parent);
83 Process::PortWidgetSetup::setupControl(ctrl, widg, ctx, lay, parent);
86 QGraphicsItem* makeControlItem(
88 QGraphicsItem* parent, QObject* context)
override
90 auto& ctrl =
static_cast<Model_T&
>(port);
91 return Widget::make_item(ctrl, ctrl, ctx,
nullptr, context);
96 return Widget::layout();
Definition DocumentContext.hpp:18