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
tabularresultsdialog.h
Go to the documentation of this file.
1
16#ifndef OPENSWMMVIS_UI_DIALOGS_TABULARRESULTSDIALOG_H
17#define OPENSWMMVIS_UI_DIALOGS_TABULARRESULTSDIALOG_H
18
19#include <QDialog>
20#include <QPointer>
21
22class QTableView;
23class QStandardItemModel;
24class QComboBox;
25class QRadioButton;
27
28namespace openswmmvis::ui {
29
30class TabularResultsDialog : public QDialog
31{
32 Q_OBJECT
33public:
35 QWidget *parent = nullptr);
37
38private slots:
39 void onModeChanged();
40 void onSelectionChanged();
41 void onExportCsvClicked();
42 void onExportTsvClicked();
43
44private:
45 void buildUi();
46 void rebuildByObject();
47 void rebuildByVariable();
48 void exportDelimited(const QString &path, QChar delim);
49
50 QPointer<SWMMResultsLayer> m_layer;
51
52 QRadioButton *m_byObjectRadio = nullptr;
53 QRadioButton *m_byVariableRadio = nullptr;
54 QComboBox *m_kindCombo = nullptr; // by-object: which kind
55 QComboBox *m_varOrObjCombo = nullptr; // by-object: variable | by-variable: object name
56 QTableView *m_table = nullptr;
57 QStandardItemModel *m_model = nullptr;
58};
59
60} // namespace openswmmvis::ui
61
62#endif // OPENSWMMVIS_UI_DIALOGS_TABULARRESULTSDIALOG_H
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
Definition tabularresultsdialog.h:31
Definition openswmmvislayer.h:43
int path
Definition pslgminsize.cpp:234
QVector< int > parent
union-find
Definition pslgminsize.cpp:176