score
Home
Classes
Namespaces
Files
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
13
class
LayerPresenter
final :
public
Process::LayerPresenter
14
{
15
public
:
16
using
model_type
=
const
Media::Sound::ProcessModel
;
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
}
Media::Sound::LayerPresenter
Definition:
SoundPresenter.hpp:14
Media::Sound::LayerView
Definition:
SoundView.hpp:23
Media::Sound::ProcessModel
Definition:
SoundModel.hpp:27
Process::LayerPresenter
Definition:
LayerPresenter.hpp:34
Process::Context
Definition:
ProcessContext.hpp:12