score
Home
Classes
Namespaces
Files
PatternPresenter.hpp
1
#pragma once
2
#include <Process/LayerPresenter.hpp>
3
4
#include <score/command/Dispatchers/SingleOngoingCommandDispatcher.hpp>
5
6
#include <Patternist/PatternModel.hpp>
7
8
#include <nano_observer.hpp>
9
10
namespace
Patternist
11
{
12
class
View;
13
class
Presenter
final
14
:
public
Process::LayerPresenter
15
,
public
Nano::Observer
16
{
17
public
:
18
explicit
Presenter
(
19
const
Patternist::ProcessModel
& model,
View
* view,
const
Process::Context
& ctx,
20
QObject* parent);
21
~
Presenter
()
override
;
22
23
void
setWidth(qreal width, qreal defaultWidth)
override
;
24
void
setHeight(qreal height)
override
;
25
26
void
putToFront()
override
;
27
void
putBehind()
override
;
28
29
void
on_zoomRatioChanged(ZoomRatio)
override
;
30
31
void
parentGeometryChanged()
override
;
32
33
private
:
34
void
on_drop(
const
QPointF& pos,
const
QMimeData& md);
35
View
* m_view{};
36
};
37
}
Patternist::Presenter
Definition:
PatternPresenter.hpp:16
Patternist::ProcessModel
Definition:
PatternModel.hpp:36
Patternist::View
Definition:
PatternView.hpp:21
Process::LayerPresenter
Definition:
LayerPresenter.hpp:34
Process::Context
Definition:
ProcessContext.hpp:12