on aa2feff help sign in
unity8/qml/Tutorial/Tutorial.qml
86 lines 2.3 kB history raw
1/*
2 * Copyright (C) 2014 Canonical, Ltd.
3 *
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.
7 *
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.
12 *
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/>.
15 */
17import QtQuick 2.3
18import Ubuntu.Components 1.1
20Item {
21 id: root
23 property alias active: loader.active
24 property bool paused
25 property real edgeSize
27 property Item launcher
28 property Item panel
29 property Item stages
30 property Item overlay
32 readonly property bool launcherEnabled: loader.item ? loader.item.launcherEnabled : true
33 readonly property bool spreadEnabled: loader.item ? loader.item.spreadEnabled : true
34 readonly property bool panelEnabled: loader.item ? loader.item.panelEnabled : true
35 readonly property bool panelContentEnabled: loader.item ? loader.item.panelContentEnabled : true
36 readonly property bool running: loader.item ? loader.item.running : false
38 signal finished()
40 Loader {
41 id: loader
42 anchors.fill: parent
43 source: "TutorialContent.qml"
45 Binding {
46 target: loader.item
47 property: "paused"
48 value: root.paused
49 }
51 Binding {
52 target: loader.item
53 property: "edgeSize"
54 value: root.edgeSize
55 }
57 Binding {
58 target: loader.item
59 property: "launcher"
60 value: root.launcher
61 }
63 Binding {
64 target: loader.item
65 property: "panel"
66 value: root.panel
67 }
69 Binding {
70 target: loader.item
71 property: "stages"
72 value: root.stages
73 }
75 Binding {
76 target: loader.item
77 property: "overlay"
78 value: root.overlay
79 }
81 Connections {
82 target: loader.item
83 onFinished: root.finished()
84 }
85 }