Skip to content

Commit

Permalink
Ensure Add Oracle Raster Layer action comes before Add WMS Layer acti…
Browse files Browse the repository at this point in the history
…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 96abc25
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/plugins/oracle_raster/qgsoracle_plugin.cpp
Expand Up @@ -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" );
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 96abc25

Please sign in to comment.