2 import QtQuick.Controls 1.5
\r
3 import QtLocation 5.9
\r
4 import QtPositioning 5.6
\r
12 property int sts_guide: 0
\r
14 onSts_guideChanged: {
\r
15 console.log("onSts_guideChanged")
\r
16 switch(btn_guidance.sts_guide){
\r
18 positionTimer.stop();
\r
23 positionTimer.start();
\r
30 function startGuidance() {
\r
31 btn_present_position.state = "Flowing"
\r
32 btn_guidance.sts_guide = 2
\r
33 btn_guidance.state = "onGuide"
\r
36 function discardWaypoints() {
\r
37 map.initDestination()
\r
39 if(btn_guidance.sts_guide != 0){
\r
40 map.qmlSignalStopDemo()
\r
43 if(map.center !== map.currentpostion){
\r
44 btn_present_position.state = "Optional"
\r
47 btn_guidance.sts_guide = 0
\r
48 btn_guidance.state = "Idle"
\r
53 interval: fileOperation.getUpdateInterval();
\r
56 onTriggered: map.updatePositon()
\r
66 onClicked: discardWaypoints()
\r
72 anchors.verticalCenter: parent.verticalCenter
\r
73 anchors.horizontalCenter: parent.horizontalCenter
\r
74 source: "images/200px-Black_close_x.svg.png"
\r
85 onClicked: { startGuidance() }
\r
91 anchors.verticalCenter: parent.verticalCenter
\r
92 anchors.horizontalCenter: parent.horizontalCenter
\r
93 source: "images/124px-Pictograms-nps-land-driving_tour-2.svg.png"
\r
100 PropertyChanges { target: discard; visible: false }
\r
101 PropertyChanges { target: guidance; visible: false }
\r
102 PropertyChanges { target: guidance; x: 0 }
\r
103 PropertyChanges { target: progress_next_cross; state: "invisible" }
\r
104 PropertyChanges { target: img_destination_direction; state: "invisible" }
\r
108 PropertyChanges { target: discard; visible: true }
\r
109 PropertyChanges { target: guidance; visible: true }
\r
110 PropertyChanges { target: guidance; x: -150 }
\r
111 PropertyChanges { target: progress_next_cross; state: "invisible" }
\r
112 PropertyChanges { target: img_destination_direction; state: "invisible" }
\r
116 PropertyChanges { target: discard; visible: true }
\r
117 PropertyChanges { target: guidance; visible: false }
\r
118 PropertyChanges { target: guidance; x: 0 }
\r
119 PropertyChanges { target: progress_next_cross; state: "visible" }
\r
120 PropertyChanges { target: img_destination_direction; state: "0" }
\r
124 transitions: Transition {
\r
125 NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad }
\r
126 NumberAnimation { properties: "visible"; easing.type: Easing.InOutQuad }
\r