2 #include <score/document/DocumentContext.hpp>
13 struct DocumentContext;
16 namespace Scenario::Command
28 std::unique_ptr<Macro> m_macro;
32 std::unique_ptr<Macro>& macro;
46 QString deviceToJson(QString addr);
49 void createOSCDevice(QString name, QString host,
int in,
int out);
50 W_SLOT(createOSCDevice)
52 void createQMLWebSocketDevice(QString name, QString text);
53 W_SLOT(createQMLWebSocketDevice)
55 void createQMLSerialDevice(QString name, QString port, QString text);
56 W_SLOT(createQMLSerialDevice)
59 W_SLOT(enumerateDevices)
61 void createAddress(QString addr, QString type);
64 QObject* createProcess(QObject* interval, QString name, QString data);
67 void setName(QObject* sel, QString new_name);
70 QObject* createBox(QObject* obj, QString startTime, QString duration,
double y);
71 W_SLOT(createBox, (QObject*, QString, QString,
double))
74 createBox(QObject* obj,
double startTimeFlicks,
double durationFlicks,
double y);
75 W_SLOT(createBox, (QObject*,
double,
double,
double))
77 QObject* createState(QObject* ev,
double y);
80 QObject* createIntervalAfter(QObject* obj, QString duration,
double y);
81 W_SLOT(createIntervalAfter)
83 QObject* createIntervalBetween(QObject* startState, QObject* endState);
84 W_SLOT(createIntervalBetween)
86 QObject* port(QObject* obj, QString name);
89 QObject* inlet(QObject* obj,
int index);
92 int inlets(QObject* obj);
95 QObject* outlet(QObject* obj,
int index);
98 int outlets(QObject* obj);
101 void setAddress(QObject* obj, QString addr);
104 void setValue(QObject* obj,
double value);
105 W_SLOT(setValue, (QObject*,
double))
107 void setValue(QObject* obj, QString value);
108 W_SLOT(setValue, (QObject*, QString))
110 void setValue(QObject* obj,
bool value);
111 W_SLOT(setValue, (QObject*,
bool))
113 void setValue(QObject* obj, QList<QString> value);
114 W_SLOT(setValue, (QObject*, QList<QString>))
116 QString valueType(QObject* obj);
119 double min(QObject* obj);
122 double max(QObject* obj);
125 QVector<QString> enumValues(QObject* obj);
128 QObject* metadata(QObject* obj)
const noexcept;
131 QObject* startState(QObject* obj);
134 QObject* startEvent(QObject* obj);
137 QObject* startSync(QObject* obj);
140 QObject* endState(QObject* obj);
143 QObject* endEvent(QObject* obj);
146 QObject* endSync(QObject* obj);
149 void remove(QObject* obj);
152 void setCurvePoints(QObject* process, QVector<QVariantList> points);
153 W_SLOT(setCurvePoints)
155 void setSteps(QObject* process, QVector<double> points);
158 QVariantList messages(QObject* state);
161 void setMessages(QObject* state, QVariantList msgs);
164 void replaceAddress(QObjectList objects, QString before, QString after);
165 W_SLOT(replaceAddress)
167 void automate(QObject* interval, QString addr);
168 W_SLOT(automate, (QObject*, QString))
170 void automate(QObject* interval, QObject* port);
171 W_SLOT(automate, (QObject*, QObject*))
185 QObject* find(QString p);
188 QObject* findByLabel(QString p);
198 void play(QObject* obj);
199 W_SLOT(
play, (QObject*))
205 QString readFile(QString path);
208 QObject* selectedObject();
209 W_SLOT(selectedObject)
211 QVariantList selectedObjects();
212 W_SLOT(selectedObjects)
215 QVariant
prompt(QVariant v);
223 W_REGISTER_ARGTYPE(QVector<QVariantList>)
224 W_REGISTER_ARGTYPE(QList<QObject*>)
225 W_REGISTER_ARGTYPE(JS::GlobalDeviceEnumerator*)
Definition: DeviceEnumerator.hpp:44
Definition: EditContext.hpp:24
void play()
Execution ///.
Definition: EditContext.ossia.cpp:35
QVariant prompt(QVariant v)
UI ///.
Definition: EditContext.ui.cpp:15
Definition: CommandAPI.hpp:28
The Command class.
Definition: Command.hpp:34
Base toolkit upon which the software is built.
Definition: Application.cpp:90
Definition: DocumentContext.hpp:18