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
inleteditordialog.h File Reference

Three-pane editor for SWMM inlet designs ([INLETS]). More...

#include "inlet/inletprovider.h"
#include <QDialog>
#include <QPointer>
Include dependency graph for inleteditordialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::InletEditorDialog
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::inlet
 
namespace  openswmmvis::ui
 

Detailed Description

Three-pane editor for SWMM inlet designs ([INLETS]).

Author
Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com
Date
2026
License\n GPL-3.0-or-later

Modelled on TransectEditorDialog (Inlets plan §2.2). Layout (left → right, a 1:3:3 QSplitter named "main" so the app-wide layout persistence picks it up):

┌────────────┬────────────────────────────┬────────────────────────┐ │ Inlets │ Name │ toolbar │ │ list view │ Description │ (Fit / Zoom / Copy / │ │ │ Inlet Type (combo) │ Export Image) │ │ [+ Add] │ Property tree — the │ InletDrawingView │ │ [- Delete]│ InletPropertyBag groups, │ (plan + section with │ │ │ filtered by type │ dimension callouts) │ └────────────┴────────────────────────────┴────────────────────────┘

MVC contract: every mutation goes through InletProvider / InletRegistry, wrapped in a QUndoCommand when the dialog has a QUndoStack (see inletundocommands.h); the list, the tree and the drawing all re-render from the provider's signals.

Entry points mirror the transect editor: createNew (modeless, starts on a fresh design), openForInlet (modeless, selects a design by name — used by the Object Browser), and the modal pickInlet used by the inlet-usage pickers, which additionally filters the list by the host conduit's cross-section shape.