| Summary: | Gallery: how to implement pagewise keyboard scrolling | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| Product: | z_Archived | Reporter: | Robert Handschmann <robert.handschmann> | ||||||||
| Component: | Nebula | Assignee: | Nicolas Richeton <nicolas.richeton> | ||||||||
| Status: | CLOSED FIXED | QA Contact: | |||||||||
| Severity: | minor | ||||||||||
| Priority: | P1 | Keywords: | plan | ||||||||
| Version: | unspecified | ||||||||||
| Target Milestone: | --- | ||||||||||
| Hardware: | PC | ||||||||||
| OS: | Windows XP | ||||||||||
| Whiteboard: | |||||||||||
| Attachments: |
|
||||||||||
|
Description
Robert Handschmann
I'd love to see this feature myself. I don't think there is a high-level method for exactly what you want, but it won't be hard to write. Look at Gallery.getVisibleItems(Rectangle) for inspiration. Also, keep in mind that the scroll bar scale is exact pixels. If all you want to do is move the scroll bar by one page, you could manipulate the scroll bar directly. If you want to move the selection (which is probably a better idea), find the current selection and iterate over the items until you find one at the appropriate distance. I implemented the keys HOME, END, PAGE_UP and PAGE_DOWN. I tested it in my application that uses the NoGroupRenderer. The changed classes are attached. Created attachment 87419 [details]
Changed classes based on a nightly build from 18.1.2008
Ok, I've applied the patch. It works great but with several groups (DefaultGroupRenderer), we cannot reach the top or the bottom of the gallery using only PageUp and PageDown. This has yet to be fixed. Robert : Thanks for the patch. Created attachment 116729 [details]
mylyn/context/zip
Fixed the remaining issues with DefaultGroupRenderer. CVS > 20090417. Created attachment 132232 [details]
mylyn/context/zip
Closing this bug |