Hi,
I have attached a patch for the new graphics dialog.
Main focus of the patch is the layout. I desperately need
help to implement the (new) items, since I have no clue how
and where to do that properly, without breaking too much.
So the layout is there. I needed to introduce one new param,
called "int lyxdisplay" in insetgrahpicsParams.h, to handle
the new LyX display choice selector.
A lot of buttons have been removed, but most of their code
is still there. So I bet a tremendous cleanup can be done,
but I haven't touched that part.
Many of the new features are not yet interpreted. For example:
- the lyxdisplay choice selection; is not done properly yet (how?)
- initialize size defaults to original image size for both, LyX and LaTeX
output: lyxscale = 100 %, width = 100 %, height = <blank>, lyxdisplay = Default.
- width/height/aspect_ratio need a more intelligent button policy:
if only one of width/height given, disable aspect_ratio button
and keep aspect ratio by default
if both, width and height,are given, enable aspect_ratio button
and do not deform image if button is checked.
- rotation: ignore rotation when rotation_angle is zero.
- how to feed the values through to LyX display routines?
- etc.
I have no idea how and where to do all this. Please help.
Thanks,
Rob.
NewGraphicsDialog.diff.gz
Description: application/gzip
