mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
The aim of this work is to be able to provide custom subset string editor GUI according to the layer. Typically, so that a WFS layer uses the same editor than in its select source, or that a plugin can provide a custom editor. * Add QgsSubsetStringEditorInterface: abstract interface to define a dialog that can edit a subset string * Make QgsQueryBuilder implement QgsSubsetStringEditorInterface * Add QgsSubsetStringEditorProvider: interface for thos who want to provide a dialog to edit a subset string. * Add QgsSubsetStringEditorProviderRegistry: keeps a list of subset string editor providers. Transposed from QgsDataItemGuiProviderRegistry * Add QgsGui::subsetStringEditorProviderRegistry()
93 lines
2.5 KiB
Plaintext
93 lines
2.5 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsproviderguimetadata.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProviderGuiMetadata
|
|
{
|
|
%Docstring
|
|
Holds data for GUI part of the data providers
|
|
|
|
.. versionadded:: 3.10
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgsproviderguimetadata.h"
|
|
%End
|
|
public:
|
|
|
|
explicit QgsProviderGuiMetadata( const QString &key );
|
|
%Docstring
|
|
Constructor for provider gui metadata
|
|
%End
|
|
|
|
virtual ~QgsProviderGuiMetadata();
|
|
|
|
virtual void registerGui( QMainWindow *widget );
|
|
%Docstring
|
|
Called during GUI initialization - allows provider to do its internal initialization
|
|
of GUI components, possibly making use of the passed pointer to the QGIS main window.
|
|
%End
|
|
|
|
virtual QList<QgsDataItemGuiProvider *> dataItemGuiProviders() /Factory/;
|
|
%Docstring
|
|
Returns data item gui providers
|
|
|
|
.. note::
|
|
|
|
Ownership of created data item gui providers is passed to the caller.
|
|
%End
|
|
|
|
virtual QList<QgsProjectStorageGuiProvider *> projectStorageGuiProviders() /Factory/;
|
|
%Docstring
|
|
Returns project storage gui providers
|
|
|
|
.. note::
|
|
|
|
Ownership of created project storage gui providers is passed to the caller.
|
|
%End
|
|
|
|
virtual QList<QgsSourceSelectProvider *> sourceSelectProviders() /Factory/;
|
|
%Docstring
|
|
Returns source select providers
|
|
|
|
.. note::
|
|
|
|
Ownership of created source select providers is passed to the caller.
|
|
%End
|
|
|
|
virtual QList<QgsSubsetStringEditorProvider *> subsetStringEditorProviders() /Factory/;
|
|
%Docstring
|
|
Returns subset string editor providers
|
|
|
|
.. note::
|
|
|
|
Ownership of created providers is passed to the caller.
|
|
|
|
.. versionadded:: 3.18
|
|
%End
|
|
|
|
QString key() const;
|
|
%Docstring
|
|
Returns unique provider key
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgsproviderguimetadata.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|