![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
#include <QList>#include <QString>#include <QToolButton>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::RibbonSplitButton |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
UI redesign iteration 2 (R2/R4) — a last-used split button for a family of related actions (Select ▾, Add Node ▾, Import ▾, …). The face is a real setDefaultAction mirror of the last-used member, so icon, text, enabled state and — crucially — the checked state of checkable map tools all track automatically; the arrow opens the family menu (QToolButton::MenuButtonPopup, the proven Plot-Profile pattern).
The face follows both user triggers AND programmatic toggles (toggled(true)), so objectName-keyed tool sync (Esc → Select) still promotes the active tool onto the face with its checked state shown. Last-used persists under SWMMVis::Ribbon/LastUsed/<familyId> as the member action's objectName (unknown or unset → first member).