]> SALOME platform Git repositories - modules/gui.git/commitdiff
Salome HOME
test special interaction style pre/V7_8_BR
authorPaul RASCLE <paul.rascle@edf.fr>
Fri, 4 Nov 2016 12:41:11 +0000 (13:41 +0100)
committerPaul RASCLE <paul.rascle@edf.fr>
Fri, 4 Nov 2016 12:41:11 +0000 (13:41 +0100)
src/SUIT/SUIT_ViewModel.cxx

index 5e74e75beafbbb161dee9b3c594063845ce4598d..a7712fb70cf4b1d6e1634e9c6998591f6c5c6d53 100755 (executable)
@@ -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
   }