Re: cursor in math

2006-11-29 Thread Abdelrazak Younes
Looks like I forgot to send this answer... Andre Poenitz wrote: On Sat, Nov 25, 2006 at 11:37:29AM +0100, Abdelrazak Younes wrote: You misunderstood the problem. Probably. Drawing math is not faster nor slower than the rest. What's problematic is to have to redraw when navigating with the m

Re: cursor in math

2006-11-28 Thread Andre Poenitz
On Sat, Nov 25, 2006 at 11:37:29AM +0100, Abdelrazak Younes wrote: > You misunderstood the problem. Probably. > Drawing math is not faster nor slower than the rest. What's > problematic is to have to redraw when navigating with the mouse or the > keyboard. We don't need to redraw for other insets

Re: cursor in math

2006-11-28 Thread Andre Poenitz
On Sun, Nov 26, 2006 at 12:09:47AM +0100, Enrico Forestieri wrote: > Please not. I think that if your formula doesn't fit on screen, even > after enlarging the window to full screen size, chances are that it > will not fit on paper, too. That's not true if you use a lot of ERT in math. \rightleftd

Re: cursor in math

2006-11-25 Thread Abdelrazak Younes
Enrico Forestieri wrote: On Sat, Nov 25, 2006 at 11:37:29AM +0100, Abdelrazak Younes wrote: Andre Poenitz wrote: [...] Another solution would be line breaks within a cell that are only stored in the lyx file and get not exported (or turned into something harmless) when exporting to .tex (the

Re: cursor in math

2006-11-25 Thread Enrico Forestieri
On Sat, Nov 25, 2006 at 11:37:29AM +0100, Abdelrazak Younes wrote: > Andre Poenitz wrote: [...] > > Another solution would be line breaks within a cell that are only stored > > in the lyx file and get not exported (or turned into something harmless) > > when exporting to .tex (the latter to give t

Re: cursor in math

2006-11-25 Thread Abdelrazak Younes
Andre Poenitz wrote: On Wed, Nov 22, 2006 at 03:59:42PM +0100, Abdelrazak Younes wrote: OK, space is not a good idea. But what about different background colors? Might work. But I guess you'll end up with situations where the cursor is just on the border and if you have background colors indep

Re: cursor in math

2006-11-25 Thread Andre Poenitz
On Wed, Nov 22, 2006 at 12:08:03PM +0100, Abdelrazak Younes wrote: > The problem is that displaying it would provoke a full redraw and > repaint. I think it is OK if we don't displayed it when clicking but > only when typing characters. This is a good compromise for performance > IMHO as you don

Re: cursor in math

2006-11-25 Thread Andre Poenitz
On Wed, Nov 22, 2006 at 03:59:42PM +0100, Abdelrazak Younes wrote: > OK, space is not a good idea. But what about different background colors? Might work. But I guess you'll end up with situations where the cursor is just on the border and if you have background colors independently from the logic

Re: cursor in math

2006-11-25 Thread Andre Poenitz
On Wed, Nov 22, 2006 at 03:47:26PM +0100, Georg Baum wrote: > Abdelrazak Younes wrote: > > > I'll put them back. But it would be very nice to find some other > > solution... > > I don't think so. The box corners have the advantage that they consume very > little space and yet make it very clear w

Re: cursor in math

2006-11-25 Thread Andre Poenitz
On Wed, Nov 22, 2006 at 01:38:25PM +0100, Edwin Leuven wrote: > (are there situations where the cursor position is not enough? if not > then we could get rid of these boxes altogether?) Sure. There are cases where cursor positions vary only by a pixel or so but it's structually differnt. The pink

Re: cursor in math

2006-11-23 Thread Jean-Marc Lasgouttes
> "Georg" == Georg Baum <[EMAIL PROTECTED]> writes: Georg> Abdelrazak Younes wrote: >> I'll put them back. But it would be very nice to find some other >> solution... Georg> I don't think so. The box corners have the advantage that they Georg> consume very little space and yet make it very cl

Re: cursor in math

2006-11-22 Thread Georg Baum
Edwin Leuven wrote: > Abdelrazak Younes wrote: >> >>> \mathbf{\large xxx}} >>> >>> >>> is equally effective in crashing lyx... >> >> Would it be because of the trailing '}'? Maybe LyX has some problems to >> interpret that... > > well spotted! Indeed. I was out of coffee when I wrote the exampl

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Abdelrazak Younes wrote: \mathbf{\large xxx}} is equally effective in crashing lyx... Would it be because of the trailing '}'? Maybe LyX has some problems to interpret that... well spotted! I do anyway ;-). did you crash? ;-)

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Edwin Leuven wrote: Georg Baum wrote: copy-pasting \mathbf{\bigg xxx}} in a math inset is a very effective way to crash lyx btw... Of course it should not crash. And I am surprised that I wrote \bigg, I wanted to write a font size change, e.g. \large. well, copy-pasting \mathbf{\large xxx

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Georg Baum wrote: copy-pasting \mathbf{\bigg xxx}} in a math inset is a very effective way to crash lyx btw... Of course it should not crash. And I am surprised that I wrote \bigg, I wanted to write a font size change, e.g. \large. well, copy-pasting \mathbf{\large xxx}} is equally effec

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Georg Baum wrote: Abdelrazak Younes wrote: I'll put them back. But it would be very nice to find some other solution... I don't think so. The box corners have the advantage that they consume very little space and yet make it very clear where an inset ends. If you replace that by a small space

Re: cursor in math

2006-11-22 Thread Georg Baum
Edwin Leuven wrote: > Georg Baum wrote: > > Yes, it is needed. Guess why the box was introduced? because it is >> impossible to tell where exactly your are without it. It makes a big >> difference if you enter the next character before or after the \mathbf in >> \mathbf{\bigg xxx}}. You cannot d

Re: cursor in math

2006-11-22 Thread Georg Baum
Abdelrazak Younes wrote: > I'll put them back. But it would be very nice to find some other > solution... I don't think so. The box corners have the advantage that they consume very little space and yet make it very clear where an inset ends. If you replace that by a small space you will need far

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: You mean that you prefer that the box corners stay? we need them to place the cursor correctly, so it looks like we don't have much of a choice atm right? Right. I'll put them back. But it would be very nice to find some other solution... Abdel

Re: cursor in math

2006-11-22 Thread Enrico Forestieri
On Wed, Nov 22, 2006 at 03:05:41PM +0100, Abdelrazak Younes wrote: > Edwin Leuven wrote: > >Abdelrazak Younes wrote: > >>As it is now, no way. We have to redraw everything. > > > >so be it. > > You mean that you prefer that the box corners stay? me too ;-) > >can we still get rid of the blinking

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Abdelrazak Younes wrote: You mean that you prefer that the box corners stay? we need them to place the cursor correctly, so it looks like we don't have much of a choice atm right?

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: As it is now, no way. We have to redraw everything. so be it. You mean that you prefer that the box corners stay? can we still get rid of the blinking cursor at the beginning of the inset? Maybe, I am not sure. Abdel.

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Abdelrazak Younes wrote: As it is now, no way. We have to redraw everything. so be it. can we still get rid of the blinking cursor at the beginning of the inset? PS if i selecting something in a math inset and then move the cursor right or left the selection is not cleared Indeed, I will

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: also the "box" around the math inset is not always displayed when clicking there The problem is that displaying it would provoke a full redraw and repaint. I think it is OK if we don't displayed it when clicking but only when typing characters.

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Georg Baum wrote: Edwin Leuven wrote: Abdelrazak Younes wrote: The problem is that displaying it would provoke a full redraw and repaint. I think it is OK if we don't displayed it when clicking but only when typing characters. This is a good compromise for performance IMHO as you don't really

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Georg Baum wrote: > Yes, it is needed. Guess why the box was introduced? because it is impossible to tell where exactly your are without it. It makes a big difference if you enter the next character before or after the \mathbf in \mathbf{\bigg xxx}}. You cannot distinguis these two positions wit

Re: cursor in math

2006-11-22 Thread Georg Baum
Edwin Leuven wrote: > Abdelrazak Younes wrote: >> The problem is that displaying it would provoke a full redraw and >> repaint. I think it is OK if we don't displayed it when clicking but >> only when typing characters. This is a good compromise for >> performance IMHO as you don't really need th

Re: cursor in math

2006-11-22 Thread Edwin Leuven
Abdelrazak Younes wrote: sometimes the cursor flashes at the beginning of the inset, double clicking always flashes the cursor at the beginning > LFUN_MOUSE_MOTION needs to be optimized also so that no redraw happens if there is no selection (or no additional selection). LFUN_DOUBLE_CLICK needs

Re: cursor in math

2006-11-22 Thread Abdelrazak Younes
Edwin Leuven wrote: Abdelrazak Younes wrote: Edwin Leuven wrote: always moves first to the beginning of the inset before showning up at the right place on mouse click (hope this is clear) The attached patch fixes this and avoid many redrawing following mouse or keyboard navigation (using a