On Thursday 22 August 2002 11:46 am, Rob Lahaye wrote:

> >>-----------------------------------------------------
> >>Why do we have the Display modes stored and saved in so many different
> >>ways?
> >>Can we get rid of at least two entries?
> >>Any major objections for such an improvement?
> >
> > None whatsoever.
>
> Let me try; my plan is following:
>
> 1) Have only one "Displaytype enum" in graphics/GraphicsTypes.h. I think
> that's the place where this belongs. The enum is here encapsulated by
> "namespace grfx {...}".
>
>     I'm not at all familiar with this namespace thing.
>     Don't know what's going to happen and how to solve that. We'll see.
>     Any hints in advance? Otherwise I'll come with questions soon.

You should have no problems with the namespaces. Thay'll just work.

> 2) I want to change the \display_graphics argument in preferences:
>         mono -> monochrome
>         gray -> grayscale
>         no -> none
>     so that they are the same as the one we use in the graphics inset.
>     Is that acceptable?

Well it's a change in format, but we apparently don't mind so much if the 
preferences file changes. Anyway you could parse the reading in lyxrc.C's 
read method as
        
        case RC_DISPLAY_GRAPHICS:
                if (lexrc.next())
                        display_graphics = lexrc.getString();
                
                if (display_graphics == "mono")
                        display_graphics == "monochrome";
                else if ...

                break;

If you really, really cared. Personally I wouldn't bother.
Angus

Reply via email to