2 #include <Process/Dataflow/Port.hpp>
3 #include <Process/Focus/FocusDispatcher.hpp>
4 #include <Process/LayerPresenter.hpp>
6 #include <Curve/CurveView.hpp>
7 #include <Curve/Process/CurveProcessPresenter.hpp>
9 #include <Scenario/Document/Tempo/TempoProcess.hpp>
22 ItemClipsToShape | ItemClipsChildrenToShape | ItemIsSelectable
27 void setCurveView(
Curve::View* view) { m_curveView = view; }
31 QPixmap pixmap() noexcept
override
34 return m_curveView->pixmap();
39 void paint_impl(QPainter* painter)
const override { }
40 void dropEvent(QGraphicsSceneDragDropEvent* event)
override
43 dropReceived(event->pos(), *event->mimeData());
55 : CurveProcessPresenter{style, layer, view, context, parent}
58 for(
int i = 0; i < 2; i++)
60 QObject::connect(layer.inlets()[i], &Process::Inlet::addressChanged,
this, [
this] {
64 QObject::connect(layer.inlets()[i], &Process::Inlet::cablesChanged,
this, [
this] {
70 void setFullView()
override { m_curve.setBoundedMove(
false); }
73 void disableIfNeeded()
75 bool should_disable{
false};
78 for(
int i = 0; i < 2; i++)
80 const auto inlet{m_process.inlets()[i]};
82 if(inlet->address().isSet() || !inlet->cables().empty())
83 should_disable =
true;
Definition: CurveProcessPresenter.hpp:28
Definition: CurveView.hpp:25
Definition: LayerView.hpp:21
Definition: TempoView.hpp:50
Definition: TempoView.hpp:15
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: CurveStyle.hpp:13
Definition: ProcessContext.hpp:12