3 #include <QGraphicsItem>
7 #include <score_plugin_curve_export.h>
11 class QGraphicsSceneContextMenuEvent;
12 class QGraphicsSceneMouseEvent;
15 class QStyleOptionGraphicsItem;
20 class SCORE_PLUGIN_CURVE_EXPORT
View final
22 ,
public QGraphicsItem
25 Q_INTERFACES(QGraphicsItem)
27 explicit View(QGraphicsItem* parent) noexcept;
30 void setDefaultWidth(
double w) noexcept;
31 void setRect(
const QRectF& theRect) noexcept;
32 QRectF boundingRect()
const override;
34 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
37 void setSelectionArea(
const QRectF&) noexcept;
38 QPixmap pixmap() noexcept;
40 void setValueTooltip(QPointF pos,
const QString&) noexcept;
43 void pressed(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, pressed, arg_1)
44 void moved(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, moved, arg_1)
45 void released(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, released, arg_1)
46 void doubleClick(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, doubleClick, arg_1)
48 void escPressed() E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, escPressed)
50 void keyPressed(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyPressed, arg_1)
51 void keyReleased(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyReleased, arg_1)
53 void contextMenuRequested(
const QPoint& arg_1,
const QPointF& arg_2)
54 E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, contextMenuRequested, arg_1, arg_2)
57 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
58 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
59 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
60 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
62 void keyPressEvent(QKeyEvent* ev)
override;
63 void keyReleaseEvent(QKeyEvent* ev)
override;
65 void contextMenuEvent(QGraphicsSceneContextMenuEvent*)
override;
Definition: CurveView.hpp:23
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12