[GRASS-dev] new gisprompts

Glynn Clements glynn at gclements.plus.com
Tue Sep 9 20:14:19 EDT 2008


Martin Landa wrote:

> for wxGUI I would like to add gisprompt for 'layer' parameter (sure in
> menuform can be check parameter key, but it's not save, see the
> problem with color "none" and translations).
> 
> for layer (read-only)
> 
> layer,layer,existing
> 
> for layer (to be created new vector layer)
> 
> layer,layer,new
> 
> for column (to be created):
> 
> dbcolumn,dbcolumn,new
> 
> for column (existing -- read-only mode for combobox)
> 
> dbcolumn,dbcolumn,existing
> 
> for color (transparent allowed)
> 
> color,color,none
> 
> for color (transparent not allowed)
> 
> color,color,?

You will need to change gis_prompt() in lib/gis/parser.c to accept the
new values for the first field ("age"). I suggest making it silently
return -1 for all unknown values, rather than reporting an error.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list