| 1098 | | keycodeInstrumentMap[Qt::Key_Z] = instr++; |
|---|
| 1099 | | keycodeInstrumentMap[Qt::Key_S] = instr++; |
|---|
| 1100 | | keycodeInstrumentMap[Qt::Key_X] = instr++; |
|---|
| 1101 | | keycodeInstrumentMap[Qt::Key_D] = instr++; |
|---|
| 1102 | | keycodeInstrumentMap[Qt::Key_C] = instr++; |
|---|
| 1103 | | keycodeInstrumentMap[Qt::Key_V] = instr++; |
|---|
| 1104 | | keycodeInstrumentMap[Qt::Key_G] = instr++; |
|---|
| 1105 | | keycodeInstrumentMap[Qt::Key_B] = instr++; |
|---|
| 1106 | | keycodeInstrumentMap[Qt::Key_H] = instr++; |
|---|
| 1107 | | keycodeInstrumentMap[Qt::Key_N] = instr++; |
|---|
| 1108 | | keycodeInstrumentMap[Qt::Key_J] = instr++; |
|---|
| 1109 | | keycodeInstrumentMap[Qt::Key_M] = instr++; |
|---|
| 1110 | | |
|---|
| 1111 | | keycodeInstrumentMap[Qt::Key_Q] = instr++; |
|---|
| 1112 | | keycodeInstrumentMap[Qt::Key_2] = instr++; |
|---|
| 1113 | | keycodeInstrumentMap[Qt::Key_W] = instr++; |
|---|
| 1114 | | keycodeInstrumentMap[Qt::Key_3] = instr++; |
|---|
| 1115 | | keycodeInstrumentMap[Qt::Key_E] = instr++; |
|---|
| 1116 | | keycodeInstrumentMap[Qt::Key_R] = instr++; |
|---|
| 1117 | | keycodeInstrumentMap[Qt::Key_5] = instr++; |
|---|
| 1118 | | keycodeInstrumentMap[Qt::Key_T] = instr++; |
|---|
| 1119 | | keycodeInstrumentMap[Qt::Key_6] = instr++; |
|---|
| 1120 | | keycodeInstrumentMap[Qt::Key_Y] = instr++; |
|---|
| 1121 | | keycodeInstrumentMap[Qt::Key_7] = instr++; |
|---|
| 1122 | | keycodeInstrumentMap[Qt::Key_U] = instr++; |
|---|
| 1123 | | |
|---|
| | 1100 | |
|---|
| | 1101 | ///POSIX Locale |
|---|
| | 1102 | //locale for keyboardlayout QWERTZ |
|---|
| | 1103 | // de_DE, de_AT, de_LU, de_CH, de |
|---|
| | 1104 | |
|---|
| | 1105 | //locale for keyboardlayout AZERTY |
|---|
| | 1106 | // fr_BE, fr_CA, fr_FR, fr_LU, fr_CH |
|---|
| | 1107 | |
|---|
| | 1108 | //locale for keyboardlayout QWERTY |
|---|
| | 1109 | // en_GB, en_US, en_ZA, usw. |
|---|
| | 1110 | |
|---|
| | 1111 | if ( loc.contains( "de" ) || loc.contains( "DE" )){ ///QWERTZ |
|---|
| | 1112 | keycodeInstrumentMap[Qt::Key_Y] = instr++; |
|---|
| | 1113 | keycodeInstrumentMap[Qt::Key_S] = instr++; |
|---|
| | 1114 | keycodeInstrumentMap[Qt::Key_X] = instr++; |
|---|
| | 1115 | keycodeInstrumentMap[Qt::Key_D] = instr++; |
|---|
| | 1116 | keycodeInstrumentMap[Qt::Key_C] = instr++; |
|---|
| | 1117 | keycodeInstrumentMap[Qt::Key_V] = instr++; |
|---|
| | 1118 | keycodeInstrumentMap[Qt::Key_G] = instr++; |
|---|
| | 1119 | keycodeInstrumentMap[Qt::Key_B] = instr++; |
|---|
| | 1120 | keycodeInstrumentMap[Qt::Key_H] = instr++; |
|---|
| | 1121 | keycodeInstrumentMap[Qt::Key_N] = instr++; |
|---|
| | 1122 | keycodeInstrumentMap[Qt::Key_J] = instr++; |
|---|
| | 1123 | keycodeInstrumentMap[Qt::Key_M] = instr++; |
|---|
| | 1124 | |
|---|
| | 1125 | keycodeInstrumentMap[Qt::Key_Q] = instr++; |
|---|
| | 1126 | keycodeInstrumentMap[Qt::Key_2] = instr++; |
|---|
| | 1127 | keycodeInstrumentMap[Qt::Key_W] = instr++; |
|---|
| | 1128 | keycodeInstrumentMap[Qt::Key_3] = instr++; |
|---|
| | 1129 | keycodeInstrumentMap[Qt::Key_E] = instr++; |
|---|
| | 1130 | keycodeInstrumentMap[Qt::Key_R] = instr++; |
|---|
| | 1131 | keycodeInstrumentMap[Qt::Key_5] = instr++; |
|---|
| | 1132 | keycodeInstrumentMap[Qt::Key_T] = instr++; |
|---|
| | 1133 | keycodeInstrumentMap[Qt::Key_6] = instr++; |
|---|
| | 1134 | keycodeInstrumentMap[Qt::Key_Z] = instr++; |
|---|
| | 1135 | keycodeInstrumentMap[Qt::Key_7] = instr++; |
|---|
| | 1136 | keycodeInstrumentMap[Qt::Key_U] = instr++; |
|---|
| | 1137 | } |
|---|
| | 1138 | else if ( loc.contains( "fr" ) || loc.contains( "FR" )){ ///AZERTY |
|---|
| | 1139 | keycodeInstrumentMap[Qt::Key_W] = instr++; |
|---|
| | 1140 | keycodeInstrumentMap[Qt::Key_S] = instr++; |
|---|
| | 1141 | keycodeInstrumentMap[Qt::Key_X] = instr++; |
|---|
| | 1142 | keycodeInstrumentMap[Qt::Key_D] = instr++; |
|---|
| | 1143 | keycodeInstrumentMap[Qt::Key_C] = instr++; |
|---|
| | 1144 | keycodeInstrumentMap[Qt::Key_V] = instr++; |
|---|
| | 1145 | keycodeInstrumentMap[Qt::Key_G] = instr++; |
|---|
| | 1146 | keycodeInstrumentMap[Qt::Key_B] = instr++; |
|---|
| | 1147 | keycodeInstrumentMap[Qt::Key_H] = instr++; |
|---|
| | 1148 | keycodeInstrumentMap[Qt::Key_N] = instr++; |
|---|
| | 1149 | keycodeInstrumentMap[Qt::Key_J] = instr++; |
|---|
| | 1150 | keycodeInstrumentMap[Qt::Key_Question] = instr++; |
|---|
| | 1151 | |
|---|
| | 1152 | keycodeInstrumentMap[Qt::Key_A] = instr++; |
|---|
| | 1153 | keycodeInstrumentMap[Qt::Key_2] = instr++; |
|---|
| | 1154 | keycodeInstrumentMap[Qt::Key_Z] = instr++; |
|---|
| | 1155 | keycodeInstrumentMap[Qt::Key_3] = instr++; |
|---|
| | 1156 | keycodeInstrumentMap[Qt::Key_E] = instr++; |
|---|
| | 1157 | keycodeInstrumentMap[Qt::Key_R] = instr++; |
|---|
| | 1158 | keycodeInstrumentMap[Qt::Key_5] = instr++; |
|---|
| | 1159 | keycodeInstrumentMap[Qt::Key_T] = instr++; |
|---|
| | 1160 | keycodeInstrumentMap[Qt::Key_6] = instr++; |
|---|
| | 1161 | keycodeInstrumentMap[Qt::Key_Y] = instr++; |
|---|
| | 1162 | keycodeInstrumentMap[Qt::Key_7] = instr++; |
|---|
| | 1163 | keycodeInstrumentMap[Qt::Key_U] = instr++; |
|---|
| | 1164 | }else |
|---|
| | 1165 | { /// default QWERTY |
|---|
| | 1166 | keycodeInstrumentMap[Qt::Key_Z] = instr++; |
|---|
| | 1167 | keycodeInstrumentMap[Qt::Key_S] = instr++; |
|---|
| | 1168 | keycodeInstrumentMap[Qt::Key_X] = instr++; |
|---|
| | 1169 | keycodeInstrumentMap[Qt::Key_D] = instr++; |
|---|
| | 1170 | keycodeInstrumentMap[Qt::Key_C] = instr++; |
|---|
| | 1171 | keycodeInstrumentMap[Qt::Key_V] = instr++; |
|---|
| | 1172 | keycodeInstrumentMap[Qt::Key_G] = instr++; |
|---|
| | 1173 | keycodeInstrumentMap[Qt::Key_B] = instr++; |
|---|
| | 1174 | keycodeInstrumentMap[Qt::Key_H] = instr++; |
|---|
| | 1175 | keycodeInstrumentMap[Qt::Key_N] = instr++; |
|---|
| | 1176 | keycodeInstrumentMap[Qt::Key_J] = instr++; |
|---|
| | 1177 | keycodeInstrumentMap[Qt::Key_M] = instr++; |
|---|
| | 1178 | |
|---|
| | 1179 | keycodeInstrumentMap[Qt::Key_Q] = instr++; |
|---|
| | 1180 | keycodeInstrumentMap[Qt::Key_2] = instr++; |
|---|
| | 1181 | keycodeInstrumentMap[Qt::Key_W] = instr++; |
|---|
| | 1182 | keycodeInstrumentMap[Qt::Key_3] = instr++; |
|---|
| | 1183 | keycodeInstrumentMap[Qt::Key_E] = instr++; |
|---|
| | 1184 | keycodeInstrumentMap[Qt::Key_R] = instr++; |
|---|
| | 1185 | keycodeInstrumentMap[Qt::Key_5] = instr++; |
|---|
| | 1186 | keycodeInstrumentMap[Qt::Key_T] = instr++; |
|---|
| | 1187 | keycodeInstrumentMap[Qt::Key_6] = instr++; |
|---|
| | 1188 | keycodeInstrumentMap[Qt::Key_Y] = instr++; |
|---|
| | 1189 | keycodeInstrumentMap[Qt::Key_7] = instr++; |
|---|
| | 1190 | keycodeInstrumentMap[Qt::Key_U] = instr++; |
|---|
| | 1191 | } |
|---|