Browse Source

Provide a dropdown with existing maps for new map name parameter. Fixes: https://trac.osgeo.org/grass/ticket/3209

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@70798 15284696-431f-4ddb-bdfa-cd5b030d7da7
Maris Nartiss 8 years ago
parent
commit
a6073a5e96
1 changed files with 6 additions and 2 deletions
  1. 6 2
      gui/wxpython/modules/mcalc_builder.py

+ 6 - 2
gui/wxpython/modules/mcalc_builder.py

@@ -257,8 +257,12 @@ class MapCalcFrame(wx.Frame):
                 _('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'))