On Sun, 29 Oct 2000, R. Lahaye wrote:
> "Lars Gullik Bjønnes" wrote:
> >
> > "R. Lahaye" <[EMAIL PROTECTED]> writes:
> >
> > | Hi,
> > |
> > | The <Save> button in the Preferences dialog
> > | does the save, but also closes the dialog.
> > What if it said "Ok"?
>
> I can't follow in what direction you are thinking.
> Just adding an <Ok> button wouldn't solve the
> confusion. My intuitive feelings tell me:
>
> <Save> : save the current preferences settings to
> somewhere (is that ~/.lyx/lyxrc ?), such that
> I will have the save settings again when I restart
> LyX the next time.
> The <Save> should then perform an <Apply>, see
> next.
Yes.
> <Apply> : Apply the current preferences settings to
> the current document(s). They are NOT saved beyond
> the current session, so LyX won't use them when
> restarted the next time.
> When I open the dialog again (within the same
> session), the previously applied settings should
> be there. So the applied preferences have to be
> saved somewhere else temporarily until the end of
> this LyX-session (/tmp/lyx_tmp/lyxrc ?).
The Apply'd entries are stored in memory and used by LyX (in the lyxrc
variable).
> <Restore> : Restore old settings. But which old settings?
> The user ones in ~/.lyx/lyxrc ? Or system ones
> in /usr/local/LyX/share/lyxrc ?
> Or old settings elsewhere (e.g. /tmp/lyx_tmp/lyxrc) ?
> Obviously, I don't like such a ambiguous <Restore>
> button.
Restores the most recently Apply'd values (ie. whatever the lyxrc variable
contains -- at startup this will be the combination of system-lyxrc and
either ~/.lyx/lyxrc or ~/.lyx/preferences depending on whether or
preferences exists.
Obviously I didn't think it was ambiguous when I designed it.
> <Close> : Just close the dialog. Don't Apply or Save
> anything (in other words: forget about changes
> I've made since the last <Save> or <Apply>).
Yes.
> --------------------------------------------------
>
> In the above I've used several times "document(s)".
> Suddenly it pops in my mind that it is very probable
> that I have several documents loaded, and some
> of the preferences may not be the same for all documents.
Then you have a real problem because the lyxrc settings are read from a
file and always the same file irrespective of what sort of document you
are editting. Any document specific settings should be in the Document
dialog. There are some global defaults in Preferences that are overridden
by Document settings but these are provided so users can setup lyx for
whatever their most common needs are.
Any uncommon needs are then catered for by changing the entries in the
Document dialog or better yet using a template file.
> This can be, for example:
> - language vs. language setting in preferences.
> - LaTeX preamble
> (I've heard rumours that this should be merged with
> Preferences. True?)
Rumour only. It might end up in Document but it shouldn't really need to
be in Preferences.
Allan. (ARRae)