QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
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. More... | |
QgsRectangle | extent () const |
Returns the spatial extent from the widget extent box. More... | |
void | setExtent (const QgsRectangle &extent) |
Sets the spatial extent in the widget extent box. More... | |
void | setMapCanvas (QgsMapCanvas *canvas) override |
Sets a map canvas associated with the widget. More... | |
void | setSourceUri (const QString &uri) override |
Sets the source uri to show in the widget. More... | |
QString | sourceUri () const override |
Returns the source URI as currently defined by the widget. More... | |
Public Member Functions inherited from QgsProviderSourceWidget | |
QgsProviderSourceWidget (QWidget *parent=nullptr) | |
Constructor for QgsProviderSourceWidget with the specified parent widget. More... | |
virtual QgsMapCanvas * | mapCanvas () |
Returns the map canvas associated with the widget. More... | |
virtual void | setMapCanvas (QgsMapCanvas *mapCanvas) |
Sets a map canvas associated with the widget. More... | |
virtual void | setSourceUri (const QString &uri)=0 |
Sets the source uri to show in the widget. More... | |
virtual QString | sourceUri () const =0 |
Returns the source URI as currently defined by the widget. More... | |
Additional Inherited Members | |
Signals inherited from QgsProviderSourceWidget | |
void | validChanged (bool isValid) |
Emitted whenever the validation status of the widget changes. More... | |
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.