2 * Copyright (C) 2013,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
23 property Item launcher
26 readonly property bool launcherEnabled: !running ||
27 (!paused && tutorialLeft.shown)
28 readonly property bool spreadEnabled: !running
29 readonly property bool panelEnabled: !running
30 readonly property bool panelContentEnabled: !running
31 readonly property alias running: d.running
33 property bool paused: false
34 property real edgeSize
45 Component.onCompleted: {
66 objectName: "tutorialLeft"
68 launcher: root.launcher
69 paused: !shown || root.paused
71 onFinished: tutorialLeftFinish.show()
75 id: tutorialLeftFinish
76 objectName: "tutorialLeftFinish"
78 textXOffset: root.launcher.panelWidth
79 paused: !shown || root.paused
80 text: i18n.tr("Tap here to continue.")
90 objectName: "tutorialRight"
92 edgeSize: root.edgeSize
94 paused: !shown || root.paused
96 onFinished: tutorialBottom.show()
101 objectName: "tutorialBottom"
103 edgeSize: root.edgeSize
104 paused: !shown || root.paused
106 onFinished: tutorialBottomFinish.show()
109 TutorialBottomFinish {
110 id: tutorialBottomFinish
111 objectName: "tutorialBottomFinish"
113 backgroundFadesOut: true
114 paused: !shown || root.paused
116 onFinished: root.finish()