16#ifndef QGSLAYERTREEREGISTRYBRIDGE_H
17#define QGSLAYERTREEREGISTRYBRIDGE_H
59 : group( group ), position( position ) {}
86 void setLayerInsertionPoint(
const InsertionPoint &insertionPoint );
109 void layersAdded(
const QList<QgsMapLayer *> &layers );
110 void layersWillBeRemoved(
const QStringList &layerIds );
112 void groupWillRemoveChildren(
QgsLayerTreeNode *node,
int indexFrom,
int indexTo );
113 void groupRemovedChildren();
115 void removeLayersFromRegistry(
const QStringList &layerIds );
LayerTreeInsertionMethod
Script language capabilities.
@ AboveInsertionPoint
Layers are added in the tree above the insertion point.
Layer tree group node serves as a container for layers and further groups.
This class is a base class for nodes in a layer tree.
Listens to the updates in map layer registry and does changes in layer tree.
bool newLayersVisible() const
QStringList mLayerIdsForRemoval
void setNewLayersVisible(bool enabled)
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...
Qgis::LayerTreeInsertionMethod layerInsertionMethod() const
Returns the insertion method used to add layers to the tree.
InsertionPoint mInsertionPoint
bool mRegistryRemovingLayers
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,...
A structure to define the insertion point to the layer tree.
InsertionPoint(QgsLayerTreeGroup *group, int position)
Constructs an insertion point as layer tree group with its corresponding position.