45 ,
public QGraphicsItem
48 Q_INTERFACES(QGraphicsItem)
52 QGraphicsItem* parent);
56 void setParentDuration(
TimeVal r);
57 void setPlayPercentage(
float f,
TimeVal parent_dur);
59 qreal width()
const noexcept;
64 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
65 E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, dropReceived, pos, arg_2)
69 void geometryChanged() E_SIGNAL(SCORE_LIB_PROCESS_EXPORT, geometryChanged)
88 static const constexpr int Type = QGraphicsItem::UserType + 5000;
89 int type()
const override {
return Type; }
92 void initConnections();
93 void createWithDecorations();
94 void createContentItem();
95 void createFoldedItem();
96 void applyFold(
bool folded);
100 void createWithoutDecorations();
102 void updateZoomRatio() const noexcept;
104 void setSize(QSizeF sz);
107 bool isInSelectionCorner(QPointF f, QRectF r) const;
108 void paint(QPainter* painter, const QStyleOptionGraphicsItem* option, QWidget* widget)
111 void mousePressEvent(QGraphicsSceneMouseEvent* event) override;
112 void mouseMoveEvent(QGraphicsSceneMouseEvent* event) override;
113 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event) override;
114 bool sceneEvent(QEvent* event) override;
115 void contextMenuEvent(QGraphicsSceneContextMenuEvent* event) override;
117 void hoverEnterEvent(QGraphicsSceneHoverEvent* event) override;
118 void hoverMoveEvent(QGraphicsSceneHoverEvent* event) override;
119 void hoverLeaveEvent(QGraphicsSceneHoverEvent* event) override;
121 void dragEnterEvent(QGraphicsSceneDragDropEvent* event) override;
122 void dragMoveEvent(QGraphicsSceneDragDropEvent* event) override;
123 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event) override;
124 void dropEvent(QGraphicsSceneDragDropEvent* event) override;
126 void keyPressEvent(QKeyEvent* event) override;
127 void keyReleaseEvent(QKeyEvent* event) override;
136 QSizeF size() const noexcept;
138 void setSelected(
bool s);
140 void updateTitlePos();
141 QRectF boundingRect() const final override;
145 QRectF contentRect() const noexcept;
148 void updateContentRect();
150 void updateDropCableHighlight();
151 void clearDropCableHighlight();
153 double minimalContentWidth() const noexcept;
154 double minimalContentHeight() const noexcept;
155 static
void paintNode(QPainter* painter,
bool selected,
bool hovered, QRectF rect);
158 QGraphicsItem* m_scriptButton{};
159 QGraphicsItem* m_uiButton{};
160 QGraphicsItem* m_presetButton{};
163 QSizeF m_contentSize{};
164 QRectF m_contentRect{};
169 QGraphicsItem* m_fx{};
173 std::vector<Dataflow::PortItem*> m_inlets, m_outlets;
175 QPointer<Dataflow::CableItem> m_dropCable{};
179 double m_playPercentage{};
181 bool m_hover : 1 {
false};
182 bool m_selected : 1 {
false};
183 bool m_dropping : 1 {};
184 bool m_needResize : 1 {};
185 bool m_folded : 1 {};
Definition TextItem.hpp:28
Definition ProcessContext.hpp:12