2 #include <Process/Dataflow/Cable.hpp>
3 #include <Process/Dataflow/Port.hpp>
5 #include <ossia/detail/ptr_set.hpp>
7 #include <QGraphicsItem>
25 ,
public QGraphicsItem
28 Q_INTERFACES(QGraphicsItem)
31 static bool g_cables_enabled;
34 QGraphicsItem* parent =
nullptr);
39 static const constexpr
int Type = QGraphicsItem::UserType + 9999;
40 int type()
const final override {
return Type; }
50 void removeRequested() E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, removeRequested)
53 QRectF boundingRect()
const override;
54 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
56 QPainterPath shape()
const override;
57 QPainterPath opaqueArea()
const override;
58 bool contains(
const QPointF& point)
const override;
59 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
60 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
61 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
62 void keyPressEvent(QKeyEvent* event)
override;
63 void keyReleaseEvent(QKeyEvent* event)
override;
67 QPointer<PortItem> m_p1, m_p2;
69 Process::PortType m_type{};
Definition: CableItem.hpp:26
Definition: score-lib-process/Process/Dataflow/PortItem.hpp:39
The id_base_t class.
Definition: Identifier.hpp:57
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ProcessContext.hpp:12