@@ -33,23 +33,23 @@ Item {
33 signal contentFlickStarted()
33 signal contentFlickStarted()
34 signal contentEndReached()
34 signal contentEndReached()
35 signal previewShown()
35 signal previewShown()
36− signal lensLoaded(string lensId)
36+ signal scopeLoaded(string scopeId)
37 signal positionedAtBeginning()
37 signal positionedAtBeginning()
39− // If we set the current lens index before the scopes have been added,
39+ // If we set the current scope index before the scopes have been added,
40 // then we need to wait until the loaded signals gets emitted from the scopes
40 // then we need to wait until the loaded signals gets emitted from the scopes
41 property var set_current_index: undefined
41 property var set_current_index: undefined
42 Connections {
42 Connections {
43 target: scopes
43 target: scopes
44 onLoadedChanged: {
44 onLoadedChanged: {
45 if (scopes.loaded && set_current_index != undefined) {
45 if (scopes.loaded && set_current_index != undefined) {
46− setCurrentLensAtIndex(set_current_index[0], set_current_index[1], set_current_index[2]);
46+ setCurrentScopeAtIndex(set_current_index[0], set_current_index[1], set_current_index[2]);
47 set_current_index = undefined;
47 set_current_index = undefined;
52− function setCurrentLensAtIndex(index, animate, reset) {
52+ function setCurrentScopeAtIndex(index, animate, reset) {
53 var storedMoveDuration = dashContentList.highlightMoveDuration
53 var storedMoveDuration = dashContentList.highlightMoveDuration
54 var storedMoveSpeed = dashContentList.highlightMoveVelocity
54 var storedMoveSpeed = dashContentList.highlightMoveVelocity
55 if (!animate) {
55 if (!animate) {
@@ -79,12 +79,12 @@ Item {
82− property var lensDelegateMapping: {"mockmusicmaster.scope": "DashMusic.qml",
82+ property var scopeDelegateMapping: {"mockmusicmaster.scope": "DashMusic.qml",
83 "applications.scope": "DashApps.qml",
83 "applications.scope": "DashApps.qml",
84 "home.scope": "DashHome.qml",
84 "home.scope": "DashHome.qml",
85 "mockvideosmaster.scope": "DashVideos.qml",
85 "mockvideosmaster.scope": "DashVideos.qml",
87− property string genericLens: "GenericLensView.qml"
87+ property string genericScope: "GenericScopeView.qml"
89 ListView {
89 ListView {
90 id: dashContentList
90 id: dashContentList
@@ -102,7 +102,7 @@ Item {
102 highlightMoveDuration: 250
102 highlightMoveDuration: 250
103 highlightRangeMode: ListView.StrictlyEnforceRange
103 highlightRangeMode: ListView.StrictlyEnforceRange
104 /* FIXME: workaround rendering issue due to use of ShaderEffectSource in
104 /* FIXME: workaround rendering issue due to use of ShaderEffectSource in
105− UbuntuShape. While switching from the home lens to the People lens the
105+ UbuntuShape. While switching from the home scope to the People scope the
106 rendering would block midway.
106 rendering would block midway.
108 cacheBuffer: 2147483647
108 cacheBuffer: 2147483647
@@ -112,7 +112,7 @@ Item {
112 // If the number of items is less than the current index, then need to reset to another item.
112 // If the number of items is less than the current index, then need to reset to another item.
113 onCountChanged: {
113 onCountChanged: {
114 if (currentIndex >= count)
114 if (currentIndex >= count)
115− dashContent.setCurrentLensAtIndex(count-1, true, true)
115+ dashContent.setCurrentScopeAtIndex(count-1, true, true)
118 delegate:
118 delegate:
@@ -121,20 +121,20 @@ Item {
121 height: ListView.view.height
121 height: ListView.view.height
122 asynchronous: true
122 asynchronous: true
123 source: {
123 source: {
124− var customLens = lensDelegateMapping[lens.id]
124+ var customScope = scopeDelegateMapping[scope.id]
125− if (customLens) {
125+ if (customScope) {
126− return customLens
126+ return customScope
128− return genericLens
128+ return genericScope
131 onLoaded: {
131 onLoaded: {
132− item.lens = Qt.binding(function() { return lens })
132+ item.scope = Qt.binding(function() { return scope })
133 item.isCurrent = Qt.binding(function() { return ListView.isCurrentItem })
133 item.isCurrent = Qt.binding(function() { return ListView.isCurrentItem })
134 item.searchHistory = Qt.binding(function() { return shell.searchHistory })
134 item.searchHistory = Qt.binding(function() { return shell.searchHistory })
135 dashContentList.movementStarted.connect(item.movementStarted)
135 dashContentList.movementStarted.connect(item.movementStarted)
136 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
136 dashContent.positionedAtBeginning.connect(item.positionedAtBeginning)
137− dashContent.lensLoaded(item.lens.id)
137+ dashContent.scopeLoaded(item.scope.id)
139 Connections {
139 Connections {
140 target: item
140 target: item