20#ifndef OPENSWMMVIS_UI_DIALOGS_STATISTICSDASHBOARDDIALOG_H
21#define OPENSWMMVIS_UI_DIALOGS_STATISTICSDASHBOARDDIALOG_H
33class QSortFilterProxyModel;
36class QStandardItemModel;
49 QWidget *
parent =
nullptr);
62 void onTableSelectionChanged();
63 void onSelectionManagerChanged(
const QSet<SWMMObjectRef> ¤t,
64 const QSet<SWMMObjectRef> &added,
65 const QSet<SWMMObjectRef> &removed);
66 void onTableContextMenuRequested(
const QPoint &
pos);
67 void onZoomToSelected();
68 void onExportClicked();
69 void onQueryApplyClicked();
70 void onQueryClearClicked();
71 void onCurrentTabChanged(
int index);
77 void populateNodeStats();
78 void populateLinkStats();
79 void populateSubcatchStats();
80 void rebuildHistogramFor(
int column);
81 void refreshHistogramForSelection();
82 bool applyQueryToAllTables();
83 void updateQueryStatus();
84 QTableView *currentTable()
const;
85 QSortFilterProxyModel *currentProxy()
const;
87 QPointer<SWMMResultsLayer> m_layer;
88 QPointer<SWMMModelLayer> m_modelLayer;
89 QPointer<SelectionManager> m_selMgr;
90 QPointer<MapCanvas> m_canvas;
91 bool m_applyingFromBus =
false;
93 QTabWidget *m_tabs =
nullptr;
94 QLineEdit *m_queryEdit =
nullptr;
95 QPushButton *m_queryApply =
nullptr;
96 QPushButton *m_queryClear =
nullptr;
97 QLabel *m_queryStatus =
nullptr;
98 QTableView *m_nodeTable =
nullptr;
99 QTableView *m_linkTable =
nullptr;
100 QTableView *m_subTable =
nullptr;
101 QStandardItemModel *m_nodeModel =
nullptr;
102 QStandardItemModel *m_linkModel =
nullptr;
103 QStandardItemModel *m_subModel =
nullptr;
104 QSortFilterProxyModel *m_nodeProxy =
nullptr;
105 QSortFilterProxyModel *m_linkProxy =
nullptr;
106 QSortFilterProxyModel *m_subProxy =
nullptr;
107 QChartView *m_histView =
nullptr;
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
Owner of the canonical selection set for one SWMM project.
Definition selectionmanager.h:112
Definition statisticsdashboarddialog.h:45
~StatisticsDashboardDialog() override
void setProject(SWMMModelLayer *layer, SelectionManager *selMgr, MapCanvas *canvas)
Bind the dialog to the project's cross-view selection bus so table rows highlight on the map,...
Definition statisticsdashboarddialog.cpp:261
void setResultsLayer(SWMMResultsLayer *layer)
Definition statisticsdashboarddialog.cpp:108
int index
Position in m_quadRegions / m_quadReports.
Definition meshgenerator.cpp:153
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
int pos
Definition queryparser.cpp:36
ObjectType
Coarse object kind. Mirrors the engine's logical groupings; finer subtypes (e.g. junction vs outfall)...
Definition selectionmanager.h:39