In order to get an extension into the menu, you need to have an ASCII
text file named xtnmenu.dat in $GISBASE/etc or somewhere else in the
path specified by $GRASS_ADDON_ETC.
The specs for this file are as follows:
Lines that begin with a "#" are comments and not read
Menu description lines are
[menu level]:[menu item]:[command to call module]:[help string]
[menu level] is not implemented yet, but would allow for hierarchical
menus. Just set it to 0
[menu item] is what actually shows up in the menu, UNLESS [menu item]
== "separator". If it is called separator, it will create a menu
separator as a horizontal rule.
[command to call module] should be in the proper format to initiate
your module from TclTk. You can use run procedures available gis.m
(see runandoutput.tcl)
[help string] is a text string for mouse-over help.
Hope this helps.
Michael
____________________
C. Michael Barton, Professor of Anthropology
Director of Graduate Studies
School of Human Evolution & Social Change
Center for Social Dynamics & Complexity
Arizona State University
Phone: 480-965-6262
Fax: 480-965-7671
www: <www.public.asu.edu/~cmbarton>
On Jan 16, 2008, at 6:09 AM, [EMAIL PROTECTED] wrote:
Date: Wed, 16 Jan 2008 11:14:37 +0100
From: " Micha?l Rabotin " <[EMAIL PROTECTED]>
Subject: [GRASS-user] using Grass Extension Manager
To: [email protected]
Message-ID:
<[EMAIL PROTECTED]>
Content-Type: text/plain; charset="iso-8859-1"
Hello Everybody
Thanks to Benjamin Ducke for the response
Now since I've installed GEM, I want to use it for all the scripts I
developped.
I've got 40 perl and shell scripts which are used for landscape
segmentation; Some procedures are independants but the the majority
are used
on the control of a principal script. At this time, there is no
graphical
interface only a terminal interface.
I want to use GEM to implement my scripts in the gis.m interface,
is it the
right way to do it ?
I read the GEM documentation but it's a little harder for me to
understand
the whole procedure. Is some already use GEM to do the same thing
and can
explain to me some 'tricks' to begin ?
Thanks a lot
Mick
--
M.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/grass-user/attachments/
20080116/1209d885/attachment-0001.html
_______________________________________________
grass-user mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-user