gEDA-dev: Compselect (again)
Peter Clifton
pcjc2 at cam.ac.uk
Sat Dec 15 12:53:18 EST 2007
Hi,
I'm looking at a usibility bug in the component placement process. If I
cancel placement (with "Esc"), I loose the ability to place components
until I hit "Apply" in the compselect dialog, or select a different
component - then the one I want again.
I propose to "fix" this, by ensuring the compselect list is de-selected
if I cancel out of component placement. What I'm not sure about, is the
"right" way. I'd love to get rid of the "Apply" button though...
Should:
Pressing "Esc", cancelling placement etc... call
x_compselect_deselect(...), to frob the list directly?
Should our component selector dialog implement a signal, which
x_compselect_deselect(...) should call. (Using the signal == virtual
function / method call paradigm).
Should pressing "Esc" set the property "symbol" to NULL on the dialog,
perhaps with a helper function, such as x_compselect_set_component(...)?
(Implying that we should support setting "symbol" to some string, to
pre-select a specific component in the library some how.)
Any thoughts?
Can you think of any other reason we're clinging onto the "Apply"
button?
You can find an example implementation of the easy solution (including
getting rid of the apply button at:
http://repo.or.cz/w/geda-gaf/pcjc2.git?a=shortlog;h=compselect_no_apply
--
Peter Clifton
Electrical Engineering Division,
Engineering Department,
University of Cambridge,
9, JJ Thomson Avenue,
Cambridge
CB3 0FA
Tel: +44 (0)7729 980173 - (No signal in the lab!)
More information about the geda-dev
mailing list