QGIS API Documentation
4.3.0-Master (52aa6503bed)
Toggle main menu visibility
Loading...
Searching...
No Matches
src
gui
qgslayermetadatasourceselectprovider.h
Go to the documentation of this file.
1
/***************************************************************************
2
qgslayermetadatasourceselectprovider.h - QgsLayerMetadataSourceSelectProvider
3
4
---------------------
5
begin : 6.9.2022
6
copyright : (C) 2022 by Alessandro Pasotti
7
email : elpaso at itopen dot it
8
***************************************************************************
9
* *
10
* This program is free software; you can redistribute it and/or modify *
11
* it under the terms of the GNU General Public License as published by *
12
* the Free Software Foundation; either version 2 of the License, or *
13
* (at your option) any later version. *
14
* *
15
***************************************************************************/
16
#ifndef QGSLAYERMETADATASOURCESELECTPROVIDER_H
17
#define QGSLAYERMETADATASOURCESELECTPROVIDER_H
18
19
#include "qgis_gui.h"
20
#include "
qgssourceselectprovider.h
"
21
22
#define SIP_NO_FILE
23
31
class
GUI_EXPORT
QgsLayerMetadataSourceSelectProvider
:
public
QgsSourceSelectProvider
32
{
33
public
:
34
QgsLayerMetadataSourceSelectProvider
();
35
36
// QgsSourceSelectProvider interface
37
public
:
38
QString
providerKey
()
const override
;
39
QString
text
()
const override
;
40
QString
toolTip
()
const override
;
41
QIcon
icon
()
const override
;
42
QgsAbstractDataSourceWidget
*
createDataSourceWidget
( QWidget *parent, Qt::WindowFlags fl,
QgsProviderRegistry::WidgetMode
widgetMode )
const override
;
43
int
ordering
()
const override
;
44
};
45
46
#endif
// QGSLAYERMETADATASOURCESELECTPROVIDER_H
QgsAbstractDataSourceWidget
Abstract base class for Data Source widgets to create connections and add layers.
Definition
qgsabstractdatasourcewidget.h:47
QgsLayerMetadataSourceSelectProvider::QgsLayerMetadataSourceSelectProvider
QgsLayerMetadataSourceSelectProvider()
Definition
qgslayermetadatasourceselectprovider.cpp:25
QgsProviderRegistry::WidgetMode
WidgetMode
Different ways a source select dialog can be used.
Definition
qgsproviderregistry.h:69
QgsSourceSelectProvider
An interface for pages shown in a QgsDataSourceManagerDialog.
Definition
qgssourceselectprovider.h:34
QgsSourceSelectProvider::providerKey
virtual QString providerKey() const =0
Data Provider key.
QgsSourceSelectProvider::ordering
virtual int ordering() const
Ordering: the source select provider registry will be able to sort the source selects (ascending) usi...
Definition
qgssourceselectprovider.h:93
QgsSourceSelectProvider::createDataSourceWidget
virtual QgsAbstractDataSourceWidget * createDataSourceWidget(QWidget *parent=nullptr, Qt::WindowFlags fl=Qt::Widget, QgsProviderRegistry::WidgetMode widgetMode=QgsProviderRegistry::WidgetMode::Embedded) const =0
Create a new instance of QgsAbstractDataSourceWidget (or nullptr).
QgsSourceSelectProvider::icon
virtual QIcon icon() const =0
Creates a new instance of an QIcon for the menu item entry.
QgsSourceSelectProvider::text
virtual QString text() const =0
Text for the menu item entry, it will be visible to the user so make sure it's translatable.
QgsSourceSelectProvider::toolTip
virtual QString toolTip() const
Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable.
Definition
qgssourceselectprovider.h:84
qgssourceselectprovider.h
Generated on
for QGIS API Documentation by
1.17.0