3 #include <Process/TimeValue.hpp>
5 #include <QGraphicsItem>
7 #include <score_plugin_scenario_export.h>
13 class SCORE_PLUGIN_SCENARIO_EXPORT
Minimap final
15 ,
public QGraphicsItem
18 Q_INTERFACES(QGraphicsItem)
21 void setWidth(
double);
22 double width()
const {
return m_width; }
23 double leftHandle()
const {
return m_leftHandle; }
24 double rightHandle()
const {
return m_rightHandle; }
27 void setMinDistance(
double);
28 void setLeftHandle(
double);
29 void setRightHandle(
double);
30 void setHandles(
double l,
double r);
33 void modifyHandles(
double l,
double r);
36 void restoreHandles(
double l,
double r);
44 void rescale() W_SIGNAL(rescale);
45 void visibleRectChanged(
double l,
double r) W_SIGNAL(visibleRectChanged, l, r);
48 QRectF boundingRect()
const override;
49 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
52 void mousePressEvent(QGraphicsSceneMouseEvent*)
override;
53 void mouseMoveEvent(QGraphicsSceneMouseEvent*)
override;
54 void mouseReleaseEvent(QGraphicsSceneMouseEvent*)
override;
55 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*)
final override;
57 void hoverEnterEvent(QGraphicsSceneHoverEvent*)
override;
58 void hoverMoveEvent(QGraphicsSceneHoverEvent*)
override;
59 void hoverLeaveEvent(QGraphicsSceneHoverEvent*)
override;
61 static const constexpr
double m_height{20.};
63 QGraphicsView* m_viewport{};
64 double m_leftHandle{};
65 double m_rightHandle{};
67 double m_minDist{10.};
70 double m_relativeStartX{};
72 bool m_gripLeft{
false};
73 bool m_gripRight{
false};
74 bool m_gripMid{
false};
75 bool m_setCursor{
false};
Definition: Minimap.hpp:16
Main plug-in of score.
Definition: score-plugin-dataflow/Dataflow/PortItem.hpp:14