Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #6754 from m-kuhn/processing_filter_algorithm
[FEATURE] Feature filter algorithm for processing models
- Loading branch information
Showing
43 changed files
with
1,343 additions
and
40 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
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
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
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
79 changes: 79 additions & 0 deletions
79
python/gui/processing/qgsprocessingalgorithmconfigurationwidget.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,79 @@ | ||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ | ||
|
||
|
||
|
||
|
||
|
||
|
||
|
||
class QgsProcessingAlgorithmConfigurationWidget : QWidget | ||
{ | ||
%Docstring | ||
A configuration widget for processing algorithms allows providing additional | ||
configuration options directly on algorithm level, in addition to parameters. | ||
|
||
.. versionadded:: 3.2 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingalgorithmconfigurationwidget.h" | ||
%End | ||
public: | ||
|
||
QgsProcessingAlgorithmConfigurationWidget( QWidget *parent = 0 ); | ||
%Docstring | ||
Creates a new QgsProcessingAlgorithmConfigurationWidget | ||
%End | ||
virtual ~QgsProcessingAlgorithmConfigurationWidget(); | ||
|
||
virtual QVariantMap configuration() const = 0; | ||
%Docstring | ||
Read the current configuration from this widget. | ||
%End | ||
|
||
virtual void setConfiguration( const QVariantMap &configuration ) = 0; | ||
%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(); | ||
|
||
virtual QgsProcessingAlgorithmConfigurationWidget *create( const QgsProcessingAlgorithm *algorithm ) const = 0 /Factory/; | ||
%Docstring | ||
Create a new configuration widget for ``algorithm``. | ||
%End | ||
|
||
virtual bool canCreateFor( const QgsProcessingAlgorithm *algorithm ) const = 0; | ||
%Docstring | ||
Check if this factory can create widgets for ``algorithm``. | ||
%End | ||
}; | ||
|
||
|
||
/************************************************************************ | ||
* This file has been generated automatically from * | ||
* * | ||
* src/gui/processing/qgsprocessingalgorithmconfigurationwidget.h * | ||
* * | ||
* Do not edit manually ! Edit header and run scripts/sipify.pl again * | ||
************************************************************************/ |
Empty file.
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,68 @@ | ||
/************************************************************************ | ||
* 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. | ||
|
||
.. versionadded:: 3.2 | ||
%End | ||
|
||
%TypeHeaderCode | ||
#include "qgsprocessingguiregistry.h" | ||
%End | ||
public: | ||
|
||
QgsProcessingGuiRegistry(); | ||
%Docstring | ||
Constructor. Should never be called manually, is already | ||
created by :py:class:`QgsGui`. | ||
%End | ||
~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 | ||
|
||
QgsProcessingAlgorithmConfigurationWidget *algorithmConfigurationWidget( const QgsProcessingAlgorithm *algorithm ) const; | ||
%Docstring | ||
Get the configuration widget for an ``algorithm``. This widget will be shown | ||
next to parameter widgets. Most algorithms do not have a configuration widget | ||
and in this case, None will be returned. | ||
|
||
.. versionadded:: 3.2 | ||
%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 * | ||
************************************************************************/ |
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
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
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
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.