gEDA-dev: o_redraw_single() has moved to gschem

Peter TB Brett peter at peter-b.co.uk
Thu Nov 1 10:02:45 EDT 2007


On Thursday 01 November 2007 13:42:08 Steve Meier wrote:
> I also think that objects in libgeda should know which application
> function to call in order to draw them selves.
>
> This allows the application to ask the page to draw itself and the page
> to ask the complex components, segments, arcs, boxes, text etc to draw
> themselves. Instead of the application having to go through the page and
> get each item and then do the drawing.
>
> When I say an object should draw itself I mean that the object should
> call the appropriatly registered application function. In my view this
> way if the library changes the application won't get broken.
>

On the other hand, I *don't* like this, because it violates the 
Model-View-Controller pattern.  I would like it to be possible to have 
multiple View implementations which can simultaneously use the same Model.

In my world, each renderer should keep its own look-up table mapping drawable 
types to rendering functions.

                                Peter

-- 
Peter Brett

Electronic Systems Engineer
Integral Informatics Ltd


More information about the geda-dev mailing list