QGIS/python/gui/qgslegendfilterbutton.sip

73 lines
2.1 KiB
Plaintext
Raw Normal View History

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
{
2017-05-23 14:45:44 +02:00
%Docstring
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.
.. versionadded:: 2.14
%End
2017-05-23 14:45:44 +02:00
%TypeHeaderCode
#include "qgslegendfilterbutton.h"
%End
public:
2017-05-23 14:45:44 +02:00
QgsLegendFilterButton( QWidget *parent = 0 );
2017-05-23 14:45:44 +02:00
%Docstring
Construct a new filter legend button
\param parent The parent QWidget
%End
QString expressionText() const;
2017-05-23 14:45:44 +02:00
%Docstring
Returns the current text used as filter expression
:rtype: str
%End
void setExpressionText( const QString &expression );
2017-05-23 14:45:44 +02:00
%Docstring
Sets the current text used as filter expression.
This will update the menu
%End
QgsVectorLayer *vectorLayer() const;
2017-05-23 14:45:44 +02:00
%Docstring
Returns the current associated vectorLayer
May be null
:rtype: QgsVectorLayer
%End
void setVectorLayer( QgsVectorLayer *layer );
2017-05-23 14:45:44 +02:00
%Docstring
Sets the associated vectorLayer
May be null
%End
signals:
2017-05-23 14:45:44 +02:00
void expressionTextChanged();
2017-05-23 14:45:44 +02:00
%Docstring
Emitted when the expression text changes
%End
};
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 *
************************************************************************/