NCL Composer  0.1.5
 All Classes Functions Variables Pages
QsciLexerNCL Class Reference

The QsciLexerNCL class encapsulates the Scintilla NCL lexer. More...

#include <QsciLexerNCL.h>

Inheritance diagram for QsciLexerNCL:
Collaboration diagram for QsciLexerNCL:

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
 

Detailed Description

The QsciLexerNCL class encapsulates the Scintilla NCL lexer.

Definition at line 26 of file QsciLexerNCL.h.

Constructor & Destructor Documentation

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.

Member Function Documentation

QColor QsciLexerNCL::defaultColor ( int  style) const

Returns the foreground colour of the text for style number style.

See Also
defaultPaper()

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.

See Also
defaultColor()

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.

bool QsciLexerNCL::readProperties ( QSettings &  qs,
const QString &  prefix 
)
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.

See Also
setScriptsStyled()

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.

See Also
scriptsStyled()

Definition at line 242 of file QsciLexerNCL.cpp.

bool QsciLexerNCL::writeProperties ( QSettings &  qs,
const QString &  prefix 
) const
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.


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