QGIS API Documentation 3.99.0-Master (2fe06baccd8)
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
22#include "ui_qgsowssourcewidgetbase.h"
23
25#include "qgsreadwritecontext.h"
26
27#include <QVariantMap>
28
35
36class GUI_EXPORT QgsOWSSourceWidget : public QgsProviderSourceWidget, private Ui::QgsOWSSourceWidgetBase
37{
38 Q_OBJECT
39
40 public:
44 QgsOWSSourceWidget( const QString &providerKey, QWidget *parent = nullptr );
45
46 void setSourceUri( const QString &uri ) override;
47 QString sourceUri() const override;
48
54 void setExtent( const QgsRectangle &extent );
55
61 QgsRectangle extent() const;
62
63
64 void setMapCanvas( QgsMapCanvas *canvas ) override;
65
66
67 private:
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.
QgsRectangle extent() const
Returns the spatial extent from the widget extent box.
QgsOWSSourceWidget(const QString &providerKey, QWidget *parent=nullptr)
Constructor for QgsOWSSourceWidget with the specified provider key and parent widget.
void setExtent(const QgsRectangle &extent)
Sets the spatial extent in the widget extent box.
QgsProviderSourceWidget(QWidget *parent=nullptr)
Constructor for QgsProviderSourceWidget with the specified parent widget.
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.