11#ifndef PROPERTIESPANEL_H
12#define PROPERTIESPANEL_H
24class QAbstractItemModel;
25class QAbstractItemDelegate;
26#ifdef HAVE_QPROPERTYMODEL
28class QPropertyItemDelegate;
125 const QString &
name);
152 const QString &propertyName,
153 const QVariant &oldValue,
154 const QVariant &newValue);
168 void onLayerComboIndexChanged(
int index);
176 void onTreeContextMenu(
const QPoint &
pos);
184 void onOpenInEditorClicked();
187 bool eventFilter(QObject *watched, QEvent *event)
override;
196 void refreshStatsSourceCombo();
204 void applyStatsSourceToAdapter();
211 void refreshAdapterStatValues();
213 QTreeView *m_treeView =
nullptr;
214 QComboBox *m_layerCombo =
nullptr;
215 QComboBox *m_statsSourceCombo =
nullptr;
216 class QLabel *m_statsSourceLabel =
nullptr;
220 QPushButton *m_openEditorButton =
nullptr;
223 QPushButton *m_plotRainGageButton =
nullptr;
230 QAbstractItemModel *m_model =
nullptr;
231 QAbstractItemDelegate *m_delegate =
nullptr;
233 QList<IdentifyResult> m_lastResults;
244 int m_nodeAdapterKind = -1;
245 int m_linkAdapterKind = -1;
252 bool m_suppressEditForward =
false;
261 QPointer<SWMMResultsLayer> m_activeStatsLayer;
Abstract base class for all layers displayed in the MapCanvas.
Definition openswmmvislayer.h:116
A dock widget that displays and edits object attributes using QPropertyModel.
Definition propertiespanel.h:57
void rainfallPlotRequested(const QString &gageId)
The rain gage "Plot Rainfall…" button was clicked; the main window opens the shared Rainfall Visualiz...
void clear()
Clears the panel.
Definition propertiespanel.cpp:479
void onOffsetModeChanged()
Definition propertiespanel.cpp:557
void propertyChanged(QObject *object, const QString &propertyName, const QVariant &oldValue, const QVariant &newValue)
Emitted when the user changes a property value in the view.
void setProject(SWMMModelLayer *layer)
Definition propertiespanel.cpp:563
~PropertiesPanel() override
Definition propertiespanel.cpp:192
void showIdentifyResults(const QList< IdentifyResult > &results)
Shows the attribute results from an identify operation.
Definition propertiespanel.cpp:451
void onIdentifyResult(const QList< IdentifyResult > &results)
Definition propertiespanel.cpp:497
void showObject(QObject *object, const QString &title={})
Switches the panel to show the Q_PROPERTY attributes of object.
Definition propertiespanel.cpp:425
void onObjectEditedExternally(const QString &name)
Definition propertiespanel.cpp:502
void setActiveResultsLayer(SWMMResultsLayer *layer)
Definition propertiespanel.cpp:1490
void showLayerProperties(OpenSWMMVisLayer *layer)
Shows the editable properties of the given layer.
Definition propertiespanel.cpp:474
void showDataObject(SWMMModelLayer *layer, int objectKind, const QString &name)
Definition propertiespanel.cpp:934
void objectEdited(const QString &name)
void setStatsRegistry(openswmmvis::OutputStatsRegistry *registry)
Definition propertiespanel.cpp:1465
Common base for non-spatial Data Object property adapters.
Definition swmmdataobjectpropertyadapter.h:38
Definition swmmlinkpropertyadapter.h:39
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
@ NumDataCategories
Definition swmmmodellayer.h:196
Definition swmmnodepropertyadapter.h:52
Overlays time-stepped simulation results on the SWMM network geometry.
Definition swmmresultslayer.h:96
Definition swmmsubcatchpropertyadapter.h:28
Definition outputstatsregistry.h:70
int index
Position in m_quadRegions / m_quadReports.
Definition meshgenerator.cpp:153
Definition aquiferprovider.h:21
QVector< int > parent
union-find
Definition pslgminsize.cpp:176
int pos
Definition queryparser.cpp:36
QString name
Definition sectionmodelbuilders.cpp:474
const char * title
Definition snowpackeditordialog.cpp:71
Holds identify results from a single layer.
Definition maptoolidentify.h:24
Map layer that renders an OpenSWMMEngine network (nodes, links, subcatchments, rain gages) and provid...