Re: [PATCH] Complete patch for session management.

2006-03-26 Thread Georg Baum
Am Samstag, 25. März 2006 23:16 schrieb John Spray: > My notion of the desired behaviour would encompass two cases: > 1. The user quits manually. When next starting, the session will > be restored if the load_session option is true. > 2. The user quits by logging out while LyX is

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread John Spray
On Sat, 2006-03-25 at 22:45 +0100, Lars Gullik Bjønnes wrote: > | Basically what I'm saying is that the frontends just need a nice simple > | function to call, so we have QuitLyX for some cases and SessionEndLyX > | (or so) for others. > > I do not see quite why. Having read Bo's patch a bit, I t

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Lars Gullik Bjønnes
John Spray <[EMAIL PROTECTED]> writes: | On Sat, 2006-03-25 at 08:21 -0600, Bo Peng wrote: | > > I would say we only need a single option "Remember opened documents on | > > startup" (disabled by default). | > | > I agree. Somebody else please do it. | Just waiting for the relevant bool in lyxrc.

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread John Spray
On Sat, 2006-03-25 at 08:21 -0600, Bo Peng wrote: > > I would say we only need a single option "Remember opened documents on > > startup" (disabled by default). > > I agree. Somebody else please do it. Just waiting for the relevant bool in lyxrc. > > We need the frontends to catch the session cue

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Bo Peng
> I would say we only need a single option "Remember opened documents on > startup" (disabled by default). I agree. Somebody else please do it. > We need the frontends to catch the session cues from their environments, > and have an alternative to QuitLyX to be called in the case of LyX dying > w

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread John Spray
On Fri, 2006-03-24 at 23:01 -0600, Bo Peng wrote: > Current behavior: > 1. if lyx is called directly and load_session is true, lyx will load > all previously opened files > 2. if "lyx file.lyx" is called, only file.lyx is loaded. > 3. if use_lastfilepos is true, files loaded will scroll to their sa

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Lars Gullik Bjønnes
"Bo Peng" <[EMAIL PROTECTED]> writes: | @@ -101,7 +101,7 @@ | bool MenuWrite(Buffer * buffer) | { | if (buffer->save()) { | - LyX::ref().lastfiles().newFile(buffer->fileName()); | + LyX::ref().session().addLastFile(buffer->fileName()); | return true; |

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Jean-Marc Lasgouttes
| There are talk about dropping the XForms frontend... > But only talks so far. And we may want to put the patch in 1.4.x later. JMarc -- Lgb

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Lars Gullik Bjønnes
Abdelrazak Younes <[EMAIL PROTECTED]> writes: | > Index: src/frontends/qt4/QtView.C | > Index: src/frontends/qt4/QPrefsDialog.C | | There are talk about dropping the XForms frontend... | > Index: src/frontends/xforms/XFormsView.C | > Index: src/frontends/xforms/FormPreferences.C But only talks s

Re: [PATCH] Complete patch for session management.

2006-03-25 Thread Abdelrazak Younes
Bo Peng a écrit : Dear list, I have figured out the two problems I had and here is the complete patch. It would be nice if you could generate a patch for the QuitLyX fixes independently. A couple of answer to your question: Index: src/frontends/qt4/QPrefs.C -#include "lastfiles.h" +//

[PATCH] Complete patch for session management.

2006-03-24 Thread Bo Peng
Dear list, I have figured out the two problems I had and here is the complete patch. Current behavior: 1. if lyx is called directly and load_session is true, lyx will load all previously opened files 2. if "lyx file.lyx" is called, only file.lyx is loaded. 3. if use_lastfilepos is true, files loa