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
labelexpressiondialog.h File Reference

Expression builder for label templates. More...

#include "render/iattributeprovider.h"
#include <QDialog>
#include <QString>
#include <QVariantMap>
#include <QVector>
Include dependency graph for labelexpressiondialog.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  openswmmvis::ui::LabelExpressionDialog
 

Namespaces

namespace  openswmmvis
 
namespace  openswmmvis::ui
 

Detailed Description

Expression builder for label templates.

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
    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.