85 void title(
const QString & title );
88 const QString & title()
const;
106 void setFileName(
const QString & name );
109 QString fileName()
const;
139 bool read(
const QFileInfo &
file );
156 bool read( QDomNode & layerNode );
169 bool write(
const QFileInfo & file );
206 void clearProperties();
218 bool writeEntry(
const QString & scope,
const QString & key,
bool value );
220 bool writeEntry(
const QString & scope,
const QString & key,
double value );
221 bool writeEntry(
const QString & scope,
const QString & key,
int value );
222 bool writeEntry(
const QString & scope,
const QString & key,
const QString & value );
223 bool writeEntry(
const QString & scope,
const QString & key,
const QStringList & value );
235 QStringList readListEntry(
const QString & scope,
const QString & key, QStringList def = QStringList(),
bool *ok = 0 )
const;
237 QString readEntry(
const QString & scope,
const QString & key,
const QString & def = QString::null,
bool * ok = 0 )
const;
238 int readNumEntry(
const QString & scope,
const QString & key,
int def = 0,
bool * ok = 0 )
const;
239 double readDoubleEntry(
const QString & scope,
const QString & key,
double def = 0,
bool * ok = 0 )
const;
240 bool readBoolEntry(
const QString & scope,
const QString & key,
bool def =
false,
bool * ok = 0 )
const;
245 bool removeEntry(
const QString & scope,
const QString & key );
252 QStringList entryList(
const QString & scope,
const QString & key )
const;
258 QStringList subkeyList(
const QString & scope,
const QString & key )
const;
266 void dumpProperties()
const;
270 QString writePath( QString filename )
const;
274 QString readPath( QString filename )
const;
278 QString error()
const;
286 QString layerIsEmbedded(
const QString&
id )
const;
293 bool createEmbeddedLayer(
const QString& layerId,
const QString& projectFilePath, QList<QDomNode>& brokenNodes,
294 QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList,
bool saveFlag =
true );
299 bool avoidIntersection );
304 bool& avoidIntersection )
const;
308 void setTopologicalEditing(
bool enabled );
312 bool topologicalEditing()
const;
317 QString homePath()
const;
325 void setError( QString errorMessage );
333 bool addLayer(
const QDomElement& layerElem, QList<QDomNode>& brokenNodes, QList< QPair< QgsVectorLayer*, QDomElement > >& vectorLayerList );
337 void readProject(
const QDomDocument & );
340 void writeProject( QDomDocument & );
350 void readMapLayer(
QgsMapLayer *mapLayer,
const QDomElement &layerNode );
360 void writeMapLayer(
QgsMapLayer *mapLayer, QDomElement &layerElem, QDomDocument &doc );
366 void oldProjectVersionWarning( QString );
371 void layerLoaded(
int i,
int n );
373 void loadingLayer( QString );
375 void snapSettingsChanged();
386 std::auto_ptr<Imp>
imp_;
390 QPair< bool, QList<QDomNode> > _getMapLayers( QDomDocument
const &doc );
401 void snapSettings( QStringList& layerIdList, QStringList& enabledList, QStringList& snapTypeList, QStringList& snapUnitList, QStringList& toleranceUnitList,
402 QStringList& avoidIntersectionList )
const;
414 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom ) = 0;
424 virtual void handleBadLayers( QList<QDomNode> layers, QDomDocument projectDom );