[GRASS-dev] Re: grass-user Digest, Vol 21, Issue 41

Michael Barton michael.barton at asu.edu
Wed Jan 16 12:35:37 EST 2008


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, grass-user-request at lists.osgeo.org wrote:

> Date: Wed, 16 Jan 2008 11:14:37 +0100
> From: " Micha?l Rabotin " <michaelrabotin at gmail.com>
> Subject: [GRASS-user] using Grass Extension Manager
> To: grass-user at lists.osgeo.org
> Message-ID:
> 	<5cbd12c70801160214y36c9cf4dm8c5ae2a3bb74ea9f at mail.gmail.com>
> 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
>



More information about the grass-dev mailing list