Dekel Tsur wrote:
The graphics dialog has the following problem:
1. (XForms dialog)
Selecting only a height for the figure is not simple:
the only way to do it change the width type to some length, erase the
width value, and only then enter the height.
Indeed true.
One option could be to remove the currently very strictive en/disbling
of the input/unit fields. Width/height input would then always be
allowed, irrespective of the units settings.
Decision on what the input means, is then during the 'apply()'.
For example:
*) width: 50 scale%
height: 1.5 cm
would mean
"scale = 50 % ; ignore height input"
*) width: [empty]
height: 1.5 cm
would mean
"height = 1.5 cm ; width scales wrt. aspect ratio"
etc.
The patch would be fairly easy; simply removing a few lines
from the input() function of FormGraphics.C. I can do that
if appreciated.
3. (both)
The height units list contain \textwidth, \columnwidth which are
not usually used for measuring height, but doesn't contain
\textheight.
Well, in the dialog these units show up as "text%", "col%",
"page%" etc. Would it be better if "text%" as the height unit
becomes a "\textheight" appendix in LaTeX ? That would be
rather complicated to implement, I bet.
Also, it might be better to use longer names for the units:
inch, % of page etc.
BTW, currently XForms uses text%, while QT uses %t.
I believe that Qt manually adds the units in the designer/dialog,
whereas Xforms has a vector string (or something like that) defined
in a file, which is used to dynamically construct the unit choices.
So for Qt, it means editing all dialogs that use the units, but for
Xforms it's a small change (dialogs may need a larger choice widget,
though).
Rob.