Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2006 at 05:54:03PM +0200, Jean-Marc Lasgouttes wrote: > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > >> Non ragioniam di lor, ma guarda e passa. Divina Commedia, Inferno, > >> Canto III, 51. > > Enrico> I meant to say: take it easy! > > English is really m

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: >> Non ragioniam di lor, ma guarda e passa. Divina Commedia, Inferno, >> Canto III, 51. Enrico> I meant to say: take it easy! English is really more compact than italian :) JMarc

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2006 at 05:18:49PM +0200, Enrico Forestieri wrote: > On Mon, Oct 23, 2006 at 04:52:07PM +0200, Jean-Marc Lasgouttes wrote: > > > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > > > >> Anyway, after this week-end's debacle, I am not insisting on > > >> anything

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2006 at 04:52:07PM +0200, Jean-Marc Lasgouttes wrote: > > "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: > > >> Anyway, after this week-end's debacle, I am not insisting on > >> anything. Do what you want, like anybody else here. > > Enrico> Please JMarc, don't giv

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Jean-Marc Lasgouttes
> "Enrico" == Enrico Forestieri <[EMAIL PROTECTED]> writes: >> Anyway, after this week-end's debacle, I am not insisting on >> anything. Do what you want, like anybody else here. Enrico> Please JMarc, don't give up... I am not gone (yet :). Just that it has been explained to us non-danish th

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Enrico Forestieri
On Mon, Oct 23, 2006 at 09:48:21AM +0200, Jean-Marc Lasgouttes wrote: > > "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: > > Bo> JMarc, I guess session/toolbar is still allowed for 1.5. If you > Bo> insist on a separate section for toolbars, I can implement one. > Bo> Just tell me what you want.

Re: [PATCH] Save/restore toolbar status.

2006-10-23 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: Bo> JMarc, I guess session/toolbar is still allowed for 1.5. If you Bo> insist on a separate section for toolbars, I can implement one. Bo> Just tell me what you want. As far as 1.5 is concerned, a proper syntax for the session file would not hurt

Re: [PATCH] Save/restore toolbar status.

2006-10-22 Thread Bo Peng
JMarc, I guess session/toolbar is still allowed for 1.5. If you insist on a separate section for toolbars, I can implement one. Just tell me what you want. Cheers, Bo

Re: [PATCH] Save/restore toolbar status.

2006-10-19 Thread Bo Peng
Why wouldn't it be possible to write [toolbars] standard = On extra = Off I would really like to see this session file have a reasonable syntax. Currently, each section has its own. The amount of information saved for each type of stuff are different, and that is why we do not have a fixed syn

Re: [PATCH] Save/restore toolbar status.

2006-10-19 Thread Bo Peng
So, when a toolbar is automatic, depending on where the cursor is in the document, different things are stored. Is there a way to tell that an automatic toolbar (say math) should be always visible or never visible? I do not see it. Auto on/off has its own logic and session only controls whether

Re: [PATCH] Save/restore toolbar status.

2006-10-19 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> 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. Bo> This has nothing to do with the auto feature. Right now, th

Re: [PATCH] Save/restore toolbar status.

2006-10-19 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Am Mittwoch, 18. Oktober 2006 17:22 schrieb Bo Peng: >> 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 >> >> "Tool

Re: [PATCH] Save/restore toolbar status.

2006-10-19 Thread José Matos
On Thursday 19 October 2006 00:11, Bo Peng wrote: > > Should not that be $HOME/.lyx/session > > Yes. It should be $HOME/.lyx/session. Thanks. :-) > Bo -- José Abílio

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Bo Peng
Should not that be $HOME/.lyx/session Yes. It should be $HOME/.lyx/session. Bo

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread José Matos
On Wednesday 18 October 2006 21:35, Bo Peng wrote: > This does not matter at all. A new keyword value pair will be added to > $HOME/.session if a new toolbar is used, and will be loaded correctly > when lyx is restarted. Should not that be $HOME/.lyx/session I hate programs polluting my home

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Bo Peng
The toolbar names are not fixed. You can invent new toolbars in lib/ui/stdtoolbars.ui and add them to lib/ui/default.ui. Therefore you always need to construct the keyword in your patch. This does not matter at all. A new keyword value pair will be added to $HOME/.session if a new toolbar is use

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Georg Baum
Am Mittwoch, 18. Oktober 2006 21:18 schrieb Bo Peng: > > I think you should rather use > > > > Toolbar standard On > > Toolbar extra Off > > > > This is easier to parse. > > Not for session.h/C. It reads a keyword and a value. In my case, the > keywords are standardToolbar etc, and in your case th

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Bo Peng
I think you should rather use Toolbar standard On Toolbar extra Off This is easier to parse. Not for session.h/C. It reads a keyword and a value. In my case, the keywords are standardToolbar etc, and in your case there are duplicate keywords. Bo

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Georg Baum
Am Mittwoch, 18. Oktober 2006 17:22 schrieb Bo Peng: > 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. I think you should rather use Too

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Bo Peng
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, que

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> Good work! Are you also going to create a 1.4 version? Bo> Since session replaces lastfiles and involves many other things, Bo> it is not easy to produce a patch just for toolbar status. A much Bo> larger patch that backports the whole session s

Re: [PATCH] Save/restore toolbar status.

2006-10-18 Thread Jean-Marc Lasgouttes
> "Bo" == Bo Peng <[EMAIL PROTECTED]> writes: >> Attached is an updated toolbar/session patch that works for qt3/4. >> Can I apply? Bo> There has been no comment on the patch itself, so it is now on a Bo> 'will commit tomorrow' policy. I would appreciate it if someone Bo> can add the view-> t

Re: [PATCH] Save/restore toolbar status.

2006-10-17 Thread Bo Peng
Attached is an updated toolbar/session patch that works for qt3/4. Can I apply? There has been no comment on the patch itself, so it is now on a 'will commit tomorrow' policy. I would appreciate it if someone can add the view->toolbar menus. Bo

Re: [PATCH] Save/restore toolbar status.

2006-10-17 Thread Abdelrazak Younes
Lars Gullik Bjønnes wrote: Joost Verburg <[EMAIL PROTECTED]> writes: | Bo Peng wrote: | > Since session replaces lastfiles and involves many other things, it is | > not easy to produce a patch just for toolbar status. A much larger | > patch that backports the whole session stuff is possible, bu

Re: [PATCH] Save/restore toolbar status.

2006-10-16 Thread Lars Gullik Bjønnes
Joost Verburg <[EMAIL PROTECTED]> writes: | Bo Peng wrote: | > Since session replaces lastfiles and involves many other things, it is | > not easy to produce a patch just for toolbar status. A much larger | > patch that backports the whole session stuff is possible, but will | > most likely be too

Re: [PATCH] Save/restore toolbar status.

2006-10-16 Thread Joost Verburg
Bo Peng wrote: Since session replaces lastfiles and involves many other things, it is not easy to produce a patch just for toolbar status. A much larger patch that backports the whole session stuff is possible, but will most likely be too big to be accepted by JMarc. I think backporting session

Re: [PATCH] Save/restore toolbar status.

2006-10-16 Thread Bo Peng
Good work! Are you also going to create a 1.4 version? Since session replaces lastfiles and involves many other things, it is not easy to produce a patch just for toolbar status. A much larger patch that backports the whole session stuff is possible, but will most likely be too big to be accepte

Re: [PATCH] Save/restore toolbar status.

2006-10-16 Thread Joost Verburg
Bo Peng wrote: Attached is an updated toolbar/session patch that works for qt3/4. Can I apply? Good work! Are you also going to create a 1.4 version? Joost

[PATCH] Save/restore toolbar status.

2006-10-16 Thread Bo Peng
Hi, all, Attached is an updated toolbar/session patch that works for qt3/4. Can I apply? Problems: 1. view->toolbars-> is lacking. 2. For both qt3/4, session info is only saved with the close button. File->exit does not work. As far as I remember, File->exit worked before. 3. I do not know w