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

#include <qualitypage.h>

Inheritance diagram for openswmmvis::ui::QualityPage:
Collaboration diagram for openswmmvis::ui::QualityPage:

Public Types

enum  Tab {
  TabGeneral = 0 ,
  TabArd ,
  TabLard ,
  TabReserved
}
 Tab order, so the dialog can name gates without magic numbers. More...
 

Public Member Functions

 QualityPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
QString title () const override
 Sidebar row text, already tr()'d.
 
void read () override
 engine → widgets. Block signals while setting.
 
int write () override
 widgets → engine via ctx_.writeIfChanged; returns the sum.
 
void applyCapabilities () override
 One-shot per-widget disable/tooltip from ctx_.caps().
 
void refreshGates () override
 Intra-page widget gates (PLAN §4.3 "widget" rows).
 
QTabWidget * tabs () const
 
QString qualitySolver () const
 Current QUALITY_SOLVER token (LEGACY | EULERIAN_ARD | LAGRANGIAN).
 
bool tracksReservedSpecies () const
 True while WATER_AGE or HEAT_TRANSPORT is ticked — half of the dialog's "is there anything to transport?" row gate.
 
- Public Member Functions inherited from openswmmvis::ui::SimOptionsPage
 SimOptionsPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
virtual bool validate (QString *warn)
 Validation run before Apply/OK; false pops warn and stops.
 

Additional Inherited Members

- Signals inherited from openswmmvis::ui::SimOptionsPage
void gateInputsChanged ()
 Emit from any control that feeds a PageGate.
 
- Static Protected Member Functions inherited from openswmmvis::ui::SimOptionsPage
static void tagOption (QWidget *w, const char *key)
 Tag an option widget for the reachability test.
 
- Protected Attributes inherited from openswmmvis::ui::SimOptionsPage
SimOptionsContextctx_
 

Member Enumeration Documentation

◆ Tab

Tab order, so the dialog can name gates without magic numbers.

Enumerator
TabGeneral 
TabArd 
TabLard 
TabReserved 

Constructor & Destructor Documentation

◆ QualityPage()

openswmmvis::ui::QualityPage::QualityPage ( SimOptionsContext ctx,
QWidget *  parent = nullptr 
)
explicit

Member Function Documentation

◆ applyCapabilities()

void openswmmvis::ui::QualityPage::applyCapabilities ( )
overridevirtual

One-shot per-widget disable/tooltip from ctx_.caps().

Reimplemented from openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

◆ qualitySolver()

QString openswmmvis::ui::QualityPage::qualitySolver ( ) const

Current QUALITY_SOLVER token (LEGACY | EULERIAN_ARD | LAGRANGIAN).

◆ read()

void openswmmvis::ui::QualityPage::read ( )
overridevirtual

engine → widgets. Block signals while setting.

Implements openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

◆ refreshGates()

void openswmmvis::ui::QualityPage::refreshGates ( )
overridevirtual

Intra-page widget gates (PLAN §4.3 "widget" rows).

Reimplemented from openswmmvis::ui::SimOptionsPage.

◆ tabs()

QTabWidget * openswmmvis::ui::QualityPage::tabs ( ) const
inline

◆ title()

QString openswmmvis::ui::QualityPage::title ( ) const
overridevirtual

Sidebar row text, already tr()'d.

Implements openswmmvis::ui::SimOptionsPage.

◆ tracksReservedSpecies()

bool openswmmvis::ui::QualityPage::tracksReservedSpecies ( ) const

True while WATER_AGE or HEAT_TRANSPORT is ticked — half of the dialog's "is there anything to transport?" row gate.

◆ write()

int openswmmvis::ui::QualityPage::write ( )
overridevirtual

widgets → engine via ctx_.writeIfChanged; returns the sum.

Implements openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

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