Mercurial > octave
annotate libgui/graphics/KeyMap.cc @ 29992:6ea4a84df9c7
rename QtHandles namespace to octave
To simplify the codebase, replace QtHandles top-level namespace by
octave. Since the header files for the Qt graphics code are not
installed, this change shouldn't cause trouble for any external
packages so we shouldn't need to provide an alias, even temporarily.
Modified files: BaseControl.cc, BaseControl.h, ButtonControl.cc,
ButtonControl.h, ButtonGroup.cc, ButtonGroup.h, Canvas.cc, Canvas.h,
CheckBoxControl.cc, CheckBoxControl.h, Container.cc, Container.h,
ContextMenu.cc, ContextMenu.h, EditControl.cc, EditControl.h,
Figure.cc, Figure.h, FigureWindow.cc, FigureWindow.h, GLCanvas.cc,
GLCanvas.h, GenericEventNotify.h, KeyMap.cc, KeyMap.h,
ListBoxControl.cc, ListBoxControl.h, Logger.cc, Logger.h, Menu.cc,
Menu.h, MenuContainer.h, Object.cc, Object.h, ObjectProxy.cc,
ObjectProxy.h, Panel.cc, Panel.h, PopupMenuControl.cc,
PopupMenuControl.h, PushButtonControl.cc, PushButtonControl.h,
PushTool.cc, PushTool.h, QtHandlesUtils.cc, QtHandlesUtils.h,
RadioButtonControl.cc, RadioButtonControl.h, SliderControl.cc,
SliderControl.h, Table.cc, Table.h, TextControl.cc, TextControl.h,
TextEdit.cc, TextEdit.h, ToggleButtonControl.cc,
ToggleButtonControl.h, ToggleTool.cc, ToggleTool.h, ToolBar.cc,
ToolBar.h, ToolBarButton.cc, ToolBarButton.h, annotation-dialog.cc,
qt-graphics-toolkit.cc, qt-graphics-toolkit.h, and graphics-init.cc.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Wed, 18 Aug 2021 00:21:26 -0400 |
parents | 0a5b15007766 |
children | 796f54d4ddbf |
rev | line source |
---|---|
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
1 //////////////////////////////////////////////////////////////////////// |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
2 // |
29358
0a5b15007766
update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents:
27923
diff
changeset
|
3 // Copyright (C) 2011-2021 The Octave Project Developers |
27923
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
4 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
5 // See the file COPYRIGHT.md in the top-level directory of this |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
6 // distribution or <https://octave.org/copyright/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
7 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
8 // This file is part of Octave. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
9 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
10 // Octave is free software: you can redistribute it and/or modify it |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
11 // under the terms of the GNU General Public License as published by |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
12 // the Free Software Foundation, either version 3 of the License, or |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
13 // (at your option) any later version. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
14 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
15 // Octave is distributed in the hope that it will be useful, but |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
16 // WITHOUT ANY WARRANTY; without even the implied warranty of |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
18 // GNU General Public License for more details. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
19 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
20 // You should have received a copy of the GNU General Public License |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
21 // along with Octave; see the file COPYING. If not, see |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
22 // <https://www.gnu.org/licenses/>. |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
23 // |
bd51beb6205e
update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents:
27919
diff
changeset
|
24 //////////////////////////////////////////////////////////////////////// |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
26 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21203
diff
changeset
|
27 # include "config.h" |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 #endif |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
29 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
30 #include <QMap> |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 #include <Qt> |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 #include "KeyMap.h" |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
34 |
29992
6ea4a84df9c7
rename QtHandles namespace to octave
John W. Eaton <jwe@octave.org>
parents:
29358
diff
changeset
|
35 namespace octave |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
36 { |
22411
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
37 namespace KeyMap |
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
38 { |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
39 QMap<int, std::string> makeKeyMapper (void) |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
40 { |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
41 QMap<int, std::string> keyMapper; |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
42 |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
43 keyMapper[Qt::Key_Escape] = "escape"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
44 keyMapper[Qt::Key_Tab] = "tab"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
45 keyMapper[Qt::Key_Backtab] = "backtab"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
46 keyMapper[Qt::Key_Backspace] = "backspace"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
47 keyMapper[Qt::Key_Return] = "return"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
48 keyMapper[Qt::Key_Enter] = "enter"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
49 keyMapper[Qt::Key_Insert] = "insert"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
50 keyMapper[Qt::Key_Delete] = "delete"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
51 keyMapper[Qt::Key_Pause] = "pause"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
52 keyMapper[Qt::Key_Print] = "print"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
53 keyMapper[Qt::Key_SysReq] = "sysreq"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
54 keyMapper[Qt::Key_Clear] = "clear"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
55 keyMapper[Qt::Key_Home] = "home"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
56 keyMapper[Qt::Key_End] = "end"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
57 keyMapper[Qt::Key_Left] = "left"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
58 keyMapper[Qt::Key_Up] = "up"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
59 keyMapper[Qt::Key_Right] = "right"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
60 keyMapper[Qt::Key_Down] = "down"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
61 keyMapper[Qt::Key_PageUp] = "pageup"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
62 keyMapper[Qt::Key_PageDown] = "pagedown"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
63 keyMapper[Qt::Key_Shift] = "shift"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
64 keyMapper[Qt::Key_Control] = "control"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
65 keyMapper[Qt::Key_Meta] = "meta"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
66 keyMapper[Qt::Key_Alt] = "alt"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
67 keyMapper[Qt::Key_CapsLock] = "capslock"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
68 keyMapper[Qt::Key_NumLock] = "numlock"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
69 keyMapper[Qt::Key_ScrollLock] = "scrolllock"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
70 keyMapper[Qt::Key_F1] = "f1"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
71 keyMapper[Qt::Key_F2] = "f2"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
72 keyMapper[Qt::Key_F3] = "f3"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
73 keyMapper[Qt::Key_F4] = "f4"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
74 keyMapper[Qt::Key_F5] = "f5"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
75 keyMapper[Qt::Key_F6] = "f6"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
76 keyMapper[Qt::Key_F7] = "f7"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
77 keyMapper[Qt::Key_F8] = "f8"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
78 keyMapper[Qt::Key_F9] = "f9"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
79 keyMapper[Qt::Key_F10] = "f10"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
80 keyMapper[Qt::Key_F11] = "f11"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
81 keyMapper[Qt::Key_F12] = "f12"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
82 keyMapper[Qt::Key_F13] = "f13"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
83 keyMapper[Qt::Key_F14] = "f14"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
84 keyMapper[Qt::Key_F15] = "f15"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
85 keyMapper[Qt::Key_F16] = "f16"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
86 keyMapper[Qt::Key_F17] = "f17"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
87 keyMapper[Qt::Key_F18] = "f18"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
88 keyMapper[Qt::Key_F19] = "f19"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
89 keyMapper[Qt::Key_F20] = "f20"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
90 keyMapper[Qt::Key_F21] = "f21"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
91 keyMapper[Qt::Key_F22] = "f22"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
92 keyMapper[Qt::Key_F23] = "f23"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
93 keyMapper[Qt::Key_F24] = "f24"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
94 keyMapper[Qt::Key_F25] = "f25"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
95 keyMapper[Qt::Key_F26] = "f26"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
96 keyMapper[Qt::Key_F27] = "f27"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
97 keyMapper[Qt::Key_F28] = "f28"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
98 keyMapper[Qt::Key_F29] = "f29"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
99 keyMapper[Qt::Key_F30] = "f30"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
100 keyMapper[Qt::Key_F31] = "f31"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
101 keyMapper[Qt::Key_F32] = "f32"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
102 keyMapper[Qt::Key_F33] = "f33"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
103 keyMapper[Qt::Key_F34] = "f34"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
104 keyMapper[Qt::Key_F35] = "f35"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
105 keyMapper[Qt::Key_Super_L] = "super_l"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
106 keyMapper[Qt::Key_Super_R] = "super_r"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
107 keyMapper[Qt::Key_Menu] = "menu"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
108 keyMapper[Qt::Key_Hyper_L] = "hyper_l"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
109 keyMapper[Qt::Key_Hyper_R] = "hyper_r"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
110 keyMapper[Qt::Key_Help] = "help"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
111 keyMapper[Qt::Key_Direction_L] = "direction_l"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
112 keyMapper[Qt::Key_Direction_R] = "direction_r"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
113 keyMapper[Qt::Key_Space] = "space"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
114 keyMapper[Qt::Key_Exclam] = "exclam"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
115 keyMapper[Qt::Key_QuoteDbl] = "quotedbl"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
116 keyMapper[Qt::Key_NumberSign] = "numbersign"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
117 keyMapper[Qt::Key_Dollar] = "dollar"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
118 keyMapper[Qt::Key_Percent] = "percent"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
119 keyMapper[Qt::Key_Ampersand] = "ampersand"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
120 keyMapper[Qt::Key_Apostrophe] = "apostrophe"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
121 keyMapper[Qt::Key_ParenLeft] = "parenleft"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
122 keyMapper[Qt::Key_ParenRight] = "parenright"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
123 keyMapper[Qt::Key_Asterisk] = "asterisk"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
124 keyMapper[Qt::Key_Plus] = "plus"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
125 keyMapper[Qt::Key_Comma] = "comma"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
126 keyMapper[Qt::Key_Minus] = "minus"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
127 keyMapper[Qt::Key_Period] = "period"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
128 keyMapper[Qt::Key_Slash] = "slash"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
129 keyMapper[Qt::Key_0] = "0"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
130 keyMapper[Qt::Key_1] = "1"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
131 keyMapper[Qt::Key_2] = "2"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
132 keyMapper[Qt::Key_3] = "3"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
133 keyMapper[Qt::Key_4] = "4"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
134 keyMapper[Qt::Key_5] = "5"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
135 keyMapper[Qt::Key_6] = "6"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
136 keyMapper[Qt::Key_7] = "7"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
137 keyMapper[Qt::Key_8] = "8"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
138 keyMapper[Qt::Key_9] = "9"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
139 keyMapper[Qt::Key_Colon] = "colon"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
140 keyMapper[Qt::Key_Semicolon] = "semicolon"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
141 keyMapper[Qt::Key_Less] = "less"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
142 keyMapper[Qt::Key_Equal] = "equal"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
143 keyMapper[Qt::Key_Greater] = "greater"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
144 keyMapper[Qt::Key_Question] = "question"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
145 keyMapper[Qt::Key_At] = "at"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
146 keyMapper[Qt::Key_A] = "a"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
147 keyMapper[Qt::Key_B] = "b"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
148 keyMapper[Qt::Key_C] = "c"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
149 keyMapper[Qt::Key_D] = "d"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
150 keyMapper[Qt::Key_E] = "e"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
151 keyMapper[Qt::Key_F] = "f"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
152 keyMapper[Qt::Key_G] = "g"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
153 keyMapper[Qt::Key_H] = "h"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
154 keyMapper[Qt::Key_I] = "i"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
155 keyMapper[Qt::Key_J] = "j"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
156 keyMapper[Qt::Key_K] = "k"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
157 keyMapper[Qt::Key_L] = "l"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
158 keyMapper[Qt::Key_M] = "m"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
159 keyMapper[Qt::Key_N] = "n"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
160 keyMapper[Qt::Key_O] = "o"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
161 keyMapper[Qt::Key_P] = "p"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
162 keyMapper[Qt::Key_Q] = "q"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
163 keyMapper[Qt::Key_R] = "r"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
164 keyMapper[Qt::Key_S] = "s"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
165 keyMapper[Qt::Key_T] = "t"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
166 keyMapper[Qt::Key_U] = "u"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
167 keyMapper[Qt::Key_V] = "v"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
168 keyMapper[Qt::Key_W] = "w"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
169 keyMapper[Qt::Key_X] = "x"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
170 keyMapper[Qt::Key_Y] = "y"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
171 keyMapper[Qt::Key_Z] = "z"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
172 keyMapper[Qt::Key_BracketLeft] = "bracketleft"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
173 keyMapper[Qt::Key_Backslash] = "backslash"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
174 keyMapper[Qt::Key_BracketRight] = "bracketright"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
175 keyMapper[Qt::Key_AsciiCircum] = "asciicircum"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
176 keyMapper[Qt::Key_Underscore] = "underscore"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
177 keyMapper[Qt::Key_QuoteLeft] = "quoteleft"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
178 keyMapper[Qt::Key_BraceLeft] = "braceleft"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
179 keyMapper[Qt::Key_Bar] = "bar"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
180 keyMapper[Qt::Key_BraceRight] = "braceright"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
181 keyMapper[Qt::Key_AsciiTilde] = "asciitilde"; |
22411
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
182 |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
183 keyMapper[Qt::Key_nobreakspace] = "nobreakspace"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
184 keyMapper[Qt::Key_exclamdown] = "exclamdown"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
185 keyMapper[Qt::Key_cent] = "cent"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
186 keyMapper[Qt::Key_sterling] = "sterling"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
187 keyMapper[Qt::Key_currency] = "currency"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
188 keyMapper[Qt::Key_yen] = "yen"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
189 keyMapper[Qt::Key_brokenbar] = "brokenbar"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
190 keyMapper[Qt::Key_section] = "section"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
191 keyMapper[Qt::Key_diaeresis] = "diaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
192 keyMapper[Qt::Key_copyright] = "copyright"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
193 keyMapper[Qt::Key_ordfeminine] = "ordfeminine"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
194 keyMapper[Qt::Key_guillemotleft] = "guillemotleft"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
195 keyMapper[Qt::Key_notsign] = "notsign"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
196 keyMapper[Qt::Key_hyphen] = "hyphen"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
197 keyMapper[Qt::Key_registered] = "registered"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
198 keyMapper[Qt::Key_macron] = "macron"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
199 keyMapper[Qt::Key_degree] = "degree"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
200 keyMapper[Qt::Key_plusminus] = "plusminus"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
201 keyMapper[Qt::Key_twosuperior] = "twosuperior"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
202 keyMapper[Qt::Key_threesuperior] = "threesuperior"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
203 keyMapper[Qt::Key_acute] = "acute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
204 keyMapper[Qt::Key_mu] = "mu"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
205 keyMapper[Qt::Key_paragraph] = "paragraph"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
206 keyMapper[Qt::Key_periodcentered] = "periodcentered"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
207 keyMapper[Qt::Key_cedilla] = "cedilla"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
208 keyMapper[Qt::Key_onesuperior] = "onesuperior"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
209 keyMapper[Qt::Key_masculine] = "masculine"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
210 keyMapper[Qt::Key_guillemotright] = "guillemotright"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
211 keyMapper[Qt::Key_onequarter] = "onequarter"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
212 keyMapper[Qt::Key_onehalf] = "onehalf"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
213 keyMapper[Qt::Key_threequarters] = "threequarters"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
214 keyMapper[Qt::Key_questiondown] = "questiondown"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
215 keyMapper[Qt::Key_Agrave] = "agrave"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
216 keyMapper[Qt::Key_Aacute] = "aacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
217 keyMapper[Qt::Key_Acircumflex] = "acircumflex"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
218 keyMapper[Qt::Key_Atilde] = "atilde"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
219 keyMapper[Qt::Key_Adiaeresis] = "adiaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
220 keyMapper[Qt::Key_Aring] = "aring"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
221 keyMapper[Qt::Key_AE] = "ae"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
222 keyMapper[Qt::Key_Ccedilla] = "ccedilla"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
223 keyMapper[Qt::Key_Egrave] = "egrave"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
224 keyMapper[Qt::Key_Eacute] = "eacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
225 keyMapper[Qt::Key_Ecircumflex] = "ecircumflex"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
226 keyMapper[Qt::Key_Ediaeresis] = "ediaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
227 keyMapper[Qt::Key_Igrave] = "igrave"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
228 keyMapper[Qt::Key_Iacute] = "iacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
229 keyMapper[Qt::Key_Icircumflex] = "icircumflex"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
230 keyMapper[Qt::Key_Idiaeresis] = "idiaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
231 keyMapper[Qt::Key_ETH] = "eth"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
232 keyMapper[Qt::Key_Ntilde] = "ntilde"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
233 keyMapper[Qt::Key_Ograve] = "ograve"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
234 keyMapper[Qt::Key_Oacute] = "oacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
235 keyMapper[Qt::Key_Ocircumflex] = "ocircumflex"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
236 keyMapper[Qt::Key_Otilde] = "otilde"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
237 keyMapper[Qt::Key_Odiaeresis] = "odiaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
238 keyMapper[Qt::Key_multiply] = "multiply"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
239 keyMapper[Qt::Key_Ooblique] = "ooblique"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
240 keyMapper[Qt::Key_Ugrave] = "ugrave"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
241 keyMapper[Qt::Key_Uacute] = "uacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
242 keyMapper[Qt::Key_Ucircumflex] = "ucircumflex"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
243 keyMapper[Qt::Key_Udiaeresis] = "udiaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
244 keyMapper[Qt::Key_Yacute] = "yacute"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
245 keyMapper[Qt::Key_THORN] = "thorn"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
246 keyMapper[Qt::Key_ssharp] = "ssharp"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
247 keyMapper[Qt::Key_division] = "division"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
248 keyMapper[Qt::Key_ydiaeresis] = "ydiaeresis"; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
249 |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
250 return keyMapper; |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
251 } |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
252 |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
253 std::string qKeyToKeyString (int key) |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
254 { |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
255 static const QMap<int, std::string> keyMapper = makeKeyMapper (); |
22411
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
256 |
23829
01899bdd2a3a
Eliminate unnecessary std::string ("...") constructor calls when "..." suffices.
Rik <rik@octave.org>
parents:
23220
diff
changeset
|
257 return keyMapper.value (key, "<unknown key>"); |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
258 } |
22413
8758addcf265
maint: Remove ';' at end of namespace declaration.
Rik <rik@octave.org>
parents:
22411
diff
changeset
|
259 } |
8758addcf265
maint: Remove ';' at end of namespace declaration.
Rik <rik@octave.org>
parents:
22411
diff
changeset
|
260 } |