2 #include <Process/LayerView.hpp>
4 #include <score/tools/std/Optional.hpp>
5 #include <score/widgets/MimeData.hpp>
10 #include <score_plugin_scenario_export.h>
14 class QGraphicsSceneContextMenuEvent;
15 class QGraphicsSceneDragDropEvent;
16 class QGraphicsSceneMouseEvent;
24 class ScenarioPresenter;
33 void paint_impl(QPainter* painter)
const override;
35 void setSelectionArea(
const QRectF& rect)
41 void drawDragLine(QPointF, QPointF,
const QString&);
42 void stopDrawDragLine();
56 void pressedAsked(
const QPointF& p)
61 void movedAsked(
const QPointF& p);
63 void setSnapLine(std::optional<double>);
66 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
67 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
68 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
69 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
71 void keyPressEvent(QKeyEvent* event)
override;
72 void keyReleaseEvent(QKeyEvent* event)
override;
74 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
75 void dragMoveEvent(QGraphicsSceneDragDropEvent* event)
override;
76 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
77 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
81 QRectF m_selectArea{};
82 QPointF m_previousPoint{};
83 std::optional<QRectF> m_dragLine{};
84 std::optional<double> m_snapLine{};
Definition: LayerView.hpp:21
Definition: ScenarioPresenter.hpp:29
Definition: ScenarioView.hpp:27
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14