diff options
author | 2019-09-06 02:03:22 -0700 | |
---|---|---|
committer | 2019-09-17 17:35:53 -0700 | |
commit | 35e6bf8d3b2efbac511f9e1d9db133aa078c10fe (patch) | |
tree | 7010f1eb58183eb70f4dfc60bfe0393a72d7e14a /app/BtnGuidance.qml | |
parent | 9a5b7d86347c17b22b767e5da0f79f469af5ec97 (diff) |
Run dos2unix on entire repo
Remove CR+LF line endings on most files in the repo
Bug-AGL: SPEC-2667
Change-Id: I8ad7cd9ea20658dabdecf8ce14a51cb8a851b999
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/BtnGuidance.qml')
-rw-r--r-- | app/BtnGuidance.qml | 258 |
1 files changed, 129 insertions, 129 deletions
diff --git a/app/BtnGuidance.qml b/app/BtnGuidance.qml index 37f3598..2744019 100644 --- a/app/BtnGuidance.qml +++ b/app/BtnGuidance.qml @@ -1,129 +1,129 @@ -import QtQuick 2.0
-import QtQuick.Controls 1.5
-import QtLocation 5.9
-import QtPositioning 5.6
-
-Item {
- id: btn_guidance
-
- // 0: idle
- // 1: routing
- // 2: on guide
- property int sts_guide: 0
-
- onSts_guideChanged: {
- console.log("onSts_guideChanged")
- switch(btn_guidance.sts_guide){
- case 0:
- positionTimer.stop();
- break
- case 1:
- break
- case 2:
- positionTimer.start();
- break
- default:
- break
- }
- }
-
- function startGuidance() {
- btn_present_position.state = "Flowing"
- btn_guidance.sts_guide = 2
- btn_guidance.state = "onGuide"
- }
-
- function discardWaypoints(startFromCurrentPosition) {
- if (startFromCurrentPosition === undefined) startFromCurrentPosition = false
- map.initDestination(startFromCurrentPosition)
-
- if(btn_guidance.sts_guide != 0){
- map.qmlSignalStopDemo()
- }
-
- if(map.center !== map.currentpostion){
- btn_present_position.state = "Optional"
- }
-
- btn_guidance.sts_guide = 0
- btn_guidance.state = "Idle"
- }
-
- Timer {
- id: positionTimer
- interval: fileOperation.getUpdateInterval();
- running: false;
- repeat: true
- onTriggered: map.updatePositon()
- }
-
- Button {
- id: discard
- width: 100
- height: 100
-
- visible: false
-
- onClicked: discardWaypoints()
-
- Image {
- id: discard_image
- width: 92
- height: 92
- anchors.verticalCenter: parent.verticalCenter
- anchors.horizontalCenter: parent.horizontalCenter
- source: "images/200px-Black_close_x.svg.png"
- }
- }
-
- Button {
- id: guidance
- width: 100
- height: 100
-
- visible: false
-
- onClicked: { startGuidance() }
-
- Image {
- id: guidance_image
- width: 92
- height: 92
- anchors.verticalCenter: parent.verticalCenter
- anchors.horizontalCenter: parent.horizontalCenter
- source: "images/MUTCD_RS-113.svg"
- }
-
- }
- states: [
- State {
- name: "Idle"
- PropertyChanges { target: discard; visible: false }
- PropertyChanges { target: guidance; visible: false }
- PropertyChanges { target: guidance; x: 0 }
- PropertyChanges { target: progress_next_cross; state: "invisible" }
- PropertyChanges { target: img_destination_direction; state: "invisible" }
- },
- State {
- name: "Routing"
- PropertyChanges { target: discard; visible: true }
- PropertyChanges { target: guidance; visible: true }
- PropertyChanges { target: guidance; x: -150 }
- PropertyChanges { target: progress_next_cross; state: "invisible" }
- PropertyChanges { target: img_destination_direction; state: "invisible" }
- },
- State {
- name: "onGuide"
- PropertyChanges { target: discard; visible: true }
- PropertyChanges { target: guidance; visible: false }
- PropertyChanges { target: guidance; x: 0 }
- PropertyChanges { target: progress_next_cross; state: "visible" }
- PropertyChanges { target: img_destination_direction; state: "0" }
- }
- ]
-
- transitions: Transition {
- NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad }
- NumberAnimation { properties: "visible"; easing.type: Easing.InOutQuad }
- }
-}
+import QtQuick 2.0 +import QtQuick.Controls 1.5 +import QtLocation 5.9 +import QtPositioning 5.6 + +Item { + id: btn_guidance + + // 0: idle + // 1: routing + // 2: on guide + property int sts_guide: 0 + + onSts_guideChanged: { + console.log("onSts_guideChanged") + switch(btn_guidance.sts_guide){ + case 0: + positionTimer.stop(); + break + case 1: + break + case 2: + positionTimer.start(); + break + default: + break + } + } + + function startGuidance() { + btn_present_position.state = "Flowing" + btn_guidance.sts_guide = 2 + btn_guidance.state = "onGuide" + } + + function discardWaypoints(startFromCurrentPosition) { + if (startFromCurrentPosition === undefined) startFromCurrentPosition = false + map.initDestination(startFromCurrentPosition) + + if(btn_guidance.sts_guide != 0){ + map.qmlSignalStopDemo() + } + + if(map.center !== map.currentpostion){ + btn_present_position.state = "Optional" + } + + btn_guidance.sts_guide = 0 + btn_guidance.state = "Idle" + } + + Timer { + id: positionTimer + interval: fileOperation.getUpdateInterval(); + running: false; + repeat: true + onTriggered: map.updatePositon() + } + + Button { + id: discard + width: 100 + height: 100 + + visible: false + + onClicked: discardWaypoints() + + Image { + id: discard_image + width: 92 + height: 92 + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + source: "images/200px-Black_close_x.svg.png" + } + } + + Button { + id: guidance + width: 100 + height: 100 + + visible: false + + onClicked: { startGuidance() } + + Image { + id: guidance_image + width: 92 + height: 92 + anchors.verticalCenter: parent.verticalCenter + anchors.horizontalCenter: parent.horizontalCenter + source: "images/MUTCD_RS-113.svg" + } + + } + states: [ + State { + name: "Idle" + PropertyChanges { target: discard; visible: false } + PropertyChanges { target: guidance; visible: false } + PropertyChanges { target: guidance; x: 0 } + PropertyChanges { target: progress_next_cross; state: "invisible" } + PropertyChanges { target: img_destination_direction; state: "invisible" } + }, + State { + name: "Routing" + PropertyChanges { target: discard; visible: true } + PropertyChanges { target: guidance; visible: true } + PropertyChanges { target: guidance; x: -150 } + PropertyChanges { target: progress_next_cross; state: "invisible" } + PropertyChanges { target: img_destination_direction; state: "invisible" } + }, + State { + name: "onGuide" + PropertyChanges { target: discard; visible: true } + PropertyChanges { target: guidance; visible: false } + PropertyChanges { target: guidance; x: 0 } + PropertyChanges { target: progress_next_cross; state: "visible" } + PropertyChanges { target: img_destination_direction; state: "0" } + } + ] + + transitions: Transition { + NumberAnimation { properties: "x"; easing.type: Easing.InOutQuad } + NumberAnimation { properties: "visible"; easing.type: Easing.InOutQuad } + } +} |