QGIS API Documentation 3.34.0-Prizren (ffbdd678812)
|
This is the interface for those who want to provide a dialog to edit a subset string. More...
#include <qgssubsetstringeditorprovider.h>
Public Member Functions | |
virtual | ~QgsSubsetStringEditorProvider () |
Destructor. | |
virtual bool | canHandleLayer (QgsVectorLayer *layer) const =0 |
Returns true if the provider can handle the layer. | |
virtual bool | canHandleLayerStorageType (QgsVectorLayer *layer) const |
Returns true if the provider can handle specifically the layer->provider()->storageType() This method will only be called if canHandleLayer() returned true. | |
virtual QgsSubsetStringEditorInterface * | createDialog (QgsVectorLayer *layer, QWidget *parent=nullptr, Qt::WindowFlags fl=QgsGuiUtils::ModalDialogFlags)=0 |
Creates a new dialog to edit the subset string of the provided layer. | |
virtual QString | name () const |
Subset string editor provider name, this is useful to retrieve a particular subset string editor in case the provider has more than one, it should be unique among all providers. | |
virtual QString | providerKey () const =0 |
Provider key. | |
This is the interface for those who want to provide a dialog to edit a subset string.
Definition at line 37 of file qgssubsetstringeditorprovider.h.
|
virtualdefault |
Destructor.
|
pure virtual |
Returns true if the provider can handle the layer.
|
inlinevirtual |
Returns true if the provider can handle specifically the layer->provider()->storageType() This method will only be called if canHandleLayer() returned true.
Typically a generic SQL provider for the OGR provider will return false, whereas a dedicated plugin with a specific behavior for a OGR driver will return true.
Definition at line 66 of file qgssubsetstringeditorprovider.h.
|
pure virtual |
Creates a new dialog to edit the subset string of the provided layer.
It may return nullptr if it cannot handle the layer. The returned object must be destroyed by the caller. On successful accept(), the QgsSubsetStringEditorInterface implementation is responsible for setting the updated string on layer.
|
inlinevirtual |
Subset string editor provider name, this is useful to retrieve a particular subset string editor in case the provider has more than one, it should be unique among all providers.
The default implementation returns the providerKey()
Definition at line 53 of file qgssubsetstringeditorprovider.h.
|
pure virtual |
Provider key.