16#ifndef QGSLAYERTREEREGISTRYBRIDGE_H
17#define QGSLAYERTREEREGISTRYBRIDGE_H
86 void setLayerInsertionPoint(
const InsertionPoint &insertionPoint );
92 InsertionPoint layerInsertionPoint()
const;
114 void layersAdded(
const QList<QgsMapLayer *> &layers );
LayerTreeInsertionMethod
Layer tree insertion methods.
@ AboveInsertionPoint
Layers are added in the tree above the insertion point.
Layer tree group node serves as a container for layers and further groups.
Base class for nodes in a layer tree.
void removeLayersFromRegistry(const QStringList &layerIds)
void groupRemovedChildren()
void layersWillBeRemoved(const QStringList &layerIds)
bool newLayersVisible() const
void layersAdded(const QList< QgsMapLayer * > &layers)
QStringList mLayerIdsForRemoval
void setNewLayersVisible(bool enabled)
int mInsertionPointPosition
void addedLayersToLayerTree(const QList< QgsMapLayer * > &layers)
Tell others we have just added layers to the tree (used in QGIS to auto-select first newly added laye...
void groupWillRemoveChildren(QgsLayerTreeNode *node, int indexFrom, int indexTo)
QPointer< QgsLayerTreeGroup > mInsertionPointGroup
QgsLayerTreeRegistryBridge(QgsLayerTreeGroup *root, QgsProject *project, QObject *parent=nullptr)
Create the instance that synchronizes given project with a layer tree root.
QgsLayerTreeGroup * mRoot
Qgis::LayerTreeInsertionMethod layerInsertionMethod() const
Returns the insertion method used to add layers to the tree.
bool mRegistryRemovingLayers
Qgis::LayerTreeInsertionMethod mInsertionMethod
void setEnabled(bool enabled)
void setLayerInsertionMethod(Qgis::LayerTreeInsertionMethod method)
Sets the insertion method used to add layers to the tree.
Base class for all map layer types.
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QgsLayerTreeGroup * group
InsertionPoint(QgsLayerTreeGroup *group, int position)
Constructs an insertion point as layer tree group with its corresponding position.