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;
156 void setDialog( QDialog *dialog );
162 void sourceMenuAboutToShow();
163 void sourceMenuActionTriggered( QAction *action );
176 SourceType currentSourceType()
const;
178 void setSourceType( QgsProcessingModelChildParameterSource::Source type );
181 QgsProcessingModelAlgorithm *mModel =
nullptr;
182 const QString mChildId;
186 QVariant mStaticValue;
187 QString mModelInputParameterName;
188 QString mOutputChildId;
192 QToolButton *mSourceButton =
nullptr;
193 QMenu *mSourceMenu =
nullptr;
194 QStackedWidget *mStackedWidget =
nullptr;
196 bool mHasStaticWrapper =
false;
197 std::unique_ptr< QgsAbstractProcessingParameterWidgetWrapper > mStaticWidgetWrapper;
199 QComboBox *mModelInputCombo =
nullptr;
200 QComboBox *mChildOutputCombo =
nullptr;
202 friend class TestProcessingGui;
206 #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.