Re: [Patch] fixing tabular paste

2005-05-11 Thread Martin Vermeer
On Wed, May 11, 2005 at 07:10:36PM +0300, Martin Vermeer wrote: > See attached. It fixes at least the menu cut/copy - paste multi-cell > within a tabular. > > OK to commit? > > - Martin New and improved... shared pointers are funny things. - Martin Index: insettabular.C ===

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, May 11, 2005 at 07:44:30PM +0200, Jean-Marc Lasgouttes wrote: > > "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: > > Martin> Patch attached. Please commit, this is your baby. > > Feel free to do it, I am busy now. I guess you should guard it with > #if QTVERSION >= 0x030100

Adding a new encoding, windows-1256 (cp1256)

2005-05-11 Thread Hossein Noorikhah
Hi I want to add a new encoding to the LyX default encodings, I want to know what should I do. I should mention that this is because for adding Persian language support to LyX, I should use arabic encodings, as Persian script consists of Arabic script + some other words that are only in Persi

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 10:34:37PM +0300, Martin Vermeer wrote: > I think Jean-Marc wants to eliminate processEvents altogether for older > Qt. Then we will "only" suffer the drawing glitches that you objected so > vehemently against. I think a reasonable Faustian deal against forcing > people bac

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, May 11, 2005 at 07:35:03PM +0100, John Levon wrote: > On Wed, May 11, 2005 at 07:44:30PM +0200, Jean-Marc Lasgouttes wrote: > > > Martin> Patch attached. Please commit, this is your baby. > > > > Feel free to do it, I am busy now. I guess you should guard it with > > #if QTVERSION >= 0x

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, May 11, 2005 at 07:44:30PM +0200, Jean-Marc Lasgouttes wrote: > >> Martin> Patch attached. Please commit, this is your baby. >> >> Feel free to do it, I am busy now. I guess you should guard it with >> #if QTVERSION >= 0x030100 >> so that older q

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 07:44:30PM +0200, Jean-Marc Lasgouttes wrote: > Martin> Patch attached. Please commit, this is your baby. > > Feel free to do it, I am busy now. I guess you should guard it with > #if QTVERSION >= 0x030100 > so that older qt will "only" suffer from drawing glitches. Wha

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Patch attached. Please commit, this is your baby. Feel free to do it, I am busy now. I guess you should guard it with #if QTVERSION >= 0x030100 so that older qt will "only" suffer from drawing glitches. JMarc

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Lars Gullik Bjønnes
Alfredo Braunstein <[EMAIL PROTECTED]> writes: | Anyway, I propose we delay this to 1.5.x and settle for your option in the | meantime. That is, unless it can be done very very easily (wich I doubt). yes. delay for 1.5.x. -- Lgb

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Angus Leeming
John Levon wrote: > On Wed, May 11, 2005 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > >> qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); > > When was this flag introduced to Qt? > > john There's a QEventLoop in Qt 3.1 (released November 13 2002). http://doc.trolltech.com/

[Patch] fixing tabular paste

2005-05-11 Thread Martin Vermeer
See attached. It fixes at least the menu cut/copy - paste multi-cell within a tabular. OK to commit? - Martin Index: tabular.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/tabular.C,v retrieving revision 1.222 diff -u -p -r1.22

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: John> On Wed, May 11, 2005 at 05:05:47PM +0200, Jean-Marc Lasgouttes John> wrote: qApp-> eventLoop()->processEvents(QEventLoop::ExcludeUserInput); John> When was this flag introduced to Qt? Good question. It seems that it is Qt 3.1. Neverthl

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Alfredo Braunstein
Angus Leeming wrote: >> >> How difficult is it? >> >> We could even have the option to have multiple windows, with 1 bv in >> each. > > It seems like a lot of extra memory usage for no real gain, no? Why not > just store cursor when the buffer is hidden? Because as JM pointed out, it gives mul

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 07:07:26PM +0300, Martin Vermeer wrote: > > When was this flag introduced to Qt? > > 3.1. OK, then we need to make that the minimum Qt version we support, finally. Pity about Qt/Win Free or whatever it was but there's not much we can do otherwise. regards john

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 05:07:28PM +0100, John Levon wrote: > Has to be said that I don't see any of the problems about drawing > with current CVS... But I do see the keypress re-ordering. john

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 18:57, John Levon wrote: > On Wed, May 11, 2005 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > > > qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); > > When was this flag introduced to Qt? 3.1. - Martin signature.asc Description: This is a digitally si

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 04:57:11PM +0100, John Levon wrote: > On Wed, May 11, 2005 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > > > qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); > > When was this flag introduced to Qt? Has to be said that I don't see any of the problems

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 04:28:02PM +0100, Angus Leeming wrote: > H. Rather than process all pending draw events fully, is it sufficient > to process the last draw event and discard the earlier ones? Ie, we should > be computing the metrics() on each page-down, but we should draw() only if

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Alfredo Braunstein
Jean-Marc Lasgouttes wrote: >> "Alfredo" == Alfredo Braunstein >> <[EMAIL PROTECTED]> writes: > > Alfredo> An alternative is to associate a bv with a buffer for ever, > Alfredo> and only make the active bv visible, as opposed to having > Alfredo> just one bv but changing the buffer of it.

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Lars Gullik Bjønnes
John Levon <[EMAIL PROTECTED]> writes: | On Wed, May 11, 2005 at 06:12:53PM +0300, Martin Vermeer wrote: > >> What came back was the original problem why sync_events was introduced: >> when scrolling fast in big documents (PageDown) the screen update >> doesn't keep up. >> >> - // You are n

Re: seminar.layout and lyx-devel

2005-05-11 Thread Jean-Marc Lasgouttes
> "Staffan" == Staffan Ringbom <[EMAIL PROTECTED]> writes: Staffan> Hello, Seems like the seminar.layout would not be updated and Staffan> I suspect an error in the seminar.layout. When I try to Staffan> reconfigure a document to seminar I get an error message Staffan> Error reading `~/.lyx-c

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 05:05:47PM +0200, Jean-Marc Lasgouttes wrote: > qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); When was this flag introduced to Qt? john

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Alfredo> An alternative is to associate a bv with a buffer for ever, > Alfredo> and only make the active bv visible, as opposed to having > Alfredo> just one bv but changing the buffer of it. > > How difficult is it? > > We could even have the option to have multiple

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 18:05, Jean-Marc Lasgouttes wrote: ... > What about using something like > > qApp->eventLoop()->processEvents(QEventLoop::ExcludeUserInput); > > It looks to me as the right answer (do the drawing, not the use input) > > JMarc Jean-Marc, you're a gem! It works precisely

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Jean-Marc Lasgouttes
> "Alfredo" == Alfredo Braunstein <[EMAIL PROTECTED]> writes: Alfredo> An alternative is to associate a bv with a buffer for ever, Alfredo> and only make the active bv visible, as opposed to having Alfredo> just one bv but changing the buffer of it. How difficult is it? We could even have th

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> H. Rather than process all pending draw events fully, is it Angus> sufficient to process the last draw event and discard the Angus> earlier ones? Ie, we should be computing the metrics() on each Angus> page-down, but we should d

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Alfredo Braunstein
Angus Leeming wrote: > Jean-Marc Lasgouttes wrote: >> Helge> Lyx 1.4 have a problem when I open several documents in one lyx >> Helge> instance. Whenever I switch between them, the cursor moves to >> Helge> the top of the document being switched to. >> >> This is indeed very annoying, and is a co

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Angus Leeming
John Levon wrote: > On Wed, May 11, 2005 at 06:12:53PM +0300, Martin Vermeer wrote: > >> What came back was the original problem why sync_events was introduced: >> when scrolling fast in big documents (PageDown) the screen update >> doesn't keep up. >> >> - // You are not expected to under

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 06:12:53PM +0300, Martin Vermeer wrote: > What came back was the original problem why sync_events was introduced: > when scrolling fast in big documents (PageDown) the screen update > doesn't keep up. > > - // You are not expected to understand this. This forces Qt >

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 17:33, Lars Gullik BjÃnnes wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > | Oops, that's bad. Could this be due to calling sync_events twice during > | a cursor blink sequence? (both in showCursor and in hideCursor.) I did > | that to make LyX snappier ;-/ > > Hmm..

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Does anyone have an idea how the input order reversal could Martin> come about? Again, are there any guarantees that the X queue Martin> gives events back in time order? Maybe something like: 1/ an event arrives 2/ processEven

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 17:41, Asger Alstrup wrote: > Martin Vermeer wrote: > > On Wed, 2005-05-11 at 17:02, Lars Gullik BjÃnnes wrote: > > > >>How can events be reordered? > > > > Precisely my question. > > Did you check that your keyboard queue is really a queue, and not a stack? There is no ke

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Asger Alstrup
Martin Vermeer wrote: On Wed, 2005-05-11 at 17:02, Lars Gullik BjÃnnes wrote: How can events be reordered? Precisely my question. Did you check that your keyboard queue is really a queue, and not a stack? Regards, Asger

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 17:02, Lars Gullik BjÃnnes wrote: > Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: > > | Bennett> Thus, if I type "1234" quickly (but slowly enough to be sure > | Bennett> I'm typing them in that order!), I actually get "1342" or > | Bennett> "1432" in the document. Similar

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Lars Gullik Bjønnes
Martin Vermeer <[EMAIL PROTECTED]> writes: | Oops, that's bad. Could this be due to calling sync_events twice during | a cursor blink sequence? (both in showCursor and in hideCursor.) I did | that to make LyX snappier ;-/ Hmm... this shouldn't be needed to make LyX snappier... | Alternatively, n

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Martin" == Martin Vermeer <[EMAIL PROTECTED]> writes: Martin> Does anyone have an idea how the input order reversal could Martin> come about? Again, are there any guarantees that the X queue Martin> gives events back in time order? I do not know many X apps that share this entertaining fea

Re: [PATCH] various TOC-related fixes

2005-05-11 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> The is still a problem that I am not sure how to solve: Jean-Marc> when I set the min/max value of the depthSL slider, the Jean-Marc> value of the slider will be changed if it is outside of the Jean-Marc> new range. T

Re: Profiling LyX-140 on Mac

2005-05-11 Thread John Levon
On Wed, May 11, 2005 at 04:58:47PM +0300, Martin Vermeer wrote: > Does anyone have an idea how the input order reversal could come about? > Again, are there any guarantees that the X queue gives events back in > time order? I believe there is not, but Qt should be dealing with that for us by look

Re: LyX meeting in Paris. When?

2005-05-11 Thread Jean-Marc Lasgouttes
> "Asger" == Asger Alstrup <[EMAIL PROTECTED]> writes: Asger> I agree with Lars that it is due time to decide the date, and Asger> the 16th looks like the clear winner. Jean-Marc, what do you Asger> say? The 16th looks good. I suspect that there will be too many people present to be able to w

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Bennett> Thus, if I type "1234" quickly (but slowly enough to be sure | Bennett> I'm typing them in that order!), I actually get "1342" or | Bennett> "1432" in the document. Similarly, typing "The last time I | Bennett> tested lyx" results in "The

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Martin Vermeer
On Wed, 2005-05-11 at 16:36, Bennett Helm wrote: > On May 11, 2005, at 6:55 AM, Jean-Marc Lasgouttes wrote: > > > It would be interesting to know how things have evolved since Martin's > > latest patch. > > Here you go -- profile attached, done the same way as my previous > report: tree view, wi

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On May 11, 2005, at 6:55 AM, Jean-Marc Lasgouttes wrote: >> It would be interesting to know how things have evolved since >> Martin's latest patch. Bennett> Here you go -- profile attached, done the same way as my Bennett> previ

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Angus Leeming
Jean-Marc Lasgouttes wrote: > Helge> Lyx 1.4 have a problem when I open several documents in one lyx > Helge> instance. Whenever I switch between them, the cursor moves to > Helge> the top of the document being switched to. > > This is indeed very annoying, and is a consequence of the fact that >

Re: Profiling LyX-140 on Mac

2005-05-11 Thread Jean-Marc Lasgouttes
> "Andreas" == Andreas Vox <[EMAIL PROTECTED]> writes: Andreas> Am 07.04.2005 um 17:58 schrieb Jean-Marc Lasgouttes: >>> "Andreas" == Andreas Vox <[EMAIL PROTECTED]> writes: >> Andreas> I also did some profiling and got the attached screenshot Andreas> when scrolling down using PageDown.

Re: Lyx 1.4 usability problem when opening several documents

2005-05-11 Thread Jean-Marc Lasgouttes
> "Helge" == Helge Hafting <[EMAIL PROTECTED]> writes: Helge> Lyx 1.4 have a problem when I open several documents in one lyx Helge> instance. Whenever I switch between them, the cursor moves to Helge> the top of the document being switched to. This is indeed very annoying, and is a consequen

Re: [PATCH] various TOC-related fixes

2005-05-11 Thread Jean-Marc Lasgouttes
> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: Angus> Jean-Marc Lasgouttes wrote: >>> "Angus" == Angus Leeming <[EMAIL PROTECTED]> writes: >> Angus> Is this what you're looking for? >> Angus> http://doc.trolltech.com/3.3/qobject.html#blockSignals >> Angus> void QObject::blockSignal

Re: 2 questions regarding qt2 frontend

2005-05-11 Thread Jean-Marc Lasgouttes
> "Hammer" == Hammer Armin <[EMAIL PROTECTED]> writes: Hammer> Hi, I've seen in the Whishlist the usage of QSession Hammer> mentionend. It would be nice to store and retrieve the window Hammer> size and position. Is someone working on this? Hammer> I'm a bit out of practise using C++ but a co

Re: Fix invalid access in insetcommandparams.C

2005-05-11 Thread Jose' Matos
On Monday 09 May 2005 10:00, Lars Gullik Bjønnes wrote: > > You forgot your spaces: "i ? cmd[i - 1] : 0" I hate lots of annoying spaces that don't improve readability... :-( In this case that is a reflex of following the PEP-0008 (in python): http://www.python.org/peps/pep-0008.html Whitespa

Re: LyX 1.3 & MinGW on Win XP

2005-05-11 Thread Angus Leeming
Ekkehart Schlicht wrote: > under 5.1 there is an instruction with > (at) replaced by [EMAIL PROTECTED]. A hint how to do > this correctly would be nice for the newbie. > > Ekkehart That's because someone requested that gmane encrypt email addresses :( The detailed instructions are at http://ww

Re: 2 questions regarding qt2 frontend

2005-05-11 Thread Angus Leeming
Hammer Armin wrote: > Hi, > > I've seen in the Whishlist the usage of QSession mentionend. > It would be nice to store and retrieve the window size and > position. Is someone working on this? Nope. > I'm a bit out of practise using C++ but a could help. Excellent! > The other question concern

Re: [PATCH] shortcut

2005-05-11 Thread Jean-Marc Lasgouttes
> "John" == John Levon <[EMAIL PROTECTED]> writes: >> Anyway, I let you take the final decision... John> It makes no sense as is, but at the same time people are used to John> it. Users are going to get a big shock at 1.4.0 (whenever that John> may be) for a large number of reasons, I don't s

LyX 1.3 & MinGW on Win XP

2005-05-11 Thread Ekkehart Schlicht
under 5.1 there is an instruction with (at) replaced by [EMAIL PROTECTED]. A hint how to do this correctly would be nice for the newbie. Ekkehart

Re: LyX meeting in Paris. When?

2005-05-11 Thread Asger Alstrup
Lars Gullik Bjønnes wrote: Asger Ottar Alstrup <[EMAIL PROTECTED]> writes: | Jean-Marc Lasgouttes wrote: Jul 16Jul 23Jul 30 Aug 06 JMarc 5 5 5 5 Jose' 5 5 0 0 Lars 4 4 5 5 Michael5 0

LyX 1.3 & MinGW on Win XP

2005-05-11 Thread Ekkehart Schlicht
Thanks. This is a great idea. I noticed that links don't work. You have to remove the colons at the end of the url's. Ekkehart

Final [Patch] nested updates

2005-05-11 Thread Martin Vermeer
On Tue, 2005-05-10 at 10:35, Lars Gullik BjÃnnes wrote: > Martin Vermeer <[EMAIL PROTECTED]> writes: > > I think this looks good, if you can get somebody else to test it to > verify your claims :-) then it should be committed. > > But please just get rid of the commented "processEvente"s. I will