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

Browse, apply, save, import, and export Rule Lists from a user-level style library (Slice Z.17c). More...

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

Go to the source code of this file.

Classes

class  openswmmvis::ui::StyleManagerDialog
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Browse, apply, save, import, and export Rule Lists from a user-level style library (Slice Z.17c).

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

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.