[GRASS-SVN] r30659 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Thu Mar 20 12:22:21 EDT 2008
Author: martinl
Date: 2008-03-20 12:22:21 -0400 (Thu, 20 Mar 2008)
New Revision: 30659
Modified:
grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
Log:
wxGUI: 'Zoom to selected map' added to contextual menu
Modified: grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-03-20 16:21:36 UTC (rev 30658)
+++ grass/trunk/gui/wxpython/gui_modules/wxgui_utils.py 2008-03-20 16:22:21 UTC (rev 30659)
@@ -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