Added hook for a provider to indicate it supports saving its data to a shapefile. If supported, an item is added to the popup context menu. The save function is not implmented yet.

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@2320 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
gsherman 2004-11-23 06:24:34 +00:00
parent a71405eafc
commit b2979fb4b7

View File

@ -790,6 +790,7 @@ void QgsVectorLayer::select(int number)
if(dataProvider->supportsSaveAsShapefile()) if(dataProvider->supportsSaveAsShapefile())
{ {
// add the save as shapefile menu item // add the save as shapefile menu item
popMenu->insertSeparator();
popMenu->insertItem(tr("Save as shapefile..."), this, SLOT(saveAsShapefile())); popMenu->insertItem(tr("Save as shapefile..."), this, SLOT(saveAsShapefile()));
} }