SoundPresenter.hpp
1 #pragma once
2 #include <Process/Focus/FocusDispatcher.hpp>
3 #include <Process/LayerPresenter.hpp>
4 
5 #include <Media/Sound/SoundModel.hpp>
6 class QMimeData;
7 namespace Media
8 {
9 namespace Sound
10 {
11 class LayerView;
12 
14 {
15 public:
17  explicit LayerPresenter(
18  const ProcessModel& model, LayerView* view, const Process::Context& ctx,
19  QObject* parent);
20 
21  void setWidth(qreal width, qreal defaultWidth) override;
22  void setHeight(qreal height) override;
23 
24  void putToFront() override;
25  void putBehind() override;
26 
27  void on_zoomRatioChanged(ZoomRatio) override;
28 
29  void parentGeometryChanged() override;
30 
31 private:
32  void updateTempo();
33  void onDrop(const QPointF& p, const QMimeData& mime);
34  LayerView* m_view{};
35  ZoomRatio m_ratio{1};
36 };
37 }
38 }
Definition: SoundPresenter.hpp:14
Definition: SoundView.hpp:23
Definition: SoundModel.hpp:27
Definition: LayerPresenter.hpp:34
Definition: ProcessContext.hpp:12