19#ifndef QGSPROCESSINGMODELERPARAMETERWIDGET_H
20#define QGSPROCESSINGMODELERPARAMETERWIDGET_H
32class QgsProcessingModelAlgorithm;
81 const QString &childId,
115 void populateSources(
const QStringList &compatibleParameterTypes,
116 const QStringList &compatibleOutputTypes,
117 const QList< int > &compatibleDataTypes );
124 void setExpressionHelpText(
const QString &text );
143 virtual
void setWidgetValue( const QgsProcessingModelChildParameterSource &value );
151 void setWidgetValue( const QList< QgsProcessingModelChildParameterSource > &values );
160 void setToModelOutput( const QString &value );
169 bool isModelOutput() const;
178 QString modelOutputName() const;
185 virtual QVariant value() const;
192 void setDialog( QDialog *dialog );
201 void setSourceType( QgsProcessingModelChildParameterSource::Source type );
205 void sourceMenuAboutToShow();
206 void sourceMenuActionTriggered( QAction *action );
220 SourceType currentSourceType()
const;
224 QgsProcessingModelAlgorithm *mModel =
nullptr;
225 const QString mChildId;
229 QVariant mStaticValue;
230 QString mModelInputParameterName;
231 QString mOutputChildId;
235 QToolButton *mSourceButton =
nullptr;
236 QMenu *mSourceMenu =
nullptr;
237 QStackedWidget *mStackedWidget =
nullptr;
239 bool mHasStaticWrapper =
false;
240 std::unique_ptr< QgsAbstractProcessingParameterWidgetWrapper > mStaticWidgetWrapper;
242 QComboBox *mModelInputCombo =
nullptr;
243 QComboBox *mChildOutputCombo =
nullptr;
246 friend class TestProcessingGui;
Abstract interface for generating an expression context.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
QLineEdit subclass with built in support for clearing the widget's value and handling custom null val...
An interface for objects which can create Processing contexts.
Contains information about the context in which a processing algorithm is executed.
Base class for the definition of processing parameters.
Contains settings which reflect the context in which a Processing parameter widget is shown,...