19#ifndef QGSPROCESSINGWIDGETWRAPPERIMPL_H
20#define QGSPROCESSINGWIDGETWRAPPERIMPL_H
32#include <QAbstractButton>
44class QgsProcessingMatrixParameterPanel;
66class QgsProcessingEnumModelerWidget;
67class QgsProcessingMatrixModelerWidget;
68class QgsProcessingMapLayerComboBox;
71class QgsProcessingLayerOutputDestinationWidget;
74class QgsProcessingPointCloudExpressionLineEdit;
75class QgsProcessingRasterCalculatorExpressionLineEdit;
95 QCheckBox *mDefaultCheckBox =
nullptr;
109 QString parameterType()
const override;
124 QVariant widgetValue() const override;
126 QStringList compatibleParameterTypes() const override;
128 QStringList compatibleOutputTypes() const override;
132 QCheckBox *mCheckBox =
nullptr;
133 QComboBox *mComboBox =
nullptr;
135 friend class TestProcessingGui;
166 QString parameterType()
const override;
180 QVariant widgetValue() const override;
182 QStringList compatibleParameterTypes() const override;
183 QStringList compatibleOutputTypes() const override;
184 QString modelerExpressionFormatString() const override;
189 QCheckBox *mUseProjectCrsCheckBox =
nullptr;
191 friend class TestProcessingGui;
209 QLineEdit *mDefaultLineEdit =
nullptr;
210 QCheckBox *mMultiLineCheckBox =
nullptr;
224 QString parameterType()
const override;
238 QVariant widgetValue() const override;
240 QStringList compatibleParameterTypes() const override;
242 QStringList compatibleOutputTypes() const override;
245 QLineEdit *mLineEdit =
nullptr;
246 QComboBox *mComboBox =
nullptr;
247 QPlainTextEdit *mPlainTextEdit =
nullptr;
249 friend class TestProcessingGui;
263 QString parameterType()
const override;
272 QVariant widgetValue() const override;
274 QStringList compatibleParameterTypes() const override;
276 QStringList compatibleOutputTypes() const override;
281 friend class TestProcessingGui;
298 QComboBox *mTypeComboBox =
nullptr;
299 QLineEdit *mMinLineEdit =
nullptr;
300 QLineEdit *mMaxLineEdit =
nullptr;
301 QLineEdit *mDefaultLineEdit =
nullptr;
316 QString parameterType()
const override;
330 QVariant widgetValue() const override;
332 QStringList compatibleParameterTypes() const override;
334 QStringList compatibleOutputTypes() const override;
343 static
double calculateStep(
double minimum,
double maximum );
345 bool mAllowingNull = false;
347 friend class TestProcessingGui;
364 QComboBox *mParentLayerComboBox =
nullptr;
365 QLineEdit *mMinLineEdit =
nullptr;
366 QLineEdit *mMaxLineEdit =
nullptr;
367 QLineEdit *mDefaultLineEdit =
nullptr;
371class GUI_EXPORT QgsProcessingDistanceWidgetWrapper :
public QgsProcessingNumericWidgetWrapper
381 QString parameterType()
const override;
395 void setUnits(
Qgis::DistanceUnit unit );
399 QVariant widgetValue() const override;
403 Qgis::DistanceUnit mBaseUnit =
Qgis::DistanceUnit::Unknown;
404 QLabel *mLabel =
nullptr;
405 QWidget *mWarningLabel =
nullptr;
406 QComboBox *mUnitsCombo =
nullptr;
408 friend class TestProcessingGui;
424 QComboBox *mParentLayerComboBox =
nullptr;
425 QLineEdit *mMinLineEdit =
nullptr;
426 QLineEdit *mMaxLineEdit =
nullptr;
427 QLineEdit *mDefaultLineEdit =
nullptr;
431class GUI_EXPORT QgsProcessingAreaWidgetWrapper :
public QgsProcessingNumericWidgetWrapper
441 QString parameterType()
const override;
455 void setUnits(
Qgis::AreaUnit unit );
459 QVariant widgetValue() const override;
463 Qgis::AreaUnit mBaseUnit =
Qgis::AreaUnit::Unknown;
464 QLabel *mLabel =
nullptr;
465 QWidget *mWarningLabel =
nullptr;
466 QComboBox *mUnitsCombo =
nullptr;
468 friend class TestProcessingGui;
485 QComboBox *mParentLayerComboBox =
nullptr;
486 QLineEdit *mMinLineEdit =
nullptr;
487 QLineEdit *mMaxLineEdit =
nullptr;
488 QLineEdit *mDefaultLineEdit =
nullptr;
492class GUI_EXPORT QgsProcessingVolumeWidgetWrapper :
public QgsProcessingNumericWidgetWrapper
502 QString parameterType()
const override;
516 void setUnits(
Qgis::VolumeUnit unit );
520 QVariant widgetValue() const override;
524 Qgis::VolumeUnit mBaseUnit =
Qgis::VolumeUnit::Unknown;
525 QLabel *mLabel =
nullptr;
526 QWidget *mWarningLabel =
nullptr;
527 QComboBox *mUnitsCombo =
nullptr;
529 friend class TestProcessingGui;
546 QLineEdit *mMinLineEdit =
nullptr;
547 QLineEdit *mMaxLineEdit =
nullptr;
548 QLineEdit *mDefaultLineEdit =
nullptr;
549 QComboBox *mUnitsCombo =
nullptr;
553class GUI_EXPORT QgsProcessingDurationWidgetWrapper :
public QgsProcessingNumericWidgetWrapper
563 QString parameterType()
const override;
577 QVariant widgetValue() const override;
582 Qgis::TemporalUnit mBaseUnit =
Qgis::TemporalUnit::Milliseconds;
583 QComboBox *mUnitsCombo =
nullptr;
585 friend class TestProcessingGui;
601 QLineEdit *mDefaultLineEdit =
nullptr;
605class GUI_EXPORT QgsProcessingScaleWidgetWrapper :
public QgsProcessingNumericWidgetWrapper
615 QString parameterType()
const override;
628 QVariant widgetValue() const override;
635 friend class TestProcessingGui;
652 QComboBox *mTypeComboBox =
nullptr;
653 QLineEdit *mMinLineEdit =
nullptr;
654 QLineEdit *mMaxLineEdit =
nullptr;
668 QString parameterType()
const override;
682 QVariant widgetValue() const override;
683 QStringList compatibleParameterTypes() const override;
684 QStringList compatibleOutputTypes() const override;
685 QString modelerExpressionFormatString() const override;
694 int mBlockChangedSignal = 0;
695 bool mAllowingNull = false;
697 friend class TestProcessingGui;
713 QgsProcessingMatrixModelerWidget *mMatrixWidget =
nullptr;
727 QString parameterType()
const override;
741 QVariant widgetValue() const override;
743 QStringList compatibleParameterTypes() const override;
744 QStringList compatibleOutputTypes() const override;
745 QString modelerExpressionFormatString() const override;
749 QgsProcessingMatrixParameterPanel *mMatrixWidget =
nullptr;
751 friend class TestProcessingGui;
767 QComboBox *mTypeComboBox =
nullptr;
768 QComboBox *mFilterComboBox =
nullptr;
783 QString parameterType()
const override;
797 QVariant widgetValue() const override;
799 QStringList compatibleParameterTypes() const override;
801 QStringList compatibleOutputTypes() const override;
802 QString modelerExpressionFormatString() const override;
808 friend class TestProcessingGui;
826 QComboBox *mParentLayerComboBox =
nullptr;
828 QgsProcessingPointCloudExpressionLineEdit *mDefaultPointCloudLineEdit =
nullptr;
829 QgsProcessingRasterCalculatorExpressionLineEdit *mDefaultRasterCalculatorLineEdit =
nullptr;
830 QComboBox *mExpressionTypeComboBox =
nullptr;
844 QString parameterType()
const override;
862 QVariant widgetValue() const override;
864 QStringList compatibleParameterTypes() const override;
866 QStringList compatibleOutputTypes() const override;
868 QString modelerExpressionFormatString() const override;
875 QgsProcessingPointCloudExpressionLineEdit *mPointCloudExpLineEdit =
nullptr;
876 QgsProcessingRasterCalculatorExpressionLineEdit *mRasterCalculatorExpLineEdit =
nullptr;
879 friend class TestProcessingGui;
883class GUI_EXPORT QgsProcessingEnumCheckboxPanelWidget : public QWidget
889 QgsProcessingEnumCheckboxPanelWidget( QWidget *parent =
nullptr,
const QgsProcessingParameterEnum *param =
nullptr,
int columns = 2 );
890 QVariant value()
const;
891 void setValue(
const QVariant &value );
899 void showPopupMenu();
906 QMap< QVariant, QAbstractButton * > mButtons;
907 QButtonGroup *mButtonGroup =
nullptr;
909 bool mBlockChangedSignal =
false;
911 friend class TestProcessingGui;
914class GUI_EXPORT QgsProcessingEnumPanelWidget :
public QWidget
921 QVariant value()
const {
return mValue; }
922 void setValue(
const QVariant &value );
934 void updateSummaryText();
937 QLineEdit *mLineEdit =
nullptr;
938 QToolButton *mToolButton =
nullptr;
942 friend class TestProcessingGui;
958 QgsProcessingEnumModelerWidget *mEnumWidget =
nullptr;
972 QString parameterType()
const override;
986 QVariant widgetValue() const override;
988 QStringList compatibleParameterTypes() const override;
990 QStringList compatibleOutputTypes() const override;
992 QString modelerExpressionFormatString() const override;
995 QComboBox *mComboBox =
nullptr;
996 QgsProcessingEnumPanelWidget *mPanel =
nullptr;
997 QgsProcessingEnumCheckboxPanelWidget *mCheckboxPanel =
nullptr;
999 friend class TestProcessingGui;
1014 QString parameterType()
const override;
1023 QVariant widgetValue() const override;
1026 QStringList compatibleParameterTypes() const override;
1028 QStringList compatibleOutputTypes() const override;
1030 QString modelerExpressionFormatString() const override;
1034 QComboBox *mPlainComboBox =
nullptr;
1036 friend class TestProcessingGui;
1054 QComboBox *mParentLayoutComboBox =
nullptr;
1068 QString parameterType()
const override;
1082 void setLayoutParameterValue( const QVariant &value );
1088 QVariant widgetValue() const override;
1090 QStringList compatibleParameterTypes() const override;
1092 QStringList compatibleOutputTypes() const override;
1093 QString modelerExpressionFormatString() const override;
1097 QLineEdit *mLineEdit =
nullptr;
1099 friend class TestProcessingGui;
1102class GUI_EXPORT QgsProcessingPointMapTool : public
QgsMapTool
1107 ~QgsProcessingPointMapTool()
override;
1108 void deactivate()
override;
1111 void keyPressEvent( QKeyEvent *e )
override;
1120 std::unique_ptr<QgsSnapIndicator> mSnapIndicator;
1121 friend class TestProcessingGui;
1124class GUI_EXPORT QgsProcessingPointPanel :
public QWidget
1130 QgsProcessingPointPanel( QWidget *parent );
1132 void setAllowNull(
bool allowNull );
1133 void setShowPointOnCanvas(
bool show );
1134 void setAllowSelectOnCanvas(
bool allow );
1136 QVariant value()
const;
1139 void showEvent( QShowEvent *event )
override;
1143 void toggleDialogVisibility(
bool visible );
1148 void selectOnCanvas();
1151 void textChanged(
const QString &text );
1154 void updateRubberBand();
1157 bool mShowPointOnCanvas =
false;
1158 bool mFirstShow =
true;
1159 bool mAllowSelectOnCanvas =
true;
1160 QToolButton *mButton =
nullptr;
1163 QPointer< QgsMapTool > mPrevTool;
1164 std::unique_ptr< QgsProcessingPointMapTool > mTool;
1167 friend class TestProcessingGui;
1184 QLineEdit *mDefaultLineEdit =
nullptr;
1198 QString parameterType()
const override;
1209 void setDialog( QDialog *dialog ) override;
1214 QVariant widgetValue() const override;
1216 QStringList compatibleParameterTypes() const override;
1218 QStringList compatibleOutputTypes() const override;
1219 QString modelerExpressionFormatString() const override;
1222 QgsProcessingPointPanel *mPanel =
nullptr;
1223 QLineEdit *mLineEdit =
nullptr;
1224 QDialog *mDialog =
nullptr;
1226 friend class TestProcessingGui;
1256 QString parameterType()
const override;
1270 QVariant widgetValue() const override;
1272 QStringList compatibleParameterTypes() const override;
1274 QStringList compatibleOutputTypes() const override;
1275 QString modelerExpressionFormatString() const override;
1280 friend class TestProcessingGui;
1310 QString parameterType()
const override;
1321 void setDialog( QDialog *dialog ) override;
1326 QVariant widgetValue() const override;
1328 QStringList compatibleParameterTypes() const override;
1330 QStringList compatibleOutputTypes() const override;
1331 QString modelerExpressionFormatString() const override;
1335 QDialog *mDialog =
nullptr;
1337 friend class TestProcessingGui;
1354 QCheckBox *mAllowOpacity =
nullptr;
1368 QString parameterType()
const override;
1382 QVariant widgetValue() const override;
1384 QStringList compatibleParameterTypes() const override;
1386 QStringList compatibleOutputTypes() const override;
1387 QString modelerExpressionFormatString() const override;
1391 friend class TestProcessingGui;
1409 QLineEdit *mDefaultLineEdit =
nullptr;
1411 QComboBox *mSourceParamComboBox =
nullptr;
1412 QComboBox *mDestParamComboBox =
nullptr;
1430 QString parameterType()
const override;
1445 QVariant widgetValue() const override;
1447 QStringList compatibleParameterTypes() const override;
1449 QStringList compatibleOutputTypes() const override;
1450 QString modelerExpressionFormatString() const override;
1453 void setSourceCrsParameterValue( const QVariant &value );
1454 void setDestinationCrsParameterValue( const QVariant &value );
1458 QLineEdit *mLineEdit =
nullptr;
1461 friend class TestProcessingGui;
1464class GUI_EXPORT QgsProcessingFieldPanelWidget : public QWidget
1472 void setFields(
const QgsFields &fields );
1474 QgsFields fields()
const {
return mFields; }
1476 QVariant value()
const {
return mValue; }
1477 void setValue(
const QVariant &value );
1489 void updateSummaryText();
1494 QLineEdit *mLineEdit =
nullptr;
1495 QToolButton *mToolButton =
nullptr;
1497 QVariantList mValue;
1499 friend class TestProcessingGui;
1515 QComboBox *mParentLayerComboBox =
nullptr;
1516 QComboBox *mDataTypeComboBox =
nullptr;
1517 QLineEdit *mDefaultLineEdit =
nullptr;
1518 QCheckBox *mAllowMultipleCheckBox =
nullptr;
1519 QCheckBox *mDefaultToAllCheckBox =
nullptr;
1532 QString parameterType()
const override;
1550 QVariant widgetValue() const override;
1552 QStringList compatibleParameterTypes() const override;
1554 QStringList compatibleOutputTypes() const override;
1555 QString modelerExpressionFormatString() const override;
1561 QgsProcessingFieldPanelWidget *mPanel =
nullptr;
1562 QLineEdit *mLineEdit =
nullptr;
1568 friend class TestProcessingGui;
1585 QComboBox *mDefaultComboBox =
nullptr;
1599 QString parameterType()
const override;
1613 QVariant widgetValue() const override;
1615 QStringList compatibleParameterTypes() const override;
1617 QStringList compatibleOutputTypes() const override;
1618 QString modelerExpressionFormatString() const override;
1622 QComboBox *mComboBox =
nullptr;
1624 friend class TestProcessingGui;
1641 QComboBox *mTypeComboBox =
nullptr;
1655 QString parameterType()
const override;
1669 QVariant widgetValue() const override;
1671 QStringList compatibleParameterTypes() const override;
1672 QStringList compatibleOutputTypes() const override;
1673 QString modelerExpressionFormatString() const override;
1681 friend class TestProcessingGui;
1703 QComboBox *mProviderComboBox =
nullptr;
1704 QLineEdit *mDefaultEdit =
nullptr;
1718 QString parameterType()
const override;
1733 QVariant widgetValue() const override;
1735 QStringList compatibleParameterTypes() const override;
1737 QStringList compatibleOutputTypes() const override;
1738 QString modelerExpressionFormatString() const override;
1743 int mBlockSignals = 0;
1745 friend class TestProcessingGui;
1763 QComboBox *mConnectionParamComboBox =
nullptr;
1764 QLineEdit *mDefaultEdit =
nullptr;
1778 QString parameterType()
const override;
1780 void postInitialize(
const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers )
override;
1797 QVariant widgetValue() const override;
1799 QStringList compatibleParameterTypes() const override;
1801 QStringList compatibleOutputTypes() const override;
1802 QString modelerExpressionFormatString() const override;
1807 int mBlockSignals = 0;
1809 friend class TestProcessingGui;
1828 QComboBox *mConnectionParamComboBox =
nullptr;
1829 QComboBox *mSchemaParamComboBox =
nullptr;
1830 QLineEdit *mDefaultEdit =
nullptr;
1844 QString parameterType()
const override;
1846 void postInitialize(
const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers )
override;
1864 QVariant widgetValue() const override;
1866 QStringList compatibleParameterTypes() const override;
1868 QStringList compatibleOutputTypes() const override;
1869 QString modelerExpressionFormatString() const override;
1874 int mBlockSignals = 0;
1875 QString mConnection;
1879 friend class TestProcessingGui;
1908 QString parameterType()
const override;
1922 QVariant widgetValue() const override;
1924 QStringList compatibleParameterTypes() const override;
1926 QStringList compatibleOutputTypes() const override;
1927 QString modelerExpressionFormatString() const override;
1932 QPointer< QgsProcessingMapLayerComboBox > mComboBox;
1933 int mBlockSignals = 0;
1935 friend class TestProcessingGui;
1939class GUI_EXPORT QgsProcessingRasterLayerWidgetWrapper : public QgsProcessingMapLayerWidgetWrapper
1949 QString parameterType()
const override;
1958 QStringList compatibleParameterTypes()
const override;
1960 QStringList compatibleOutputTypes()
const override;
1962 QString modelerExpressionFormatString()
const override;
1983class GUI_EXPORT QgsProcessingVectorLayerWidgetWrapper :
public QgsProcessingMapLayerWidgetWrapper
1993 QString parameterType()
const override;
2002 QStringList compatibleParameterTypes()
const override;
2004 QStringList compatibleOutputTypes()
const override;
2006 QString modelerExpressionFormatString()
const override;
2027class GUI_EXPORT QgsProcessingFeatureSourceWidgetWrapper :
public QgsProcessingMapLayerWidgetWrapper
2037 QString parameterType()
const override;
2046 QStringList compatibleParameterTypes()
const override;
2048 QStringList compatibleOutputTypes()
const override;
2050 QString modelerExpressionFormatString()
const override;
2055class GUI_EXPORT QgsProcessingMeshLayerWidgetWrapper :
public QgsProcessingMapLayerWidgetWrapper
2065 QString parameterType()
const override;
2074 QStringList compatibleParameterTypes()
const override;
2076 QStringList compatibleOutputTypes()
const override;
2078 QString modelerExpressionFormatString()
const override;
2083class GUI_EXPORT QgsProcessingRasterBandPanelWidget :
public QWidget
2091 void setBands(
const QList< int > &bands );
2092 void setBandNames(
const QHash<int, QString > &names );
2093 QList< int > bands()
const {
return mBands; }
2095 QVariant value()
const {
return mValue; }
2096 void setValue(
const QVariant &value );
2108 void updateSummaryText();
2110 QList< int > mBands;
2111 QHash<int, QString > mBandNames;
2114 QLineEdit *mLineEdit =
nullptr;
2115 QToolButton *mToolButton =
nullptr;
2117 QVariantList mValue;
2119 friend class TestProcessingGui;
2135 QComboBox *mParentLayerComboBox =
nullptr;
2136 QLineEdit *mDefaultLineEdit =
nullptr;
2137 QCheckBox *mAllowMultipleCheckBox =
nullptr;
2150 QString parameterType()
const override;
2168 QVariant widgetValue() const override;
2170 QStringList compatibleParameterTypes() const override;
2172 QStringList compatibleOutputTypes() const override;
2173 QString modelerExpressionFormatString() const override;
2178 QgsProcessingRasterBandPanelWidget *mPanel =
nullptr;
2179 QLineEdit *mLineEdit =
nullptr;
2183 friend class TestProcessingGui;
2193 void dragEnterEvent( QDragEnterEvent *event )
override;
2194 void dragLeaveEvent( QDragLeaveEvent *event )
override;
2195 void dropEvent( QDropEvent *event )
override;
2199 void layersDropped(
const QVariantList &value );
2205class GUI_EXPORT QgsProcessingMultipleLayerPanelWidget :
public QWidget
2213 QVariant value()
const {
return mValue; }
2214 void setValue(
const QVariant &value );
2217 void setModel( QgsProcessingModelAlgorithm *model,
const QString &modelChildAlgorithmID );
2229 void updateSummaryText();
2232 QgsProcessingMultipleLayerLineEdit *mLineEdit =
nullptr;
2233 QToolButton *mToolButton =
nullptr;
2235 QVariantList mValue;
2236 QList< QgsProcessingModelChildParameterSource > mModelSources;
2237 QgsProcessingModelAlgorithm *mModel =
nullptr;
2241 friend class TestProcessingGui;
2257 QComboBox *mLayerTypeComboBox =
nullptr;
2270 QString parameterType()
const override;
2285 QVariant widgetValue() const override;
2287 QStringList compatibleParameterTypes() const override;
2289 QStringList compatibleOutputTypes() const override;
2290 QString modelerExpressionFormatString() const override;
2294 QgsProcessingMultipleLayerPanelWidget *mPanel =
nullptr;
2296 friend class TestProcessingGui;
2315 QVariant widgetValue() const override;
2316 QVariantMap customProperties() const override;
2318 QStringList compatibleParameterTypes() const override;
2320 QStringList compatibleOutputTypes() const override;
2324 QgsProcessingLayerOutputDestinationWidget *mOutputWidget =
nullptr;
2325 int mBlockSignals = 0;
2327 friend class TestProcessingGui;
2331class GUI_EXPORT QgsProcessingFeatureSinkWidgetWrapper : public QgsProcessingOutputWidgetWrapper
2341 QString parameterType()
const override;
2345 QString modelerExpressionFormatString()
const override;
2352class GUI_EXPORT QgsProcessingVectorDestinationWidgetWrapper :
public QgsProcessingOutputWidgetWrapper
2362 QString parameterType()
const override;
2366 QString modelerExpressionFormatString()
const override;
2370class GUI_EXPORT QgsProcessingRasterDestinationWidgetWrapper :
public QgsProcessingOutputWidgetWrapper
2380 QString parameterType()
const override;
2384 QString modelerExpressionFormatString()
const override;
2388class GUI_EXPORT QgsProcessingPointCloudDestinationWidgetWrapper :
public QgsProcessingOutputWidgetWrapper
2398 QString parameterType()
const override;
2402 QString modelerExpressionFormatString()
const override;
2406class GUI_EXPORT QgsProcessingFileDestinationWidgetWrapper :
public QgsProcessingOutputWidgetWrapper
2416 QString parameterType()
const override;
2420 QStringList compatibleParameterTypes()
const override;
2421 QStringList compatibleOutputTypes()
const override;
2422 QString modelerExpressionFormatString()
const override;
2426class GUI_EXPORT QgsProcessingFolderDestinationWidgetWrapper :
public QgsProcessingOutputWidgetWrapper
2436 QString parameterType()
const override;
2440 QStringList compatibleParameterTypes()
const override;
2441 QStringList compatibleOutputTypes()
const override;
2442 QString modelerExpressionFormatString()
const override;
2446class GUI_EXPORT QgsProcessingPointCloudLayerWidgetWrapper :
public QgsProcessingMapLayerWidgetWrapper
2456 QString parameterType()
const override;
2465 QStringList compatibleParameterTypes()
const override;
2467 QStringList compatibleOutputTypes()
const override;
2469 QString modelerExpressionFormatString()
const override;
2484 QString parameterType()
const override;
2497 QVariant widgetValue() const override;
2499 QStringList compatibleParameterTypes() const override;
2501 QStringList compatibleOutputTypes() const override;
2503 QString modelerExpressionFormatString() const override;
2508 int mBlockSignals = 0;
2510 friend class TestProcessingGui;
2514class GUI_EXPORT QgsProcessingPointCloudAttributePanelWidget : public QWidget
2526 QVariant value()
const {
return mValue; }
2527 void setValue(
const QVariant &value );
2539 void updateSummaryText();
2544 QLineEdit *mLineEdit =
nullptr;
2545 QToolButton *mToolButton =
nullptr;
2547 QVariantList mValue;
2549 friend class TestProcessingGui;
2565 QComboBox *mParentLayerComboBox =
nullptr;
2566 QLineEdit *mDefaultLineEdit =
nullptr;
2567 QCheckBox *mAllowMultipleCheckBox =
nullptr;
2568 QCheckBox *mDefaultToAllCheckBox =
nullptr;
2581 QString parameterType()
const override;
2599 QVariant widgetValue() const override;
2601 QStringList compatibleParameterTypes() const override;
2603 QStringList compatibleOutputTypes() const override;
2604 QString modelerExpressionFormatString() const override;
2609 QgsProcessingPointCloudAttributePanelWidget *mPanel =
nullptr;
2610 QLineEdit *mLineEdit =
nullptr;
2614 friend class TestProcessingGui;
2617class GUI_EXPORT QgsProcessingVectorTileDestinationWidgetWrapper : public QgsProcessingOutputWidgetWrapper
2627 QString parameterType()
const override;
2631 QString modelerExpressionFormatString()
const override;
Keeps a pointer to a QObject and deletes it whenever this object is deleted.
The Qgis class provides global constants for use throughout the application.
QFlags< ProcessingParameterFlag > ProcessingParameterFlags
Flags which dictate the behavior of Processing parameters.
Selector widget for authentication configs.
QComboBox subclass which allows selecting multiple items.
This class represents a coordinate reference system (CRS).
The QgsDatabaseSchemaComboBox class is a combo box which displays the list of schemas for a specific ...
The QgsDatabaseTableComboBox class is a combo box which displays the list of tables for a specific da...
The QgsDateEdit class is a QDateEdit widget with the capability of setting/reading null dates.
The QgsDateTimeEdit class is a QDateTimeEdit with the capability of setting/reading null date/times.
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value.
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
The QgsFieldComboBox is a combo box which displays the list of fields of a given layer.
Container of fields for a vector layer.
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
A QgsFilterLineEdit subclass with the ability to "highlight" the edges of the widget.
The QgsLayoutComboBox class is a combo box which displays available layouts from a QgsLayoutManager.
The QgsLayoutItemComboBox class is a combo box which displays items of a matching type from a layout.
Map canvas is a class for displaying all GIS data types on a canvas.
The QgsMapLayerComboBox class is a combo box which displays the list of layers.
Base class for all map layer types.
A QgsMapMouseEvent is the result of a user interaction with the mouse on a QgsMapCanvas.
Collection of point cloud attributes.
The QgsPointCloudAttributeComboBox is a combo box which displays the list of attributes of a given po...
Represents a map layer supporting display of point clouds.
A class to represent a 2D point.
Print layout, a QgsLayout subclass for static or atlas-based layouts.
Abstract base class for processing algorithms.
An interface for objects which can create Processing contexts.
Contains information about the context in which a processing algorithm is executed.
WidgetType
Types of dialogs which Processing widgets can be created for.
@ Standard
Standard algorithm dialog.
A raster band parameter for Processing algorithms.
Base class for the definition of processing parameters.
An enum based parameter for processing algorithms, allowing for selection from predefined values.
A vector layer or feature source field parameter for processing algorithms.
A parameter for processing algorithms which accepts multiple map layers.
A point cloud layer attribute parameter for Processing algorithms.
Contains settings which reflect the context in which a Processing parameter widget is shown,...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
The QgsProviderConnectionComboBox class is a combo box which displays the list of connections registe...
A combobox widget which displays the bands present in a raster layer.
Represents a raster layer.
A class for drawing transient features (e.g.
Class that shows snapping marker on map canvas for the current snapping match.
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value.
The QgsTimeEdit class is a QTimeEdit widget with the capability of setting/reading null date/times.
Represents a vector layer which manages a vector based data sets.
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
const QgsCoordinateReferenceSystem & crs