#include <Highlighter.h>
|
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 |
|
Definition at line 18 of file Highlighter.h.
◆ ~Highlighter()
virtual Highlighter::~Highlighter |
( |
| ) |
|
|
inlinevirtual |
◆ 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] | text | The text whose font to change. |
[in] | color | The 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] | beginPosition | The beginning character index. |
[in] | endPosition | The end character index. |
[in] | highlightColor | The 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] | text | The text to highlight. |
[in] | highlightColor | The color of the highlight. |
[in] | subSection | Subsection where the text is located. |
Implemented in ImportHighlighter.
The documentation for this class was generated from the following file: