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

Path-picker that displays paths relative to a project anchor. More...

#include <QFileDialog>
#include <QString>
#include <QWidget>
Include dependency graph for relativepathpicker.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::RelativePathPicker
 A QLineEdit + browse-button widget that normalises display paths against a project anchor. More...
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Path-picker that displays paths relative to a project anchor.

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
    Slice IO-10. The GUI counterpart to the engine's
    openswmm::io::PathResolver. The widget stores paths internally
    in their absolute form so the engine's `fopen` paths keep
    working, but displays them relative to a project-supplied
    anchor directory whenever that's possible. A tooltip surfaces
    the resolved absolute form for power users.

    Used by every editor that today exposes an external-file slot:
    SimulationOptionsDialog (Files / Climate / Hot-Start tabs),
    TimeSeriesEditorDialog (external panel), and any property
    adapter that needs to capture a file reference. See
    IO_PORTABILITY_PLAN.md ยง3.7.