QGIS/python/gui/qgslegendfilterbutton.sip.in

72 lines
2.0 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
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
%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
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
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
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
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
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
signals:
2017-05-23 14:45:44 +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
};
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 *
************************************************************************/