Skip to content
Permalink
Browse files

make QgsProcessingParameterDxfLayers public

  • Loading branch information
alexbruy committed Nov 2, 2020
1 parent 76c1557 commit 5a155f7c23429c2b52d11d73b4f55a016defeb87
@@ -29,10 +29,6 @@ Static functions :py:func:`~parametersAsLayers`, :py:func:`~variantMapAsLayer`,
:py:func:`~layerAsVariantMap` provide conversion between QgsDxfExport.DxfLayer
representation and QVariant representation.

.. note::

This class is not a part of public API.

.. versionadded:: 3.18
%End

@@ -45,7 +41,7 @@ representation and QVariant representation.
Constructor for QgsProcessingParameterDxfLayers.
%End

virtual QgsProcessingParameterDefinition *clone() const;
virtual QgsProcessingParameterDefinition *clone() const /Factory/;

virtual QString type() const;

@@ -106,6 +102,7 @@ Parameter type definition for QgsProcessingParameterDxfLayers.
virtual QStringList acceptedPythonTypes() const;
};


/************************************************************************
* This file has been generated automatically from *
* *
@@ -311,6 +311,8 @@ their acceptable ranges, defaults, etc.
sipType = sipType_QgsProcessingParameterTinInputLayers;
else if ( sipCpp->type() == QgsProcessingParameterVectorTileWriterLayers::typeName() )
sipType = sipType_QgsProcessingParameterVectorTileWriterLayers;
else if ( sipCpp->type() == QgsProcessingParameterDxfLayers::typeName() )
sipType = sipType_QgsProcessingParameterDxfLayers;
else
sipType = nullptr;
%End
@@ -40,7 +40,6 @@
* representation and QVariant representation.
*
* \ingroup core
* \note This class is not a part of public API.
* \since QGIS 3.18
*/
class CORE_EXPORT QgsProcessingParameterDxfLayers : public QgsProcessingParameterDefinition
@@ -49,7 +48,7 @@ class CORE_EXPORT QgsProcessingParameterDxfLayers : public QgsProcessingParamete
//! Constructor for QgsProcessingParameterDxfLayers.
QgsProcessingParameterDxfLayers( const QString &name, const QString &description = QString() );

QgsProcessingParameterDefinition *clone() const override;
QgsProcessingParameterDefinition *clone() const override SIP_FACTORY;
QString type() const override;
bool checkValueIsAcceptable( const QVariant &input, QgsProcessingContext *context = nullptr ) const override;
QString valueAsPythonString( const QVariant &value, QgsProcessingContext &context ) const override;
@@ -65,6 +64,7 @@ class CORE_EXPORT QgsProcessingParameterDxfLayers : public QgsProcessingParamete
static QVariantMap layerAsVariantMap( const QgsDxfExport::DxfLayer &layer );
};

///@cond PRIVATE

/**
* Parameter type definition for QgsProcessingParameterDxfLayers.
@@ -112,4 +112,6 @@ class CORE_EXPORT QgsProcessingParameterTypeDxfLayers : public QgsProcessingPara
}
};

///@endcond

#endif // QGSPROCESSINGPARAMETERDXFLAYERS_H
@@ -418,6 +418,8 @@ class CORE_EXPORT QgsProcessingParameterDefinition
sipType = sipType_QgsProcessingParameterTinInputLayers;
else if ( sipCpp->type() == QgsProcessingParameterVectorTileWriterLayers::typeName() )
sipType = sipType_QgsProcessingParameterVectorTileWriterLayers;
else if ( sipCpp->type() == QgsProcessingParameterDxfLayers::typeName() )
sipType = sipType_QgsProcessingParameterDxfLayers;
else
sipType = nullptr;
SIP_END

0 comments on commit 5a155f7

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