2018-04-07 11:13:14 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/processing/qgsprocessingguiregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProcessingGuiRegistry
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
The QgsProcessingGuiRegistry is a home for widgets for processing
|
|
|
|
configuration widgets.
|
|
|
|
|
2018-08-14 16:41:11 +10:00
|
|
|
QgsProcessingGuiRegistry is not usually directly created, but rather accessed through
|
|
|
|
:py:func:`QgsGui.processingGuiRegistry()`
|
|
|
|
|
2018-04-07 11:13:14 +02:00
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingguiregistry.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-04-08 21:48:29 +02:00
|
|
|
|
2018-04-07 11:13:14 +02:00
|
|
|
QgsProcessingGuiRegistry();
|
2018-04-08 21:48:29 +02:00
|
|
|
%Docstring
|
|
|
|
Constructor. Should never be called manually, is already
|
|
|
|
created by :py:class:`QgsGui`.
|
|
|
|
%End
|
2018-04-07 11:13:14 +02:00
|
|
|
~QgsProcessingGuiRegistry();
|
|
|
|
|
|
|
|
void addAlgorithmConfigurationWidgetFactory( QgsProcessingAlgorithmConfigurationWidgetFactory *factory /Transfer/ );
|
|
|
|
%Docstring
|
|
|
|
Add a new configuration widget factory for customized algorithm configuration
|
|
|
|
widgets. Ownership is taken.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
void removeAlgorithmConfigurationWidgetFactory( QgsProcessingAlgorithmConfigurationWidgetFactory *factory );
|
|
|
|
%Docstring
|
|
|
|
Remove a configuration widget factory for customized algorithm configuration
|
|
|
|
widgets.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
2018-04-10 23:10:35 +02:00
|
|
|
QgsProcessingAlgorithmConfigurationWidget *algorithmConfigurationWidget( const QgsProcessingAlgorithm *algorithm ) const;
|
2018-04-07 11:13:14 +02:00
|
|
|
%Docstring
|
2018-05-26 18:44:30 +10:00
|
|
|
Gets the configuration widget for an ``algorithm``. This widget will be shown
|
2018-04-09 22:24:12 +02:00
|
|
|
next to parameter widgets. Most algorithms do not have a configuration widget
|
|
|
|
and in this case, None will be returned.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
2018-08-14 16:41:11 +10:00
|
|
|
%End
|
|
|
|
|
|
|
|
bool addParameterWidgetFactory( QgsProcessingParameterWidgetFactoryInterface *factory /Transfer/ );
|
|
|
|
%Docstring
|
|
|
|
Adds a parameter widget ``factory`` to the registry. Ownership of ``factory`` is transferred to the registry.
|
|
|
|
|
|
|
|
Returns true if the factory was successfully added, or false if the factory could not be added. Each
|
|
|
|
factory must return a unique value for QgsProcessingParameterWidgetFactoryInterface.parameterType(),
|
|
|
|
and attempting to add a new factory with a duplicate type will result in failure.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`removeParameterWidgetFactory`
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`createParameterWidgetWrapper`
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
void removeParameterWidgetFactory( QgsProcessingParameterWidgetFactoryInterface *factory );
|
|
|
|
%Docstring
|
|
|
|
Removes a parameter widget ``factory`` from the registry. The factory will be deleted.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`addParameterWidgetFactory`
|
|
|
|
|
|
|
|
.. versionadded:: 3.4
|
|
|
|
%End
|
|
|
|
|
|
|
|
QgsAbstractProcessingParameterWidgetWrapper *createParameterWidgetWrapper( const QgsProcessingParameterDefinition *parameter, QgsAbstractProcessingParameterWidgetWrapper::WidgetType type ) /Factory/;
|
|
|
|
%Docstring
|
|
|
|
Creates a new parameter widget wrapper for the given ``parameter``. The ``type`` argument
|
|
|
|
dictates the type of dialog the wrapper should be created for. The caller takes ownership
|
|
|
|
of the returned wrapper.
|
|
|
|
|
|
|
|
If no factory is registered which handles the given ``parameter``, a None will be returned.
|
|
|
|
|
|
|
|
.. seealso:: :py:func:`addParameterWidgetFactory`
|
2018-04-07 11:13:14 +02:00
|
|
|
%End
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
|
|
|
* src/gui/processing/qgsprocessingguiregistry.h *
|
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|