37#ifndef OPENSWMMVIS_UI_DIALOGS_TRANSECTEDITORDIALOG_H
38#define OPENSWMMVIS_UI_DIALOGS_TRANSECTEDITORDIALOG_H
60class TransectProvider;
61class TransectRegistry;
66class TransectListModel;
67class TransectStationTableModel;
68class TransectChartView;
79 QUndoStack *undoStack,
80 QWidget *
parent =
nullptr);
86 QUndoStack *undoStack,
87 QWidget *
parent =
nullptr);
99 QUndoStack *undoStack,
100 const QString &initialName,
101 QWidget *
parent =
nullptr);
110 QListView *
listView() const noexcept {
return m_listView; }
116 QLineEdit *
nameEdit() const noexcept {
return m_nameEdit; }
128 void onListSelectionChanged_();
129 void onAddTransectClicked_();
130 void onDeleteTransectClicked_();
131 void onAddRowClicked_();
132 void onDeleteRowsClicked_();
133 void onNameEdited_();
134 void onCommentsEdited_();
138 const QString &prev,
const QString &now);
139 void onMutationRejected_(
const QString &reason);
140 void onChartContextMenu_(
const QPoint &globalPos);
141 void onZoomToExtentClicked_();
142 void onZoomInClicked_();
143 void onZoomOutClicked_();
144 void onPanToggled_(
bool on);
145 void onEditPointsToggled_(
bool on);
146 void onInsertVertexToggled_(
bool on);
147 void onDeleteVertexToggled_(
bool on);
148 void onChartPropertiesClicked_();
149 void onCopyDataClicked_();
150 void onExportChartClicked_();
151 void onChartHandleClicked_(
int index, Qt::KeyboardModifiers mods);
152 void onChartInsertRequested_(
double station,
double elevation);
153 void onChartDeleteRequested_(
int index);
154 void onTableSelectionChanged_();
158 void buildToolbar_();
161 void refreshPropertyBag_();
162 void rebuildPropertyTree_();
163 void updateStatusBar_();
164 QString suggestUniqueName_()
const;
166 QPointer<openswmmvis::transect::TransectRegistry> m_registry;
167 QPointer<SWMMModelLayer> m_layer;
168 QUndoStack *m_undoStack =
nullptr;
169 QPointer<openswmmvis::transect::TransectProvider> m_current;
173 QSplitter *m_splitter =
nullptr;
176 QListView *m_listView =
nullptr;
178 QPushButton *m_addBtn =
nullptr;
179 QPushButton *m_delBtn =
nullptr;
182 QLineEdit *m_nameEdit =
nullptr;
183 QTextEdit *m_commentsEdit =
nullptr;
184 QTreeView *m_propertyTree =
nullptr;
185 QObject *m_propertyBag =
nullptr;
186 QTableView *m_table =
nullptr;
188 QPushButton *m_addRowBtn =
nullptr;
189 QPushButton *m_delRowBtn =
nullptr;
192 QToolBar *m_toolBar =
nullptr;
193 QAction *m_panAction =
nullptr;
194 QAction *m_editAction =
nullptr;
195 QAction *m_insertVertexAction =
nullptr;
196 QAction *m_deleteVertexAction =
nullptr;
198 QStatusBar *m_status =
nullptr;
199 QLabel *m_countLabel =
nullptr;
201 bool m_suppressPropertyRefresh =
false;
202 bool m_suppressTableSelectionSync =
false;
203 bool m_suppressChartSelectionSync =
false;
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
Definition transectprovider.h:42
Definition transectregistry.h:25
Definition transectchartview.h:53
Definition transecteditordialog.h:71
QTextEdit * commentsEdit() const noexcept
Definition transecteditordialog.h:117
void openForTransect(const QString &name)
Definition transecteditordialog.cpp:113
TransectListModel * listModel() const noexcept
Definition transecteditordialog.h:114
static TransectEditorDialog * createNew(openswmmvis::transect::TransectRegistry *registry, SWMMModelLayer *layer, QUndoStack *undoStack, QWidget *parent=nullptr)
Definition transecteditordialog.cpp:101
static QString pickTransect(openswmmvis::transect::TransectRegistry *registry, SWMMModelLayer *layer, QUndoStack *undoStack, const QString &initialName, QWidget *parent=nullptr)
Modal pick / create / edit entry point — mirrors TimeseriesEditorDialog::pickTimeseries....
Definition transecteditordialog.cpp:128
openswmmvis::transect::TransectProvider * currentProvider() const noexcept
Definition transecteditordialog.cpp:123
void invokeNew()
Reveal the create-card (mirrors the "+ New" button).
Definition transecteditordialog.cpp:640
QTableView * stationTable() const noexcept
Definition transecteditordialog.h:111
TransectStationTableModel * tableModel() const noexcept
Definition transecteditordialog.h:115
void deleteCurrentSilently()
Bypass the confirm dialog.
Definition transecteditordialog.cpp:671
Mode mode() const noexcept
Definition transecteditordialog.h:105
~TransectEditorDialog() override
TransectChartView * chartView() const noexcept
Definition transecteditordialog.h:112
QListView * listView() const noexcept
Definition transecteditordialog.h:110
QLineEdit * nameEdit() const noexcept
Definition transecteditordialog.h:116
QTreeView * propertyTree() const noexcept
Definition transecteditordialog.h:113
bool renameCurrent(const QString &newName)
Definition transecteditordialog.cpp:620
Mode
Definition transecteditordialog.h:74
Definition transectlistmodel.h:27
Definition transectstationtablemodel.h:24
ArrowPlacement p
Definition linesymbollayer.cpp:27
int index
Position in m_quadRegions / m_quadReports.
Definition meshgenerator.cpp:153
Definition transectprovider.h:33
Definition openswmmvislayer.h:43
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
QString name
Definition sectionmodelbuilders.cpp:474