3 #include <QGraphicsItem>
7 #include <score_plugin_curve_export.h>
11 class QGraphicsSceneContextMenuEvent;
12 class QGraphicsSceneMouseEvent;
15 class QStyleOptionGraphicsItem;
22 class SCORE_PLUGIN_CURVE_EXPORT
View final
24 ,
public QGraphicsItem
27 Q_INTERFACES(QGraphicsItem)
29 explicit View(QGraphicsItem* parent) noexcept;
33 void setDirectDraw(
bool) noexcept;
34 void setDefaultWidth(
double w) noexcept;
35 void setRect(
const QRectF& theRect) noexcept;
36 QRectF boundingRect()
const override;
38 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
41 void setSelectionArea(
const QRectF&) noexcept;
42 QPixmap pixmap() noexcept;
44 void setValueTooltip(QPointF pos,
const QString&) noexcept;
47 void pressed(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, pressed, arg_1)
48 void moved(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, moved, arg_1)
49 void released(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, released, arg_1)
50 void doubleClick(QPointF arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, doubleClick, arg_1)
52 void escPressed() E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, escPressed)
54 void keyPressed(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyPressed, arg_1)
55 void keyReleased(
int arg_1) E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, keyReleased, arg_1)
57 void contextMenuRequested(
const QPoint& arg_1,
const QPointF& arg_2)
58 E_SIGNAL(SCORE_PLUGIN_CURVE_EXPORT, contextMenuRequested, arg_1, arg_2)
61 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
62 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
63 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
64 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
66 void keyPressEvent(QKeyEvent* ev)
override;
67 void keyReleaseEvent(QKeyEvent* ev)
override;
69 void contextMenuEvent(QGraphicsSceneContextMenuEvent*)
override;
71 void drawAllPoints(QPainter* painter);
72 void drawOptimized(QPainter* painter);
81 bool m_directDraw{
false};
Definition: CurveModel.hpp:25
Definition: CurvePresenter.hpp:32
Definition: CurveView.hpp:25
Utilities and base classes for 1D curves.
Definition: FocusDispatcher.hpp:12