[GRASS-SVN] r42633 - grass/trunk/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Tue Jun 22 13:05:10 EDT 2010


Author: martinl
Date: 2010-06-22 17:05:10 +0000 (Tue, 22 Jun 2010)
New Revision: 42633

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


Modified: grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2010-06-22 16:53:58 UTC (rev 42632)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_mapdisp.py	2010-06-22 17:05:10 UTC (rev 42633)
@@ -1103,3 +1103,8 @@
         """!Get display instance"""
         return self._display
         
+    def ZoomToMap(self):
+        """!Reset view
+        """
+        self.lmgr.nviz.OnResetView(None)
+

Modified: grass/trunk/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/toolbars.py	2010-06-22 16:53:58 UTC (rev 42632)
+++ grass/trunk/gui/wxpython/gui_modules/toolbars.py	2010-06-22 17:05:10 UTC (rev 42633)
@@ -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