QGIS/python/gui/auto_generated/editorwidgets/qgsrelationreferencesearchwidgetwrapper.sip.in

86 lines
2.4 KiB
Plaintext
Raw Normal View History

2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsRelationReferenceSearchWidgetWrapper : QgsSearchWidgetWrapper
{
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Wraps a relation reference search widget.
2017-05-08 08:36:06 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
2017-05-08 08:36:06 +02:00
#include "qgsrelationreferencesearchwidgetwrapper.h"
%End
public:
explicit QgsRelationReferenceSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QgsMapCanvas *canvas, QWidget *parent = 0 );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsRelationReferenceSearchWidgetWrapper
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param vl: associated vector layer
:param fieldIdx: associated field index
:param canvas: optional map canvas
:param parent: parent widget
2017-05-08 08:36:06 +02:00
%End
QVariant value() const;
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns a variant representing the current state of the widget.
2017-05-08 08:36:06 +02:00
%End
virtual bool applyDirectly();
2017-11-01 19:31:13 +01:00
virtual QString expression() const;
2017-05-08 08:36:06 +02:00
virtual bool valid() const;
virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;
virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;
public slots:
virtual void clearWidget();
virtual void setEnabled( bool enabled );
protected:
2017-05-08 08:36:06 +02:00
virtual QWidget *createWidget( QWidget *parent );
virtual void initWidget( QWidget *editor );
public slots:
void onValueChanged( const QVariant &value );
2017-05-08 08:36:06 +02:00
%Docstring
Called when current value of search widget changes
%End
protected slots:
2017-11-01 19:31:13 +01:00
virtual void setExpression( const QString &exp );
2017-05-08 08:36:06 +02:00
};
2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsrelationreferencesearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/