Browse Source

wxGUI: mention EPSG code in mapdisplay statusbar

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@38259 15284696-431f-4ddb-bdfa-cd5b030d7da7
Martin Landa 16 years ago
parent
commit
2c3fb0644c
1 changed files with 8 additions and 0 deletions
  1. 8 0
      gui/wxpython/gui_modules/mapdisp.py

+ 8 - 0
gui/wxpython/gui_modules/mapdisp.py

@@ -211,6 +211,8 @@ class MapFrame(wx.Frame):
         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 @@ class MapFrame(wx.Frame):
         
         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