-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add processing parameter type definitions
- Loading branch information
1 parent
2bc30c7
commit 1fd7423
Showing
12 changed files
with
962 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
77 changes: 77 additions & 0 deletions
77
python/core/processing/qgsprocessingparameterregistry.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 * | ||
************************************************************************/ |
170 changes: 170 additions & 0 deletions
170
python/core/processing/qgsprocessingparametertypeimpl.sip.in
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 * | ||
************************************************************************/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.