2 * Copyright (C) 2014 Canonical, Ltd.
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; version 3.
8 * This program is distributed in the hope that it will be useful,
9 * but WITHOUT ANY WARRANTY; without even the implied warranty of
10 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 * GNU General Public License for more details.
13 * You should have received a copy of the GNU General Public License
14 * along with this program. If not, see <http://www.gnu.org/licenses/>.
18 import Ubuntu.Components 1.3
19 import Ubuntu.Gestures 0.1
20 import Unity.Application 0.1
21 import "../Components"
23 import "." as LocalComponents
29 property alias edgeSize: stage.dragAreaWidth
31 title: i18n.tr("To view open apps")
32 text: i18n.tr("Long swipe from the right edge.")
34 textOpacity: 1 - slider.percent
38 paused: running && root.paused
39 running: !stage.dragging && stage.dragProgress === 0
40 loops: Animation.Infinite
42 UbuntuNumberAnimation {
46 duration: UbuntuAnimation.SleepyDuration
48 UbuntuNumberAnimation {
52 duration: UbuntuAnimation.SleepyDuration
58 LocalComponents.Slider {
63 topMargin: root.textBottom + units.gu(3)
66 offset: stage.dragProgress - stage.x
67 active: stage.dragging
70 // Just assume PhoneStage for now. The tablet version of the right-edge
71 // tutorial is still being spec'd by the design team.
75 anchors.top: parent.top
78 applicationManager: fakeAppManager
90 slider.visible = false;
98 teaseAnimation.complete();
105 objectName: "overlay"
110 showAnimation: UbuntuNumberAnimation { property: "opacity"; to: 1 }
113 anchors.top: parent.top
114 anchors.topMargin: root.panel.panelHeight + units.gu(2)
115 anchors.left: parent.left
116 anchors.leftMargin: units.gu(2)
117 anchors.right: parent.right
118 anchors.rightMargin: units.gu(2)
120 horizontalAlignment: Text.AlignHCenter
122 text: i18n.tr("View all your running tasks.")
125 LocalComponents.Tick {
127 anchors.bottom: bottomOverlayText.top
128 anchors.bottomMargin: units.gu(1)
129 anchors.horizontalCenter: bottomOverlayText.horizontalCenter
130 onClicked: root.hide()
134 id: bottomOverlayText
135 anchors.bottom: parent.bottom
136 anchors.bottomMargin: units.gu(2)
137 anchors.left: parent.left
138 anchors.leftMargin: units.gu(2)
139 anchors.right: parent.right
140 anchors.rightMargin: units.gu(2)
142 horizontalAlignment: Text.AlignHCenter
144 text: i18n.tr("Tap here to continue.")
153 readonly property string focusedApplicationId: "facebook"
155 function focusApplication(appId) {}
156 function requestFocusApplication(appId) {}
157 function findApplication(appId) {return null;}
159 signal applicationAdded(string appId)
160 signal applicationRemoved(string appId)
161 signal focusRequested(string appId)
168 state: ApplicationInfoInterface.Stopped
171 splashShowHeader: false
172 splashColor: "transparent"
173 splashColorHeader: "transparent"
174 splashColorFooter: "transparent"
175 defaultScreenshot: "../Tutorial/graphics/facebook.png"
183 state: ApplicationInfoInterface.Stopped
186 splashShowHeader: false
187 splashColor: "transparent"
188 splashColorHeader: "transparent"
189 splashColorFooter: "transparent"
190 defaultScreenshot: "../Tutorial/graphics/camera.png"
198 state: ApplicationInfoInterface.Stopped
201 splashShowHeader: false
202 splashColor: "transparent"
203 splashColorHeader: "transparent"
204 splashColorFooter: "transparent"
205 defaultScreenshot: "../Tutorial/graphics/gallery.png"
213 state: ApplicationInfoInterface.Stopped
216 splashShowHeader: false
217 splashColor: "transparent"
218 splashColorHeader: "transparent"
219 splashColorFooter: "transparent"
220 defaultScreenshot: "../Tutorial/graphics/dialer.png"