2017-05-23 14:45:44 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgslegendfilterbutton.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsLegendFilterButton: QToolButton
|
2015-06-26 10:12:58 +02:00
|
|
|
{
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
A tool button that allows enabling or disabling legend filter by contents of the map.
|
|
|
|
An additional pop down menu allows defining a boolean expression to refine the filtering.
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
.. versionadded:: 2.14
|
2015-06-26 10:12:58 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-23 14:45:44 +02:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgslegendfilterbutton.h"
|
|
|
|
%End
|
2015-06-26 10:12:58 +02:00
|
|
|
public:
|
2017-05-23 14:45:44 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsLegendFilterButton( QWidget *parent = 0 );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Construct a new filter legend button
|
2017-05-23 14:45:44 +02:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param parent: The parent QWidget
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2015-06-26 10:12:58 +02:00
|
|
|
|
|
|
|
QString expressionText() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the current text used as filter expression
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2015-06-26 10:12:58 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setExpressionText( const QString &expression );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the current text used as filter expression.
|
|
|
|
This will update the menu
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2015-06-26 10:12:58 +02:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
QgsVectorLayer *vectorLayer() const;
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Returns the current associated vectorLayer
|
|
|
|
May be null
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setVectorLayer( QgsVectorLayer *layer );
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Sets the associated vectorLayer
|
|
|
|
May be null
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
2015-06-26 10:12:58 +02:00
|
|
|
|
|
|
|
signals:
|
2017-05-23 14:45:44 +02:00
|
|
|
|
2015-06-26 10:12:58 +02:00
|
|
|
void expressionTextChanged();
|
2017-05-23 14:45:44 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Emitted when the expression text changes
|
2017-05-23 14:45:44 +02:00
|
|
|
%End
|
|
|
|
|
2015-06-26 10:12:58 +02:00
|
|
|
};
|
2017-05-23 14:45:44 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgslegendfilterbutton.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|