-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add spacing above function editor combo. API docs for QgsLayerDefinition
- Loading branch information
Showing
3 changed files
with
17 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,21 @@ | ||
/** | ||
* @brief The QgsLayerDefinition class holds generic methods for loading/exporting QLR files. | ||
* | ||
* QLR files are an export of the layer xml including the style and datasource location. There is no link | ||
* to the QLR file once loaded. Consider the QLR file a mini project file for layers and styles. QLR | ||
* files also store the layer tree info for the exported layers, including group information. | ||
*/ | ||
class CORE_EXPORT QgsLayerDefinition | ||
{ | ||
%TypeHeaderCode | ||
#include <qgslayerdefinition.h> | ||
%End | ||
public: | ||
/* Loads the QLR at path into QGIS. New layers are added to rootGroup and the map layer registry*/ | ||
static bool openLayerDefinition( const QString & path, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); | ||
/* Loads the QLR from the XML document. New layers are added to rootGroup and the map layer registry */ | ||
static bool openLayerDefinition( QDomDocument doc, QgsLayerTreeGroup* rootGroup, QString &errorMessage /Out/ ); | ||
/* Export the selected layer tree nodes to a QLR file */ | ||
static bool exportLayerDefinition( QString path, QList<QgsLayerTreeNode*> selectedTreeNodes, QString &errorMessage /Out/ ); | ||
}; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters