Computer Assisted Medical Intervention Tool Kit version 6.0
 
Loading...
Searching...
No Matches
ExtensionBuilderLogSyntaxHighlighter Class Reference

Simple Syntax highlighter for the ExtensionBuilder log syntax This is used to highlight the ExtensionBuilderPresenter output text. More...

#include <ExtensionBuilderLogSyntaxHighlighter.h>

+ Inheritance diagram for ExtensionBuilderLogSyntaxHighlighter:
+ Collaboration diagram for ExtensionBuilderLogSyntaxHighlighter:

Public Member Functions

 ExtensionBuilderLogSyntaxHighlighter (QTextDocument *parent=nullptr)
 constructor
 
- Public Member Functions inherited from camitk::SyntaxHighlighter
void addRule (QString regexp, QColor color, int weight=QFont::Normal, bool italic=false, QColor backgroundColor=Qt::transparent)
 add a new rule (can be done on the fly)
 
bool removeRule (QString regexp)
 remove an existing rule (can be done on the fly)
 
 SyntaxHighlighter (QTextDocument *parent=nullptr)
 constructor
 

Detailed Description

Simple Syntax highlighter for the ExtensionBuilder log syntax This is used to highlight the ExtensionBuilderPresenter output text.

Usage: QTextEdit* textEdit = new QTextEdit(); new ExtensionBuilderLogSyntaxHighlighter(textEdit->document());

Constructor & Destructor Documentation

◆ ExtensionBuilderLogSyntaxHighlighter()

ExtensionBuilderLogSyntaxHighlighter::ExtensionBuilderLogSyntaxHighlighter ( QTextDocument *  parent = nullptr)

constructor

Parameters
parent(optional) if not given during instantiation, use setDocument(..) afterward

References camitk::SyntaxHighlighter::addRule().

+ Here is the call graph for this function:

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