QGIS API Documentation  3.26.3-Buenos Aires (65e4edfdad)
qgsowssourcewidget.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsowssourcewidget.h
3  --------------------------------------
4  Date : November 2021
5  Copyright : (C) 2021 by Samweli Mwakisambwe
6  Email : samweli at kartoza dot com
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 #ifndef QGSOWSSOURCEWIDGET_H
18 #define QGSOWSSOURCEWIDGET_H
19 
20 #define SIP_NO_FILE
21 
23 #include "qgsreadwritecontext.h"
24 #include "ui_qgsowssourcewidgetbase.h"
25 #include <QVariantMap>
26 
34 class GUI_EXPORT QgsOWSSourceWidget : public QgsProviderSourceWidget, private Ui::QgsOWSSourceWidgetBase
35 {
36  Q_OBJECT
37 
38  public:
39 
43  QgsOWSSourceWidget( const QString &providerKey, QWidget *parent = nullptr );
44 
45  void setSourceUri( const QString &uri ) override;
46  QString sourceUri() const override;
47 
53  void setExtent( const QgsRectangle &extent );
54 
60  QgsRectangle extent() const;
61 
62 
63  void setMapCanvas( QgsMapCanvas *canvas ) override;
64 
65 
66  private:
67 
68  QVariantMap mSourceParts;
69  const QString mProviderKey;
70 };
71 
72 #endif // QGSOWSSOURCEWIDGET_H
qgsprovidersourcewidget.h
QgsProviderSourceWidget::setMapCanvas
virtual void setMapCanvas(QgsMapCanvas *mapCanvas)
Sets a map canvas associated with the widget.
Definition: qgsprovidersourcewidget.h:62
qgsreadwritecontext.h
QgsProviderSourceWidget::setSourceUri
virtual void setSourceUri(const QString &uri)=0
Sets the source uri to show in the widget.
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition: qgsmapcanvas.h:89
QgsProviderSourceWidget::sourceUri
virtual QString sourceUri() const =0
Returns the source URI as currently defined by the widget.
QgsRectangle
A rectangle specified with double values.
Definition: qgsrectangle.h:41
QgsProviderSourceWidget
Base class for widgets which allow customization of a provider's source URI.
Definition: qgsprovidersourcewidget.h:32
QgsOWSSourceWidget
This widget sets and updates OWS layers source URI.
Definition: qgsowssourcewidget.h:34