![]() |
Kactus2
Kactus2 reference guide
|
Source file highlighter for import files. More...
#include <ImportHighlighter.h>
Public Member Functions | |
ImportHighlighter (QPlainTextEdit *display, QObject *parent) | |
~ImportHighlighter () | |
The destructor. | |
virtual void | applyFontColor (QString const &text, QColor const &color) |
virtual void | applyHighlight (int beginPosition, int endPosition, QColor const &highlightColor) |
virtual void | applyHighlight (QString const &text, QColor const &highlightColor, QString const &subSection=QString()) |
![]() | |
virtual | ~Highlighter () |
The destructor. | |
Source file highlighter for import files.
Definition at line 25 of file ImportHighlighter.h.
ImportHighlighter::ImportHighlighter | ( | QPlainTextEdit * | display, |
QObject * | parent ) |
The constructor.
[in] | display | The display widget for the parsed source file content. |
[in] | parent | The parent object. |
ImportHighlighter::~ImportHighlighter | ( | ) |
The destructor.
|
virtual |
Called when the font color of a text should be changed to the given color.
[in] | text | The text whose font to change. |
[in] | color | The color of the text. |
Implements Highlighter.
|
virtual |
Called when a section should be highlighted with the given color>.
[in] | beginPosition | The beginning character index. |
[in] | endPosition | The end character index. |
[in] | highlightColor | The color of the highlight. |
Implements Highlighter.
|
virtual |
Called when the text should be highlighted with the given color.
[in] | text | The text to highlight. |
[in] | highlightColor | The color of the highlight. |
[in] | subSection | The current subsection containing the selected text. |
Implements Highlighter.