Quellcode durchsuchen

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).

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@48155 15284696-431f-4ddb-bdfa-cd5b030d7da7
Michael Barton vor 13 Jahren
Ursprung
Commit
88ed529825
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      gui/wxpython/gui_modules/nviz_tools.py

+ 3 - 3
gui/wxpython/gui_modules/nviz_tools.py

@@ -321,10 +321,10 @@ class NvizToolWindow(FN.FlatNotebook):
         # 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 @@ class NvizToolWindow(FN.FlatNotebook):
             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):