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
actionregistry.h File Reference
#include <QHash>
#include <QKeySequence>
#include <QObject>
Include dependency graph for actionregistry.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::ActionRegistry
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

UI redesign P1 — runtime registry over the action catalog (actioncatalog.h). Adopts the existing QAction objects by objectName — it never creates or re-creates actions, so ui->actionXxx pointers, the objectName-keyed map-tool checked-state sync, and saved window state all keep working unchanged.

The catalog plus persisted user overrides are the authority for shortcuts: registration applies the effective binding to the adopted action, and the shortcut editor / command palette read everything through here. Overrides persist under the QSettings group "SWMMVis::Shortcuts" keyed by catalog id (portable-text sequence; empty string = deliberately cleared; absent = catalog default).