Quark  0.1
SyntaxHighlighterTheme Class Reference

A representation of a highlighting theme for a SyntaxHighlighter. More...

#include <SyntaxHighlighterTheme.h++>

Inheritance diagram for SyntaxHighlighterTheme:

Signals

void objectChanged ()
 Emitted when the object has changed in some way. More...
 

Public Member Functions

 SyntaxHighlighterTheme (const QString &name)
 Consturcts a new SyntaxHighlighterTheme with the given name. More...
 
virtual ~SyntaxHighlighterTheme ()
 Destructor. More...
 
QString name () const
 Returns the name of the theme. More...
 
void setName (const QString &name)
 Sets the name of the theme. More...
 
void setFormatForElement (const QString &element, const QTextCharFormat &format)
 Sets the text format for a given syntax element. More...
 
QTextCharFormat formatForElement (const QString &element) const
 Gets the text format for a given syntax element. More...
 
QStringList elements () const
 Returns the list of syntax elements that are assigned in this theme. More...
 
void notifyChanged ()
 Emits the objectChanged() signal. More...
 

Detailed Description

A representation of a highlighting theme for a SyntaxHighlighter.

The class associates syntax elements (identified by strings) with text formats.

Author
Mark Lindner

Constructor & Destructor Documentation

◆ SyntaxHighlighterTheme()

SyntaxHighlighterTheme ( const QString &  name)

Consturcts a new SyntaxHighlighterTheme with the given name.

Parameters
nameThe name of the theme.

◆ ~SyntaxHighlighterTheme()

virtual ~SyntaxHighlighterTheme ( )
virtual

Destructor.

Member Function Documentation

◆ elements()

QStringList elements ( ) const

Returns the list of syntax elements that are assigned in this theme.

◆ formatForElement()

QTextCharFormat formatForElement ( const QString &  element) const

Gets the text format for a given syntax element.

◆ name()

QString name ( ) const
inline

Returns the name of the theme.

◆ notifyChanged()

void notifyChanged ( )
inherited

Emits the objectChanged() signal.

◆ objectChanged

void objectChanged ( )
signalinherited

Emitted when the object has changed in some way.

◆ setFormatForElement()

void setFormatForElement ( const QString &  element,
const QTextCharFormat &  format 
)

Sets the text format for a given syntax element.

Parameters
elementThe syntax element.
formatThe text format.

◆ setName()

void setName ( const QString &  name)
inline

Sets the name of the theme.


The documentation for this class was generated from the following file: