2018-04-05 22:38:29 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-04-08 21:48:29 +02:00
|
|
|
* src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h *
|
2018-04-05 22:38:29 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-06 15:53:33 +02:00
|
|
|
|
|
|
|
|
|
|
|
|
2018-04-05 22:38:29 +02:00
|
|
|
class QgsProcessingAlgorithmConfigurationWidget : QWidget
|
|
|
|
{
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
2018-04-08 21:48:29 +02:00
|
|
|
A configuration widget for processing algorithms allows providing additional
|
2018-04-06 15:53:33 +02:00
|
|
|
configuration options directly on algorithm level, in addition to parameters.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
2018-04-05 22:38:29 +02:00
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingalgorithmconfigurationwidget.h"
|
|
|
|
%End
|
|
|
|
public:
|
2018-04-06 15:53:33 +02:00
|
|
|
|
2018-04-05 22:38:29 +02:00
|
|
|
QgsProcessingAlgorithmConfigurationWidget( QWidget *parent = 0 );
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
|
|
|
Creates a new QgsProcessingAlgorithmConfigurationWidget
|
|
|
|
%End
|
2018-04-05 22:38:29 +02:00
|
|
|
virtual ~QgsProcessingAlgorithmConfigurationWidget();
|
2018-04-06 15:53:33 +02:00
|
|
|
|
2018-04-05 22:38:29 +02:00
|
|
|
virtual QVariantMap configuration() const = 0;
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
|
|
|
Read the current configuration from this widget.
|
|
|
|
%End
|
|
|
|
|
2018-04-05 22:38:29 +02:00
|
|
|
virtual void setConfiguration( const QVariantMap &configuration ) = 0;
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
|
|
|
Set the configuration which this widget should represent.
|
|
|
|
%End
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
class QgsProcessingAlgorithmConfigurationWidgetFactory
|
|
|
|
{
|
|
|
|
%Docstring
|
|
|
|
Interface base class for factories for algorithm configuration widgets.
|
|
|
|
|
|
|
|
.. versionadded:: 3.2
|
|
|
|
%End
|
|
|
|
|
|
|
|
%TypeHeaderCode
|
|
|
|
#include "qgsprocessingalgorithmconfigurationwidget.h"
|
|
|
|
%End
|
|
|
|
public:
|
|
|
|
virtual ~QgsProcessingAlgorithmConfigurationWidgetFactory();
|
|
|
|
|
2018-04-10 23:10:35 +02:00
|
|
|
virtual QgsProcessingAlgorithmConfigurationWidget *create( const QgsProcessingAlgorithm *algorithm ) const = 0 /Factory/;
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
|
|
|
Create a new configuration widget for ``algorithm``.
|
|
|
|
%End
|
|
|
|
|
2018-04-10 23:10:35 +02:00
|
|
|
virtual bool canCreateFor( const QgsProcessingAlgorithm *algorithm ) const = 0;
|
2018-04-06 15:53:33 +02:00
|
|
|
%Docstring
|
|
|
|
Check if this factory can create widgets for ``algorithm``.
|
|
|
|
%End
|
2018-04-05 22:38:29 +02:00
|
|
|
};
|
|
|
|
|
2018-04-06 15:53:33 +02:00
|
|
|
|
2018-04-05 22:38:29 +02:00
|
|
|
/************************************************************************
|
|
|
|
* This file has been generated automatically from *
|
|
|
|
* *
|
2018-04-08 21:48:29 +02:00
|
|
|
* src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h *
|
2018-04-05 22:38:29 +02:00
|
|
|
* *
|
|
|
|
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
|
|
|
|
************************************************************************/
|