QGIS API Documentation
3.26.3-Buenos Aires (65e4edfdad)
src
gui
qgsprovidersourcewidget.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgsprovidersourcewidget.h
3
---------------
4
begin : December 2020
5
copyright : (C) 2020 by Nyall Dawson
6
email : nyall dot dawson at gmail 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 QGSPROVIDERSOURCEWIDGET_H
18
#define QGSPROVIDERSOURCEWIDGET_H
19
20
#include <QWidget>
21
#include "qgis_gui.h"
22
#include "
qgis_sip.h
"
23
24
class
QgsMapCanvas
;
25
32
class
GUI_EXPORT
QgsProviderSourceWidget
:
public
QWidget
33
{
34
Q_OBJECT
35
36
public
:
37
41
QgsProviderSourceWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
42
48
virtual
void
setSourceUri(
const
QString &uri ) = 0;
49
55
virtual
QString sourceUri()
const
= 0;
56
62
virtual
void
setMapCanvas
(
QgsMapCanvas
*mapCanvas ) { mMapCanvas = mapCanvas; }
63
69
virtual
QgsMapCanvas
*
mapCanvas
() {
return
mMapCanvas; }
70
71
signals:
72
79
void
validChanged(
bool
isValid );
80
81
private
:
82
QgsMapCanvas
*mMapCanvas =
nullptr
;
83
84
};
85
#endif //QGSPROVIDERSOURCEWIDGET_H
QgsProviderSourceWidget::setMapCanvas
virtual void setMapCanvas(QgsMapCanvas *mapCanvas)
Sets a map canvas associated with the widget.
Definition:
qgsprovidersourcewidget.h:62
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition:
qgsmapcanvas.h:89
QgsProviderSourceWidget
Base class for widgets which allow customization of a provider's source URI.
Definition:
qgsprovidersourcewidget.h:32
qgis_sip.h
QgsProviderSourceWidget::mapCanvas
virtual QgsMapCanvas * mapCanvas()
Returns the map canvas associated with the widget.
Definition:
qgsprovidersourcewidget.h:69
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition:
qgis_sip.h:53
Generated on Sun Sep 11 2022 00:03:17 for QGIS API Documentation by
1.8.17