Переглянути джерело

wxGUI: add 'set color table interactively' to the raster menu

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@66953 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 9 роки тому
батько
коміт
4a93641464
1 змінених файлів з 3 додано та 1 видалено
  1. 3 1
      gui/wxpython/lmgr/layertree.py

+ 3 - 1
gui/wxpython/lmgr/layertree.py

@@ -405,7 +405,7 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
             for key in ('remove', 'rename', 'opacity', 'nviz', 'zoom',
                         'region', 'export', 'attr', 'edit', 'save_ws',
                         'bgmap', 'topo', 'meta', 'null', 'zoom1',
-                        'color', 'hist', 'univar', 'prof', 'properties', 'sql', 'copy',
+                        'color', 'colori', 'hist', 'univar', 'prof', 'properties', 'sql', 'copy',
                         'report', 'export-pg', 'pack'):
                 self.popupID[key] = wx.NewId()
         
@@ -603,6 +603,8 @@ class LayerTree(treemixin.DragAndDrop, CT.CustomTreeCtrl):
                 
             self.popupMenu.Append(self.popupID['color'], _("Set color table"))
             self.Bind (wx.EVT_MENU, self.OnRasterColorTable, id = self.popupID['color'])
+            self.popupMenu.Append(self.popupID['colori'], _("Set color table interactively"))
+            self.Bind (wx.EVT_MENU, self.lmgr.OnRasterRules, id = self.popupID['colori'])
 
             item = wx.MenuItem(self.popupMenu, id = self.popupID['hist'], text = _("Histogram"))
             item.SetBitmap(MetaIcon(img = 'layer-raster-histogram').GetBitmap(self.bmpsize))