From 359fd4dd6e07be02c6198cbef92eb94c71a40d9e Mon Sep 17 00:00:00 2001 From: Paul RASCLE Date: Fri, 4 Nov 2016 13:41:11 +0100 Subject: [PATCH] test special interaction style --- src/SUIT/SUIT_ViewModel.cxx | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/src/SUIT/SUIT_ViewModel.cxx b/src/SUIT/SUIT_ViewModel.cxx index 5e74e75be..a7712fb70 100755 --- a/src/SUIT/SUIT_ViewModel.cxx +++ b/src/SUIT/SUIT_ViewModel.cxx @@ -51,15 +51,24 @@ SUIT_ViewModel::SUIT_ViewModel() SUIT_ViewModel::myButtonMap[STANDARD][FIT_AREA] = Qt::RightButton; // "key free" interaction style - SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::NoModifier; - SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::RightButton; + SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::ControlModifier; + SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::LeftButton; - SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::NoModifier; - SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::MidButton; + SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::AltModifier; + SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::LeftButton; - SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::NoModifier; + SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::ShiftModifier; SUIT_ViewModel::myButtonMap[KEY_FREE][ROTATE] = Qt::LeftButton; +// SUIT_ViewModel::myStateMap[KEY_FREE][ZOOM] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][ZOOM] = Qt::RightButton; +// +// SUIT_ViewModel::myStateMap[KEY_FREE][PAN] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][PAN] = Qt::MidButton; +// +// SUIT_ViewModel::myStateMap[KEY_FREE][ROTATE] = Qt::NoModifier; +// SUIT_ViewModel::myButtonMap[KEY_FREE][ROTATE] = Qt::LeftButton; + SUIT_ViewModel::myStateMap[KEY_FREE][FIT_AREA] = Qt::NoModifier; // unused SUIT_ViewModel::myButtonMap[KEY_FREE][FIT_AREA] = Qt::NoButton; // unused } -- 2.39.2