aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/content/styles
Commit message (Collapse)AuthorAgeFilesLines
...
* Add sound effects for the default styleJarkko Koivikko2014-06-205-0/+12
| | | | | | | | | | | | | | | The original samples can be found here: http://www.freesound.org/people/KorgMS2000B/sounds/54405/ http://www.freesound.org/people/j1987/sounds/79384/ http://www.freesound.org/people/gherat/sounds/139653/ CC0 1.0 Universal license: http://creativecommons.org/publicdomain/zero/1.0/ Change-Id: Id3aaa601603d6bbb7f0e92cdba2f03b3f89db5f5 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Add arrow navigation modeJarkko Koivikko2014-06-202-0/+12
| | | | | | | | | | | | | | | | The arrow navigation mode allows using the keyboard with the arrow keys and the return key of the physical input device. The navigation mode is available when the keyboard is built with CONFIG+=arrow-key-navigation in the qmake command line. To enter into arrow navigation mode, simply press any of the arrow keys on the hardware keyboard while the virtual keyboard is visible. Items are selected with return key. Pressing and holding the return key will access the alternative keys (if any). The "drag symbol mode" is also available by pressing and holding the return on top of the symbol key. Change-Id: Ief9acfacd7f2d8a59a3c6b959d28f5467d207fa6 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Add PinyinInputMethodJarkko Koivikko2014-06-192-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new PinyinInputMethod which is using the PinyinIME engine as backend. The PinyinIME is Apache 2.0 licensed. https://android.googlesource.com/platform/packages/inputmethods/PinyinIME/ The pinyin input method is enabled by using CONFIG+=pinyin configuration flag on the qmake command line. Dictionaries ============ The pinyin engine uses two kinds of dictionaries: sys_dict and usr_dict. The sys_dict is a pre-built dictionary containing a search model for Chinese words. The sys_dict is built using the dictionary tool included in the source tree. The sys_dict is deployed in to the $$[QT_INSTALL_DATA]/qtvirtualkeyboard/pinyin directory on the target system. This path will become the default location where the dictionary is searched in. The default location can be overridden by specifying an alternative path to the dictionary file in an environment variable QT_VIRTUALKEYBOARD_PINYIN_DICTIONARY. The usr_dict contains custom lemmas which the user is most frequently using. Initially, the usr_dict may not exist, in which case it is automatically created. The usr_dict is located at subdirectory qtvirtualkeyboard/pinyin under the location returned by QStandardPaths::writableLocation(QStandardPaths::ConfigLocation). Usage ===== The pinyin input mode is activated by changing the input locale to zh_CN. Chinese words are entered by typing the phonetic form of the Chinese words and then selecting words from the selection list. The first item in the selection list always contains the complete phrase. By selecting the first item, the pinyin completes the entire phrase and ends the current input. The user can also select the entire phrase by pressing the space key. The subsequent items in the selection list are the segments comprising one or more Chinese words. By selecting segments of previously unknown lemma, the input method learns this by adding a new entry to the usr_dict. Once the user enters the same pinyin sequence again, the input method can suggest the same phrase as the first or the second item in the selection list. The characters sequences, which are not valid pinyin spellings, are displayed in lower case letters. The user can either delete these characters by pressing the backspace key, or select and accept them as input from the selection list. After the user completes the phrase, or moves the cursor in the text, the pinyin input can predict words by looking at text up to 3 characters in history. In prediction mode the user is not required to select any items from the prediction list. The user can enter plain latin characters by accepting the input sequence with the return key. Change-Id: I46bfc0df112a4d9c892222916cb7455132dd5059 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Liang Qi <liang.qi@digia.com>
* Remove built-in fontsJarkko Koivikko2014-06-197-26/+9
| | | | | | | | | Using custom fonts works only if multilingual text rendering is not required. In addition, loading extra fonts into application may cause unwanted side effects to application. Change-Id: I861620da23e56f32c466dd750cb70627f9d1e12d Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Update the DejaVuSans fontv1.0.0Jarkko Koivikko2014-05-191-0/+0
| | | | | | | | | The previous version did not contain a correct glyph for U+2022 (password character). Updated to latest version. Change-Id: I70331b369aead2fc5e593be5210340133f801ee5 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com>
* Add predefined ids for EnterKeyActionJarkko Koivikko2014-05-0618-30/+60
| | | | | | | | | | | | A predefined action id replaces the label in the enter key with an icon. Balanced all icons to use the same aspect ratio. Removed all custom margins used for icon positioning and sizing. Task-number: QTRD-2900 Change-Id: I159bcb4d53e8ceb8f51f4a8be24504e20262f37a Reviewed-by: Mitch Curtis <mitch.curtis@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com>
* Limit KeyIcon image width to the parent item widthJarkko Koivikko2014-05-062-17/+23
| | | | | | | | | This is to ensure that the image does not exceed the edges of the key. The image is scaled properly even though the aspect ratio of the sourceSize is not correct. Change-Id: I3f8be863cb4656d1692545edc449ea80ed806069 Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Adjust character positions of regular keys in retro styleJarkko Koivikko2014-05-021-2/+2
| | | | | | | | | | According to feedback from the style designer, the characters were positioned about 10 pixels too low on the keys. The same applies to the character preview popup. Task-number: QTRD-2861 Change-Id: Icae27095986c2261b45ac1ef3fd2feb848f3f60a Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Fix arabic numbers in default layoutPasi Petäjäjärvi2014-03-265-8/+4
| | | | | | | | | | | | OpenSans fonts don't support for arabic numbers, so change default font to DejaVuSans. http://jira.sc.local/browse/QTEE-354 Change-Id: Ie6789b332b4cc7a83a2dfeb247a2c7078071463e Reviewed-by: Samuli Piippo <samuli.piippo@digia.com> Reviewed-by: Rainer Keller <rainer.keller@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Restructure and rename.Mitch Curtis2014-01-2837-0/+1258
This restructures the repo to match other Qt modules, like the Enterprise Controls. It also renames the plugin and usages of its name in the documentation so that the abbreviated "VKB" is not used anywhere. Change-Id: I5de3fc67846a50438e52f4be057abfa0d9be0d91 Reviewed-by: Frederik Gladhorn <frederik.gladhorn@digia.com>