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

Go to the source code of this file.

Classes

struct  UserFlagsEditRef
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Functions

QString userFlagsSummaryFor (openswmmvis::ui::UserFlagsModel *model, const QString &objectType, const QString &objectName)
 
void registerUserFlagsEditRefConverter ()
 

Detailed Description

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

Phase 4 of docs/USER_FLAGS_UI_PLAN_2026-06-03.md — compound-attribute cell value for the per-object "User Flags" row in the Property Browser. Mirrors NodeCompoundEditRef: carries what the cell button needs to (a) display a short summary of how many flags are set on the object and (b) open UserFlagValuesDialog to edit the assignments.

Registered as a Qt metatype with a QString converter so the read-only DisplayRole path renders summary.

Function Documentation

◆ registerUserFlagsEditRefConverter()

void registerUserFlagsEditRefConverter ( )

Install the UserFlagsEditRef → QString metatype converter so the read-only DisplayRole path renders summary. Idempotent.

Here is the caller graph for this function:

◆ userFlagsSummaryFor()

QString userFlagsSummaryFor ( openswmmvis::ui::UserFlagsModel model,
const QString &  objectType,
const QString &  objectName 
)

Compute the cell summary for one object: "(no flags defined)", "(none set)", or "n of m set". Null model reads as no flags.

Here is the call graph for this function:
Here is the caller graph for this function: