Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Add enums to qgis.h instead of qgscoreenums, so that they belong to a Qgis namespace - Split up the various symbol headers into multiple files so that we can fine-tune their inclusion and forward declare more readily, speeding up recompilation - Move QgsSymbol enums to qgis
- Loading branch information
1 parent
239092e
commit b5dfe8f
Showing
302 changed files
with
3,873 additions
and
3,111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,61 @@ | ||
# The following has been generated automatically from src/core/qgis.h | ||
QgsMapLayer.LayerType = QgsMapLayerType | ||
# monkey patching scoped based enum | ||
QgsMapLayer.VectorLayer = QgsMapLayerType.VectorLayer | ||
QgsMapLayer.VectorLayer.__doc__ = "" | ||
QgsMapLayer.RasterLayer = QgsMapLayerType.RasterLayer | ||
QgsMapLayer.RasterLayer.__doc__ = "" | ||
QgsMapLayer.PluginLayer = QgsMapLayerType.PluginLayer | ||
QgsMapLayer.PluginLayer.__doc__ = "" | ||
QgsMapLayer.MeshLayer = QgsMapLayerType.MeshLayer | ||
QgsMapLayer.MeshLayer.__doc__ = "Added in 3.2" | ||
QgsMapLayer.VectorTileLayer = QgsMapLayerType.VectorTileLayer | ||
QgsMapLayer.VectorTileLayer.__doc__ = "Added in 3.14" | ||
QgsMapLayer.AnnotationLayer = QgsMapLayerType.AnnotationLayer | ||
QgsMapLayer.AnnotationLayer.__doc__ = "Contains freeform, georeferenced annotations. Added in QGIS 3.16" | ||
QgsMapLayer.PointCloudLayer = QgsMapLayerType.PointCloudLayer | ||
QgsMapLayer.PointCloudLayer.__doc__ = "Added in 3.18" | ||
QgsMapLayerType.__doc__ = 'Types of layers that can be added to a map\n\n.. versionadded:: 3.8\n\n' + '* ``VectorLayer``: ' + QgsMapLayerType.VectorLayer.__doc__ + '\n' + '* ``RasterLayer``: ' + QgsMapLayerType.RasterLayer.__doc__ + '\n' + '* ``PluginLayer``: ' + QgsMapLayerType.PluginLayer.__doc__ + '\n' + '* ``MeshLayer``: ' + QgsMapLayerType.MeshLayer.__doc__ + '\n' + '* ``VectorTileLayer``: ' + QgsMapLayerType.VectorTileLayer.__doc__ + '\n' + '* ``AnnotationLayer``: ' + QgsMapLayerType.AnnotationLayer.__doc__ + '\n' + '* ``PointCloudLayer``: ' + QgsMapLayerType.PointCloudLayer.__doc__ | ||
# -- | ||
Qgis.DataType.baseClass = Qgis | ||
Qgis.PythonMacroMode.baseClass = Qgis | ||
QgsVectorDataProvider.FeatureCountState = Qgis.FeatureCountState | ||
# monkey patching scoped based enum | ||
QgsVectorDataProvider.Uncounted = Qgis.FeatureCountState.Uncounted | ||
QgsVectorDataProvider.Uncounted.__doc__ = "Feature count not yet computed" | ||
QgsVectorDataProvider.UnknownCount = Qgis.FeatureCountState.UnknownCount | ||
QgsVectorDataProvider.UnknownCount.__doc__ = "Provider returned an unknown feature count" | ||
Qgis.FeatureCountState.__doc__ = 'Enumeration of feature count states\n\n.. versionadded:: 3.20\n\n' + '* ``Uncounted``: ' + Qgis.FeatureCountState.Uncounted.__doc__ + '\n' + '* ``UnknownCount``: ' + Qgis.FeatureCountState.UnknownCount.__doc__ | ||
# -- | ||
QgsSymbol.SymbolType = Qgis.SymbolType | ||
# monkey patching scoped based enum | ||
QgsSymbol.Marker = Qgis.SymbolType.Marker | ||
QgsSymbol.Marker.__doc__ = "Marker symbol" | ||
QgsSymbol.Line = Qgis.SymbolType.Line | ||
QgsSymbol.Line.__doc__ = "Line symbol" | ||
QgsSymbol.Fill = Qgis.SymbolType.Fill | ||
QgsSymbol.Fill.__doc__ = "Fill symbol" | ||
QgsSymbol.Hybrid = Qgis.SymbolType.Hybrid | ||
QgsSymbol.Hybrid.__doc__ = "Hybrid symbol" | ||
Qgis.SymbolType.__doc__ = 'Symbol types\n\n.. versionadded:: 3.20\n\n' + '* ``Marker``: ' + Qgis.SymbolType.Marker.__doc__ + '\n' + '* ``Line``: ' + Qgis.SymbolType.Line.__doc__ + '\n' + '* ``Fill``: ' + Qgis.SymbolType.Fill.__doc__ + '\n' + '* ``Hybrid``: ' + Qgis.SymbolType.Hybrid.__doc__ | ||
# -- | ||
QgsSymbol.ScaleMethod = Qgis.ScaleMethod | ||
# monkey patching scoped based enum | ||
QgsSymbol.ScaleArea = Qgis.ScaleMethod.ScaleArea | ||
QgsSymbol.ScaleArea.__doc__ = "Calculate scale by the area" | ||
QgsSymbol.ScaleDiameter = Qgis.ScaleMethod.ScaleDiameter | ||
QgsSymbol.ScaleDiameter.__doc__ = "Calculate scale by the diameter" | ||
Qgis.ScaleMethod.__doc__ = 'Scale methods\n\n.. versionadded:: 3.20\n\n' + '* ``ScaleArea``: ' + Qgis.ScaleMethod.ScaleArea.__doc__ + '\n' + '* ``ScaleDiameter``: ' + Qgis.ScaleMethod.ScaleDiameter.__doc__ | ||
# -- | ||
QgsSymbol.RenderHint = Qgis.SymbolRenderHint | ||
# monkey patching scoped based enum | ||
QgsSymbol.DynamicRotation = Qgis.SymbolRenderHint.DynamicRotation | ||
QgsSymbol.DynamicRotation.__doc__ = "Rotation of symbol may be changed during rendering and symbol should not be cached" | ||
Qgis.SymbolRenderHint.__doc__ = 'Flags controlling behavior of symbols during rendering\n\n.. versionadded:: 3.20\n\n' + '* ``DynamicRotation``: ' + Qgis.SymbolRenderHint.DynamicRotation.__doc__ | ||
# -- | ||
QgsSymbol.PreviewFlag = Qgis.SymbolPreviewFlag | ||
# monkey patching scoped based enum | ||
QgsSymbol.FlagIncludeCrosshairsForMarkerSymbols = Qgis.SymbolPreviewFlag.FlagIncludeCrosshairsForMarkerSymbols | ||
QgsSymbol.FlagIncludeCrosshairsForMarkerSymbols.__doc__ = "Include a crosshairs reference image in the background of marker symbol previews" | ||
Qgis.SymbolPreviewFlag.__doc__ = 'Flags for controlling how symbol preview images are generated.\n\n.. versionadded:: 3.20\n\n' + '* ``FlagIncludeCrosshairsForMarkerSymbols``: ' + Qgis.SymbolPreviewFlag.FlagIncludeCrosshairsForMarkerSymbols.__doc__ | ||
# -- |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
|
||
|
||
|
||
class QgsBlurEffect : QgsPaintEffect /NoDefaultCtors/ | ||
{ | ||
%Docstring(signature="appended") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,7 @@ | |
|
||
|
||
|
||
|
||
class QgsShadowEffect : QgsPaintEffect /NoDefaultCtors/ | ||
{ | ||
%Docstring(signature="appended") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
|
||
|
||
|
||
|
||
class QgsColorRampLegendNode : QgsLayerTreeModelLegendNode | ||
{ | ||
%Docstring(signature="appended") | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
b5dfe8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson , @m-kuhn , getting some errors when building on windows (vcpkg):
b5dfe8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nirvn does adding "#include "qgsmarkersymbol.h" to qgscallout.cpp fix it?
b5dfe8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nyalldawson , it errors out on a few dozen files.
b5dfe8f
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
List: