74 Q_PROPERTY(
QStringList nonIdentifiableLayers READ nonIdentifiableLayers WRITE setNonIdentifiableLayers NOTIFY nonIdentifiableLayersChanged )
75 Q_PROPERTY(
QString fileName READ fileName WRITE setFileName NOTIFY fileNameChanged )
76 Q_PROPERTY(
QString homePath READ homePath NOTIFY homePathChanged )
84 static QgsProject * instance();
91 Q_DECL_DEPRECATED inline
void title( const
QString & title ) { setTitle( title ); }
98 void setTitle(
const QString& title );
108 bool isDirty()
const;
116 Q_DECL_DEPRECATED
inline void dirty(
bool b ) { setDirty( b ); }
123 void setFileName(
const QString& name );
201 Q_DECL_DEPRECATED
void clearProperties();
212 bool writeEntry(
const QString & scope,
const QString & key,
bool value );
214 bool writeEntry(
const QString & scope,
const QString & key,
double value );
215 bool writeEntry(
const QString & scope,
const QString & key,
int value );
228 int readNumEntry(
const QString & scope,
const QString & key,
int def = 0,
bool * ok =
nullptr )
const;
229 double readDoubleEntry(
const QString & scope,
const QString & key,
double def = 0,
bool * ok =
nullptr )
const;
230 bool readBoolEntry(
const QString & scope,
const QString & key,
bool def =
false,
bool * ok =
nullptr )
const;
254 void dumpProperties()
const;
289 bool avoidIntersection );
293 bool& avoidIntersection )
const;
296 void setTopologicalEditing(
bool enabled );
299 bool topologicalEditing()
const;
342 void setNonIdentifiableLayers(
const QStringList& layerIds );
356 bool autoTransaction()
const;
367 void setAutoTransaction(
bool autoTransaction );
384 bool evaluateDefaultValues()
const;
392 void setEvaluateDefaultValues(
bool evaluateDefaultValues );
398 void setError(
const QString& errorMessage );
446 void oldProjectVersionWarning(
const QString& );
451 void layerLoaded(
int i,
int n );
453 void loadingLayer(
const QString& );
455 void snapSettingsChanged();
458 void nonIdentifiableLayersChanged(
QStringList nonIdentifiableLayers );
461 void fileNameChanged();
464 void homePathChanged();
469 void variablesChanged();
480 void setDirty(
bool b =
true );
487 void emitVariablesChanged();
491 void cleanTransactionGroups(
bool force =
false );
Layer tree group node serves as a container for layers and further groups.
virtual void handleBadLayers(const QList< QDomNode > &layers, const QDomDocument &projectDom)=0
Base class for all map layer types.
UnitType
Type of unit of tolerance value from settings.
QgsLayerTreeRegistryBridge * layerTreeRegistryBridge() const
Return pointer to the helper class that synchronizes map layer registry with layer tree...
SnappingType
Snap to vertex, to segment or both.
CORE_EXPORT QgsProjectVersion getVersion(QDomDocument const &doc)
Return the version string found in the given DOM document.
A class to describe the version of a project.
Q_DECL_DEPRECATED void dirty(bool b)
Flag the project as dirty (modified).
Listens to the updates in map layer registry and does changes in layer tree.
Reads and writes project states.
virtual ~QgsProjectBadLayerHandler()
This class manages a set of relations between layers.
UnitType
Map units that qgis supports.
Container class that allows storage of visibility presets consisting of visible map layers and layer ...
Default bad layer handler which ignores any missing layers.
Represents a vector layer which manages a vector based data sets.
Interface for classes that handle missing layer files when reading project file.