Skip to content

Commit

Permalink
make QgsProcessingParameterDxfLayers public
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbruy committed Nov 2, 2020
1 parent 76c1557 commit 5a155f7
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 7 deletions.
Expand Up @@ -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

Expand All @@ -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;

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


/************************************************************************
* This file has been generated automatically from *
* *
Expand Down
Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions src/core/processing/qgsprocessingparameterdxflayers.h
Expand Up @@ -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
Expand All @@ -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;
Expand All @@ -65,6 +64,7 @@ class CORE_EXPORT QgsProcessingParameterDxfLayers : public QgsProcessingParamete
static QVariantMap layerAsVariantMap( const QgsDxfExport::DxfLayer &layer );
};

///@cond PRIVATE

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

///@endcond

#endif // QGSPROCESSINGPARAMETERDXFLAYERS_H
2 changes: 2 additions & 0 deletions src/core/processing/qgsprocessingparameters.h
Expand Up @@ -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
Expand Down

0 comments on commit 5a155f7

Please sign in to comment.