[GRASS-SVN] r42739 - grass/branches/develbranch_6/gui/wxpython/gui_modules

svn_grass at osgeo.org svn_grass at osgeo.org
Fri Jul 9 10:35:14 EDT 2010


Author: hamish
Date: 2010-07-09 14:35:14 +0000 (Fri, 09 Jul 2010)
New Revision: 42739

Modified:
   grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
enhance g.mapsets notes, how to grey out top item on list?

Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2010-07-09 13:27:07 UTC (rev 42738)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py	2010-07-09 14:35:14 UTC (rev 42739)
@@ -2199,7 +2199,12 @@
 
         label = wx.StaticText(parent=self, id=wx.ID_ANY,
                               label=_("Check a mapset to make it accessible, uncheck it to hide it.%s"
-                                      "Note: The current mapset is always accessible.") % os.linesep)
+                                      "  Notes:%s"
+                                      "    - The current mapset is always accessible.%s"
+                                      "    - You may only write to the current mapset.%s"
+                                      "    - You may only write to mapsets which you own.") %
+                                       (os.linesep, os.linesep, os.linesep, os.linesep))
+
         sizer.Add(item=label, proportion=0,
                   flag=wx.ALL, border=5)
 
@@ -2213,6 +2218,9 @@
         for mset in self.accessible_mapsets:
             self.mapsetlb.CheckItem(self.all_mapsets_ordered.index(mset), True)
 
+        # FIXME (howto?): grey-out current mapset
+        #self.mapsetlb.Enable(0, False)
+
         # dialog buttons
         line = wx.StaticLine(parent=self, id=wx.ID_ANY,
                              style=wx.LI_HORIZONTAL)
@@ -2293,4 +2301,3 @@
         mapset = self.parent.all_mapsets_ordered[index]
         if mapset == self.parent.curr_mapset:
             self.CheckItem(index, True)
-    



More information about the grass-commit mailing list