[GRASS-SVN] r36141 -
grass/branches/develbranch_6/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Feb 28 07:58:42 EST 2009
Author: martinl
Date: 2009-02-28 07:58:41 -0500 (Sat, 28 Feb 2009)
New Revision: 36141
Modified:
grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
Log:
wxGUI: Collapse all except current (trac #441)
(merge from trunk, r36140)
Modified: grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-02-28 12:43:13 UTC (rev 36140)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/gselect.py 2009-02-28 12:58:41 UTC (rev 36141)
@@ -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/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py
===================================================================
--- grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-02-28 12:43:13 UTC (rev 36140)
+++ grass/branches/develbranch_6/gui/wxpython/gui_modules/preferences.py 2009-02-28 12:58:41 UTC (rev 36141)
@@ -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