Menu DefaultMenu
{
"GRASS Shell"		_l	Meta<Key>l	f.pulldown ShellMenu
"Display"		_D	Meta<Key>D	f.pulldown DisplayMenu
"MapManagement"		_g	Meta<Key>g	f.pulldown MapManagementMenu
"Imagery"		_I	Meta<Key>I	f.pulldown ImageryMenu
"Import"		_m	Meta<Key>m	f.pulldown ImportMenu
"Paint/Print"		_P	Meta<Key>P	f.pulldown PaintPrintMenu
"Raster"		_R	Meta<Key>R	f.pulldown RasterMenu
"Vector"	 	_V	Meta<Key>V	f.pulldown VectorMenu
"Sites" 		_S	Meta<Key>S	f.pulldown SitesMenu		
"History"		_t	Meta<Key>T	f.pulldown HistoryMenu
"Help"			_H	Meta<Key>H	f.pulldown HelpMenu
"Quit"			_Q	Meta<Key>Q	f.pulldown QuitMenu
}

/***** ShellMenu *****/
Menu ShellMenu
{
"Shell"		f.exec "xterm -e $GISBASE/etc/XGIS.sh &"
}

/***** DisplayMenu *****/

Menu DisplayMenu
{
"Display Tool"					f.exec "xgdisplay &"
"Icon Builder"					f.exec "pixmap &"
"Manage"					f.pullright DisplayMenu1
"Display"					f.pullright DisplayMenu2
"Report"					f.pullright DisplayMenu3
}

Menu DisplayMenu1
{
"Control Display Monitor"			f.xclip "d.mon"
"Erase Display Frame"				f.xclip "d.erase"
"Manage Display Frames"				f.xclip "d.frame"
"Establish Color Table"				f.xclip "d.colormode"
}

Menu DisplayMenu2
{
"Raster"					f.pullright DisplayMenu21
"Vector"					f.pullright DisplayMenu22
"Sites"						f.pullright DisplayMenu23
"Text"						f.pullright DisplayMenu24
"Graphics"					f.pullright DisplayMenu25
}

Menu DisplayMenu21
{
"Display Raster Maps"				f.xclip "d.rast"
"Display HIS Values"				f.xclip "d.his"
"Display Red, Green, Blue Overlays"		f.xclip "d.rgb"
"Display 3-Dimensional Images"			f.xclip "d.3d"
/*
"d.profile"					f.label
"d.rast.zoom"					f.label
"d.rast.num"					f.label
"d.rast.arrow"					f.label
"d.rast.edit"					f.label
"d.colors"					f.label
"d.zoom"					f.label
*/
}

Menu DisplayMenu22
{
"Display Vector Maps"				f.xclip "d.vect"
"Display USGS DLG-3 Files"			f.xclip "d.vect.dlg"
}

Menu DisplayMenu23
{
"Display Sites Markers"				f.xclip "d.sites"
"Display Point Graphics"			f.xclip "d.points"
"Display Points as Icons"			f.xclip "d.icons"
}

Menu DisplayMenu24
{
"Display Map Title"				f.xclip "d.title"
"Display Legend"				f.xclip "d.legend"
"Display Text Labels"				f.xclip "d.label"	
"Display Text Labels for Paint Output"		f.xclip "d.paint.labels"
"Select Text Font"				f.xclip "d.font"
"Draw Text"					f.xclip "d.text"
/*
"d.labels"					f.label
"d.menu"					f.label
*/
}

Menu DisplayMenu25
{
"Display Color Table"				f.xclip "d.colortable"
"Display Geodesic Line"				f.xclip "d.geodesic"
"Display Rhumbline"				f.xclip "d.rhumbline"
"Display Histogram"				f.xclip "d.histogram"
"Overlay Bar Scale and North Arrow"		f.xclip "d.scale"
"Overlay Grid"					f.xclip "d.grid"
}

Menu DisplayMenu3
{
"Raster"					f.pullright DisplayMenu71
/*
"Vector"					f.pullright DisplayMenu72
"Location"					f.pullright DisplayMenu73
*/
}

Menu DisplayMenu71
{
"Display Histogram"				f.xclip "d.histogram"
"Display Legend"				f.xclip "d.legend"
/*
"d.measure"					f.label
"d.profile"					f.label
"d.what.rast"					f.label
*/
}

/*
Menu DisplayMenu72
{
"d.measure"					f.label
}

Menu DisplayMenu73
{
"d.where"					f.label
}
*/

/***** MapManagementMenu *****/

Menu MapManagementMenu
{
"Set Region from Default"			f.exec "g.region -d"
"Set Region from Raster Map"			f.exec "g.region rast=`xgbrowser -numLists 1 -raster -single`"
"Modify Current Region"				f.exec "xgregion -grid -current &"
"Modify Default Region"				f.exec "xgregion -grid -default &"
"Access"					f.pullright MapManagementMenu1
"List"						f.pullright MapManagementMenu2
"Copy"						f.pullright MapManagementMenu3
"Rename"					f.pullright MapManagementMenu4
"Remove"					f.pullright MapManagementMenu5
}

Menu MapManagementMenu1
{
"Change Database/Location/Mapset"		f.dbset
"Set Mapset Permissions"			f.exec "xgaccess &"
"Set Mapset Search Path"			f.exec "xgmapsets -title Path &"
}

Menu MapManagementMenu2
{
"List GRASS Files"				f.xclip "g.list"
}

Menu MapManagementMenu3
{
"Raster"					f.xclip "g.copyrast"
"Vector"					f.xclip "g.copyvect"
"Sites"						f.xclip "g.copysites"
"Icon"						f.xclip "g.copyicon"
"Labels"					f.xclip "g.copylabels"
"Region"					f.xclip "g.copyregion"
"Group"						f.xclip "g.copygroup"
}

Menu MapManagementMenu4
{
"Raster"					f.xclip "g.renamerast"
"Vector"					f.xclip "g.renamevect"
"Sites"						f.xclip "g.renamesites"
"Icon"						f.xclip "g.renameicon"
"Labels"					f.xclip "g.renamelabels"
"Region"					f.xclip "g.renameregion"
"Group"						f.xclip "g.renamegroup"
}

Menu MapManagementMenu5
{
"Raster"					f.xclip "g.removerast"
"Vector"					f.xclip "g.removevect"
"Sites"						f.xclip "g.removesites"
"Icon"						f.xclip "g.removeicon"
"Labels"					f.xclip "g.removelabels"
"Region"					f.xclip "g.removeregion"
"Group"						f.xclip "g.removegroup"
}

/***** ImageryMenu *****/

Menu ImageryMenu
{
"Extract"					f.pullright ImageryMenu1
"Manage"					f.pullright ImageryMenu2
"Classify"					f.pullright ImageryMenu3
"Rectify"					f.pullright ImageryMenu4
"Correct"					f.pullright ImageryMenu5
"Enhance"					f.pullright ImageryMenu6
}

Menu ImageryMenu1
{
"Extract Header Information from LANDSAT MSS"	f.xclip "i.tape.mss.h"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"i.tape.mss"					f.label
"i.tape.tm"					f.label
"i.tape.other"					f.label
}

Menu ImageryMenu2
{
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"i.build.blk"					f.label
"i.group"					f.label
"i.target"					f.label
"i.camera"					f.label
"i.mod.camera"					f.label
}

Menu ImageryMenu3
{
"Perform Canonical Components Analysis"		f.xclip "i.cca"
"Perform Principle Components Analysis"		f.xclip "i.pca"
"Perform Zero-Crossing Edge Detection"		f.xclip "i.zc"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"i.class"					f.label
"i.maxlik"					f.label
"i.cluster"					f.label
}

Menu ImageryMenu4
{
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"i.rectify"					f.label
"i.rectify.blk"					f.label
"i.points"					f.label
"i.build.blk"					f.label
}

Menu ImageryMenu5
{
"Perform Fast Fourier Transformation"		f.xclip "i.fft"
"Perform Inverse Fast Fourier Transformation"	f.xclip "i.ifft"
"Perform Zero-Crossing Edge Detection"		f.xclip "i.zc"
}

Menu ImageryMenu6
{
"Perform HIS to RGB Transformation"		f.xclip "i.his.rgb"
"Perform RGB to HIS Transformation"		f.xclip "i.rgb.his"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"i.colors"					f.label
"i.composite"					f.label
"i.grey.scale"					f.label
"i.median"					f.label
}

/***** ImportMenu *****/

Menu ImportMenu
{
"Examine"					f.pullright ImportMenu1
"Extract"					f.pullright ImportMenu2
"Convert"					f.pullright ImportMenu3
}

Menu ImportMenu1
{
"Get DEM Data File Descriptions"		f.xclip "m.dem.examine"
"Get DTED Data File Descriptions"		f.xclip "m.dted.examine"
"Find Geographic Region Information"		f.xclip "m.tiger.region"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"m.examine.tape"				f.label
}

Menu ImportMenu2
{
"Extract DEM Data from Tape"			f.xclip "m.dem.extract"
"Extract DMA DTED Data from Tape"		f.xclip "m.dted.extract"
"Extract USGS DTED Data from Tape"		f.xclip "m.dmaUSGSread"
"Extract Landuse/Landcover Data from Tape"	f.xclip "m.lulc.read"
}

Menu ImportMenu3
{
"Convert Geocentric Coordinates to Geographic"	f.xclip "m.gc2ll"
"Convert Geographic Coordinates to Geocentric"	f.xclip "m.ll2gc"
"Convert Geographic Coordinates to UTM"		f.xclip "m.ll2u"
"Convert UTM Coordinates to Geographic"		f.xclip "m.u2ll"
"Convert Region UTM Coordinates to Geographic"	f.xclip "m.region.ll"
"Shift Datum"					f.xclip "m.datum.shift"
"Create Raster Map from CTG File"		f.xclip "m.lulc.USGS"
"Rotate Elevation Data"				f.xclip "m.rot90"
"Flip Elevation Data"				f.xclip "m.flip"
}

/***** PaintPrintMenu *****/

Menu PaintPrintMenu
{
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"p.chart"					f.label
"p.colors"					f.label
"p.icons"					f.label
"p.labels"					f.label
"p.map"						f.label
"p.select"					f.label
}

/***** RasterMenu *****/

Menu RasterMenu
{
"Analyze"					f.pullright RasterMenu1
""						f.separator
"Import"					f.pullright RasterMenu2
"Export"					f.pullright RasterMenu3
"Convert"					f.pullright RasterMenu4
""						f.separator
"Develop"					f.pullright RasterMenu5
""						f.separator
"Report"					f.pullright RasterMenu6
""						f.separator
"Support"					f.exec "xgsupport &"
}

Menu RasterMenu1
{
"Single Cell"					f.pullright RasterMenu11
"Overlay"					f.pullright RasterMenu12
"Neighborhood"					f.pullright RasterMenu13
"Region"					f.pullright RasterMenu14
"Proximity/Reclass"				f.pullright RasterMenu15
"Terrain"					f.pullright RasterMenu16
}

Menu RasterMenu11
{
"Calculate Data Clumps Volume"			f.xclip "r.volume"
"Report Basic Raster Information"		f.xclip "r.info"
"Report Raster Statistics"			f.xclip "r.report"
"Print Category Values List"			f.xclip "r.describe"
"Generate Area Statistics"			f.xclip "r.stats"
"Query Category Values/Labels"			f.xclip "r.what"
"Tablulate Mutual Category Occurences"		f.xclip "r.coin"
}

Menu RasterMenu12
{
"Create Category Values Cross Product"		f.xclip "r.cross"
"Create Composite from Category Values"		f.xclip "r.patch"
"Use Inference Engine"				f.xclip "r.infer"
"Develop Bayesian Expert System"		f.xclip "r.binfer"
"Use Map Calculator"				f.exec "xgmapcalc &"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"r.weight.new"					f.label
"r.combine"					f.label
}

Menu RasterMenu13
{
"Perform Neighborhood Analysis"			f.xclip "r.neighbors"
"Show Cost Between Locations"			f.xclip "r.cost"
"Trace Flow Through Elevation Model"		f.xclip "r.drain"
"Generate Slope and Aspect Maps"		f.xclip "r.slope.aspect"
"Clump Data"					f.xclip "r.clump"
"Thin Non-Zero Cells Denoting Linear Features"	f.xclip "r.thin"
"Grow Contiguous Areas by One Cell"		f.xclip "r.grow"
"Output Values Lying on Transect Lines"		f.xclip "r.transect"
"Calculate Distance Buffers"			f.exec "xgbuffer &"
"Use Map Calculator"				f.exec "xgmapcalc &"
}

Menu RasterMenu14
{
"Find Average Values in Values Map"		f.xclip "r.average"
"Clump Data"					f.xclip "r.clump"
"Calculate Data Clumps Volume"			f.xclip "r.volume"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"r.mask"					f.label
}

Menu RasterMenu15
{
"Calculate Distance Buffers"			f.exec "xgbuffer &"
"Reclass Data in Raster Map"			f.exec "xgreclass &"
}

Menu RasterMenu16
{
"Generate Watershed Subbasin Map"		f.xclip "r.basins.fill"
"Show Cost Between Locations"			f.xclip "r.cost"
"Trace Flow Through Elevation Model"		f.xclip "r.drain"
"Create Elevation Map from Contour Map"		f.xclip "r.surf.contour"
"Perform IDW"					f.xclip "r.surf.idw"
"Perform Exhaustive IDW"			f.xclip "r.surf.idw2"
"Generate Watershed Maps"			f.xclip "r.watershed"
"Generate Slope and Aspect Maps"		f.xclip "r.slope.aspect"
"Clump Data"					f.xclip "r.clump"
"Perform Line-of-Sight Analysis"		f.xclip "r.los"
"Model Ballistic Trajectory"			f.xclip "r.traj"
"Review Ammunition and Weapon Data Base"	f.xclip "r.traj.data"
"Calculate Data Clumps Volume"			f.xclip "r.volume"
"Use Map Calculator"				f.exec "xgmapcalc &"
}

Menu RasterMenu2
{
"Convert ASCII Raster Text to Binary Map"	f.xclip "r.in.ascii"
"Convert Raster Data to UTM-referenced Map"	f.xclip "r.in.ll"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"r.in.sunrast"					f.label
}

Menu RasterMenu3
{
"Convert Raster Map to ASCII Text File"		f.xclip "r.out.ascii"
}

Menu RasterMenu4
{
"Create Binary Vector File from Thinned Raster"	f.xclip "r.line"
"Extract Raster Edges and Convert to Vector"	f.xclip "r.poly"
"Thin Non-Zero Cells Denoting Linear Features"	f.xclip "r.thin"
}

Menu RasterMenu5
{
"Create Randomly Located Sites"			f.xclip "r.random"
"Create Composite from Category Values"		f.xclip "r.patch"
"Create/Modify Raster Map's Color Table"	f.xclip "r.colors"
"Compress/Decompress Raster Files"		f.xclip "r.compress"
"Resample GRASS Raster Map Data"		f.xclip "r.resample"
"Rescale Range of Category Values"		f.xclip "r.rescale"
"Use Raster File Matrix Filter"			f.xclip "r.mfilter"
}

Menu RasterMenu6
{
"Find Average Values in Values Map"		f.xclip "r.average"
"Calculate Data Clumps Volume"			f.xclip "r.volume"
"Print Category Values and Labels"		f.xclip "r.cats"
"Tablulate Mutual Category Occurences"		f.xclip "r.coin"
"Output Covariance/Correlation Matrix"		f.xclip "r.covar"
"Report Basic Raster Information"		f.xclip "r.info"
"Print Category Values List"			f.xclip "r.describe"
"Output Values Lying on User-Defined Lines"	f.xclip "r.profile"
"Report Raster Statistics"			f.xclip "r.report"
"Generate Area Statistics"			f.xclip "r.stats"
"Query Category Values/Labels"			f.xclip "r.what"
}

/***** VectorMenu *****/

Menu VectorMenu
{
"Analyze"					f.pullright VectorMenu1
""						f.separator
"Import"					f.pullright VectorMenu2
"Export"					f.pullright VectorMenu3
"Convert"					f.pullright VectorMenu4
""						f.separator
"Develop"					f.pullright VectorMenu5
""						f.separator
"Report"					f.pullright VectorMenu6
}

Menu VectorMenu1
{
"Display Area/Perimeter Information"		f.xclip "v.area"
}

Menu VectorMenu2
{
"Convert ARC/INFO Data to GRASS Vector"		f.xclip "v.in.arc"
"Convert Vector from ASCII/DLG-3 to Binary"	f.xclip "v.in.dlg"
"Convert Files from DXF to GRASS Vector"	f.xclip "v.in.dxf"
"Import TIGER Files to GRASS Vector"		f.xclip "v.in.tiger"
"Convert Vector Map from ASCII to Binary"	f.xclip "v.in.ascii"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"v.import"					f.label
}

Menu VectorMenu3
{
"Convert GRASS Vector Files to ARC/INFO"	f.xclip "v.out.arc"
"Convert Vector Map from Binary to DLG-3"	f.xclip "v.out.dlg"
"Convert GRASS Vector Files to DXF"		f.xclip "v.out.dxf"
"Convert Vector Map from Binary to ASCII"	f.xclip "v.out.ascii"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"v.out.moss"					f.label
}

Menu VectorMenu4
{
"Convert Vector Map to Raster"			f.xclip "v.to.rast"
"Convert Vector Pointer Data to Sites List"	f.xclip "v.to.sites"
"Clean Dead Lines"				f.xclip "v.clean"
"Transform ASCII Vector Map Coordinate System"	f.xclip "v.transform"
"Trim Small Lines and Extra Points"		f.xclip "v.trim"
}

Menu VectorMenu5
{
"Create Map of User-Defined Grid"		f.xclip "v.mkgrid"
"Create GRASS File for USGS Quadrangle"		f.xclip "v.mkquads"
"Patch Multiple Vector Files"			f.xclip "v.patch"
"Prune Points"					f.xclip "v.prune"
"Process Spaghetti-Digitized Vector Files"	f.xclip "v.spag"
"Attach Labels to Contour Lines"		f.xclip "v.cadlabel"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"v.mkcontour"					f.label
"v.support"					f.label
"v.digit"					f.label
}

Menu VectorMenu6
{
"Print Information About Vector Map"		f.xclip "v.stats"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"v.db.rim"					f.label
}

/***** SitesMenu *****/

Menu SitesMenu
{
"Analyze"					f.pullright SitesMenu1
""						f.separator
"Import"					f.pullright SitesMenu2
"Export"					f.pullright SitesMenu3
"Convert"					f.pullright SitesMenu4
""						f.separator
"Develop"					f.pullright SitesMenu5
""						f.separator
"Report"					f.pullright SitesMenu6
}

Menu SitesMenu1
{
"Perform Surface Generation"			f.xclip "s.surf.idw"
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"s.menu"					f.label
"s.db.rim"					f.label
}

Menu SitesMenu2
{
"Convert ASCII File to Sites List"		f.xclip "s.in.ascii"
}

Menu SitesMenu3
{
"Convert Sites List to ASCII File"		f.xclip "s.out.ascii"
}

Menu SitesMenu4
{
"N/A"						f.label
}

Menu SitesMenu5
{
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"s.menu"					f.label
}

Menu SitesMenu6
{
""	f.separator
"Use GRASS Shell for These Routines"	f.label
""       f.separator
"s.menu"					f.label
"s.db.rim"					f.label
}

/***** History *****/

Menu HistoryMenu
{
"View/Edit Current History"			f.history_edit
"Replay Current History"			f.history_replay
"Clear Current History"				f.history_clear
}

/***** HelpMenu *****/

Menu HelpMenu
{
"How to Use Help"				f.exec "xghelp -label \"How to Use Help\" 01.instruc/01.01.help &"
"Open GRASS Topics"				f.exec "xghelp -label \"GRASS Topics\" &"
"Open GRASS Glossary"				f.exec "xgglossary &"
"Open GRASS Manual"				f.exec "xghelp -label \"GRASS Manual\" 17.manual/17.menu &"
}

/***** QuitMenu *****/

Menu QuitMenu
{
"Quit GRASS"					f.quit
}
