QGIS API Documentation 3.99.0-Master (a8f284845db)
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
21#include "ui_qgsowssourcewidgetbase.h"
22
24#include "qgsreadwritecontext.h"
25
26#include <QVariantMap>
27
28#define SIP_NO_FILE
29
36
37class GUI_EXPORT QgsOWSSourceWidget : public QgsProviderSourceWidget, private Ui::QgsOWSSourceWidgetBase
38{
39 Q_OBJECT
40
41 public:
45 QgsOWSSourceWidget( const QString &providerKey, QWidget *parent = nullptr );
46
47 void setSourceUri( const QString &uri ) override;
48 QString sourceUri() const override;
49
55 void setExtent( const QgsRectangle &extent );
56
62 QgsRectangle extent() const;
63
64
65 void setMapCanvas( QgsMapCanvas *canvas ) override;
66
67
68 private:
69 QVariantMap mSourceParts;
70 const QString mProviderKey;
71};
72
73#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.