2 #include <Scenario/Document/ScenarioDocument/ScenarioDocumentViewConstants.hpp>
4 #include <QGraphicsItem>
6 class QGraphicsSceneMouseEvent;
13 ,
public QGraphicsItem
23 using QGraphicsItem::QGraphicsItem;
25 static const constexpr
int Type = ItemType::IntervalHeader;
26 int type()
const final override {
return Type; }
28 void setIntervalView(
IntervalView* view) { m_view = view; }
29 IntervalView* intervalView()
const noexcept {
return m_view; }
30 static constexpr
double headerHeight() {
return IntervalHeaderHeight; }
32 void setWidth(
double width);
33 virtual void setState(
State s) = 0;
34 State state()
const noexcept {
return m_state; }
36 virtual void on_textChanged() { }
39 void mousePressEvent(QGraphicsSceneMouseEvent* event)
final override;
40 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
final override;
41 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
final override;
Definition: IntervalView.hpp:34
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14
Utilities for OSSIA data structures.
Definition: DeviceInterface.hpp:33