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
ipropertyeditor.h
Go to the documentation of this file.
1
31#ifndef IPROPERTYEDITOR_H
32#define IPROPERTYEDITOR_H
33
34#include <QString>
35
37
38class QWidget;
39
50{
51public:
52 virtual ~IPropertyEditor() = default;
53
67 [[nodiscard]] virtual QString objectKind() const = 0;
68
78 [[nodiscard]] virtual QWidget *editorForObject(const SWMMObjectRef &ref) = 0;
79
88 virtual void apply(const SWMMObjectRef &ref) = 0;
89};
90
91#endif // IPROPERTYEDITOR_H
Abstract interface every concrete editor implements.
Definition ipropertyeditor.h:50
virtual QString objectKind() const =0
Stable identifier for the object kind this editor handles.
virtual void apply(const SWMMObjectRef &ref)=0
Push the editor's current values back through the engine setters for ref. Called when the user clicks...
virtual ~IPropertyEditor()=default
virtual QWidget * editorForObject(const SWMMObjectRef &ref)=0
Build (or reuse) the editor's QWidget bound to ref.
EdgeRef ref
Definition pslgminsize.cpp:377
Identifies a single SWMM object.
Definition selectionmanager.h:32