OpenTwin 0.1
OpenTwin
 
Loading...
Searching...
No Matches
ot::SyntaxHighlighter Class Reference

#include "SyntaxHighlighter.h"

Inheritance diagram for ot::SyntaxHighlighter:

Public Member Functions

 SyntaxHighlighter (QTextDocument *_document)
 
virtual ~SyntaxHighlighter ()
 
void addRule (const SyntaxHighlighterRule &_rule)
 
void addRules (const std::list< SyntaxHighlighterRule > &_rules)
 
void setRules (const std::list< SyntaxHighlighterRule > &_rules)
 
const std::list< SyntaxHighlighterRule > & getRules (void) const
 

Protected Member Functions

virtual void highlightBlock (const QString &text) override
 

Constructor & Destructor Documentation

◆ SyntaxHighlighter()

ot::SyntaxHighlighter::SyntaxHighlighter ( QTextDocument * _document)

◆ ~SyntaxHighlighter()

ot::SyntaxHighlighter::~SyntaxHighlighter ( )
virtual

Member Function Documentation

◆ addRule()

void ot::SyntaxHighlighter::addRule ( const SyntaxHighlighterRule & _rule)

◆ addRules()

void ot::SyntaxHighlighter::addRules ( const std::list< SyntaxHighlighterRule > & _rules)

◆ getRules()

const std::list< SyntaxHighlighterRule > & ot::SyntaxHighlighter::getRules ( void ) const
inline

◆ highlightBlock()

void ot::SyntaxHighlighter::highlightBlock ( const QString & text)
overrideprotectedvirtual

◆ setRules()

void ot::SyntaxHighlighter::setRules ( const std::list< SyntaxHighlighterRule > & _rules)
inline

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