[GRASS-SVN] r58446 - grass/trunk/gui/wxpython/iclass

svn_grass at osgeo.org svn_grass at osgeo.org
Wed Dec 11 12:21:50 PST 2013


Author: martinl
Date: 2013-12-11 12:21:50 -0800 (Wed, 11 Dec 2013)
New Revision: 58446

Modified:
   grass/trunk/gui/wxpython/iclass/frame.py
   grass/trunk/gui/wxpython/iclass/toolbars.py
Log:
wxGUI/iclass: add zoom to region icon to the toolbar

Modified: grass/trunk/gui/wxpython/iclass/frame.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/frame.py	2013-12-11 20:14:22 UTC (rev 58445)
+++ grass/trunk/gui/wxpython/iclass/frame.py	2013-12-11 20:21:50 UTC (rev 58446)
@@ -446,9 +446,7 @@
         # 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))):

Modified: grass/trunk/gui/wxpython/iclass/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/iclass/toolbars.py	2013-12-11 20:14:22 UTC (rev 58445)
+++ grass/trunk/gui/wxpython/iclass/toolbars.py	2013-12-11 20:21:50 UTC (rev 58446)
@@ -109,6 +109,8 @@
                                      ("zoomOut", icons["zoomOut"],
                                       self.parent.OnZoomOut,
                                       wx.ITEM_CHECK),
+                                     ("zoomRegion", icons["zoomRegion"],
+                                      self.parent.OnZoomToWind),
                                      ("zoomMenu", icons["zoomMenu"],
                                       self.parent.OnZoomMenu),
                                      (None, ),



More information about the grass-commit mailing list