mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-18 00:03:05 -04:00
Sipify QgsProcessingAlgorithm
This commit is contained in:
parent
a0bd464232
commit
e40389a41c
@ -1,9 +1,24 @@
|
|||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/core/processing/qgsprocessingalgorithm.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
class QgsProcessingAlgorithm
|
class QgsProcessingAlgorithm
|
||||||
{
|
{
|
||||||
%TypeHeaderCode
|
%Docstring
|
||||||
#include <qgsprocessingalgorithm.h>
|
Abstract base class for processing algorithms.
|
||||||
|
.. versionadded:: 3.0
|
||||||
%End
|
%End
|
||||||
|
|
||||||
|
%TypeHeaderCode
|
||||||
|
#include "qgsprocessingalgorithm.h"
|
||||||
|
%End
|
||||||
public:
|
public:
|
||||||
|
|
||||||
enum Flag
|
enum Flag
|
||||||
@ -11,19 +26,74 @@ class QgsProcessingAlgorithm
|
|||||||
FlagHideFromToolbox,
|
FlagHideFromToolbox,
|
||||||
FlagHideFromModeler,
|
FlagHideFromModeler,
|
||||||
FlagSupportsBatch,
|
FlagSupportsBatch,
|
||||||
FlagDeprecated,
|
FlagDeprecated
|
||||||
};
|
};
|
||||||
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;
|
typedef QFlags<QgsProcessingAlgorithm::Flag> Flags;
|
||||||
|
|
||||||
QgsProcessingAlgorithm();
|
QgsProcessingAlgorithm();
|
||||||
|
%Docstring
|
||||||
|
Constructor for QgsProcessingAlgorithm.
|
||||||
|
%End
|
||||||
|
|
||||||
virtual ~QgsProcessingAlgorithm();
|
virtual ~QgsProcessingAlgorithm();
|
||||||
|
|
||||||
virtual QString name() const = 0;
|
virtual QString name() const = 0;
|
||||||
|
%Docstring
|
||||||
|
Returns the algorithm name, used for identifying the algorithm. This string
|
||||||
|
should be fixed for the algorithm, and must not be localised. The name should
|
||||||
|
be unique within each provider. Names should contain lowercase alphanumeric characters
|
||||||
|
only and no spaces or other formatting characters.
|
||||||
|
\see displayName()
|
||||||
|
\see group()
|
||||||
|
\see tags()
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QString displayName() const = 0;
|
virtual QString displayName() const = 0;
|
||||||
|
%Docstring
|
||||||
|
Returns the translated algorithm name, which should be used for any user-visible display
|
||||||
|
of the algorithm name.
|
||||||
|
\see name()
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QStringList tags() const;
|
virtual QStringList tags() const;
|
||||||
|
%Docstring
|
||||||
|
Returns a list of tags which relate to the algorithm, and are used to assist users in searching
|
||||||
|
for suitable algorithms. These tags should be localised.
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QIcon icon() const;
|
virtual QIcon icon() const;
|
||||||
|
%Docstring
|
||||||
|
Returns an icon for the algorithm.
|
||||||
|
\see svgIconPath()
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QString svgIconPath() const;
|
virtual QString svgIconPath() const;
|
||||||
|
%Docstring
|
||||||
|
Returns a path to an SVG version of the algorithm's icon.
|
||||||
|
\see icon()
|
||||||
|
%End
|
||||||
|
|
||||||
virtual QString group() const;
|
virtual QString group() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the name of the group this algorithm belongs to. This string
|
||||||
|
should be localised.
|
||||||
|
\see tags()
|
||||||
|
%End
|
||||||
|
|
||||||
virtual Flags flags() const;
|
virtual Flags flags() const;
|
||||||
|
%Docstring
|
||||||
|
Returns the flags indicating how and when the algorithm operates and should be exposed to users.
|
||||||
|
%End
|
||||||
|
|
||||||
};
|
};
|
||||||
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);
|
QFlags<QgsProcessingAlgorithm::Flag> operator|(QgsProcessingAlgorithm::Flag f1, QFlags<QgsProcessingAlgorithm::Flag> f2);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/************************************************************************
|
||||||
|
* This file has been generated automatically from *
|
||||||
|
* *
|
||||||
|
* src/core/processing/qgsprocessingalgorithm.h *
|
||||||
|
* *
|
||||||
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
||||||
|
************************************************************************/
|
||||||
|
@ -27,7 +27,7 @@
|
|||||||
* \class QgsProcessingAlgorithm
|
* \class QgsProcessingAlgorithm
|
||||||
* \ingroup core
|
* \ingroup core
|
||||||
* Abstract base class for processing algorithms.
|
* Abstract base class for processing algorithms.
|
||||||
* \note added in QGIS 3.0
|
* \since QGIS 3.0
|
||||||
*/
|
*/
|
||||||
class CORE_EXPORT QgsProcessingAlgorithm
|
class CORE_EXPORT QgsProcessingAlgorithm
|
||||||
{
|
{
|
||||||
@ -55,16 +55,16 @@ class CORE_EXPORT QgsProcessingAlgorithm
|
|||||||
* should be fixed for the algorithm, and must not be localised. The name should
|
* should be fixed for the algorithm, and must not be localised. The name should
|
||||||
* be unique within each provider. Names should contain lowercase alphanumeric characters
|
* be unique within each provider. Names should contain lowercase alphanumeric characters
|
||||||
* only and no spaces or other formatting characters.
|
* only and no spaces or other formatting characters.
|
||||||
* @see displayName()
|
* \see displayName()
|
||||||
* @see group()
|
* \see group()
|
||||||
* @see tags()
|
* \see tags()
|
||||||
*/
|
*/
|
||||||
virtual QString name() const = 0;
|
virtual QString name() const = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the translated algorithm name, which should be used for any user-visible display
|
* Returns the translated algorithm name, which should be used for any user-visible display
|
||||||
* of the algorithm name.
|
* of the algorithm name.
|
||||||
* @see name()
|
* \see name()
|
||||||
*/
|
*/
|
||||||
virtual QString displayName() const = 0;
|
virtual QString displayName() const = 0;
|
||||||
|
|
||||||
@ -76,20 +76,20 @@ class CORE_EXPORT QgsProcessingAlgorithm
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns an icon for the algorithm.
|
* Returns an icon for the algorithm.
|
||||||
* @see svgIconPath()
|
* \see svgIconPath()
|
||||||
*/
|
*/
|
||||||
virtual QIcon icon() const;
|
virtual QIcon icon() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a path to an SVG version of the algorithm's icon.
|
* Returns a path to an SVG version of the algorithm's icon.
|
||||||
* @see icon()
|
* \see icon()
|
||||||
*/
|
*/
|
||||||
virtual QString svgIconPath() const;
|
virtual QString svgIconPath() const;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the name of the group this algorithm belongs to. This string
|
* Returns the name of the group this algorithm belongs to. This string
|
||||||
* should be localised.
|
* should be localised.
|
||||||
* @see tags()
|
* \see tags()
|
||||||
*/
|
*/
|
||||||
virtual QString group() const { return QString(); }
|
virtual QString group() const { return QString(); }
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user