QGIS/python/gui/attributetable/qgsifeatureselectionmanager.sip.in

84 lines
2.8 KiB
Plaintext
Raw Normal View History

2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsifeatureselectionmanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsIFeatureSelectionManager : QObject
{
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Is an interface class to abstract feature selection handling.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
e.g. QgsVectorLayer implements this interface to manage its selections.
2017-06-08 15:51:05 +02:00
%End
%TypeHeaderCode
2017-06-08 15:51:05 +02:00
#include "qgsifeatureselectionmanager.h"
%End
public:
QgsIFeatureSelectionManager( QObject *parent /TransferThis/ );
virtual int selectedFeatureCount() = 0;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
The number of features that are selected in this layer
:return: See description
2017-06-08 15:51:05 +02:00
%End
virtual void select( const QgsFeatureIds &ids ) = 0;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Select features
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param ids: Feature ids to select
2017-06-08 15:51:05 +02:00
%End
virtual void deselect( const QgsFeatureIds &ids ) = 0;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Deselect features
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param ids: Feature ids to deselect
2017-06-08 15:51:05 +02:00
%End
virtual void setSelectedFeatures( const QgsFeatureIds &ids ) = 0;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Change selection to the new set of features. Dismisses the current selection.
2017-12-19 11:43:52 -04:00
Will emit the selectionChanged( const :py:class:`QgsFeatureIds`&, const :py:class:`QgsFeatureIds`&, bool ) signal with the
2017-12-15 10:36:55 -04:00
clearAndSelect flag set.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param ids: The ids which will be the new selection
2017-06-08 15:51:05 +02:00
%End
virtual const QgsFeatureIds &selectedFeatureIds() const = 0;
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Return reference to identifiers of selected features
:return: A list of QgsFeatureId's
2017-06-08 15:51:05 +02:00
.. seealso:: :py:func:`selectedFeatures`
2017-06-08 15:51:05 +02:00
%End
signals:
2017-06-08 15:51:05 +02:00
void selectionChanged( const QgsFeatureIds &selected, const QgsFeatureIds &deselected, const bool clearAndSelect );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
This signal is emitted when selection was changed
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param selected: Newly selected feature ids
:param deselected: Ids of all features which have previously been selected but are not any more
:param clearAndSelect: In case this is set to true, the old selection was dismissed and the new selection corresponds to selected
2017-06-08 15:51:05 +02:00
%End
};
2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsifeatureselectionmanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/