mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-16 00:03:12 -04:00
Fix build with sip pre 4.19
This commit is contained in:
parent
6e02f9f4fa
commit
68dc6984da
@ -13,6 +13,7 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
typedef QList<int> QgsAttributeList;
|
typedef QList<int> QgsAttributeList;
|
||||||
typedef QSet<int> QgsAttributeIds;
|
typedef QSet<int> QgsAttributeIds;
|
||||||
|
|
||||||
@ -404,7 +405,8 @@ Uses :py:class:`QgsExpression`
|
|||||||
:return: The expression which will be used to preview features for this layer
|
:return: The expression which will be used to preview features for this layer
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsVectorDataProvider *dataProvider() ${SIP_FINAL};
|
virtual QgsVectorDataProvider *dataProvider() ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
void setProviderEncoding( const QString &encoding );
|
void setProviderEncoding( const QString &encoding );
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -442,7 +444,8 @@ Returns the join buffer object.
|
|||||||
%End
|
%End
|
||||||
const QList<QgsVectorLayerJoinInfo> vectorJoins() const;
|
const QList<QgsVectorLayerJoinInfo> vectorJoins() const;
|
||||||
|
|
||||||
bool setDependencies( const QSet<QgsMapLayerDependency> &layers ) ${SIP_FINAL};
|
virtual bool setDependencies( const QSet<QgsMapLayerDependency> &layers ) ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Sets the list of dependencies.
|
Sets the list of dependencies.
|
||||||
|
|
||||||
@ -455,7 +458,8 @@ Sets the list of dependencies.
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QSet<QgsMapLayerDependency> dependencies() const ${SIP_FINAL};
|
virtual QSet<QgsMapLayerDependency> dependencies() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Gets the list of dependencies. This includes data dependencies set by the user (:py:func:`setDataDependencies`)
|
Gets the list of dependencies. This includes data dependencies set by the user (:py:func:`setDataDependencies`)
|
||||||
as well as dependencies given by the provider
|
as well as dependencies given by the provider
|
||||||
@ -721,7 +725,8 @@ Ownership is transferred.
|
|||||||
Returns point, line or polygon
|
Returns point, line or polygon
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsWkbTypes::Type wkbType() const ${SIP_FINAL};
|
virtual QgsWkbTypes::Type wkbType() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the WKBType or WKBUnknown in case of error
|
Returns the WKBType or WKBUnknown in case of error
|
||||||
%End
|
%End
|
||||||
@ -731,10 +736,13 @@ Returns the WKBType or WKBUnknown in case of error
|
|||||||
Returns the provider type for this layer
|
Returns the provider type for this layer
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsCoordinateReferenceSystem sourceCrs() const ${SIP_FINAL};
|
virtual QgsCoordinateReferenceSystem sourceCrs() const ${SIP_FINAL};
|
||||||
QString sourceName() const ${SIP_FINAL};
|
|
||||||
|
virtual QString sourceName() const ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
|
virtual bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context ) ${SIP_FINAL};
|
||||||
|
|
||||||
bool readXml( const QDomNode &layer_node, QgsReadWriteContext &context ) ${SIP_FINAL};
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Reads vector layer specific state from project file Dom node.
|
Reads vector layer specific state from project file Dom node.
|
||||||
|
|
||||||
@ -743,7 +751,8 @@ Reads vector layer specific state from project file Dom node.
|
|||||||
Called by :py:func:`QgsMapLayer.readXml()`
|
Called by :py:func:`QgsMapLayer.readXml()`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
virtual bool writeXml( QDomNode &layer_node, QDomDocument &doc, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Write vector layer specific state to project file Dom node.
|
Write vector layer specific state to project file Dom node.
|
||||||
|
|
||||||
@ -752,10 +761,13 @@ Write vector layer specific state to project file Dom node.
|
|||||||
Called by :py:func:`QgsMapLayer.writeXml()`
|
Called by :py:func:`QgsMapLayer.writeXml()`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
virtual QString encodedSource( const QString &source, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
||||||
QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
|
||||||
|
virtual QString decodedSource( const QString &source, const QString &provider, const QgsReadWriteContext &context ) const ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
|
virtual void resolveReferences( QgsProject *project ) ${SIP_FINAL};
|
||||||
|
|
||||||
void resolveReferences( QgsProject *project ) ${SIP_FINAL};
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Resolve references to other layers (kept as layer IDs after reading XML) into layer objects.
|
Resolve references to other layers (kept as layer IDs after reading XML) into layer objects.
|
||||||
|
|
||||||
@ -820,7 +832,7 @@ Load a named style from file/local db/datasource db
|
|||||||
:param categories: the style categories to be loaded.
|
:param categories: the style categories to be loaded.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QString loadNamedStyle( const QString &theURI, bool &resultFlag /Out/,
|
virtual QString loadNamedStyle( const QString &theURI, bool &resultFlag /Out/,
|
||||||
QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
||||||
%Docstring
|
%Docstring
|
||||||
Calls loadNamedStyle( theURI, resultFlag, false );
|
Calls loadNamedStyle( theURI, resultFlag, false );
|
||||||
@ -861,7 +873,7 @@ Returns the current auxiliary layer.
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
|
|
||||||
bool readSymbology( const QDomNode &layerNode, QString &errorMessage,
|
virtual bool readSymbology( const QDomNode &layerNode, QString &errorMessage,
|
||||||
QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
||||||
%Docstring
|
%Docstring
|
||||||
Read the symbology for the current layer from the Dom node supplied.
|
Read the symbology for the current layer from the Dom node supplied.
|
||||||
@ -874,7 +886,7 @@ Read the symbology for the current layer from the Dom node supplied.
|
|||||||
:return: true in case of success.
|
:return: true in case of success.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool readStyle( const QDomNode &node, QString &errorMessage,
|
virtual bool readStyle( const QDomNode &node, QString &errorMessage,
|
||||||
QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) ${SIP_FINAL};
|
||||||
%Docstring
|
%Docstring
|
||||||
Read the style for the current layer from the Dom node supplied.
|
Read the style for the current layer from the Dom node supplied.
|
||||||
@ -887,7 +899,7 @@ Read the style for the current layer from the Dom node supplied.
|
|||||||
:return: true in case of success.
|
:return: true in case of success.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
|
virtual bool writeSymbology( QDomNode &node, QDomDocument &doc, QString &errorMessage,
|
||||||
const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL};
|
const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL};
|
||||||
%Docstring
|
%Docstring
|
||||||
Write the symbology for the layer into the docment provided.
|
Write the symbology for the layer into the docment provided.
|
||||||
@ -901,7 +913,7 @@ Write the symbology for the layer into the docment provided.
|
|||||||
:return: true in case of success.
|
:return: true in case of success.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
|
virtual bool writeStyle( QDomNode &node, QDomDocument &doc, QString &errorMessage,
|
||||||
const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL};
|
const QgsReadWriteContext &context, QgsMapLayer::StyleCategories categories = QgsMapLayer::AllStyleCategories ) const ${SIP_FINAL};
|
||||||
%Docstring
|
%Docstring
|
||||||
Write just the style information for the layer into the document
|
Write just the style information for the layer into the document
|
||||||
@ -927,7 +939,8 @@ Writes the symbology of the layer into the document provided in SLD 1.1 format
|
|||||||
:return: true in case of success
|
:return: true in case of success
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool readSld( const QDomNode &node, QString &errorMessage ) ${SIP_FINAL};
|
virtual bool readSld( const QDomNode &node, QString &errorMessage ) ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
long featureCount( const QString &legendKey ) const;
|
long featureCount( const QString &legendKey ) const;
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -937,7 +950,8 @@ calculated by countSymbolFeatures()
|
|||||||
:return: number of features rendered by symbol or -1 if failed or counts are not available
|
:return: number of features rendered by symbol or -1 if failed or counts are not available
|
||||||
%End
|
%End
|
||||||
|
|
||||||
FeatureAvailability hasFeatures() const ${SIP_FINAL};
|
virtual FeatureAvailability hasFeatures() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Determines if this vector layer has features.
|
Determines if this vector layer has features.
|
||||||
|
|
||||||
@ -984,7 +998,8 @@ if the geometry type of the new data source matches the current geometry type of
|
|||||||
.. versionadded:: 3.2
|
.. versionadded:: 3.2
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QString loadDefaultStyle( bool &resultFlag /Out/ ) ${SIP_FINAL};
|
virtual QString loadDefaultStyle( bool &resultFlag /Out/ ) ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
QgsVectorLayerFeatureCounter *countSymbolFeatures();
|
QgsVectorLayerFeatureCounter *countSymbolFeatures();
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -1020,7 +1035,8 @@ Returns the string (typically sql) used to define a subset of the layer.
|
|||||||
:return: The subset string or null QString if not implemented by the provider
|
:return: The subset string or null QString if not implemented by the provider
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const ${SIP_FINAL};
|
virtual QgsFeatureIterator getFeatures( const QgsFeatureRequest &request = QgsFeatureRequest() ) const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Query the layer for features specified in request.
|
Query the layer for features specified in request.
|
||||||
|
|
||||||
@ -1050,7 +1066,8 @@ Query the layer for the features with the given ids.
|
|||||||
Query the layer for the features which intersect the specified rectangle.
|
Query the layer for the features which intersect the specified rectangle.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
|
virtual bool addFeature( QgsFeature &feature, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
|
bool updateFeature( QgsFeature &feature, bool skipDefaultValues = false );
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -1412,12 +1429,14 @@ Set labeling configuration. Takes ownership of the object.
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool isEditable() const ${SIP_FINAL};
|
virtual bool isEditable() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns true if the provider is in editing mode
|
Returns true if the provider is in editing mode
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool isSpatial() const ${SIP_FINAL};
|
virtual bool isSpatial() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeometry
|
Returns true if this is a geometry layer and false in case of NoGeometry (table only) or UnknownGeometry
|
||||||
%End
|
%End
|
||||||
@ -1435,22 +1454,27 @@ false otherwise.
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
void reload() ${SIP_FINAL};
|
virtual void reload() ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Synchronises with changes in the datasource
|
Synchronises with changes in the datasource
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) ${SIP_FINAL} /Factory/;
|
virtual QgsMapLayerRenderer *createMapRenderer( QgsRenderContext &rendererContext ) ${SIP_FINAL} /Factory/;
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context
|
Returns new instance of QgsMapLayerRenderer that will be used for rendering of given context
|
||||||
|
|
||||||
.. versionadded:: 2.4
|
.. versionadded:: 2.4
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsRectangle extent() const ${SIP_FINAL};
|
virtual QgsRectangle extent() const ${SIP_FINAL};
|
||||||
QgsRectangle sourceExtent() const ${SIP_FINAL};
|
|
||||||
|
virtual QgsRectangle sourceExtent() const ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
|
virtual QgsFields fields() const ${SIP_FINAL};
|
||||||
|
|
||||||
QgsFields fields() const ${SIP_FINAL};
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the list of fields of this layer.
|
Returns the list of fields of this layer.
|
||||||
This also includes fields which have not yet been saved to the provider.
|
This also includes fields which have not yet been saved to the provider.
|
||||||
@ -1468,7 +1492,8 @@ Returns list of attribute indexes. i.e. a list from 0 ... fieldCount()
|
|||||||
Returns the list of attributes which make up the layer's primary keys.
|
Returns the list of attributes which make up the layer's primary keys.
|
||||||
%End
|
%End
|
||||||
|
|
||||||
long featureCount() const ${SIP_FINAL};
|
virtual long featureCount() const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns feature count including changes which have not yet been committed
|
Returns feature count including changes which have not yet been committed
|
||||||
If you need only the count of committed features call this method on this layer's provider.
|
If you need only the count of committed features call this method on this layer's provider.
|
||||||
@ -1692,7 +1717,8 @@ Deletes a list of attribute fields (but does not commit it)
|
|||||||
:return: true if at least one attribute has been deleted
|
:return: true if at least one attribute has been deleted
|
||||||
%End
|
%End
|
||||||
|
|
||||||
bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
|
virtual bool addFeatures( QgsFeatureList &features, QgsFeatureSink::Flags flags = 0 ) ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
bool deleteFeature( QgsFeatureId fid );
|
bool deleteFeature( QgsFeatureId fid );
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -1975,7 +2001,8 @@ for the field at `index`.
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const ${SIP_FINAL};
|
virtual QSet<QVariant> uniqueValues( int fieldIndex, int limit = -1 ) const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Calculates a list of unique values contained within an attribute in the layer. Note that
|
Calculates a list of unique values contained within an attribute in the layer. Note that
|
||||||
in some circumstances when unsaved changes are present for the layer then the returned list
|
in some circumstances when unsaved changes are present for the layer then the returned list
|
||||||
@ -2009,7 +2036,8 @@ returned list).
|
|||||||
:return: list of unique strings containing substring
|
:return: list of unique strings containing substring
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QVariant minimumValue( int index ) const ${SIP_FINAL};
|
virtual QVariant minimumValue( int index ) const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the minimum value for an attribute column or an invalid variant in case of error.
|
Returns the minimum value for an attribute column or an invalid variant in case of error.
|
||||||
Note that in some circumstances when unsaved changes are present for the layer then the
|
Note that in some circumstances when unsaved changes are present for the layer then the
|
||||||
@ -2021,7 +2049,8 @@ been changed inside the edit buffer then the previous saved value may be returne
|
|||||||
.. seealso:: :py:func:`uniqueValues`
|
.. seealso:: :py:func:`uniqueValues`
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QVariant maximumValue( int index ) const ${SIP_FINAL};
|
virtual QVariant maximumValue( int index ) const ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Returns the maximum value for an attribute column or an invalid variant in case of error.
|
Returns the maximum value for an attribute column or an invalid variant in case of error.
|
||||||
Note that in some circumstances when unsaved changes are present for the layer then the
|
Note that in some circumstances when unsaved changes are present for the layer then the
|
||||||
@ -2085,7 +2114,8 @@ and 1.0 (fully opaque).
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QString htmlMetadata() const ${SIP_FINAL};
|
virtual QString htmlMetadata() const ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
void setSimplifyMethod( const QgsVectorSimplifyMethod &simplifyMethod );
|
void setSimplifyMethod( const QgsVectorSimplifyMethod &simplifyMethod );
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -2153,9 +2183,11 @@ It may also contain embedded expressions.
|
|||||||
.. versionadded:: 3.0
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
QgsExpressionContext createExpressionContext() const ${SIP_FINAL};
|
virtual QgsExpressionContext createExpressionContext() const ${SIP_FINAL};
|
||||||
|
|
||||||
|
|
||||||
|
virtual QgsExpressionContextScope *createExpressionContextScope() const ${SIP_FINAL} /Factory/;
|
||||||
|
|
||||||
QgsExpressionContextScope *createExpressionContextScope() const ${SIP_FINAL} /Factory/;
|
|
||||||
|
|
||||||
QgsEditFormConfig editFormConfig() const;
|
QgsEditFormConfig editFormConfig() const;
|
||||||
%Docstring
|
%Docstring
|
||||||
@ -2566,7 +2598,8 @@ Emitted when the feature count for symbols on this layer has been recalculated.
|
|||||||
%End
|
%End
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
void setExtent( const QgsRectangle &rect ) ${SIP_FINAL};
|
virtual void setExtent( const QgsRectangle &rect ) ${SIP_FINAL};
|
||||||
|
|
||||||
%Docstring
|
%Docstring
|
||||||
Sets the extent
|
Sets the extent
|
||||||
%End
|
%End
|
||||||
|
@ -960,6 +960,7 @@ while ($LINE_IDX < $LINE_COUNT){
|
|||||||
}
|
}
|
||||||
|
|
||||||
$IS_OVERRIDE = 1 if ( $LINE =~ m/\boverride\b/);
|
$IS_OVERRIDE = 1 if ( $LINE =~ m/\boverride\b/);
|
||||||
|
$IS_OVERRIDE = 1 if ( $LINE =~ m/\bFINAL\b/);
|
||||||
|
|
||||||
# keyword fixes
|
# keyword fixes
|
||||||
do {no warnings 'uninitialized';
|
do {no warnings 'uninitialized';
|
||||||
|
@ -18,6 +18,7 @@
|
|||||||
#ifndef QGSVECTORLAYER_H
|
#ifndef QGSVECTORLAYER_H
|
||||||
#define QGSVECTORLAYER_H
|
#define QGSVECTORLAYER_H
|
||||||
|
|
||||||
|
|
||||||
#include "qgis_core.h"
|
#include "qgis_core.h"
|
||||||
#include <QMap>
|
#include <QMap>
|
||||||
#include <QSet>
|
#include <QSet>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user