Skip to content

Commit

Permalink
Save as raster access from right click menu
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jul 19, 2012
1 parent 7c9b2c1 commit 2eade8d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
4 changes: 4 additions & 0 deletions src/app/legend/qgslegendlayer.cpp
Expand Up @@ -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
Expand Down
5 changes: 3 additions & 2 deletions src/app/qgisapp.h
Expand Up @@ -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();

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit 2eade8d

Please sign in to comment.