37 std::unique_ptr<Macro> m_macro;
41 std::unique_ptr<Macro>& macro;
59 QJSValue controls()
const noexcept;
60 W_PROPERTY(QJSValue, Controls READ controls)
61 QJSValue triggers()
const noexcept;
62 W_PROPERTY(QJSValue, Triggers READ triggers)
63 QJSValue conditions()
const noexcept;
64 W_PROPERTY(QJSValue, Conditions READ conditions)
66 void setNamespaces(QJSValue ns);
71 QObject* device(QString name);
77 QVariant deviceSettings(QString name);
78 W_SLOT(deviceSettings)
80 QString deviceToJson(QString addr);
83 QString deviceToOSCQuery(QString addr);
84 W_SLOT(deviceToOSCQuery)
86 void createDevice(QString name, QString uuid, QJSValue obj);
87 W_SLOT(createDevice, (QString, QString, QJSValue))
89 void createDevice(QString name, QString uuid, QVariant obj);
90 W_SLOT(createDevice, (QString, QString, QVariant))
92 void createOSCDevice(QString name, QString host,
int in,
int out);
93 W_SLOT(createOSCDevice)
95 void connectOSCQueryDevice(QString name, QString host);
96 W_SLOT(connectOSCQueryDevice)
98 void removeDevice(QString name);
103 void disconnectDevice(QString name);
104 W_SLOT(disconnectDevice)
105 void reconnectDevice(QString name);
106 W_SLOT(reconnectDevice)
108 void createQMLWebSocketDevice(QString name, QString text);
109 W_SLOT(createQMLWebSocketDevice)
111 void createQMLSerialDevice(QString name, QString port, QString text);
112 W_SLOT(createQMLSerialDevice)
115 W_SLOT(enumerateDevices, ())
118 W_SLOT(enumerateDevices, (
const QString&))
121 W_SLOT(enumerateDevices, (
const QStringList&))
124 W_SLOT(listenDevice, (
const QString&))
126 void iterateDevice(
const QString& name,
const QJSValue& op);
127 W_SLOT(iterateDevice, (
const QString&,
const QJSValue&))
129 void setDeviceLearn(
const QString& name,
bool learn);
130 W_SLOT(setDeviceLearn, (
const QString&,
bool))
134 void createAddress(QString addr, QString type);
135 W_SLOT(createAddress)
140 void setUnit(QString addr, QString unit);
143 QObject* createProcess(QObject* interval, QString name, QString data);
144 W_SLOT(createProcess)
147 int processes(QObject* obj);
152 QObject* process(QObject* obj,
int index);
158 QObject* parentProcess(QObject* obj);
159 W_SLOT(parentProcess)
163 QObject* parentInterval(QObject* obj);
164 W_SLOT(parentInterval)
166 void loadPreset(QObject* process, QString json);
168 QString savePreset(QObject* process);
172 QStringList builtinPresets(QObject* process);
173 W_SLOT(builtinPresets)
175 void setName(QObject* sel, QString new_name);
180 void autoLayout(QObject* interval, QVariantList processes);
181 W_SLOT(autoLayout, (QObject*, QVariantList))
182 void autoLayout(QObject* interval);
183 W_SLOT(autoLayout, (QObject*))
186 void setFolded(QObject* process,
bool folded);
190 void setComment(QObject* sel, QString comment);
193 QObject* createBox(QObject* obj, QString startTime, QString duration,
double y);
194 W_SLOT(createBox, (QObject*, QString, QString,
double))
197 createBox(QObject* obj,
double startTimeFlicks,
double durationFlicks,
double y);
198 W_SLOT(createBox, (QObject*,
double,
double,
double))
200 QObject* createState(QObject* ev,
double y);
203 QObject* createIntervalAfter(QObject* obj, QString duration,
double y);
204 W_SLOT(createIntervalAfter)
206 QObject* createIntervalBetween(QObject* startState, QObject* endState);
207 W_SLOT(createIntervalBetween)
212 void enableTrigger(QObject* obj);
213 W_SLOT(enableTrigger)
214 void disableTrigger(QObject* obj);
215 W_SLOT(disableTrigger)
216 void enableCondition(QObject* obj);
217 W_SLOT(enableCondition)
218 void disableCondition(QObject* obj);
219 W_SLOT(disableCondition)
223 void setExpression(QObject* obj, QString expression);
224 W_SLOT(setExpression)
225 QString expression(QObject* obj);
229 void setScriptable(QObject* obj,
bool scriptable);
230 W_SLOT(setScriptable)
231 QString scriptableAddress(QObject* obj);
232 W_SLOT(scriptableAddress)
233 void trigger(QObject* obj);
236 void setIntervalDuration(QObject*
object,
TimeVal flicks);
237 W_SLOT(setIntervalDuration)
238 void setIntervalMinDuration(QObject*
object,
TimeVal flicks);
239 W_SLOT(setIntervalMinDuration)
240 void setIntervalMaxDuration(QObject*
object,
TimeVal flicks);
241 W_SLOT(setIntervalMaxDuration)
242 void setIntervalMaxInfinite(QObject*
object,
bool);
243 W_SLOT(setIntervalMaxInfinite)
244 void setIntervalSpeed(QObject*
object,
double);
245 W_SLOT(setIntervalSpeed)
248 void setIntervalQuantization(QObject*
object,
double bars);
249 W_SLOT(setIntervalQuantization)
251 void setAutoTrigger(QObject* timeSync,
bool);
252 W_SLOT(setAutoTrigger)
254 void setProcessLoop(QObject* process,
bool);
255 W_SLOT(setProcessLoop)
259 QObject* port(QObject* obj, QString name);
262 QObject* inlet(QObject* obj,
int index);
263 W_SLOT(inlet, (QObject*,
int))
266 QObject* inlet(QObject* obj, QString name);
267 W_SLOT(inlet, (QObject*, QString))
269 int inlets(QObject* obj);
272 QObject* outlet(QObject* obj,
int index);
273 W_SLOT(outlet, (QObject*,
int))
276 QObject* outlet(QObject* obj, QString name);
277 W_SLOT(outlet, (QObject*, QString))
279 int outlets(QObject* obj);
282 QObject* createCable(QObject* outlet, QObject* inlet);
283 W_SLOT(createCable, (QObject*, QObject*))
284 QObject* createCable(QObject* outlet, QObject* inlet, Process::CableType type);
285 W_SLOT(createCable, (QObject*, QObject*, Process::CableType))
288 QObject* cable(QObject* port,
int index);
289 W_SLOT(cable, (QObject*,
int))
292 int cables(QObject* port);
296 QObject* source(QObject* cable);
300 QObject* sink(QObject* cable);
304 QObject* cable(QObject* outlet, QObject* inlet);
305 W_SLOT(cable, (QObject*, QObject*))
307 void setAddress(QObject* obj, QString addr);
312 void setPropagate(QObject* obj,
bool propagate);
315 void setValue(QObject* obj,
double value);
316 W_SLOT(setValue, (QObject*,
double))
318 void setValue(QObject* obj, QVector2D value);
319 W_SLOT(setValue, (QObject*, QVector2D))
321 void setValue(QObject* obj, QVector3D value);
322 W_SLOT(setValue, (QObject*, QVector3D))
324 void setValue(QObject* obj, QVector4D value);
325 W_SLOT(setValue, (QObject*, QVector4D))
327 void setValue(QObject* obj, QString value);
328 W_SLOT(setValue, (QObject*, QString))
330 void setValue(QObject* obj,
bool value);
331 W_SLOT(setValue, (QObject*,
bool))
333 void setValue(QObject* obj,
int value);
334 W_SLOT(setValue, (QObject*,
int))
336 void setValue(QObject* obj, QList<QString> value);
337 W_SLOT(setValue, (QObject*, QList<QString>))
339 void setValue(QObject* obj, QList<qreal> value);
340 W_SLOT(setValue, (QObject*, QList<qreal>))
342 void setValue(QObject* obj, QList<QVariant> value);
343 W_SLOT(setValue, (QObject*, QList<QVariant>))
352 void editValue(QObject* obj, QVariant value);
359 bool pushExecutionValue(QObject* port, QVariant value);
360 W_SLOT(pushExecutionValue)
362 QString portName(QObject* port);
364 QString valueType(QObject* obj);
367 double min(QObject* obj);
370 double max(QObject* obj);
373 QVector<QVariant> enumValues(QObject* obj);
376 QObject* metadata(QObject* obj)
const noexcept;
382 QObject* documentMetadata()
const noexcept;
383 W_SLOT(documentMetadata)
387 QString documentName()
const noexcept;
391 void setDocumentName(QString name);
392 W_SLOT(setDocumentName)
394 QObject* startState(QObject* obj);
397 QObject* startEvent(QObject* obj);
400 QObject* startSync(QObject* obj);
403 QObject* endState(QObject* obj);
406 QObject* endEvent(QObject* obj);
409 QObject* endSync(QObject* obj);
412 void remove(QObject* obj);
415 void setCurvePoints(QObject* process, QVector<QVariantList> points);
416 W_SLOT(setCurvePoints)
418 void setSteps(QObject* process, QVector<double> points);
421 QVariantList messages(QObject* state);
424 void setMessages(QObject* state, QVariantList msgs);
427 void replaceAddress(QObjectList objects, QString before, QString after);
428 W_SLOT(replaceAddress)
432 QVariantList automate(QObject* interval, QString addr);
433 W_SLOT(automate, (QObject*, QString))
437 QObject* automate(QObject* interval, QObject* port);
438 W_SLOT(automate, (QObject*, QObject*))
450 void withMacro(QJSValue fn);
458 void registerCommandHandler(QString name, QJSValue fn);
459 W_SLOT(registerCommandHandler)
467 void pushCommand(QString name, QJSValue undoPayload, QJSValue redoPayload);
499 void load(QString path);
505 void saveAs(QString path);
511 QVariantList consolidate(
bool collectLibraryFiles);
516 QString archive(QString zipPath,
bool collectLibraryFiles);
522 QObject* find(QString p);
525 QObject* findByLabel(QString p);
529 QObjectList references(QObject* obj);
532 QObjectList targets(QObject* obj);
535 void rebind(QObject* obj, QString from, QString to);
537 QString path(QObject* obj);
539 QObject* findByPath(QString path);
545 QObject* rootInterval();
548 QObject* documentPlugin(QString key);
549 W_SLOT(documentPlugin)
557 void play(QObject* obj);
558 W_SLOT(play, (QObject*))
562 void playFromHere(
double ms);
567 void playIntervalFromHere(QObject* interval,
double ms);
568 W_SLOT(playIntervalFromHere)
580 void stop(QObject* obj);
581 W_SLOT(stop, (QObject*))
586 void scrub(
double z);
589 QObject* transport();
590 W_INVOKABLE(transport)
594 QString readFile(QString path);
597 QString relativizeFilePath(QString path);
598 W_SLOT(relativizeFilePath)
600 QString locateFilePath(QString path);
601 W_SLOT(locateFilePath)
606 QObject* selectedObject();
607 W_SLOT(selectedObject)
609 QVariantList selectedObjects();
610 W_SLOT(selectedObjects)
612 void select(QObject* obj);
613 W_SLOT(select, (QObject*))
615 void select(QVariantList objs);
616 W_SLOT(select, (QVariantList))
618 void zoom(
double zx,
double zy);
619 W_SLOT(zoom, (
double,
double));
621 void scroll(
double zx,
double zy);
622 W_SLOT(scroll, (
double,
double));
625 QVariant prompt(QVariant v);
628 bool hasProcessUI(QObject* process);
631 void showProcessUI(QObject* process,
bool show);
632 W_SLOT(showProcessUI)
634 bool hasProcessScriptEditor(QObject* process);
635 W_SLOT(hasProcessScriptEditor)
637 void showProcessScriptEditor(QObject* process,
bool show);
638 W_SLOT(showProcessScriptEditor)
641 void setProcessScriptEditorPlacement(QObject* process, QString placement);
642 W_SLOT(setProcessScriptEditorPlacement)
643 void setProcessUIPlacement(QObject* process, QString placement);
644 W_SLOT(setProcessUIPlacement)
649 QVariantMap availableProcesses()
const noexcept;
650 W_SLOT(availableProcesses)
651 QVariant availableProcessesAndPresets()
const noexcept;
652 W_SLOT(availableProcessesAndPresets)
653 QVariantList libraryEntries(QString filter)
const noexcept;
654 W_SLOT(libraryEntries)
655 QVariant availableProtocols()
const noexcept;
656 W_SLOT(availableProtocols)
658 QByteArray serializeAsJson()
noexcept;
659 W_SLOT(serializeAsJson)
662 QJSValue m_namespaces;
664 void setControlValue(QObject* obj, ossia::value value);