CommentBlockPresenter.hpp
1 #pragma once
2 
3 #include <Process/TimeValue.hpp>
4 
5 #include <score/graphics/GraphicsItem.hpp>
6 #include <score/model/Identifier.hpp>
7 
8 #include <QObject>
9 #include <QPoint>
10 
11 #include <score_plugin_scenario_export.h>
12 
13 #include <verdigris>
14 
15 class QGraphicsItem;
16 class QTextDocument;
17 
18 namespace Scenario
19 {
20 class CommentBlockView;
21 class CommentBlockModel;
22 class SCORE_PLUGIN_SCENARIO_EXPORT CommentBlockPresenter final : public QObject
23 {
24  W_OBJECT(CommentBlockPresenter)
25 public:
27  const CommentBlockModel& model, QGraphicsItem* parentView, QObject* parent);
28 
30 
31  const Id<CommentBlockModel>& id() const;
32  int32_t id_val() const { return id().val(); }
33 
34  const CommentBlockModel& model() const { return m_model; }
35 
36  CommentBlockView* view() const { return m_view; }
37 
38  const TimeVal& date() const;
39 
40  void on_zoomRatioChanged(ZoomRatio newRatio);
41 
42 public:
43  void moved(const QPointF& arg_1) W_SIGNAL(moved, arg_1);
44  void released(const QPointF& arg_1) W_SIGNAL(released, arg_1);
45  void selected() W_SIGNAL(selected);
46  void editFinished(QString arg_1) W_SIGNAL(editFinished, arg_1);
47 
48 private:
49  const CommentBlockModel& m_model;
51 };
52 }
Definition: CommentBlockModel.hpp:25
Definition: CommentBlockPresenter.hpp:23
Definition: CommentBlockView.hpp:20
The id_base_t class.
Definition: Identifier.hpp:57
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: TimeValue.hpp:21
Definition: GraphicsItem.hpp:41