changeset 1256:771913258728

more keyboard key mappings
author Alain Mazy <alain@mazy.be>
date Thu, 09 Jan 2020 15:24:43 +0100
parents 8f6c2f9d0fe2
children 6af941a68472
files Applications/Qt/QCairoWidget.cpp Framework/Radiography/RadiographyWidget.cpp Framework/StoneEnumerations.h
diffstat 3 files changed, 28 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/Applications/Qt/QCairoWidget.cpp	Fri Dec 20 15:50:24 2019 +0100
+++ b/Applications/Qt/QCairoWidget.cpp	Thu Jan 09 15:24:43 2020 +0100
@@ -181,6 +181,18 @@
       CASE_QT_KEY_TO_ORTHANC(Qt::Key_Down, KeyboardKeys_Down);
       CASE_QT_KEY_TO_ORTHANC(Qt::Key_Left, KeyboardKeys_Left);
       CASE_QT_KEY_TO_ORTHANC(Qt::Key_Right, KeyboardKeys_Right);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F1, KeyboardKeys_F1);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F2, KeyboardKeys_F2);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F3, KeyboardKeys_F3);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F4, KeyboardKeys_F4);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F5, KeyboardKeys_F5);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F6, KeyboardKeys_F6);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F7, KeyboardKeys_F7);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F8, KeyboardKeys_F8);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F9, KeyboardKeys_F9);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F10, KeyboardKeys_F10);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F11, KeyboardKeys_F11);
+      CASE_QT_KEY_TO_ORTHANC(Qt::Key_F12, KeyboardKeys_F12);
     default:
       break;
     }
--- a/Framework/Radiography/RadiographyWidget.cpp	Fri Dec 20 15:50:24 2019 +0100
+++ b/Framework/Radiography/RadiographyWidget.cpp	Thu Jan 09 15:24:43 2020 +0100
@@ -191,6 +191,8 @@
   void RadiographyWidget::Unselect()
   {
     hasSelection_ = false;
+
+    NotifyContentChanged();
     BroadcastMessage(SelectionChangedMessage(*this));
   }
 
--- a/Framework/StoneEnumerations.h	Fri Dec 20 15:50:24 2019 +0100
+++ b/Framework/StoneEnumerations.h	Thu Jan 09 15:24:43 2020 +0100
@@ -100,7 +100,20 @@
     KeyboardKeys_Up = 38,
     KeyboardKeys_Right = 39,
     KeyboardKeys_Down = 40,
-    KeyboardKeys_Delete = 46
+    KeyboardKeys_Delete = 46,
+
+    KeyboardKeys_F1 = 112,
+    KeyboardKeys_F2 = 113,
+    KeyboardKeys_F3 = 114,
+    KeyboardKeys_F4 = 115,
+    KeyboardKeys_F5 = 116,
+    KeyboardKeys_F6 = 117,
+    KeyboardKeys_F7 = 118,
+    KeyboardKeys_F8 = 119,
+    KeyboardKeys_F9 = 120,
+    KeyboardKeys_F10 = 121,
+    KeyboardKeys_F11 = 122,
+    KeyboardKeys_F12 = 123,
   };
 
   enum SopClassUid