QGIS API Documentation 3.29.0-Master (006c3c0232)
Public Member Functions | List of all members
QgsOWSSourceWidget Class Reference

This widget sets and updates OWS layers source URI. More...

#include <qgsowssourcewidget.h>

Inheritance diagram for QgsOWSSourceWidget:
Inheritance graph
[legend]

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 QgsMapCanvasmapCanvas ()
 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...
 

Detailed Description

This widget sets and updates OWS layers source URI.

Since
QGIS 3.26

Definition at line 34 of file qgsowssourcewidget.h.

Constructor & Destructor Documentation

◆ QgsOWSSourceWidget()

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.

Member Function Documentation

◆ extent()

QgsRectangle QgsOWSSourceWidget::extent ( ) const

Returns the spatial extent from the widget extent box.

Since
QGIS 3.26

Definition at line 69 of file qgsowssourcewidget.cpp.

◆ setExtent()

void QgsOWSSourceWidget::setExtent ( const QgsRectangle extent)

Sets the spatial extent in the widget extent box.

Since
QGIS 3.26

Definition at line 54 of file qgsowssourcewidget.cpp.

◆ setMapCanvas()

void QgsOWSSourceWidget::setMapCanvas ( QgsMapCanvas mapCanvas)
overridevirtual

Sets a map canvas associated with the widget.

Since
QGIS 3.26

Reimplemented from QgsProviderSourceWidget.

Definition at line 37 of file qgsowssourcewidget.cpp.

◆ setSourceUri()

void QgsOWSSourceWidget::setSourceUri ( const QString &  uri)
overridevirtual

Sets the source uri to show in the widget.

See also
sourceUri()

Implements QgsProviderSourceWidget.

Definition at line 74 of file qgsowssourcewidget.cpp.

◆ sourceUri()

QString QgsOWSSourceWidget::sourceUri ( ) const
overridevirtual

Returns the source URI as currently defined by the widget.

See also
setSourceUri()

Implements QgsProviderSourceWidget.

Definition at line 104 of file qgsowssourcewidget.cpp.


The documentation for this class was generated from the following files: