2017-05-08 08:36:06 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
class QgsDefaultSearchWidgetWrapper : QgsSearchWidgetWrapper
|
|
|
|
{
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Wraps a search widget. Default form is just a QgsLineFilterEdit
|
2017-05-08 08:36:06 +02:00
|
|
|
%End
|
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
%TypeHeaderCode
|
2017-05-08 08:36:06 +02:00
|
|
|
#include "qgsdefaultsearchwidgetwrapper.h"
|
2016-05-17 14:16:17 +10:00
|
|
|
%End
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-02 07:21:20 +02:00
|
|
|
explicit QgsDefaultSearchWidgetWrapper( QgsVectorLayer *vl, int fieldIdx, QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsDefaultSearchWidgetWrapper
|
|
|
|
%End
|
2016-05-17 14:16:17 +10:00
|
|
|
|
|
|
|
public:
|
2017-11-01 19:31:13 +01:00
|
|
|
virtual QString expression() const;
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
virtual bool applyDirectly();
|
|
|
|
|
|
|
|
virtual QgsSearchWidgetWrapper::FilterFlags supportedFlags() const;
|
|
|
|
|
|
|
|
virtual QgsSearchWidgetWrapper::FilterFlags defaultFlags() const;
|
|
|
|
|
|
|
|
virtual QString createExpression( QgsSearchWidgetWrapper::FilterFlags flags ) const;
|
2016-05-17 14:16:17 +10:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
public slots:
|
|
|
|
|
|
|
|
virtual void clearWidget();
|
2017-05-08 08:36:06 +02:00
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
virtual void setEnabled( bool enabled );
|
|
|
|
|
2017-12-15 08:57:22 +10:00
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
protected slots:
|
2017-11-01 19:31:13 +01:00
|
|
|
virtual void setExpression( const QString &exp );
|
2017-05-08 08:36:06 +02:00
|
|
|
|
2016-05-17 14:16:17 +10:00
|
|
|
|
|
|
|
protected:
|
2017-05-08 08:36:06 +02:00
|
|
|
virtual QWidget *createWidget( QWidget *parent );
|
|
|
|
|
|
|
|
virtual void initWidget( QWidget *editor );
|
|
|
|
|
|
|
|
virtual bool valid() const;
|
|
|
|
|
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QgsFilterLineEdit *lineEdit();
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a pointer to the line edit part of the widget.
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
this method is in place for unit testing only, and is not considered
|
2018-01-12 20:51:17 -04:00
|
|
|
stable API
|
2017-05-08 08:36:06 +02:00
|
|
|
%End
|
2016-05-17 14:16:17 +10:00
|
|
|
|
2017-05-01 18:13:15 +02:00
|
|
|
QCheckBox *caseSensitiveCheckBox();
|
2017-05-08 08:36:06 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns a pointer to the case sensitivity checkbox in the widget.
|
|
|
|
|
2017-05-08 08:36:06 +02:00
|
|
|
.. note::
|
|
|
|
|
|
|
|
this method is in place for unit testing only, and is not considered
|
2018-01-12 20:51:17 -04:00
|
|
|
stable API
|
2017-05-08 08:36:06 +02:00
|
|
|
%End
|
2016-05-17 14:16:17 +10:00
|
|
|
|
|
|
|
};
|
2017-05-08 08:36:06 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/editorwidgets/qgsdefaultsearchwidgetwrapper.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|