Skip to content

Commit

Permalink
added icons to all grass tools; all grass tools now on the toolbar
Browse files Browse the repository at this point in the history
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 fd40a72
Showing 1 changed file with 13 additions and 4 deletions.
17 changes: 13 additions & 4 deletions src/plugins/grass/qgsgrassplugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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");

/**
Expand Down Expand Up @@ -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);
Expand All @@ -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"));
Expand Down Expand Up @@ -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 *)));
Expand Down

0 comments on commit fd40a72

Please sign in to comment.