37 std::unique_ptr<Macro> m_macro;
41 std::unique_ptr<Macro>& macro;
61 QObject* device(QString name);
64 QString deviceToJson(QString addr);
67 QString deviceToOSCQuery(QString addr);
68 W_SLOT(deviceToOSCQuery)
70 void createDevice(QString name, QString uuid, QJSValue obj);
71 W_SLOT(createDevice, (QString, QString, QJSValue))
73 void createDevice(QString name, QString uuid, QVariant obj);
74 W_SLOT(createDevice, (QString, QString, QVariant))
76 void createOSCDevice(QString name, QString host,
int in,
int out);
77 W_SLOT(createOSCDevice)
79 void connectOSCQueryDevice(QString name, QString host);
80 W_SLOT(connectOSCQueryDevice)
82 void removeDevice(QString name);
85 void createQMLWebSocketDevice(QString name, QString text);
86 W_SLOT(createQMLWebSocketDevice)
88 void createQMLSerialDevice(QString name, QString port, QString text);
89 W_SLOT(createQMLSerialDevice)
92 W_SLOT(enumerateDevices, ())
95 W_SLOT(enumerateDevices, (
const QString&))
98 W_SLOT(enumerateDevices, (
const QStringList&))
101 W_SLOT(listenDevice, (
const QString&))
103 void iterateDevice(
const QString& name,
const QJSValue& op);
104 W_SLOT(iterateDevice, (
const QString&,
const QJSValue&))
106 void setDeviceLearn(
const QString& name,
bool learn);
107 W_SLOT(setDeviceLearn, (
const QString&,
bool))
111 void createAddress(QString addr, QString type);
112 W_SLOT(createAddress)
117 void setUnit(QString addr, QString unit);
120 QObject* createProcess(QObject* interval, QString name, QString data);
121 W_SLOT(createProcess)
124 int processes(QObject* obj);
129 QObject* process(QObject* obj,
int index);
135 QObject* parentProcess(QObject* obj);
136 W_SLOT(parentProcess)
140 QObject* parentInterval(QObject* obj);
141 W_SLOT(parentInterval)
143 void loadPreset(QObject* process, QString json);
145 QString savePreset(QObject* process);
148 void setName(QObject* sel, QString new_name);
151 QObject* createBox(QObject* obj, QString startTime, QString duration,
double y);
152 W_SLOT(createBox, (QObject*, QString, QString,
double))
155 createBox(QObject* obj,
double startTimeFlicks,
double durationFlicks,
double y);
156 W_SLOT(createBox, (QObject*,
double,
double,
double))
158 QObject* createState(QObject* ev,
double y);
161 QObject* createIntervalAfter(QObject* obj, QString duration,
double y);
162 W_SLOT(createIntervalAfter)
164 QObject* createIntervalBetween(QObject* startState, QObject* endState);
165 W_SLOT(createIntervalBetween)
170 void enableTrigger(QObject* obj);
171 W_SLOT(enableTrigger)
172 void disableTrigger(QObject* obj);
173 W_SLOT(disableTrigger)
174 void enableCondition(QObject* obj);
175 W_SLOT(enableCondition)
176 void disableCondition(QObject* obj);
177 W_SLOT(disableCondition)
181 void setExpression(QObject* obj, QString expression);
182 W_SLOT(setExpression)
183 QString expression(QObject* obj);
186 void setIntervalDuration(QObject*
object,
TimeVal flicks);
187 W_SLOT(setIntervalDuration)
188 void setIntervalMinDuration(QObject*
object,
TimeVal flicks);
189 W_SLOT(setIntervalMinDuration)
190 void setIntervalMaxDuration(QObject*
object,
TimeVal flicks);
191 W_SLOT(setIntervalMaxDuration)
192 void setIntervalMaxInfinite(QObject*
object,
bool);
193 W_SLOT(setIntervalMaxInfinite)
194 void setIntervalSpeed(QObject*
object,
double);
195 W_SLOT(setIntervalSpeed)
197 void setAutoTrigger(QObject* timeSync,
bool);
198 W_SLOT(setAutoTrigger)
200 void setProcessLoop(QObject* process,
bool);
201 W_SLOT(setProcessLoop)
205 QObject* port(QObject* obj, QString name);
208 QObject* inlet(QObject* obj,
int index);
209 W_SLOT(inlet, (QObject*,
int))
212 QObject* inlet(QObject* obj, QString name);
213 W_SLOT(inlet, (QObject*, QString))
215 int inlets(QObject* obj);
218 QObject* outlet(QObject* obj,
int index);
219 W_SLOT(outlet, (QObject*,
int))
222 QObject* outlet(QObject* obj, QString name);
223 W_SLOT(outlet, (QObject*, QString))
225 int outlets(QObject* obj);
228 QObject* createCable(QObject* outlet, QObject* inlet);
229 W_SLOT(createCable, (QObject*, QObject*))
230 QObject* createCable(QObject* outlet, QObject* inlet, Process::CableType type);
231 W_SLOT(createCable, (QObject*, QObject*, Process::CableType))
234 QObject* cable(QObject* port,
int index);
235 W_SLOT(cable, (QObject*,
int))
238 int cables(QObject* port);
242 QObject* source(QObject* cable);
246 QObject* sink(QObject* cable);
250 QObject* cable(QObject* outlet, QObject* inlet);
251 W_SLOT(cable, (QObject*, QObject*))
253 void setAddress(QObject* obj, QString addr);
256 void setValue(QObject* obj,
double value);
257 W_SLOT(setValue, (QObject*,
double))
259 void setValue(QObject* obj, QVector2D value);
260 W_SLOT(setValue, (QObject*, QVector2D))
262 void setValue(QObject* obj, QVector3D value);
263 W_SLOT(setValue, (QObject*, QVector3D))
265 void setValue(QObject* obj, QVector4D value);
266 W_SLOT(setValue, (QObject*, QVector4D))
268 void setValue(QObject* obj, QString value);
269 W_SLOT(setValue, (QObject*, QString))
271 void setValue(QObject* obj,
bool value);
272 W_SLOT(setValue, (QObject*,
bool))
274 void setValue(QObject* obj,
int value);
275 W_SLOT(setValue, (QObject*,
int))
277 void setValue(QObject* obj, QList<QString> value);
278 W_SLOT(setValue, (QObject*, QList<QString>))
280 void setValue(QObject* obj, QList<qreal> value);
281 W_SLOT(setValue, (QObject*, QList<qreal>))
283 void setValue(QObject* obj, QList<QVariant> value);
284 W_SLOT(setValue, (QObject*, QList<QVariant>))
286 QString portName(QObject* port);
288 QString valueType(QObject* obj);
291 double min(QObject* obj);
294 double max(QObject* obj);
297 QVector<QVariant> enumValues(QObject* obj);
300 QObject* metadata(QObject* obj)
const noexcept;
306 QObject* documentMetadata()
const noexcept;
307 W_SLOT(documentMetadata)
311 QString documentName()
const noexcept;
315 void setDocumentName(QString name);
316 W_SLOT(setDocumentName)
318 QObject* startState(QObject* obj);
321 QObject* startEvent(QObject* obj);
324 QObject* startSync(QObject* obj);
327 QObject* endState(QObject* obj);
330 QObject* endEvent(QObject* obj);
333 QObject* endSync(QObject* obj);
336 void remove(QObject* obj);
339 void setCurvePoints(QObject* process, QVector<QVariantList> points);
340 W_SLOT(setCurvePoints)
342 void setSteps(QObject* process, QVector<double> points);
345 QVariantList messages(QObject* state);
348 void setMessages(QObject* state, QVariantList msgs);
351 void replaceAddress(QObjectList objects, QString before, QString after);
352 W_SLOT(replaceAddress)
356 QVariantList automate(QObject* interval, QString addr);
357 W_SLOT(automate, (QObject*, QString))
361 QObject* automate(QObject* interval, QObject* port);
362 W_SLOT(automate, (QObject*, QObject*))
379 void load(QString path);
385 void saveAs(QString path);
391 QObject* find(QString p);
394 QObject* findByLabel(QString p);
396 QString path(QObject* obj);
398 QObject* findByPath(QString path);
404 QObject* rootInterval();
407 QObject* documentPlugin(QString key);
408 W_SLOT(documentPlugin)
416 void play(QObject* obj);
417 W_SLOT(play, (QObject*))
431 void scrub(
double z);
434 QObject* transport();
435 W_INVOKABLE(transport)
439 QString readFile(QString path);
442 QString relativizeFilePath(QString path);
443 W_SLOT(relativizeFilePath)
445 QString locateFilePath(QString path);
446 W_SLOT(locateFilePath)
451 QObject* selectedObject();
452 W_SLOT(selectedObject)
454 QVariantList selectedObjects();
455 W_SLOT(selectedObjects)
457 void select(QObject* obj);
458 W_SLOT(select, (QObject*))
460 void select(QVariantList objs);
461 W_SLOT(select, (QVariantList))
463 void zoom(
double zx,
double zy);
464 W_SLOT(zoom, (
double,
double));
466 void scroll(
double zx,
double zy);
467 W_SLOT(scroll, (
double,
double));
470 QVariant prompt(QVariant v);
473 bool hasProcessUI(QObject* process);
476 void showProcessUI(QObject* process,
bool show);
477 W_SLOT(showProcessUI)
479 bool hasProcessScriptEditor(QObject* process);
480 W_SLOT(hasProcessScriptEditor)
482 void showProcessScriptEditor(QObject* process,
bool show);
483 W_SLOT(showProcessScriptEditor)
486 void setProcessScriptEditorPlacement(QObject* process, QString placement);
487 W_SLOT(setProcessScriptEditorPlacement)
488 void setProcessUIPlacement(QObject* process, QString placement);
489 W_SLOT(setProcessUIPlacement)
494 QVariantMap availableProcesses()
const noexcept;
495 W_SLOT(availableProcesses)
496 QVariant availableProcessesAndPresets()
const noexcept;
497 W_SLOT(availableProcessesAndPresets)
498 QVariantList libraryEntries(QString filter)
const noexcept;
499 W_SLOT(libraryEntries)
500 QVariant availableProtocols()
const noexcept;
501 W_SLOT(availableProtocols)
503 QByteArray serializeAsJson()
noexcept;
504 W_SLOT(serializeAsJson)