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

#include <reactionexpressionedit.h>

Inheritance diagram for openswmmvis::ui::ReactionExpressionEdit:
Collaboration diagram for openswmmvis::ui::ReactionExpressionEdit:

Signals

void validationChanged (bool ok, const QString &msg, int col)
 
void editingFinished ()
 Enter/Return pressed (single-line commit)
 

Public Member Functions

 ReactionExpressionEdit (void *engineHandle, int scope, QWidget *parent=nullptr)
 
QString expression () const
 
void setExpression (const QString &text)
 
void refreshVocabulary ()
 
void validateNow ()
 

Protected Member Functions

void keyPressEvent (QKeyEvent *e) override
 
void focusInEvent (QFocusEvent *e) override
 

Detailed Description

Single-line reaction-expression editor: live-vocabulary highlighter + Ctrl+Space / 2-char-prefix completion + debounced engine validation via swmm_reaction_validate_expression on the injected handle + scope.

Constructor & Destructor Documentation

◆ ReactionExpressionEdit()

openswmmvis::ui::ReactionExpressionEdit::ReactionExpressionEdit ( void *  engineHandle,
int  scope,
QWidget *  parent = nullptr 
)
explicit
Parameters
scopeSWMM_RXN_SCOPE_* the validator uses (default PIPE).
Here is the call graph for this function:

Member Function Documentation

◆ editingFinished

void openswmmvis::ui::ReactionExpressionEdit::editingFinished ( )
signal

Enter/Return pressed (single-line commit)

Here is the caller graph for this function:

◆ expression()

QString openswmmvis::ui::ReactionExpressionEdit::expression ( ) const
inline

◆ focusInEvent()

void openswmmvis::ui::ReactionExpressionEdit::focusInEvent ( QFocusEvent *  e)
overrideprotected

◆ keyPressEvent()

void openswmmvis::ui::ReactionExpressionEdit::keyPressEvent ( QKeyEvent *  e)
overrideprotected
Here is the call graph for this function:

◆ refreshVocabulary()

void openswmmvis::ui::ReactionExpressionEdit::refreshVocabulary ( )

Re-pull species/coefficients/terms/pollutants from the engine into the completer + highlighter (call after CRUD elsewhere).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ setExpression()

void openswmmvis::ui::ReactionExpressionEdit::setExpression ( const QString &  text)
Here is the call graph for this function:

◆ validateNow()

void openswmmvis::ui::ReactionExpressionEdit::validateNow ( )

Run validation immediately (also runs debounced on every edit).

Here is the call graph for this function:
Here is the caller graph for this function:

◆ validationChanged

void openswmmvis::ui::ReactionExpressionEdit::validationChanged ( bool  ok,
const QString &  msg,
int  col 
)
signal
Here is the caller graph for this function:

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