[GRASS-SVN] r58153 - grass/trunk/gui/wxpython/lmgr
svn_grass at osgeo.org
svn_grass at osgeo.org
Wed Nov 6 04:44:00 PST 2013
Author: martinl
Date: 2013-11-06 04:44:00 -0800 (Wed, 06 Nov 2013)
New Revision: 58153
Modified:
grass/trunk/gui/wxpython/lmgr/toolbars.py
Log:
wxGUI: add new icon to the layer manager toolbar to launch user-defined script
Modified: grass/trunk/gui/wxpython/lmgr/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/lmgr/toolbars.py 2013-11-06 11:26:06 UTC (rev 58152)
+++ grass/trunk/gui/wxpython/lmgr/toolbars.py 2013-11-06 12:44:00 UTC (rev 58153)
@@ -142,6 +142,8 @@
label = _('Georectifier')),
'composer': MetaIcon(img = 'print-compose',
label = _('Cartographic Composer')),
+ 'script-load': MetaIcon(img = 'script-load',
+ label = _('Launch user-defined script')),
}
return self._getToolbarData((('importMap', icons["import"],
@@ -154,7 +156,10 @@
('modeler', icons["modeler"],
self.parent.OnGModeler),
('mapOutput', icons['composer'],
- self.parent.OnPsMap)
+ self.parent.OnPsMap),
+ (None, ),
+ ('script-load', icons['script-load'],
+ self.parent.OnRunScript),
))
class LMMiscToolbar(BaseToolbar):
More information about the grass-commit
mailing list