[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gEDA-dev: pcb: adding visual indication to locked items
Hi all,
I just filed a feature request with the text below"
<quote>
It would be nice to have a (visual) indication that a component is
locked.
This could be done by a (configurable) color for locked items.
Another way for (visual) indication of locked components could be to
change
the "diamond" marker (indicating the insertion point) into a "lock"
indicator.
This latter solution would be very nice towards the users who have
problems
with differating between look-a-like colours, and our color-blind users.
</quote>
I'm now trying to code a visual marker but got stuck on how to check for
a locked element.
I think appending the following snippet to DrawEMark () in draw.c would
do the trick:
<snippet>
/*
* If an element is locked, place a "L" on top of the "diamond".
*/
if (e->Flags == LOCKFLAG)
{
gui->draw_line (Output.fgGC, X, Y, X + 2 * mark_size, Y);
gui->draw_line (Output.fgGC, X, Y, X, Y - 4* mark_size);
}
</snippet>
Kind regards,
Bert Timmerman.
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev