[GRASS-SVN] r38259 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sun Jul 5 13:23:24 EDT 2009
Author: martinl
Date: 2009-07-05 13:23:24 -0400 (Sun, 05 Jul 2009)
New Revision: 38259
Modified:
grass/trunk/gui/wxpython/gui_modules/mapdisp.py
Log:
wxGUI: mention EPSG code in mapdisplay statusbar
Modified: grass/trunk/gui/wxpython/gui_modules/mapdisp.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-07-05 16:39:03 UTC (rev 38258)
+++ grass/trunk/gui/wxpython/gui_modules/mapdisp.py 2009-07-05 17:23:24 UTC (rev 38259)
@@ -211,6 +211,8 @@
self.statusbarWin['projection'] = wx.CheckBox(parent=self.statusbar, id=wx.ID_ANY,
label=_("Use defined projection"))
self.statusbarWin['projection'].SetValue(False)
+ size = self.statusbarWin['projection'].GetSize()
+ self.statusbarWin['projection'].SetMinSize((size[0] + 150, size[1]))
self.statusbarWin['projection'].SetToolTip(wx.ToolTip (_("Reproject coordinates displayed "
"in the statusbar. Projection can be "
"defined in GUI preferences dialog "
@@ -1066,6 +1068,12 @@
elif self.statusbarWin['toggle'].GetSelection() == 8: # projection
self.statusbar.SetStatusText("")
+ epsg = UserSettings.Get(group='display', key='projection', subkey='epsg')
+ if epsg:
+ label = '%s (EPSG: %s)' % (_("Use defined projection"), epsg)
+ self.statusbarWin['projection'].SetLabel(label)
+ else:
+ self.statusbarWin['projection'].SetLabel(_("Use defined projection"))
self.statusbarWin['projection'].Show()
# disable long help
More information about the grass-commit
mailing list