plugins/score-plugin-spline/Spline/Presenter.hpp
1 #pragma once
2 #include <Device/Address/AddressSettings.hpp>
3 
4 #include <Process/LayerPresenter.hpp>
5 
6 #include <score/model/path/PathSerialization.hpp>
7 
8 #include <Spline/Commands.hpp>
9 #include <Spline/Model.hpp>
10 
11 namespace Spline
12 {
13 
14 class View;
15 class Presenter final : public Process::LayerPresenter
16 {
17 public:
18  explicit Presenter(
19  const Spline::ProcessModel& model, Spline::View* view, const Process::Context& ctx,
20  QObject* parent);
21 
22  void setWidth(qreal width, qreal defaultWidth) override;
23  void setHeight(qreal height) override;
24 
25  void putToFront() override;
26  void putBehind() override;
27 
28  void on_zoomRatioChanged(ZoomRatio) override;
29 
30  void parentGeometryChanged() override;
31 
32 private:
33  View* m_view{};
34 };
35 }
Definition: LayerPresenter.hpp:34
Definition: plugins/score-plugin-spline/Spline/Presenter.hpp:16
Definition: score-plugin-spline/Spline/Model.hpp:19
Definition: score-plugin-spline/Spline/View.hpp:16
Definition: ProcessContext.hpp:12