Hi,
Following inconsistency:
(*) Preferences-dialog: Display graphics = "Grayscale"
Graphics-dialog: Display graphics = "Default"
Then my color image is in grayscale.
(*) Preferences-dialog: Display graphics = [whatever].
Graphics-dialog: Display graphics = "Grayscale".
Then my color image is in color!!
Any idea where this goes wrong?
(see at the end of this email for more info on my LyX built).
-----------------------------------------------------
Related to this:
Why do we have the Display modes stored and saved in so many different ways?
1) src/insets/insetgraphicsParams.h::struct InsetGraphicsParams:
enum DisplayType {
DEFAULT, // whatever is in lyxrc.display_graphics
MONOCHROME, // In black and white.
GRAYSCALE, // 256 shades of gray
COLOR, // full color range
NONE // only keep a frame in place.
};
2) src/graphics/GraphicsTypes.h:
enum DisplayType {
ColorDisplay,
GrayscaleDisplay,
MonochromeDisplay,
NoDisplay
};
3) Graphics-inset keyword in lyx file:
display monochrome
display grayscale
display color
display none
4) Display setting in preferences file:
\display_graphics mono
\display_graphics gray
\display_graphics color
\display_graphics no
Can we get rid of at least two entries? For example:
- remove (2) and use (1) instead
- use the Graphics-inset keywords also for the preferences file.
(I like the longer names better than the short ones!)
Any major objections for such an improvement?
Regards,
Rob.
PS: $ lyx --version
LyX 1.3.0cvs of Fri, May 3, 2002
Built on Aug 22 2002, 16:49:33
Configuration
Host type: i386-unknown-freebsd4.6
Special build flags: warnings assertions
C Compiler: gcc
C Compiler flags: -g -O2
C++ Compiler: g++ (2.95.3)
C++ Compiler flags: -g -O -Wno-non-template-friend -W -Wall
Linker flags:
Frontend: xforms
libXpm version: 4.11
libforms version: 1.0.0
LyX binary dir: /opt/bin
LyX files dir: /opt/share/lyx
$ ldd lyx
lyx:
libforms.so.1 => /usr/X11R6/lib/libforms.so.1 (0x2855e000)
libXpm.so.4 => /usr/X11R6/lib/libXpm.so.4 (0x285dc000)
libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x285ea000)
libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x285f3000)
libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x28609000)
libstdc++.so.3 => /usr/lib/libstdc++.so.3 (0x286c5000)
libm.so.2 => /usr/lib/libm.so.2 (0x2870a000)
libc.so.4 => /usr/lib/libc.so.4 (0x28726000)
libXThrStub.so.6 => /usr/X11R6/lib/libXThrStub.so.6 (0x287c0000)