QGIS API Documentation  3.2.0-Bonn (bc43194)
qgsprocessingguiregistry.h
Go to the documentation of this file.
1 /***************************************************************************
2  qgsprocessingguiregistry.h
3  ---------------------
4  begin : April 2018
5  copyright : (C) 2018 by Matthias Kuhn
6  email : [email protected]
7  ***************************************************************************/
8 
9 /***************************************************************************
10  * *
11  * This program is free software; you can redistribute it and/or modify *
12  * it under the terms of the GNU General Public License as published by *
13  * the Free Software Foundation; either version 2 of the License, or *
14  * (at your option) any later version. *
15  * *
16  ***************************************************************************/
17 
18 #ifndef QGSPROCESSINGGUIREGISTRY_H
19 #define QGSPROCESSINGGUIREGISTRY_H
20 
21 #include "qgis_gui.h"
22 #include "qgis_sip.h"
23 
24 #include <QList>
25 
29 
37 class GUI_EXPORT QgsProcessingGuiRegistry
38 {
39  public:
40 
47 
54  void addAlgorithmConfigurationWidgetFactory( QgsProcessingAlgorithmConfigurationWidgetFactory *factory SIP_TRANSFER );
55 
62  void removeAlgorithmConfigurationWidgetFactory( QgsProcessingAlgorithmConfigurationWidgetFactory *factory );
63 
71  QgsProcessingAlgorithmConfigurationWidget *algorithmConfigurationWidget( const QgsProcessingAlgorithm *algorithm ) const;
72 
73  private:
74 
75  QList <QgsProcessingAlgorithmConfigurationWidgetFactory *> mAlgorithmConfigurationWidgetFactories;
76 };
77 
78 #endif // QGSPROCESSINGGUIREGISTRY_H
The QgsProcessingGuiRegistry is a home for widgets for processing configuration widgets.
Abstract base class for processing algorithms.
#define SIP_TRANSFER
Definition: qgis_sip.h:36
As part of the API refactoring and improvements which landed in the Processing API was substantially reworked from the x version This was done in order to allow much of the underlying Processing framework to be ported into allowing algorithms to be written in pure substantial changes are required in order to port existing x Processing algorithms for QGIS x The most significant changes are outlined not GeoAlgorithm For algorithms which operate on features one by consider subclassing the QgsProcessingFeatureBasedAlgorithm class This class allows much of the boilerplate code for looping over features from a vector layer to be bypassed and instead requires implementation of a processFeature method Ensure that your algorithm(or algorithm 's parent class) implements the new pure virtual createInstance(self) call
Interface base class for factories for algorithm configuration widgets.
A configuration widget for processing algorithms allows providing additional configuration options di...