BPS Script API  2.24.4
Engine Class Reference

The script engine. More...

Signals

void writelnDebug (String aLine)
 This signal is emitted whenever a line shall be written to the debugger output. More...
 
void writelnStderr (String aLine)
 This signal is emitted whenever a line shall be written to the standard error output (stderr). More...
 
void writelnStdout (String aLine)
 This signal is emitted whenever a line shall be written to the standard output (stdout). More...
 

Detailed Description

The script engine.

There exists exactly one property of this type named engine in the global object. The engine object is a reference to the script engine object which is executing the current script. It is mainly of use in GUI applications where output of debug(), print() and perror() shall get displayed on a widget.

Example:

var ui = loadUiFile('mydialog.ui');
engine.writelnStdout.connect(ui.findChild('textEdit').append);
print('hello world'); //appended to the textedit
Engine engine
Reference to the scripting engine object.
Definition: Global.js:60
void print(...)
Print the expressions (applying toString() if necessary) to the console standard output (stdout),...
void writelnStdout(String aLine)
This signal is emitted whenever a line shall be written to the standard output (stdout).
Widget loadUiFile(Widget aParent, String aFileName)
Loads a ui file that was created by the Qt Designer into a widget.

Member Function Documentation

◆ writelnDebug

void Engine::writelnDebug ( String  aLine)
signal

This signal is emitted whenever a line shall be written to the debugger output.

Parameters
[in]aLineThe text line to write.

◆ writelnStderr

void Engine::writelnStderr ( String  aLine)
signal

This signal is emitted whenever a line shall be written to the standard error output (stderr).

Parameters
[in]aLineThe text line to write.

◆ writelnStdout

void Engine::writelnStdout ( String  aLine)
signal

This signal is emitted whenever a line shall be written to the standard output (stdout).

Parameters
[in]aLineThe text line to write.

The documentation for this class was generated from the following file: