[GRASS-dev] [GRASS GIS] #2203: wxGUI module dialogs should provide "reset to default value" for each of parameters

GRASS GIS trac at osgeo.org
Sat Mar 1 04:21:23 PST 2014


#2203: wxGUI module dialogs should provide "reset to default value" for each of
parameters
-------------------------+--------------------------------------------------
 Reporter:  marisn       |       Owner:  grass-dev@…              
     Type:  defect       |      Status:  new                      
 Priority:  normal       |   Milestone:  7.0.0                    
Component:  wxGUI        |     Version:  unspecified              
 Keywords:               |    Platform:  Unspecified              
      Cpu:  Unspecified  |  
-------------------------+--------------------------------------------------
 Some of autogenerated module dialog input options contain their default
 value. Current implementation has two downsides:
  * there is no way how to get back "default" value if it has been changed
 (a wish for a new feature)
  * once value has been changed, it gets added to the command parameters
 list (nice). The problem - if it's a number field (represented by a spiner
 control), there is no way how to remove it from the module parameter list
 (a bug)

 Potential solution:
 Autogenerate a button for each of input fields "reset to default". If
 default value is not specified, it should just clear the input field. If
 the default value is provided, it should just reset to default value. In
 both of cases it should remove parameter from module parameter list.

 Steps to reproduce:
 run g.region, change cols or rows parameter, change your mind and try to
 NOT provide cols or rows parameter. In current wxGUI form it is NOT
 possible to NOT use cols or rows parameter as soon as you have touched
 those input controls.

-- 
Ticket URL: <http://trac.osgeo.org/grass/ticket/2203>
GRASS GIS <http://grass.osgeo.org>



More information about the grass-dev mailing list