|
@@ -43,6 +43,7 @@ |
|
|
#include "qgsmaplayerstore.h" |
|
|
#include "qgsarchive.h" |
|
|
#include "qgsreadwritecontext.h" |
|
|
#include "qgsprojectmetadata.h" |
|
|
|
|
|
class QFileInfo; |
|
|
class QDomDocument; |
|
@@ -92,6 +93,7 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera |
|
|
Q_PROPERTY( QgsSnappingConfig snappingConfig READ snappingConfig WRITE setSnappingConfig NOTIFY snappingConfigChanged ) |
|
|
Q_PROPERTY( QgsRelationManager *relationManager READ relationManager ) |
|
|
Q_PROPERTY( QList<QgsVectorLayer *> avoidIntersectionsLayers READ avoidIntersectionsLayers WRITE setAvoidIntersectionsLayers NOTIFY avoidIntersectionsLayersChanged ) |
|
|
Q_PROPERTY( QgsProjectMetadata metadata READ metadata WRITE setMetadata NOTIFY metadataChanged ) |
|
|
|
|
|
public: |
|
|
//! Returns the QgsProject singleton instance |
|
@@ -871,6 +873,22 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera |
|
|
*/ |
|
|
QgsAuxiliaryStorage *auxiliaryStorage(); |
|
|
|
|
|
/** |
|
|
* Returns a reference to the project's metadata store. |
|
|
* \since QGIS 3.2 |
|
|
* \see setMetadata() |
|
|
* \see metadataChanged() |
|
|
*/ |
|
|
const QgsProjectMetadata &metadata() const; |
|
|
|
|
|
/** |
|
|
* Sets the project's \a metadata store. |
|
|
* \since QGIS 3.2 |
|
|
* \see metadata() |
|
|
* \see metadataChanged() |
|
|
*/ |
|
|
void setMetadata( const QgsProjectMetadata &metadata ); |
|
|
|
|
|
signals: |
|
|
//! emitted when project is being read |
|
|
void readProject( const QDomDocument & ); |
|
@@ -1017,6 +1035,14 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera |
|
|
*/ |
|
|
void labelingEngineSettingsChanged(); |
|
|
|
|
|
/** |
|
|
* Emitted when the project's metadata is changed. |
|
|
* \see setMetadata() |
|
|
* \see metadata() |
|
|
* \since QGIS 3.2 |
|
|
*/ |
|
|
void metadataChanged(); |
|
|
|
|
|
// |
|
|
// signals from QgsMapLayerRegistry |
|
|
// |
|
@@ -1269,6 +1295,8 @@ class CORE_EXPORT QgsProject : public QObject, public QgsExpressionContextGenera |
|
|
|
|
|
QgsCoordinateTransformContext mTransformContext; |
|
|
|
|
|
QgsProjectMetadata mMetadata; |
|
|
|
|
|
friend class QgsProjectDirtyBlocker; |
|
|
}; |
|
|
|
|
|