[GRASS-SVN] r30660 - grass/branches/releasebranch_6_3/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Thu Mar 20 12:27:59 EDT 2008


Author: martinl
Date: 2008-03-20 12:27:59 -0400 (Thu, 20 Mar 2008)
New Revision: 30660

Modified:
   grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: 'Zoom to selected map' added to contextual menu (backported from trunk)


Modified: grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/wxgui_utils.py	2008-03-20 16:22:21 UTC (rev 30659)
+++ grass/branches/releasebranch_6_3/gui/wxpython/gui_modules/wxgui_utils.py	2008-03-20 16:27:59 UTC (rev 30660)
@@ -214,7 +214,8 @@
             self.popupID6 = wx.NewId()
             self.popupID7 = wx.NewId()
             self.popupID8 = wx.NewId()
-            
+            self.popupID9 = wx.NewId()
+                        
         self.popupMenu = wx.Menu()
         # general item
         self.popupMenu.Append(self.popupID1, text=_("Remove"))
@@ -237,6 +238,8 @@
             self.Bind(wx.EVT_MENU, self.OnPopupOpacityLevel, id=self.popupID8)
             self.popupMenu.Append(self.popupID3, text=_("Properties"))
             self.Bind(wx.EVT_MENU, self.OnPopupProperties, id=self.popupID3)
+            self.popupMenu.Append(self.popupID9, text=_("Zoom to selected map"))
+            self.Bind(wx.EVT_MENU, self.mapdisplay.MapWindow.ZoomToMap, id=self.popupID9)
 
         # specific items
         try:



More information about the grass-commit mailing list