Mercurial > hg > orthanc-stone
comparison Applications/Samples/SimpleViewer/ThumbnailInteractor.cpp @ 457:3b4df9925db6 am-touch-events
added support for 'touch' in mouse trackers. This is still a bit hacky and we need to refactor it to make it clean. Thanks to that, Pan and zoom are available together with 2 touches
author | Alain Mazy <alain@mazy.be> |
---|---|
date | Thu, 24 Jan 2019 16:42:27 +0100 |
parents | b70e9be013e4 |
children | 4f2416d519b4 |
comparison
equal
deleted
inserted
replaced
456:b70fcc134ba4 | 457:3b4df9925db6 |
---|---|
30 KeyboardModifiers modifiers, | 30 KeyboardModifiers modifiers, |
31 int viewportX, | 31 int viewportX, |
32 int viewportY, | 32 int viewportY, |
33 double x, | 33 double x, |
34 double y, | 34 double y, |
35 IStatusBar* statusBar) | 35 IStatusBar* statusBar, |
36 const std::vector<Touch>& displayTouches) | |
36 { | 37 { |
37 if (button == MouseButton_Left) | 38 if (button == MouseButton_Left) |
38 { | 39 { |
39 statusBar->SetMessage("selected thumbnail " + widget.GetName()); | 40 statusBar->SetMessage("selected thumbnail " + widget.GetName()); |
40 std::string seriesId = widget.GetName().substr(strlen("thumbnail-series-")); | 41 std::string seriesId = widget.GetName().substr(strlen("thumbnail-series-")); |