Skip to content
Permalink
Browse files

Save as raster access from right click menu

  • Loading branch information
mhugent committed Jul 19, 2012
1 parent 7c9b2c1 commit 2eade8d91d798abb8fb84397ae6ee15775fd54cd
Showing with 7 additions and 2 deletions.
  1. +4 −0 src/app/legend/qgslegendlayer.cpp
  2. +3 −2 src/app/qgisapp.h
@@ -480,6 +480,10 @@ void QgsLegendLayer::addToPopupMenu( QMenu& theMenu )
theMenu.addAction( showNFeaturesAction );
theMenu.addSeparator();
}
else if ( lyr->type() == QgsMapLayer::RasterLayer )
{
theMenu.addAction( tr( "Save As..." ), QgisApp::instance(), SLOT( saveAsRasterFile() ) );
}

// properties goes on bottom of menu for consistency with normal ui standards
// e.g. kde stuff
@@ -820,6 +820,9 @@ class QgisApp : public QMainWindow, private Ui::MainWindow
void saveAsFile();
void saveSelectionAsVectorFile();

//! save current raster layer
void saveAsRasterFile();

//! show python console
void showPythonDialog();

@@ -955,8 +958,6 @@ class QgisApp : public QMainWindow, private Ui::MainWindow


void saveAsVectorFileGeneral( bool saveOnlySelection );
//! save current raster layer
void saveAsRasterFile();

/**Returns all annotation items in the canvas*/
QList<QgsAnnotationItem*> annotationItems();

0 comments on commit 2eade8d

Please sign in to comment.
You can’t perform that action at this time.