Ticket #40: ime.diff
| File ime.diff, 28.7 KB (added by , 12 years ago) |
|---|
-
configure.cmd
902 902 903 903 G.QCONFIG_FLAGS = Join(G.QCONFIG_FLAGS,, 904 904 "QT_NO_TABLET QT_NO_SYSTEMSEMAPHORE QT_NO_SHAREDMEMORY", 905 "QT_NO_ IM QT_NO_LPR")905 "QT_NO_LPR") 906 906 907 907 G.CFG_PHONON = "no" 908 908 G.CFG_MULTIMEDIA = "no" -
src/gui/kernel/qapplication_pm.cpp
65 65 #include "qcursor_p.h" 66 66 #include "qdnd_p.h" 67 67 68 69 70 71 72 68 73 #define WM_KBDLAYERCHANGED 0x0BD4 // defined in OS2TK45/h/pmbidi.h 69 74 70 75 //#define QT_DEBUGMSGFLOW … … 394 399 395 400 if (QApplication::desktopSettingsAware()) 396 401 qt_set_pm_resources(); 402 403 404 405 397 406 } 398 407 399 408 /***************************************************************************** … … 422 431 qt_total_blit_ms, qt_total_blit_pixels, 423 432 qt_total_blit_pixels / qt_total_blit_ms); 424 433 #endif 434 435 436 437 438 425 439 } 426 440 427 441 /***************************************************************************** … … 1034 1048 } 1035 1049 1036 1050 case WM_QUERYCONVERTPOS: { // IME input box position request 1037 // @todo the proper detection of the caret position in the1038 // current widget requires implementing QInputContext. For now,1039 // just send the IME box to the lower left corner of the1040 // top-level window1041 1051 PRECTL pcp = (PRECTL)mp1; 1042 1052 memset(pcp, 0xFF, sizeof(RECTL)); 1043 1053 pcp->xLeft = 0; 1044 1054 pcp->yBottom = 0; 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1045 1077 return (MRESULT)QCP_CONVERT; 1046 1078 } 1047 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1048 1108 case WM_PAINT: { // paint event 1049 1109 if (widget->translatePaintEvent(qmsg)) 1050 1110 return (MRESULT)TRUE; -
src/gui/inputmethod/qos2inputcontext_pm.cpp
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 -
src/gui/inputmethod/inputmethod.pri
15 15 HEADERS += inputmethod/qwininputcontext_p.h 16 16 SOURCES += inputmethod/qwininputcontext_win.cpp 17 17 } 18 19 20 21 18 22 embedded { 19 23 HEADERS += inputmethod/qwsinputcontext_p.h 20 24 SOURCES += inputmethod/qwsinputcontext_qws.cpp -
src/gui/inputmethod/qinputcontextfactory.cpp
68 68 #ifdef Q_WS_WIN 69 69 #include "qwininputcontext_p.h" 70 70 #endif 71 72 73 71 74 #ifdef Q_WS_MAC 72 75 #include "qmacinputcontext_p.h" 73 76 #endif … … 143 146 result = new QWinInputContext; 144 147 } 145 148 #endif 149 150 151 152 153 146 154 #if defined(Q_WS_MAC) 147 155 if (key == QLatin1String("mac")) { 148 156 result = new QMacInputContext; … … 187 195 #if defined(Q_WS_WIN) && !defined(QT_NO_XIM) 188 196 result << QLatin1String("win"); 189 197 #endif 198 199 200 190 201 #if defined(Q_WS_MAC) 191 202 result << QLatin1String("mac"); 192 203 #endif … … 260 271 if (key == QLatin1String("win")) 261 272 return QStringList(QString()); 262 273 #endif 274 275 276 277 263 278 #if defined(Q_WS_MAC) 264 279 if (key == QLatin1String("mac")) 265 280 return QStringList(QString()); … … 331 346 if (key == QLatin1String("win")) 332 347 return QInputContext::tr( "Windows input method" ); 333 348 #endif 349 350 351 352 334 353 #if defined(Q_WS_MAC) 335 354 if (key == QLatin1String("mac")) 336 355 return QInputContext::tr( "Mac OS X input method" ); -
src/gui/inputmethod/qos2inputcontext_p.h
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 -
include/QtGui/private/qos2inputcontext_p.h
1
