QGIS/python/gui/auto_generated/editorwidgets/qgscheckboxsearchwidgetwrapper.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/qgscheckboxsearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
2016-05-23 13:40:01 +10:00
class QgsCheckboxSearchWidgetWrapper : QgsSearchWidgetWrapper
{
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Wraps a checkbox edit widget for searching.
2017-05-08 08:36:06 +02:00
.. versionadded:: 2.16
%End
%TypeHeaderCode
2017-05-08 08:36:06 +02:00
#include "qgscheckboxsearchwidgetwrapper.h"
%End
public:
explicit QgsCheckboxSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
2017-05-08 08:36:06 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Constructor for QgsCheckboxSearchWidgetWrapper.
2017-12-15 21:36:08 -04:00
2017-12-15 10:36:55 -04:00
:param vl: associated vector layer
:param fieldIdx: index of associated field
:param parent: parent widget
2017-05-08 08:36:06 +02:00
%End
2016-05-23 13:40:01 +10:00
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
.. note::
2016-05-23 13:40:01 +10:00
2017-05-08 08:36:06 +02:00
this will not be a boolean true or false value, it will instead
2018-01-12 20:51:17 -04:00
be the values configured to represent checked and unchecked states in
the editor widget configuration.
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 QgsSearchWidgetWrapper::FilterFlags defaultFlags() 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 );
protected slots:
2017-11-01 19:31:13 +01:00
virtual void setExpression( const QString &expression );
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/qgscheckboxsearchwidgetwrapper.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/