Parcourir la source

enhance g.mapsets notes, how to grey out top item on list? (merge from devbr6)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@42741 15284696-431f-4ddb-bdfa-cd5b030d7da7
Hamish Bowman il y a 15 ans
Parent
commit
4aa4d7a4c8
1 fichiers modifiés avec 9 ajouts et 2 suppressions
  1. 9 2
      gui/wxpython/gui_modules/preferences.py

+ 9 - 2
gui/wxpython/gui_modules/preferences.py

@@ -2149,7 +2149,12 @@ class MapsetAccess(wx.Dialog):
 
         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)
 
@@ -2163,6 +2168,9 @@ class MapsetAccess(wx.Dialog):
         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)
@@ -2243,4 +2251,3 @@ class CheckListMapset(wx.ListCtrl, listmix.ListCtrlAutoWidthMixin, listmix.Check
         mapset = self.parent.all_mapsets_ordered[index]
         if mapset == self.parent.curr_mapset:
             self.CheckItem(index, True)
-