QGIS/python/gui/auto_generated/qgsfeaturepickerwidget.sip.in

202 lines
5.1 KiB
Plaintext
Raw Normal View History

2020-04-21 14:42:39 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfeaturepickerwidget.h *
2020-04-21 14:42:39 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2020-04-30 09:41:05 +02:00
class QgsFeaturePickerWidget : QWidget
2020-04-21 14:42:39 +02:00
{
2021-03-22 21:13:52 +01:00
%Docstring(signature="appended")
2020-04-21 14:42:39 +02:00
This offers a combobox with autocompleter that allows selecting features from a layer.
It will show up to 100 entries at a time. The entries can be chosen based on the displayExpression
and whenever text is typed into the combobox, the completer and popup will adjust to features matching the typed text.
.. versionadded:: 3.14
2020-04-21 14:42:39 +02:00
%End
%TypeHeaderCode
#include "qgsfeaturepickerwidget.h"
2020-04-21 14:42:39 +02:00
%End
public:
QgsFeaturePickerWidget( QWidget *parent = 0 );
2020-04-21 14:42:39 +02:00
%Docstring
Create a new QgsFeaturePickerWidget, optionally specifying a ``parent``.
2020-04-21 14:42:39 +02:00
%End
QgsVectorLayer *layer() const;
%Docstring
The layer from which features should be listed.
%End
void setLayer( QgsVectorLayer *layer );
%Docstring
The layer from which features should be listed.
%End
void setFeature( QgsFeatureId featureId );
2020-04-21 14:42:39 +02:00
%Docstring
Sets the current index by using the given feature
2020-04-29 14:58:31 +02:00
%End
QgsFeature feature() const;
%Docstring
Returns the current feature
2020-04-21 14:42:39 +02:00
%End
QString displayExpression() const;
%Docstring
The display expression will be used to display features as well as
the value to match the typed text against.
%End
void setDisplayExpression( const QString &displayExpression );
%Docstring
The display expression will be used to display features as well as
the value to match the typed text against.
%End
QString filterExpression() const;
%Docstring
An additional expression to further restrict the available features.
This can be used to integrate additional spatial or other constraints.
%End
int nullIndex() const;
%Docstring
Returns the current index of the NULL value, or -1 if NULL values are
not allowed.
%End
void setFilterExpression( const QString &filterExpression );
%Docstring
An additional expression to further restrict the available features.
This can be used to integrate additional spatial or other constraints.
%End
bool allowNull() const;
%Docstring
Determines if a NULL value should be available in the list.
%End
void setAllowNull( bool allowNull );
%Docstring
Determines if a NULL value should be available in the list.
2020-04-29 14:58:31 +02:00
%End
bool fetchGeometry() const;
%Docstring
Returns if the geometry is fetched
%End
void setFetchGeometry( bool fetchGeometry );
%Docstring
Defines if the geometry will be fetched
%End
int fetchLimit() const;
%Docstring
Returns the feature request fetch limit
%End
void setFetchLimit( int fetchLimit );
%Docstring
Defines the feature request fetch limit
If set to 0, no limit is applied when fetching
2020-04-21 14:42:39 +02:00
%End
2020-04-30 09:41:05 +02:00
bool showBrowserButtons() const;
%Docstring
Returns if the browsing buttons are shown
%End
void setShowBrowserButtons( bool showBrowserButtons );
%Docstring
Defines if the browsing buttons are shown
.. note::
Buttons are browsing the currently fetched features. If a limit is set, there might be more features to be fetched from the layer.
2020-04-30 09:41:05 +02:00
%End
2020-04-21 14:42:39 +02:00
QModelIndex currentModelIndex() const;
%Docstring
The index of the currently selected item.
%End
virtual void focusOutEvent( QFocusEvent *event );
virtual void keyPressEvent( QKeyEvent *event );
signals:
void modelUpdated();
%Docstring
The underlying model has been updated.
%End
void layerChanged();
%Docstring
The layer from which features should be listed.
%End
void displayExpressionChanged();
%Docstring
The display expression will be used to display features as well as
the the value to match the typed text against.
%End
void filterExpressionChanged();
%Docstring
An additional expression to further restrict the available features.
This can be used to integrate additional spatial or other constraints.
2020-04-29 14:58:31 +02:00
%End
void featureChanged( const QgsFeature &feature );
%Docstring
Sends the feature as soon as it is chosen
2020-04-21 14:42:39 +02:00
%End
void allowNullChanged();
%Docstring
Determines if a NULL value should be available in the list.
%End
2020-04-29 14:58:31 +02:00
void fetchGeometryChanged();
2020-04-21 14:42:39 +02:00
%Docstring
2020-04-29 14:58:31 +02:00
Emitted when the fetching of the geometry changes
%End
void fetchLimitChanged();
%Docstring
Emitted when the fetching limit for the feature request changes
2020-04-30 09:41:05 +02:00
%End
void showBrowserButtonsChanged();
%Docstring
Emitted when showing the browser buttons changes
2020-04-21 14:42:39 +02:00
%End
};
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/qgsfeaturepickerwidget.h *
2020-04-21 14:42:39 +02:00
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/