[GRASS-SVN] r41191 - grass/branches/releasebranch_6_4/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Sat Feb 27 06:03:31 EST 2010


Author: martinl
Date: 2010-02-27 06:03:30 -0500 (Sat, 27 Feb 2010)
New Revision: 41191

Modified:
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
   grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
Log:
wxGUI/georectify: fix zoom to map
message cosmetics


Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2010-02-26 21:31:11 UTC (rev 41190)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/georect.py	2010-02-27 11:03:30 UTC (rev 41191)
@@ -1,4 +1,4 @@
-"""
+"""!
 @package georect.py
 
 @brief Georectification module for GRASS GIS. Includes ground control
@@ -15,7 +15,7 @@
  - EditGCP
  - GrSettingsDialog
 
-(C) 2006-2008 by the GRASS Development Team
+(C) 2006-2010 by the GRASS Development Team
 
 This program is free software under the GNU General Public License
 (>=v2). Read the file COPYING that comes with GRASS for details.
@@ -193,6 +193,9 @@
                                                size=globalvar.MAP_WINDOW_SIZE,
                                                toolbars=["georect"],
                                                Map=self.Map, gismgr=self.parent)
+            self.xy_mapdisp.SetTitle(_("GRASS GIS Map Display: 1" +
+                                       " - Location: " + self.newlocation +
+                                       " (source location)"))
 
             self.gcpmgr.SetMapDisplay(self.xy_mapdisp)
             
@@ -674,7 +677,7 @@
     """
 
     def __init__(self, parent, grwiz, mapdisp=None, id=wx.ID_ANY,
-                 title=_("Create & manage ground control points"),
+                 title=_("Define/manage ground control points"),
                  size=wx.DefaultSize):
 
         wx.Frame.__init__(self, parent, id, title, size=(625, 300))

Modified: grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py
===================================================================
--- grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2010-02-26 21:31:11 UTC (rev 41190)
+++ grass/branches/releasebranch_6_4/gui/wxpython/gui_modules/toolbars.py	2010-02-27 11:03:30 UTC (rev 41191)
@@ -1,4 +1,4 @@
-"""
+"""!
 @package toolbar
 
 @brief Toolbars for Map Display window
@@ -12,7 +12,7 @@
  - ProfileToolbar
  - NvizToolbar
 
-(C) 2007-2008 by the GRASS Development Team This program is free
+(C) 2007-2010 by the GRASS Development Team This program is free
 software under the GNU General Public License (>=v2). Read the file
 COPYING that comes with GRASS for details.
 
@@ -351,15 +351,14 @@
             (self.zoomtomap, "zoomtomap", Icons["zoommenu"].GetBitmap(),
              wx.ITEM_NORMAL, _("Zoom to map"), _("Zoom to displayed map"),
              self.OnZoomMap),
-            ("", "", "", "", "", "", ""),
             )
 
     def OnZoomMap(self, event):
         """Zoom to selected map"""
-        layer = self.mapcontent.GetListOfLayers()[0]
-
+        layer = self.mapcontent.GetListOfLayers()
+        
         self.mapdisplay.MapWindow.ZoomToMap(layer=layer)
-
+        
         event.Skip()
         
 class GCPToolbar(AbstractToolbar):



More information about the grass-commit mailing list