35#ifndef OPENSWMMVIS_CONTROLS_RULESYNTAXHIGHLIGHTER_H
36#define OPENSWMMVIS_CONTROLS_RULESYNTAXHIGHLIGHTER_H
40#include <QSyntaxHighlighter>
41#include <QTextCharFormat>
75 void rebuildFormats_();
79 QTextCharFormat m_fmtBlockKw;
80 QTextCharFormat m_fmtObjectType;
81 QTextCharFormat m_fmtVariable;
82 QTextCharFormat m_fmtOperator;
83 QTextCharFormat m_fmtNumber;
84 QTextCharFormat m_fmtComment;
Definition rulesyntaxhighlighter.h:46
void highlightBlock(const QString &text) override
Definition rulesyntaxhighlighter.cpp:123
~RuleSyntaxHighlighter() override
static QStringList operatorTokens()
=, <, >, <=, >=, <>, IS
Definition rulesyntaxhighlighter.cpp:74
static QStringList variableNames()
DEPTH, HEAD, FLOW, VOLUME, INFLOW, SETTING, STATUS, CLOCKTIME, DATE, MONTH, DAY, TIME,...
Definition rulesyntaxhighlighter.cpp:72
static QStringList allKeywords()
Every keyword the completer can offer (block + object + variable). The completer's context-keyed pick...
Definition rulesyntaxhighlighter.cpp:80
static QStringList objectTypes()
NODE, LINK, CONDUIT, PUMP, ORIFICE, WEIR, OUTLET, SUBCATCH, SIMULATION, GAGE.
Definition rulesyntaxhighlighter.cpp:71
static QStringList blockKeywords()
RULE, IF, THEN, ELSE, AND, OR, NOT, PRIORITY.
Definition rulesyntaxhighlighter.cpp:70
void setPalette(const QPalette &palette)
Rebuild text formats from the supplied palette. Editor calls this whenever the application palette ch...
Definition rulesyntaxhighlighter.cpp:63
Definition controlruleprovider.h:34
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString text
Definition queryparser.cpp:35