2 #include <score/graphics/widgets/Constants.hpp>
4 #include <QGraphicsItem>
7 #include <score_lib_base_export.h>
15 ,
public QGraphicsItem
18 SCORE_GRAPHICS_ITEM_TYPE(90)
24 QRectF m_rect{defaultKnobSize};
27 double min{}, max{}, init{};
37 double map(
double v)
const noexcept;
38 double unmap(
double v)
const noexcept;
40 void setRect(
const QRectF& r);
41 void setRange(
double min,
double max,
double init);
42 void setValue(
double v);
44 void setExecutionValue(
double v);
45 void resetExecution();
47 QRectF boundingRect()
const override;
52 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
53 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
56 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
57 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
58 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
59 void contextMenuEvent(QGraphicsSceneContextMenuEvent* event)
override;
60 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
62 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
Definition: QGraphicsLogKnob.hpp:16
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DefaultControlImpl.hpp:10
Definition: DefaultGraphicsKnobImpl.hpp:24