Highlights (emboldens) target terms within the given text block.
Definition at line 15 of file VuoNodeClassListItemHighlighter.hh.
Public Member Functions | |
VuoNodeClassListItemHighlighter (QObject *parent=0) | |
Creates a new Node Library class list highlighter. More... | |
void | highlightBlock (const QString &text) |
Highlights target terms within the given text block. More... | |
void | addTargetTerm (QString regExp) |
Adds term to the list of target terms to highlight. More... | |
void | setNodeClassNameStartIndex (int index) |
Designates index as the first position within the highlighted text that corresponds to a node class name rather than a human-readable node title. More... | |
|
explicit |
Creates a new Node Library class list highlighter.
Definition at line 18 of file VuoNodeClassListItemHighlighter.cc.
void VuoNodeClassListItemHighlighter::addTargetTerm | ( | QString | regExp | ) |
Adds term
to the list of target terms to highlight.
Definition at line 58 of file VuoNodeClassListItemHighlighter.cc.
void VuoNodeClassListItemHighlighter::highlightBlock | ( | const QString & | text | ) |
Highlights target terms within the given text block.
Definition at line 27 of file VuoNodeClassListItemHighlighter.cc.
void VuoNodeClassListItemHighlighter::setNodeClassNameStartIndex | ( | int | index | ) |
Designates index
as the first position within the highlighted text that corresponds to a node class name rather than a human-readable node title.
From this index onward, text will be tokenized on '.' rather than whitespace.
Definition at line 68 of file VuoNodeClassListItemHighlighter.cc.