KDevelop API Documentation

editors/qeditor/qsourcecolorizer.h File Reference

#include <private/qrichtext_p.h>
#include <qintdict.h>
#include <qptrlist.h>
#include <qmap.h>
#include <qregexp.h>
#include <qpair.h>
#include <kdebug.h>

Go to the source code of this file.

Classes

class  HLItem
class  NumberHLItem
class  WhiteSpacesHLItem
class  KeywordsHLItem
class  StartsWithHLItem
class  StringHLItem
class  RegExpHLItem
class  HexHLItem
class  HLItemCollection
class  QSourceColorizer

Defines

#define DECLARE_FORMAT_ITEM(type, id, f, c)
#define UPDATE_FORMAT_ITEM(type, f, c)
#define STORE_FORMAT_ITEM(type)


Define Documentation

#define DECLARE_FORMAT_ITEM type,
id,
f,
 ) 
 

Value:

{\ QFont font = f; \ QColor color = c; \ font = config->readFontEntry( QString("Font ") + id, &font ); \ color = config->readColorEntry( QString("Color ") + id, &color ); \ m_formats.insert( type, qMakePair(QString(id), new QTextFormat(font, color)) ); \ }

Definition at line 34 of file qsourcecolorizer.h.

Referenced by OCamlColorizer::OCamlColorizer(), and QSourceColorizer::QSourceColorizer().

#define STORE_FORMAT_ITEM type   ) 
 

Value:

{\ QString id = m_formats[ type ].first; \ QTextFormat* fmt = m_formats[ type ].second; \ config->writeEntry( QString("Font ") + id, fmt->font() ); \ config->writeEntry( QString("Color ") + id, fmt->color() ); \ }

Definition at line 47 of file qsourcecolorizer.h.

Referenced by QSourceColorizer::updateStyles(), OCamlColorizer::~OCamlColorizer(), and QSourceColorizer::~QSourceColorizer().

#define UPDATE_FORMAT_ITEM type,
f,
 ) 
 

Value:

m_formats[ type ].second->setFont( f ); \ m_formats[ type ].second->setColor( c );

Definition at line 43 of file qsourcecolorizer.h.

KDE Logo
This file is part of the documentation for KDevelop Version 3.0.4.
Documentation copyright © 1996-2004 the KDE developers.
Generated on Wed Oct 6 17:39:15 2004 by doxygen 1.3.7 written by Dimitri van Heesch, © 1997-2003