diff options
author | Povilas Kanapickas <povilas@radix.lt> | 2022-09-02 00:04:41 +0300 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-09-05 16:21:49 +0200 |
commit | 35319adcc28f197b73e146f9ba233e20616fd11f (patch) | |
tree | 41bf3dcd9461d15d5886cee77e4cf07a9fd51418 /include | |
parent | 231342ef6a913f0a5c9dfea3bd28830e92a3fc98 (diff) |
vcl: Rename Swipe event to GestureSwipe
We have 5 gesture types: GestureZoom, GestureRotate, GesturePan, Swipe
and LongPress. For consistency all of these will use Gesture as a prefix
to reduce confusion and for easier grepping throughout the codebase.
Change-Id: I8b9e245d011203a19c1172f9833c172f65382caa
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/139243
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/commandevent.hxx | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/include/vcl/commandevent.hxx b/include/vcl/commandevent.hxx index 9708ab818101..d8c2b702987e 100644 --- a/include/vcl/commandevent.hxx +++ b/include/vcl/commandevent.hxx @@ -38,7 +38,7 @@ class CommandModKeyData; class CommandDialogData; class CommandMediaData; class CommandSelectionChangeData; -class CommandSwipeData; +class CommandGestureSwipeData; class CommandLongPressData; class CommandGesturePanData; class CommandGestureZoomData; @@ -91,7 +91,7 @@ public: const CommandDialogData* GetDialogData() const; CommandMediaData* GetMediaData() const; const CommandSelectionChangeData* GetSelectionChangeData() const; - const CommandSwipeData* GetSwipeData() const; + const CommandGestureSwipeData* GetGestureSwipeData() const; const CommandLongPressData* GetLongPressData() const; const CommandGesturePanData* GetGesturePanData() const; const CommandGestureZoomData* GetGestureZoomData() const; @@ -275,15 +275,15 @@ public: sal_uLong GetEnd() const { return mnEnd; } }; -class VCL_DLLPUBLIC CommandSwipeData +class VCL_DLLPUBLIC CommandGestureSwipeData { double mnVelocityX; public: - CommandSwipeData() + CommandGestureSwipeData() : mnVelocityX(0) { } - CommandSwipeData(double nVelocityX) + CommandGestureSwipeData(double nVelocityX) : mnVelocityX(nVelocityX) { } @@ -383,7 +383,7 @@ enum class CommandEventId SelectionChange = 18, PrepareReconversion = 19, QueryCharPosition = 20, - Swipe = 21, + GestureSwipe = 21, LongPress = 22, GesturePan = 23, GestureZoom = 24, |