Skip to content

Commit

Permalink
Remove some incorrect 'not available in Python bindings' notes
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed May 26, 2018
1 parent 94cf3fc commit 4bb7f82
Show file tree
Hide file tree
Showing 18 changed files with 4 additions and 72 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -624,10 +624,6 @@ To create it, the geometry is default constructed and then the WKB is changed.
.. seealso:: :py:func:`clone`

.. versionadded:: 3.0

.. note::

Not available in Python bindings
%End

protected:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,10 +66,7 @@ Remove subtree of embedded groups and replaces it with a custom property embedde

static void updateEmbeddedGroupsProjectPath( QgsLayerTreeGroup *group, const QgsProject *project );
%Docstring

.. note::

not available in Python bindings
Updates an embedded ``group`` from a ``project``.
%End

static QStringList invisibleLayerList( QgsLayerTreeNode *node );
Expand Down
4 changes: 0 additions & 4 deletions python/core/auto_generated/layout/qgslayoutmanager.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,6 @@ rather accessed through a QgsProject via :py:func:`QgsProject.layoutManager()`

QgsLayoutManager retains ownership of all the layouts contained
in the manager.

.. note::

Not available in Python bindings
%End

%TypeHeaderCode
Expand Down
4 changes: 0 additions & 4 deletions python/core/auto_generated/qgsapplication.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,6 @@ Get the registry of available field formatters.
%Docstring
Returns registry of available 3D renderers.

.. note::

not available in Python bindings

.. versionadded:: 3.0
%End

Expand Down
4 changes: 0 additions & 4 deletions python/core/auto_generated/qgscolorramp.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -514,10 +514,6 @@ Constructor for QgsPresetSchemeColorRamp.
Constructor for :py:class:`QgsPresetColorRamp`.

:param colors: list of named colors in ramp

.. note::

not available in Python bindings - use setColors instead
%End

static QgsColorRamp *create( const QgsStringMap &properties = QgsStringMap() ) /Factory/;
Expand Down
4 changes: 0 additions & 4 deletions python/core/auto_generated/qgsrelation.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ which is referenced by the provided feature.
:param attributes: An attribute vector containing the foreign key

:return: A request the referenced feature

.. note::

not available in Python bindings
%End

QgsFeatureRequest getReferencedFeatureRequest( const QgsFeature &feature ) const;
Expand Down
4 changes: 0 additions & 4 deletions python/core/auto_generated/qgsrenderchecker.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -164,10 +164,6 @@ Get access to buffered dash messages.
Only will return something if you call enableDashBuffering( true ); before.

:return: buffered dash messages

.. note::

not available in Python bindings
%End

protected:
Expand Down
24 changes: 0 additions & 24 deletions python/core/auto_generated/symbology/qgsmarkersymbollayer.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -132,19 +132,11 @@ Encodes a shape to its string representation.
bool prepareMarkerShape( Shape shape );
%Docstring
Prepares the layer for drawing the specified shape (QPolygonF version)

.. note::

not available in Python bindings
%End

bool prepareMarkerPath( Shape symbol );
%Docstring
Prepares the layer for drawing the specified shape (QPainterPath version)

.. note::

not available in Python bindings
%End

bool shapeToPolygon( Shape shape, QPolygonF &polygon ) const;
Expand All @@ -155,10 +147,6 @@ Creates a polygon representing the specified shape.
:param polygon: destination polygon for shape

:return: true if shape was successfully stored in polygon

.. note::

not available in Python bindings
%End

double calculateSize( QgsSymbolRenderContext &context, bool &hasDataDefinedSize ) const;
Expand All @@ -169,10 +157,6 @@ Calculates the desired size of the marker, considering data defined size overrid
:param hasDataDefinedSize: will be set to true if marker uses data defined sizes

:return: marker size, in original size units

.. note::

not available in Python bindings
%End

void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedRotation, QPointF &offset, double &angle ) const;
Expand All @@ -184,10 +168,6 @@ Calculates the marker offset and rotation.
:param hasDataDefinedRotation: will be set to true if marker has data defined rotation
:param offset: will be set to calculated marker offset (in painter units)
:param angle: will be set to calculated marker angle

.. note::

not available in Python bindings
%End


Expand Down Expand Up @@ -708,10 +688,6 @@ Calculates the marker aspect ratio between width and height.
:param context: symbol render context
:param scaledSize: size of symbol to render
:param hasDataDefinedAspectRatio: will be set to true if marker has data defined aspectRatio

.. note::

not available in Python bindings
%End


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,6 @@

class QgsRelationWidgetWrapper : QgsWidgetWrapper
{
%Docstring

.. note::

not available in Python bindings
%End

%TypeHeaderCode
#include "qgsrelationwidgetwrapper.h"
Expand Down
1 change: 0 additions & 1 deletion src/core/geometry/qgsabstractgeometry.h
Original file line number Diff line number Diff line change
Expand Up @@ -650,7 +650,6 @@ class CORE_EXPORT QgsAbstractGeometry
* To create it, the geometry is default constructed and then the WKB is changed.
* \see clone()
* \since 3.0
* \note Not available in Python bindings
*/
virtual QgsAbstractGeometry *createEmptyWithSameType() const = 0 SIP_FACTORY;

Expand Down
4 changes: 3 additions & 1 deletion src/core/layertree/qgslayertreeutils.h
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,9 @@ class CORE_EXPORT QgsLayerTreeUtils
//! Remove subtree of embedded groups and replaces it with a custom property embedded-visible-layers
static void replaceChildrenOfEmbeddedGroups( QgsLayerTreeGroup *group );

//! \note not available in Python bindings
/**
* Updates an embedded \a group from a \a project.
*/
static void updateEmbeddedGroupsProjectPath( QgsLayerTreeGroup *group, const QgsProject *project );

//! get invisible layers
Expand Down
1 change: 0 additions & 1 deletion src/core/layout/qgslayoutmanager.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ class QgsPrintLayout;
*
* QgsLayoutManager retains ownership of all the layouts contained
* in the manager.
* \note Not available in Python bindings
*/

class CORE_EXPORT QgsLayoutManager : public QObject
Expand Down
1 change: 0 additions & 1 deletion src/core/qgsapplication.h
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,6 @@ class CORE_EXPORT QgsApplication : public QApplication

/**
* Returns registry of available 3D renderers.
* \note not available in Python bindings
* \since QGIS 3.0
*/
static Qgs3DRendererRegistry *renderer3DRegistry();
Expand Down
1 change: 0 additions & 1 deletion src/core/qgscolorramp.h
Original file line number Diff line number Diff line change
Expand Up @@ -481,7 +481,6 @@ class CORE_EXPORT QgsPresetSchemeColorRamp : public QgsColorRamp, public QgsColo
/**
* Constructor for QgsPresetColorRamp.
* \param colors list of named colors in ramp
* \note not available in Python bindings - use setColors instead
*/
QgsPresetSchemeColorRamp( const QgsNamedColorList &colors );

Expand Down
1 change: 0 additions & 1 deletion src/core/qgsrelation.h
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ class CORE_EXPORT QgsRelation
* \param attributes An attribute vector containing the foreign key
*
* \returns A request the referenced feature
* \note not available in Python bindings
*/
QgsFeatureRequest getReferencedFeatureRequest( const QgsAttributes &attributes ) const;

Expand Down
1 change: 0 additions & 1 deletion src/core/qgsrenderchecker.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ class CORE_EXPORT QgsRenderChecker
* Only will return something if you call enableDashBuffering( true ); before.
*
* \returns buffered dash messages
* \note not available in Python bindings
*/
QVector<QgsDartMeasurement> dartMeasurements() const { return mDashMessages; }

Expand Down
6 changes: 0 additions & 6 deletions src/core/symbology/qgsmarkersymbollayer.h
Original file line number Diff line number Diff line change
Expand Up @@ -135,13 +135,11 @@ class CORE_EXPORT QgsSimpleMarkerSymbolLayerBase : public QgsMarkerSymbolLayer

/**
* Prepares the layer for drawing the specified shape (QPolygonF version)
* \note not available in Python bindings
*/
bool prepareMarkerShape( Shape shape );

/**
* Prepares the layer for drawing the specified shape (QPainterPath version)
* \note not available in Python bindings
*/
bool prepareMarkerPath( Shape symbol );

Expand All @@ -150,7 +148,6 @@ class CORE_EXPORT QgsSimpleMarkerSymbolLayerBase : public QgsMarkerSymbolLayer
* \param shape shape to create
* \param polygon destination polygon for shape
* \returns true if shape was successfully stored in polygon
* \note not available in Python bindings
*/
bool shapeToPolygon( Shape shape, QPolygonF &polygon ) const;

Expand All @@ -159,7 +156,6 @@ class CORE_EXPORT QgsSimpleMarkerSymbolLayerBase : public QgsMarkerSymbolLayer
* \param context symbol render context
* \param hasDataDefinedSize will be set to true if marker uses data defined sizes
* \returns marker size, in original size units
* \note not available in Python bindings
*/
double calculateSize( QgsSymbolRenderContext &context, bool &hasDataDefinedSize ) const;

Expand All @@ -170,7 +166,6 @@ class CORE_EXPORT QgsSimpleMarkerSymbolLayerBase : public QgsMarkerSymbolLayer
* \param hasDataDefinedRotation will be set to true if marker has data defined rotation
* \param offset will be set to calculated marker offset (in painter units)
* \param angle will be set to calculated marker angle
* \note not available in Python bindings
*/
void calculateOffsetAndRotation( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedRotation, QPointF &offset, double &angle ) const;

Expand Down Expand Up @@ -618,7 +613,6 @@ class CORE_EXPORT QgsSvgMarkerSymbolLayer : public QgsMarkerSymbolLayer
* \param context symbol render context
* \param scaledSize size of symbol to render
* \param hasDataDefinedAspectRatio will be set to true if marker has data defined aspectRatio
* \note not available in Python bindings
*/
double calculateAspectRatio( QgsSymbolRenderContext &context, double scaledSize, bool &hasDataDefinedAspectRatio ) const;

Expand Down
1 change: 0 additions & 1 deletion src/gui/editorwidgets/qgsrelationwidgetwrapper.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class QgsRelationEditorWidget;
/**
* \ingroup gui
* \class QgsRelationWidgetWrapper
* \note not available in Python bindings
*/

class GUI_EXPORT QgsRelationWidgetWrapper : public QgsWidgetWrapper
Expand Down

0 comments on commit 4bb7f82

Please sign in to comment.