blob: c6f0b0e769fb61eccbe5f303dd7cafde37eca179 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
|
import QtQuick 2.0
import "Components"
import com.ford.sdlcore 1.0
import com.ford.phonecore 1.0
Rectangle {
id: root
width: 800
height: 470
color: "#000"
states: [
State {
name: "home"
PropertyChanges { target: maincontent; source: "Sections/home.qml" }
},
State {
name: "home_corners"
PropertyChanges { target: maincontent; source: "Sections/home_corners.qml" }
},
State {
name: "phone"
PropertyChanges { target: maincontent; source: "Sections/phone.qml" }
},
State {
name: "navigation"
PropertyChanges { target: maincontent; source: "Sections/navigation.qml" }
},
State {
name: "media"
PropertyChanges { target: maincontent; source: "Sections/media.qml" }
},
State {
name: "vehicle"
PropertyChanges { target: maincontent; source: "Sections/vehicle.qml" }
}
]
transitions: [
Transition {
to: '*'
PropertyAnimation { target: maincontent; property: 'opacity'; from: 0; to: 1}
}
]
function go(string) {
state = string
}
Connections {
target: AppLink
onAlert: root.alert(message);
}
Connections {
target: PhoneCore
onCallAdded: root.alert("Incoming call: \n" + name + "\n" + number)
onCallRemoved: root.alert("Call ended")
}
function alert(message) {
alert_loader.item.alert(message)
}
Section {
id: maincontent
source: "Sections/home.qml"
}
Section {
id: alert_loader
source: "Sections/alert.qml"
}
Section {
id: chrome
source: "Sections/chrome.qml"
}
}
|