19 #ifndef QGSPROCESSINGWIDGETWRAPPERIMPL_H 20 #define QGSPROCESSINGWIDGETWRAPPERIMPL_H 33 class QgsProcessingMatrixParameterPanel;
55 QLabel *createLabel() override SIP_FACTORY;
60 QVariant widgetValue() const override;
62 QStringList compatibleParameterTypes() const override;
64 QStringList compatibleOutputTypes() const override;
66 QList<
int > compatibleDataTypes() const override;
70 QCheckBox *mCheckBox =
nullptr;
71 QComboBox *mComboBox =
nullptr;
73 friend class TestProcessingGui;
95 QVariant widgetValue() const override;
97 QStringList compatibleParameterTypes() const override;
98 QStringList compatibleOutputTypes() const override;
99 QList<
int > compatibleDataTypes() const override;
100 QString modelerExpressionFormatString() const override;
105 QCheckBox *mUseProjectCrsCheckBox =
nullptr;
107 friend class TestProcessingGui;
110 class GUI_EXPORT QgsProcessingStringWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
129 QVariant widgetValue() const override;
131 QStringList compatibleParameterTypes() const override;
133 QStringList compatibleOutputTypes() const override;
135 QList<
int > compatibleDataTypes() const override;
139 QLineEdit *mLineEdit =
nullptr;
140 QPlainTextEdit *mPlainTextEdit =
nullptr;
142 friend class TestProcessingGui;
146 class GUI_EXPORT QgsProcessingAuthConfigWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
165 QVariant widgetValue() const override;
167 QStringList compatibleParameterTypes() const override;
169 QStringList compatibleOutputTypes() const override;
171 QList<
int > compatibleDataTypes() const override;
177 friend class TestProcessingGui;
181 class GUI_EXPORT QgsProcessingNumericWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
200 QVariant widgetValue() const override;
202 QStringList compatibleParameterTypes() const override;
204 QStringList compatibleOutputTypes() const override;
206 QList<
int > compatibleDataTypes() const override;
215 static
double calculateStep(
double minimum,
double maximum );
217 bool mAllowingNull = false;
219 friend class TestProcessingGui;
223 class GUI_EXPORT QgsProcessingDistanceWidgetWrapper : public QgsProcessingNumericWidgetWrapper
238 void postInitialize( const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers ) override;
241 void setUnitParameterValue( const QVariant &value );
246 QVariant widgetValue() const override;
251 QLabel *mLabel =
nullptr;
252 QWidget *mWarningLabel =
nullptr;
253 QComboBox *mUnitsCombo =
nullptr;
255 friend class TestProcessingGui;
259 class GUI_EXPORT QgsProcessingRangeWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
278 QVariant widgetValue() const override;
279 QStringList compatibleParameterTypes() const override;
280 QStringList compatibleOutputTypes() const override;
281 QList<
int > compatibleDataTypes() const override;
282 QString modelerExpressionFormatString() const override;
291 int mBlockChangedSignal = 0;
293 friend class TestProcessingGui;
297 class GUI_EXPORT QgsProcessingMatrixWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
316 QVariant widgetValue() const override;
318 QStringList compatibleParameterTypes() const override;
319 QStringList compatibleOutputTypes() const override;
320 QList<
int > compatibleDataTypes() const override;
321 QString modelerExpressionFormatString() const override;
325 QgsProcessingMatrixParameterPanel *mMatrixWidget =
nullptr;
327 friend class TestProcessingGui;
330 class GUI_EXPORT QgsProcessingFileWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
349 QVariant widgetValue() const override;
351 QStringList compatibleParameterTypes() const override;
353 QStringList compatibleOutputTypes() const override;
355 QList<
int > compatibleDataTypes() const override;
356 QString modelerExpressionFormatString() const override;
362 friend class TestProcessingGui;
365 class GUI_EXPORT QgsProcessingExpressionWidgetWrapper : public QgsAbstractProcessingParameterWidgetWrapper, public QgsProcessingParameterWidgetFactoryInterface
380 void postInitialize( const QList< QgsAbstractProcessingParameterWidgetWrapper * > &wrappers ) override;
382 void setParentLayerWrapperValue( const QgsAbstractProcessingParameterWidgetWrapper *parentWrapper );
386 QVariant widgetValue() const override;
388 QStringList compatibleParameterTypes() const override;
390 QStringList compatibleOutputTypes() const override;
392 QList<
int > compatibleDataTypes() const override;
393 QString modelerExpressionFormatString() const override;
401 friend class TestProcessingGui;
406 #endif // QGSPROCESSINGWIDGETWRAPPERIMPL_H The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value...
WidgetType
Types of dialogs which Processing widgets can be created for.
Helper functions for various unit types.
The QgsSpinBox is a spin box with a clear button that will set the value to the defined clear value...
std::unique_ptr< GEOSGeometry, GeosDeleter > unique_ptr
Scoped GEOS pointer.
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
Base class for the definition of processing parameters.
Represents a vector layer which manages a vector based data sets.
Contains information about the context in which a processing algorithm is executed.
Selector widget for authentication configs.
Standard algorithm dialog.