Summary: | Multitouch gesture support | ||
---|---|---|---|
Product: | [Tools] GEF | Reporter: | Zoltan Ujhelyi <zoltan.ujhelyi> |
Component: | GEF-Legacy Zest | Assignee: | gef-inbox <gef-inbox> |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | P3 | CC: | steeg |
Version: | unspecified | ||
Target Milestone: | --- | ||
Hardware: | PC | ||
OS: | Mac OS X - Carbon (unsup.) | ||
Whiteboard: | |||
Bug Depends on: | 371314 | ||
Bug Blocks: |
Description
Zoltan Ujhelyi
2012-02-09 17:43:17 EST
Very cool! Since there are no immediate formal release plans for Zest 2.0, I'd say you can push any pieces that you feel are useful on their own to the master. For incomplete stuff you could just push to a feature branch at the eclipse.org repo - or work on GitHub, if you prefer. A solution I believe is close to be finished is available in the multitouch branch. This adds automatically support for zoom and rotation gestures. For zooming, the ZoomManager component is moved from the JFace API to the SWT API - this adds direct zooming support to Graph widgets (not only GraphViewers), and does it consistently with the zoom gestures. Rotation gestures either rotate the all nodes of the graph, or just the selected nodes around their geometric center. A known issue with rotation gestures, that they do not work on in Eclipse 3.7 on OSX 64 bit (see bug 349812). It is already fixed for Juno. In order to support extensions, both gestures are supported using different GestureListeners, that are added by default to the Zest graphs. However, if you use the ZestStyles.GESTURES_DISABLED, these default listeners are not added, and you could replace them with your own. I believe, the contribution is close to complete, but it would be nice if someone else could test it a bit; I am not entirely sure about the usefulness of rotation gestures. I wait a few days before I merge the changes into the master branch, and then close the ticket as fixed (unless there are some objections). (In reply to comment #2) I gave it a try and this is really cool, in particular this: > Rotation gestures either rotate the all nodes of the graph, or just the > selected nodes around their geometric center. The consistent pinch to zoom on widgets and viewers is really useful. I think both gestures add some very intuitive ways to interact with Zest graphs when using a multitouch input device. Thanks for testing. I added an explicit dependency to SWT 3.7, as multitouch gestures are only added then, and merged the changes back to master. |