# This file is a definition for a tk menu list.
# It will be parsed and inserted in the "Xtns" menu by gis.m
# It is really a tcl list object.
# This shows you how to create a cascading menu structure for your extension
# under the "Xtns" menu.
# There are some variables in here that gis.m will interpret:
#
#	$tmenu sets tear-off menus (True/False)
#	$execom (?)
#
# Please take a look at $GISBASE/etc/gm/gmmenu.tcl for more possibilities
cascad "Top menu" {} "" $tmenu {			
	{cascad "First submenu" {} "" $tmenu { # this starts a new submenu			
		{command "First item in first submenu" {} "r.in.gdal" {} -command { execute r.in.gdal }} # this is a menu entry
		{separator} # a menu separator is just a horizontal line
		{command "Second item in first submenu" {} "r.out.gdal" {} -command { execute r.out.gdal }}
		{command "A command to start in a Terminal" {} "g.mlist" {} -command {$execom g.mlist }}}
	}
	{cascad "Second submenu" {} "" $tmenu {			
		{command "Binary file (includes GTOPO30 format)" {} "r.in.bin" {} -command { execute r.in.bin }}
		{command "ESRI Arc/Info ASCII grid" {} "r.in.arc" {} -command { execute r.in.arc }}
		{command "GRIDATB.FOR map file (TOPMODEL)" {} "r.in.gridatb" {} -command { execute r.in.gridatb }}
		{command "MAT-File (v.4) array (Matlab or Octave)" {} "r.in.mat" {} -command { execute r.in.mat }}
		{command "SRTM hgt files" {} "r.in.srtm" {} -command { execute r.in.srtm }}
		{command "Terra ASTER HDF files" {} "r.in.aster" {} -command { execute r.in.aster }}}
	}
}


