Loading...
Searching...
No Matches
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
10namespace Patternist
11{
12class View;
13class Presenter final
15 , public Nano::Observer
16{
17public:
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
33private:
34 void on_drop(const QPointF& pos, const QMimeData& md);
35 View* m_view{};
36};
37}
Definition PatternPresenter.hpp:16
Definition PatternModel.hpp:48
Definition PatternView.hpp:21
Definition LayerPresenter.hpp:34
Definition ProcessContext.hpp:12