#include <nodepicksession.h>
◆ NodePickSession()
| NodePickSession::NodePickSession |
( |
MapCanvas * |
canvas, |
|
|
QObject * |
parent = nullptr |
|
) |
| |
|
explicit |
Starts picking immediately on canvas (no-op, inactive, when null).
◆ ~NodePickSession()
| NodePickSession::~NodePickSession |
( |
| ) |
|
|
override |
◆ cancelled
| void NodePickSession::cancelled |
( |
| ) |
|
|
signal |
Escape, or the user switched to another canvas tool. Already finished.
◆ finish()
| void NodePickSession::finish |
( |
| ) |
|
Restore the previous tool. Idempotent; the destructor calls it.
◆ isActive()
| bool NodePickSession::isActive |
( |
| ) |
const |
True while the pick tool is the canvas's active tool.
◆ nodePicked
| void NodePickSession::nodePicked |
( |
SWMMModelLayer * |
layer, |
|
|
const QString & |
name, |
|
|
int |
nodeIdx |
|
) |
| |
|
signal |
The user clicked node name (index nodeIdx) of layer. The session stays active until finish() — reject and keep waiting, or accept and finish.
The documentation for this class was generated from the following files: