[GRASS-SVN] r42634 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 22 13:07:57 EDT 2010


Author: martinl
Date: 2010-06-22 17:07:57 +0000 (Tue, 22 Jun 2010)
New Revision: 42634

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py
   grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/nviz: enable zoom to extent (reset view)
(merge r42633 from trunk)


Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py	2010-06-22 17:05:10 UTC (rev 42633)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/nviz_mapdisp.py	2010-06-22 17:07:57 UTC (rev 42634)
@@ -1104,3 +1104,8 @@
         """!Get display instance"""
         return self._display
         
+    def ZoomToMap(self):
+        """!Reset view
+        """
+        self.lmgr.nviz.OnResetView(None)
+

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2010-06-22 17:05:10 UTC (rev 42633)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/toolbars.py	2010-06-22 17:07:57 UTC (rev 42634)
@@ -307,7 +307,6 @@
                      self.zoomout,
                      self.zoomback,
                      self.zoommenu,
-                     self.zoomextent,
                      self.analyze,
                      self.dec,
                      self.printmap):



More information about the grass-commit mailing list