Bo Peng wrote:
This makes sense. I propose a lyxrc entry windowSize that
1. has value (0,0) by default.
2. If lyxrc.windowSize==(0,0), saved window size from session() will
be used. (If no session() info, use hard-coded default)
3. if lyxrc.windowSize != (0,0) (being assigned a value using a
dialog), ignore session().
4. window size will be saved to session(), not lyxrc, when lyx is closed.
That's exactly what I mean. This saved state should apply to open/closed
windows, toolbars and other UI parts as well. Once this is finished it
would be a good thing to add two buttons to the preferences dialog that
allow you to save the current state to lyxrc or to remove the saved state.
Together this allows the user to choose between:
1) Save everything as a session (both UI + open documents etc.)
2) Have one nicely setup UI that is loaded at startup, while keeping the
open documents and other things as a session
Option 1 would be the default behavior and option 2 something for the
more experienced users.
Joost