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
ribbongroup.h File Reference
#include <QHash>
#include <QList>
#include <QString>
#include <QWidget>
#include "ribbonlayoutsolver.h"
Include dependency graph for ribbongroup.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::RibbonGroup
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Variables

constexpr int openswmmvis::ui::kRibbonRowHeight = 100
 
constexpr int openswmmvis::ui::kRibbonIconFull = 32
 Icon edge in Full mode.
 
constexpr int openswmmvis::ui::kRibbonIconCompact = 24
 Icon edge in Compact mode.
 

Detailed Description

UI redesign iteration 2 (R2) — one captioned ribbon group: a content row of action buttons (or embedded widgets) over a small centered caption, closed off by a thin separator line, ArcGIS-Pro style. Lives INSIDE the existing per-tab QToolBars via QToolBar::addWidget, so the tabbed controller, saveState and the overflow chevron keep working.

Three display modes (see RibbonMode): Full (text under 32 px icons), Compact (icon-only 24 px, caption kept), Collapsed (everything behind one popup button titled by the caption). Groups hosting member widgets (combos, sliders…) report isCollapsible() == false and keep one width in every mode, so the solver treats them as rigid.

Styling is palette roles only (caption = QPalette::Mid, the hint token; separator = QPalette::Dark, the border token) — theme-live with zero stylesheets.