Re: Move loadSessionInfo("WindowWidth") etc to lyx_main.C

2006-05-29 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> I also prefer the first one (you probably need special values like >> -1 to indicate you do not want to restore position but only size). Bo> Patch attached. Tested using qt3/4/linux. This looks good (besides what Andre' noted). It would be nic

Re: Move loadSessionInfo("WindowWidth") etc to lyx_main.C

2006-05-29 Thread Andre Poenitz
+ // if user wants to restore window position + int posx = -1; + int posy = -1; + if (lyxrc.geometry_xysaved) { + string val = LyX::ref().session().loadSessionInfo("WindowPosX"); + if (val != "") E

Re: Move loadSessionInfo("WindowWidth") etc to lyx_main.C

2006-05-23 Thread Bo Peng
I also prefer the first one (you probably need special values like -1 to indicate you do not want to restore position but only size). Patch attached. Tested using qt3/4/linux. But in parallel you should really split lyx_gui::start() into lyx_gui::createView(x,y,w,h) which creates and display t

Re: Move loadSessionInfo("WindowWidth") etc to lyx_main.C

2006-05-23 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> Dear all, qt3/lyx_gui.C line 226-259 read lyxrc and set window Bo> width/height/pos. These are repeated for all frontends and should Bo> be moved to lyx_main.C Then, how would you want the info be passed Bo> to the lyx_gui::start function? Bo>

Move loadSessionInfo("WindowWidth") etc to lyx_main.C

2006-05-22 Thread Bo Peng
Dear all, qt3/lyx_gui.C line 226-259 read lyxrc and set window width/height/pos. These are repeated for all frontends and should be moved to lyx_main.C Then, how would you want the info be passed to the lyx_gui::start function? Choices: 1. start(string const& batch, vector const&files, int wid