Skip to content
Permalink
Browse files
added icons to all grass tools; all grass tools now on the toolbar
git-svn-id: http://svn.osgeo.org/qgis/branches/Release-0_8_0@6771 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
gsherman committed Mar 8, 2007
1 parent 7deaa5b commit fd40a7284872a0f21a6678002bcab778c1e3d812
Showing with 13 additions and 4 deletions.
  1. +13 −4 src/plugins/grass/qgsgrassplugin.cpp
@@ -77,6 +77,10 @@ extern "C" {
#include "grass_edit.xpm"
#include "grass_region.xpm"
#include "grass_region_edit.xpm"
#include "grass_open_mapset.xpm"
#include "grass_new_vector_layer.xpm"
#include "grass_new_mapset.xpm"
#include "grass_close_mapset.xpm"
static const QString pluginVersion = QObject::tr("Version 0.1");

/**
@@ -153,9 +157,9 @@ void QgsGrassPlugin::initGui()
mRegionBand->setZ(20);

// Create the action for tool
mOpenMapsetAction = new QAction( tr("Open mapset"), this );
mNewMapsetAction = new QAction( tr("New mapset"), this );
mCloseMapsetAction = new QAction( tr("Close mapset"), this );
mOpenMapsetAction = new QAction(QIcon(icon_open_mapset), tr("Open mapset"), this );
mNewMapsetAction = new QAction(QIcon(icon_new_mapset), tr("New mapset"), this );
mCloseMapsetAction = new QAction(QIcon(icon_close_mapset), tr("Close mapset"), this );

mAddVectorAction = new QAction(QIcon(icon_add_vector),
tr("Add GRASS vector layer"), this);
@@ -172,7 +176,7 @@ void QgsGrassPlugin::initGui()
tr("Edit Current Grass Region"), this);
mEditAction = new QAction(QIcon(icon_grass_edit),
tr("Edit Grass Vector layer"), this);
mNewVectorAction = new QAction("Create new Grass Vector", this);
mNewVectorAction = new QAction(QIcon(icon_new_vector_layer),"Create new Grass Vector", this);

mAddVectorAction->setWhatsThis(tr("Adds a GRASS vector layer to the map canvas"));
mAddRasterAction->setWhatsThis(tr("Adds a GRASS raster layer to the map canvas"));
@@ -217,6 +221,11 @@ void QgsGrassPlugin::initGui()
mRegionAction->addTo(toolBarPointer);
mEditRegionAction->addTo(toolBarPointer);
mEditAction->addTo(toolBarPointer);
toolBarPointer->addSeparator();
mOpenMapsetAction->addTo(toolBarPointer);
mNewMapsetAction->addTo(toolBarPointer);
mNewVectorAction->addTo(toolBarPointer);
mCloseMapsetAction->addTo(toolBarPointer);

// Connect display region
connect( mCanvas, SIGNAL(renderComplete(QPainter *)), this, SLOT(postRender(QPainter *)));

0 comments on commit fd40a72

Please sign in to comment.