Please wait a bit. How is this patch acting wrt the "auto" feature?
Also, by reading the patch I am not sure I understand what the syntax
of the session file is wrt toolbars.

This has nothing to do with the auto feature. Right now, the patch

1. when lyx close, get the names of all toolbars, query their status
(on/off) and write to session file, something like:

standardToolbar On
extraToolbar Off

"Toolbar" is added to toolbar names.

2. When lyx starts, for each toolbar, try to get its status from
session file. If "On", then display the toolbar. If no information is
found, use default.

What I want to know first is where we are heading wrt toolbars. Then,
it seems to me that (for example), we could just import session.[Ch]
and the corresponding toolbar support code. We are not forced to use
the whole session stuff, are we?

The above is simple in that I only save on/off information. I am not
sure what else I should save since I see nothing like the position of
the toolbar. Later on, if toolbars are configurable (at individual
icon level), session will save all icons.

It is possible to only load the session stuff. The difficulties lie in
the fact that session replaces lastfiles so all lastfiles stuff needs
to be replaced. Then, I have to separate lastfiles from
last-opened-files, which is the core of the session feature.

Cheers,
Bo

Reply via email to