[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice
Subject:    Re: How can I write KWord/KOffice part, which redraws itself very slowly
From:       Werner Trobin <trobin () kde ! org>
Date:       2001-01-20 17:28:26
[Download RAW message or body]

Kamil Dobkowski wrote:
> 
> Hi !
> I have a problem. My KoPart redraws itself very slowly ( 3d surface ). Under
> normal conditions this operation is performed in little parts from a
> background handler function, but when the part is embendded in KWord
> it must be done in a single function call. What should I do ? KWord requests
> redrawing each time I touch a slider. I tried to buffer the contents in a
> pixmap but I don't know how to find out if the part is rendered on
> screen or if it is printed ( I can't print the pixmap, looks ugly ! ) .
> Pixmap-buffering doesn't work well too. KWord buffers page in QPicture,
> QPicture has fixed 24 bit depth, so when I create bitmap with the default
> screen depth ( 16-bit ) I get following operations: painting on the picture -
> convert bitmap depth from 16 to 24, painting a picture on screen - convert
> bitmap depth from 24 to 16. Even my K6/400 with a local X-server dies, when
> scrolling document with a few such parts embedded.It would be perfect if I
> had my own widget for on-screen rendering, but it seems to be impossible.
> Uff ! I have no more ideas. Are there any other solutions ?

Sad but true -- not possible in KOffice. Yet. I plan to do some
brainstorming today and tomorrow with some KOffice core developers
because this is a known problem. There are also a few others and
I hope we can extend our framework that it also works for your
specific problem. Please stay tuned :)

-- 
Werner Trobin - trobin@kde.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic