Jean-Marc Lasgouttes wrote:
"Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes:

 Where does it explain that it is faster? I did not find it.

Abdelrazak> _I_ explained to you above ;-)

So you just tried to see what happens and saw it is faster, right? But
does trolltech recommend to use this interface for plain drawing? As
they tell it, it looks like a way to save files.

Here is what I understand:

LyX use Qt like an pixmap oriented image editing tool would do: it does painting operations one on top of the other without any notion of layers. When LyX wants to erase some part of the screen, it paint an opaque rectangle on top of what is there.

What I am suggesting is to use Qt as a vector based drawing tool. If some part of the screen needs to be erased, we just tell the internal QPicture to delete all recorded operations corresponding to that rectangle.

This is not easy. It is a completely changing of philosophy and one has to analyse LyX internals to see if we can adapt it to that philosophy.

What I want to understand is what is the part that works. That would
probably tell us what we are doing wrong.

Painting text is working but nothing is deleted. The way we pass the coordinate needs to be changed also as everything seems to be painted in the middle of the screen.

Abdel.

Abdelrazak> _I_ think it is faster because of there is only one pixmap
Abdelrazak> drawing.

OK.

JMarc


Reply via email to