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

75 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/qgsvaluerelationsearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsValueRelationSearchWidgetWrapper : QgsSearchWidgetWrapper
{
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Wraps a value relation search widget. This widget will offer a combobox with values from another layer
referenced by a foreign key (a constraint may be set but is not required on data level).
It will be used as a search widget and produces expression to look for in the layer.
2017-05-08 08:36:06 +02:00
%End
%TypeHeaderCode
2017-05-08 08:36:06 +02:00
#include "qgsvaluerelationsearchwidgetwrapper.h"
%End
public:
explicit QgsValueRelationSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
%Docstring
Constructor for QgsValueRelationSearchWidgetWrapper
%End
2017-05-08 08:36:06 +02:00
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;
QVariant value() const;
2017-05-08 08:36:06 +02:00
virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;
2017-05-08 08:36:06 +02:00
virtual QgsSearchWidgetWrapper::FilterFlags defaultFlags() const;
virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;
2017-05-08 08:36:06 +02:00
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 );
2016-12-05 15:43:15 +01:00
protected slots:
void onValueChanged();
2017-05-08 08:36:06 +02:00
%Docstring
Called when current value of search widget changes
%End
2017-11-01 19:31:13 +01:00
virtual void setExpression( const QString &exp );
2016-12-05 15:43:15 +01:00
};
2017-05-08 08:36:06 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/editorwidgets/qgsvaluerelationsearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/