[GRASS-dev] info buttons in gis.m (tcltk)

Hi all,

I always thought it would be nice to have a "info" button on gism, so
it wouldn't be necessary to go all the way down the menus to get to
r.info or v.info (it's a long way..), so I made this little hack in
the tcl code. If you want to try, just replace raster.tcl and
vector.tcl in $GRASS/etc/gm, and the gif icon goes to
$GRASS/etc/gui/icons.

hope you enjoy and don't mind about me messing around.

cheers

carlos

--
+-----------------------------------------------------------+
              Carlos Henrique Grohmann - Guano
  Visiting Researcher at Kingston University London - UK
  Geologist M.Sc - Doctorate Student at IGc-USP - Brazil
Linux User #89721 - carlos dot grohmann at gmail dot com
+-----------------------------------------------------------+
_________________
"Good morning, doctors. I have taken the liberty of removing Windows
95 from my hard drive."
--The winning entry in a "What were HAL's first words" contest judged
by 2001: A SPACE ODYSSEY creator Arthur C. Clarke

(attachments)

raster.tcl (13 KB)
vector.tcl (26.6 KB)
module-rv.info.gif

Carlos,

I think that this is very nice. I have only 2 suggestions:

1) make the icon 24x24 to match the size of all other icons (just add more
white border or make it 24x24 with a transparent background). This would
make its button match all the others.

2) name the icon gui-rv.info.gif, or make 2 icons--one for each command. The
convention is that icons named module-* actually run real GRASS modules. So,
you could have module-r.info.gif and module-v.info.gif (and make them
identical) or have a special GUI module named gui-rv.info.gif.

If others think also think this is handy, we should go ahead and put them in
the cvs.

Michael

On 7/2/07 2:01 PM, "Carlos "Guâno" Grohmann" <carlos.grohmann@gmail.com>
wrote:

Hi all,

I always thought it would be nice to have a "info" button on gism, so
it wouldn't be necessary to go all the way down the menus to get to
r.info or v.info (it's a long way..), so I made this little hack in
the tcl code. If you want to try, just replace raster.tcl and
vector.tcl in $GRASS/etc/gm, and the gif icon goes to
$GRASS/etc/gui/icons.

hope you enjoy and don't mind about me messing around.

cheers

carlos

__________________________________________
Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics and Complexity
Arizona State University

phone: 480-965-6213
fax: 480-965-7671
www: http://www.public.asu.edu/~cmbarton

If others think also think this is handy, we should go ahead and put them in
the cvs.

Michael

I think it would be useful functionality.

~ Eric.