Skip to content
Permalink
Browse files

Ensure Add Oracle Raster Layer action comes before Add WMS Layer acti…

…on on Manage Layers toolbar

- Should come before Add SQL Anywhere Layer and just after Add Oracle Spatial Layer if all are supported and shown
  • Loading branch information
dakcarto committed Jul 12, 2013
1 parent 113a64b commit 96abc2565bfd754408d4ef24417b60bb89ac33c3
Showing with 6 additions and 4 deletions.
  1. +6 −4 src/plugins/oracle_raster/qgsoracle_plugin.cpp
@@ -16,6 +16,8 @@
#include "qgsoracle_plugin.h"
#include "qgsselectgeoraster_ui.h"

#include <QMenu>

static const QString sName = QObject::tr( "Oracle Spatial GeoRaster" );
static const QString sDescription = QObject::tr( "Access Oracle Spatial GeoRaster" );
static const QString sCategory = QObject::tr( "Layers" );
@@ -51,17 +53,17 @@ QgsOraclePlugin::~QgsOraclePlugin()
*/
void QgsOraclePlugin::initGui()
{

// Create the action for tool
mQActionPointer = new QAction( QIcon( ":/oracleplugin/oracleplugin.png" ), tr( "Add Oracle GeoRaster Layer..." ), this );
// Set the what's this text
mQActionPointer->setWhatsThis( tr( "Add a Oracle Spatial GeoRaster..." ) );
// Connect the action to the run
connect( mQActionPointer, SIGNAL( triggered() ), this, SLOT( run() ) );
// Add the icon to the toolbar
mQGisIface->layerToolBar()->addAction( mQActionPointer );
mQGisIface->insertAddLayerAction( mQActionPointer );

// Add the icon to the new layers toolbar
mQGisIface->layerToolBar()->insertAction( mQGisIface->actionAddWmsLayer(), mQActionPointer );
// Also add to Layer menu
mQGisIface->layerMenu()->insertAction( mQGisIface->actionAddWmsLayer(), mQActionPointer );
}
//method defined in interface

0 comments on commit 96abc25

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