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

List:       koffice-devel
Subject:    Re: Jr Job - PageUp PageDown
From:       Boudewijn Rempt <boud () valdyas ! org>
Date:       2010-07-26 5:47:18
Message-ID: 201007260747.19100.boud () valdyas ! org
[Download RAW message or body]

On Sunday 25 July 2010, Cochise wrote:
> Hi, my name is Cochise. I'm a brazilian and intent help to make a better
> koffice.

Hi! Welcome!

> I'm looking the junior job of implement page up and page down keys.

Erm... I'm not sure that this is actually really a junior job. This bug has 
been reported about a year ago, and if it were something relatively simple, 
then I guess the KWord maintainer (who is on holiday now) would have fixed it 
a long time ago. It's such a basic thing to support...

> Well, the movimentation of cursor is implemented in a script, right?

No, it's not a script. The texttool implements the cursor movement. But since 
the text shape knows nothing about the page or the visible area of the text, 
it's quite hard to figure out how to scroll a viewport-sized amount of lines.

> The
> plugin TextCursor uses the QTextCursor moves but a pageup/down
> implementation its not directly possible, because is necessary know the
> height of the canvas. In qt libs the pageup/down is in QTextEdit e consists
> in repeat the up/down until go the other screen.
> My questions. In a plugin is possible know the height of canvas? How? If
> not the function need to be implemented on the main source creating a
> inconsistency.
> A bad workaround is implement on the TextCursor a fix number of lines to
> scrool.

I haven't got a clear answer for you, I'd need to dig in this code myself as 
well, I'm afraid. If you want to do something easier in the meantime, there 
are some other issues -- only bugs.kde.org is down right now so it's hard to 
figure something out!

-- 
Boudewijn Rempt | http://www.valdyas.org
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

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