[GRASS-SVN] r71248 - grass/branches/releasebranch_7_2/gui/wxpython/modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Jul 8 18:44:32 PDT 2017


Author: annakrat
Date: 2017-07-08 18:44:32 -0700 (Sat, 08 Jul 2017)
New Revision: 71248

Modified:
   grass/branches/releasebranch_7_2/gui/wxpython/modules/mcalc_builder.py
Log:
Provide a dropdown with existing maps for new map name parameter. Fixes: #3209 (merge from trunk, r70798)

Modified: grass/branches/releasebranch_7_2/gui/wxpython/modules/mcalc_builder.py
===================================================================
--- grass/branches/releasebranch_7_2/gui/wxpython/modules/mcalc_builder.py	2017-07-09 01:26:59 UTC (rev 71247)
+++ grass/branches/releasebranch_7_2/gui/wxpython/modules/mcalc_builder.py	2017-07-09 01:44:32 UTC (rev 71248)
@@ -247,8 +247,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