![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Expression builder for label templates. More...
#include "render/iattributeprovider.h"#include <QDialog>#include <QString>#include <QVariantMap>#include <QVector>Go to the source code of this file.
Classes | |
| class | openswmmvis::ui::LabelExpressionDialog |
Namespaces | |
| namespace | openswmmvis |
| namespace | openswmmvis::ui |
Expression builder for label templates.
The label template language is deliberately small: literal text
with `{token}` placeholders, where `{name}` is the element id and
every other token is an attribute lookup (see the resolver in
swmmlayeritem.cpp). Small as it is, typing it blind is unforgiving
— a misspelt token is not an error, it silently substitutes an
empty string, so the label just comes out short and nothing says
why.
This dialog closes that loop: the available fields are browsable
and insertable, unknown tokens are called out as you type, and a
live preview resolves the template against a sample feature so
you can see the finished label before committing it.