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
calibrationdatadialog.h
Go to the documentation of this file.
1
14#ifndef OPENSWMMVIS_UI_DIALOGS_CALIBRATIONDATADIALOG_H
15#define OPENSWMMVIS_UI_DIALOGS_CALIBRATIONDATADIALOG_H
16
17#include "plot/plotattribute.h"
18
19#include <QDialog>
20#include <QPointer>
21#include <QString>
22
23class QTableWidget;
25
26namespace openswmmvis::ui {
27
29 QString objectName;
30 QString objectKind; // "Node" / "Link" / "Subcatch"
32 QString observedPath;
33 QString observedColumn; // column name in the CSV
34};
35
36class CalibrationDataDialog : public QDialog
37{
38 Q_OBJECT
39public:
40 explicit CalibrationDataDialog(SWMMVisProjectWindow *projectWindow,
41 QWidget *parent = nullptr);
43
46 static QVector<CalibrationEntry> entriesFromProject(SWMMVisProjectWindow *pw);
47
48private slots:
49 void onAddClicked();
50 void onRemoveClicked();
51 void onBrowseClicked();
52 void accept() override;
53
54private:
55 void buildUi();
56 void loadFromProject();
57 void saveToProject();
58
59 QPointer<SWMMVisProjectWindow> m_projectWindow;
60 QTableWidget *m_table = nullptr;
61};
62
63} // namespace openswmmvis::ui
64
65#endif // OPENSWMMVIS_UI_DIALOGS_CALIBRATIONDATADIALOG_H
MDI sub-window owning a MapCanvas, SWMMModelLayer, and map tools.
Definition swmmvisprojectwindow.h:58
Definition calibrationdatadialog.h:37
static QVector< CalibrationEntry > entriesFromProject(SWMMVisProjectWindow *pw)
Static helper to read the calibration entries persisted in the project window's .oswp.
Definition calibrationdatadialog.cpp:158
PlotAttribute
What a series plots. One row per attribute in the Nx2 grid.
Definition plotattribute.h:38
Definition openswmmvislayer.h:43
Slice BL — canonical enumeration of plottable result attributes.
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Definition calibrationdatadialog.h:28
QString objectName
Definition calibrationdatadialog.h:29
QString objectKind
Definition calibrationdatadialog.h:30
QString observedPath
Definition calibrationdatadialog.h:32
openswmmvis::plot::PlotAttribute attribute
Definition calibrationdatadialog.h:31
QString observedColumn
Definition calibrationdatadialog.h:33