2017-05-23 14:44:34 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsfeatureselectiondlg.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
|
2017-05-24 10:26:03 +02:00
|
|
|
// This is required for the ConvertToSubClassCode to work properly
|
|
|
|
// so RTTI for casting is available in the whole module.
|
|
|
|
%ModuleCode
|
|
|
|
#include "qgsfeatureselectiondlg.h"
|
|
|
|
%End
|
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
class QgsFeatureSelectionDlg : QDialog
|
|
|
|
{
|
2017-05-23 14:44:34 +02:00
|
|
|
|
2015-12-01 10:04:20 +01:00
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsfeatureselectiondlg.h"
|
|
|
|
%End
|
|
|
|
%ConvertToSubClassCode
|
2017-05-23 14:44:34 +02:00
|
|
|
if ( qobject_cast<QgsFeatureSelectionDlg *>( sipCpp ) )
|
|
|
|
sipType = sipType_QgsFeatureSelectionDlg;
|
|
|
|
else
|
|
|
|
sipType = 0;
|
2015-12-01 10:04:20 +01:00
|
|
|
%End
|
|
|
|
public:
|
2017-12-12 11:44:10 +10:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
explicit QgsFeatureSelectionDlg( QgsVectorLayer *vl, QgsAttributeEditorContext &context, QWidget *parent /TransferThis/ = 0 );
|
2017-12-12 11:44:10 +10:00
|
|
|
%Docstring
|
|
|
|
Constructor for QgsFeatureSelectionDlg
|
|
|
|
%End
|
2015-12-01 10:04:20 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
const QgsFeatureIds &selectedFeatures();
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the selected features
|
2017-12-15 10:36:55 -04:00
|
|
|
|
|
|
|
:return: The selected feature ids
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
2015-12-01 10:04:20 +01:00
|
|
|
|
2017-05-01 16:42:33 +02:00
|
|
|
void setSelectedFeatures( const QgsFeatureIds &ids );
|
2017-05-23 14:44:34 +02:00
|
|
|
%Docstring
|
2017-12-15 10:36:55 -04:00
|
|
|
Set the selected features
|
2017-12-15 21:36:08 -04:00
|
|
|
|
2017-12-15 10:36:55 -04:00
|
|
|
:param ids: The feature ids to select
|
2017-05-23 14:44:34 +02:00
|
|
|
%End
|
|
|
|
|
2018-11-03 15:27:38 +01:00
|
|
|
protected:
|
|
|
|
|
|
|
|
virtual void showEvent( QShowEvent *event );
|
|
|
|
|
|
|
|
%Docstring
|
|
|
|
Make sure the dialog does not grow too much
|
|
|
|
%End
|
2015-12-01 10:04:20 +01:00
|
|
|
};
|
2017-05-23 14:44:34 +02:00
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/qgsfeatureselectiondlg.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|