gEDA-dev: Re: gEDA: Complex place list

Ales Hvezda ahvezda at seul.org
Sun Jun 11 22:29:37 EDT 2006


>I'm thinking about how to use the complex place list for component
>placement and object moving, copying, rotating and so on...


	A long time ago, libgeda/gschem did use a linked list of OBJECT*
as the selection list. I found this worked mostly, but it had some
dependancy/traversal issues that were quite easily solved via the existing
SELECTION* linked list.


[snip]
>I think the easiest solution here is to convert the complex place list
>into a doubly-linked list, possibly using glib's GList lists.
>This way an object list can be built without changing the main object
>list.

	Ah yes, this the same sort of problem why the SELECTION* link
list is not just a list of OBJECT*.  I am 100% okay with doing this.
We might even want to migrate the SELECTION list to using a GList as
well.  I wouldn't mind tossing all custom linked list code to using
GLists.   That would clean up the code significantly.


[snip]
>When moving the selection, instead of moving the components from the
>main list to the complex place list, the complex place list could be a
>list of pointers to the objects of the main list, and o_redraw* changed
>so they don't redraw the selected components at the original position if
>gschem is inside a move/rotate/.. command.
>
>Thoughts?

	Quite thrilled by this change actually if it makes certain 
operations easier.  As usual let me know if you have any questions.

								-Ales



More information about the geda-dev mailing list