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
|
|
|
|
2016-05-23 02:35:42 +10:00
|
|
|
class QgsCheckboxSearchWidgetWrapper : QgsSearchWidgetWrapper
|
|
|
|
{
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Wraps a checkbox edit widget for searching.
|
|
|
|
.. versionadded:: 2.16
|
|
|
|
%End
|
|
|
|
|
2016-05-23 02:35:42 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-08 08:36:06 +02:00
|
|
|
#include "qgscheckboxsearchwidgetwrapper.h"
|
2016-05-23 02:35:42 +10:00
|
|
|
%End
|
|
|
|
public:
|
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
explicit QgsCheckboxSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsCheckboxSearchWidgetWrapper.
|
|
|
|
\param vl associated vector layer
|
|
|
|
\param fieldIdx index of associated field
|
|
|
|
\param parent parent widget
|
|
|
|
%End
|
2016-05-23 02:35:42 +10:00
|
|
|
|
2016-05-23 13:40:01 +10:00
|
|
|
QVariant value() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
|
|
|
Returns a variant representing the current state of the widget.
|
|
|
|
.. 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
|
|
|
|
be the values configured to represent checked and unchecked states in
|
|
|
|
the editor widget configuration.
|
|
|
|
:rtype: QVariant
|
|
|
|
%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;
|
2016-05-23 02:35:42 +10: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-05-23 02:35:42 +10:00
|
|
|
|
|
|
|
protected slots:
|
2017-11-01 19:31:13 +01:00
|
|
|
virtual void setExpression( const QString &expression );
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
|
2016-05-23 02:35:42 +10: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 *
|
|
|
|
************************************************************************/
|