2 #include <Process/Style/ScenarioStyle.hpp>
4 #include <Vst3/EffectModel.hpp>
6 #include <score/graphics/GraphicWidgets.hpp>
7 #include <score/graphics/TextItem.hpp>
9 #include <ossia/dataflow/safe_nodes/port.hpp>
19 QGraphicsItem* rootItem{};
20 std::vector<std::pair<ControlInlet*, score::EmptyRectItem*>> controlItems;
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.;
51 static const constexpr
double init = 0.5;
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(
double 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 static QWidget* make_widget(
86 Steinberg::Vst::IEditController* fx,
const ControlInlet& inlet,
88 static QGraphicsItem* make_item(
89 Steinberg::Vst::IEditController* fx,
ControlInlet& inlet,
Definition: RectItem.hpp:64
Definition: /Vst3/Control.hpp:15
Definition: score-plugin-vst3/Vst3/EffectModel.hpp:41
Definition: /Vst3/Widgets.hpp:18
Definition: /Vst3/Widgets.hpp:34
Definition: ProcessContext.hpp:12
Definition: DefaultControlImpl.hpp:10
Definition: DefaultGraphicsSliderImpl.hpp:31
Definition: DocumentContext.hpp:18
Definition: QGraphicsSliderBase.hpp:17
Definition: /Vst3/Widgets.hpp:84