Stellarium  1.2
Data Structures | Public Member Functions | Protected Member Functions
StelScriptSyntaxHighlighter Class Reference

This class is used to colorize the ECMAScript syntax elements in the Scripting Console. More...

#include <StelScriptSyntaxHighlighter.hpp>

Public Member Functions

 StelScriptSyntaxHighlighter (QTextDocument *parent=Q_NULLPTR)
 
void setFormats (void)
 

Protected Member Functions

virtual void highlightBlock (const QString &text) Q_DECL_OVERRIDE
 

Detailed Description

It marks keywords, function names, literals, etc. All StelModules and public slots from StelModules are colorized. Single non-module objects registered with the StelScriprMgr are not highlighted, but their methods are.