QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
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
23
#include "
qgsprovidersourcewidget.h
"
24
#include "
qgsreadwritecontext.h
"
25
26
#include <QVariantMap>
27
28
#define SIP_NO_FILE
29
36
37
class
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
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:96
QgsOWSSourceWidget::extent
QgsRectangle extent() const
Returns the spatial extent from the widget extent box.
Definition
qgsowssourcewidget.cpp:74
QgsOWSSourceWidget::QgsOWSSourceWidget
QgsOWSSourceWidget(const QString &providerKey, QWidget *parent=nullptr)
Constructor for QgsOWSSourceWidget with the specified provider key and parent widget.
Definition
qgsowssourcewidget.cpp:30
QgsOWSSourceWidget::setExtent
void setExtent(const QgsRectangle &extent)
Sets the spatial extent in the widget extent box.
Definition
qgsowssourcewidget.cpp:59
QgsProviderSourceWidget::QgsProviderSourceWidget
QgsProviderSourceWidget(QWidget *parent=nullptr)
Constructor for QgsProviderSourceWidget with the specified parent widget.
Definition
qgsprovidersourcewidget.cpp:23
QgsProviderSourceWidget::sourceUri
virtual QString sourceUri() const =0
Returns the source URI as currently defined by the widget.
QgsProviderSourceWidget::setMapCanvas
virtual void setMapCanvas(QgsMapCanvas *mapCanvas)
Sets a map canvas associated with the widget.
Definition
qgsprovidersourcewidget.h:71
QgsProviderSourceWidget::setSourceUri
virtual void setSourceUri(const QString &uri)=0
Sets the source uri to show in the widget.
QgsRectangle
A rectangle specified with double values.
Definition
qgsrectangle.h:47
qgsprovidersourcewidget.h
qgsreadwritecontext.h
Generated on
for QGIS API Documentation by
1.17.0