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>
Include dependency graph for qsourcecolorizer.h:

This graph shows which files directly or indirectly include this file:

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
|
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(). |
|
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(). |
|
Value: m_formats[ type ].second->setFont( f ); \ m_formats[ type ].second->setColor( c ); Definition at line 43 of file qsourcecolorizer.h. |