SWMMVis  6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
Loading...
Searching...
No Matches
openswmmvis::ui::ReactionSyntaxHighlighter Class Reference

#include <reactionexpressionedit.h>

Inheritance diagram for openswmmvis::ui::ReactionSyntaxHighlighter:
Collaboration diagram for openswmmvis::ui::ReactionSyntaxHighlighter:

Public Member Functions

 ReactionSyntaxHighlighter (QTextDocument *doc)
 
void setModelIdentifiers (const QSet< QString > &names)
 
void setPalette (const QPalette &palette)
 

Static Public Member Functions

static QStringList hydVarNames ()
 Static vocabulary from the compiler's own tables (engine-less).
 
static QStringList functionNames ()
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Detailed Description

Palette-driven highlighter for one reaction expression line. Identifier classes are injected (rebuilt from the engine on demand).

Constructor & Destructor Documentation

◆ ReactionSyntaxHighlighter()

openswmmvis::ui::ReactionSyntaxHighlighter::ReactionSyntaxHighlighter ( QTextDocument *  doc)
explicit

Member Function Documentation

◆ functionNames()

QStringList openswmmvis::ui::ReactionSyntaxHighlighter::functionNames ( )
static
Here is the caller graph for this function:

◆ highlightBlock()

void openswmmvis::ui::ReactionSyntaxHighlighter::highlightBlock ( const QString &  text)
overrideprotected
Here is the call graph for this function:

◆ hydVarNames()

QStringList openswmmvis::ui::ReactionSyntaxHighlighter::hydVarNames ( )
static

Static vocabulary from the compiler's own tables (engine-less).

Here is the caller graph for this function:

◆ setModelIdentifiers()

void openswmmvis::ui::ReactionSyntaxHighlighter::setModelIdentifiers ( const QSet< QString > &  names)

Model vocabulary (species + coefficients + terms + pollutants), case-sensitive — the compiler matches them exactly.

Here is the caller graph for this function:

◆ setPalette()

void openswmmvis::ui::ReactionSyntaxHighlighter::setPalette ( const QPalette &  palette)
Here is the caller graph for this function:

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