QGIS API Documentation 3.41.0-Master (181b2f43d8e)
|
A registry / canonical manager of GUI parts of data providers. More...
#include <qgsproviderguiregistry.h>
Public Types | |
typedef std::map< QString, QgsProviderGuiMetadata * > | GuiProviders |
Type for data provider metadata associative container. | |
Public Member Functions | |
QgsProviderGuiRegistry (const QString &pluginPath) | |
Creates registry and loads static provider plugins. | |
virtual | ~QgsProviderGuiRegistry () |
virtual const QList< QgsDataItemGuiProvider * > | dataItemGuiProviders (const QString &providerKey) |
Returns all data item gui providers registered in provider with providerKey. | |
virtual QList< const QgsMapLayerConfigWidgetFactory * > | mapLayerConfigWidgetFactories (QgsMapLayer *layer=nullptr) |
Returns all map layer config widget factories associated with the registered providers. | |
virtual QList< QgsProjectStorageGuiProvider * > | projectStorageGuiProviders (const QString &providerKey) |
Returns all project storage gui providers registered in provider with providerKey. | |
QStringList | providerList () const |
Returns list of available providers by their keys. | |
const QgsProviderGuiMetadata * | providerMetadata (const QString &providerKey) const |
Returns metadata of the provider or nullptr if not found. | |
void | registerGuis (QMainWindow *widget) |
Called during GUI initialization - allows providers to do its internal initialization of GUI components, possibly making use of the passed pointer to the QGIS main window. | |
virtual QList< QgsSourceSelectProvider * > | sourceSelectProviders (const QString &providerKey) |
Returns all source select providers registered in provider with providerKey. | |
virtual QList< QgsProviderSourceWidgetProvider * > | sourceWidgetProviders (const QString &providerKey) |
Returns all source widget providers registered in provider with providerKey. | |
virtual QList< QgsSubsetStringEditorProvider * > | subsetStringEditorProviders (const QString &providerKey) |
Returns all subset string editor providers registered in provider with providerKey. | |
A registry / canonical manager of GUI parts of data providers.
QgsProviderGuiRegistry is not usually directly created, but rather accessed through QgsGui::providerGuiRegistry().
setPluginPath() should be called (once) to load dynamic providers. Static providers are loaded in constructor.
Definition at line 53 of file qgsproviderguiregistry.h.
typedef std::map<QString, QgsProviderGuiMetadata *> QgsProviderGuiRegistry::GuiProviders |
Type for data provider metadata associative container.
Definition at line 116 of file qgsproviderguiregistry.h.
QgsProviderGuiRegistry::QgsProviderGuiRegistry | ( | const QString & | pluginPath | ) |
Creates registry and loads static provider plugins.
Definition at line 80 of file qgsproviderguiregistry.cpp.
|
virtual |
Definition at line 225 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all data item gui providers registered in provider with providerKey.
Definition at line 244 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all map layer config widget factories associated with the registered providers.
The optional layer argument can be used to only return factories which support the specified layer.
Definition at line 284 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all project storage gui providers registered in provider with providerKey.
Definition at line 260 of file qgsproviderguiregistry.cpp.
QStringList QgsProviderGuiRegistry::providerList | ( | ) | const |
Returns list of available providers by their keys.
Definition at line 299 of file qgsproviderguiregistry.cpp.
const QgsProviderGuiMetadata * QgsProviderGuiRegistry::providerMetadata | ( | const QString & | providerKey | ) | const |
Returns metadata of the provider or nullptr
if not found.
Definition at line 309 of file qgsproviderguiregistry.cpp.
void QgsProviderGuiRegistry::registerGuis | ( | QMainWindow * | widget | ) |
Called during GUI initialization - allows providers to do its internal initialization of GUI components, possibly making use of the passed pointer to the QGIS main window.
Definition at line 236 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all source select providers registered in provider with providerKey.
Definition at line 252 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all source widget providers registered in provider with providerKey.
Definition at line 276 of file qgsproviderguiregistry.cpp.
|
virtual |
Returns all subset string editor providers registered in provider with providerKey.
Definition at line 268 of file qgsproviderguiregistry.cpp.