aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/enterkeyactionattachedtype.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Use module include path instead of local include pathJarkko Koivikko2018-08-071-1/+1
| | | | | | | | Include all the virtual keyboard header files using module include path. Change-Id: I93eada70edeb66313b05df6cecf6a9412d7bc0c4 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Modularize virtual keyboard and add an extension interfaceJarkko Koivikko2018-08-061-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | With the extension interface it is possible to add new input method and/or languages without recompiling the Qt Virtual Keyboard plugin itself. The existing input methods are now isolated into plugins. So installing a new input method is a matter of copying the corresponding extension plugin to the plugins/virtualkeyboard directory (and any collateral required by the extension plugin itself). This change also renames the HunspellInputMethod to DefaultInputMethod. This change is necessary because some other extension plugin may want to provide the default input method instead. Implementation plan =================== [x] Create virtualkeyboard-private module [x] Create plugin library [x] Define interface for input method plugin [x] Define interface for keyboard layouts [x] Move existing input methods and layouts to plugins [x] HangulInputMethod [x] HunspellInputMethod [x] Maybe create a private library for sharing between HunspellInputMethod and LipiInputMethod [x] LipiInputMethod [x] OpenWnnInputMethod [x] PinyinInputMethod [x] T9WriteInputMethod [x] TCInputMethod [o] Rename some C++ classes (too generic name?) [x] Think again replacing the QtVirtualKeyboard namespace [x] Update documentation [x] General instructions for creating a plugin [x] For the C++ interfaces too (previously removed) [ChangeLog][Important Behavior Changes] Introduce an extension interface for the virtual keyboard. All the current input methods and some special keyboard layouts (e.g. Hunspell, OpenWnn, etc.) have been moved to extensions. The extension interface allows third party to create a new input method without having to modify or rebuild the virtual keyboard. In addition, this change makes it possible to add features and languages independently by copying the desired extension to the system. [ChangeLog][Important Behavior Changes] Introduce a virtualkeyboard module, which can be linked against an extension plugin. This module provides the C++ API necessary for creating an input method. [ChangeLog][Important Behavior Changes] Wrap the entire virtual keyboard API into Qt namespace (e.g. QT_BEGIN_NAMESPACE/QT_END_NAMESPACE). Task-number: QTBUG-57602 Change-Id: I449f4429109f596a7a1df7517c81f97d4aada27c Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* License updateKalle Viironen2016-01-121-9/+17
| | | | | | Change-Id: I0dc6af72a3ae52a0b97b704df84fb1a8197aeeb8 Reviewed-by: Jani Heikkinen <jani.heikkinen@theqtcompany.com> Reviewed-by: Rainer Keller <rainer.keller@theqtcompany.com>
* Wrap C++ API into namespaceJarkko Koivikko2015-10-271-0/+9
| | | | | | | | | | | | | | | 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>
* License Headers UpdateKalle Viironen2015-10-261-9/+12
| | | | | Change-Id: Iba2bd21b95dde1aac5750ac77856716e0c61e577 Reviewed-by: Kalle Viironen <kalle.viironen@theqtcompany.com>
* Correct license headers.Mitch Curtis2015-09-151-10/+10
| | | | | | | | | | 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>
* Change copyright noticeRainer Keller2014-10-061-2/+2
| | | | | | | | | - URL points to qt.io - Update year to 2014 Change-Id: I6a77715faf32c88fe2832a6d21a912a20e5dae50 Reviewed-by: Mitch Curtis <mitch.curtis@theqtcompany.com> Reviewed-by: Kalle Viironen <kalle.viironen@digia.com>
* Update license headers.Mitch Curtis2014-06-231-1/+1
| | | | | | | | | | | "This file is part of the Qt Quick Enterprise Controls add-on." becomes: "This file is part of the Qt Virtual Keyboard add-on for Qt Enterprise." Change-Id: Ief6e840a658fdf769d653844fe92752aa44c3bec Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi>
* Fix undefined qml type for EnterKeyAction.IdJarkko Koivikko2014-05-071-2/+2
| | | | | | | | | | | | | The actual type is enum but it cannot be used because there is an ambiguity in registering the enum used by the attached property (egg chicken dilemma). This problem is limited to Qt versions below 5.3. In Qt 5.3 it works with enum type too. Change-Id: Ic237b67fa10b7326e99b89204a189755ba2b7e6f Reviewed-by: Simon Hausmann <simon.hausmann@digia.com> Reviewed-by: Mitch Curtis <mitch.curtis@digia.com>
* Add predefined ids for EnterKeyActionJarkko Koivikko2014-05-061-0/+14
| | | | | | | | | | | | 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>
* Add attached properties for customizing the enter keyJarkko Koivikko2014-05-061-0/+52
The new type EnterKeyAction provides the attached properties for the TextInput items. It currently supports the same properties as the current demo with "hard coded" properties. Change-Id: I3931453dc9f19fb7c3dd6cf72034f9eb0701f481 Reviewed-by: Rainer Keller <rainer.keller@digia.com>