aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/content
Commit message (Collapse)AuthorAgeFilesLines
...
| * Merge remote-tracking branch 'origin/5.7' into 5.8Liang Qi2016-11-262-4/+8
| |\ | | | | | | | | | | | | | | | | | | Conflicts: src/virtualkeyboard/doc/qtvirtualkeyboard.qdocconf Change-Id: I2aac70f4bf65794c73096ec575c9f72bc63ec61c
| | * Merge remote-tracking branch 'origin/5.6' into 5.7Liang Qi2016-11-251-2/+4
| | |\ | | | | | | | | | | | | | | | | | | | | | | | | Conflicts: src/virtualkeyboard/content/InputPanel.qml Change-Id: I6839198e123f682a88132f8efbed0bdaf8835e7e
| | | * Doc: fix InputPanel::active documentationMitch Curtis2016-11-251-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use the correct qdoc syntax and fix the grammar. Task-number: QTBUG-56822 Change-Id: I70f4214df35ed26573f9d26211db39150bb5b5a6 Reviewed-by: Venugopal Shivashankar <Venugopal.Shivashankar@qt.io>
| | * | Use the QLocale's decimal point setting for the digipadAndy Shaw2016-11-231-2/+4
| | | | | | | | | | | | | | | | | | | | Change-Id: I8a42546e1a520886f2dab417d9ae43037f1d7012 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | Add Romanian language keyboard layoutBogDan Vatra2016-10-143-0/+714
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Romanian laguage has 5 additional letters to the latin alphabet (ăîâșț). Beside these letters, minus symbol (-) is quite used, therefore it's on the main letters page. [ChangeLog] Added Romanian keyboard layout. Change-Id: Iba06a0715462834493d223ecfaf6a6875b249085 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | | BaseKey: remove enabled property to avoid shadowing Item'sMitch Curtis2016-10-121-6/+0
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While perhaps not that important for BaseKey, for which child items might not make a whole lot of sense, it shouldn't be necessary to shadow Item's enabled property. Task-number: QTBUG-55754 Change-Id: I6746b55cdda1947006f1d052b613a7e38f01fac2 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Robin Burchell <robin.burchell@viroteck.net> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
| * | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.1Liang Qi2016-09-171-0/+7
| |\| | | | | | | | | | Change-Id: I74ff8fb7833b2814c2baa07c0b78b4ed8cddb920
| | * Fix broken layout that results from making key visible after startupMitch Curtis2016-09-121-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The RowLayout that contained the key that was made visible seemed to get an implicitHeight, where all the other rows had implicitHeights of 0. The RowLayouts fill the width and height of their parent (a ColumnLayout), which means that the implicitHeight won't be used as long as its small enough; it's just there to prevent rows from getting large implicitHeights. Task-number: QTBUG-54953 Change-Id: Ic7a8a6f00f03a4ea8a05abf69cfedcf168c919d7 Reviewed-by: Jan Arve Sæther <jan-arve.saether@theqtcompany.com>
* | | Implement external keyboard layouts supportGordan Markuš2016-11-161-6/+1
|/ / | | | | | | | | | | | | | | | | | | | | | | | | * Add possibility to override and exclude built-in keyboard layouts * Add QT_VIRTUALKEYBOARD_LAYOUT_PATH environment variable specifying the layout location on the file system or inside a qrc resource * Update documentation accordingly [ChangeLog] Add support for external keyboard layouts, which allows overriding and exclusion of the built-in keyboard layouts Task-number: QTBUG-54254 Change-Id: I960b942c031221d29dbdf1cabed78be8d32f43ef Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Rescind execute permissions from PNGs - they don't need them !Edward Welbourne2016-05-3019-0/+0
| | | | | | | | | | Change-Id: Ie9a59b45daf3f6f1d79b8903e7bb3324f4d374b7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Hide the selection handles if the handles are clipped awayJan Arve Saether2016-05-251-0/+10
| | | | | | | | | | | | | | | | This usually happens when there is a selection, and the view is scrolled so that parts of the selection is outside of the visible input area. Change-Id: I26867c7b3db112f6627ddffc5463a9e52af380cd Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | Add support for selection handles.Jan Arve Saether2016-05-209-0/+317
| | | | | | | | | | | | | | | | | | [ChangeLog] Added support for selection handles for VKB. Currently, its only supported for the integrated VKB. Support for the dedicated VKB will be a separate commit Change-Id: I1f700fbc641bc68949b4cc81a8fa3aa275f34efa Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Bump version number to 2.1Mitch Curtis2016-04-2671-98/+98
| | | | | | | | | | Change-Id: Idc71754cae27cb4222e2a5073533a4830e06f45d Reviewed-by: Andy Shaw <andy.shaw@theqtcompany.com>
* | Remove 'enterprise' from QML imports and QRC prefixesMitch Curtis2016-04-2692-148/+148
| | | | | | | | | | | | | | | | | | [ChangeLog] Renamed QML import from "import QtQuick.Enterprise.VirtualKeyboard" to "import QtQuick.VirtualKeyboard", as the module is now open-source. Change-Id: I240a3c1b598ca4aa41d2aad02b6e548622308833 Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
* | Merge remote-tracking branch 'origin/5.6' into 5.7v5.7.0-alpha1Liang Qi2016-02-2425-3/+1100
|\| | | | | | | Change-Id: Ib2e0f6c524f72a6048ce4880fcd5494a26a0d199
| * Update documentation for handwritingv2.0.0Jarkko Koivikko2016-02-221-0/+3
| | | | | | | | | | | | | | Added some documentation about handwriting support in general. Change-Id: Ie901a8296020d74c44ce952659615ac8d215616e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
| * Enable new languages for handwriting recognitionJarkko Koivikko2016-02-1822-0/+1089
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Note: These languages are only available with the T9 Write engine. This change adds handwriting recognition for the following languages: - Danish - German - Spanish - Finnish - French - Italian - Norwegian - Polish - Portuguese - Russian - Swedish Change-Id: I686d15bb89acc7012aaba73e271640426b73649e Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
| * Fix language switch for handwriting keyboard layoutJarkko Koivikko2016-02-181-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Handwriting layout uses ChangeLanguageKey with customLayoutsOnly attribute to filter out languages which does not have handwriting layout. By default the customLayoutsOnly attribute filters out the base layout (English) if it's not the current language. This functionality exists for the special layouts, such as the numbers layout, to prevent language switch between the languages where the layout does not change. However, for handwriting the input language is significant and it should be possible to switch between all the languages which contain handwriting layout. This change adds an exception for the no-base-layout rule and includes English handwriting layout in the custom layout list. Change-Id: I58449c18b20c2643f5cc905163acefe11fd1fa6c Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
| * Should display the name of current keyboardLiang Qi2016-02-101-2/+4
| | | | | | | | | | | | Change-Id: I566bedd94dd14250f306c594c19ddae06ca1443f Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* | License updateKalle Viironen2016-01-1275-675/+1275
|/ | | | | | Change-Id: I0dc6af72a3ae52a0b97b704df84fb1a8197aeeb8 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Remove AutoScroller componentJarkko Koivikko2015-12-143-99/+0
| | | | | | | | | | | | | | The AutoScroller component is not well maintained and has not been validated to be working correctly except for the example app. This change moves the AutoScroller component to the example application. There was also a bug in the component. References to the flickable components were not cleared before updating. Task-number: QTRD-3784 Change-Id: Ie15b4b994c016a9d0c065a2e469f928fec15d265 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Improve build configurationJarkko Koivikko2015-12-071-23/+45
| | | | | | | | | | | | | | | | | Add new configuration flags to simplify the customization process of the virtual keyboard. - lang-<code> flag enables the specified language. - lang-all flag enables all the languages. - handwriting flag enables the handwriting input method (t9write or lipi-toolkit) Updated test cases and also fixed the virtual keyboard for single language support. Change-Id: I599816bed591bd193ad26cef0e9bf4812146e865 Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Zhuyin input method for Traditional ChineseJarkko Koivikko2015-11-273-177/+235
| | | | | | | | | | | | | Zhuyin can be enabled with CONFIG+=tcime or CONFIG+=zhuyin qmake flags. Note that CONFIG+=tcime enables both Cangjie and Zhuyin input methods. You can also enable the Cangjie input method with CONFIG+=cangjie, in which case the Zhuyin input method will not be activated, unless the config contains CONFIG+=zhuyin also. Change-Id: Iddea01f3e3d7f1dafff80e17da5b7cf89d4cfc55 Task-number: QTRD-3726 Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com> Reviewed-by: Liang Qi <liang.qi@theqtcompany.com>
* Flip the word candidate popup above the cursor if it does not fit belowJarkko Koivikko2015-10-291-2/+14
| | | | | | | | | Previously the word candidate popup was always located below the cursor. Now it flips above the cursor if there is more room. Change-Id: I90f539703b001de5565d7d96c2b39df6185cde1a Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Refactor resource pathsJarkko Koivikko2015-10-2811-12/+12
| | | | | | | | This change modifies the internal resource paths and makes them unique in the global context to avoid conflict with the application namespace. Change-Id: I72b17b744e07f5a94bb5ba99f3632d7f67b307ae Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Refactor class namesJarkko Koivikko2015-10-282-2/+2
| | | | | | | | | | | | | | | | | Since the virtual keyboard C++ interface is wrapped inside a namespace, it is possible to get rid of "Declarative" name in the class names, that would otherwise conflict with the QML namespace in the documentation. - Rename DeclarativeSettings to VirtualKeyboardSettings - Remove "Declarative" from class names The rationale for this change is that the name Declarative refers to now obsolete QtQuick1 module. Also, the class names are now the same in C++ and QML name spaces. Change-Id: Ide050d47110443d894d95d35dddf0df5891587be Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Update old style license headersKalle Viironen2015-10-273-27/+36
| | | | | Change-Id: I70454fc71ea908ed24d02e75739730fb7510ef0f Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Stabilize arrow key navigation testsJarkko Koivikko2015-10-271-4/+8
| | | | | | | | | | | | The arrow key navigation tests could fail due to bug in a test function. Previously the navigation key press and the highlight rectangle could go out of sync due to highlight animation. Now the test waits until the highlight animation is completed and then proceeds with the test, making the test cases more robust and not dependent of system performance. Change-Id: I72bc15de988a212fa2e96230bc346bbfd3fdea41 Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Wrap C++ API into namespaceJarkko Koivikko2015-10-272-2/+2
| | | | | | | | | | | | | | | This change wraps the entire C++ API into namespace. In practice, all the C++ interfaces inside the qtvirtualkeyboard plugin are private, except the QPlatformInputContext plugin API. Even the AbstractInputMethod and AbstractInputPanel are not really a public in the sense that they could be used outside the plugin. At least it does not make sense, since there is no way to extend the virtual keyboard functionality without recompiling the plugin. Task-number: QTRD-3628 Change-Id: I1037ee247abca3219efeaa4e4150baaff7c3d668 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add Cangjie input method for Traditional ChineseJarkko Koivikko2015-10-277-4/+866
| | | | | | | | | | | | | | | | | | This change adds Cangjie input method for Traditional Chinese. The input method is based on the TCIME input method for Android. https://code.google.com/p/android-traditional-chinese-ime/ The Cangjie input method is enabled by adding CONFIG+=tcime into qmake command line. The version of the Cangjie input is v3. Change-Id: Ibc49484d1277c332fc17e9b49b4227256ad88d5a Reviewed-by: Liang Qi <liang.qi@theqtcompany.com> Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Add support for smallText in the BaseKeyJarkko Koivikko2015-10-276-4/+99
| | | | | | | | | | | | | | | | | | | | | This change adds support for smallText label in the key and also modifies the default behavior of alternative keys. The smallText property in the BaseKey is by default set to default alternative key. The keyboard layout can modify the smallText if necessary. However, the smallText is not visible by default. It can be set to visible at KeyboardLayout, KeyboardRow, KeyboardColumn or Key level. Previously the alternative keys included the "parent" key as the default highlighted item in the list. This behavior is now changed, and the "parent" item is filtered out from the effective list presented to user. Rationale for this is that if the smallText feature would be turned on for existing layouts, they would render the same key label twice. Change-Id: I543b2d3355be640d80f751444944a6dcefbbce73 Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Fix default locale in a specific caseJarkko Koivikko2015-10-271-1/+1
| | | | | | | | | | | | | | | | | Reset to default locale if VirtualKeyboardSettings.activeLocales is updated and VirtualKeyboardSettings.locale is set (to some value). This fixes a case where the activeLocales is initially set to some values, which does not include the VirtualKeyboardSettings.locale. Later, when the activeLocales is updated to include the VirtualKeyboardSettings.locale, the keyboard layout would not change immediately to specific locale, as one would expect. This issue was found by running the test cases with CONFIG+=openwnn and observing that test_baseKeyNoModifier did not pass. Change-Id: Iaf3f26a81716a83e936820c5b5f1069916ee81eb Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* License Headers UpdateKalle Viironen2015-10-2673-657/+876
| | | | | Change-Id: Iba2bd21b95dde1aac5750ac77856716e0c61e577 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Fix language indicator in retro styleJarkko Koivikko2015-10-151-11/+11
| | | | | | | | | The language indicator was located inside a wrong container preventing the text to scale. Task-number: QTRD-3625 Change-Id: I07c22e19f0cbd1fd7e6848b49f8e0def4caff8cf Reviewed-by: Samuli Piippo <samuli.piippo@theqtcompany.com>
* Fix numeric input modes for handwriting inputJarkko Koivikko2015-10-121-0/+1
| | | | | | | | | | | | | | Added missing dialable input mode for LipiInputMethod. Prevent changing the input mode in numeric only input mode. Update test cases to include tests for numeric only input modes. Task-number: QTRD-3705 Task-number: QTRD-3706 Change-Id: Ic3fa090ba4dfa07efd33f4c6b4441c8f95614f75 Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Add a new API to change the keyboard languageJarkko Koivikko2015-10-072-46/+80
| | | | | | | | | | | | | This change adds three new properties for VirtualKeyboardSettings. - locale: Defines the default locale, can also be used to change the current language. - availableLocales: A list of built-in locales. - activeLocales: Application defined list of active locales. Task-number: QTRD-3332 Change-Id: Ia9e69f54501ec7ad7680a6167546b52d0972e2dc Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix possible qml warning caused by binding to non-existing propertyJarkko Koivikko2015-10-071-5/+8
| | | | | | | | The currentItemHighlight is an optional property used only by the retro style. Change-Id: I0a4913bf8b623b7cfb253878d871508a7a174a0e Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add support for full screen handwriting inputJarkko Koivikko2015-10-0710-6/+358
| | | | | | | | | | | | | | | | This change adds support for the full screen handwriting input. In full screen handwriting input, the user is able to use the whole application screen as a container for handwriting input. This feature is available to those application integrations, which integrate the new HandwritingInputPanel type to the application QML. The HandwritingInputPanel works as an add-on to the existing InputPanel, so it cannot be used exclusively without the InputPanel. Change-Id: I11530b9ccbc66aa59b210bec94d7bb87f0826370 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Do not set input locale to default locale if using default layoutJarkko Koivikko2015-10-071-1/+1
| | | | | | | | This allows the input method to use the specific locale even if using shared layout from default locale. Change-Id: I237971a94c8bfcc42643606e839f8ae5b7983198 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Enable handwriting layout for digit and numeric inputJarkko Koivikko2015-10-071-1/+11
| | | | | | | | | Previously the handwriting layout was overridden by digits or numeric layouts, which does not make sense since it should be possible to input numbers in handwriting too. Change-Id: I44cc8e4852ef871a0854fe92d4bf92bd4c390db6 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Update input mode when input method hints changeJarkko Koivikko2015-10-071-0/+4
| | | | | | | | | | | | This change fixes an issue that the input mode is not updated when the input method hints are updated, even though the new input method hints would trigger different input mode. This will happen if the new hints do not trigger a keyboard layout switch. Specifically, this applies to handwriting input, which can be used in combination of all input method hints. Change-Id: I942d556ac29b542fe6acc9e2ee35f52f6e12cbc4 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Fix sort order for keyboard layoutsJarkko Koivikko2015-10-071-1/+1
| | | | | | | | | | | | | | | | | The keyboard layout indices were sorted in ambiguous order, e.g.: 1, 10, 11, 12, .., 2, 3 meaning they were sorted by text, and not by decimal value as they should have been: 1, 2, 3, .., 10, 11, 12 This affects to the order in which the keyboard layouts appear when pressing the language button. Change-Id: I75d29fce5de99b89be58b5fca86d5485e6e6a60a Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Update virtualkeyboard example colors for World Summit demoMitch Curtis2015-10-011-2/+2
| | | | | | | | Using the colors provided by Diana. Change-Id: I5948b68af0f6d3b8a33a95847ed92cc3b6920a9f Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Correct license headers.Mitch Curtis2015-09-1571-710/+710
| | | | | | | | | | Using the commercial template found here: https://wiki.it.local/display/QTCOM/Header+templates+to+be+used+in+Qt+Code Change-Id: If401d8fa3ff4dab6ea1e74477d5c02b5dcd09eea Task-number: QTRD-3693 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Update version number to 2.0Jarkko Koivikko2015-08-3159-73/+73
| | | | | | | | | | | Handwriting support was originally added as 1.4, but has been updated to 2.0 in this commit. Since the major version number has changed, all the components must be registered with the new major version number. Change-Id: I34c74f5dd24684423d153ff85a4a24eed8d4ffd1 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>
* Add tests for handwriting input methodJarkko Koivikko2015-06-171-0/+1
| | | | | Change-Id: I738b89b21cc667064d84f6eaf99ed1248218371e Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* Add lipi-toolkit implementation of handwriting input methodJarkko Koivikko2015-06-176-1/+98
| | | | | | | | | | | | | | This change adds a reference implementation of the handwriting input method. The handwriting support is enabled by adding CONFIG+=lipi-toolkit to the qmake command line. The current implementation uses alphanumeric model for handwriting recognition, which come bundled in the lipi toolkit. Change-Id: I1fcc0a0c0620dd7f9503a2a584cea0003e8a032e Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* Add support for pattern recognition based input methodsJarkko Koivikko2015-06-1714-6/+695
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds generic support for pattern recognition based input methods. Added new API for the input engine and input method to process trace data. The trace data can originate from various input devices, e.g. from touch screen or from a dedicated hardware touch panel. Added new data model type for trace supporting both the C++ and QML interfaces. The new data model is DeclarativeTrace and Trace respectively, and it stores the trace data captured from the input device. The trace object is owned by the input method and is accessible to the UI layer, capture device and the input method. First, when the trace event begins, the capture device invokes the InputEngine.traceBegin(). The input engine forwards this call to the input method, which creates the trace object in response to successful call. Then the capture device receives the trace object and starts collecting the data. Also, in case of touch screen input, there are also the UI layer which renders the data. For this purpose there are new kinds of Style elements available in the Styles plugin. TraceCanvas is a specialized Canvas for rendering the trace object on screen. The TraceCanvas is a normal styling component, and can be customized like any other style element. Finally, the InputMethod.traceEnd() is called when the trace interaction ends. The trace is removed from screen automatically when the trace object is deleted. I.e., the input method has full control on how many traces it wants to collect for single recognition phase. Change-Id: I80ed90032f715726280197d9e94e7f0bd8280ff3 Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* Add new property sharedLayouts to KeyboardLayoutJarkko Koivikko2015-06-179-7/+59
| | | | | | | | | | | | | | This property allows to define which keyboard layouts share the custom input method created by KeyboardLayout.createInputMethod(). Note that changing the locale still causes an explicit destruction of a custom input method. This change gives more control to custom input method creation and destruction. Change-Id: I478ec38de67146bec12a6abfc25f54691a9ba614 Reviewed-by: Gatis Paeglis <gatis.paeglis@theqtcompany.com>
* Use SVG icons in retro styleJarkko Koivikko2015-06-1720-23/+221
| | | | | | | Replaced the png graphics for icons with SVG. Change-Id: I793d390870a3ab4c1c14d594004b050fd084b00d Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com>