23#ifndef OPENSWMMVIS_UI_WIDGETS_STATSSUMMARYPANEL_H
24#define OPENSWMMVIS_UI_WIDGETS_STATSSUMMARYPANEL_H
55 {
return m_valueFormat; }
72 void populateTab(QTableWidget *table,
int rowIndex);
74 void applyColumnVisibility(QTableWidget *table);
77 void showHeaderContextMenu(QTableWidget *table,
const QPoint &globalPos);
80 void loadColumnVisibility();
82 void saveColumnVisibility();
83 void loadNumberFormat();
84 void saveNumberFormat()
const;
85 [[nodiscard]] QString formatValue(
double value)
const;
87 QTabWidget *m_tabs =
nullptr;
88 QPointer<openswmmvis::plot::ComparisonPlotModel> m_model;
97 QHash<QString, bool> m_columnVisible;
Model layer for the Comparison Plot Dialog.
Definition comparisonplotmodel.h:118
Definition statssummarypanel.h:42
void setModel(openswmmvis::plot::ComparisonPlotModel *model)
Bind the panel to a model. Refreshes immediately. The panel listens for the model's structural signal...
Definition statssummarypanel.cpp:177
void refresh()
Recompute all tabs from the current model + selection. Called automatically on model signals; also ex...
Definition statssummarypanel.cpp:207
void setSelectionRange(QDateTime lo, QDateTime hi)
Narrow the stats to samples whose timestamp falls in [lo, hi]. Pass invalid datetimes to clear the se...
Definition statssummarypanel.cpp:199
openswmmvis::plot::NumberFormat statisticNumberFormat() const
Current number format used for all statistic value cells.
Definition statssummarypanel.h:54
void setStatisticNumberFormat(const openswmmvis::plot::NumberFormat &format)
Set the number format used for statistic value cells.
Definition statssummarypanel.cpp:98
~StatsSummaryPanel() override=default
Definition chartproperties.h:34
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176