diff --git a/python/PyQt6/core/auto_additions/qgsprocessingparameters.py b/python/PyQt6/core/auto_additions/qgsprocessingparameters.py index fe4389e4dd3..22e80f7084b 100644 --- a/python/PyQt6/core/auto_additions/qgsprocessingparameters.py +++ b/python/PyQt6/core/auto_additions/qgsprocessingparameters.py @@ -69,69 +69,69 @@ except (NameError, AttributeError): try: QgsProcessingParameterBoolean.typeName = staticmethod(QgsProcessingParameterBoolean.typeName) QgsProcessingParameterBoolean.fromScriptCode = staticmethod(QgsProcessingParameterBoolean.fromScriptCode) - QgsProcessingParameterBoolean.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode'] + QgsProcessingParameterBoolean.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode'] QgsProcessingParameterBoolean.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterCrs.typeName = staticmethod(QgsProcessingParameterCrs.typeName) QgsProcessingParameterCrs.fromScriptCode = staticmethod(QgsProcessingParameterCrs.fromScriptCode) - QgsProcessingParameterCrs.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterCrs.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterCrs.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterExtent.typeName = staticmethod(QgsProcessingParameterExtent.typeName) QgsProcessingParameterExtent.fromScriptCode = staticmethod(QgsProcessingParameterExtent.fromScriptCode) - QgsProcessingParameterExtent.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterExtent.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterExtent.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterPoint.typeName = staticmethod(QgsProcessingParameterPoint.typeName) QgsProcessingParameterPoint.fromScriptCode = staticmethod(QgsProcessingParameterPoint.fromScriptCode) - QgsProcessingParameterPoint.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString'] + QgsProcessingParameterPoint.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString'] QgsProcessingParameterPoint.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterGeometry.typeName = staticmethod(QgsProcessingParameterGeometry.typeName) QgsProcessingParameterGeometry.fromScriptCode = staticmethod(QgsProcessingParameterGeometry.fromScriptCode) - QgsProcessingParameterGeometry.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterGeometry.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterGeometry.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFile.typeName = staticmethod(QgsProcessingParameterFile.typeName) QgsProcessingParameterFile.fromScriptCode = staticmethod(QgsProcessingParameterFile.fromScriptCode) - QgsProcessingParameterFile.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFile.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFile.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMatrix.typeName = staticmethod(QgsProcessingParameterMatrix.typeName) QgsProcessingParameterMatrix.fromScriptCode = staticmethod(QgsProcessingParameterMatrix.fromScriptCode) - QgsProcessingParameterMatrix.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMatrix.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMatrix.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMultipleLayers.typeName = staticmethod(QgsProcessingParameterMultipleLayers.typeName) QgsProcessingParameterMultipleLayers.fromScriptCode = staticmethod(QgsProcessingParameterMultipleLayers.fromScriptCode) - QgsProcessingParameterMultipleLayers.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMultipleLayers.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMultipleLayers.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterNumber.typeName = staticmethod(QgsProcessingParameterNumber.typeName) QgsProcessingParameterNumber.fromScriptCode = staticmethod(QgsProcessingParameterNumber.fromScriptCode) - QgsProcessingParameterNumber.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterNumber.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterNumber.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterDistance.typeName = staticmethod(QgsProcessingParameterDistance.typeName) - QgsProcessingParameterDistance.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDistance.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDistance.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -149,42 +149,42 @@ except (NameError, AttributeError): pass try: QgsProcessingParameterDuration.typeName = staticmethod(QgsProcessingParameterDuration.typeName) - QgsProcessingParameterDuration.__overridden_methods__ = ['modelColor', 'clone', 'type', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDuration.__overridden_methods__ = ['clone', 'type', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDuration.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterScale.typeName = staticmethod(QgsProcessingParameterScale.typeName) QgsProcessingParameterScale.fromScriptCode = staticmethod(QgsProcessingParameterScale.fromScriptCode) - QgsProcessingParameterScale.__overridden_methods__ = ['modelColor', 'clone', 'type', 'asPythonString'] + QgsProcessingParameterScale.__overridden_methods__ = ['clone', 'type', 'asPythonString'] QgsProcessingParameterScale.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterRange.typeName = staticmethod(QgsProcessingParameterRange.typeName) QgsProcessingParameterRange.fromScriptCode = staticmethod(QgsProcessingParameterRange.fromScriptCode) - QgsProcessingParameterRange.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterRange.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterRange.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterRasterLayer.typeName = staticmethod(QgsProcessingParameterRasterLayer.typeName) QgsProcessingParameterRasterLayer.fromScriptCode = staticmethod(QgsProcessingParameterRasterLayer.fromScriptCode) - QgsProcessingParameterRasterLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterRasterLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterRasterLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterEnum.typeName = staticmethod(QgsProcessingParameterEnum.typeName) QgsProcessingParameterEnum.fromScriptCode = staticmethod(QgsProcessingParameterEnum.fromScriptCode) - QgsProcessingParameterEnum.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsPythonComment', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterEnum.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsPythonComment', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterEnum.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterString.typeName = staticmethod(QgsProcessingParameterString.typeName) QgsProcessingParameterString.fromScriptCode = staticmethod(QgsProcessingParameterString.fromScriptCode) - QgsProcessingParameterString.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterString.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterString.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -198,28 +198,28 @@ except (NameError, AttributeError): try: QgsProcessingParameterExpression.typeName = staticmethod(QgsProcessingParameterExpression.typeName) QgsProcessingParameterExpression.fromScriptCode = staticmethod(QgsProcessingParameterExpression.fromScriptCode) - QgsProcessingParameterExpression.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterExpression.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterExpression.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterVectorLayer.typeName = staticmethod(QgsProcessingParameterVectorLayer.typeName) QgsProcessingParameterVectorLayer.fromScriptCode = staticmethod(QgsProcessingParameterVectorLayer.fromScriptCode) - QgsProcessingParameterVectorLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterVectorLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterVectorLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMeshLayer.typeName = staticmethod(QgsProcessingParameterMeshLayer.typeName) QgsProcessingParameterMeshLayer.fromScriptCode = staticmethod(QgsProcessingParameterMeshLayer.fromScriptCode) - QgsProcessingParameterMeshLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterMeshLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterMeshLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMapLayer.typeName = staticmethod(QgsProcessingParameterMapLayer.typeName) QgsProcessingParameterMapLayer.fromScriptCode = staticmethod(QgsProcessingParameterMapLayer.fromScriptCode) - QgsProcessingParameterMapLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMapLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMapLayer.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -233,7 +233,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterFeatureSource.typeName = staticmethod(QgsProcessingParameterFeatureSource.typeName) QgsProcessingParameterFeatureSource.fromScriptCode = staticmethod(QgsProcessingParameterFeatureSource.fromScriptCode) - QgsProcessingParameterFeatureSource.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFeatureSource.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFeatureSource.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -241,7 +241,7 @@ try: QgsProcessingParameterFeatureSink.typeName = staticmethod(QgsProcessingParameterFeatureSink.typeName) QgsProcessingParameterFeatureSink.fromScriptCode = staticmethod(QgsProcessingParameterFeatureSink.fromScriptCode) QgsProcessingParameterFeatureSink.__virtual_methods__ = ['supportedOutputVectorLayerExtensions'] - QgsProcessingParameterFeatureSink.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap', 'generateTemporaryDestination'] + QgsProcessingParameterFeatureSink.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap', 'generateTemporaryDestination'] QgsProcessingParameterFeatureSink.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -249,7 +249,7 @@ try: QgsProcessingParameterVectorDestination.typeName = staticmethod(QgsProcessingParameterVectorDestination.typeName) QgsProcessingParameterVectorDestination.fromScriptCode = staticmethod(QgsProcessingParameterVectorDestination.fromScriptCode) QgsProcessingParameterVectorDestination.__virtual_methods__ = ['supportedOutputVectorLayerExtensions'] - QgsProcessingParameterVectorDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterVectorDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterVectorDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -257,21 +257,21 @@ try: QgsProcessingParameterRasterDestination.typeName = staticmethod(QgsProcessingParameterRasterDestination.typeName) QgsProcessingParameterRasterDestination.fromScriptCode = staticmethod(QgsProcessingParameterRasterDestination.fromScriptCode) QgsProcessingParameterRasterDestination.__virtual_methods__ = ['supportedOutputRasterLayerExtensions'] - QgsProcessingParameterRasterDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterRasterDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterRasterDestination.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFileDestination.typeName = staticmethod(QgsProcessingParameterFileDestination.typeName) QgsProcessingParameterFileDestination.fromScriptCode = staticmethod(QgsProcessingParameterFileDestination.fromScriptCode) - QgsProcessingParameterFileDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFileDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFileDestination.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFolderDestination.typeName = staticmethod(QgsProcessingParameterFolderDestination.typeName) QgsProcessingParameterFolderDestination.fromScriptCode = staticmethod(QgsProcessingParameterFolderDestination.fromScriptCode) - QgsProcessingParameterFolderDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'toOutputDefinition', 'defaultFileExtension'] + QgsProcessingParameterFolderDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'toOutputDefinition', 'defaultFileExtension'] QgsProcessingParameterFolderDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -299,7 +299,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterColor.typeName = staticmethod(QgsProcessingParameterColor.typeName) QgsProcessingParameterColor.fromScriptCode = staticmethod(QgsProcessingParameterColor.fromScriptCode) - QgsProcessingParameterColor.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'checkValueIsAcceptable', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterColor.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'checkValueIsAcceptable', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterColor.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -320,7 +320,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterDateTime.typeName = staticmethod(QgsProcessingParameterDateTime.typeName) QgsProcessingParameterDateTime.fromScriptCode = staticmethod(QgsProcessingParameterDateTime.fromScriptCode) - QgsProcessingParameterDateTime.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDateTime.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDateTime.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -348,14 +348,14 @@ except (NameError, AttributeError): try: QgsProcessingParameterPointCloudLayer.typeName = staticmethod(QgsProcessingParameterPointCloudLayer.typeName) QgsProcessingParameterPointCloudLayer.fromScriptCode = staticmethod(QgsProcessingParameterPointCloudLayer.fromScriptCode) - QgsProcessingParameterPointCloudLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterPointCloudLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterPointCloudLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterAnnotationLayer.typeName = staticmethod(QgsProcessingParameterAnnotationLayer.typeName) QgsProcessingParameterAnnotationLayer.fromScriptCode = staticmethod(QgsProcessingParameterAnnotationLayer.fromScriptCode) - QgsProcessingParameterAnnotationLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterAnnotationLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterAnnotationLayer.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -363,7 +363,7 @@ try: QgsProcessingParameterPointCloudDestination.typeName = staticmethod(QgsProcessingParameterPointCloudDestination.typeName) QgsProcessingParameterPointCloudDestination.fromScriptCode = staticmethod(QgsProcessingParameterPointCloudDestination.fromScriptCode) QgsProcessingParameterPointCloudDestination.__virtual_methods__ = ['supportedOutputPointCloudLayerExtensions'] - QgsProcessingParameterPointCloudDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterPointCloudDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterPointCloudDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -378,7 +378,7 @@ try: QgsProcessingParameterVectorTileDestination.typeName = staticmethod(QgsProcessingParameterVectorTileDestination.typeName) QgsProcessingParameterVectorTileDestination.fromScriptCode = staticmethod(QgsProcessingParameterVectorTileDestination.fromScriptCode) QgsProcessingParameterVectorTileDestination.__virtual_methods__ = ['supportedOutputVectorTileLayerExtensions'] - QgsProcessingParameterVectorTileDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterVectorTileDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterVectorTileDestination.__group__ = ['processing'] except (NameError, AttributeError): pass diff --git a/python/PyQt6/core/auto_additions/qgsprocessingparametertype.py b/python/PyQt6/core/auto_additions/qgsprocessingparametertype.py index 53f94267b63..5d82e6ae7bc 100644 --- a/python/PyQt6/core/auto_additions/qgsprocessingparametertype.py +++ b/python/PyQt6/core/auto_additions/qgsprocessingparametertype.py @@ -1,6 +1,7 @@ # The following has been generated automatically from src/core/processing/qgsprocessingparametertype.h try: - QgsProcessingParameterType.__virtual_methods__ = ['pythonImportString', 'className', 'flags', 'metadata', 'acceptedPythonTypes', 'acceptedStringValues', 'acceptedDataTypes'] + QgsProcessingParameterType.defaultModelColor = staticmethod(QgsProcessingParameterType.defaultModelColor) + QgsProcessingParameterType.__virtual_methods__ = ['pythonImportString', 'className', 'flags', 'metadata', 'acceptedPythonTypes', 'acceptedStringValues', 'acceptedDataTypes', 'modelColor'] QgsProcessingParameterType.__abstract_methods__ = ['create', 'description', 'name', 'id', 'acceptedParameterTypes', 'acceptedOutputTypes'] QgsProcessingParameterType.__group__ = ['processing'] except (NameError, AttributeError): diff --git a/python/PyQt6/core/auto_generated/processing/qgsprocessingparameters.sip.in b/python/PyQt6/core/auto_generated/processing/qgsprocessingparameters.sip.in index 80e18fc11a1..33a5bf9b1d8 100644 --- a/python/PyQt6/core/auto_generated/processing/qgsprocessingparameters.sip.in +++ b/python/PyQt6/core/auto_generated/processing/qgsprocessingparameters.sip.in @@ -1897,7 +1897,6 @@ A boolean parameter for processing algorithms. Constructor for QgsProcessingParameterBoolean. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -1933,7 +1932,6 @@ A coordinate reference system parameter for processing algorithms. Constructor for QgsProcessingParameterCrs. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; %Docstring @@ -1981,7 +1979,6 @@ A rectangular map extent parameter for processing algorithms. Constructor for QgsProcessingParameterExtent. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2023,8 +2020,6 @@ A point parameter for processing algorithms. Constructor for QgsProcessingParameterPoint. %End - virtual QColor modelColor() const; - static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2067,7 +2062,6 @@ Passing a empty list will allow for any type of geometry. The ``allowMultiPart`` argument allows specifying a multi part geometry %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2150,7 +2144,6 @@ one of ``extension`` or ``fileFilter`` should be specified, if both are specified then ``fileFilter`` takes precedence. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2269,7 +2262,6 @@ Constructor for QgsProcessingParameterMatrix. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2364,7 +2356,6 @@ A parameter for processing algorithms which accepts multiple map layers. Constructor for QgsProcessingParameterMultipleLayers. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2468,7 +2459,6 @@ Constructor for QgsProcessingParameterNumber. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2577,7 +2567,6 @@ Constructor for QgsProcessingParameterDistance. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; @@ -2842,7 +2831,6 @@ Constructor for QgsProcessingParameterDuration. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDuration *clone() const /Factory/; @@ -2901,7 +2889,6 @@ Constructor for QgsProcessingParameterScale. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterScale *clone() const /Factory/; @@ -2941,7 +2928,6 @@ Constructor for QgsProcessingParameterRange. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2995,7 +2981,6 @@ A raster layer parameter for processing algorithms. Constructor for QgsProcessingParameterRasterLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3054,7 +3039,6 @@ values. Constructor for QgsProcessingParameterEnum. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; %Docstring @@ -3180,7 +3164,6 @@ accordingly.) Constructor for QgsProcessingParameterString. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3284,7 +3267,6 @@ An expression parameter for processing algorithms. Constructor for QgsProcessingParameterExpression. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3406,8 +3388,6 @@ Consider using the more versatile Constructor for QgsProcessingParameterVectorLayer. %End - virtual QColor modelColor() const; - static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3461,7 +3441,6 @@ A mesh layer parameter for processing algorithms. Constructor for QgsProcessingParameterMeshLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3504,7 +3483,6 @@ A map layer parameter for processing algorithms. Constructor for QgsProcessingParameterMapLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3685,7 +3663,6 @@ algorithms. Constructor for QgsProcessingParameterFeatureSource. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3862,7 +3839,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3984,7 +3960,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4074,7 +4049,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4148,7 +4122,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4219,7 +4192,6 @@ the algorithm. Constructor for QgsProcessingParameterFolderDestination. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4492,7 +4464,6 @@ varying color opacity. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -4749,7 +4720,6 @@ will return a date time value. Constructor for QgsProcessingParameterDateTime. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5129,7 +5099,6 @@ A point cloud layer parameter for processing algorithms. Constructor for QgsProcessingParameterPointCloudLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5174,7 +5143,6 @@ An annotation layer parameter for processing algorithms. Constructor for QgsProcessingParameterAnnotationLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5222,7 +5190,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5388,7 +5355,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. diff --git a/python/PyQt6/core/auto_generated/processing/qgsprocessingparametertype.sip.in b/python/PyQt6/core/auto_generated/processing/qgsprocessingparametertype.sip.in index b83bffed9dd..5b5fd267ea3 100644 --- a/python/PyQt6/core/auto_generated/processing/qgsprocessingparametertype.sip.in +++ b/python/PyQt6/core/auto_generated/processing/qgsprocessingparametertype.sip.in @@ -23,6 +23,8 @@ Makes metadata of processing parameters available. %End public: + static QColor defaultModelColor(); + virtual QgsProcessingParameterDefinition *create( const QString &name ) const = 0 /Factory/; %Docstring Creates a new parameter of this type. @@ -175,6 +177,11 @@ for the parameter. .. seealso:: :py:func:`acceptedOutputTypes` .. versionadded:: 3.44 +%End + + virtual QColor modelColor() const; +%Docstring +A color to represent the default parameter %End }; diff --git a/python/core/auto_additions/qgsprocessingparameters.py b/python/core/auto_additions/qgsprocessingparameters.py index fe4389e4dd3..22e80f7084b 100644 --- a/python/core/auto_additions/qgsprocessingparameters.py +++ b/python/core/auto_additions/qgsprocessingparameters.py @@ -69,69 +69,69 @@ except (NameError, AttributeError): try: QgsProcessingParameterBoolean.typeName = staticmethod(QgsProcessingParameterBoolean.typeName) QgsProcessingParameterBoolean.fromScriptCode = staticmethod(QgsProcessingParameterBoolean.fromScriptCode) - QgsProcessingParameterBoolean.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode'] + QgsProcessingParameterBoolean.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode'] QgsProcessingParameterBoolean.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterCrs.typeName = staticmethod(QgsProcessingParameterCrs.typeName) QgsProcessingParameterCrs.fromScriptCode = staticmethod(QgsProcessingParameterCrs.fromScriptCode) - QgsProcessingParameterCrs.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterCrs.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterCrs.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterExtent.typeName = staticmethod(QgsProcessingParameterExtent.typeName) QgsProcessingParameterExtent.fromScriptCode = staticmethod(QgsProcessingParameterExtent.fromScriptCode) - QgsProcessingParameterExtent.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterExtent.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterExtent.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterPoint.typeName = staticmethod(QgsProcessingParameterPoint.typeName) QgsProcessingParameterPoint.fromScriptCode = staticmethod(QgsProcessingParameterPoint.fromScriptCode) - QgsProcessingParameterPoint.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString'] + QgsProcessingParameterPoint.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString'] QgsProcessingParameterPoint.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterGeometry.typeName = staticmethod(QgsProcessingParameterGeometry.typeName) QgsProcessingParameterGeometry.fromScriptCode = staticmethod(QgsProcessingParameterGeometry.fromScriptCode) - QgsProcessingParameterGeometry.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterGeometry.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterGeometry.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFile.typeName = staticmethod(QgsProcessingParameterFile.typeName) QgsProcessingParameterFile.fromScriptCode = staticmethod(QgsProcessingParameterFile.fromScriptCode) - QgsProcessingParameterFile.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFile.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFile.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMatrix.typeName = staticmethod(QgsProcessingParameterMatrix.typeName) QgsProcessingParameterMatrix.fromScriptCode = staticmethod(QgsProcessingParameterMatrix.fromScriptCode) - QgsProcessingParameterMatrix.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMatrix.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMatrix.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMultipleLayers.typeName = staticmethod(QgsProcessingParameterMultipleLayers.typeName) QgsProcessingParameterMultipleLayers.fromScriptCode = staticmethod(QgsProcessingParameterMultipleLayers.fromScriptCode) - QgsProcessingParameterMultipleLayers.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMultipleLayers.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMultipleLayers.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterNumber.typeName = staticmethod(QgsProcessingParameterNumber.typeName) QgsProcessingParameterNumber.fromScriptCode = staticmethod(QgsProcessingParameterNumber.fromScriptCode) - QgsProcessingParameterNumber.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterNumber.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterNumber.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterDistance.typeName = staticmethod(QgsProcessingParameterDistance.typeName) - QgsProcessingParameterDistance.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDistance.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDistance.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -149,42 +149,42 @@ except (NameError, AttributeError): pass try: QgsProcessingParameterDuration.typeName = staticmethod(QgsProcessingParameterDuration.typeName) - QgsProcessingParameterDuration.__overridden_methods__ = ['modelColor', 'clone', 'type', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDuration.__overridden_methods__ = ['clone', 'type', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDuration.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterScale.typeName = staticmethod(QgsProcessingParameterScale.typeName) QgsProcessingParameterScale.fromScriptCode = staticmethod(QgsProcessingParameterScale.fromScriptCode) - QgsProcessingParameterScale.__overridden_methods__ = ['modelColor', 'clone', 'type', 'asPythonString'] + QgsProcessingParameterScale.__overridden_methods__ = ['clone', 'type', 'asPythonString'] QgsProcessingParameterScale.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterRange.typeName = staticmethod(QgsProcessingParameterRange.typeName) QgsProcessingParameterRange.fromScriptCode = staticmethod(QgsProcessingParameterRange.fromScriptCode) - QgsProcessingParameterRange.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterRange.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterRange.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterRasterLayer.typeName = staticmethod(QgsProcessingParameterRasterLayer.typeName) QgsProcessingParameterRasterLayer.fromScriptCode = staticmethod(QgsProcessingParameterRasterLayer.fromScriptCode) - QgsProcessingParameterRasterLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterRasterLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterRasterLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterEnum.typeName = staticmethod(QgsProcessingParameterEnum.typeName) QgsProcessingParameterEnum.fromScriptCode = staticmethod(QgsProcessingParameterEnum.fromScriptCode) - QgsProcessingParameterEnum.__overridden_methods__ = ['modelColor', 'getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsPythonComment', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterEnum.__overridden_methods__ = ['getUserFriendlyValue', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsPythonComment', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterEnum.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterString.typeName = staticmethod(QgsProcessingParameterString.typeName) QgsProcessingParameterString.fromScriptCode = staticmethod(QgsProcessingParameterString.fromScriptCode) - QgsProcessingParameterString.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterString.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterString.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -198,28 +198,28 @@ except (NameError, AttributeError): try: QgsProcessingParameterExpression.typeName = staticmethod(QgsProcessingParameterExpression.typeName) QgsProcessingParameterExpression.fromScriptCode = staticmethod(QgsProcessingParameterExpression.fromScriptCode) - QgsProcessingParameterExpression.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterExpression.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'dependsOnOtherParameters', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterExpression.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterVectorLayer.typeName = staticmethod(QgsProcessingParameterVectorLayer.typeName) QgsProcessingParameterVectorLayer.fromScriptCode = staticmethod(QgsProcessingParameterVectorLayer.fromScriptCode) - QgsProcessingParameterVectorLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterVectorLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterVectorLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMeshLayer.typeName = staticmethod(QgsProcessingParameterMeshLayer.typeName) QgsProcessingParameterMeshLayer.fromScriptCode = staticmethod(QgsProcessingParameterMeshLayer.fromScriptCode) - QgsProcessingParameterMeshLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterMeshLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterMeshLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterMapLayer.typeName = staticmethod(QgsProcessingParameterMapLayer.typeName) QgsProcessingParameterMapLayer.fromScriptCode = staticmethod(QgsProcessingParameterMapLayer.fromScriptCode) - QgsProcessingParameterMapLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterMapLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterMapLayer.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -233,7 +233,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterFeatureSource.typeName = staticmethod(QgsProcessingParameterFeatureSource.typeName) QgsProcessingParameterFeatureSource.fromScriptCode = staticmethod(QgsProcessingParameterFeatureSource.fromScriptCode) - QgsProcessingParameterFeatureSource.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFeatureSource.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'asScriptCode', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFeatureSource.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -241,7 +241,7 @@ try: QgsProcessingParameterFeatureSink.typeName = staticmethod(QgsProcessingParameterFeatureSink.typeName) QgsProcessingParameterFeatureSink.fromScriptCode = staticmethod(QgsProcessingParameterFeatureSink.fromScriptCode) QgsProcessingParameterFeatureSink.__virtual_methods__ = ['supportedOutputVectorLayerExtensions'] - QgsProcessingParameterFeatureSink.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap', 'generateTemporaryDestination'] + QgsProcessingParameterFeatureSink.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap', 'generateTemporaryDestination'] QgsProcessingParameterFeatureSink.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -249,7 +249,7 @@ try: QgsProcessingParameterVectorDestination.typeName = staticmethod(QgsProcessingParameterVectorDestination.typeName) QgsProcessingParameterVectorDestination.fromScriptCode = staticmethod(QgsProcessingParameterVectorDestination.fromScriptCode) QgsProcessingParameterVectorDestination.__virtual_methods__ = ['supportedOutputVectorLayerExtensions'] - QgsProcessingParameterVectorDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterVectorDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'asScriptCode', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterVectorDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -257,21 +257,21 @@ try: QgsProcessingParameterRasterDestination.typeName = staticmethod(QgsProcessingParameterRasterDestination.typeName) QgsProcessingParameterRasterDestination.fromScriptCode = staticmethod(QgsProcessingParameterRasterDestination.fromScriptCode) QgsProcessingParameterRasterDestination.__virtual_methods__ = ['supportedOutputRasterLayerExtensions'] - QgsProcessingParameterRasterDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterRasterDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterRasterDestination.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFileDestination.typeName = staticmethod(QgsProcessingParameterFileDestination.typeName) QgsProcessingParameterFileDestination.fromScriptCode = staticmethod(QgsProcessingParameterFileDestination.fromScriptCode) - QgsProcessingParameterFileDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterFileDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'asPythonString', 'createFileFilter', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterFileDestination.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterFolderDestination.typeName = staticmethod(QgsProcessingParameterFolderDestination.typeName) QgsProcessingParameterFolderDestination.fromScriptCode = staticmethod(QgsProcessingParameterFolderDestination.fromScriptCode) - QgsProcessingParameterFolderDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'toOutputDefinition', 'defaultFileExtension'] + QgsProcessingParameterFolderDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'toOutputDefinition', 'defaultFileExtension'] QgsProcessingParameterFolderDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -299,7 +299,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterColor.typeName = staticmethod(QgsProcessingParameterColor.typeName) QgsProcessingParameterColor.fromScriptCode = staticmethod(QgsProcessingParameterColor.fromScriptCode) - QgsProcessingParameterColor.__overridden_methods__ = ['modelColor', 'clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'checkValueIsAcceptable', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterColor.__overridden_methods__ = ['clone', 'type', 'valueAsPythonString', 'asScriptCode', 'asPythonString', 'checkValueIsAcceptable', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterColor.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -320,7 +320,7 @@ except (NameError, AttributeError): try: QgsProcessingParameterDateTime.typeName = staticmethod(QgsProcessingParameterDateTime.typeName) QgsProcessingParameterDateTime.fromScriptCode = staticmethod(QgsProcessingParameterDateTime.fromScriptCode) - QgsProcessingParameterDateTime.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] + QgsProcessingParameterDateTime.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toolTip', 'asPythonString', 'toVariantMap', 'fromVariantMap'] QgsProcessingParameterDateTime.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -348,14 +348,14 @@ except (NameError, AttributeError): try: QgsProcessingParameterPointCloudLayer.typeName = staticmethod(QgsProcessingParameterPointCloudLayer.typeName) QgsProcessingParameterPointCloudLayer.fromScriptCode = staticmethod(QgsProcessingParameterPointCloudLayer.fromScriptCode) - QgsProcessingParameterPointCloudLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] + QgsProcessingParameterPointCloudLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject', 'createFileFilter'] QgsProcessingParameterPointCloudLayer.__group__ = ['processing'] except (NameError, AttributeError): pass try: QgsProcessingParameterAnnotationLayer.typeName = staticmethod(QgsProcessingParameterAnnotationLayer.typeName) QgsProcessingParameterAnnotationLayer.fromScriptCode = staticmethod(QgsProcessingParameterAnnotationLayer.fromScriptCode) - QgsProcessingParameterAnnotationLayer.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] + QgsProcessingParameterAnnotationLayer.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'valueAsString', 'valueAsJsonObject'] QgsProcessingParameterAnnotationLayer.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -363,7 +363,7 @@ try: QgsProcessingParameterPointCloudDestination.typeName = staticmethod(QgsProcessingParameterPointCloudDestination.typeName) QgsProcessingParameterPointCloudDestination.fromScriptCode = staticmethod(QgsProcessingParameterPointCloudDestination.fromScriptCode) QgsProcessingParameterPointCloudDestination.__virtual_methods__ = ['supportedOutputPointCloudLayerExtensions'] - QgsProcessingParameterPointCloudDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterPointCloudDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterPointCloudDestination.__group__ = ['processing'] except (NameError, AttributeError): pass @@ -378,7 +378,7 @@ try: QgsProcessingParameterVectorTileDestination.typeName = staticmethod(QgsProcessingParameterVectorTileDestination.typeName) QgsProcessingParameterVectorTileDestination.fromScriptCode = staticmethod(QgsProcessingParameterVectorTileDestination.fromScriptCode) QgsProcessingParameterVectorTileDestination.__virtual_methods__ = ['supportedOutputVectorTileLayerExtensions'] - QgsProcessingParameterVectorTileDestination.__overridden_methods__ = ['modelColor', 'clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] + QgsProcessingParameterVectorTileDestination.__overridden_methods__ = ['clone', 'type', 'checkValueIsAcceptable', 'valueAsPythonString', 'toOutputDefinition', 'defaultFileExtension', 'createFileFilter'] QgsProcessingParameterVectorTileDestination.__group__ = ['processing'] except (NameError, AttributeError): pass diff --git a/python/core/auto_additions/qgsprocessingparametertype.py b/python/core/auto_additions/qgsprocessingparametertype.py index 53f94267b63..5d82e6ae7bc 100644 --- a/python/core/auto_additions/qgsprocessingparametertype.py +++ b/python/core/auto_additions/qgsprocessingparametertype.py @@ -1,6 +1,7 @@ # The following has been generated automatically from src/core/processing/qgsprocessingparametertype.h try: - QgsProcessingParameterType.__virtual_methods__ = ['pythonImportString', 'className', 'flags', 'metadata', 'acceptedPythonTypes', 'acceptedStringValues', 'acceptedDataTypes'] + QgsProcessingParameterType.defaultModelColor = staticmethod(QgsProcessingParameterType.defaultModelColor) + QgsProcessingParameterType.__virtual_methods__ = ['pythonImportString', 'className', 'flags', 'metadata', 'acceptedPythonTypes', 'acceptedStringValues', 'acceptedDataTypes', 'modelColor'] QgsProcessingParameterType.__abstract_methods__ = ['create', 'description', 'name', 'id', 'acceptedParameterTypes', 'acceptedOutputTypes'] QgsProcessingParameterType.__group__ = ['processing'] except (NameError, AttributeError): diff --git a/python/core/auto_generated/processing/qgsprocessingparameters.sip.in b/python/core/auto_generated/processing/qgsprocessingparameters.sip.in index 3295ba0b057..55b931eac30 100644 --- a/python/core/auto_generated/processing/qgsprocessingparameters.sip.in +++ b/python/core/auto_generated/processing/qgsprocessingparameters.sip.in @@ -1897,7 +1897,6 @@ A boolean parameter for processing algorithms. Constructor for QgsProcessingParameterBoolean. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -1933,7 +1932,6 @@ A coordinate reference system parameter for processing algorithms. Constructor for QgsProcessingParameterCrs. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; %Docstring @@ -1981,7 +1979,6 @@ A rectangular map extent parameter for processing algorithms. Constructor for QgsProcessingParameterExtent. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2023,8 +2020,6 @@ A point parameter for processing algorithms. Constructor for QgsProcessingParameterPoint. %End - virtual QColor modelColor() const; - static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2067,7 +2062,6 @@ Passing a empty list will allow for any type of geometry. The ``allowMultiPart`` argument allows specifying a multi part geometry %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2150,7 +2144,6 @@ one of ``extension`` or ``fileFilter`` should be specified, if both are specified then ``fileFilter`` takes precedence. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2269,7 +2262,6 @@ Constructor for QgsProcessingParameterMatrix. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2364,7 +2356,6 @@ A parameter for processing algorithms which accepts multiple map layers. Constructor for QgsProcessingParameterMultipleLayers. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -2468,7 +2459,6 @@ Constructor for QgsProcessingParameterNumber. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2577,7 +2567,6 @@ Constructor for QgsProcessingParameterDistance. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; @@ -2842,7 +2831,6 @@ Constructor for QgsProcessingParameterDuration. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDuration *clone() const /Factory/; @@ -2901,7 +2889,6 @@ Constructor for QgsProcessingParameterScale. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterScale *clone() const /Factory/; @@ -2941,7 +2928,6 @@ Constructor for QgsProcessingParameterRange. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -2995,7 +2981,6 @@ A raster layer parameter for processing algorithms. Constructor for QgsProcessingParameterRasterLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3054,7 +3039,6 @@ values. Constructor for QgsProcessingParameterEnum. %End - virtual QColor modelColor() const; virtual QString getUserFriendlyValue( QVariant paramValue ) const; %Docstring @@ -3180,7 +3164,6 @@ accordingly.) Constructor for QgsProcessingParameterString. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3284,7 +3267,6 @@ An expression parameter for processing algorithms. Constructor for QgsProcessingParameterExpression. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3406,8 +3388,6 @@ Consider using the more versatile Constructor for QgsProcessingParameterVectorLayer. %End - virtual QColor modelColor() const; - static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3461,7 +3441,6 @@ A mesh layer parameter for processing algorithms. Constructor for QgsProcessingParameterMeshLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3504,7 +3483,6 @@ A map layer parameter for processing algorithms. Constructor for QgsProcessingParameterMapLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3685,7 +3663,6 @@ algorithms. Constructor for QgsProcessingParameterFeatureSource. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3862,7 +3839,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -3984,7 +3960,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4074,7 +4049,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4148,7 +4122,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4219,7 +4192,6 @@ the algorithm. Constructor for QgsProcessingParameterFolderDestination. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -4492,7 +4464,6 @@ varying color opacity. Returns the type name for the parameter class. %End - virtual QColor modelColor() const; virtual QgsProcessingParameterDefinition *clone() const /Factory/; virtual QString type() const; @@ -4749,7 +4720,6 @@ will return a date time value. Constructor for QgsProcessingParameterDateTime. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5129,7 +5099,6 @@ A point cloud layer parameter for processing algorithms. Constructor for QgsProcessingParameterPointCloudLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5174,7 +5143,6 @@ An annotation layer parameter for processing algorithms. Constructor for QgsProcessingParameterAnnotationLayer. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5222,7 +5190,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. @@ -5388,7 +5355,6 @@ If ``createByDefault`` is ``False`` and the parameter is ``optional``, then this destination output will not be created by default. %End - virtual QColor modelColor() const; static QString typeName(); %Docstring Returns the type name for the parameter class. diff --git a/python/core/auto_generated/processing/qgsprocessingparametertype.sip.in b/python/core/auto_generated/processing/qgsprocessingparametertype.sip.in index b83bffed9dd..5b5fd267ea3 100644 --- a/python/core/auto_generated/processing/qgsprocessingparametertype.sip.in +++ b/python/core/auto_generated/processing/qgsprocessingparametertype.sip.in @@ -23,6 +23,8 @@ Makes metadata of processing parameters available. %End public: + static QColor defaultModelColor(); + virtual QgsProcessingParameterDefinition *create( const QString &name ) const = 0 /Factory/; %Docstring Creates a new parameter of this type. @@ -175,6 +177,11 @@ for the parameter. .. seealso:: :py:func:`acceptedOutputTypes` .. versionadded:: 3.44 +%End + + virtual QColor modelColor() const; +%Docstring +A color to represent the default parameter %End }; diff --git a/src/core/processing/qgsprocessingparameters.cpp b/src/core/processing/qgsprocessingparameters.cpp index 62921543bbf..5163e183a66 100644 --- a/src/core/processing/qgsprocessingparameters.cpp +++ b/src/core/processing/qgsprocessingparameters.cpp @@ -3023,7 +3023,13 @@ QgsProcessingParameterDefinition *QgsProcessingParameterBoolean::clone() const QColor QgsProcessingParameterDefinition::modelColor() const { - return QColor( 128, 128, 128 ); /* mid gray */ + QgsProcessingParameterType *paramType = QgsApplication::processingRegistry()->parameterType( type() ); + if ( paramType ) + { + return paramType->modelColor(); + } + + return QgsProcessingParameterType::defaultModelColor(); } QString QgsProcessingParameterDefinition::getUserFriendlyValue( QVariant paramValue ) const diff --git a/src/core/processing/qgsprocessingparameters.h b/src/core/processing/qgsprocessingparameters.h index b707e453d05..e49aa7a1bd5 100644 --- a/src/core/processing/qgsprocessingparameters.h +++ b/src/core/processing/qgsprocessingparameters.h @@ -1794,8 +1794,6 @@ class CORE_EXPORT QgsProcessingParameterBoolean : public QgsProcessingParameterD QgsProcessingParameterBoolean( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 51, 201, 28 ); /* green */ }; - /** * Returns the type name for the parameter class. */ @@ -1826,8 +1824,6 @@ class CORE_EXPORT QgsProcessingParameterCrs : public QgsProcessingParameterDefin QgsProcessingParameterCrs( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; - /** * Get a user friendly string representation of the provided parameter value. */ @@ -1866,8 +1862,6 @@ class CORE_EXPORT QgsProcessingParameterExtent : public QgsProcessingParameterDe QgsProcessingParameterExtent( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - /** * Returns the type name for the parameter class. */ @@ -1911,9 +1905,6 @@ class CORE_EXPORT QgsProcessingParameterPoint : public QgsProcessingParameterDef QgsProcessingParameterPoint( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - - /** * Returns the type name for the parameter class. */ @@ -1949,8 +1940,6 @@ class CORE_EXPORT QgsProcessingParameterGeometry : public QgsProcessingParameter */ QgsProcessingParameterGeometry( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false, const QList< int > &geometryTypes = QList< int >(), bool allowMultipart = true ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - /** * Returns the type name for the parameter class. */ @@ -2021,8 +2010,6 @@ class CORE_EXPORT QgsProcessingParameterFile : public QgsProcessingParameterDefi QgsProcessingParameterFile( const QString &name, const QString &description = QString(), Qgis::ProcessingFileParameterBehavior behavior = Qgis::ProcessingFileParameterBehavior::File, const QString &extension = QString(), const QVariant &defaultValue = QVariant(), bool optional = false, const QString &fileFilter = QString() ); - QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; - /** * Returns the type name for the parameter class. */ @@ -2122,8 +2109,6 @@ class CORE_EXPORT QgsProcessingParameterMatrix : public QgsProcessingParameterDe */ static QString typeName() { return QStringLiteral( "matrix" ); } - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterDefinition *clone() const override SIP_FACTORY; QString type() const override { return typeName(); } bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = nullptr ) const override; @@ -2204,8 +2189,6 @@ class CORE_EXPORT QgsProcessingParameterMultipleLayers : public QgsProcessingPar const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; - /** * Returns the type name for the parameter class. */ @@ -2298,8 +2281,6 @@ class CORE_EXPORT QgsProcessingParameterNumber : public QgsProcessingParameterDe */ static QString typeName() { return QStringLiteral( "number" ); } - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterDefinition *clone() const override SIP_FACTORY; QString type() const override { return typeName(); } bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = nullptr ) const override; @@ -2398,8 +2379,6 @@ class CORE_EXPORT QgsProcessingParameterDistance : public QgsProcessingParameter */ static QString typeName() { return QStringLiteral( "distance" ); } // cppcheck-suppress duplInheritedMember - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QString getUserFriendlyValue( QVariant paramValue ) const override; QgsProcessingParameterDistance *clone() const override SIP_FACTORY; @@ -2639,8 +2618,6 @@ class CORE_EXPORT QgsProcessingParameterDuration : public QgsProcessingParameter */ static QString typeName() { return QStringLiteral( "duration" ); } // cppcheck-suppress duplInheritedMember - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterDuration *clone() const override SIP_FACTORY; QString type() const override; @@ -2695,8 +2672,6 @@ class CORE_EXPORT QgsProcessingParameterScale : public QgsProcessingParameterNum */ static QString typeName() { return QStringLiteral( "scale" ); } // cppcheck-suppress duplInheritedMember - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterScale *clone() const override SIP_FACTORY; QString type() const override; @@ -2731,8 +2706,6 @@ class CORE_EXPORT QgsProcessingParameterRange : public QgsProcessingParameterDef */ static QString typeName() { return QStringLiteral( "range" ); } - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterDefinition *clone() const override SIP_FACTORY; QString type() const override { return typeName(); } bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = nullptr ) const override; @@ -2779,8 +2752,6 @@ class CORE_EXPORT QgsProcessingParameterRasterLayer : public QgsProcessingParame QgsProcessingParameterRasterLayer( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 0, 180, 180 ); /* turquoise */ }; - /** * Returns the type name for the parameter class. */ @@ -2830,8 +2801,6 @@ class CORE_EXPORT QgsProcessingParameterEnum : public QgsProcessingParameterDefi bool optional = false, bool usesStaticStrings = false ); - QColor modelColor() const override { return QColor( 152, 68, 201 ); /* purple */ }; - /** * Get a user friendly string representation of the provided parameter value. */ @@ -2941,8 +2910,6 @@ class CORE_EXPORT QgsProcessingParameterString : public QgsProcessingParameterDe bool multiLine = false, bool optional = false ); - QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; - /** * Returns the type name for the parameter class. */ @@ -3034,8 +3001,6 @@ class CORE_EXPORT QgsProcessingParameterExpression : public QgsProcessingParamet const QString &parentLayerParameterName = QString(), bool optional = false, Qgis::ExpressionType type = Qgis::ExpressionType::Qgis ); - QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; - /** * Returns the type name for the parameter class. */ @@ -3141,9 +3106,6 @@ class CORE_EXPORT QgsProcessingParameterVectorLayer : public QgsProcessingParame const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - - /** * Returns the type name for the parameter class. */ @@ -3185,8 +3147,6 @@ class CORE_EXPORT QgsProcessingParameterMeshLayer : public QgsProcessingParamete const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; - /** * Returns the type name for the parameter class. */ @@ -3221,8 +3181,6 @@ class CORE_EXPORT QgsProcessingParameterMapLayer : public QgsProcessingParameter bool optional = false, const QList< int > &types = QList< int >() ); - QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; - /** * Returns the type name for the parameter class. */ @@ -3370,8 +3328,6 @@ class CORE_EXPORT QgsProcessingParameterFeatureSource : public QgsProcessingPara const QList< int > &types = QList< int >(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - /** * Returns the type name for the parameter class. */ @@ -3536,8 +3492,6 @@ class CORE_EXPORT QgsProcessingParameterFeatureSink : public QgsProcessingDestin QgsProcessingParameterFeatureSink( const QString &name, const QString &description = QString(), Qgis::ProcessingSourceType type = Qgis::ProcessingSourceType::VectorAnyGeometry, const QVariant &defaultValue = QVariant(), bool optional = false, bool createByDefault = true, bool supportsAppend = false ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - /** * Returns the type name for the parameter class. */ @@ -3635,8 +3589,6 @@ class CORE_EXPORT QgsProcessingParameterVectorDestination : public QgsProcessing QgsProcessingParameterVectorDestination( const QString &name, const QString &description = QString(), Qgis::ProcessingSourceType type = Qgis::ProcessingSourceType::VectorAnyGeometry, const QVariant &defaultValue = QVariant(), bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; - /** * Returns the type name for the parameter class. */ @@ -3711,8 +3663,6 @@ class CORE_EXPORT QgsProcessingParameterRasterDestination : public QgsProcessing bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 0, 180, 180 ); /* turquoise */ }; - /** * Returns the type name for the parameter class. */ @@ -3774,8 +3724,6 @@ class CORE_EXPORT QgsProcessingParameterFileDestination : public QgsProcessingDe bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; - /** * Returns the type name for the parameter class. */ @@ -3833,8 +3781,6 @@ class CORE_EXPORT QgsProcessingParameterFolderDestination : public QgsProcessing bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; - /** * Returns the type name for the parameter class. */ @@ -4062,8 +4008,6 @@ class CORE_EXPORT QgsProcessingParameterColor : public QgsProcessingParameterDef */ static QString typeName() { return QStringLiteral( "color" ); } - QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; - QgsProcessingParameterDefinition *clone() const override SIP_FACTORY; QString type() const override { return typeName(); } QString valueAsPythonString( const QVariant &value, QgsProcessingContext &context ) const override; @@ -4278,8 +4222,6 @@ class CORE_EXPORT QgsProcessingParameterDateTime : public QgsProcessingParameter const QDateTime &maxValue = QDateTime() ); - QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; - /** * Returns the type name for the parameter class. */ @@ -4599,8 +4541,6 @@ class CORE_EXPORT QgsProcessingParameterPointCloudLayer : public QgsProcessingPa QgsProcessingParameterPointCloudLayer( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; - /** * Returns the type name for the parameter class. */ @@ -4636,8 +4576,6 @@ class CORE_EXPORT QgsProcessingParameterAnnotationLayer : public QgsProcessingPa QgsProcessingParameterAnnotationLayer( const QString &name, const QString &description = QString(), const QVariant &defaultValue = QVariant(), bool optional = false ); - QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; - /** * Returns the type name for the parameter class. */ @@ -4677,8 +4615,6 @@ class CORE_EXPORT QgsProcessingParameterPointCloudDestination : public QgsProces bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; - /** * Returns the type name for the parameter class. */ @@ -4815,8 +4751,6 @@ class CORE_EXPORT QgsProcessingParameterVectorTileDestination : public QgsProces bool optional = false, bool createByDefault = true ); - QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; - /** * Returns the type name for the parameter class. */ diff --git a/src/core/processing/qgsprocessingparametertype.cpp b/src/core/processing/qgsprocessingparametertype.cpp index f8d1fb4ab5e..0326c8c4492 100644 --- a/src/core/processing/qgsprocessingparametertype.cpp +++ b/src/core/processing/qgsprocessingparametertype.cpp @@ -17,6 +17,11 @@ #include "qgsprocessingparametertype.h" +QColor QgsProcessingParameterType::defaultModelColor() +{ + return QColor( 128, 128, 128 ); /* mid gray */ +} + Qgis::ProcessingParameterTypeFlags QgsProcessingParameterType::flags() const { return Qgis::ProcessingParameterTypeFlag::ExposeToModeler; @@ -51,3 +56,8 @@ QList QgsProcessingParameterType::acceptedDataTypes( const QgsProcessingPar { return QList(); } + +QColor QgsProcessingParameterType::modelColor() const +{ + return QColor( 128, 128, 128 ); /* mid gray */ +} diff --git a/src/core/processing/qgsprocessingparametertype.h b/src/core/processing/qgsprocessingparametertype.h index 3c11bc86530..8ffb037cfb0 100644 --- a/src/core/processing/qgsprocessingparametertype.h +++ b/src/core/processing/qgsprocessingparametertype.h @@ -34,6 +34,8 @@ class CORE_EXPORT QgsProcessingParameterType { public: + static QColor defaultModelColor(); + /** * Creates a new parameter of this type. */ @@ -171,6 +173,11 @@ class CORE_EXPORT QgsProcessingParameterType */ virtual QList acceptedDataTypes( const QgsProcessingParameterDefinition *parameter ) const; + /** + * A color to represent the default parameter + */ + virtual QColor modelColor() const; + }; #endif // QGSPROCESSINGPARAMETERTYPE_H diff --git a/src/core/processing/qgsprocessingparametertypeimpl.h b/src/core/processing/qgsprocessingparametertypeimpl.h index c143742e228..02beae85983 100644 --- a/src/core/processing/qgsprocessingparametertypeimpl.h +++ b/src/core/processing/qgsprocessingparametertypeimpl.h @@ -96,6 +96,8 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterLayer : public QgsProcessingPa << QgsProcessingOutputFile::typeName() << QgsProcessingOutputFolder::typeName(); } + + QColor modelColor() const override { return QColor( 0, 180, 180 ); /* turquoise */ }; }; /** @@ -168,6 +170,8 @@ class CORE_EXPORT QgsProcessingParameterTypeMeshLayer : public QgsProcessingPara << QgsProcessingOutputFile::typeName() << QgsProcessingOutputFolder::typeName(); } + + QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; }; /** @@ -249,6 +253,8 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorLayer : public QgsProcessingPa else return QList(); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -329,6 +335,8 @@ class CORE_EXPORT QgsProcessingParameterTypeMapLayer : public QgsProcessingParam << QgsProcessingOutputFile::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; }; /** @@ -420,6 +428,8 @@ class CORE_EXPORT QgsProcessingParameterTypeBoolean : public QgsProcessingParame << QgsProcessingOutputVariant::typeName() << QgsProcessingOutputBoolean::typeName(); } + + QColor modelColor() const override { return QColor( 51, 201, 28 ); /* green */ }; }; /** @@ -492,6 +502,8 @@ class CORE_EXPORT QgsProcessingParameterTypeExpression : public QgsProcessingPar << QgsProcessingOutputNumber::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; }; /** @@ -579,6 +591,8 @@ class CORE_EXPORT QgsProcessingParameterTypeCrs : public QgsProcessingParameterT << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; }; /** @@ -645,6 +659,8 @@ class CORE_EXPORT QgsProcessingParameterTypeRange : public QgsProcessingParamete return QStringList() << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -713,6 +729,8 @@ class CORE_EXPORT QgsProcessingParameterTypePoint : public QgsProcessingParamete << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -781,6 +799,8 @@ class CORE_EXPORT QgsProcessingParameterTypeGeometry : public QgsProcessingParam << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -850,6 +870,8 @@ class CORE_EXPORT QgsProcessingParameterTypeEnum : public QgsProcessingParameter << QgsProcessingOutputVariant::typeName() << QgsProcessingOutputNumber::typeName(); } + + QColor modelColor() const override { return QColor( 152, 68, 201 ); /* purple */ }; }; /** @@ -934,6 +956,8 @@ class CORE_EXPORT QgsProcessingParameterTypeExtent : public QgsProcessingParamet << QgsProcessingOutputMapLayer::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -997,6 +1021,8 @@ class CORE_EXPORT QgsProcessingParameterTypeMatrix : public QgsProcessingParamet { return QStringList(); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -1066,6 +1092,8 @@ class CORE_EXPORT QgsProcessingParameterTypeFile : public QgsProcessingParameter << QgsProcessingOutputVectorLayer::typeName() << QgsProcessingOutputMapLayer::typeName(); } + + QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; }; /** @@ -1223,6 +1251,8 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorDestination : public QgsProces { return QStringList() << QObject::tr( "Path for new vector layer" ); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -1299,6 +1329,8 @@ class CORE_EXPORT QgsProcessingParameterTypeFileDestination : public QgsProcessi << QgsProcessingOutputVectorLayer::typeName() << QgsProcessingOutputMapLayer::typeName(); } + + QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; }; /** @@ -1374,6 +1406,8 @@ class CORE_EXPORT QgsProcessingParameterTypeFolderDestination : public QgsProces << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; }; /** @@ -1434,6 +1468,8 @@ class CORE_EXPORT QgsProcessingParameterTypeRasterDestination : public QgsProces { return QStringList() << QObject::tr( "Path for new raster layer" ); } + + QColor modelColor() const override { return QColor( 0, 180, 180 ); /* turquoise */ }; }; /** @@ -1514,6 +1550,8 @@ class CORE_EXPORT QgsProcessingParameterTypeString : public QgsProcessingParamet << QgsProcessingOutputFolder::typeName() << QgsProcessingOutputString::typeName(); } + + QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; }; /** @@ -1651,6 +1689,8 @@ class CORE_EXPORT QgsProcessingParameterTypeMultipleLayers : public QgsProcessin << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; }; /** @@ -1734,6 +1774,8 @@ class CORE_EXPORT QgsProcessingParameterTypeFeatureSource : public QgsProcessing else return QList(); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -1806,6 +1848,8 @@ class CORE_EXPORT QgsProcessingParameterTypeNumber : public QgsProcessingParamet << QgsProcessingOutputVariant::typeName() << QgsProcessingOutputString::typeName(); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -1860,6 +1904,8 @@ class CORE_EXPORT QgsProcessingParameterTypeDistance : public QgsProcessingParam << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" ) << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" ); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; @@ -2026,6 +2072,8 @@ class CORE_EXPORT QgsProcessingParameterTypeDuration : public QgsProcessingParam << QObject::tr( "field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field" ) << QObject::tr( "expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression" ); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -2078,6 +2126,8 @@ class CORE_EXPORT QgsProcessingParameterTypeScale : public QgsProcessingParamete { return QStringList() << QObject::tr( "A numeric value representing the scale denominator" ); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -2204,6 +2254,8 @@ class CORE_EXPORT QgsProcessingParameterTypeFeatureSink : public QgsProcessingPa { return QStringList() << QObject::tr( "Path for new vector layer" ); } + + QColor modelColor() const override { return QColor( 122, 0, 47 ); /* burgundy */ }; }; /** @@ -2403,6 +2455,8 @@ class CORE_EXPORT QgsProcessingParameterTypeColor : public QgsProcessingParamete << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 34, 157, 214 ); /* blue */ }; }; /** @@ -2602,6 +2656,8 @@ class CORE_EXPORT QgsProcessingParameterTypeDateTime : public QgsProcessingParam << QgsProcessingOutputString::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 255, 131, 23 ); /* orange */ }; }; /** @@ -2872,6 +2928,8 @@ class CORE_EXPORT QgsProcessingParameterTypePointCloudLayer : public QgsProcessi << QgsProcessingOutputFile::typeName() << QgsProcessingOutputFolder::typeName(); } + + QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; }; /** @@ -2942,6 +3000,8 @@ class CORE_EXPORT QgsProcessingParameterTypeAnnotationLayer : public QgsProcessi << QgsProcessingOutputMapLayer::typeName() << QgsProcessingOutputVariant::typeName(); } + + QColor modelColor() const override { return QColor( 137, 150, 171 ); /* cold gray */ }; }; /** @@ -3002,6 +3062,8 @@ class CORE_EXPORT QgsProcessingParameterTypePointCloudDestination : public QgsPr { return QStringList() << QObject::tr( "Path for new point cloud layer" ); } + + QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; }; /** @@ -3128,6 +3190,8 @@ class CORE_EXPORT QgsProcessingParameterTypeVectorTileDestination : public QgsPr { return QStringList() << QObject::tr( "Path for new vector tile layer" ); } + + QColor modelColor() const override { return QColor( 80, 80, 80 ); /* dark gray */ }; }; #endif // QGSPROCESSINGPARAMETERTYPEIMPL_H