浏览代码

wxGUI/iclass: add zoom to region icon to the toolbar

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@58446 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 11 年之前
父节点
当前提交
0851a50297
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1 3
      gui/wxpython/iclass/frame.py
  2. 2 0
      gui/wxpython/iclass/toolbars.py

+ 1 - 3
gui/wxpython/iclass/frame.py

@@ -446,9 +446,7 @@ class IClassMapFrame(DoubleMapFrame):
         # Add items to the menu
 
         i = 0
-        for label, handler in ((_('Zoom to computational region'), self.OnZoomToWind),
-                               (None, None),
-                               (_('Adjust Training Area Display to Preview Display'), self.OnZoomToPreview),
+        for label, handler in ((_('Adjust Training Area Display to Preview Display'), self.OnZoomToPreview),
                                (_('Adjust Preview display to Training Area Display'), self.OnZoomToTraining),
                                (_("Display synchronization ON"), lambda event: self.SetBindRegions(True)),
                                (_("Display synchronization OFF"), lambda event: self.SetBindRegions(False))):

+ 2 - 0
gui/wxpython/iclass/toolbars.py

@@ -109,6 +109,8 @@ class IClassMapToolbar(BaseToolbar):
                                      ("zoomOut", icons["zoomOut"],
                                       self.parent.OnZoomOut,
                                       wx.ITEM_CHECK),
+                                     ("zoomRegion", icons["zoomRegion"],
+                                      self.parent.OnZoomToWind),
                                      ("zoomMenu", icons["zoomMenu"],
                                       self.parent.OnZoomMenu),
                                      (None, ),