From b798cc13395c782fcee5e2b1be0440074bba0107 Mon Sep 17 00:00:00 2001 From: Andrea Giudiceandrea Date: Thu, 22 Feb 2024 13:37:48 +0100 Subject: [PATCH] Fix sipify check --- .../qgsmaptooldigitizefeature.sip | 109 ------------------ .../qgsmaptooldigitizefeature.sip.in | 3 + .../qgsmaptooldigitizefeature.sip | 109 ------------------ .../qgsmaptooldigitizefeature.sip.in | 3 + 4 files changed, 6 insertions(+), 218 deletions(-) delete mode 100644 python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip delete mode 100644 python/gui/auto_generated/qgsmaptooldigitizefeature.sip diff --git a/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip b/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip deleted file mode 100644 index 511ca0170033..000000000000 --- a/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip +++ /dev/null @@ -1,109 +0,0 @@ -/************************************************************************ - * This file has been generated automatically from * - * * - * src/gui/qgsmaptooldigitizefeature.h * - * * - * Do not edit manually ! Edit header and run scripts/sipify.pl again * - ************************************************************************/ - - - -class QgsMapToolDigitizeFeature : QgsMapToolCaptureLayerGeometry -{ -%Docstring(signature="appended") -This tool digitizes geometry of new point/line/polygon features on already existing vector layers -Once the map tool is enabled, user can digitize the feature geometry. -A signal will then be emitted. - -.. versionadded:: 3.10 -%End - -%TypeHeaderCode -#include "qgsmaptooldigitizefeature.h" -%End - public: - - QgsMapToolDigitizeFeature( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode = QgsMapToolCapture::CaptureNone ); -%Docstring -QgsMapToolDigitizeFeature is a map tool to digitize a feature geometry - -:param canvas: the map canvas -:param cadDockWidget: widget to setup advanced digitizing parameters -:param mode: type of geometry to capture (point/line/polygon), :py:class:`QgsMapToolCapture`.CaptureNone to autodetect geometry -%End - - virtual QgsMapToolCapture::Capabilities capabilities() const; - - virtual bool supportsTechnique( Qgis::CaptureTechnique technique ) const; - - - virtual void cadCanvasReleaseEvent( QgsMapMouseEvent *e ); - - - void setLayer( QgsMapLayer *vl ); -%Docstring -Change the layer edited by the map tool - -:param vl: the layer to be edited by the map tool -%End - - virtual void activate(); - - virtual void reactivate(); - - virtual void deactivate(); - - - virtual void keyPressEvent( QKeyEvent *e ); - - - signals: - - void digitizingCompleted( const QgsFeature &feature ); -%Docstring -Emitted whenever the digitizing has been successfully completed - -:param feature: the new digitized feature -%End - - void digitizingFinished(); -%Docstring -Emitted whenever the digitizing has been ended without digitizing -any feature -%End - - void digitizingCanceled(); -%Docstring -Emitted when the digitizing process was interrupted by the user. - -.. versionadded:: 3.28 -%End - - protected: - - bool checkGeometryType() const; -%Docstring -Check if CaptureMode matches layer type. Default is ``True``. -%End - - void setCheckGeometryType( bool checkGeometryType ); -%Docstring -Check if CaptureMode matches layer type. Default is ``True``. -%End - - private: - virtual void featureDigitized( const QgsFeature &feature ); -%Docstring -Called when the feature has been digitized - -.. versionadded:: 3.26 -%End -}; - -/************************************************************************ - * This file has been generated automatically from * - * * - * src/gui/qgsmaptooldigitizefeature.h * - * * - * Do not edit manually ! Edit header and run scripts/sipify.pl again * - ************************************************************************/ diff --git a/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip.in b/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip.in index c8e163366fc4..7771ac343ba4 100644 --- a/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip.in +++ b/python/PyQt6/gui/auto_generated/qgsmaptooldigitizefeature.sip.in @@ -49,6 +49,8 @@ Change the layer edited by the map tool virtual void activate(); + virtual void reactivate(); + virtual void deactivate(); @@ -105,3 +107,4 @@ Called when the feature has been digitized * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ + \ No newline at end of file diff --git a/python/gui/auto_generated/qgsmaptooldigitizefeature.sip b/python/gui/auto_generated/qgsmaptooldigitizefeature.sip deleted file mode 100644 index 511ca0170033..000000000000 --- a/python/gui/auto_generated/qgsmaptooldigitizefeature.sip +++ /dev/null @@ -1,109 +0,0 @@ -/************************************************************************ - * This file has been generated automatically from * - * * - * src/gui/qgsmaptooldigitizefeature.h * - * * - * Do not edit manually ! Edit header and run scripts/sipify.pl again * - ************************************************************************/ - - - -class QgsMapToolDigitizeFeature : QgsMapToolCaptureLayerGeometry -{ -%Docstring(signature="appended") -This tool digitizes geometry of new point/line/polygon features on already existing vector layers -Once the map tool is enabled, user can digitize the feature geometry. -A signal will then be emitted. - -.. versionadded:: 3.10 -%End - -%TypeHeaderCode -#include "qgsmaptooldigitizefeature.h" -%End - public: - - QgsMapToolDigitizeFeature( QgsMapCanvas *canvas, QgsAdvancedDigitizingDockWidget *cadDockWidget, CaptureMode mode = QgsMapToolCapture::CaptureNone ); -%Docstring -QgsMapToolDigitizeFeature is a map tool to digitize a feature geometry - -:param canvas: the map canvas -:param cadDockWidget: widget to setup advanced digitizing parameters -:param mode: type of geometry to capture (point/line/polygon), :py:class:`QgsMapToolCapture`.CaptureNone to autodetect geometry -%End - - virtual QgsMapToolCapture::Capabilities capabilities() const; - - virtual bool supportsTechnique( Qgis::CaptureTechnique technique ) const; - - - virtual void cadCanvasReleaseEvent( QgsMapMouseEvent *e ); - - - void setLayer( QgsMapLayer *vl ); -%Docstring -Change the layer edited by the map tool - -:param vl: the layer to be edited by the map tool -%End - - virtual void activate(); - - virtual void reactivate(); - - virtual void deactivate(); - - - virtual void keyPressEvent( QKeyEvent *e ); - - - signals: - - void digitizingCompleted( const QgsFeature &feature ); -%Docstring -Emitted whenever the digitizing has been successfully completed - -:param feature: the new digitized feature -%End - - void digitizingFinished(); -%Docstring -Emitted whenever the digitizing has been ended without digitizing -any feature -%End - - void digitizingCanceled(); -%Docstring -Emitted when the digitizing process was interrupted by the user. - -.. versionadded:: 3.28 -%End - - protected: - - bool checkGeometryType() const; -%Docstring -Check if CaptureMode matches layer type. Default is ``True``. -%End - - void setCheckGeometryType( bool checkGeometryType ); -%Docstring -Check if CaptureMode matches layer type. Default is ``True``. -%End - - private: - virtual void featureDigitized( const QgsFeature &feature ); -%Docstring -Called when the feature has been digitized - -.. versionadded:: 3.26 -%End -}; - -/************************************************************************ - * This file has been generated automatically from * - * * - * src/gui/qgsmaptooldigitizefeature.h * - * * - * Do not edit manually ! Edit header and run scripts/sipify.pl again * - ************************************************************************/ diff --git a/python/gui/auto_generated/qgsmaptooldigitizefeature.sip.in b/python/gui/auto_generated/qgsmaptooldigitizefeature.sip.in index c8e163366fc4..7771ac343ba4 100644 --- a/python/gui/auto_generated/qgsmaptooldigitizefeature.sip.in +++ b/python/gui/auto_generated/qgsmaptooldigitizefeature.sip.in @@ -49,6 +49,8 @@ Change the layer edited by the map tool virtual void activate(); + virtual void reactivate(); + virtual void deactivate(); @@ -105,3 +107,4 @@ Called when the feature has been digitized * * * Do not edit manually ! Edit header and run scripts/sipify.pl again * ************************************************************************/ + \ No newline at end of file