~ubuntu-branches/ubuntu/trusty/unity8/trusty-proposed

« back to all changes in this revision

Viewing changes to plugins/Unity/Indicators/qml/MenuItemFactory.qml

  • Committer: Package Import Robot
  • Author(s): Ubuntu daily release, Michal Hruby, Michał Sawicz, Albert Astals, Michał Karnicki, Allan LeSage, Andrea Cimitan, Leo Arias, Nick Dedekind, Mirco Müller, Michael Zanetti, Michael Terry, Daniel d'Andrada, Bill Filler
  • Date: 2014-01-28 15:58:45 UTC
  • mfrom: (1.1.61)
  • Revision ID: package-import@ubuntu.com-20140128155845-rgg0gscvllv5qd3q
Tags: 7.84+14.04.20140128-0ubuntu1
[ Michal Hruby ]
* Added unity-scope-tool, which will help when developing scopes.

[ Michał Sawicz ]
* Added unity-scope-tool, which will help when developing scopes.
* Use full DashContent, not just GenericScopeView in ScopeTool.qml.
* Bring Card and CardHeader over from new-scopes.
* Work around bug #1268578. (LP: #1268578)
* Drop unnecessary version dependencies.
* Return null instead of undefined from findChild and
  findInvisibleChild.
* Fix CardHeader and Card heights (empty Label does have non-zero
  height apparently). Also improve test robustness and reduce future
  diffs.

[ Albert Astals ]
* Do not assert if the item we are removing was not created yet
  (because e.g. it's not in the viewport).
* Position correctly the pointer of the search history box .
* Make test_filter_expand_expand less unstable in CI VMs Make sure
  header0 is the header0 we want to click On the CI VM stuff is a bit
  slower than on real hw and we were clicking in the wrong place.
* Add TabBar to the Dash header navigation Changes this comes with: *
  DashBar at the bottom is gone * PageHeader doesn't have a Label
  anymore, it has the childItem property where you add which thing it
  has to contain * New: PageHeaderLabel mimics the old behaviour of
  PageHeader * The header of the LVWPH of GenericScopeView is now fake
  and only used for positioning. There is a single global floating
  header in DashContent (which is a PageHeader with a TabBar as
  childItem) * The GenericScopeView previewLoader and OpenEffect have
  been also moved to the DashContent so that the openEffect includes
  the floating header in the "animation" .
* Introduce the HorizontalJournal.
* If there are no items m_firstVisibleIndex has to be -1 .
* Add some more documentation about tests to the CODING file.
* Fixes to the journal cmake tests code * Output to the correct
  filename for the test * Don't output stuff from the tryXYZ targets.
* Adapt to findChild return value changes .
* Organic Grid for the Dash View.
* Misc journal fixes Don't init *modelIndex to INT_MAX Makes no sense
  since we're not doing any qMin and the calling function also accepts
  any index >= 0 as valid so in some cases it may end up wanting to
  create an index that doesn't exist Don't refill if height() < 0,
  that gives bad ranges for from/to and the code gets confused .

[ Michał Karnicki ]
* Fix grid view column count.
* Add test for minimum number of items in a carousel.

[ Allan LeSage ]
* Add stubs for indicators autopilot tests.

[ Andrea Cimitan ]
* Avoid input falling through notifications onto surfaces below, thus
  fixing LP: #1257312. (LP: #1257312)

[ Leo Arias ]
* Close the Touch devices after the tests. (LP: #1267600)
* Added methods to scroll to other scopes on autopilot tests.
* Added autopilot helpers for the app scope and the app preview.
  Install the fake scopes in order to use them on the tests. (LP:
  #1269114)
* On autopilot helpers, wait for the scope category to appear.

[ Nick Dedekind ]
* Visual updates for indicator panel highlight and opening opacity.
* Added inidcator tests for page & item factories.
* Fixes visible indicator misalignment in indicator items/menus
  (lp#1264678). (LP: #1264678)

[ Mirco Müller ]
* Fixed the failure of notification autopilot-test
  test_sd_incoming_call.

[ Michael Zanetti ]
* clean up fullscreen notifications code.
* import qml files into cmake, drop qmlproject.
* also add qml files in tests directory.
* Added autopilot helpers for the app scope and the app preview.
  Install the fake scopes in order to use them on the tests. (LP:
  #1269114)

[ Michael Terry ]
* Fix failure to build when using the ./build script with ninja-build
  installed. (LP: #1268525)
* Point DBus-activated processes at unity8's MIR_SOCKET rather than
  the system socket.

[ Daniel d'Andrada ]
* DragHandle: Never restart hinting animation while still pressed (LP:
  #1269022)

[ Bill Filler ]
* fix for lp:1259294, turn off auto capitalization for wifi password
  field. (LP: #1259294)
* disable predictive text in Dash search field as it interferes with
  built-in search (LP: #1273643)

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
        return defaultValue;
58
58
    }
59
59
 
60
 
    Component { id: divMenu; Indicators.DivMenuItem {} }
 
60
    Component {
 
61
        id: divMenu;
 
62
        Indicators.DivMenuItem {
 
63
            objectName: "divMenu"
 
64
        }
 
65
    }
61
66
 
62
67
    Component {
63
68
        id: sliderMenu;
64
69
        Indicators.SliderMenuItem {
 
70
            objectName: "sliderMenu"
65
71
            property QtObject menuData: null
66
72
            property var menuModel: menuFactory.menuModel
67
73
            property int menuIndex: -1
106
112
    Component {
107
113
        id: buttonMenu;
108
114
        Indicators.ButtonMenuItem {
 
115
            objectName: "buttonMenu"
109
116
            property QtObject menuData: null
110
117
            property var menuModel: menuFactory.menuModel
111
118
            property int menuIndex: -1
112
119
 
113
 
            text: menuData && menuData.label || ""
 
120
            buttonText: menuData && menuData.label || ""
114
121
            enabled: menuData && menuData.sensitive || false
115
122
 
116
123
            onActivate: {
122
129
    Component {
123
130
        id: sectionMenu;
124
131
        Indicators.SectionMenuItem {
 
132
            objectName: "sectionMenu"
125
133
            property QtObject menuData: null
126
134
            property var menuIndex: undefined
127
135
 
132
140
    Component {
133
141
        id: progressMenu;
134
142
        Indicators.ProgressMenuItem {
 
143
            objectName: "progressMenu"
135
144
            property QtObject menuData: null
136
145
            property int menuIndex: -1
137
146
 
145
154
    Component {
146
155
        id: standardMenu;
147
156
        Indicators.StandardMenuItem {
 
157
            objectName: "standardMenu"
148
158
            property QtObject menuData: null
149
159
            property int menuIndex: -1
150
160
 
164
174
    Component {
165
175
        id: switchMenu;
166
176
        Indicators.SwitchMenuItem {
 
177
            objectName: "switchMenu"
167
178
            property QtObject menuData: null
168
179
            property int menuIndex: -1
169
180
 
182
193
    Component {
183
194
        id: wifiSection;
184
195
        Indicators.SectionMenuItem {
 
196
            objectName: "wifiSection"
185
197
            property QtObject menuData: null
186
198
            property var menuModel: menuFactory.menuModel
187
199
            property int menuIndex: -1
207
219
    Component {
208
220
        id: accessPoint;
209
221
        ICNetwork.AccessPoint {
 
222
            objectName: "accessPoint"
210
223
            property QtObject menuData: null
211
224
            property var menuModel: menuFactory.menuModel
212
225
            property int menuIndex: -1
218
231
                name: getExtendedProperty(extendedData, "xCanonicalWifiApStrengthAction", "")
219
232
            }
220
233
 
221
 
            text: menuData && menuData.label || ""
 
234
            label: menuData && menuData.label || ""
222
235
            enabled: menuData && menuData.sensitive || false
223
236
            secure: getExtendedProperty(extendedData, "xCanonicalWifiApIsSecure", false)
224
237
            adHoc: getExtendedProperty(extendedData, "xCanonicalWifiApIsAdhoc", false)
248
261
    Component {
249
262
        id: messageItem
250
263
        ICMessaging.MessageMenuItemFactory {
 
264
            objectName: "messageItem"
251
265
            menuModel: menuFactory.menuModel
252
266
        }
253
267
    }
255
269
    Component {
256
270
        id: groupedMessage
257
271
        ICMessaging.GroupedMessage {
 
272
            objectName: "groupedMessage"
258
273
            property QtObject menuData: null
259
274
            property var menuModel: menuFactory.menuModel
260
275
            property int menuIndex: -1