2 #include <Process/Style/ScenarioStyle.hpp>
4 #include <Vst/EffectModel.hpp>
6 #include <score/graphics/GraphicWidgets.hpp>
7 #include <score/graphics/TextItem.hpp>
9 #include <ossia/dataflow/safe_nodes/port.hpp>
22 QGraphicsItem* rootItem{};
23 std::vector<std::pair<ControlInlet*, score::EmptyRectItem*>> controlItems;
39 Q_INTERFACES(QGraphicsItem)
52 static const constexpr
double min = 0.;
53 static const constexpr
double max = 1.;
54 static const constexpr
double init = 0.5;
59 static double from01(
double v) {
return v; }
60 static double map(
double v) {
return v; }
61 static double unmap(
double v) {
return v; }
63 void setValue(
double v);
65 void setExecutionValue(
double v);
66 void resetExecution();
71 void valueChanged(
double arg_1) W_SIGNAL(valueChanged, arg_1);
72 void sliderMoved() W_SIGNAL(sliderMoved);
73 void sliderReleased() W_SIGNAL(sliderReleased);
76 void mousePressEvent(QGraphicsSceneMouseEvent* event)
override;
77 void mouseMoveEvent(QGraphicsSceneMouseEvent* event)
override;
78 void mouseReleaseEvent(QGraphicsSceneMouseEvent* event)
override;
79 void mouseDoubleClickEvent(QGraphicsSceneMouseEvent* event)
override;
80 void paint(QPainter* painter,
const QStyleOptionGraphicsItem* option, QWidget* widget)
86 static QWidget* make_widget(
88 QWidget* parent, QObject* context);
89 static QGraphicsItem* make_item(
91 QGraphicsItem* parent, QObject* context);
Definition: RectItem.hpp:64
Definition: Vst/Control.hpp:15
Definition: Vst/Widgets.hpp:21
Definition: Vst/Widgets.hpp:37
Base classes and tools to implement processes and layers.
Definition: JSONVisitor.hpp:1324
Definition: ProcessContext.hpp:12
Definition: DefaultControlImpl.hpp:10
Definition: DefaultGraphicsSliderImpl.hpp:31
Definition: DocumentContext.hpp:18
Definition: QGraphicsSliderBase.hpp:17
Definition: Vst/Widgets.hpp:85