QGIS API Documentation
3.16.0-Hannover (43b64b13f3)
|
Go to the documentation of this file.
16 #ifndef QGSLAYERTREEREGISTRYBRIDGE_H
17 #define QGSLAYERTREEREGISTRYBRIDGE_H
20 #include <QStringList>
22 #include "qgis_core.h"
58 : group( group ), position( position ) {}
85 void setLayerInsertionPoint(
const InsertionPoint &insertionPoint );
96 void layersAdded(
const QList<QgsMapLayer *> &layers );
97 void layersWillBeRemoved(
const QStringList &layerIds );
99 void groupWillRemoveChildren(
QgsLayerTreeNode *node,
int indexFrom,
int indexTo );
100 void groupRemovedChildren();
102 void removeLayersFromRegistry(
const QStringList &layerIds );
115 #endif // QGSLAYERTREEREGISTRYBRIDGE_H
A structure to define the insertion point to the layer tree.
This class is a base class for nodes in a layer tree.
InsertionPoint(QgsLayerTreeGroup *group, int position)
Constructs an insertion point as layer tree group with its corresponding position.
void setEnabled(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...
Encapsulates a QGIS project, including sets of map layers and their styles, layouts,...
QStringList mLayerIdsForRemoval
bool mRegistryRemovingLayers
Layer tree group node serves as a container for layers and further groups.
bool newLayersVisible() const
InsertionPoint mInsertionPoint
Base class for all map layer types.
void setNewLayersVisible(bool enabled)
Listens to the updates in map layer registry and does changes in layer tree.