QGIS/python/gui/qgsfieldvalueslineedit.sip

91 lines
2.8 KiB
Plaintext
Raw Normal View History

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 *
************************************************************************/
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
%TypeHeaderCode
2017-05-23 14:44:34 +02:00
#include "qgsfieldvalueslineedit.h"
%End
public:
QgsFieldValuesLineEdit( QWidget *parent /TransferThis/ = 0 );
2017-05-23 14:44:34 +02:00
%Docstring
Constructor for QgsFieldValuesLineEdit
\param parent parent widget
%End
virtual ~QgsFieldValuesLineEdit();
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
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
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
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
signals:
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
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
};
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 *
************************************************************************/