Merge lp:~renatofilho/ubuntu-ui-toolkit/fix-1231445 into lp:ubuntu-ui-toolkit/staging

Proposed by Renato Araujo Oliveira Filho
Status: Rejected
Rejected by: Zsombor Egri
Proposed branch: lp:~renatofilho/ubuntu-ui-toolkit/fix-1231445
Merge into: lp:ubuntu-ui-toolkit/staging
Diff against target: 201 lines (+111/-1)
7 files modified
CHANGES (+2/-0)
components.api (+2/-0)
modules/Ubuntu/Components/TextArea.qml (+6/-0)
modules/Ubuntu/Components/TextArea11.qml (+46/-0)
modules/Ubuntu/Components/TextField.qml (+7/-1)
modules/Ubuntu/Components/TextField11.qml (+46/-0)
modules/Ubuntu/Components/qmldir (+2/-0)
To merge this branch: bzr merge lp:~renatofilho/ubuntu-ui-toolkit/fix-1231445
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Zsombor Egri Needs Fixing
Cris Dywan Needs Fixing
Review via email: mp+216345@code.launchpad.net

Commit message

Added support for maliit extensions, allowing the app to change the visuals of the action key.

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Cris Dywan (kalikiana) wrote :

Something's wrong with staging. This branch doesn't update components.api but the diff doesn't reflect the changes. I also confirmed that staging generates a diff on an unmodified checkout.

I'd say hold on for a bit, this needs to be sorted out first.

Revision history for this message
Cris Dywan (kalikiana) wrote :

False alarm, staging is fine… it helps to build the branch fully.

So: please ensure the branch is built and then you should get this:

--- components.api 2014-04-17 19:57:52.805931000 +0200
+++ components.api.new 2014-04-17 19:58:40.294200785 +0200
@@ -447,6 +447,7 @@ modules/Ubuntu/Components/TextArea.qml
     property enumeration horizontalAlignment
     property bool inputMethodComposing
     property enumeration inputMethodHints
+ property var inputMethodExtensions
     property int length
     property int lineCount
     property enumeration mouseSelectionMode
@@ -511,6 +512,7 @@ modules/Ubuntu/Components/TextField.qml
     property string inputMask
     property bool inputMethodComposing
     property enumeration inputMethodHints
+ property var inputMethodExtensions
     property int length
     property int maximumLength
     property enumeration mouseSelectionMode

review: Needs Fixing
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1013
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/53/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/325
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/4941
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/53
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/53
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/53/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/53
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/299
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4529
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4529/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6180
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4260
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5098
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5098/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/53/rebuild

review: Approve (continuous-integration)
Revision history for this message
Zsombor Egri (zsombi) wrote :

We are preparing the version fix for the toolkit, therefore this change should be exported to 1.1 once the versioning will land into the toolkit.

review: Needs Fixing
Revision history for this message
Zsombor Egri (zsombi) wrote :

41 + Provides extended properties to the input method allowing to change de default visual of the action Key

s/de/the

It is not clear what values can be listed into this property. Either describe what can be there or link to some documentation that defines what values can be there.

review: Needs Fixing
Revision history for this message
Renato Araujo Oliveira Filho (renatofilho) wrote :

> 41 + Provides extended properties to the input method allowing to
> change de default visual of the action Key
>
> s/de/the
>
> It is not clear what values can be listed into this property. Either describe
> what can be there or link to some documentation that defines what values can
> be there.

Documentation updated on rev. 1014

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

PASSED: Continuous integration, rev:1016
http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/96/
Executed test runs:
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-trusty-touch/428
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-trusty/5052
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-amd64-ci/96
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/96
        deb: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-armhf-ci/96/artifact/work/output/*zip*/output.zip
    SUCCESS: http://jenkins.qa.ubuntu.com/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-trusty-i386-ci/96
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-deb-autopilot-runner-mako/385
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4674
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-armhf/4674/artifact/work/output/*zip*/output.zip
    SUCCESS: http://s-jenkins.ubuntu-ci:8080/job/touch-flash-device/6393
    SUCCESS: http://jenkins.qa.ubuntu.com/job/autopilot-testrunner-otto-trusty/4346
    SUCCESS: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5241
        deb: http://jenkins.qa.ubuntu.com/job/generic-mediumtests-builder-trusty-amd64/5241/artifact/work/output/*zip*/output.zip

Click here to trigger a rebuild:
http://s-jenkins.ubuntu-ci:8080/job/ubuntu-sdk-team-ubuntu-ui-toolkit-staging-ci/96/rebuild

review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

"Copyright 2012 Canonical Ltd." <- fix your copyright headers

Revision history for this message
Zsombor Egri (zsombi) wrote :

This has been resolved in a much nicer way using attached objects defined in ubuntu-keyboard plugin. Therefore this MP is no longer valid. Rejected.

Unmerged revisions

1018. By Renato Araujo Oliveira Filho

Merged mainline.

1017. By Renato Araujo Oliveira Filho

Moved changes to version 1.1.

1016. By Renato Araujo Oliveira Filho

Merged mainline.

1015. By Renato Araujo Oliveira Filho

Fixed typo.

1014. By Renato Araujo Oliveira Filho

Updated documentation for inputMethodExtensions

1013. By Renato Araujo Oliveira Filho

Updated components.api.

1012. By Renato Araujo Oliveira Filho

Fixed documentation.

1011. By Renato Araujo Oliveira Filho

Added support for maliit extensions, allowing the app to change the visuals of the action key.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'CHANGES'
2--- CHANGES 2014-04-24 20:35:41 +0000
3+++ CHANGES 2014-04-28 15:46:20 +0000
4@@ -98,6 +98,8 @@
5 * CHANGED in CrossFadeImage: readonly property size sourceSize TO property size sourceSize
6 * DEPRECATED in Header: property Item contents
7 * DEPRECATED IN Tabs: property TabBar tabBar
8+* ADDED IN: TextArea: alias inputMethodExtensions: editor.__inputMethodExtensions
9+* ADDED IN: TextField: alias inputMethodExtensions: editor.__inputMethodExtensions
10
11 Compatibility Breaks
12 ********************
13
14=== modified file 'components.api'
15--- components.api 2014-04-25 20:40:20 +0000
16+++ components.api 2014-04-28 15:46:20 +0000
17@@ -459,6 +459,7 @@
18 property enumeration horizontalAlignment
19 property bool inputMethodComposing
20 property enumeration inputMethodHints
21+ property var inputMethodExtensions
22 property int length
23 property int lineCount
24 property enumeration mouseSelectionMode
25@@ -522,6 +523,7 @@
26 property string inputMask
27 property bool inputMethodComposing
28 property enumeration inputMethodHints
29+ property var inputMethodExtensions
30 property int length
31 property int maximumLength
32 property enumeration mouseSelectionMode
33
34=== modified file 'modules/Ubuntu/Components/TextArea.qml'
35--- modules/Ubuntu/Components/TextArea.qml 2014-04-28 06:48:28 +0000
36+++ modules/Ubuntu/Components/TextArea.qml 2014-04-28 15:46:20 +0000
37@@ -526,6 +526,9 @@
38 */
39 property alias wrapMode:editor.wrapMode
40
41+ /*!\internal */
42+ property alias __editor: editor
43+
44 // signals
45 /*!
46 This handler is called when the user clicks on a link embedded in the text.
47@@ -907,6 +910,9 @@
48 // Images are not shown when text contains <img> tags
49 // bug to watch: https://bugreports.qt-project.org/browse/QTBUG-27071
50 TextEdit {
51+ // maliit extensions
52+ property variant __inputMethodExtensions: null
53+
54 objectName: "textarea_input"
55 readOnly: false
56 id: editor
57
58=== added file 'modules/Ubuntu/Components/TextArea11.qml'
59--- modules/Ubuntu/Components/TextArea11.qml 1970-01-01 00:00:00 +0000
60+++ modules/Ubuntu/Components/TextArea11.qml 2014-04-28 15:46:20 +0000
61@@ -0,0 +1,46 @@
62+/*
63+ * Copyright 2012 Canonical Ltd.
64+ *
65+ * This program is free software; you can redistribute it and/or modify
66+ * it under the terms of the GNU Lesser General Public License as published by
67+ * the Free Software Foundation; version 3.
68+ *
69+ * This program is distributed in the hope that it will be useful,
70+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
71+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
72+ * GNU Lesser General Public License for more details.
73+ *
74+ * You should have received a copy of the GNU Lesser General Public License
75+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
76+ */
77+
78+import QtQuick 2.0
79+
80+TextArea {
81+ id: control
82+
83+ /*!
84+ Provides extended properties to the input method allowing to change the default visual of the action Key,
85+ the value is a dictonary and the valid keys for the dictionary are:
86+ \list
87+ \li - enterKeyText (string) - The text to be displayed in the "Enter" key of the virtual keyboard
88+ \li - enterKeyEnabled (boolean) - If the "Enter" key of the virtual keyboard should be enabled or not
89+ \li - enterKeyHighlighted (boolean) - If the "Enter" key of the virtual keyboard should be highlighted or not
90+ \endlist
91+
92+ \qml
93+ TextField {
94+ text: "Text"
95+
96+ inputMethodExtensions: {
97+ 'enterKeyText': 'My Enter',
98+ 'enterKeyEnabled': true,
99+ 'enterKeyHighlighted': true,
100+ }
101+ }
102+ \endqml
103+
104+ \qmlproperty var inputMethodExtensions
105+ */
106+ property alias inputMethodExtensions: __editor.__inputMethodExtensions
107+}
108
109=== modified file 'modules/Ubuntu/Components/TextField.qml'
110--- modules/Ubuntu/Components/TextField.qml 2014-04-28 06:48:28 +0000
111+++ modules/Ubuntu/Components/TextField.qml 2014-04-28 15:46:20 +0000
112@@ -605,6 +605,9 @@
113 */
114 property alias selectedTextColor: editor.selectedTextColor
115
116+ /*!\internal */
117+ property alias __editor: editor
118+
119 /*!
120 This handler is called when the Return or Enter key is pressed. Note that if
121 there is a validator or inputMask set on the text input, the handler will only
122@@ -971,7 +974,6 @@
123 }
124
125
126- // text input
127 Flickable {
128 id: flicker
129 objectName: "textfield_scroller"
130@@ -994,6 +996,10 @@
131
132 TextInput {
133 id: editor
134+
135+ // maliit extensions
136+ property variant __inputMethodExtensions: null
137+
138 // FocusScope will forward focus to this component
139 focus: true
140 anchors.verticalCenter: parent.verticalCenter
141
142=== added file 'modules/Ubuntu/Components/TextField11.qml'
143--- modules/Ubuntu/Components/TextField11.qml 1970-01-01 00:00:00 +0000
144+++ modules/Ubuntu/Components/TextField11.qml 2014-04-28 15:46:20 +0000
145@@ -0,0 +1,46 @@
146+/*
147+ * Copyright 2012 Canonical Ltd.
148+ *
149+ * This program is free software; you can redistribute it and/or modify
150+ * it under the terms of the GNU Lesser General Public License as published by
151+ * the Free Software Foundation; version 3.
152+ *
153+ * This program is distributed in the hope that it will be useful,
154+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
155+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
156+ * GNU Lesser General Public License for more details.
157+ *
158+ * You should have received a copy of the GNU Lesser General Public License
159+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
160+ */
161+
162+import QtQuick 2.0
163+
164+TextField {
165+ id: control
166+
167+ /*!
168+ Provides extended properties to the input method allowing to change the default visual of the action Key,
169+ the value is a dictonary and the valid keys for the dictionary are:
170+ \list
171+ \li - enterKeyText (string) - The text to be displayed in the "Enter" key of the virtual keyboard
172+ \li - enterKeyEnabled (boolean) - If the "Enter" key of the virtual keyboard should be enabled or not
173+ \li - enterKeyHighlighted (boolean) - If the "Enter" key of the virtual keyboard should be highlighted or not
174+ \endlist
175+
176+ \qml
177+ TextField {
178+ text: "Text"
179+
180+ inputMethodExtensions: {
181+ 'enterKeyText': 'My Enter',
182+ 'enterKeyEnabled': true,
183+ 'enterKeyHighlighted': true,
184+ }
185+ }
186+ \endqml
187+
188+ \qmlproperty var inputMethodExtensions
189+ */
190+ property alias inputMethodExtensions: __editor.__inputMethodExtensions
191+}
192
193=== modified file 'modules/Ubuntu/Components/qmldir'
194--- modules/Ubuntu/Components/qmldir 2014-04-25 12:53:58 +0000
195+++ modules/Ubuntu/Components/qmldir 2014-04-28 15:46:20 +0000
196@@ -92,3 +92,5 @@
197
198 #version 1.1
199 ComboButton 1.1 ComboButton.qml
200+TextField 1.1 TextField11.qml
201+TextArea 1.1 TextArea11.qml

Subscribers

People subscribed via source and target branches