Main Page Class Hierarchy Compound List Compound Members
QextScintillaLexer Class Reference
The QextScintillaLexer class is an abstract class used as a base for specific language lexers.
More...
#include <qextscintillalexer.h>
Inherited by QextScintillaLexerCPP, QextScintillaLexerHTML, QextScintillaLexerPython, and QextScintillaLexerSQL.
List of all members.
Public Slots
Signals
Public Methods
Protected Methods
Detailed Description
The QextScintillaLexer class is an abstract class used as a base for specific language lexers.
A Scintilla lexer scans the text breaking it up into separate language objects, e.g. keywords, strings, operators. The lexer then uses a different style to draw each object. A style is identified by a style number and has a number of attributes, including colour and font. A specific language lexer will implement appropriate default styles which can be overriden by an application by further sub-classing the specific language lexer.
A specific language lexer may provide one or more sets of words to be recognised as keywords. Most lexers only provide one set, but some may support languages embedded in other languages and provide several sets.
QextScintillaLexer provides convenience methods for saving and restoring user preferences for fonts and colours.
Constructor & Destructor Documentation
QextScintillaLexer::QextScintillaLexer |
( |
QObject * |
parent = 0, |
|
|
const char * |
name = 0 |
|
) |
|
|
|
Construct a QextScintillaLexer with parent parent and name name. parent is typically the QextScintilla instance. |
virtual QextScintillaLexer::~QextScintillaLexer |
( |
|
) |
[virtual] |
|
|
Destroys the QextScintillaLexer instance.
|
Member Function Documentation
virtual const char* QextScintillaLexer::language |
( |
|
) |
[pure virtual] |
|
virtual const char* QextScintillaLexer::lexer |
( |
|
) |
[pure virtual] |
|
int QextScintillaLexer::autoIndentStyle |
( |
|
) |
|
|
virtual QColor QextScintillaLexer::color |
( |
int |
style |
) |
const [virtual] |
|
virtual bool QextScintillaLexer::eolFill |
( |
int |
style |
) |
const [virtual] |
|
virtual QFont QextScintillaLexer::font |
( |
int |
style |
) |
const [virtual] |
|
virtual const char* QextScintillaLexer::keywords |
( |
int |
set |
) |
const [virtual] |
|
virtual QString QextScintillaLexer::description |
( |
int |
style |
) |
const [pure virtual] |
|
virtual QColor QextScintillaLexer::paper |
( |
int |
style |
) |
const [virtual] |
|
virtual QFont QextScintillaLexer::defaultFont |
( |
|
) |
[virtual] |
|
virtual void QextScintillaLexer::refreshProperties |
( |
|
) |
[virtual] |
|
bool QextScintillaLexer::readSettings |
( |
QSettings & |
qs, |
|
|
const char * |
prefix = "/Scintilla" |
|
) |
|
|
|
The colour, paper, font and end-of-line for each style number, and all lexer specific properties are read from the settings qs. prefix is prepended to the key of each entry. TRUE is returned if there was no error.
- See also:
-
writeSettings(), QextScintilla::setLexer()
|
bool QextScintillaLexer::writeSettings |
( |
QSettings & |
qs, |
|
|
const char * |
prefix = "/Scintilla" |
|
) |
const |
|
|
The colour, paper, font and end-of-line for each style number, and all lexer specific properties are written to the settings qs. prefix is prepended to the key of each entry. TRUE is returned if there was no error.
- See also:
-
readSettings()
|
virtual void QextScintillaLexer::setAutoIndentStyle |
( |
int |
autoindentstyle |
) |
[virtual, slot] |
|
virtual void QextScintillaLexer::setColor |
( |
const QColor & |
c, |
|
|
int |
style = -1 |
|
) |
[virtual, slot] |
|
|
The foreground colour for style number style is set to c. If style is -1 then the colour is set for all styles. |
virtual void QextScintillaLexer::setDefaultFont |
( |
const QFont & |
f |
) |
[virtual, slot] |
|
virtual void QextScintillaLexer::setEolFill |
( |
bool |
eoffill, |
|
|
int |
style = -1 |
|
) |
[virtual, slot] |
|
|
The end-of-line fill for style number style is set to eoffill. If style is -1 then the fill is set for all styles. |
virtual void QextScintillaLexer::setFont |
( |
const QFont & |
f, |
|
|
int |
style = -1 |
|
) |
[virtual, slot] |
|
|
The font for style number style is set to f. If style is -1 then the font is set for all styles. |
virtual void QextScintillaLexer::setPaper |
( |
const QColor & |
c, |
|
|
int |
style = -1 |
|
) |
[virtual, slot] |
|
|
The background colour for style number style is set to c. If style is -1 then the colour is set for all styles. |
void QextScintillaLexer::colorChanged |
( |
const QColor & |
c, |
|
|
int |
style |
|
) |
[signal] |
|
|
This signal is emitted when the foreground colour of style number style has changed. The new colour is c. |
void QextScintillaLexer::eolFillChanged |
( |
bool |
eoffilled, |
|
|
int |
style |
|
) |
[signal] |
|
|
This signal is emitted when the end-of-file fill of style number style has changed. The new fill is eoffilled. |
void QextScintillaLexer::fontChanged |
( |
const QFont & |
f, |
|
|
int |
style |
|
) |
[signal] |
|
|
This signal is emitted when the font of style number style has changed. The new font is f. |
void QextScintillaLexer::paperChanged |
( |
const QColor & |
c, |
|
|
int |
style |
|
) |
[signal] |
|
|
This signal is emitted when the background colour of style number style has changed. The new colour is c. |
void QextScintillaLexer::propertyChanged |
( |
const char * |
prop, |
|
|
const char * |
val |
|
) |
[signal] |
|
|
This signal is emitted when the value of the lexer property prop needs to be changed. The new value is val. |
virtual bool QextScintillaLexer::readProperties |
( |
QSettings & |
qs, |
|
|
const QString & |
prefix |
|
) |
[protected, virtual] |
|
virtual bool QextScintillaLexer::writeProperties |
( |
QSettings & |
qs, |
|
|
const QString & |
prefix |
|
) |
const [protected, virtual] |
|
Generated on Fri May 23 08:22:46 2003 for QScintilla by
1.2.18