36 Q_INTERFACES(QGraphicsItem)
41 Steinberg::Vst::IEditController* fx{};
42 Steinberg::Vst::ParamID num{};
49 static const constexpr double min = 0.;
50 static const constexpr double max = 1.;
55 Steinberg::Vst::IEditController* fx, Steinberg::Vst::ParamID num,
56 QGraphicsItem* parent);
58 static double from01(
double v) {
return v; }
59 static double map(
double v) {
return v; }
60 static double unmap(
double v) {
return v; }
62 void setValue(
double v);
64 void setExecutionValue(
const ossia::value& v);
65 void resetExecution();
70 void valueChanged(
double arg_1) W_SIGNAL(valueChanged, arg_1);
71 void sliderMoved() W_SIGNAL(sliderMoved);
72 void sliderReleased() W_SIGNAL(sliderReleased);
75 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
76 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
77 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
78 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
79 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
85 const std::string_view name;
92 static QWidget* make_widget(
93 Steinberg::Vst::IEditController* fx,
const ControlInlet& inlet,
95 static QGraphicsItem* make_item(
96 Steinberg::Vst::IEditController* fx,
ControlInlet& inlet,
Definition ProcessContext.hpp:12
Definition DocumentContext.hpp:18