NCL Composer
0.1.5
|
The QsciLexerNCL class encapsulates the Scintilla NCL lexer. More...
#include <QsciLexerNCL.h>
Public Member Functions | |
QsciLexerNCL (QObject *parent=0) | |
virtual | ~QsciLexerNCL () |
Destroys the QsciLexerNCL instance. | |
const char * | language () const |
Returns the name of the language. | |
const char * | lexer () const |
QColor | defaultColor (int style) const |
bool | defaultEolFill (int style) const |
Returns the end-of-line fill for style number style. | |
QFont | defaultFont (int style) const |
Returns the font for style number style. | |
QColor | defaultPaper (int style) const |
const char * | keywords (int set) const |
void | refreshProperties () |
void | setScriptsStyled (bool styled) |
bool | scriptsStyled () const |
Protected Member Functions | |
bool | readProperties (QSettings &qs, const QString &prefix) |
bool | writeProperties (QSettings &qs, const QString &prefix) const |
The QsciLexerNCL class encapsulates the Scintilla NCL lexer.
Definition at line 26 of file QsciLexerNCL.h.
QsciLexerNCL::QsciLexerNCL | ( | QObject * | parent = 0 ) |
Construct a QsciLexerNCL with parent parent. parent is typically the QsciScintilla instance.
Definition at line 27 of file QsciLexerNCL.cpp.
QColor QsciLexerNCL::defaultColor | ( | int | style) | const |
Returns the foreground colour of the text for style number style.
Definition at line 53 of file QsciLexerNCL.cpp.
QColor QsciLexerNCL::defaultPaper | ( | int | style) | const |
Returns the background colour of the text for style number style.
Definition at line 174 of file QsciLexerNCL.cpp.
const char * QsciLexerNCL::keywords | ( | int | set) | const |
Returns the set of keywords for the keyword set set recognised by the lexer as a space separated string.
Definition at line 164 of file QsciLexerNCL.cpp.
const char * QsciLexerNCL::lexer | ( | ) | const |
Returns the name of the lexer. Some lexers support a number of languages.
Definition at line 46 of file QsciLexerNCL.cpp.
|
protected |
The lexer's properties are read from the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.
Definition at line 213 of file QsciLexerNCL.cpp.
void QsciLexerNCL::refreshProperties | ( | ) |
Causes all properties to be refreshed by emitting the propertyChanged() signal as required.
Definition at line 205 of file QsciLexerNCL.cpp.
bool QsciLexerNCL::scriptsStyled | ( | ) | const |
Returns true if scripts are styled.
Definition at line 235 of file QsciLexerNCL.cpp.
void QsciLexerNCL::setScriptsStyled | ( | bool | styled) |
If allowed is true then scripts are styled. The default is true.
Definition at line 242 of file QsciLexerNCL.cpp.
|
protected |
The lexer's properties are written to the settings qs. prefix (which has a trailing '/') should be used as a prefix to the key of each setting. true is returned if there is no error.
Definition at line 224 of file QsciLexerNCL.cpp.