98 if(dialog::ScriptEditorWidget* editor =
findEditor(functionName)) {
99 editor->onScriptEvaluationSucceeded();
107 if(dialog::ScriptEditorWidget* editor =
findEditor(functionName)) {
108 editor->onScriptEvaluationFailed(errorMessage);
116 for(
const auto& script : scripts) {
dialog::ScriptEditorWidget * findEditor(const std::string &functionName)
Definition: imagetaskshapescriptingpanel.cpp:217
The GeometrizerEngine class encapsulates script-based setup and mutation methods for geometrizing sha...
Definition: geometrizerengine.h:57
std::map< std::string, std::string > getScripts() const
Definition: imagetaskshapescriptingpanel.cpp:134
geometrize::preferences::ImageTaskPreferences & getPreferences()
getPreferences Gets a reference to the current preferences of this task.
Definition: imagetask.cpp:330
void setScriptModeEnabled(const bool enabled)
Definition: imagetaskshapescriptingpanel.cpp:195
bool isScriptModeEnabled() const
Definition: imagetaskpreferences.cpp:247
task::ImageTask * m_task
Definition: imagetaskshapescriptingpanel.cpp:246
void setScript(const std::string &scriptName, const std::string &code)
Definition: imagetaskpreferences.cpp:252
void signal_scriptEvaluationFailed(const std::string &functionName, const std::string &code, const std::string &errorMessage)
signal_scriptEvaluationFailed Signal dispatched when a script fails to parse/evaluate.
geometrize::script::GeometrizerEngine & getGeometrizer()
getGeometrizer Gets a reference to the script-based engine used to turn images into shapes...
Definition: imagetask.cpp:340
QMetaObject::Connection m_scriptEvaluationSucceededConnection
Definition: imagetaskshapescriptingpanel.cpp:241
void signal_scriptEvaluationSucceeded(const std::string &functionName, const std::string &code)
signal_scriptEvaluationSucceeded Signal dispatched when a script is successfully parsed/evaluated.
QMetaObject::Connection m_scriptEvaluationFailedConnection
Connection for the scripting panel to react when a script is successfully evaluated ...
Definition: imagetaskshapescriptingpanel.cpp:242