On Wed, Aug 14, 2002 at 10:57:20AM -0400, Kuba Ober wrote:

> Wouldn't it be possible to do that at runtime? Load the big thing, paint 
> cropped parts into a pixmap, and you seem to be done. That way the (quite 
> reasonable) idea of panels is preserved.

This is what (xforms) does already. IT's very silly to do because ...

> I love the panels.

It is simplest to make a button panel using individual xpm's, no ?

xforms uses the monolithic xbm for the math panel, but then has code to
split out individual portions for the use of the toolbar.

I believe it's far better to turn this on its head. This makes the code
to add a math symbol to the toolbar in Qt a single line, instead of 200
or so lines (to handle the splitting up, and the correct assignment of
the symbol name to the right portion of the image.

We could probably keep both. But the monolithic thing makes it more
hassle to re-order the panel (see e.g. the bug in bugzilla)

> Now I'm not a LyX developer so I'd better be quiet.  it's 
> just that *me* thinks they are easier to manage than gazillions of individual 
> icons/buttons.

not particularly because if each xpm is named after its symbol name,
it's a LOT easier and more robust to find (you search for the xpm with
the name identical to the symbol you're looking for)

Additionally, the monolithic images make a "my favourite symbols"
dynamic panel a lot harder to do.

regards
john

-- 
"It is unbecoming for young men to utter maxims."
        - Aristotle

Reply via email to