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

"Pick a node on the map" for dialogs and property editors. More...

#include <QObject>
#include <QPointer>
#include <QString>
Include dependency graph for nodepicksession.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  NodePickSession
 

Detailed Description

"Pick a node on the map" for dialogs and property editors.

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
    Creating a session saves the canvas's active tool, pushes a
    OpenSWMMVisMapToolPickNode and forwards its picks; finishing (or
    destroying) the session restores the previous tool. The consumer
    decides what to do with a pick — reject an ineligible node and keep
    waiting, or accept it and finish(). Switching to another canvas tool
    while the session is active counts as a cancel.

    Parent the session to whatever must outlive the wait: a non-modal
    dialog, or — for a property-grid cell editor, which the grid closes
    the moment the map takes focus — the layer itself, with the result
    written through the layer rather than through the editor.