[GRASS-SVN] r48120 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Sep 4 18:22:02 EDT 2011


Author: cmbarton
Date: 2011-09-04 15:22:02 -0700 (Sun, 04 Sep 2011)
New Revision: 48120

Modified:
   grass/trunk/gui/wxpython/gui_modules/goutput.py
   grass/trunk/gui/wxpython/gui_modules/render.py
Log:
WxGUI command console will now recognize and run d.rast.leg

Modified: grass/trunk/gui/wxpython/gui_modules/goutput.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/goutput.py	2011-09-04 22:18:49 UTC (rev 48119)
+++ grass/trunk/gui/wxpython/gui_modules/goutput.py	2011-09-04 22:22:02 UTC (rev 48120)
@@ -489,6 +489,7 @@
                                  'd.legend'       : 'rastleg',
                                  'd.rast.arrow'   : 'rastarrow',
                                  'd.rast.num'     : 'rastnum',
+                                 'd.rast.leg'     : 'maplegend',
                                  'd.vect'         : 'vector',
                                  'd.thematic.area': 'thememap',
                                  'd.vect.chart'   : 'themechart',

Modified: grass/trunk/gui/wxpython/gui_modules/render.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/render.py	2011-09-04 22:18:49 UTC (rev 48119)
+++ grass/trunk/gui/wxpython/gui_modules/render.py	2011-09-04 22:22:02 UTC (rev 48120)
@@ -121,7 +121,7 @@
         layertypes = ('raster', 'rgb', 'his', 'shaded', 'rastarrow', 'rastnum',
                       'vector','thememap','themechart',
                       'grid', 'geodesic', 'rhumb', 'labels',
-                      'command', 'rastleg',
+                      'command', 'rastleg','maplegend',
                       'overlay')
         
         if self.type not in layertypes:
@@ -244,7 +244,7 @@
         """!Set layer type"""
         if type not in ('raster', '3d-raster', 'vector',
                         'overlay', 'command',
-                        'shaded', 'rgb', 'his', 'rastarrow', 'rastnum',
+                        'shaded', 'rgb', 'his', 'rastarrow', 'rastnum','maplegend',
                         'thememap', 'themechart', 'grid', 'labels',
                         'geodesic','rhumb'):
             raise gcmd.GException(_("Unsupported map layer type '%s'") % type)



More information about the grass-commit mailing list