summaryrefslogtreecommitdiff
path: root/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml')
-rw-r--r--SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml79
1 files changed, 79 insertions, 0 deletions
diff --git a/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml b/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml
new file mode 100644
index 000000000..c6f0b0e76
--- /dev/null
+++ b/SDL_Core/src/components/qt_hmi/References/Work/bananasnacks/qml/Bananas/main.qml
@@ -0,0 +1,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"
+ }
+}