|
5 | 5 | * to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR
|
6 | 6 | * files also store the layer tree info for the exported layers, including group information.
|
7 | 7 | */
|
8 |
| -class CORE_EXPORT QgsLayerDefinition |
| 8 | +class QgsLayerDefinition |
9 | 9 | {
|
10 | 10 | %TypeHeaderCode
|
11 | 11 | #include <qgslayerdefinition.h>
|
12 | 12 | %End
|
13 |
| -public: |
14 |
| - /* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/ |
15 |
| - static bool openLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); |
16 |
| - /* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */ |
17 |
| - static bool openLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); |
18 |
| - /* Export the selected layer tree nodes to a QLR file */ |
19 |
| - static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ ); |
| 13 | + public: |
| 14 | + /* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/ |
| 15 | + static bool loadLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); |
| 16 | + /* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */ |
| 17 | + static bool loadLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); |
| 18 | + /* Export the selected layer tree nodes to a QLR file */ |
| 19 | + static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ ); |
20 | 20 | };
|
21 | 21 |
|
0 commit comments