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.1
23 property Item launcher
28 readonly property bool launcherEnabled: !running ||
29 (!paused && tutorialLeft.shown)
30 readonly property bool spreadEnabled: !running
31 readonly property bool panelEnabled: !running
32 readonly property bool panelContentEnabled: !running
33 readonly property alias running: d.running
35 property bool paused: false
36 property real edgeSize
47 Component.onCompleted: {
68 objectName: "tutorialLeft"
71 launcher: root.launcher
72 paused: !shown || root.paused
74 onFinished: tutorialLeftFinish.show()
78 id: tutorialLeftFinish
79 objectName: "tutorialLeftFinish"
82 textXOffset: root.launcher.panelWidth
83 paused: !shown || root.paused
93 objectName: "tutorialRight"
96 edgeSize: root.edgeSize
98 paused: !shown || root.paused
100 onFinished: tutorialBottom.show()
105 objectName: "tutorialBottom"
108 edgeSize: root.edgeSize
109 paused: !shown || root.paused
111 onFinished: tutorialBottomFinish.show()
114 TutorialBottomFinish {
115 id: tutorialBottomFinish
116 objectName: "tutorialBottomFinish"
119 backgroundFadesOut: true
120 paused: !shown || root.paused
122 onFinished: root.finish()