scripting.doxygen   scripting.doxygen 
skipping to change at line 27 skipping to change at line 27
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA. * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, U SA.
*/ */
/*! /*!
@page scripting Scripting Engine @page scripting Scripting Engine
@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://doc.trolltech.com/4.3/qtscript.html">QT Scripting Engine</a >. <a href="http://doc.trolltech.com/4.6/qtscript.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 80 skipping to change at line 80
object with the same name as the corresponding StelModule. For example, to access object with the same name as the corresponding StelModule. For example, to access
LandscapeMgr::setFlagAtmosphere(), use the scripting command: LandscapeMgr::setFlagAtmosphere(), use the scripting command:
LandscapeMgr.setFlagAtmosphere(...); LandscapeMgr.setFlagAtmosphere(...);
- Additional core classes have self-named objects available from the script ing engine: - Additional core classes have self-named objects available from the script ing engine:
- StelSkyDrawer - StelSkyDrawer
- StelSkyLayerMgr - StelSkyLayerMgr
@section script_console Script Console @section script_console Script Console
Note: The Script Console is a build-time option. To enable this feature, Note: The Script Console has been enabled by default since version 0.10.5.
Stellarium must be built using the ENABLE_SCRIPT_CONSOLE=1 option to cmake. It is a build-time option. To enable or disable this feature, use the
ENABLE_SCRIPT_CONSOLE=1 or =0 option to cmake.
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 an output To toggle the script console, press F12. The script console also provides an output
window in which script debugging output is visible. window in which script debugging output is visible.
@section example_scripts Examples @section example_scripts Examples
The best source of examples is the <b>scripts</b> sub-directory of the main Stellarium The best source of examples is the <b>scripts</b> sub-directory of the main Stellarium
source tree. This directory contains a sub-directory called tests which ar e not installed source tree. This directory contains a sub-directory called tests which ar e not installed
with Stellarium, but are nontheless useful sources of example code for vari ous scripting with Stellarium, but are nontheless useful sources of example code for vari ous scripting
 End of changes. 2 change blocks. 
3 lines changed or deleted 4 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/