[Xcircuit-dev] insertparam without tcl

ldoolitt at recycle.lbl.gov ldoolitt at recycle.lbl.gov
Sat Jun 3 20:15:18 PDT 2006


Friends -

As is pointed out in comments in the parameter.c,
insertparam() is broken in the non-tcl case.
I have started to play around with the code.
Before I waste too much time, can someone
confirm that my approach is sound?

I think I need to add PARAMSEL_MODE to the
enum editmode in xcircuit.h.  I'll enter that
mode after the Wprintf("%s", sstart);
but not actually modify the string yet.

Someplace in the event handling stack (eventdispatch()?)
I can detect a digit keypress in PARAMSEL_MODE, to
complete the logic and call labeltext().  It would
probably be good to detect an escape keypress, and
skip the labeltext() call.  In either case, I guess
the system has to land in TEXT_MODE -- or is it
ETEXT_MODE?  Or do I need to remember the eventmode,
and pop it back?

On a side note, it looks like this feature has been
broken (for non-tcl builds) since at least 3.1.38.
Is parameter usage really that unusual?  I, personally,
can't survive in xcircuit without it.

    - Larry



More information about the Xcircuit-dev mailing list