Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
with
962 additions
and 16 deletions.
- +2 −0 python/core/core_auto.sip
- +77 −0 python/core/processing/qgsprocessingparameterregistry.sip.in
- +55 −0 python/core/processing/qgsprocessingparametertype.sip.in
- +170 −0 python/core/processing/qgsprocessingparametertypeimpl.sip.in
- +51 −0 python/core/processing/qgsprocessingregistry.sip.in
- +1 −15 python/plugins/processing/core/parameters.py
- +3 −0 src/core/CMakeLists.txt
- +47 −0 src/core/processing/qgsprocessingparametertype.h
- +1 −0 src/core/processing/qgsprocessingparametertypeimpl.cpp
- +448 −0 src/core/processing/qgsprocessingparametertypeimpl.h
- +52 −1 src/core/processing/qgsprocessingregistry.cpp
- +55 −0 src/core/processing/qgsprocessingregistry.h
@@ -0,0 +1,77 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparameterregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
class QgsProcessingParameterType | ||
{ | ||
%Docstring | ||
Makes metadata of processing parameters available. | ||
|
||
.. versionadded:: 3.2 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparameterregistry.h" | ||
%End | ||
public: | ||
|
||
virtual QgsProcessingParameterDefinition *create( const QString &name ) const = 0 /Factory/; | ||
%Docstring | ||
Creates a new parameter of this type. | ||
%End | ||
|
||
virtual QString description() const = 0; | ||
%Docstring | ||
A human readable and translatable description for this parameter type. | ||
This can be a longer description suitable for tooltips and other elements | ||
that give the user context for a given parameter. | ||
%End | ||
|
||
virtual QString name() const = 0; | ||
%Docstring | ||
A human readable and translatable short name for this parameter type. | ||
This will be used in comboboxes and list widgets. | ||
%End | ||
|
||
virtual QString id() const = 0; | ||
%Docstring | ||
A static id for this type which will be used for storing this parameter type. | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeRegistry : QObject | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparameterregistry.h" | ||
%End | ||
public: | ||
explicit QgsProcessingParameterTypeRegistry( QObject *parent = 0 ); | ||
|
||
void registerParameter( QgsProcessingParameterType *type /Transfer/ ); | ||
|
||
void unregisterParameter( QgsProcessingParameterType *type ); | ||
|
||
QgsProcessingParameterType *parameterType( const QString &id ) const; | ||
|
||
QList<QgsProcessingParameterType *> parameterTypes() const; | ||
|
||
signals: | ||
void parameterRegistered( QgsProcessingParameterType *type ); | ||
|
||
void parameterUnregistered( QgsProcessingParameterType *type ); | ||
|
||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparameterregistry.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
@@ -0,0 +1,55 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertype.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
class QgsProcessingParameterType | ||
{ | ||
%Docstring | ||
Makes metadata of processing parameters available. | ||
|
||
.. versionadded:: 3.2 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertype.h" | ||
%End | ||
public: | ||
|
||
virtual QgsProcessingParameterDefinition *create( const QString &name ) const = 0 /Factory/; | ||
%Docstring | ||
Creates a new parameter of this type. | ||
%End | ||
|
||
virtual ~QgsProcessingParameterType(); | ||
|
||
virtual QString description() const = 0; | ||
%Docstring | ||
A human readable and translatable description for this parameter type. | ||
This can be a longer description suitable for tooltips and other elements | ||
that give the user context for a given parameter. | ||
%End | ||
|
||
virtual QString name() const = 0; | ||
%Docstring | ||
A human readable and translatable short name for this parameter type. | ||
This will be used in comboboxes and list widgets. | ||
%End | ||
|
||
virtual QString id() const = 0; | ||
%Docstring | ||
A static id for this type which will be used for storing this parameter type. | ||
%End | ||
}; | ||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertype.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
@@ -0,0 +1,170 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertypeimpl.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
class QgsProcessingParameterTypeRasterLayer : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeVectorLayer : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeBoolean : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeCrs : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeRange : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypePoint : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeEnum : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeExtent : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeMatrix : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeFile : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeField : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeVectorDestination : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeFileDestination : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeFolderDestination : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeRasterDestination : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeString : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeMultipleLayers : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeFeatureSource : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
class QgsProcessingParameterTypeNumber : QgsProcessingParameterType | ||
{ | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingparametertypeimpl.h" | ||
%End | ||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/core/processing/qgsprocessingparametertypeimpl.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Oops, something went wrong.