![]() |
SWMMVis
6.0.0-alpha.4
Qt6/C++ GIS-based graphical user interface for the SWMMVis engine (6.0.0-alpha.4)
|
Dialog for connecting to an OGC WMS service and selecting a layer to add. More...
#include <wmsconnectiondialog.h>
Public Member Functions | |
| WMSConnectionDialog (QWidget *parent=nullptr) | |
| ~WMSConnectionDialog () override | |
| WMSLayer * | createLayer (QObject *project=nullptr) const |
| Returns a configured WMSLayer instance for the user's selection. | |
Dialog for connecting to an OGC WMS service and selecting a layer to add.
Own implementation — no QGIS dependency. The dialog allows the user to:
The dialog also persists a list of recently used WMS URLs in QSettings.
Usage:
|
explicit |
|
override |
| WMSLayer * WMSConnectionDialog::createLayer | ( | QObject * | project = nullptr | ) | const |
Returns a configured WMSLayer instance for the user's selection.
Caller takes ownership. Returns nullptr if rejected or no layer selected.
| project | Optional Qt parent for the new layer object. |