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

#include <modelspage.h>

Inheritance diagram for openswmmvis::ui::ModelsPage:
Collaboration diagram for openswmmvis::ui::ModelsPage:

Public Types

enum  Tab {
  TabDomains = 0 ,
  TabModules ,
  TabFlags
}
 Tab order, so the dialog can name tabs without magic numbers. More...
 

Public Slots

void refreshTransportMatrix ()
 Re-ask the engine for the matrix. Also called by the dialog when the 2D page reports a TRANSPORT_* change.
 

Signals

void showFlowRoutingPageRequested ()
 The mirror's link was clicked — show Routing & Hydraulics.
 
- Signals inherited from openswmmvis::ui::SimOptionsPage
void gateInputsChanged ()
 Emit from any control that feeds a PageGate.
 

Public Member Functions

 ModelsPage (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.
 
QTabWidget * tabs () const
 
bool module2DEnabled () const
 
void setModule2DEnabled (bool on)
 
void setFlowRoutingText (const QString &routing)
 Read-only FLOW_ROUTING mirror text, pushed by the dialog from the page that owns the combo.
 
void setTransport2DHooks (std::function< bool(int)> getter, std::function< void(int, bool)> setter)
 Where the transport matrix's 2D column reads and writes.
 
- Public Member Functions inherited from openswmmvis::ui::SimOptionsPage
 SimOptionsPage (SimOptionsContext &ctx, QWidget *parent=nullptr)
 
virtual void refreshGates ()
 Intra-page widget gates (PLAN §4.3 "widget" rows).
 
virtual void applyCapabilities ()
 One-shot per-widget disable/tooltip from ctx_.caps().
 
virtual bool validate (QString *warn)
 Validation run before Apply/OK; false pops warn and stops.
 

Additional Inherited Members

- 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 tabs without magic numbers.

Enumerator
TabDomains 
TabModules 
TabFlags 

Constructor & Destructor Documentation

◆ ModelsPage()

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

Member Function Documentation

◆ module2DEnabled()

bool openswmmvis::ui::ModelsPage::module2DEnabled ( ) const

◆ read()

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

engine → widgets. Block signals while setting.

Implements openswmmvis::ui::SimOptionsPage.

Here is the call graph for this function:

◆ refreshTransportMatrix

void openswmmvis::ui::ModelsPage::refreshTransportMatrix ( )
slot

Re-ask the engine for the matrix. Also called by the dialog when the 2D page reports a TRANSPORT_* change.

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

◆ setFlowRoutingText()

void openswmmvis::ui::ModelsPage::setFlowRoutingText ( const QString &  routing)

Read-only FLOW_ROUTING mirror text, pushed by the dialog from the page that owns the combo.

◆ setModule2DEnabled()

void openswmmvis::ui::ModelsPage::setModule2DEnabled ( bool  on)

◆ setTransport2DHooks()

void openswmmvis::ui::ModelsPage::setTransport2DHooks ( std::function< bool(int)>  getter,
std::function< void(int, bool)>  setter 
)

Where the transport matrix's 2D column reads and writes.

Wired by the dialog to the 2D page's TRANSPORT_* checkboxes. Both default-construct to no-ops, so a build without the 2D module shows the matrix read-only rather than crashing.

◆ showFlowRoutingPageRequested

void openswmmvis::ui::ModelsPage::showFlowRoutingPageRequested ( )
signal

The mirror's link was clicked — show Routing & Hydraulics.

◆ tabs()

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

◆ title()

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

Sidebar row text, already tr()'d.

Implements openswmmvis::ui::SimOptionsPage.

◆ write()

int openswmmvis::ui::ModelsPage::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: