16#ifndef QGSPROCESSINGGUIUTILS_H
17#define QGSPROCESSINGGUIUTILS_H
Layer tree group node serves as a container for layers and further groups.
Layer tree node points to a map layer.
Extends QTreeView and provides additional functionality when working with a layer tree.
Base class for all map layer types.
Details for layers to load into projects.
Contains information about the context in which a processing algorithm is executed.
QgsProject * destinationProject
Destination QGIS project.
ResultLayerDetails(QgsMapLayer *layer)
Constructor for ResultLayerDetails.
QgsMapLayer * layer
Associated map layer.
QgsLayerTreeGroup * targetLayerTreeGroup
Optional target layer tree group, where the layer should be placed.
int sortKey
Sort order key for ordering output layers in the layer tree.
Contains utility functions relating to Processing GUI components.
static void addResultLayers(const QVector< QgsProcessingGuiUtils::ResultLayerDetails > &layers, const QgsProcessingContext &context, QgsLayerTreeView *view=nullptr)
Responsible for adding layers created by an algorithm to a project and the project's layer tree in th...
static void configureResultLayerTreeLayer(QgsLayerTreeLayer *layerTreeLayer)
Applies post-processing steps to the QgsLayerTreeLayer created for an algorithm's output.
static QgsLayerTreeGroup * layerTreeResultsGroup(const QgsProcessingContext::LayerDetails &layerDetails, const QgsProcessingContext &context)
Returns the destination layer tree group to store results in, or nullptr if there is no specific dest...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...