<HTML>
<HEAD>
<TITLE>changing data for parser</TITLE>
</HEAD>
<BODY>
<FONT FACE="Verdana, Helvetica, Arial"><SPAN STYLE='font-size:12.0px'>menuform.py uses the xml text generated by “<command> —interface-description” to create the autogenerated dialogs. This dates to 2001. <BR>
<BR>
I was just reminded in a recent post to the grass developer list that there is a richer interface description output called by “<command> --tcltk”. This has been developed over the past year or so. I give an example below (part of the output from “d.vect —tcltk”). We might want to consider switching the autogenerated panels to be created by the —tcltk code.<BR>
<BR>
Besides being a richer set of descriptions (includes prompt for notebook tabs and color picking dialogs), it looks easier to parse than the —interface description xml. It would also mean that we would not need sax. <BR>
<BR>
Michael<BR>
<BR>
======= --tcltk style interface description ==========<BR>
<BR>
GRASS 6.3.cvs (spearfish60_test):~ > d.vect --tcltk<BR>
begin_dialog {d.vect} {<BR>
label {}<BR>
desc {Displays GRASS vector data in the active frame on the graphics monitor.}<BR>
key {display}<BR>
}<BR>
add_flag 1 {<BR>
name {v}<BR>
desc {Run verbosely}<BR>
answer 0<BR>
label {}<BR>
guisection {}<BR>
}<BR>
add_flag 2 {<BR>
name {a}<BR>
desc {Get colors from map table column (of form RRR:GGG:BBB)}<BR>
answer 0<BR>
label {}<BR>
guisection {Colors}<BR>
}<BR>
add_flag 3 {<BR>
name {c}<BR>
desc {Random colors according to category number (or layer number if 'layer=-1' is given)}<BR>
answer 0<BR>
label {}<BR>
guisection {Colors}<BR>
}<BR>
add_flag 4 {<BR>
name {i}<BR>
desc {Use values from 'cats' option as line ID}<BR>
answer 0<BR>
label {}<BR>
guisection {Query}<BR>
}<BR>
add_flag 5 {<BR>
name {x}<BR>
desc {Don't add to list of vectors and commands in monitor (it won't be drawn if the monitor is refreshed)}<BR>
answer 0<BR>
label {}<BR>
guisection {}<BR>
}<BR>
add_option 6 {<BR>
name {map}<BR>
type {name}<BR>
multi 0<BR>
desc {Name of input vector map}<BR>
required 1<BR>
options {}<BR>
answer {}<BR>
prompt {old,vector,vector}<BR>
label {}<BR>
guisection {}<BR>
}<BR>
add_option 7 {<BR>
name {type}<BR>
type {string}<BR>
multi 1<BR>
desc {Feature type(s)}<BR>
required 0<BR>
options {point,line,boundary,centroid,area,face}<BR>
answer {point,line,boundary,centroid,area,face}<BR>
prompt {}<BR>
label {Type}<BR>
guisection {}<BR>
}<BR>
<BR>
__________________________________________<BR>
Michael Barton, Professor of Anthropology<BR>
School of Human Evolution & Social Change <BR>
Center for Social Dynamics & Complexity<BR>
Arizona State University<BR>
<BR>
phone: 480-965-6213<BR>
fax: 480-965-7671<BR>
www: <a href="http://www.public.asu.edu/~cmbarton">http://www.public.asu.edu/~cmbarton</a> <BR>
<BR>
</SPAN></FONT>
</BODY>
</HTML>