Main Page | Namespace List | Class Hierarchy | Alphabetical List | Compound List | File List | Namespace Members | Compound Members

Config::Lexer Class Reference

#include <lexer.h>

List of all members.

Public Member Functions

 Lexer (int scintillaID, char *name)
void initScintilla (QextScintilla *sc)
void addProperty (std::string name, int scintillaID, int fore, char *font=0, int size=0, bool bold=false, bool italic=false, bool underline=false, int back=0, bool filleol=false)
void addKeywords (const char *keyWordList)
void setFileExtensions (QString fileExt)
void setLangName (const char *name)
const char * langName ()
void setStreamComment (QString start, QString end)
void setBlockComment (QString start)
QString streamCommentStart ()
QString streamCommentEnd ()
QString blockCommentStart ()

Friends

class LexerManager


Detailed Description

wraps a scintilla lexer which can be configured via python


Constructor & Destructor Documentation

Config::Lexer::Lexer int  scintillaID,
char *  name
 

creates lexer wrapper which scintilla lexer has the given scintilla lexer ID and name


Member Function Documentation

void Config::Lexer::addKeywords const char *  keyWordList  ) 
 

add keywords

void Config::Lexer::addProperty std::string  name,
int  scintillaID,
int  fore,
char *  font = 0,
int  size = 0,
bool  bold = false,
bool  italic = false,
bool  underline = false,
int  back = 0,
bool  filleol = false
 

add new property to python interface of lexer and sets default values

QString Config::Lexer::blockCommentStart  ) 
 

retrieves block comment start token

void Config::Lexer::initScintilla QextScintilla *  sc  ) 
 

initializes given scintilla's lexer

const char* Config::Lexer::langName  )  [inline]
 

returns name of language

void Config::Lexer::setBlockComment QString  start  ) 
 

set block comment start token

void Config::Lexer::setFileExtensions QString  fileExt  ) 
 

set file extension for which the lexer should be used, separated by blanks

void Config::Lexer::setLangName const char *  name  )  [inline]
 

sets name of lexed language

void Config::Lexer::setStreamComment QString  start,
QString  end
 

set stream comment start end end token

QString Config::Lexer::streamCommentEnd  ) 
 

retrieves stream comment end token

QString Config::Lexer::streamCommentStart  ) 
 

retrieves stream comment start token


The documentation for this class was generated from the following file:
Generated on Sun May 2 20:02:58 2004 by doxygen 1.3.2