Kactus2
Kactus2 reference guide
Loading...
Searching...
No Matches
Highlighter Class Referenceabstract

#include <Highlighter.h>

Inheritance diagram for Highlighter:
ImportHighlighter

Public Member Functions

virtual ~Highlighter ()
 The destructor.
 
virtual void applyFontColor (QString const &text, QColor const &color)=0
 
virtual void applyHighlight (int beginPosition, int endPosition, QColor const &highlightColor)=0
 
virtual void applyHighlight (QString const &text, QColor const &highlightColor, QString const &subSection=QString())=0
 

Detailed Description

Definition at line 18 of file Highlighter.h.

Constructor & Destructor Documentation

◆ ~Highlighter()

virtual Highlighter::~Highlighter ( )
inlinevirtual

The destructor.

Definition at line 23 of file Highlighter.h.

Member Function Documentation

◆ applyFontColor()

virtual void Highlighter::applyFontColor ( QString const & text,
QColor const & color )
pure virtual

Called when the font color of a text should be changed to the given color.

Parameters
[in]textThe text whose font to change.
[in]colorThe color of the text.

Implemented in ImportHighlighter.

◆ applyHighlight() [1/2]

virtual void Highlighter::applyHighlight ( int beginPosition,
int endPosition,
QColor const & highlightColor )
pure virtual

Called when a section should be highlighted with the given color.

Parameters
[in]beginPositionThe beginning character index.
[in]endPositionThe end character index.
[in]highlightColorThe color of the highlight.

Implemented in ImportHighlighter.

◆ applyHighlight() [2/2]

virtual void Highlighter::applyHighlight ( QString const & text,
QColor const & highlightColor,
QString const & subSection = QString() )
pure virtual

Called when the text should be highlighted with the given color.

Parameters
[in]textThe text to highlight.
[in]highlightColorThe color of the highlight.
[in]subSectionSubsection where the text is located.

Implemented in ImportHighlighter.


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