87 void title(
const QString & title );
91 void setTitle(
const QString& title );
94 const QString & title()
const;
102 bool isDirty()
const;
105 void dirty(
bool b );
109 void setDirty(
bool b );
117 void setFileName(
const QString & name );
120 QString fileName()
const;
146 bool read(
const QFileInfo &
file );
163 bool read( QDomNode & layerNode );
176 bool write(
const QFileInfo & file );
215 void clearProperties();
227 bool writeEntry(
const QString & scope,
const QString & key,
bool value );
229 bool writeEntry(
const QString & scope,
const QString & key,
double value );
230 bool writeEntry(
const QString & scope,
const QString & key,
int value );
231 bool writeEntry(
const QString & scope,
const QString & key,
const QString & value );
232 bool writeEntry(
const QString & scope,
const QString & key,
const QStringList & value );
244 QStringList readListEntry(
const QString & scope,
const QString & key, QStringList def = QStringList(),
bool *ok = 0 )
const;
246 QString readEntry(
const QString & scope,
const QString & key,
const QString & def = QString::null,
bool * ok = 0 )
const;
247 int readNumEntry(
const QString & scope,
const QString & key,
int def = 0,
bool * ok = 0 )
const;
248 double readDoubleEntry(
const QString & scope,
const QString & key,
double def = 0,
bool * ok = 0 )
const;
249 bool readBoolEntry(
const QString & scope,
const QString & key,
bool def =
false,
bool * ok = 0 )
const;
254 bool removeEntry(
const QString & scope,
const QString & key );
261 QStringList entryList(
const QString & scope,
const QString & key )
const;
267 QStringList subkeyList(
const QString & scope,
const QString & key )
const;
275 void dumpProperties()
const;
278 QString writePath( QString filename, QString relativeBasePath = QString::null )
const;
281 QString readPath( QString filename )
const;
284 QString error()
const;
291 QString layerIsEmbedded(
const QString&
id )
const;
296 bool createEmbeddedLayer(
const QString& layerId,
const QString& projectFilePath, QList<QDomNode>& brokenNodes,
297 QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList,
bool saveFlag =
true );
302 QgsLayerTreeGroup* createEmbeddedGroup(
const QString& groupName,
const QString& projectFilePath );
306 bool avoidIntersection );
310 bool& avoidIntersection )
const;
313 void setTopologicalEditing(
bool enabled );
316 bool topologicalEditing()
const;
320 QString homePath()
const;
337 void setError( QString errorMessage );
344 bool addLayer(
const QDomElement& layerElem, QList<QDomNode>& brokenNodes, QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList );
347 void initializeEmbeddedSubtree(
const QString& projectFilePath,
QgsLayerTreeGroup* group );
354 void readProject(
const QDomDocument & );
357 void writeProject( QDomDocument & );
367 void readMapLayer(
QgsMapLayer *mapLayer,
const QDomElement &layerNode );
377 void writeMapLayer(
QgsMapLayer *mapLayer, QDomElement &layerElem, QDomDocument &doc );
383 void oldProjectVersionWarning( QString );
388 void layerLoaded(
int i,
int n );
390 void loadingLayer( QString );
392 void snapSettingsChanged();
403 std::auto_ptr<Imp> imp_;
407 QPair< bool, QList<QDomNode> > _getMapLayers( QDomDocument
const &doc );
409 QString mErrorMessage;
416 QHash< QString, QPair< QString, bool> > mEmbeddedLayers;
418 void snapSettings( QStringList& layerIdList, QStringList& enabledList, QStringList& snapTypeList, QStringList& snapUnitList, QStringList& toleranceUnitList,
419 QStringList& avoidIntersectionList )
const;
434 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom ) = 0;
443 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom );