mirror of
				https://github.com/qgis/QGIS.git
				synced 2025-11-04 00:04:25 -05:00 
			
		
		
		
	
		
			
				
	
	
		
			61 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			2.6 KiB
		
	
	
	
		
			Plaintext
		
	
	
	
	
	
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgstrackedvectorlayertools.h                                *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 | 
						|
 | 
						|
 | 
						|
class QgsTrackedVectorLayerTools : QgsVectorLayerTools
 | 
						|
{
 | 
						|
 | 
						|
%TypeHeaderCode
 | 
						|
#include "qgstrackedvectorlayertools.h"
 | 
						|
%End
 | 
						|
  public:
 | 
						|
 | 
						|
    QgsTrackedVectorLayerTools();
 | 
						|
 | 
						|
    virtual bool addFeatureV2( QgsVectorLayer *layer, const QgsAttributeMap &defaultValues, const QgsGeometry &defaultGeometry, QgsFeature *feature /Out/, const QgsVectorLayerToolsContext &context ) const;
 | 
						|
 | 
						|
%Docstring
 | 
						|
This method calls the addFeature method of the backend :py:class:`QgsVectorLayerTools`
 | 
						|
 | 
						|
:param layer: The layer to which the feature should be added
 | 
						|
:param defaultValues: Default values for the feature to add
 | 
						|
:param defaultGeometry: A default geometry to add to the feature
 | 
						|
:param context: A context object to be used for e.g. to calculate feature expression-based values (since QGIS 3.38)
 | 
						|
 | 
						|
:return: - ``True`` in case of success, ``False`` if the operation failed/was aborted
 | 
						|
         - feature: A pointer to the feature
 | 
						|
%End
 | 
						|
    virtual bool startEditing( QgsVectorLayer *layer ) const;
 | 
						|
 | 
						|
    virtual bool stopEditing( QgsVectorLayer *layer, bool allowCancel ) const;
 | 
						|
 | 
						|
    virtual bool saveEdits( QgsVectorLayer *layer ) const;
 | 
						|
 | 
						|
    virtual bool copyMoveFeatures( QgsVectorLayer *layer, QgsFeatureRequest &request, double  dx = 0, double dy = 0, QString *errorMsg = 0, const bool topologicalEditing = false, QgsVectorLayer *topologicalLayer = 0, QString *childrenInfoMsg = 0 ) const;
 | 
						|
 | 
						|
 | 
						|
    void setVectorLayerTools( const QgsVectorLayerTools *tools );
 | 
						|
%Docstring
 | 
						|
Set the vector layer tools that will be used to interact with the data
 | 
						|
%End
 | 
						|
 | 
						|
    void rollback();
 | 
						|
%Docstring
 | 
						|
Delete all features which have been added via this object.
 | 
						|
%End
 | 
						|
 | 
						|
};
 | 
						|
 | 
						|
/************************************************************************
 | 
						|
 * This file has been generated automatically from                      *
 | 
						|
 *                                                                      *
 | 
						|
 * src/core/qgstrackedvectorlayertools.h                                *
 | 
						|
 *                                                                      *
 | 
						|
 * Do not edit manually ! Edit header and run scripts/sipify.py again   *
 | 
						|
 ************************************************************************/
 |