This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
More...
#include <qgssourceselectprovider.h>
|
virtual | ~QgsSourceSelectProvider ()=default |
|
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 ). More...
|
|
virtual QIcon | icon () const =0 |
| Creates a new instance of an QIcon for the menu item entry. More...
|
|
virtual QString | name () const |
| Source select provider name, this is useful to retrieve a particular source select in case the provider has more than one, it should be unique among all providers. More...
|
|
virtual int | ordering () const |
| Ordering: the source select provider registry will be able to sort the source selects (ascending) using this integer value. More...
|
|
virtual QString | providerKey () const =0 |
| Data Provider key. More...
|
|
virtual QString | text () const =0 |
| Text for the menu item entry, it will be visible to the user so make sure it's translatable. More...
|
|
virtual QString | toolTip () const |
| Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable. More...
|
|
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog.
- Since
- QGIS 3.0
Definition at line 35 of file qgssourceselectprovider.h.
◆ Ordering
Provider ordering groups.
Enumerator |
---|
OrderLocalProvider | Starting point for local file providers (e.g. OGR)
|
OrderDatabaseProvider | Starting point for database providers (e.g. Postgres)
|
OrderRemoteProvider | Starting point for remote (online) providers (e.g. WMS)
|
OrderGeoCmsProvider | Starting point for GeoCMS type providers (e.g. GeoNode)
|
OrderSearchProvider | Starting point for search providers (e.g. Layer Metadata)
|
OrderOtherProvider | Starting point for other providers (e.g. plugin based providers)
|
Definition at line 40 of file qgssourceselectprovider.h.
◆ ~QgsSourceSelectProvider()
virtual QgsSourceSelectProvider::~QgsSourceSelectProvider |
( |
| ) |
|
|
virtualdefault |
◆ createDataSourceWidget()
◆ icon()
virtual QIcon QgsSourceSelectProvider::icon |
( |
| ) |
const |
|
pure virtual |
◆ name()
virtual QString QgsSourceSelectProvider::name |
( |
| ) |
const |
|
inlinevirtual |
Source select provider name, this is useful to retrieve a particular source select in case the provider has more than one, it should be unique among all providers.
The default implementation returns the providerKey()
Definition at line 62 of file qgssourceselectprovider.h.
◆ ordering()
virtual int QgsSourceSelectProvider::ordering |
( |
| ) |
const |
|
inlinevirtual |
◆ providerKey()
virtual QString QgsSourceSelectProvider::providerKey |
( |
| ) |
const |
|
pure virtual |
◆ text()
virtual QString QgsSourceSelectProvider::text |
( |
| ) |
const |
|
pure virtual |
◆ toolTip()
virtual QString QgsSourceSelectProvider::toolTip |
( |
| ) |
const |
|
inlinevirtual |
Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable.
The default implementation returns an empty string.
Definition at line 72 of file qgssourceselectprovider.h.
The documentation for this class was generated from the following file: