[GRASS-SVN] r36140 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 28 07:43:14 EST 2009
Author: martinl
Date: 2009-02-28 07:43:13 -0500 (Sat, 28 Feb 2009)
New Revision: 36140
Modified:
grass/trunk/gui/wxpython/gui_modules/gselect.py
grass/trunk/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: Collapse all except current (trac #441)
Modified: grass/trunk/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/gselect.py 2009-02-28 12:38:49 UTC (rev 36139)
+++ grass/trunk/gui/wxpython/gui_modules/gselect.py 2009-02-28 12:43:13 UTC (rev 36140)
@@ -242,15 +242,18 @@
subkey='selection')
collapse = True
- if sel == 0: # collapse all expect PERMANENT and current
+ if sel == 0: # collapse all except PERMANENT and current
if dir in ('PERMANENT', curr_mapset):
collapse = False
- elif sel == 1: # collapse all expect PERMANENT
+ elif sel == 1: # collapse all except PERMANENT
if dir == 'PERMANENT':
collapse = False
- elif sel == 2: # collapse all
+ elif sel == 2: # collapse all except current
+ if dir == curr_mapset:
+ collapse = False
+ elif sel == 3: # collapse all
pass
- elif sel == 3: # expand all
+ elif sel == 4: # expand all
collapse = False
if collapse:
Modified: grass/trunk/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-02-28 12:38:49 UTC (rev 36139)
+++ grass/trunk/gui/wxpython/gui_modules/preferences.py 2009-02-28 12:43:13 UTC (rev 36140)
@@ -506,10 +506,12 @@
self.internalSettings[group][key] = {}
# self.internalSettings['general']["mapsetPath"]['value'] = self.GetMapsetPath()
- self.internalSettings['general']['elementListExpand']['choices'] = (_("Collapse all except PERMANENT and current"),
- _("Collapse all except PERMANENT"),
- _("Collapse all"),
- _("Expand all"))
+ self.internalSettings['general']['elementListExpand']['choices'] = \
+ (_("Collapse all except PERMANENT and current"),
+ _("Collapse all except PERMANENT"),
+ _("Collapse all except current"),
+ _("Collapse all"),
+ _("Expand all"))
self.internalSettings['atm']['leftDbClick']['choices'] = (_('Edit selected record'),
_('Display selected'))
self.internalSettings['advanced']['settingsFile']['choices'] = ('home',
More information about the grass-commit
mailing list