QGIS/python/gui/auto_generated/attributetable/qgsfeatureselectionmodel.sip.in

102 lines
3.6 KiB
Plaintext
Raw Normal View History

2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeatureselectionmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsFeatureSelectionModel : QItemSelectionModel
{
2017-06-08 15:51:05 +02:00
%TypeHeaderCode
2017-06-08 15:51:05 +02:00
#include "qgsfeatureselectionmodel.h"
%End
public:
explicit QgsFeatureSelectionModel( QAbstractItemModel *model, QgsFeatureModel *featureModel, QgsIFeatureSelectionManager *featureSelectionHandler, QObject *parent /TransferThis/ );
void enableSync( bool enable );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-19 11:43:52 -04:00
Enables or disables synchronisation to the :py:class:`QgsVectorLayer`
2017-12-15 10:36:55 -04:00
When synchronisation is disabled, any selection change will be buffered inside this selection model.
When enabled, any buffered changes are communicated to the layer and the buffer is emptied.
Mainly to be used for performance reasons, because selection change on the layer can cost time as it
repaints the layer.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param enable: The synchronisation status to set.
2017-06-08 15:51:05 +02:00
%End
virtual bool isSelected( QgsFeatureId fid );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the selection status of a given feature id.
2017-06-08 15:51:05 +02:00
:param fid: The featureid to determine the selection status of
2017-12-15 10:36:55 -04:00
:return: The selection status
2017-06-08 15:51:05 +02:00
%End
virtual bool isSelected( const QModelIndex &index );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Returns the selection status of a given QModelIndex.
:param index: The index to determine the selection status of
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:return: The selection status
2017-06-08 15:51:05 +02:00
%End
signals:
2017-06-08 15:51:05 +02:00
void requestRepaint( const QModelIndexList &indexes );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Request a repaint of a list of model indexes.
Views using this model should connect to and properly process this signal.
2017-06-08 15:51:05 +02:00
2017-12-15 10:36:55 -04:00
:param indexes: The model indexes which need to be repainted
2017-06-08 15:51:05 +02:00
%End
void requestRepaint();
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Request a repaint of the visible items of connected views.
Views using this model should connect to and properly process this signal.
2017-06-08 15:51:05 +02:00
%End
public slots:
2017-06-08 15:51:05 +02:00
virtual void select( const QModelIndex &index, QItemSelectionModel::SelectionFlags command );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Overwritten to do NOTHING (we handle selection ourselves)
2017-06-08 15:51:05 +02:00
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`selectFeatures`
2017-06-08 15:51:05 +02:00
%End
virtual void select( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Overwritten to do NOTHING (we handle selection ourselves)
2017-12-05 20:04:14 -04:00
.. seealso:: :py:func:`selectFeatures`
2017-06-08 15:51:05 +02:00
%End
virtual void selectFeatures( const QItemSelection &selection, QItemSelectionModel::SelectionFlags command );
2017-06-08 15:51:05 +02:00
%Docstring
2017-12-15 10:36:55 -04:00
Select features on this table. Is to be used in favor of the stock select methods.
2017-06-08 15:51:05 +02:00
:param selection: The QItemSelection which will be selected
:param command: The command to apply. Select, Deselect and ClearAndSelect are processed.
2017-06-08 15:51:05 +02:00
%End
virtual void setFeatureSelectionManager( QgsIFeatureSelectionManager *featureSelectionManager /Transfer/ );
2014-01-27 09:22:24 +01:00
};
2017-06-08 15:51:05 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/gui/attributetable/qgsfeatureselectionmodel.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/