scripting.doxygen   scripting.doxygen 
skipping to change at line 30 skipping to change at line 30
/*! /*!
@page scripting Scripting Engine @page scripting Scripting Engine
@tableofcontents @tableofcontents
@section intro_scripts Introduction @section intro_scripts Introduction
Since version 0.10.1, Stellarium includes a scripting feature based on the Since version 0.10.1, Stellarium includes a scripting feature based on the
<a href="http://qt-project.org/doc/qt-4.8/qtscript.html">Qt Scripting Engin e</a>. <a href="http://doc.qt.io/qt-5/qtscript-index.html">Qt Scripting Engine</a> .
This makes it possible to write small programs within Stellarium to produce This makes it possible to write small programs within Stellarium to produce
presentations, set up custom configurations, and to automate repetitive presentations, set up custom configurations, and to automate repetitive
tasks. Prior to version 0.10.0, Stellarium used a different scripting engi ne tasks. Prior to version 0.10.0, Stellarium used a different scripting engi ne
called @ref StratoScript. called @ref StratoScript.
The core scripting language is The core scripting language is
<a href="http://en.wikipedia.org/wiki/ECMAScript">ECMAScript</a>, giving us ers <a href="http://en.wikipedia.org/wiki/ECMAScript">ECMAScript</a>, giving us ers
access to all basic ECMAScript language features such as flow control, vari ables access to all basic ECMAScript language features such as flow control, vari ables
string manipulation and so on. Interaction with Stellarium-specific feature s string manipulation and so on. Interaction with Stellarium-specific feature s
is done via a collection of objects which represent components of Stellariu m is done via a collection of objects which represent components of Stellariu m
skipping to change at line 100 skipping to change at line 100
- StelSkyDrawer - StelSkyDrawer
- StelSkyLayerMgr - StelSkyLayerMgr
. .
For example, to access LandscapeMgr::setFlagAtmosphere(), use the scripti ng For example, to access LandscapeMgr::setFlagAtmosphere(), use the scripti ng
command: command:
\code \code
LandscapeMgr.setFlagAtmosphere(true); LandscapeMgr.setFlagAtmosphere(true);
\endcode \endcode
Note: All of these except for StelSkyDrawer are StelModule classes. Note: All of these except for StelSkyDrawer are StelModule classes.
@section include_scripts Includes
Stellarium provides mechanism for splitting scripts on different files. Typ
ical functions or
list of variables can be stored in separate \b .inc file and used within sc
ript through \b include()
command:
\code
include("common_objects.inc");
\endcode
Note: Detailed example can be found <a href="http://bazaar.launchpad.net/~s
tellarium/stellarium/trunk/view/head:/scripts/constellations_tour.ssc">in C
onstellations Tour script</a>.
@section script_console Script Console @section script_console Script Console
It is possible to open, edit run and save scripts using the script console window. It is possible to open, edit run and save scripts using the script console window.
To toggle the script console, press F12. The script console also provides To toggle the script console, press F12. The script console also provides
an output window in which script debugging output is visible. an output window in which script debugging output is visible.
Note: The Script Console is a build-time option. It has been enabled by Note: The Script Console is a build-time option. It has been enabled by
default since version 0.10.5. To enable or disable this feature, use the default since version 0.10.5. To enable or disable this feature, use the
ENABLE_SCRIPT_CONSOLE=1 or =0 option to cmake. ENABLE_SCRIPT_CONSOLE=1 or =0 option to cmake.
 End of changes. 2 change blocks. 
1 lines changed or deleted 15 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/