2 #include <Scenario/Document/Interval/IntervalHeader.hpp>
4 #include <score/graphics/GraphicWidgets.hpp>
5 #include <score/graphics/ItemBounder.hpp>
6 #include <score/widgets/MimeData.hpp>
8 #include <ossia/detail/optional.hpp>
11 #include <qnamespace.h>
15 class QGraphicsSceneMouseEvent;
17 class QStyleOptionGraphicsItem;
22 class TemporalIntervalPresenter;
30 QRectF boundingRect()
const override;
31 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
35 void setSelected(
bool b);
36 void setExecuting(
bool b);
37 void setLabel(
const QString& label);
40 void doubleClicked() W_SIGNAL(doubleClicked);
42 void intervalHoverEnter() W_SIGNAL(intervalHoverEnter);
43 void intervalHoverLeave() W_SIGNAL(intervalHoverLeave);
44 void dropReceived(
const QPointF& pos,
const QMimeData& arg_2)
45 W_SIGNAL(dropReceived, pos, arg_2);
48 void hoverEnterEvent(QGraphicsSceneHoverEvent* h)
override;
49 void hoverLeaveEvent(QGraphicsSceneHoverEvent* h)
override;
50 void dragEnterEvent(QGraphicsSceneDragDropEvent* event)
override;
51 void dragLeaveEvent(QGraphicsSceneDragDropEvent* event)
override;
52 void dropEvent(QGraphicsSceneDragDropEvent* event)
override;
54 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
57 void updateShape() noexcept;
58 void setState(IntervalHeader::State s)
override;
59 void on_textChanged()
override;
60 bool contains(
const QPointF& point)
const override;
61 QPainterPath shape()
const override;
65 QRectF m_textRectCache;
Definition: TemporalIntervalPresenter.hpp:25
Definition: ItemBounder.hpp:10
Definition: QGraphicsPixmapToggle.hpp:18
Definition: QGraphicsSelectablePixmapToggle.hpp:20
Definition: QGraphicsSlider.hpp:17
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14