[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: gEDA-dev: Re: Tabbed pages in gschem (and implications)
On Thu, 2006-07-27 at 11:00 -0300, Cesar Strauss wrote:
> Peter Clifton wrote:
> > Call for ideas / comments:......................
> >
> >
> > A neat feature which was suggested to me was to implement "tabbed"
> > viewing of pages - possibly to replace the page manager in gschem.
> >
> > Simple, I thought,... until I dig a little more into the GtkNotebook
> > widget which implements tabbed windows.
> >
> > Each tab has to have its own contents... (In the case of gschem, this
> > would be a GtkTable for packing, two scrollbars and the drawing area).
> >
> I think there is another way. Use an empty child for each notebook tab,
> so the notebook is only as tall as the tabs. Stack the drawing area
> widgets under it with a GtkVBox.
I did think briefly about doing such things, but I never coded anything
up.
An alternative I thought of, was to pack and unpack the drawing area
etc... from the v_box in the notebook page.
The borders on the Notebook aren't quite right when done the way you
suggest, but its certainly a lot easier than the codebase changes I've
had to make to "do it properly" (although I'm not convinced that is the
correct word for it).
I'll tinker with the code I've got for a little bit, but could very well
end up implementing your method.
Many thanks for the example code.
Regerds
Peter Clifton
_______________________________________________
geda-dev mailing list
geda-dev@moria.seul.org
http://www.seul.org/cgi-bin/mailman/listinfo/geda-dev