The ScriptEditorWidget class implements a widget for interactively editing a Chaiscript function.
More...
#include <scripteditorwidget.h>
|
void | signal_scriptChanged (ScriptEditorWidget *self, const std::string &functionName, const std::string &code) |
| signal_scriptChanged Signal emitted when the user change the script code of a function. More...
|
|
void | signal_scriptReset (ScriptEditorWidget *self, const std::string &functionName, const std::string &code) |
| signal_scriptReset Signal emitted when the user hits the reset button, expecting the script to be reset to some default code. More...
|
|
The ScriptEditorWidget class implements a widget for interactively editing a Chaiscript function.
◆ ScriptEditorWidget() [1/2]
geometrize::dialog::ScriptEditorWidget::ScriptEditorWidget |
( |
QObject * |
parent | ) |
|
◆ ScriptEditorWidget() [2/2]
geometrize::dialog::ScriptEditorWidget::ScriptEditorWidget |
( |
const std::string & |
title, |
|
|
const std::string & |
functionName, |
|
|
const std::string & |
defaultCode, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
169 : QGroupBox(parent),
d{std::make_unique<ScriptEditorWidgetImpl>(
this, title, functionName, defaultCode)}
◆ ~ScriptEditorWidget()
geometrize::dialog::ScriptEditorWidget::~ScriptEditorWidget |
( |
| ) |
|
|
virtual |
◆ changeEvent()
void geometrize::dialog::ScriptEditorWidget::changeEvent |
( |
QEvent * |
event | ) |
|
|
overrideprotected |
179 if (event->type() == QEvent::LanguageChange) {
180 d->onLanguageChange();
182 QGroupBox::changeEvent(event);
◆ getCurrentCode()
std::string geometrize::dialog::ScriptEditorWidget::getCurrentCode |
( |
| ) |
const |
202 return d->getCurrentCode();
◆ getDefaultCode()
std::string geometrize::dialog::ScriptEditorWidget::getDefaultCode |
( |
| ) |
const |
197 return d->getDefaultCode();
◆ getFunctionName()
std::string geometrize::dialog::ScriptEditorWidget::getFunctionName |
( |
| ) |
const |
192 return d->getFunctionName();
◆ onScriptEvaluationFailed()
void geometrize::dialog::ScriptEditorWidget::onScriptEvaluationFailed |
( |
const std::string & |
errorMessage | ) |
|
217 d->onScriptEvaluationFailed(errorMessage);
◆ onScriptEvaluationSucceeded()
void geometrize::dialog::ScriptEditorWidget::onScriptEvaluationSucceeded |
( |
| ) |
|
212 d->onScriptEvaluationSucceeded();
◆ resetCodeToDefault()
void geometrize::dialog::ScriptEditorWidget::resetCodeToDefault |
( |
| ) |
|
187 d->resetCodeToDefault();
◆ setCurrentCode()
void geometrize::dialog::ScriptEditorWidget::setCurrentCode |
( |
const std::string & |
code | ) |
|
207 d->setCurrentCode(code);
◆ signal_scriptChanged
void geometrize::dialog::ScriptEditorWidget::signal_scriptChanged |
( |
ScriptEditorWidget * |
self, |
|
|
const std::string & |
functionName, |
|
|
const std::string & |
code |
|
) |
| |
|
signal |
signal_scriptChanged Signal emitted when the user change the script code of a function.
- Parameters
-
self | The widget emitting this signal. |
functionName | The name of the function that was edited. |
code | The new Chaiscript code. |
◆ signal_scriptReset
void geometrize::dialog::ScriptEditorWidget::signal_scriptReset |
( |
ScriptEditorWidget * |
self, |
|
|
const std::string & |
functionName, |
|
|
const std::string & |
code |
|
) |
| |
|
signal |
signal_scriptReset Signal emitted when the user hits the reset button, expecting the script to be reset to some default code.
- Parameters
-
self | The widget emitting this signal. |
functionName | The name of the function that was reset. |
code | The default Chaiscript code. |
The documentation for this class was generated from the following files: