QGIS API Documentation 3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
qgsmodeldesignerconfigwidget.h
Go to the documentation of this file.
1/***************************************************************************
2 qgsmodeldesignerconfigwidget.h
3 ----------------------------------------
4 begin : January 2026
5 copyright : (C) 2026 by Nyall Dawson
6 email : nyall dot dawson at gmail dot com
7 ***************************************************************************/
8
9/***************************************************************************
10 * *
11 * This program is free software; you can redistribute it and/or modify *
12 * it under the terms of the GNU General Public License as published by *
13 * the Free Software Foundation; either version 2 of the License, or *
14 * (at your option) any later version. *
15 * *
16 ***************************************************************************/
17
18
19#ifndef QGSPROCESSINGMODELDESIGNERCONFIGWIDGET_H
20#define QGSPROCESSINGMODELDESIGNERCONFIGWIDGET_H
21
22#include "qgis_gui.h"
23#include "qgis_sip.h"
24#include "qgspanelwidget.h"
25
27class QgsProcessingModelComponent;
29
38{
39 Q_OBJECT
40 public:
44 QgsProcessingModelConfigWidget( QWidget *parent SIP_TRANSFERTHIS = nullptr );
45
46 public slots:
47
51 void apply();
52};
53
61class GUI_EXPORT QgsProcessingModelConfigWidgetFactory : public QObject
62{
63 // note -- this is a QObject so we can safely store in QPointers!
64 Q_OBJECT
65
66 public:
68
72 virtual bool supportsComponent( QgsProcessingModelComponent *component ) const = 0;
73
80 virtual QgsProcessingModelConfigWidget *createWidget( QgsProcessingModelComponent *component, QgsProcessingContext &context, const QgsProcessingParameterWidgetContext &widgetContext ) const = 0 SIP_FACTORY;
81};
82
83
84#endif // QGSPROCESSINGMODELDESIGNERCONFIGWIDGET_H
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Contains information about the context in which a processing algorithm is executed.
virtual bool supportsComponent(QgsProcessingModelComponent *component) const =0
Check if a model component is supported for this widget.
virtual QgsProcessingModelConfigWidget * createWidget(QgsProcessingModelComponent *component, QgsProcessingContext &context, const QgsProcessingParameterWidgetContext &widgetContext) const =0
Factory function to create the widget on demand as needed by the dock.
A panel widget that can be shown in the Processing model designer dialog for configuring part of the ...
QgsProcessingModelConfigWidget(QWidget *parent=nullptr)
Constructor for QgsProcessingModelConfigWidget().
void apply()
Applies the widget state to the model component.
Contains settings which reflect the context in which a Processing parameter widget is shown.
#define SIP_TRANSFERTHIS
Definition qgis_sip.h:52
#define SIP_FACTORY
Definition qgis_sip.h:83