[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: gEDA-user: next PCB release - 1.99za vs 4.0



On Thu, Sep 09, 2010 at 05:53:34PM +0100, Peter Clifton wrote:
> 
> The renderer can have non-OO helper functions too I guess, but it felt
> odd putting that into a file with a widget implementation. I had hoped
> to keep it one file for GDK specific, and one file for GL specific code.
> 
> I'm still sorely tempted to make a widget out of the PCB view area at
> some point, but it feels difficult to detach from the core.
>

It will be difficult, but I think it will be necessary at some point when
we try to implement functional blocks and multiple views. For now let's
try to widget-ize the layer selector and friends, and see what problems
we encounter.

I've already hammered out a header file for the Layer selector widget.
Actually filling in the code will likely be a challenge. For example, I
want to get rid of all the special-case Silk/Via code, which could mean
fixing all of the layer-handling code...ugh.

A common theme in pcb is that limitations in the file format and our
data structures, show up as ugly hacks in the GUI code.

But if we can segregate the code for the layer selector, routing style
selector, etc, the remaining code should be a lot easier to grok.

> ... 
> 
> The heads of my GL branches mostly use their own (copied) versions of
> the core's drawing code so various ordering assumptions don't cause
> problems. I'm hoping eventually to come up with a solution which lets
> the GUIs have more independence to how they render the board. Ideally
> this can be done without having to carbon-copy the drawing code into
> every HID.
> 
> (You may notice I've started in a few places pulling common drawing code
> into a common_* prefix under the hid/ folder). My aim was to set it up
> such that the GUIs could take or leave various bits of the common
> rendering code as their authors desire.
>

To do this, we would have to use a single renderer, no? For example, have
OpenGL do the viewport drawing in all of Gtk, LessTIF, (Windows?), etc?


Andrew
 


_______________________________________________
geda-user mailing list
geda-user@xxxxxxxxxxxxxx
http://www.seul.org/cgi-bin/mailman/listinfo/geda-user