2 #include <State/UpdateAddress.hpp>
4 #include <Device/Node/NodeListMimeSerialization.hpp>
6 #include <Curve/CurveStyle.hpp>
7 #include <Curve/Process/CurveProcessPresenter.hpp>
9 #include <Interpolation/Commands/ChangeAddress.hpp>
10 #include <Interpolation/InterpolationProcess.hpp>
11 #include <Interpolation/InterpolationView.hpp>
15 namespace Interpolation
24 : CurveProcessPresenter{style, layer, view, context, parent}
26 con(layer, &ProcessModel::tweenChanged,
this, &Presenter::on_tweenChanges);
27 connect(m_view, &View::dropReceived,
this, &Presenter::on_dropReceived);
29 on_tweenChanges(layer.tween());
30 con(layer.curve(), &Curve::Model::curveReset,
this,
31 [&] { on_tweenChanges(layer.tween()); });
35 void setFullView()
override { m_curve.setBoundedMove(
false); }
37 void on_tweenChanges(
bool b)
41 if(seg.model().start().x() != 0.)
52 void on_dropReceived(
const QPointF&,
const QMimeData& mime)
54 if(
auto newAddr = State::onUpdatableAddress(model().address(), mime))
57 ChangeInterpolationAddress(model(), std::move(*newAddr), disp);
The CommandDispatcher class.
Definition: CommandDispatcher.hpp:13
Definition: CurveProcessPresenter.hpp:28
Definition: CurveSegmentView.hpp:26
Definition: InterpolationPresenter.hpp:18
Definition: InterpolationView.hpp:11
Definition: CurveStyle.hpp:13
Definition: ProcessContext.hpp:12