Loading...
Searching...
No Matches
plugins/score-plugin-nodal/Nodal/Presenter.hpp
1#pragma once
2#include <Process/Dataflow/NodeItem.hpp>
3#include <Process/Focus/FocusDispatcher.hpp>
4#include <Process/LayerPresenter.hpp>
5#include <Process/ZoomHelper.hpp>
6
7#include <Nodal/Process.hpp>
8
9#include <score/model/Identifier.hpp>
10
11#include <QRectF>
12
13namespace Nodal
14{
15class Model;
16class View;
17class Presenter final
19 , public Nano::Observer
20{
21public:
22 explicit Presenter(
23 const Model& model, View* view, const Process::Context& ctx, QObject* parent);
24 ~Presenter();
25
26 void setWidth(qreal width, qreal defaultWidth) override;
27 void setHeight(qreal height) override;
28
29 void putToFront() override;
30 void putBehind() override;
31
32 void on_zoomRatioChanged(ZoomRatio) override;
33
34 void parentGeometryChanged() override;
35
36 void on_created(Process::ProcessModel& n);
37 void on_removing(const Process::ProcessModel& n);
38 void on_drop(const QPointF& pos, const QMimeData& mime);
39 void on_areaSelect(QRectF rect, bool cumulation);
40
41private:
43
44 const Model& m_model;
45 qreal m_defaultW{};
46 ZoomRatio m_ratio{1.};
47 View* m_view{};
48};
49}
A map to access child objects through their id.
Definition IdentifiedObjectMap.hpp:16
Definition score-plugin-nodal/Nodal/Process.hpp:14
Definition plugins/score-plugin-nodal/Nodal/Presenter.hpp:20
Definition score-plugin-nodal/Nodal/View.hpp:16
Definition LayerPresenter.hpp:34
The Process class.
Definition score-lib-process/Process/Process.hpp:62
Definition ProcessContext.hpp:12