[GRASS-SVN] r48155 - grass/trunk/gui/wxpython/gui_modules
svn_grass at osgeo.org
svn_grass at osgeo.org
Tue Sep 6 01:00:59 EDT 2011
Author: cmbarton
Date: 2011-09-05 22:00:58 -0700 (Mon, 05 Sep 2011)
New Revision: 48155
Modified:
grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
Log:
Changed cutting plane choices from 0-5 to 1-6, and changed "Perspective" slider to "Distance %" slider to make functions easier to understand for users (also changed slider range to 1-100 to match distance % label, since anything over 100 is nearly imperceptible in the display anyway).
Modified: grass/trunk/gui/wxpython/gui_modules/nviz_tools.py
===================================================================
--- grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-09-05 22:31:19 UTC (rev 48154)
+++ grass/trunk/gui/wxpython/gui_modules/nviz_tools.py 2011-09-06 05:00:58 UTC (rev 48155)
@@ -321,10 +321,10 @@
# set initial defaults here (or perhaps in a default values file), not in user settings
#todo: consider setting an absolute max at 360 instead of undefined. (leave the default max value at pi)
self._createControl(panel, data = self.win['view'], name = 'persp',
- range = (1,180),
+ range = (1,100),
bind = (self.OnViewChange, self.OnViewChanged, self.OnViewChangedText))
- gridSizer.Add(item = wx.StaticText(panel, id = wx.ID_ANY, label = _("Perspective:")),
+ gridSizer.Add(item = wx.StaticText(panel, id = wx.ID_ANY, label = _("Distance %:")),
pos = (1, 0), flag = wx.ALIGN_CENTER)
gridSizer.Add(item = self.FindWindowById(self.win['view']['persp']['slider']), pos = (2, 0),
flag = wx.ALIGN_CENTER)
@@ -4154,7 +4154,7 @@
count = self._display.GetCPlanesCount()
choices = [_("None"),]
for plane in range(count):
- choices.append("%s %i" % (_("Plane"), plane))
+ choices.append("%s %i" % (_("Plane"), plane+1))
self.FindWindowById(self.win['cplane']['planes']).SetItems(choices)
current = 0
for i, cplane in enumerate(self.mapWindow.cplanes):
More information about the grass-commit
mailing list