[GRASS-SVN] r48428 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Fri Sep 23 13:43:02 EDT 2011
Author: martinl
Date: 2011-09-23 10:43:02 -0700 (Fri, 23 Sep 2011)
New Revision: 48428
Modified:
grass/trunk/gui/wxpython/gui_modules/dbm.py
Log:
wxGUI/dbm: show note about readonly mode on all pages
Modified: grass/trunk/gui/wxpython/gui_modules/dbm.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/dbm.py 2011-09-23 17:39:38 UTC (rev 48427)
+++ grass/trunk/gui/wxpython/gui_modules/dbm.py 2011-09-23 17:43:02 UTC (rev 48428)
@@ -822,9 +822,11 @@
panel = wx.Panel(parent=self.manageTablePage, id=wx.ID_ANY)
self.layerPage[layer]['tablePage'] = panel.GetId()
+ label = _("Table")
+ if not self.editable:
+ label += _(" (readonly)")
self.manageTablePage.AddPage(page=panel,
- text=" %d / %s %s" % (layer,
- _("Table"),
+ text=" %d / %s %s" % (layer, label,
self.mapDBInfo.layers[layer]['table']))
pageSizer = wx.BoxSizer(wx.VERTICAL)
@@ -998,8 +1000,11 @@
splitterWin = wx.SplitterWindow(parent=self.manageLayerPage, id=wx.ID_ANY)
splitterWin.SetMinimumPaneSize(100)
+ label = _("Layers of vector map")
+ if not self.editable:
+ label += _(" (readonly)")
self.manageLayerPage.AddPage(page=splitterWin,
- text=_("Layers of vector map")) # dummy page
+ text=label) # dummy page
#
# list of layers
More information about the grass-commit
mailing list