Skip to content
Permalink
Browse files
- QgisInterface's functions addRasterLayer/addVectorLayer return poin…
…ter to layer instead of just bool

- renamed QgisApp::addLayer to more appropriate QgisApp::addVectorLayer
- cleanups in loading of raster/vector layers in QgisApp


git-svn-id: http://svn.osgeo.org/qgis/trunk@8055 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Jan 27, 2008
1 parent 6b0f7ea commit a85df15615e3b46ae6f151cbf7147bd41768b58c
@@ -36,11 +36,9 @@ class QgisInterface : QObject
virtual void zoomActiveLayer()=0;

//! Add a vector layer
virtual bool addVectorLayer(QString vectorLayerPath, QString baseName, QString providerKey)=0;
virtual QgsVectorLayer* addVectorLayer(QString vectorLayerPath, QString baseName, QString providerKey)=0;
//! Add a raster layer given a raster layer file name
virtual bool addRasterLayer(QString rasterLayerPath)=0;
//! Add a raster layer given a QgsRasterLayer object
virtual bool addRasterLayer(QgsRasterLayer * theRasterLayer, bool theForceRenderFlag=false)=0;
virtual QgsRasterLayer* addRasterLayer(QString rasterLayerPath, QString baseName = QString())=0;

//! Add a project
virtual bool addProject(QString theProject)=0;

0 comments on commit a85df15

Please sign in to comment.