QGIS API Documentation
3.99.0-Master (26c88405ac0)
Loading...
Searching...
No Matches
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 "qgis_gui.h"
21
#include "
qgis_sip.h
"
22
23
#include <QWidget>
24
25
class
QgsMapCanvas
;
26
33
class
GUI_EXPORT
QgsProviderSourceWidget
:
public
QWidget
34
{
35
Q_OBJECT
36
37
public
:
38
42
QgsProviderSourceWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
43
49
virtual
void
setSourceUri
(
const
QString &uri ) = 0;
50
56
virtual
QString
sourceUri
()
const
= 0;
57
65
virtual
QString
groupTitle
()
const
{
return
QString(); }
66
72
virtual
void
setMapCanvas
(
QgsMapCanvas
*
mapCanvas
) { mMapCanvas =
mapCanvas
; }
73
79
virtual
QgsMapCanvas
*
mapCanvas
() {
return
mMapCanvas; }
80
81
signals:
82
89
void
validChanged
(
bool
isValid );
90
96
void
changed
();
97
98
private
:
99
QgsMapCanvas
*mMapCanvas =
nullptr
;
100
};
101
#endif
//QGSPROVIDERSOURCEWIDGET_H
QgsMapCanvas
Map canvas is a class for displaying all GIS data types on a canvas.
Definition
qgsmapcanvas.h:91
QgsProviderSourceWidget::mapCanvas
virtual QgsMapCanvas * mapCanvas()
Returns the map canvas associated with the widget.
Definition
qgsprovidersourcewidget.h:79
QgsProviderSourceWidget::groupTitle
virtual QString groupTitle() const
Returns an optional group title for the source settings, for use in layer properties dialogs.
Definition
qgsprovidersourcewidget.h:65
QgsProviderSourceWidget::validChanged
void validChanged(bool isValid)
Emitted whenever the validation status of the widget changes.
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::changed
void changed()
Emitted whenever the configuration of the widget changes.
QgsProviderSourceWidget::setMapCanvas
virtual void setMapCanvas(QgsMapCanvas *mapCanvas)
Sets a map canvas associated with the widget.
Definition
qgsprovidersourcewidget.h:72
QgsProviderSourceWidget::setSourceUri
virtual void setSourceUri(const QString &uri)=0
Sets the source uri to show in the widget.
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:53
Generated on
for QGIS API Documentation by
1.15.0