16#ifndef QGSPROCESSINGHELPEDITORWIDGET_H
17#define QGSPROCESSINGHELPEDITORWIDGET_H
21#include "ui_qgsprocessinghelpeditorwidgetbase.h"
39class GUI_EXPORT QgsProcessingHelpEditorWidget :
public QWidget,
public Ui::QgsProcessingHelpEditorWidgetBase
47 ~QgsProcessingHelpEditorWidget()
override;
57 QVariantMap helpContent();
61 void updateHtmlView();
63 void changeItem( QTreeWidgetItem *current, QTreeWidgetItem *previous );
66 QString formattedHelp()
const;
68 void storeCurrentValue();
70 QVariantMap mHelpContent;
74 std::unique_ptr<QgsProcessingAlgorithm> mAlgorithm;
76 static const QString ALGORITHM_DESCRIPTION;
77 static const QString ALGORITHM_CREATOR;
78 static const QString ALGORITHM_HELP_CREATOR;
79 static const QString ALGORITHM_VERSION;
80 static const QString ALGORITHM_SHORT_DESCRIPTION;
81 static const QString ALGORITHM_HELP_URL;
82 static const QString ALGORITHM_EXAMPLES;
91class GUI_EXPORT QgsProcessingHelpEditorDialog :
public QDialog
99 QgsProcessingHelpEditorDialog( QWidget *parent
SIP_TRANSFERTHIS =
nullptr, Qt::WindowFlags flags = Qt::WindowFlags() );
109 QVariantMap helpContent();
112 QgsProcessingHelpEditorWidget *mWidget =
nullptr;
Abstract base class for processing algorithms.
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