add GtkSwipeGesture support and implement swipe left/right to change slides

Desktop / LibreOffice - Caolán McNamara [redhat.com] - 26 March 2015 04:14 UTC

keep it simple for now.

deliver to the same target window that gets the MouseWheel events, maybe worth combining MouseWheel and Gestures into the same thing

and use it in slideshows so swipe toward the left to advance to the next slide, to the right to return to the previous slide.

swipes are followed by mouse up events, impress already has a similar hack to hide an mouse-up from the (incredibly complicated) interaction with the slideshow so simply use that

903a420 add GtkSwipeGesture support and implement swipe left/right to change slides
include/vcl/cmdevt.hxx | 30 +++++++++--
sd/source/ui/inc/slideshow.hxx | 2 +
sd/source/ui/slideshow/slideshow.cxx | 5 ++
sd/source/ui/slideshow/slideshowimpl.cxx | 21 ++++++++
sd/source/ui/slideshow/slideshowimpl.hxx | 1 +
sd/source/ui/view/viewshel.cxx | 10 ++++
vcl/inc/salwtype.hxx | 10 ++++
vcl/inc/unx/gtk/gtkframe.hxx | 3 ++
vcl/source/window/winproc.cxx | 83 +++++++++++++++++++++++++-----
vcl/unx/gtk/window/gtksalframe.cxx | 30 +++++++++++
10 files changed, 178 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share