Individual map theme record of visible layers and styles.
More...
#include <qgsmapthemecollection.h>
Individual map theme record of visible layers and styles.
- Since
- QGIS 3.0, Previously called PresetRecord
Definition at line 121 of file qgsmapthemecollection.h.
◆ addLayerRecord()
◆ checkedGroupNodes()
QSet< QString > QgsMapThemeCollection::MapThemeRecord::checkedGroupNodes |
( |
| ) |
const |
|
inline |
Returns a set of group identifiers for group nodes that should have checked state (other group nodes should be unchecked).
The returned value is valid only when hasCheckedStateInfo() returns true
. Group identifiers are built using group names, a sub-group name is prepended by parent group's identifier and a forward slash, e.g. "level1/level2"
- Since
- QGIS 3.10.1
Definition at line 197 of file qgsmapthemecollection.h.
◆ expandedGroupNodes()
QSet< QString > QgsMapThemeCollection::MapThemeRecord::expandedGroupNodes |
( |
| ) |
const |
|
inline |
Returns a set of group identifiers for group nodes that should have expanded state (other group nodes should be collapsed).
The returned value is valid only when hasExpandedStateInfo() returns true
. Group identifiers are built using group names, a sub-group name is prepended by parent group's identifier and a forward slash, e.g. "level1/level2"
- Since
- QGIS 3.2
Definition at line 188 of file qgsmapthemecollection.h.
◆ hasCheckedStateInfo()
bool QgsMapThemeCollection::MapThemeRecord::hasCheckedStateInfo |
( |
| ) |
const |
|
inline |
Returns whether information about checked/unchecked state of groups has been recorded and thus whether checkedGroupNodes() is valid.
- Note
- Not available in Python bindings
- Since
- QGIS 3.10.1
Definition at line 166 of file qgsmapthemecollection.h.
◆ hasExpandedStateInfo()
bool QgsMapThemeCollection::MapThemeRecord::hasExpandedStateInfo |
( |
| ) |
const |
|
inline |
Returns whether information about expanded/collapsed state of nodes has been recorded and thus whether expandedGroupNodes() and expandedLegendItems + expandedLayerNode from layer records are valid.
- Since
- QGIS 3.2
Definition at line 158 of file qgsmapthemecollection.h.
◆ layerRecords()
◆ operator!=()
◆ operator==()
◆ removeLayerRecord()
void QgsMapThemeCollection::MapThemeRecord::removeLayerRecord |
( |
QgsMapLayer * |
layer | ) |
|
◆ setCheckedGroupNodes()
void QgsMapThemeCollection::MapThemeRecord::setCheckedGroupNodes |
( |
const QSet< QString > & |
checkedGroupNodes | ) |
|
|
inline |
◆ setExpandedGroupNodes()
void QgsMapThemeCollection::MapThemeRecord::setExpandedGroupNodes |
( |
const QSet< QString > & |
expandedGroupNodes | ) |
|
|
inline |
◆ setHasCheckedStateInfo()
void QgsMapThemeCollection::MapThemeRecord::setHasCheckedStateInfo |
( |
bool |
hasInfo | ) |
|
|
inline |
Sets whether the map theme contains valid checked/unchecked state of group nodes.
- Note
- Not available in Python bindings
- Since
- QGIS 3.10.1
Definition at line 179 of file qgsmapthemecollection.h.
◆ setHasExpandedStateInfo()
void QgsMapThemeCollection::MapThemeRecord::setHasExpandedStateInfo |
( |
bool |
hasInfo | ) |
|
|
inline |
Sets whether the map theme contains valid expanded/collapsed state of nodes.
- Since
- QGIS 3.2
Definition at line 172 of file qgsmapthemecollection.h.
◆ setLayerRecords()
◆ validLayerRecords()
◆ QgsMapThemeCollection
The documentation for this class was generated from the following files: