mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-09 00:08:52 -04: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()
47 lines
1.6 KiB
Plaintext
47 lines
1.6 KiB
Plaintext
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgssubsetstringeditorinterface.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|
|
|
|
|
|
|
|
class QgsSubsetStringEditorInterface: QDialog
|
|
{
|
|
%Docstring
|
|
Interface for a dialog that can edit subset strings
|
|
|
|
.. versionadded:: 3.18
|
|
%End
|
|
|
|
%TypeHeaderCode
|
|
#include "qgssubsetstringeditorinterface.h"
|
|
%End
|
|
public:
|
|
QgsSubsetStringEditorInterface( QWidget *parent /TransferThis/ = 0,
|
|
Qt::WindowFlags fl = QgsGuiUtils::ModalDialogFlags );
|
|
%Docstring
|
|
Constructor
|
|
%End
|
|
|
|
virtual QString subsetString() const = 0;
|
|
%Docstring
|
|
Returns the subset string entered in the dialog.
|
|
%End
|
|
|
|
virtual void setSubsetString( const QString &subsetString ) = 0;
|
|
%Docstring
|
|
Sets a subset string into the dialog.
|
|
%End
|
|
};
|
|
|
|
/************************************************************************
|
|
* This file has been generated automatically from *
|
|
* *
|
|
* src/gui/qgssubsetstringeditorinterface.h *
|
|
* *
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
************************************************************************/
|