2 #include <score/graphics/widgets/Constants.hpp>
4 #include <ossia/network/value/value.hpp>
5 #include <ossia/network/value/vec.hpp>
7 #include <QGraphicsItem>
10 #include <score_lib_base_export.h>
20 ,
public QGraphicsItem
23 SCORE_GRAPHICS_ITEM_TYPE(160)
24 QRectF m_rect{defaultRangeSliderSize};
26 double m_start{0.}, m_end{1.};
27 double m_min{0}, m_max{1};
28 double m_init_start{0.}, m_init_end{1.};
36 void setStart(
double start);
37 void setEnd(
double end);
38 void setRange(
double min,
double max, ossia::vec2f init);
40 void setValue(ossia::vec2f value);
41 ossia::vec2f value()
const noexcept;
42 ossia::vec2f m_execValue{};
43 void setExecutionValue(ossia::vec2f);
44 void resetExecution();
46 void startChanged(
double arg_1) E_SIGNAL(SCORE_LIB_BASE_EXPORT, startChanged, arg_1)
47 void endChanged(
double arg_1) E_SIGNAL(SCORE_LIB_BASE_EXPORT, endChanged, arg_1)
49 void sliderMoved() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderMoved)
50 void sliderReleased() E_SIGNAL(SCORE_LIB_BASE_EXPORT, sliderReleased)
52 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
53 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
54 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
55 QRectF boundingRect()
const override;
56 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
59 qreal y_factor{0.005};
60 qreal d2s{}, d2c{}, d2e{}, ypos{}, ydiff{};
61 double val1{}, val2{};
Definition: QGraphicsRangeSlider.hpp:21
Base toolkit upon which the software is built.
Definition: Application.cpp:90