2 #include <Process/Process.hpp>
3 #include <Process/Script/ScriptProcess.hpp>
5 #include <JS/JSProcessMetadata.hpp>
6 #include <JS/Qml/QmlObjects.hpp>
8 #include <QFileSystemWatcher>
9 #include <QQmlComponent>
12 #include <score_plugin_js_export.h>
21 void setupEngineImportPaths(QQmlEngine& engine) noexcept;
27 get(
const JS::ProcessModel& process,
const QByteArray& str,
bool isFile) noexcept;
28 JS::Script* tryGet(
const QByteArray& str,
bool isFile)
const noexcept;
36 std::unique_ptr<QQmlComponent> component{};
37 std::unique_ptr<JS::Script>
object{};
39 std::vector<Cache> m_map;
44 SCORE_SERIALIZE_FRIENDS
48 static constexpr
bool hasExternalUI() noexcept {
return true; }
54 template <
typename Impl>
62 const QString& script()
const noexcept {
return m_script; }
64 const QByteArray& qmlData()
const noexcept {
return m_qmlData; }
66 JS::Script* currentObject()
const noexcept;
67 bool isGpu()
const noexcept;
71 bool validate(
const QString& str)
const noexcept;
72 void errorMessage(
int arg_1,
const QString& arg_2)
const
73 W_SIGNAL(errorMessage, arg_1, arg_2);
74 void scriptOk() W_SIGNAL(scriptOk);
75 void scriptChanged(
const QString& arg_1) W_SIGNAL(scriptChanged, arg_1);
76 void programChanged() W_SIGNAL(programChanged);
78 PROPERTY(QString, script READ script WRITE setScript NOTIFY scriptChanged)
80 QString effect()
const noexcept
override;
Definition: JSProcessModel.hpp:43
The Process class.
Definition: score-lib-process/Process/Process.hpp:61
Definition: QmlObjects.hpp:556
The id_base_t class.
Definition: Identifier.hpp:57
Definition: JSProcessModel.hpp:24
Definition: Preset.hpp:32
Definition: ScriptProcess.hpp:14
Definition: TimeValue.hpp:21