[comp.windows.x] command line interface -> graphical interface

borkan@compass.com (Martha Borkan) (05/24/91)

I have a collection of programs/tools that have command line
interfaces with lots of options. I want to turn these into X-based
(probably Motif) graphical interfaces. 
Are there any tools or guidelines to help me do this easily? 
I have the source to the executables, so they could be recompiled,
alternatively, perhaps I should keep the executable intact, and have
a separate process for the interface that builds up the command line,
and then exec's the existing executable. 
The callbacks for each button click could modify fragments of the
command line string which would be concatenated together to invoke the tool.
I'd like to keep the command-line interface as an option.

For example the link command has the following options:

       ld [ -align datum ] [ -assert assertion-keyword ]
          [ -A name ] [ -Bbinding-keyword ] [ -d ] [ -dc ]
          [ -dp ] [ -D hex ] [ -e entry ] [ -lx ] [ -Ldir ]
          [ -M ] [ -n ] [ -N ] [ -o name ] [ -p ] [ -r ] [ -s ] [-S ]
          [ -t ] [ -T[text] hex ] [ -Tdata hex ] [ -u name ]
          [ -x ] [ -X ] [ -ysym ] [ -z ] filename ...

I'd like to build a graphical interface with push-buttons for each option,
help for each, perhaps radio-buttons for mutually exclusive options, etc.

I've looked at tooltool, which besidess from not being Motif, might help.

Surely other people have done this kind of thing. Any advice?

M. Borkan                          borkan@compass.com