QGIS API Documentation
2.8.2-Wien
|
Listens to the updates in map layer registry and does changes in layer tree. More...
#include <qgslayertreeregistrybridge.h>
Signals | |
void | addedLayersToLayerTree (QList< QgsMapLayer * > layers) |
Tell others we have just added layers to the tree (used in QGIS to auto-select first newly added layer) |
Public Member Functions | |
QgsLayerTreeRegistryBridge (QgsLayerTreeGroup *root, QObject *parent=0) | |
bool | isEnabled () const |
bool | newLayersVisible () const |
void | setEnabled (bool enabled) |
void | setLayerInsertionPoint (QgsLayerTreeGroup *parentGroup, int index) |
Set where the new layers should be inserted - can be used to follow current selection. | |
void | setNewLayersVisible (bool enabled) |
Protected Slots | |
void | groupRemovedChildren () |
void | groupWillRemoveChildren (QgsLayerTreeNode *node, int indexFrom, int indexTo) |
void | layersAdded (QList< QgsMapLayer * > layers) |
void | layersWillBeRemoved (QStringList layerIds) |
void | removeLayersFromRegistry (QStringList layerIds) |
Protected Attributes | |
bool | mEnabled |
QgsLayerTreeGroup * | mInsertionPointGroup |
int | mInsertionPointIndex |
QStringList | mLayerIdsForRemoval |
bool | mNewLayersVisible |
bool | mRegistryRemovingLayers |
QgsLayerTreeGroup * | mRoot |
Listens to the updates in map layer registry and does changes in layer tree.
When connected to a layer tree, any layers added to the map layer registry will be also added to the layer tree. Similarly, map layers that are removed from registry will be removed from the layer tree.
If a layer is completely removed from the layer tree, it will be also removed from the map layer registry.
Definition at line 39 of file qgslayertreeregistrybridge.h.
|
explicit |
Definition at line 25 of file qgslayertreeregistrybridge.cpp.
|
signal |
Tell others we have just added layers to the tree (used in QGIS to auto-select first newly added layer)
|
protectedslot |
Definition at line 127 of file qgslayertreeregistrybridge.cpp.
|
protectedslot |
Definition at line 114 of file qgslayertreeregistrybridge.cpp.
|
inline |
Definition at line 46 of file qgslayertreeregistrybridge.h.
|
protectedslot |
Definition at line 47 of file qgslayertreeregistrybridge.cpp.
|
protectedslot |
Definition at line 76 of file qgslayertreeregistrybridge.cpp.
|
inline |
Definition at line 49 of file qgslayertreeregistrybridge.h.
|
protectedslot |
Definition at line 148 of file qgslayertreeregistrybridge.cpp.
|
inline |
Definition at line 45 of file qgslayertreeregistrybridge.h.
void QgsLayerTreeRegistryBridge::setLayerInsertionPoint | ( | QgsLayerTreeGroup * | parentGroup, |
int | index | ||
) |
Set where the new layers should be inserted - can be used to follow current selection.
By default it is root group with zero index.
Definition at line 41 of file qgslayertreeregistrybridge.cpp.
|
inline |
Definition at line 48 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 73 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 76 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 77 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 71 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 74 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 72 of file qgslayertreeregistrybridge.h.
|
protected |
Definition at line 70 of file qgslayertreeregistrybridge.h.