Skip to content
Permalink
Browse files

run sipify

  • Loading branch information
3nids authored and nyalldawson committed Jun 18, 2020
1 parent 43b122e commit 044a05d828b727f91edb4a7d826f26b4ae3a16ee
Showing with 51 additions and 51 deletions.
  1. +1 −1 python/analysis/auto_generated/vector/geometry_checker/qgsgeometrycheckregistry.sip.in
  2. +1 −1 python/core/auto_generated/geometry/qgscircularstring.sip.in
  3. +1 −1 python/core/auto_generated/geometry/qgscompoundcurve.sip.in
  4. +1 −1 python/core/auto_generated/geometry/qgscurvepolygon.sip.in
  5. +3 −3 python/core/auto_generated/geometry/qgsgeometry.sip.in
  6. +1 −1 python/core/auto_generated/geometry/qgsgeometrycollection.sip.in
  7. +1 −1 python/core/auto_generated/geometry/qgslinestring.sip.in
  8. +1 −1 python/core/auto_generated/geometry/qgspolygon.sip.in
  9. +2 −2 python/core/auto_generated/processing/qgsprocessingparameters.sip.in
  10. +3 −3 python/core/auto_generated/qgsfeaturesink.sip.in
  11. +2 −2 python/core/auto_generated/qgsfeaturestore.sip.in
  12. +1 −1 python/core/auto_generated/qgsmaplayer.sip.in
  13. +3 −3 python/core/auto_generated/qgsproject.sip.in
  14. +3 −3 python/core/auto_generated/qgsproxyfeaturesink.sip.in
  15. +3 −3 python/core/auto_generated/qgsremappingproxyfeaturesink.sip.in
  16. +5 −5 python/core/auto_generated/qgsspatialindex.sip.in
  17. +1 −1 python/core/auto_generated/qgsvectordataprovider.sip.in
  18. +2 −2 python/core/auto_generated/qgsvectorfilewriter.sip.in
  19. +2 −2 python/core/auto_generated/qgsvectorlayer.sip.in
  20. +2 −2 python/core/auto_generated/qgsvectorlayerexporter.sip.in
  21. +1 −1 python/core/auto_generated/qgsvectorlayerjoinbuffer.sip.in
  22. +1 −1 python/gui/auto_generated/layout/qgslayoutnewitempropertiesdialog.sip.in
  23. +1 −1 python/gui/auto_generated/processing/models/qgsmodeldesignerdialog.sip.in
  24. +1 −1 python/gui/auto_generated/processing/qgsprocessingalgorithmdialogbase.sip.in
  25. +2 −2 python/gui/auto_generated/processing/qgsprocessingmultipleselectiondialog.sip.in
  26. +2 −2 python/gui/auto_generated/qgsdockwidget.sip.in
  27. +3 −3 python/gui/auto_generated/qgsmaplayeractionregistry.sip.in
  28. +1 −1 python/gui/auto_generated/qgsnewhttpconnection.sip.in
@@ -48,7 +48,7 @@ Ownership is transferred to the caller.
.. versionadded:: 3.4
%End

QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = 0 ) const;
QList<QgsGeometryCheckFactory *> geometryCheckFactories( QgsVectorLayer *layer, QgsGeometryCheck::CheckType type, QgsGeometryCheck::Flags flags = QgsGeometryCheck::Flags() ) const;
%Docstring
Returns all geometry check factories that are compatible with ``layer`` and have all of the ``flags`` set.

@@ -71,7 +71,7 @@ to ``p2`` will be used (i.e. winding the other way around the circle).
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

@@ -42,7 +42,7 @@ Compound curve geometry type
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

@@ -46,7 +46,7 @@ Curve polygon geometry type
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

@@ -332,7 +332,7 @@ by :py:func:`~QgsGeometry.equals` instead.
typedef QFlags<QgsGeometry::ValidityFlag> ValidityFlags;


bool isGeosValid( QgsGeometry::ValidityFlags flags = 0 ) const;
bool isGeosValid( QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;
%Docstring
Checks validity of the geometry using GEOS.

@@ -1537,7 +1537,7 @@ is null, a ValueError will be raised.



QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;
%Docstring
Export the geometry to WKB

@@ -1972,7 +1972,7 @@ The coordinates at which the error is located and should be visualized.
ValidatorGeos,
};

void validateGeometry( QVector<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = 0 ) const;
void validateGeometry( QVector<QgsGeometry::Error> &errors /Out/, ValidationMethod method = ValidatorQgisInternal, QgsGeometry::ValidityFlags flags = QgsGeometry::ValidityFlags() ) const;
%Docstring
Validates geometry and produces a list of geometry errors.
The ``method`` argument dictates which validator to utilize.
@@ -154,7 +154,7 @@ An IndexError will be raised if no geometry with the specified index exists.

virtual bool fromWkt( const QString &wkt );

virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

@@ -424,7 +424,7 @@ segment in the line.
virtual bool fromWkt( const QString &wkt );


virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QString asWkt( int precision = 17 ) const;

@@ -41,7 +41,7 @@ Ownership of ``exterior`` and ``rings`` is transferred to the polygon.

virtual bool fromWkb( QgsConstWkbPtr &wkb );

virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = 0 ) const;
virtual QByteArray asWkb( QgsAbstractGeometry::WkbFlags flags = QgsAbstractGeometry::WkbFlags() ) const;

virtual QgsPolygon *surfaceToPolygon() const /Factory/;

@@ -34,7 +34,7 @@ Encapsulates settings relating to a feature source input to a processing algorit


QgsProcessingFeatureSourceDefinition( const QString &source = QString(), bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = 0, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
%Docstring
Constructor for QgsProcessingFeatureSourceDefinition, accepting a static string ``source``.

@@ -50,7 +50,7 @@ the default geometry check method (as dictated by :py:class:`QgsProcessingContex
%End

QgsProcessingFeatureSourceDefinition( const QgsProperty &source, bool selectedFeaturesOnly = false, long long featureLimit = -1,
QgsProcessingFeatureSourceDefinition::Flags flags = 0, QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
QgsProcessingFeatureSourceDefinition::Flags flags = QgsProcessingFeatureSourceDefinition::Flags(), QgsFeatureRequest::InvalidGeometryCheck geometryCheck = QgsFeatureRequest::GeometryAbortOnInvalid );
%Docstring
Constructor for QgsProcessingFeatureSourceDefinition, accepting a QgsProperty source.

@@ -40,7 +40,7 @@ An interface for objects which accept features via addFeature(s) methods.

virtual ~QgsFeatureSink();

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
%Docstring
Adds a single ``feature`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

@@ -49,7 +49,7 @@ Adds a single ``feature`` to the sink. Feature addition behavior is controlled b
:return: ``True`` in case of success and ``False`` in case of failure
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) = 0;
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) = 0;
%Docstring
Adds a list of ``features`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

@@ -58,7 +58,7 @@ Adds a list of ``features`` to the sink. Feature addition behavior is controlled
:return: ``True`` in case of success and ``False`` in case of failure
%End

virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
%Docstring
Adds all features from the specified ``iterator`` to the sink. Feature addition behavior is controlled by the specified ``flags``.

@@ -55,9 +55,9 @@ Sets the store's ``crs``.
.. seealso:: :py:func:`crs`
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


int count() const;
@@ -536,7 +536,7 @@ stored inside a local temporary folder (such as the "/tmp" folder on Linux).
typedef QFlags<QgsMapLayer::ReadFlag> ReadFlags;


bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = 0 );
bool readLayerXml( const QDomElement &layerElement, QgsReadWriteContext &context, QgsMapLayer::ReadFlags flags = QgsMapLayer::ReadFlags() );
%Docstring
Sets state from DOM document

@@ -317,7 +317,7 @@ Clears the project, removing all settings and resetting it back to an empty, def
.. versionadded:: 2.4
%End

bool read( const QString &filename, QgsProject::ReadFlags flags = 0 );
bool read( const QString &filename, QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Reads given project file from the given file.

@@ -327,7 +327,7 @@ Reads given project file from the given file.
:return: ``True`` if project file has been read successfully
%End

bool read( QgsProject::ReadFlags flags = 0 );
bool read( QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Reads the project from its currently associated file (see :py:func:`~QgsProject.fileName` ).

@@ -525,7 +525,7 @@ Returns project file path if layer is embedded from other project file. Returns
%End


QgsLayerTreeGroup *createEmbeddedGroup( const QString &groupName, const QString &projectFilePath, const QStringList &invisibleLayers, QgsProject::ReadFlags flags = 0 );
QgsLayerTreeGroup *createEmbeddedGroup( const QString &groupName, const QString &projectFilePath, const QStringList &invisibleLayers, QgsProject::ReadFlags flags = QgsProject::ReadFlags() );
%Docstring
Create layer group instance defined in an arbitrary project file.

@@ -33,9 +33,9 @@ proxy sink can be safely deleted without affecting the destination sink.
%Docstring
Constructs a new QgsProxyFeatureSink which forwards features onto a destination ``sink``.
%End
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

QgsFeatureSink *destinationSink();
%Docstring
@@ -186,11 +186,11 @@ Sets the transform ``context`` to use when reprojecting features.
Remaps a ``feature`` to a set of features compatible with the destination sink.
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureIterator &iterator, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


QgsFeatureSink *destinationSink();
@@ -46,12 +46,12 @@ QgsSpatialIndex objects are implicitly shared and can be inexpensively copied.
typedef QFlags<QgsSpatialIndex::Flag> Flags;


QgsSpatialIndex( QgsSpatialIndex::Flags flags = 0 );
QgsSpatialIndex( QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor for QgsSpatialIndex. Creates an empty R-tree index.
%End

explicit QgsSpatialIndex( const QgsFeatureIterator &fi, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = 0 );
explicit QgsSpatialIndex( const QgsFeatureIterator &fi, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor - creates R-tree and bulk loads it with features from the iterator.
This is much faster approach than creating an empty index and then inserting features one by one.
@@ -64,7 +64,7 @@ that of the spatial index construction.
%End


explicit QgsSpatialIndex( const QgsFeatureSource &source, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = 0 );
explicit QgsSpatialIndex( const QgsFeatureSource &source, QgsFeedback *feedback = 0, QgsSpatialIndex::Flags flags = QgsSpatialIndex::Flags() );
%Docstring
Constructor - creates R-tree and bulk loads it with features from the source.
This is much faster approach than creating an empty index and then inserting features one by one.
@@ -93,7 +93,7 @@ Adds a ``feature`` to the index.
Use addFeature() instead
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a ``feature`` to the index.
@@ -103,7 +103,7 @@ The ``flags`` argument is ignored.
.. versionadded:: 3.4
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a list of ``features`` to the index.
@@ -232,7 +232,7 @@ or if the given attribute is not an enum type.
:param index: the index of the attribute
%End

virtual bool addFeatures( QgsFeatureList &flist /In,Out/, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &flist /In,Out/, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


virtual bool deleteFeatures( const QgsFeatureIds &id );
@@ -568,9 +568,9 @@ Checks whether there were any errors in constructor
Retrieves error message
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


bool addFeatureWithStyle( QgsFeature &feature, QgsFeatureRenderer *renderer, QgsUnitTypes::DistanceUnit outputUnit = QgsUnitTypes::DistanceMeters );
@@ -1160,7 +1160,7 @@ Queries the layer for the features with the given ids.
Queries the layer for the features which intersect the specified rectangle.
%End

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) ${SIP_FINAL};


bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
@@ -1969,7 +1969,7 @@ Deletes a list of attribute fields (but does not commit it)
:return: ``True`` if at least one attribute has been deleted
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() ) ${SIP_FINAL};


bool deleteFeature( QgsFeatureId fid, DeleteContext *context = 0 );
@@ -120,9 +120,9 @@ Returns the number of error messages encountered during the export.
.. seealso:: :py:func:`errorCode`
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );


~QgsVectorLayerExporter();
@@ -154,7 +154,7 @@ Create a copy of the join buffer
.. versionadded:: 2.6
%End

virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 );
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = QgsFeatureSink::Flags() );

%Docstring
Adds a list of features in joined layers. Features given in parameter
@@ -25,7 +25,7 @@ enter their sizes and positions.
%End
public:

QgsLayoutItemPropertiesDialog( QWidget *parent = 0, Qt::WindowFlags flags = 0 );
QgsLayoutItemPropertiesDialog( QWidget *parent = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for :py:class:`QgsLayoutNewItemPropertiesDialog`.
%End
@@ -29,7 +29,7 @@ Model designer dialog base class
%End
public:

QgsModelDesignerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QgsModelDesignerDialog( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
~QgsModelDesignerDialog();

virtual void closeEvent( QCloseEvent *event );
@@ -34,7 +34,7 @@ Base class for processing algorithm dialogs.
FormatHtml,
};

QgsProcessingAlgorithmDialogBase( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QgsProcessingAlgorithmDialogBase( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsProcessingAlgorithmDialogBase.
%End
@@ -125,7 +125,7 @@ A dialog for selection of multiple options from a fixed list of options.

QgsProcessingMultipleSelectionDialog( const QVariantList &availableOptions = QVariantList(),
const QVariantList &selectedOptions = QVariantList(),
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for :py:class:`QgsProcessingMultipleSelectionPanelWidget`.

@@ -229,7 +229,7 @@ A dialog for selection of multiple layer inputs.
const QVariantList &selectedOptions,
const QList< QgsProcessingModelChildParameterSource > &modelSources,
QgsProcessingModelAlgorithm *model = 0,
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsProcessingMultipleInputDialog.

@@ -22,15 +22,15 @@ QgsDockWidget subclass with more fine-grained control over how the widget is clo
%End
public:

explicit QgsDockWidget( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
explicit QgsDockWidget( QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsDockWidget.

:param parent: parent widget
:param flags: window flags
%End

explicit QgsDockWidget( const QString &title, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = 0 );
explicit QgsDockWidget( const QString &title, QWidget *parent /TransferThis/ = 0, Qt::WindowFlags flags = Qt::WindowFlags() );
%Docstring
Constructor for QgsDockWidget.

0 comments on commit 044a05d

Please sign in to comment.
You can’t perform that action at this time.