![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Browse, apply, save, import, and export Rule Lists from a user-level style library (Slice Z.17c). More...
#include <QDialog>#include <QString>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::StyleManagerDialog |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Browse, apply, save, import, and export Rule Lists from a user-level style library (Slice Z.17c).
The library is a directory of .swmm-rule.json files; one file per saved Rule List. The dialog lists files in that directory, lets the user preview each one's contents, apply a selection to the active layer, save the active layer's current RuleList into the library under a new name, and import / export to arbitrary paths outside the library.
The library directory defaults to a writable per-user location (QStandardPaths::AppLocalDataLocation + "/styles"). The directory is created on first use.
"Active layer" is passed in by the caller. When null, the apply/save buttons are disabled but browse / preview / import / export still work — useful as a project-wide library editor when no layer is currently selected.