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
openswmmvis::ui::LabelConfigEditor Class Reference

#include <labelconfigeditor.h>

Inheritance diagram for openswmmvis::ui::LabelConfigEditor:
Collaboration diagram for openswmmvis::ui::LabelConfigEditor:

Signals

void configChanged (const OpenSWMM::Render::LabelConfig &cfg)
 

Public Member Functions

 LabelConfigEditor (QWidget *parent=nullptr)
 
void setConfig (const OpenSWMM::Render::LabelConfig &cfg)
 
OpenSWMM::Render::LabelConfig config () const
 
void setAvailableFields (const QVector< OpenSWMM::Render::AttributeField > &fields)
 The layer's themeable attributes for this sublayer's category.
 

Constructor & Destructor Documentation

◆ LabelConfigEditor()

openswmmvis::ui::LabelConfigEditor::LabelConfigEditor ( QWidget *  parent = nullptr)
explicit
Here is the call graph for this function:

Member Function Documentation

◆ config()

LabelConfig openswmmvis::ui::LabelConfigEditor::config ( ) const

◆ configChanged

void openswmmvis::ui::LabelConfigEditor::configChanged ( const OpenSWMM::Render::LabelConfig cfg)
signal

Emitted after any user edit, carrying the full edited value.

Here is the caller graph for this function:

◆ setAvailableFields()

void openswmmvis::ui::LabelConfigEditor::setAvailableFields ( const QVector< OpenSWMM::Render::AttributeField > &  fields)

The layer's themeable attributes for this sublayer's category.

   Drives the Field and Priority-field pickers (which are combos,
   not free text — a mistyped field name silently produces blank
   labels) and the Expression builder's field list. Priority only
   offers numeric fields, since it is sorted on. Both combos stay
   editable so a name this layer no longer advertises — a legacy
   project, a renamed result variable — survives a round trip
   instead of being erased on open.

   Pass an empty list when the host implements no
   IAttributeProvider; the combos then hold whatever the config
   carries and behave like the old free-text fields.
Here is the caller graph for this function:

◆ setConfig()

void openswmmvis::ui::LabelConfigEditor::setConfig ( const OpenSWMM::Render::LabelConfig cfg)

Seed every control from cfg without emitting configChanged.

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

The documentation for this class was generated from the following files: