grass-svn2git / grass-issues-test

0 stars 0 forks source link

Show which operations comply to computational region #22

Open grass-svn2git opened 5 years ago

grass-svn2git commented 5 years ago

Reported by @wenzeslaus on 19 Aug 2017 14:20 UTC The general rule is that everything follows computational region, however in GUI it is actually not the case and it is not when novice user expects. My suggestion is to add a notice to all places in GUI saying how computational region applies.

For module dialogs, I think all dialogs can just have same general note. This may be confusing for vectors and general, so we may alter the message for those. In GUI, 3D uses resolution. Many things like r.report, r.univar, r.colors, histograms have unclear relation to region in GUI.

I have a simple patch for the module dialogs, but some discussion may be needed. Line like this may be in couple of other places so the compromise is between additional information for greater understanding and more clutter in GUI.

Index: gui_core/forms.py
## ===============================================================
--- gui_core/forms.py   (revision 71409)
+++ gui_core/forms.py   (working copy)
@@ -649,6 +649,15 @@
         accelTable = wx.AcceleratorTable(accelTableList)
         self.SetAcceleratorTable(accelTable)

+        # tell user about computational region
+        self.region_info = wx.StaticText(
+            parent=self.panel,
+            label=_('Most operations follow computational region with the exception of vector operations'),
+            style=wx.NO_BORDER)
+        guisizer.Add(self.region_info, proportion=0,
+                     flag=wx.EXPAND | wx.LEFT | wx.RIGHT | wx.BOTTOM,
+                     border=5)
+
         if self._giface and self._giface.GetLayerTree():
             addLayer = False
             for p in self.task.params:

GRASS GIS version and provenance

svn-trunk

Migrated-From: https://trac.osgeo.org/grass/ticket/3403

grass-svn2git commented 5 years ago

Attachment from @wenzeslaus on 19 Aug 2017 14:21 UTC Example note about computational region in module dialog https://trac.osgeo.org/grass/attachment/ticket/3403/note_region_r_slope_aspect.png

grass-svn2git commented 5 years ago

Comment by @neteler on 26 Jan 2018 11:40 UTC Ticket retargeted after milestone closed

grass-svn2git commented 5 years ago

Modified by @neteler on 12 Jun 2018 20:48 UTC

grass-svn2git commented 5 years ago

Modified by @wenzeslaus on 31 Aug 2018 03:02 UTC