[GRASS-dev] opt->guisection and opt->label for a better GUI world

Hamish hamish_nospam at yahoo.com
Fri Nov 17 23:33:19 EST 2006


> Hamish wrote:
> > I have updated a few complicated modules to use opt->guisection for
> > nicer GUI menus using tabs.
..
> > order of tabs:
> >  the tab containing the first flag determines which tab comes first.
> >  the default tab "Options" should always be first.
Glynn:
> I'm not so sure.
> 
> The fact that Options is used for anything which isn't explicitly
> placed into a specific section means that it often ends up as a
> "Miscellaneous" section, which should probably come last.
> 
> AFAIK, if you want Options to come first, you can re-order the options
> or flags accordingly. If you force it to come first, there wouldn't be
> any way to change that.

I don't really care what the tab is called, but the default should hold
the really important options (input= ouput=, etc) and that's what should
be first. Most modules only have one tab, so it makes sense that by
default that's the important one. It doesn't have to be, there could be
a reserved opt-in "primary options" tab name which always comes first,
but it seems like extra work vs the current opt-out way.

e.g. v.label - the main control tab (with no flags) comes after all the
tabs with flags in them, it would be better to present the "basic" tab
first and leave the "advanced" tabs in the background until specifically
requested.


Hamish




More information about the grass-dev mailing list