19 #ifndef QGSPROCESSINGMODELERPARAMETERWIDGET_H 20 #define QGSPROCESSINGMODELERPARAMETERWIDGET_H 27 #include "processing/models/qgsprocessingmodelchildparametersource.h" 32 class QgsProcessingModelAlgorithm;
80 const QString &childId,
114 void populateSources(
const QStringList &compatibleParameterTypes,
115 const QStringList &compatibleOutputTypes,
116 const QList< int > &compatibleDataTypes );
123 void setExpressionHelpText(
const QString &text );
142 virtual void setWidgetValue(
const QgsProcessingModelChildParameterSource &value );
149 virtual QgsProcessingModelChildParameterSource value()
const;
155 void sourceMenuAboutToShow();
156 void sourceMenuActionTriggered( QAction *action );
169 SourceType currentSourceType()
const;
171 void setSourceType( QgsProcessingModelChildParameterSource::Source type );
174 QgsProcessingModelAlgorithm *mModel =
nullptr;
175 const QString mChildId;
179 QVariant mStaticValue;
180 QString mModelInputParameterName;
181 QString mOutputChildId;
185 QToolButton *mSourceButton =
nullptr;
186 QMenu *mSourceMenu =
nullptr;
187 QStackedWidget *mStackedWidget =
nullptr;
189 bool mHasStaticWrapper =
false;
190 std::unique_ptr< QgsAbstractProcessingParameterWidgetWrapper > mStaticWidgetWrapper;
192 QComboBox *mModelInputCombo =
nullptr;
193 QComboBox *mChildOutputCombo =
nullptr;
195 friend class TestProcessingGui;
199 #endif // QGSPROCESSINGMODELERPARAMETERWIDGET_H
virtual QgsExpressionContext createExpressionContext() const =0
This method needs to be reimplemented in all classes which implement this interface and return an exp...
An interface for objects which can create Processing contexts.
Expression contexts are used to encapsulate the parameters around which a QgsExpression should be eva...
Abstract interface for generating an expression context.
Contains settings which reflect the context in which a Processing parameter widget is shown...
The QgsExpressionLineEdit widget includes a line edit for entering expressions together with a button...
Base class for the definition of processing parameters.
Contains information about the context in which a processing algorithm is executed.