QGIS API Documentation
2.8.2-Wien
|
Assorted functions for dealing with layer trees. More...
#include <qgslayertreeutils.h>
Static Public Member Functions | |
static Qt::CheckState | checkStateFromXml (QString txt) |
Convert QString to Qt::CheckState. | |
static QString | checkStateToXml (Qt::CheckState state) |
Convert Qt::CheckState to QString. | |
static QStringList | invisibleLayerList (QgsLayerTreeNode *node) |
get invisible layers | |
static bool | layersEditable (const QList< QgsLayerTreeLayer * > &layerNodes) |
Return true if any of the layers is editable. | |
static bool | layersModified (const QList< QgsLayerTreeLayer * > &layerNodes) |
Return true if any of the layers is modified. | |
static bool | readOldLegend (QgsLayerTreeGroup *root, const QDomElement &legendElem) |
Try to load layer tree from. | |
static bool | readOldLegendLayerOrder (const QDomElement &legendElem, bool &hasCustomOrder, QStringList &order) |
Try to load custom layer order from. | |
static void | removeInvalidLayers (QgsLayerTreeGroup *group) |
Remove layer nodes that refer to invalid layers. | |
static void | replaceChildrenOfEmbeddedGroups (QgsLayerTreeGroup *group) |
Remove subtree of embedded groups and replaces it with a custom property embedded-visible-layers. | |
static void | updateEmbeddedGroupsProjectPath (QgsLayerTreeGroup *group) |
static QDomElement | writeOldLegend (QDomDocument &doc, QgsLayerTreeGroup *root, bool hasCustomOrder, const QStringList &order) |
Return. |
Assorted functions for dealing with layer trees.
Definition at line 35 of file qgslayertreeutils.h.
|
static |
Convert QString to Qt::CheckState.
Definition at line 193 of file qgslayertreeutils.cpp.
|
static |
Convert Qt::CheckState to QString.
Definition at line 183 of file qgslayertreeutils.cpp.
|
static |
get invisible layers
Definition at line 307 of file qgslayertreeutils.cpp.
|
static |
Return true if any of the layers is editable.
Definition at line 261 of file qgslayertreeutils.cpp.
|
static |
Return true if any of the layers is modified.
Definition at line 275 of file qgslayertreeutils.cpp.
|
static |
Try to load layer tree from.
<legend>
tag from project files from QGIS 2.2 and below
Definition at line 30 of file qgslayertreeutils.cpp.
|
static |
Try to load custom layer order from.
<legend>
tag from project files from QGIS 2.2 and below
Definition at line 82 of file qgslayertreeutils.cpp.
|
static |
Remove layer nodes that refer to invalid layers.
Definition at line 289 of file qgslayertreeutils.cpp.
|
static |
Remove subtree of embedded groups and replaces it with a custom property embedded-visible-layers.
Definition at line 329 of file qgslayertreeutils.cpp.
|
static |
Definition at line 349 of file qgslayertreeutils.cpp.
|
static |
Return.
<legend>
tag used in QGIS 2.2 and below
Definition at line 172 of file qgslayertreeutils.cpp.