Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

Highlight Class Reference

#include </home/clem/local/src/opie/noncore/apps/tinykate/libkate/document/katehighlight.h>

Collaboration diagram for Highlight:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 Highlight (syntaxModeListItem *def)
 ~Highlight ()
int doHighlight (int ctxNum, TextLine *)
KateConfiggetKateConfig ()
QString getWildcards ()
QString getMimetypes ()
HlDatagetData ()
void setData (HlData *)
void getItemDataList (ItemDataList &)
void getItemDataList (ItemDataList &, KateConfig *)
void setItemDataList (ItemDataList &, KateConfig *)
QString name ()
QString section ()
void use ()
void release ()
bool isInWord (QChar c)
QString getCommentStart ()
QString getCommentEnd ()
QString getCommentSingleLineStart ()

Protected Member Functions

void init ()
void done ()
void makeContextList ()
void createItemData (ItemDataList &list)
void readGlobalKeywordConfig ()
void readCommentConfig ()
HlItemcreateHlItem (struct syntaxContextData *data, ItemDataList &iDl)
int lookupAttrName (const QString &name, ItemDataList &iDl)

Protected Attributes

ItemDataList internalIDList
HlContextcontextList [nContexts]
bool noHl
bool casesensitive
QString weakDeliminator
QString deliminator
const QChardeliminatorChars
uint deliminatorLen
QString cmlStart
QString cmlEnd
QString cslStart
QString iName
QString iSection
QString iWildcards
QString iMimetypes
QString identifier
int refCount

Static Protected Attributes

static const int nContexts = 32

Friends

class HlManager

Constructor & Destructor Documentation

Highlight::Highlight syntaxModeListItem def  ) 
 

Definition at line 557 of file katehighlight.cpp.

References deliminator, deliminatorChars, deliminatorLen, syntaxModeListItem::extension, I18N_NOOP, syntaxModeListItem::identifier, identifier, iMimetypes, iName, iSection, iWildcards, QString::length(), syntaxModeListItem::mimetype, syntaxModeListItem::name, noHl, syntaxModeListItem::section, and QString::unicode().

Highlight::~Highlight  ) 
 

Definition at line 580 of file katehighlight.cpp.


Member Function Documentation

HlItem* Highlight::createHlItem struct syntaxContextData data,
ItemDataList iDl
[protected]
 

Referenced by makeContextList().

void Highlight::createItemData ItemDataList list  )  [protected]
 

Definition at line 858 of file katehighlight.cpp.

References data, dsNormal, getDefStyleNum(), I18N_NOOP, identifier, internalIDList, QString::isEmpty(), noHl, odebug, oendl, and HlManager::self().

Referenced by getItemDataList(), and makeContextList().

int Highlight::doHighlight int  ctxNum,
TextLine
 

Definition at line 584 of file katehighlight.cpp.

References HlContext::attr, HlItem::attr, HlItem::checkHgl(), contextList, HlContext::ctx, HlItem::ctx, TextLine::firstChar(), TextLine::firstNonSpace(), TextLine::getText(), HlContext::items, len, TextLine::length(), HlContext::lineBeginContext, noHl, odebug, oendl, TextLine::setAttr(), TextLine::setAttribs(), HlItem::startEnable(), and str.

Referenced by KateDocument::updateLines().

void Highlight::done  )  [protected]
 

Definition at line 835 of file katehighlight.cpp.

References contextList, nContexts, and noHl.

Referenced by release().

QString Highlight::getCommentEnd  )  [inline]
 

Definition at line 276 of file katehighlight.h.

References cmlEnd.

Referenced by KateDocument::doComment().

QString Highlight::getCommentSingleLineStart  )  [inline]
 

Definition at line 277 of file katehighlight.h.

References cslStart.

Referenced by KateDocument::doComment().

QString Highlight::getCommentStart  )  [inline]
 

Definition at line 275 of file katehighlight.h.

References cmlStart.

Referenced by KateDocument::doComment().

HlData * Highlight::getData  ) 
 

Definition at line 682 of file katehighlight.cpp.

References getItemDataList(), getKateConfig(), identifier, iMimetypes, HlData::itemDataList, iWildcards, and KateConfig::readEntry().

void Highlight::getItemDataList ItemDataList ,
KateConfig
 

Definition at line 720 of file katehighlight.cpp.

References ItemStyle::bold, ItemStyle::col, col, createItemData(), ItemData::defStyle, QString::isEmpty(), ItemStyle::italic, QString::latin1(), ItemData::name, p, KateConfig::readEntry(), s, and ItemStyle::selCol.

void Highlight::getItemDataList ItemDataList  ) 
 

Definition at line 713 of file katehighlight.cpp.

References getKateConfig().

Referenced by getData().

KateConfig * Highlight::getKateConfig  ) 
 

Definition at line 656 of file katehighlight.cpp.

References KGlobal::config(), iName, and KateConfig::setGroup().

Referenced by getData(), getItemDataList(), getMimetypes(), getWildcards(), and setData().

QString Highlight::getMimetypes  ) 
 

Definition at line 673 of file katehighlight.cpp.

References getKateConfig(), iMimetypes, and KateConfig::readEntry().

QString Highlight::getWildcards  ) 
 

Definition at line 663 of file katehighlight.cpp.

References getKateConfig(), iWildcards, and KateConfig::readEntry().

Referenced by HlManager::wildcardFind().

void Highlight::init  )  [protected]
 

Definition at line 813 of file katehighlight.cpp.

References contextList, makeContextList(), nContexts, and noHl.

Referenced by use().

bool Highlight::isInWord QChar  c  ) 
 

Definition at line 1051 of file katehighlight.cpp.

References deliminatorChars, deliminatorLen, and ustrchr().

Referenced by KateDocument::doSearch(), KateDocument::getWord(), KateDocument::selectWord(), KateViewInternal::wordLeft(), and KateViewInternal::wordRight().

int Highlight::lookupAttrName const QString name,
ItemDataList iDl
[protected]
 

Definition at line 938 of file katehighlight.cpp.

References Opie::Core::endl(), i, and kdDebug().

Referenced by makeContextList().

void Highlight::makeContextList  )  [protected]
 

Definition at line 1165 of file katehighlight.cpp.

References contextList, createHlItem(), createItemData(), i, identifier, HlContext::items, lookupAttrName(), noHl, readCommentConfig(), readGlobalKeywordConfig(), HlManager::self(), and QString::toInt().

Referenced by init().

QString Highlight::name  )  [inline]
 

Definition at line 269 of file katehighlight.h.

References iName.

Referenced by KateDocument::writeSessionConfig().

void Highlight::readCommentConfig  )  [protected]
 

Definition at line 1070 of file katehighlight.cpp.

References cmlEnd, cmlStart, cslStart, identifier, and HlManager::self().

Referenced by makeContextList().

void Highlight::readGlobalKeywordConfig  )  [protected]
 

Definition at line 1110 of file katehighlight.cpp.

References casesensitive, deliminator, deliminatorChars, deliminatorLen, Opie::Core::endl(), f, QString::find(), identifier, kdDebug(), QString::length(), QString::remove(), s, HlManager::self(), QString::unicode(), and weakDeliminator.

Referenced by makeContextList().

void Highlight::release  ) 
 

Definition at line 796 of file katehighlight.cpp.

References done(), and refCount.

Referenced by KateDocument::setHighlight(), and KateDocument::~KateDocument().

QString Highlight::section  )  [inline]
 

Definition at line 270 of file katehighlight.h.

References iSection.

void Highlight::setData HlData  ) 
 

Definition at line 699 of file katehighlight.cpp.

References getKateConfig(), HlData::itemDataList, HlData::mimetypes, setItemDataList(), HlData::wildcards, and KateConfig::writeEntry().

void Highlight::setItemDataList ItemDataList ,
KateConfig
 

Definition at line 755 of file katehighlight.cpp.

References ItemStyle::bold, ItemStyle::col, ItemData::defStyle, ItemStyle::italic, ItemData::name, p, s, ItemStyle::selCol, QString::sprintf(), and KateConfig::writeEntry().

Referenced by setData().

void Highlight::use  ) 
 

Definition at line 778 of file katehighlight.cpp.

References init(), and refCount.

Referenced by KateDocument::setHighlight().


Friends And Related Function Documentation

friend class HlManager [friend]
 

Definition at line 253 of file katehighlight.h.


Member Data Documentation

bool Highlight::casesensitive [protected]
 

Definition at line 293 of file katehighlight.h.

Referenced by readGlobalKeywordConfig().

QString Highlight::cmlEnd [protected]
 

Definition at line 299 of file katehighlight.h.

Referenced by getCommentEnd(), and readCommentConfig().

QString Highlight::cmlStart [protected]
 

Definition at line 298 of file katehighlight.h.

Referenced by getCommentStart(), and readCommentConfig().

HlContext* Highlight::contextList[nContexts] [protected]
 

Definition at line 290 of file katehighlight.h.

Referenced by doHighlight(), done(), init(), and makeContextList().

QString Highlight::cslStart [protected]
 

Definition at line 300 of file katehighlight.h.

Referenced by getCommentSingleLineStart(), and readCommentConfig().

QString Highlight::deliminator [protected]
 

Definition at line 295 of file katehighlight.h.

Referenced by Highlight(), and readGlobalKeywordConfig().

const QChar* Highlight::deliminatorChars [protected]
 

Definition at line 296 of file katehighlight.h.

Referenced by Highlight(), isInWord(), and readGlobalKeywordConfig().

uint Highlight::deliminatorLen [protected]
 

Definition at line 297 of file katehighlight.h.

Referenced by Highlight(), isInWord(), and readGlobalKeywordConfig().

QString Highlight::identifier [protected]
 

Definition at line 305 of file katehighlight.h.

Referenced by createItemData(), getData(), Highlight(), makeContextList(), readCommentConfig(), and readGlobalKeywordConfig().

QString Highlight::iMimetypes [protected]
 

Definition at line 304 of file katehighlight.h.

Referenced by getData(), getMimetypes(), and Highlight().

QString Highlight::iName [protected]
 

Definition at line 301 of file katehighlight.h.

Referenced by getKateConfig(), Highlight(), and name().

ItemDataList Highlight::internalIDList [protected]
 

Definition at line 288 of file katehighlight.h.

Referenced by createItemData().

QString Highlight::iSection [protected]
 

Definition at line 302 of file katehighlight.h.

Referenced by Highlight(), and section().

QString Highlight::iWildcards [protected]
 

Definition at line 303 of file katehighlight.h.

Referenced by getData(), getWildcards(), and Highlight().

const int Highlight::nContexts = 32 [static, protected]
 

Definition at line 289 of file katehighlight.h.

Referenced by done(), and init().

bool Highlight::noHl [protected]
 

Definition at line 292 of file katehighlight.h.

Referenced by createItemData(), doHighlight(), done(), Highlight(), init(), and makeContextList().

int Highlight::refCount [protected]
 

Definition at line 306 of file katehighlight.h.

Referenced by release(), and use().

QString Highlight::weakDeliminator [protected]
 

Definition at line 294 of file katehighlight.h.

Referenced by readGlobalKeywordConfig().


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:34:46 2005 for OPIE by  doxygen 1.4.2