On Tue, Aug 25, 2015 at 3:31 AM, Vaclav Petras <[email protected]> wrote: > Was: [Qgis-developer] QGIS GRASS plugin - modules upgrade >> >> 2) define relations between options (e.g. type or column option >> >> relation with input vector) or special options which has dedicated >> >> widget in UI (e.g. GDAL/OGR input). >> > >> > This should be defined in GRASS GIS. If it is missing in GRASS or in the >> > --interface-description then it is a bug which should be solved. >> >> How can I recognize G_OPT_V_TYPE in --interface-description? It does >> not have gisprompt. > > > Right [1]. I think this is a bug. No gisprompt is there. I think wxGUI > doesn't need it because the values for the combo box are defined there > already.
How does the wxGUI know that the option should be placed in Selection tab? Radim > I suppose we can add something like 'type' or 'vtype' as one of the values > for gisprompt. No 'type' is currently used in the gisprompt, although it > might have been used in the past [2]. Probably the following could be the > gisprompt: > > 'old,vtype,vtype' > 'old,v3type,v3type' > > Unfortunately, I'm not sure about 'old' versus 'new' in this context (for > other things then maps) but hopefully somebody knows. I'm also not sure > about handing of unknown gisprompts in wxGUI but this can be easily tested. > > Vaclav > > [1] > https://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/parser_standard_options.c#L487 > [2] > https://trac.osgeo.org/grass/browser/grass/trunk/display/d.rast.arrow/main.c#L173 > _______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
