Mercurial > octave
annotate libgui/graphics/KeyMap.cc @ 27557:f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
* KeyMap.cc (makeKeyMapper): New function.
(qKeyToKeyString): Use it to initialize function-local static
keyMapper variable. Declare keyMapper const.
* ToolBar.cc (makeEmptyIcon): New function.
(addEmptyAction): Rename function-local static variable _empty to
empty_icon and declare it const. Use makeEmptyIcon to initialize
empty_icon.
author | John W. Eaton <jwe@octave.org> |
---|---|
date | Thu, 24 Oct 2019 12:09:07 -0400 |
parents | 00f796120a6d |
children | b442ec6dda5c |
rev | line source |
---|---|
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
1 /* |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
2 |
26376
00f796120a6d
maint: Update copyright dates in all source files.
John W. Eaton <jwe@octave.org>
parents:
25054
diff
changeset
|
3 Copyright (C) 2011-2019 Michael Goffioul |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
4 |
18500
49877d3be064
update copyright notices for new QtHandles code
John W. Eaton <jwe@octave.org>
parents:
18498
diff
changeset
|
5 This file is part of Octave. |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
6 |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23829
diff
changeset
|
7 Octave is free software: you can redistribute it and/or modify it |
22755
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
8 under the terms of the GNU General Public License as published by |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23829
diff
changeset
|
9 the Free Software Foundation, either version 3 of the License, or |
22755
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
10 (at your option) any later version. |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
11 |
22755
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
12 Octave is distributed in the hope that it will be useful, but |
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
13 WITHOUT ANY WARRANTY; without even the implied warranty of |
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
3a2b891d0b33
maint: Standardize Copyright formatting.
Rik <rik@octave.org>
parents:
22652
diff
changeset
|
15 GNU General Public License for more details. |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
16 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
17 You should have received a copy of the GNU General Public License |
18500
49877d3be064
update copyright notices for new QtHandles code
John W. Eaton <jwe@octave.org>
parents:
18498
diff
changeset
|
18 along with Octave; see the file COPYING. If not, see |
24534
194eb4bd202b
maint: Update punctuation for GPL v3 license text.
Rik <rik@octave.org>
parents:
23829
diff
changeset
|
19 <https://www.gnu.org/licenses/>. |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
20 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
21 */ |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
22 |
21724
aba2e6293dd8
use "#if ..." consistently instead of "#ifdef" and "#ifndef"
John W. Eaton <jwe@octave.org>
parents:
21301
diff
changeset
|
23 #if defined (HAVE_CONFIG_H) |
21301
40de9f8f23a6
Use '#include "config.h"' rather than <config.h>.
Rik <rik@octave.org>
parents:
21203
diff
changeset
|
24 # include "config.h" |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
25 #endif |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
26 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
27 #include <QMap> |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
28 #include <Qt> |
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 "KeyMap.h" |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
31 |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
32 namespace QtHandles |
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
33 { |
22411
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
34 namespace KeyMap |
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
35 { |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
36 QMap<int, std::string> makeKeyMapper (void) |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
37 { |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
38 QMap<int, std::string> keyMapper; |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
39 |
27557
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
40 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
|
41 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
|
42 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
|
43 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
|
44 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
|
45 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
|
46 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
|
47 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
|
48 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
|
49 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
|
50 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
|
51 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
|
52 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
|
53 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
|
54 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
|
55 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
|
56 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
|
57 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
|
58 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
|
59 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
|
60 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
|
61 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
|
62 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
|
63 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
|
64 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
|
65 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
|
66 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
|
67 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
|
68 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
|
69 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
|
70 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
|
71 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
|
72 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
|
73 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
|
74 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
|
75 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
|
76 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
|
77 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
|
78 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
|
79 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
|
80 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
|
81 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
|
82 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
|
83 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
|
84 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
|
85 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
|
86 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
|
87 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
|
88 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
|
89 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
|
90 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
|
91 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
|
92 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
|
93 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
|
94 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
|
95 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
|
96 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
|
97 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
|
98 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
|
99 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
|
100 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
|
101 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
|
102 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
|
103 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
|
104 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
|
105 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
|
106 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
|
107 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
|
108 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
|
109 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
|
110 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
|
111 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
|
112 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
|
113 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
|
114 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
|
115 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
|
116 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
|
117 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
|
118 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
|
119 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
|
120 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
|
121 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
|
122 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
|
123 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
|
124 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
|
125 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
|
126 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
|
127 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
|
128 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
|
129 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
|
130 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
|
131 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
|
132 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
|
133 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
|
134 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
|
135 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
|
136 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
|
137 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
|
138 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
|
139 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
|
140 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
|
141 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
|
142 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
|
143 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
|
144 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
|
145 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
|
146 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
|
147 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
|
148 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
|
149 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
|
150 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
|
151 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
|
152 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
|
153 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
|
154 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
|
155 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
|
156 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
|
157 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
|
158 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
|
159 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
|
160 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
|
161 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
|
162 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
|
163 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
|
164 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
|
165 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
|
166 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
|
167 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
|
168 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
|
169 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
|
170 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
|
171 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
|
172 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
|
173 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
|
174 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
|
175 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
|
176 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
|
177 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
|
178 keyMapper[Qt::Key_AsciiTilde] = "asciitilde"; |
22411
c69805d1fa64
maint: Style check C++ code in libgui/
Rik <rik@octave.org>
parents:
22323
diff
changeset
|
179 |
27557
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_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
|
181 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
|
182 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
|
183 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
|
184 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
|
185 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
|
186 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
|
187 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
|
188 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
|
189 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
|
190 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
|
191 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
|
192 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
|
193 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
|
194 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
|
195 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
|
196 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
|
197 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
|
198 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
|
199 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
|
200 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
|
201 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
|
202 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
|
203 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
|
204 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
|
205 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
|
206 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
|
207 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
|
208 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
|
209 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
|
210 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
|
211 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
|
212 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
|
213 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
|
214 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
|
215 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
|
216 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
|
217 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
|
218 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
|
219 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
|
220 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
|
221 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
|
222 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
|
223 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
|
224 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
|
225 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
|
226 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
|
227 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
|
228 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
|
229 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
|
230 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
|
231 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
|
232 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
|
233 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
|
234 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
|
235 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
|
236 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
|
237 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
|
238 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
|
239 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
|
240 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
|
241 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
|
242 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
|
243 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
|
244 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
|
245 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
|
246 |
f9f21bb2ea1c
fix initialization so some function-local static vars may be declared const
John W. Eaton <jwe@octave.org>
parents:
26376
diff
changeset
|
247 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
|
248 } |
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 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
|
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 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
|
253 |
23829
01899bdd2a3a
Eliminate unnecessary std::string ("...") constructor calls when "..." suffices.
Rik <rik@octave.org>
parents:
23220
diff
changeset
|
254 return keyMapper.value (key, "<unknown key>"); |
18498
2e7cad6f180c
Initial integration of QtHandles.
John W. Eaton <jwe@octave.org>
parents:
diff
changeset
|
255 } |
22413
8758addcf265
maint: Remove ';' at end of namespace declaration.
Rik <rik@octave.org>
parents:
22411
diff
changeset
|
256 } |
8758addcf265
maint: Remove ';' at end of namespace declaration.
Rik <rik@octave.org>
parents:
22411
diff
changeset
|
257 } |