2 #include <State/UpdateAddress.hpp>
4 #include <Device/Node/NodeListMimeSerialization.hpp>
6 #include <Process/ProcessContext.hpp>
7 #include <Process/ProcessMimeSerialization.hpp>
9 #include <Curve/Process/CurveProcessPresenter.hpp>
11 #include <Automation/AutomationModel.hpp>
12 #include <Automation/AutomationView.hpp>
13 #include <Automation/Commands/ChangeAddress.hpp>
26 : CurveProcessPresenter{style, layer, view, context, parent}
29 con(layer, &ProcessModel::tweenChanged,
this, &LayerPresenter::on_tweenChanges);
31 connect(m_view, &LayerView::dropReceived,
this, &LayerPresenter::on_dropReceived);
33 on_tweenChanges(layer.tween());
34 con(layer.curve(), &Curve::Model::curveReset,
this,
35 [&] { on_tweenChanges(layer.tween()); });
39 void setFullView()
override { m_curve.setBoundedMove(
false); }
41 void on_tweenChanges(
bool b)
45 if(seg.model().start().x() != 0.)
56 void on_dropReceived(
const QPointF& pos,
const QMimeData& mime)
58 if(
auto addr = State::onUpdatableAddress(model().address(), mime))
63 else if(mime.formats().contains(score::mime::processpreset()))
65 handlePresetDrop(pos, mime);
Definition: score-plugin-automation/Automation/Commands/ChangeAddress.hpp:22
Definition: AutomationPresenter.hpp:20
Definition: AutomationView.hpp:16
Definition: AutomationModel.hpp:36
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
Definition: CurveProcessPresenter.hpp:28
Definition: CurveSegmentView.hpp:26
Namespace related to the Automation process.
Definition: AutomationColors.cpp:8
Definition: CurveStyle.hpp:13
Definition: ProcessContext.hpp:12