Skip to content
Permalink
Browse files
Don't expose QgsMapToolModifyAnnotation to python
We want to leave this private for now, to give flexibility to change
api if/when needed
  • Loading branch information
nyalldawson committed Sep 10, 2021
1 parent c1260f2 commit 8cf4903204d6c7cb64d9df8bdfe36c5615c916a7

This file was deleted.

@@ -1569,13 +1569,6 @@ Any existing GPS connection used by the widget will be disconnect and replaced w
is automatically registered within the :py:func:`QgsApplication.gpsConnectionRegistry()`.

.. versionadded:: 3.16
%End

virtual QgsMapToolModifyAnnotation *modifyAnnotationTool() = 0;
%Docstring
Returns the map tool used for modifying annotation layers.

.. versionadded:: 3.22
%End

signals:
@@ -228,7 +228,6 @@
%Include auto_generated/annotations/qgsannotationitemguiregistry.sip
%Include auto_generated/annotations/qgsannotationitemwidget.sip
%Include auto_generated/annotations/qgscreateannotationitemmaptool.sip
%Include auto_generated/annotations/qgsmaptoolmodifyannotation.sip
%Include auto_generated/attributetable/qgsattributetabledelegate.sip
%Include auto_generated/attributetable/qgsattributetablefiltermodel.sip
%Include auto_generated/attributetable/qgsattributetablemodel.sip
@@ -909,7 +909,3 @@ QList<QgsMapDecoration *> QgisAppInterface::activeDecorations()
return qgis->activeDecorations();
}

QgsMapToolModifyAnnotation *QgisAppInterface::modifyAnnotationTool()
{
return qobject_cast< QgsMapToolModifyAnnotation * >( qgis->mMapTools->mapTool( QgsAppMapTools::AnnotationEdit ) );
}
@@ -322,7 +322,6 @@ class APP_EXPORT QgisAppInterface : public QgisInterface
QgsLayerTreeRegistryBridge::InsertionPoint layerTreeInsertionPoint() override;
void setGpsPanelConnection( QgsGpsConnection *connection ) override;
QList<QgsMapDecoration *> activeDecorations() override;
virtual QgsMapToolModifyAnnotation *modifyAnnotationTool() override;

private slots:

@@ -30,9 +30,12 @@ class QgsAnnotationItem;
class QgsAnnotationLayer;
class QgsAnnotationItemNodesSpatialIndex;

#define SIP_NO_FILE

/**
* \ingroup gui
* \brief A map tool for modifying annotations in a QgsAnnotationLayer
* \note Not available in Python bindings
* \since QGIS 3.22
*/
class GUI_EXPORT QgsMapToolModifyAnnotation : public QgsMapToolAdvancedDigitizing
@@ -70,7 +70,6 @@ class QgsDevToolWidgetFactory;
class QgsGpsConnection;
class QgsApplicationExitBlockerInterface;
class QgsAbstractMapToolHandler;
class QgsMapToolModifyAnnotation;

/**
* \ingroup gui
@@ -1312,13 +1311,6 @@ class GUI_EXPORT QgisInterface : public QObject
*/
virtual void setGpsPanelConnection( QgsGpsConnection *connection ) = 0;

/**
* Returns the map tool used for modifying annotation layers.
*
* \since QGIS 3.22
*/
virtual QgsMapToolModifyAnnotation *modifyAnnotationTool() = 0;

signals:

/**

0 comments on commit 8cf4903

Please sign in to comment.