Skip to content

Commit fd40a72

Browse files
author
gsherman
committedMar 8, 2007
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
1 parent 7deaa5b commit fd40a72

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed
 

‎src/plugins/grass/qgsgrassplugin.cpp

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,10 @@ extern "C" {
7777
#include "grass_edit.xpm"
7878
#include "grass_region.xpm"
7979
#include "grass_region_edit.xpm"
80+
#include "grass_open_mapset.xpm"
81+
#include "grass_new_vector_layer.xpm"
82+
#include "grass_new_mapset.xpm"
83+
#include "grass_close_mapset.xpm"
8084
static const QString pluginVersion = QObject::tr("Version 0.1");
8185

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

155159
// Create the action for tool
156-
mOpenMapsetAction = new QAction( tr("Open mapset"), this );
157-
mNewMapsetAction = new QAction( tr("New mapset"), this );
158-
mCloseMapsetAction = new QAction( tr("Close mapset"), this );
160+
mOpenMapsetAction = new QAction(QIcon(icon_open_mapset), tr("Open mapset"), this );
161+
mNewMapsetAction = new QAction(QIcon(icon_new_mapset), tr("New mapset"), this );
162+
mCloseMapsetAction = new QAction(QIcon(icon_close_mapset), tr("Close mapset"), this );
159163

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

177181
mAddVectorAction->setWhatsThis(tr("Adds a GRASS vector layer to the map canvas"));
178182
mAddRasterAction->setWhatsThis(tr("Adds a GRASS raster layer to the map canvas"));
@@ -217,6 +221,11 @@ void QgsGrassPlugin::initGui()
217221
mRegionAction->addTo(toolBarPointer);
218222
mEditRegionAction->addTo(toolBarPointer);
219223
mEditAction->addTo(toolBarPointer);
224+
toolBarPointer->addSeparator();
225+
mOpenMapsetAction->addTo(toolBarPointer);
226+
mNewMapsetAction->addTo(toolBarPointer);
227+
mNewVectorAction->addTo(toolBarPointer);
228+
mCloseMapsetAction->addTo(toolBarPointer);
220229

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

0 commit comments

Comments
 (0)
Please sign in to comment.