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::GwfSyntaxHighlighter Class Reference

Palette-driven highlighter for one [GWF] expression line. More...

#include <gwfexpressionedit.h>

Inheritance diagram for openswmmvis::ui::GwfSyntaxHighlighter:
Collaboration diagram for openswmmvis::ui::GwfSyntaxHighlighter:

Public Member Functions

 GwfSyntaxHighlighter (QTextDocument *doc, const QStringList &variables, const QStringList &functions)
 
void setPalette (const QPalette &palette)
 

Protected Member Functions

void highlightBlock (const QString &text) override
 

Detailed Description

Palette-driven highlighter for one [GWF] expression line.

Constructor & Destructor Documentation

◆ GwfSyntaxHighlighter()

openswmmvis::ui::GwfSyntaxHighlighter::GwfSyntaxHighlighter ( QTextDocument *  doc,
const QStringList &  variables,
const QStringList &  functions 
)
Parameters
variablesupper-case variable names (HGW, HSW, …)
functionslower-case function names (sqrt, log, …)

Member Function Documentation

◆ highlightBlock()

void openswmmvis::ui::GwfSyntaxHighlighter::highlightBlock ( const QString &  text)
overrideprotected

◆ setPalette()

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

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