~cimi/unity8/scope-settings

« back to all changes in this revision

Viewing changes to tests/mocks/Unity/Unity.qmltypes

  • Committer: Andrea Cimitan
  • Date: 2014-08-07 16:17:06 UTC
  • mfrom: (1109.1.25 unity8)
  • Revision ID: andrea.cimitan@gmail.com-20140807161706-j6ndy7bgz457xn4n
[ Michal Hruby ]
* Work with the scopes-v4 branch + departments->navigation renaming
[ Michał Sawicz ]
* Hardcode art shape size for click scope local and predefined
  categories While at it, drop the fillmode of cards
* Use the correct API in PageHeader. (LP: #1353048)
* Refactor dash activity indicator. (LP: #1351539)
[ Albert Astals ]
* Dash Departments fixes Update maxHeight manually since it depends on
  the position of the item and its parents and it can't know when the
  binding has to be updated Make parent stuff non interactive when the
  department list is shown
* PageHeader: when on search clip y-coordinates otherwise the
  background spills out when on search (LP: #1350398)
* Dash: Implement OverlayColor support in Cards
* Hardcode art shape size for click scope local and predefined
  categories While at it, drop the fillmode of cards
* Make test_departments test more stable There's various
  DashDepartments on the dash, make sure we're working over the one
  that is on screen, otherwise clicks don't end up where they should
* Work with the scopes-v4 branch + departments->navigation renaming
* Fixes for dash as app Load i18n catalog Process command line options
  Add the posibility to have a mouse touch adaptor (LP: #1353351)
* Implement the Expandable Preview Widget Now TextSummary is not
  expandable by itself anymore, you have to use it inside an
  Expandable to get the behaviour
* Add test prefix to xml output, seems CI needs it
[ Antti Kaijanmäki ]
* Indicators: Adds new ModemInfoItem to be used with indicator-network
  (LP: #1329204)
[ Michael Terry ]
* When the edge demo is running, don't show the greeter if the screen
  is turned off. This avoids an odd interaction where parts of the
  greeter are disabled but the edge demo isn't visible until you slide
  the greeter away. (LP: #1283425)
* Don't hardcode the phablet password in our testing script.
[ Ying-Chun Liu ]
* Add divider dots.
[ Mirco Müller ]
* Make sure the TextField of a snap-decision notification has the
  active focus upon creation, thus the osk shows up right away. (LP:
  #1346867)
[ Andrea Cimitan ]
* Add touchdown effect to dash cards.
* Import Ubuntu.Components for preview image gallery to pick up
  default flicking speeds.
[ Michael Zanetti ]
* Split the dash from the shell into a separate app (LP: #1232687)
[ Leo Arias ]
* Update the autopilot tests to work with the new dash app.
[ Daniel d'Andrada ]
* Split the dash from the shell into a separate app (LP: #1232687)

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
            Parameter { name: "categoryId"; type: "string" }
25
25
            Parameter { name: "json"; type: "string" }
26
26
        }
 
27
        Method {
 
28
            name: "data"
 
29
            type: "QVariant"
 
30
            Parameter { name: "row"; type: "int" }
 
31
            Parameter { name: "role"; type: "int" }
 
32
        }
27
33
    }
28
34
    Component {
29
35
        name: "PreviewModel"
62
68
        prototype: "unity::shell::scopes::ScopeInterface"
63
69
        exports: ["Unity/MockScope 0.2"]
64
70
        exportMetaObjectRevisions: [0]
 
71
        Signal {
 
72
            name: "performQuery"
 
73
            Parameter { name: "query"; type: "string" }
 
74
        }
65
75
        Method {
66
76
            name: "setSearchInProgress"
67
77
            Parameter { name: "inProg"; type: "bool" }
81
91
            Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
82
92
        }
83
93
        Method {
84
 
            name: "getDepartment"
85
 
            type: "unity::shell::scopes::DepartmentInterface*"
86
 
            Parameter { name: "id"; type: "string" }
87
 
        }
88
 
        Method {
89
 
            name: "loadDepartment"
90
 
            Parameter { name: "id"; type: "string" }
91
 
        }
92
 
        Method {
93
 
            name: "performQuery"
94
 
            Parameter { name: "query"; type: "string" }
95
 
        }
 
94
            name: "getNavigation"
 
95
            type: "unity::shell::scopes::NavigationInterface*"
 
96
            Parameter { name: "navigationId"; type: "string" }
 
97
        }
 
98
        Method {
 
99
            name: "getAltNavigation"
 
100
            type: "unity::shell::scopes::NavigationInterface*"
 
101
            Parameter { name: "altNavigationId"; type: "string" }
 
102
        }
 
103
        Method {
 
104
            name: "setNavigationState"
 
105
            Parameter { name: "navigationId"; type: "string" }
 
106
            Parameter { name: "isAltNavigation"; type: "bool" }
 
107
        }
 
108
        Method { name: "refresh" }
96
109
    }
97
110
    Component {
98
111
        name: "Scopes"
137
150
                "RoleRawRendererTemplate": 3,
138
151
                "RoleRenderer": 4,
139
152
                "RoleComponents": 5,
 
153
                "RoleHeaderLink": 6,
140
154
                "RoleResults": 7,
141
155
                "RoleCount": 8
142
156
            }
157
171
        }
158
172
    }
159
173
    Component {
160
 
        name: "unity::shell::scopes::DepartmentInterface"
 
174
        name: "unity::shell::scopes::NavigationInterface"
161
175
        prototype: "QAbstractListModel"
162
 
        exports: ["Unity/Department 0.2"]
 
176
        exports: ["Unity/Navigation 0.2"]
163
177
        isCreatable: false
164
178
        exportMetaObjectRevisions: [0]
165
179
        Enum {
166
180
            name: "Roles"
167
181
            values: {
168
 
                "RoleDepartmentId": 0,
 
182
                "RoleNavigationId": 0,
169
183
                "RoleLabel": 1,
170
184
                "RoleHasChildren": 2,
171
185
                "RoleIsActive": 3
172
186
            }
173
187
        }
174
 
        Property { name: "departmentId"; type: "string"; isReadonly: true }
 
188
        Property { name: "navigationId"; type: "string"; isReadonly: true }
175
189
        Property { name: "label"; type: "string"; isReadonly: true }
176
190
        Property { name: "allLabel"; type: "string"; isReadonly: true }
177
 
        Property { name: "parentDepartmentId"; type: "string"; isReadonly: true }
 
191
        Property { name: "parentNavigationId"; type: "string"; isReadonly: true }
178
192
        Property { name: "parentLabel"; type: "string"; isReadonly: true }
179
193
        Property { name: "loaded"; type: "bool"; isReadonly: true }
180
194
        Property { name: "isRoot"; type: "bool"; isReadonly: true }
 
195
        Property { name: "hidden"; type: "bool"; isReadonly: true }
181
196
        Property { name: "count"; type: "int"; isReadonly: true }
182
197
    }
183
198
    Component {
247
262
                "RoleEmblem": 8,
248
263
                "RoleSummary": 9,
249
264
                "RoleAttributes": 10,
250
 
                "RoleBackground": 11
 
265
                "RoleBackground": 11,
 
266
                "RoleOverlayColor": 12
251
267
            }
252
268
        }
253
269
        Property { name: "categoryId"; type: "string" }
259
275
        exports: ["Unity/Scope 0.2"]
260
276
        isCreatable: false
261
277
        exportMetaObjectRevisions: [0]
 
278
        Enum {
 
279
            name: "Status"
 
280
            values: {
 
281
                "Okay": 0,
 
282
                "NoInternet": 1,
 
283
                "NoLocationData": 2,
 
284
                "Unknown": 3
 
285
            }
 
286
        }
262
287
        Property { name: "id"; type: "string"; isReadonly: true }
263
288
        Property { name: "name"; type: "string"; isReadonly: true }
264
289
        Property { name: "iconHint"; type: "string"; isReadonly: true }
265
290
        Property { name: "description"; type: "string"; isReadonly: true }
266
291
        Property { name: "searchHint"; type: "string"; isReadonly: true }
267
292
        Property { name: "searchInProgress"; type: "bool"; isReadonly: true }
268
 
        Property { name: "visible"; type: "bool"; isReadonly: true }
 
293
        Property { name: "favorite"; type: "bool" }
269
294
        Property { name: "shortcut"; type: "string"; isReadonly: true }
270
295
        Property {
271
296
            name: "categories"
273
298
            isReadonly: true
274
299
            isPointer: true
275
300
        }
 
301
        Property {
 
302
            name: "settings"
 
303
            type: "unity::shell::scopes::SettingsModelInterface"
 
304
            isReadonly: true
 
305
            isPointer: true
 
306
        }
276
307
        Property { name: "searchQuery"; type: "string" }
277
308
        Property { name: "noResultsHint"; type: "string" }
278
309
        Property { name: "formFactor"; type: "string" }
279
310
        Property { name: "isActive"; type: "bool" }
280
 
        Property { name: "currentDepartmentId"; type: "string"; isReadonly: true }
281
 
        Property { name: "hasDepartments"; type: "bool"; isReadonly: true }
 
311
        Property { name: "currentNavigationId"; type: "string"; isReadonly: true }
 
312
        Property { name: "hasNavigation"; type: "bool"; isReadonly: true }
 
313
        Property { name: "currentAltNavigationId"; type: "string"; isReadonly: true }
 
314
        Property { name: "hasAltNavigation"; type: "bool"; isReadonly: true }
282
315
        Property { name: "customizations"; type: "QVariantMap"; isReadonly: true }
 
316
        Property {
 
317
            name: "status"
 
318
            type: "unity::shell::scopes::ScopeInterface::Status"
 
319
            isReadonly: true
 
320
        }
 
321
        Signal { name: "detailsChanged" }
283
322
        Signal { name: "showDash" }
284
323
        Signal { name: "hideDash" }
285
324
        Signal {
298
337
            name: "openScope"
299
338
            Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
300
339
        }
301
 
        Signal {
302
 
            name: "activateApplication"
303
 
            Parameter { name: "desktop"; type: "string" }
304
 
        }
305
340
        Method {
306
341
            name: "activate"
307
342
            Parameter { name: "result"; type: "QVariant" }
317
352
            Parameter { name: "scope"; type: "unity::shell::scopes::ScopeInterface"; isPointer: true }
318
353
        }
319
354
        Method {
320
 
            name: "getDepartment"
321
 
            type: "unity::shell::scopes::DepartmentInterface*"
322
 
            Parameter { name: "departmentId"; type: "string" }
323
 
        }
324
 
        Method {
325
 
            name: "loadDepartment"
326
 
            Parameter { name: "departmentId"; type: "string" }
327
 
        }
 
355
            name: "getNavigation"
 
356
            type: "unity::shell::scopes::NavigationInterface*"
 
357
            Parameter { name: "navigationId"; type: "string" }
 
358
        }
 
359
        Method {
 
360
            name: "getAltNavigation"
 
361
            type: "unity::shell::scopes::NavigationInterface*"
 
362
            Parameter { name: "altNavigationId"; type: "string" }
 
363
        }
 
364
        Method {
 
365
            name: "setNavigationState"
 
366
            Parameter { name: "navId"; type: "string" }
 
367
            Parameter { name: "altNavigation"; type: "bool" }
 
368
        }
 
369
        Method {
 
370
            name: "performQuery"
 
371
            Parameter { name: "cannedQuery"; type: "string" }
 
372
        }
 
373
        Method { name: "refresh" }
328
374
    }
329
375
    Component {
330
376
        name: "unity::shell::scopes::ScopesInterface"
334
380
            values: {
335
381
                "RoleScope": 0,
336
382
                "RoleId": 1,
337
 
                "RoleVisible": 2,
338
 
                "RoleTitle": 3
 
383
                "RoleTitle": 2
339
384
            }
340
385
        }
341
386
        Property { name: "loaded"; type: "bool"; isReadonly: true }
 
387
        Property { name: "count"; type: "int"; isReadonly: true }
 
388
        Property {
 
389
            name: "overviewScope"
 
390
            type: "unity::shell::scopes::ScopeInterface"
 
391
            isReadonly: true
 
392
            isPointer: true
 
393
        }
342
394
        Method {
343
395
            name: "getScope"
344
396
            type: "unity::shell::scopes::ScopeInterface*"