QGIS API Documentation
3.99.0-Master (a8f284845db)
Loading...
Searching...
No Matches
src
gui
processing
models
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
26
class
QgsProcessingContext
;
27
class
QgsProcessingModelComponent;
28
class
QgsProcessingParameterWidgetContext
;
29
37
class
GUI_EXPORT
QgsProcessingModelConfigWidget
:
public
QgsPanelWidget
38
{
39
Q_OBJECT
40
public
:
44
QgsProcessingModelConfigWidget
( QWidget *parent
SIP_TRANSFERTHIS
=
nullptr
);
45
46
public
slots:
47
51
void
apply
();
52
};
53
61
class
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
:
67
QgsProcessingModelConfigWidgetFactory
();
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::QgsPanelWidget
QgsPanelWidget(QWidget *parent=nullptr)
Base class for any widget that can be shown as an inline panel.
Definition
qgspanelwidget.cpp:30
QgsProcessingContext
Contains information about the context in which a processing algorithm is executed.
Definition
qgsprocessingcontext.h:45
QgsProcessingModelConfigWidgetFactory::supportsComponent
virtual bool supportsComponent(QgsProcessingModelComponent *component) const =0
Check if a model component is supported for this widget.
QgsProcessingModelConfigWidgetFactory::QgsProcessingModelConfigWidgetFactory
QgsProcessingModelConfigWidgetFactory()
QgsProcessingModelConfigWidgetFactory::createWidget
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.
QgsProcessingModelConfigWidget
A panel widget that can be shown in the Processing model designer dialog for configuring part of the ...
Definition
qgsmodeldesignerconfigwidget.h:38
QgsProcessingModelConfigWidget::QgsProcessingModelConfigWidget
QgsProcessingModelConfigWidget(QWidget *parent=nullptr)
Constructor for QgsProcessingModelConfigWidget().
Definition
qgsmodeldesignerconfigwidget.cpp:26
QgsProcessingModelConfigWidget::apply
void apply()
Applies the widget state to the model component.
Definition
qgsmodeldesignerconfigwidget.cpp:31
QgsProcessingParameterWidgetContext
Contains settings which reflect the context in which a Processing parameter widget is shown.
Definition
qgsprocessingwidgetwrapper.h:119
qgis_sip.h
SIP_TRANSFERTHIS
#define SIP_TRANSFERTHIS
Definition
qgis_sip.h:52
SIP_FACTORY
#define SIP_FACTORY
Definition
qgis_sip.h:83
qgspanelwidget.h
Generated on
for QGIS API Documentation by
1.15.0