13#ifndef OBJECTBROWSERPANEL_H
14#define OBJECTBROWSERPANEL_H
28class QSortFilterProxyModel;
147 QUndoStack *undoStack,
152 void onTreeSelectionChanged();
153 void onSearchTextChanged(
const QString &
text);
154 void onSelectionManagerChanged(
const QSet<SWMMObjectRef> ¤t,
155 const QSet<SWMMObjectRef> &added,
156 const QSet<SWMMObjectRef> &removed);
157 void onContextMenuRequested(
const QPoint &
pos);
158 void onItemDoubleClicked(
const QModelIndex &proxyIdx);
163 void applyFilterNow();
175 SWMMObjectRef refForProxyIndex(
const QModelIndex &proxyIdx)
const;
181 QLineEdit *m_searchEdit =
nullptr;
182 QTreeView *m_view =
nullptr;
184 QSortFilterProxyModel *m_proxy =
nullptr;
185 QTimer *m_filterDebounce =
nullptr;
187 QPointer<SWMMModelLayer> m_layer;
188 QPointer<SelectionManager> m_selMgr;
189 QPointer<MapCanvas> m_canvas;
194 bool m_applyingFromBus =
false;
The central map display widget — QGIS-style hybrid rendering.
Definition mapcanvas.h:63
Embeddable object-navigation widget. Mirrors the legacy Delphi browser's per-type collapsible groups ...
Definition objectbrowserpanel.h:46
void refresh()
Rebuild the backing model from the bound layer. Call after SWMMModelLayer::modelLoaded fires,...
Definition objectbrowserpanel.cpp:230
static bool hasComplexEditor(SWMMModelLayer::DataCategory dc) noexcept
Definition objectbrowserpanel.cpp:956
void plotTimeSeriesForLayerRequested(const SWMMObjectRef &object, SWMMResultsLayer *layer)
Emitted when more than one .out is loaded and the user picks a specific results layer from the "Plot ...
void selectCategory(SWMMModelLayer::Category c)
Select + scroll to the category header for c (e.g. the "Storage" row when the user clicks the matchin...
Definition objectbrowserpanel.cpp:211
void launchBrowseEditor(SWMMModelLayer::DataCategory dc)
Definition objectbrowserpanel.cpp:985
void launchAddNewEditor(SWMMModelLayer::DataCategory dc)
Definition objectbrowserpanel.cpp:972
void focusSearch()
Show + focus the search box and select its text (toolbar Search).
Definition objectbrowserpanel.cpp:204
~ObjectBrowserPanel() override
static QString gapTooltipFor(SWMMModelLayer::DataCategory dc)
Definition objectbrowserpanel.cpp:961
static void openComprehensiveEditorFor(SWMMModelLayer *layer, QUndoStack *undoStack, const SWMMObjectRef &ref, QWidget *parent)
Definition objectbrowserpanel.cpp:630
void rainfallVisualizationRequested(const SWMMObjectRef &object)
Emitted when the user picks "Rainfall Visualization…" from a rain gage's right-click menu....
void setProject(SWMMModelLayer *layer, SelectionManager *selMgr, MapCanvas *canvas=nullptr)
Bind the panel to a project's model layer + selection bus + canvas.
Definition objectbrowserpanel.cpp:170
void plotTimeSeriesRequested(const SWMMObjectRef &object)
Emitted when the user picks "Plot Time Series" from the right-click menu and exactly one results laye...
Renders the SWMM network elements (nodes, links, subcatchments, rain gages) for one OpenSWMMEngine mo...
Definition swmmmodellayer.h:133
DataCategory
Slice BM.0 — non-spatial data-object categories surfaced below the spatial section in the Object Brow...
Definition swmmmodellayer.h:182
Definition swmmobjecttreemodel.h:33
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
SwmmCategory
Stable ordinal categorising every SWMM-element kind that has per-kind styling, per-kind tree rows,...
Definition swmm_category.h:28
EdgeRef ref
Definition pslgminsize.cpp:377
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
int pos
Definition queryparser.cpp:36
QString text
Definition queryparser.cpp:35
Identifies a single SWMM object.
Definition selectionmanager.h:32
Map layer that renders an OpenSWMMEngine network (nodes, links, subcatchments, rain gages) and provid...