84 void title(
const QString & title );
87 const QString & title()
const;
105 void setFileName(
const QString & name );
108 QString fileName()
const;
138 bool read(
const QFileInfo &
file );
155 bool read( QDomNode & layerNode );
168 bool write(
const QFileInfo & file );
205 void clearProperties();
217 bool writeEntry(
const QString & scope,
const QString & key,
bool value );
219 bool writeEntry(
const QString & scope,
const QString & key,
double value );
220 bool writeEntry(
const QString & scope,
const QString & key,
int value );
221 bool writeEntry(
const QString & scope,
const QString & key,
const QString & value );
222 bool writeEntry(
const QString & scope,
const QString & key,
const QStringList & value );
234 QStringList readListEntry(
const QString & scope,
const QString & key, QStringList def = QStringList(),
bool *ok = 0 )
const;
236 QString readEntry(
const QString & scope,
const QString & key,
const QString & def = QString::null,
bool * ok = 0 )
const;
237 int readNumEntry(
const QString & scope,
const QString & key,
int def = 0,
bool * ok = 0 )
const;
238 double readDoubleEntry(
const QString & scope,
const QString & key,
double def = 0,
bool * ok = 0 )
const;
239 bool readBoolEntry(
const QString & scope,
const QString & key,
bool def =
false,
bool * ok = 0 )
const;
244 bool removeEntry(
const QString & scope,
const QString & key );
251 QStringList entryList(
const QString & scope,
const QString & key )
const;
257 QStringList subkeyList(
const QString & scope,
const QString & key )
const;
265 void dumpProperties()
const;
269 QString writePath( QString filename )
const;
273 QString readPath( QString filename )
const;
277 QString error()
const;
285 QString layerIsEmbedded(
const QString&
id )
const;
292 bool createEmbeddedLayer(
const QString& layerId,
const QString& projectFilePath, QList<QDomNode>& brokenNodes,
293 QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList,
bool saveFlag =
true );
298 bool avoidIntersection );
303 bool& avoidIntersection )
const;
307 void setTopologicalEditing(
bool enabled );
311 bool topologicalEditing()
const;
316 QString homePath()
const;
322 void setError( QString errorMessage );
330 bool addLayer(
const QDomElement& layerElem, QList<QDomNode>& brokenNodes, QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList );
334 void readProject(
const QDomDocument & );
337 void writeProject( QDomDocument & );
347 void readMapLayer(
QgsMapLayer *mapLayer,
const QDomElement &layerNode );
357 void writeMapLayer(
QgsMapLayer *mapLayer, QDomElement &layerElem, QDomDocument &doc );
363 void oldProjectVersionWarning( QString );
368 void layerLoaded(
int i,
int n );
370 void loadingLayer( QString );
372 void snapSettingsChanged();
383 std::auto_ptr<Imp>
imp_;
387 QPair< bool, QList<QDomNode> > _getMapLayers( QDomDocument
const &doc );
398 void snapSettings( QStringList& layerIdList, QStringList& enabledList, QStringList& snapTypeList, QStringList& snapUnitList, QStringList& toleranceUnitList,
399 QStringList& avoidIntersectionList )
const;
409 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom ) = 0;
419 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom );