QGIS API Documentation 3.39.0-Master (93ce9bf5c90)
|
This widget sets and updates OWS layers source URI. More...
#include <qgsowssourcewidget.h>
Public Member Functions | |
QgsOWSSourceWidget (const QString &providerKey, QWidget *parent=nullptr) | |
Constructor for QgsOWSSourceWidget with the specified provider key and parent widget. | |
QgsRectangle | extent () const |
Returns the spatial extent from the widget extent box. | |
void | setExtent (const QgsRectangle &extent) |
Sets the spatial extent in the widget extent box. | |
void | setMapCanvas (QgsMapCanvas *canvas) override |
Sets a map canvas associated with the widget. | |
void | setSourceUri (const QString &uri) override |
Sets the source uri to show in the widget. | |
QString | sourceUri () const override |
Returns the source URI as currently defined by the widget. | |
Public Member Functions inherited from QgsProviderSourceWidget | |
QgsProviderSourceWidget (QWidget *parent=nullptr) | |
Constructor for QgsProviderSourceWidget with the specified parent widget. | |
virtual QString | groupTitle () const |
Returns an optional group title for the source settings, for use in layer properties dialogs. | |
virtual QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. | |
Additional Inherited Members | |
Signals inherited from QgsProviderSourceWidget | |
void | changed () |
Emitted whenever the configuration of the widget changes. | |
void | validChanged (bool isValid) |
Emitted whenever the validation status of the widget changes. | |
This widget sets and updates OWS layers source URI.
Definition at line 34 of file qgsowssourcewidget.h.
QgsOWSSourceWidget::QgsOWSSourceWidget | ( | const QString & | providerKey, |
QWidget * | parent = nullptr |
||
) |
Constructor for QgsOWSSourceWidget with the specified provider key and parent widget.
Definition at line 25 of file qgsowssourcewidget.cpp.
QgsRectangle QgsOWSSourceWidget::extent | ( | ) | const |
Returns the spatial extent from the widget extent box.
Definition at line 69 of file qgsowssourcewidget.cpp.
void QgsOWSSourceWidget::setExtent | ( | const QgsRectangle & | extent | ) |
Sets the spatial extent in the widget extent box.
Definition at line 54 of file qgsowssourcewidget.cpp.
|
overridevirtual |
Sets a map canvas associated with the widget.
Reimplemented from QgsProviderSourceWidget.
Definition at line 37 of file qgsowssourcewidget.cpp.
|
overridevirtual |
Sets the source uri to show in the widget.
Implements QgsProviderSourceWidget.
Definition at line 74 of file qgsowssourcewidget.cpp.
|
overridevirtual |
Returns the source URI as currently defined by the widget.
Implements QgsProviderSourceWidget.
Definition at line 104 of file qgsowssourcewidget.cpp.