mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	reverting 3fb0f66 (followup #45348) Using --no-public-is-protected (default on Windows) also works on Linux and fixes #45331 too
		
			
				
	
	
		
			57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			57 lines
		
	
	
		
			2.0 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsmaptoolidentifyfeature.h                                  *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
 | 
						|
class QgsMapToolIdentifyFeature : QgsMapToolIdentify
 | 
						|
{
 | 
						|
%Docstring(signature="appended")
 | 
						|
The :py:class:`QgsMapToolIdentifyFeature` class is a map tool to identify a feature on a chosen layer.
 | 
						|
Once the map tool is enable, user can click on the map canvas to identify a feature.
 | 
						|
A signal will then be emitted.
 | 
						|
%End
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgsmaptoolidentifyfeature.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsMapToolIdentifyFeature( QgsMapCanvas *canvas, QgsVectorLayer *vl = 0 );
 | 
						|
%Docstring
 | 
						|
QgsMapToolIdentifyFeature is a map tool to identify a feature on a chosen layer
 | 
						|
 | 
						|
:param canvas: the map canvas
 | 
						|
:param vl: the vector layer. The map tool can be initialized without any layer and can be set afterward.
 | 
						|
%End
 | 
						|
 | 
						|
    void setLayer( QgsVectorLayer *vl );
 | 
						|
%Docstring
 | 
						|
change the layer used by the map tool to identify
 | 
						|
%End
 | 
						|
 | 
						|
    virtual void canvasReleaseEvent( QgsMapMouseEvent *e );
 | 
						|
 | 
						|
 | 
						|
  signals:
 | 
						|
    void featureIdentified( const QgsFeature & );
 | 
						|
    void featureIdentified( QgsFeatureId );
 | 
						|
 | 
						|
  protected:
 | 
						|
    virtual void keyPressEvent( QKeyEvent *e );
 | 
						|
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/gui/qgsmaptoolidentifyfeature.h                                  *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.pl again   *
 | 
						|
 ************************************************************************/
 |