QGIS API Documentation 3.41.0-Master (fda2aa46e9a)
|
Source select provider for layer metadata. More...
#include <qgslayermetadatasourceselectprovider.h>
Public Member Functions | |
QgsLayerMetadataSourceSelectProvider () | |
QgsAbstractDataSourceWidget * | createDataSourceWidget (QWidget *parent, Qt::WindowFlags fl, QgsProviderRegistry::WidgetMode widgetMode) const override |
Create a new instance of QgsAbstractDataSourceWidget (or nullptr ). | |
QIcon | icon () const override |
Creates a new instance of an QIcon for the menu item entry. | |
int | ordering () const override |
Ordering: the source select provider registry will be able to sort the source selects (ascending) using this integer value. | |
QString | providerKey () const override |
Data Provider key. | |
QString | text () const override |
Text for the menu item entry, it will be visible to the user so make sure it's translatable. | |
QString | toolTip () const override |
Text for the tooltip menu item entry, it will be visible to the user so make sure it's translatable. | |
Public Member Functions inherited from QgsSourceSelectProvider | |
virtual | ~QgsSourceSelectProvider ()=default |
virtual Capabilities | capabilities () |
Returns the source select provider capabilities. | |
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. | |
Additional Inherited Members | |
Public Types inherited from QgsSourceSelectProvider | |
typedef QFlags< Capability > | Capabilities |
enum class | Capability : int { NoCapabilities = 0 , ConfigureFromUri = 1 } |
The Capability enum describes the capabilities of the source select implementation. More... | |
enum | Ordering { OrderLocalProvider = 0 , OrderDatabaseProvider = 1000 , OrderRemoteProvider = 2000 , OrderSearchProvider = 4000 , OrderOtherProvider = 5000 } |
Provider ordering groups. More... | |
Source select provider for layer metadata.
Definition at line 32 of file qgslayermetadatasourceselectprovider.h.
QgsLayerMetadataSourceSelectProvider::QgsLayerMetadataSourceSelectProvider | ( | ) |
Definition at line 20 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
Create a new instance of QgsAbstractDataSourceWidget (or nullptr
).
Caller takes responsibility of deleting created.
Implements QgsSourceSelectProvider.
Definition at line 47 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
Creates a new instance of an QIcon for the menu item entry.
Implements QgsSourceSelectProvider.
Definition at line 42 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
Ordering: the source select provider registry will be able to sort the source selects (ascending) using this integer value.
Reimplemented from QgsSourceSelectProvider.
Definition at line 52 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
Data Provider key.
Implements QgsSourceSelectProvider.
Definition at line 26 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
Text for the menu item entry, it will be visible to the user so make sure it's translatable.
Implements QgsSourceSelectProvider.
Definition at line 32 of file qgslayermetadatasourceselectprovider.cpp.
|
overridevirtual |
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.
Reimplemented from QgsSourceSelectProvider.
Definition at line 37 of file qgslayermetadatasourceselectprovider.cpp.