QGIS API Documentation 3.39.0-Master (93ce9bf5c90)
Loading...
Searching...
No Matches
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
34class 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
Map canvas is a class for displaying all GIS data types on a canvas.
This widget sets and updates OWS layers source URI.
Base class for widgets which allow customization of a provider's source URI.
virtual QString sourceUri() const =0
Returns the source URI as currently defined by the widget.
virtual void setMapCanvas(QgsMapCanvas *mapCanvas)
Sets a map canvas associated with the widget.
virtual void setSourceUri(const QString &uri)=0
Sets the source uri to show in the widget.
A rectangle specified with double values.