[GRASS5] Messages and GUI

Glynn Clements glynn at gclements.plus.com
Mon Nov 15 12:32:07 EST 2004


Hamish wrote:

> > >>>>I have added G_messages and modified a bit G_percent, G_warning
> > >>>>and G_fatal_error. If GRASS_MESSAGE_FORMAT enviroment (not GRASS)
> > >variable>>>is set to 'gui', those functions print messages in format
> > >>>>suitable for parsing by GUI. gui.tcl was also modified and
> > >>>>displays progress bar if G_percent is used and adds icons to
> > >output box.>>>http://mpa.itc.it/radim/g51/messages1.png
> 
> Should d.m set GRASS_MESSAGE_FORMAT=gui?

Yes.

> and if so, should it pop up a window or draw on the main screen?

Percentages should control a status bar widget which is part of the
dialog window. Warnings should be displayed in the output window,
ideally highlighted. Errors should either be displayed similarly or in
a separate popup.

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




More information about the grass-dev mailing list