QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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.
 
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 QgsMapCanvasmapCanvas ()
 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.
 

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 26 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 70 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 55 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 38 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 75 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 105 of file qgsowssourcewidget.cpp.


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