2 #include <Process/Dataflow/NodeItem.hpp>
4 #include <Scenario/Application/Drops/ScenarioDropHandler.hpp>
5 #include <Scenario/Document/Interval/IntervalModel.hpp>
6 #include <Scenario/Document/Interval/IntervalPresenter.hpp>
8 #include <score/graphics/RectItem.hpp>
9 #include <score/tools/Bind.hpp>
11 #include <ossia/detail/math.hpp>
13 #include <nano_observer.hpp>
19 ,
public Nano::Observer
29 QGraphicsItem* parent);
33 void on_drop(QPointF pos,
const QMimeData* data);
34 void on_playPercentageChanged(
double t,
TimeVal parent_dur);
38 QRectF enclosingRect()
const noexcept;
40 QGraphicsItem& nodeContainer()
const noexcept {
return *m_container; }
45 void on_zoomRatioChanged(ZoomRatio ratio);
47 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
48 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
49 void dragMoveEvent(QGraphicsSceneDragDropEvent* event)
override;
50 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
52 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
53 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
54 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
55 void contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
override;
59 ItemsToShow m_itemsToShow{};
60 std::vector<Process::NodeItem*> m_nodeItems;
61 QGraphicsItem* m_container{};
62 QPointF m_pressedPos{};
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Definition: IntervalModel.hpp:50
Definition: NodalIntervalView.hpp:20
Definition: RectItem.hpp:64
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Definition: ProcessContext.hpp:12
Definition: TimeValue.hpp:21