Merge lp://staging/~brandontschaefer/nux/xim-tests into lp://staging/nux
Status: | Merged | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Approved by: | Brandon Schaefer | ||||||||||||
Approved revision: | 671 | ||||||||||||
Merged at revision: | 727 | ||||||||||||
Proposed branch: | lp://staging/~brandontschaefer/nux/xim-tests | ||||||||||||
Merge into: | lp://staging/nux | ||||||||||||
Prerequisite: | lp://staging/~thumper/nux/nux.armel-fixes | ||||||||||||
Diff against target: |
1357 lines (+1051/-12) 16 files modified
Nux/TextEntry.cpp (+2/-0) NuxGraphics/GraphicsDisplayX11.cpp (+45/-2) NuxGraphics/GraphicsDisplayX11.h (+7/-1) NuxGraphics/Makefile.am (+7/-4) NuxGraphics/XICClient.cpp (+112/-0) NuxGraphics/XICClient.h (+60/-0) NuxGraphics/XIMController.cpp (+146/-0) NuxGraphics/XIMController.h (+62/-0) NuxGraphics/XInputWindow.cpp (+4/-1) NuxGraphics/XInputWindow.h (+1/-0) examples/Makefile.am (+1/-1) tests/Makefile.am (+11/-2) tests/nux_automated_test_framework.cpp (+89/-1) tests/nux_automated_test_framework.h (+2/-0) tests/xim-test-commands.txt (+52/-0) tests/xtest-text-entry-xim.cpp (+450/-0) |
||||||||||||
To merge this branch: | bzr merge lp://staging/~brandontschaefer/nux/xim-tests | ||||||||||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Andrea Azzarone (community) | Approve | ||
PS Jenkins bot | continuous-integration | Pending | |
Łukasz Zemczak | Pending | ||
Jay Taoko | Pending | ||
Review via email: mp+132935@code.staging.launchpad.net |
This proposal supersedes a proposal from 2012-08-22.
Commit message
XIM Support and Tests.
Description of the change
Fixed this branch to work with Unity: https:/
To add XIM Support, as well as get some test for it.
This lets users add test for each IM easily in the text file xim-test-
The bases is:
0 = like an init function. It starts the IM with the name you give it.
1 = Key sequences to get the IM in the correct state. ie. ctrl+space
2 = Input you would type into your IM, ie. ninhao
3 = Checks the current text with what it should be.
4 = halt. So we know when to end the current IM test.
To test the three I have in there you'll need: fcitx, hime, and gcin
(sudo apt-get install gcin-chewing fcitx-googlepinyin hime-anthy)
The XIMController is in control of the current XICClient which gets switched based on the current XInputWindow(
XIMController gets allocated in GraphicsDisaplyX11 which you can get the XIMController anywhere else through GetGraphicsDisp
***Note*** I still need to figure a good way out to only make XICClients for those windows that accept text....but as of right now any BaseWindow that ->EnableInputWi
The test is failing on my system. When the program runs, some of the xim test passes while other fails. Anything I am missing on my system? In running on precise.