> "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
+ // 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
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
> "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>
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