Browse Source

wxGUI: rename AddLegend handler to AddLegendRast

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@69172 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 8 years ago
parent
commit
b408d9dd93

+ 3 - 3
gui/wxpython/lmgr/frame.py

@@ -754,9 +754,9 @@ class GMFrame(wx.Frame):
                 self.GetMapDisplay().AddBarscale()
         elif layertype == 'rastleg':
             if len(command) > 1:
-                self.GetMapDisplay().AddLegend(cmd=command)
+                self.GetMapDisplay().AddLegendRast(cmd=command)
             else:
-                self.GetMapDisplay().AddLegend()
+                self.GetMapDisplay().AddLegendRast()
         elif layertype == 'vectleg':
             if len(command) > 1:
                 self.GetMapDisplay().AddLegendVect(cmd=command, showDialog=False)
@@ -1493,7 +1493,7 @@ class GMFrame(wx.Frame):
                     if overlay['cmd'][0] == "d.legend.vect":
                         mapdisplay[i].AddLegendVect(overlay['cmd'])
                     if overlay['cmd'][0] == "d.legend":
-                        mapdisplay[i].AddLegend(overlay['cmd'])
+                        mapdisplay[i].AddLegendRast(overlay['cmd'])
                     if overlay['cmd'][0] == "d.barscale":
                         mapdisplay[i].AddBarscale(overlay['cmd'])
                     if overlay['cmd'][0] == "d.northarrow":

+ 3 - 3
gui/wxpython/mapdisp/frame.py

@@ -1228,8 +1228,8 @@ class MapFrame(SingleMapFrame):
 
         self.MapWindow.mouse['use'] = 'pointer'
 
-    def AddLegend(self, cmd=None):
-        """Handler for legend map decoration menu selection."""
+    def AddLegendRast(self, cmd=None):
+        """Handler for legend raster map decoration menu selection."""
 
         if cmd:
             show = False
@@ -1248,7 +1248,7 @@ class MapFrame(SingleMapFrame):
         self.MapWindow.mouse['use'] = 'pointer'
 
     def AddLegendVect(self, cmd=None, showDialog=None):
-        """Handler for legend map decoration menu selection."""
+        """Handler for legend vector map decoration menu selection."""
 
         if cmd:
             show = False

+ 1 - 1
gui/wxpython/mapdisp/main.py

@@ -198,7 +198,7 @@ class DMonMap(Map):
                     if cmd in self.oldOverlays:
                         continue
                     if ltype == 'rastleg':
-                        self._giface.GetMapDisplay().AddLegend(cmd=cmd)
+                        self._giface.GetMapDisplay().AddLegendRast(cmd=cmd)
                     elif ltype == 'barscale':
                         self._giface.GetMapDisplay().AddBarscale(cmd=cmd)
                     elif ltype == 'northarrow':

+ 1 - 1
gui/wxpython/mapdisp/toolbars.py

@@ -270,7 +270,7 @@ class MapToolbar(BaseToolbar):
         """
         self._onMenu(
             ((MapIcons["addRasterLegend"],
-              lambda evt: self.parent.AddLegend()),
+              lambda evt: self.parent.AddLegendRast()),
              (MapIcons["addVectorLegend"],
               lambda evt: self.parent.AddLegendVect()),
              (MapIcons["addBarscale"],