2017-05-23 14:44:34 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsfieldvalueslineedit.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-12-15 16:46:29 +10:00
|
|
|
class QgsFieldValuesLineEdit: QgsFilterLineEdit
|
|
|
|
{
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
A line edit with an autocompleter which takes unique values from a vector layer's fields.
|
|
|
|
The autocompleter is populated from the vector layer in the background to ensure responsive
|
|
|
|
interaction with the widget.
|
|
|
|
.. versionadded:: 3.0
|
|
|
|
%End
|
|
|
|
|
2016-12-15 16:46:29 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-23 14:44:34 +02:00
|
|
|
#include "qgsfieldvalueslineedit.h"
|
2016-12-15 16:46:29 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
QgsFieldValuesLineEdit( QWidget *parent /TransferThis/ = 0 );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsFieldValuesLineEdit
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
|
|
|
virtual ~QgsFieldValuesLineEdit();
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setLayer( QgsVectorLayer *layer );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the layer containing the field that values will be shown from.
|
|
|
|
\param layer vector layer
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`layer()`
|
|
|
|
.. seealso:: :py:func:`setAttributeIndex()`
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsVectorLayer *layer() const;
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the layer containing the field that values will be shown from.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setLayer()`
|
|
|
|
.. seealso:: :py:func:`attributeIndex()`
|
2017-05-23 14:44:34 +02:00
|
|
|
:rtype: QgsVectorLayer
|
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
|
|
|
void setAttributeIndex( int index );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Sets the attribute index for the field containing values to show in the widget.
|
|
|
|
\param index index of attribute
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`attributeIndex()`
|
|
|
|
.. seealso:: :py:func:`setLayer()`
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
|
|
|
int attributeIndex() const;
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Returns the attribute index for the field containing values shown in the widget.
|
2017-12-05 20:04:14 -04:00
|
|
|
.. seealso:: :py:func:`setAttributeIndex()`
|
|
|
|
.. seealso:: :py:func:`layer()`
|
2017-05-23 14:44:34 +02:00
|
|
|
:rtype: int
|
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
|
|
|
signals:
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void layerChanged( QgsVectorLayer *layer );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the layer associated with the widget changes.
|
|
|
|
\param layer vector layer
|
|
|
|
%End
|
2016-12-15 16:46:29 +10:00
|
|
|
|
|
|
|
void attributeIndexChanged( int index );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
|
|
|
Emitted when the field associated with the widget changes.
|
|
|
|
\param index new attribute index for field
|
|
|
|
%End
|
|
|
|
|
2016-12-15 16:46:29 +10:00
|
|
|
};
|
2017-05-23 14:44:34 +02:00
|
|
|
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsfieldvalueslineedit.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|