[GRASS-SVN] r70798 - grass/trunk/gui/wxpython/modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Mar 25 01:15:47 PDT 2017
Author: marisn
Date: 2017-03-25 01:15:47 -0700 (Sat, 25 Mar 2017)
New Revision: 70798
Modified:
grass/trunk/gui/wxpython/modules/mcalc_builder.py
Log:
Provide a dropdown with existing maps for new map name parameter. Fixes: #3209
Modified: grass/trunk/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/trunk/gui/wxpython/modules/mcalc_builder.py 2017-03-25 08:00:34 UTC (rev 70797)
+++ grass/trunk/gui/wxpython/modules/mcalc_builder.py 2017-03-25 08:15:47 UTC (rev 70798)
@@ -257,8 +257,12 @@
_('Name for new 3D raster map to create'))
else:
self.newmaplabel.SetLabel(_('Name for new raster map to create'))
- self.newmaptxt = wx.TextCtrl(
- parent=self.panel, id=wx.ID_ANY, size=(250, -1))
+ # As we can write only to current mapset, names should not be fully qualified
+ # to not confuse end user about writing in other mapset
+ self.newmaptxt = Select(
+ parent=self.panel, id=wx.ID_ANY, size=(
+ 250, -1), type=element, multiple=False,
+ fullyQualified=False)
self.mapsellabel = wx.StaticText(parent=self.panel, id=wx.ID_ANY)
if self.rast3d:
self.mapsellabel.SetLabel(_('Insert existing 3D raster map'))
More information about the grass-commit
mailing list