Hi,

Attached is a screenshot of the new dialog.
Some implementation questions remain for the new graphics dialog.

1) Image percentage unit needed for Width/Height output size.
    ----------------------------------------------------------
    Output size now only has three input fields: Width, Height and AspectRatio,
    that must handle all former possibilities:
         Width  [_____][u]
         Height [_____][u]
         o AspectRatio

    I need an additional "image-percentage" unit for Width/Height to allow scaling.
    This should be the topmost unit in the list, since the dialog must default to
    the original image size:
         Width   100       [image percent]
         Height [disabled] [u]

    How to add this extra Width/Height image percentage unit?

2) Input policy for output size is already LaTeX's default behaviour?
    ------------------------------------------------------------------
    To allow all posibities for the LaTeX output, the input policy should be as 
follows:
        - if ONLY ONE of Width/Height is provided, then disable the AspectRatio button
          and keep the aspect ratio by default
        - if BOTH, Width AND Height, are provided, then enable the AspectRatio button 
and
          that button defines wether or not to deform the image according to 
Width/Height.

    I think, this policy does not need further implementation, since it seems to be
    already LaTeX's default behaviour. Am I right?

    Only more code is needed to deal with "scale=[value]" in LaTeX, for when width OR
    height is given in image-percentage-unit.

    We have to be careful with the percentage unit: only one of Width/Height can be
    be entered when percentage unit is choosen (you cannot have a scale value for both
    width and height!). Maybe the unit choice button should disable the other
    input field, when image-percentage-unit is selected.

3) Compatibility with 1.2.0.
    ------------------------
    In 1.2.0 one can select "Original Size", but still have a value for
    Scale. This does not go well with the new dialog for LyX View.
    The Read routine should remember it has read "Original Size", to ignore the
    Scale value; but at present the Scale value is used instead, because it
    comes later as a Read token. In other words,
             lyxsize_kind originalsize
             lyxscale 60
    Will be interpreted as LyX-scaling by 15 percent, not 100 percent.

    Same problem for output Width/Height with respect to reading size_kind.

    May we ignore this?

4) Qt
    ---
    Qt is not compatible anymore. I have modified QGraphics.C so that Qt at least
    compiles. John, could you implement the new layout for the Qt Graphics dialog
    as soon as Xforms comes to its final layout.

5) Qt: Unlike Xforms, does Qt provide a "Default" entry for rotation Origin.
    ------------------------------------------------------------------------
    Should rotation Origin have a "Default" entry or not? Which one is best?
    Default for Origin doesn't seem to make sense to me, or am I wrong?


Thanks for feedback.

Cheers,
Rob.

PNG image

PNG image

PNG image

Reply via email to