QGIS API Documentation 3.28.0-Firenze (ed3ad0430f)
|
This is the interface for those who want to add entries to the QgsDataSourceManagerDialog. More...
#include <qgssourceselectprovider.h>
Public Types | |
enum | Ordering { OrderLocalProvider = 0 , OrderDatabaseProvider = 1000 , OrderRemoteProvider = 2000 , OrderGeoCmsProvider = 3000 , OrderSearchProvider = 4000 , OrderOtherProvider = 5000 } |
Provider ordering groups. More... | |
Public Member Functions | |
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.
Definition at line 35 of file qgssourceselectprovider.h.
Provider ordering groups.
Definition at line 40 of file qgssourceselectprovider.h.
|
virtualdefault |
|
pure virtual |
Create a new instance of QgsAbstractDataSourceWidget (or nullptr
).
Caller takes responsibility of deleting created.
Implemented in QgsLayerMetadataSourceSelectProvider.
|
pure virtual |
Creates a new instance of an QIcon for the menu item entry.
Implemented in QgsLayerMetadataSourceSelectProvider.
|
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.
|
inlinevirtual |
Ordering: the source select provider registry will be able to sort the source selects (ascending) using this integer value.
Reimplemented in QgsLayerMetadataSourceSelectProvider.
Definition at line 81 of file qgssourceselectprovider.h.
|
pure virtual |
Data Provider key.
Implemented in QgsLayerMetadataSourceSelectProvider.
|
pure virtual |
Text for the menu item entry, it will be visible to the user so make sure it's translatable.
Implemented in QgsLayerMetadataSourceSelectProvider.
|
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.