27#ifndef COMPREHENSIVEEDITORREGISTRY_H
28#define COMPREHENSIVEEDITORREGISTRY_H
54 QUndoStack *undoStack,
89 QHash<int, Entry> m_entries;
Singleton mapping SWMMModelLayer::DataCategory → comprehensive editor metadata + create-new dispatch.
Definition comprehensiveeditorregistry.h:45
std::function< void(SWMMModelLayer *layer, QUndoStack *undoStack, QWidget *parent)> OpenCreateFn
Definition comprehensiveeditorregistry.h:55
void registerEditor(SWMMModelLayer::DataCategory cat, Entry entry)
Definition comprehensiveeditorregistry.cpp:557
bool hasEditor(SWMMModelLayer::DataCategory cat) const noexcept
Definition comprehensiveeditorregistry.cpp:570
QString gapTooltip(SWMMModelLayer::DataCategory cat) const
Definition comprehensiveeditorregistry.cpp:576
const Entry * find(SWMMModelLayer::DataCategory cat) const noexcept
Definition comprehensiveeditorregistry.cpp:564
static ComprehensiveEditorRegistry & instance()
Definition comprehensiveeditorregistry.cpp:545
QString editorTitle(SWMMModelLayer::DataCategory cat) const
Definition comprehensiveeditorregistry.cpp:583
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
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
Definition comprehensiveeditorregistry.h:57
OpenCreateFn openBrowse
Definition comprehensiveeditorregistry.h:65
QString gapSliceLabel
Populated only when openCreateNew is null.
Definition comprehensiveeditorregistry.h:59
QString editorTitle
User-visible name, e.g. "Curve Editor".
Definition comprehensiveeditorregistry.h:58
OpenCreateFn openCreateNew
Null iff editor is not yet shipped.
Definition comprehensiveeditorregistry.h:60
Map layer that renders an OpenSWMMEngine network (nodes, links, subcatchments, rain gages) and provid...