aboutsummaryrefslogtreecommitdiffstats
path: root/app/ImgDestinationDirection.qml
diff options
context:
space:
mode:
authorScott Murray <scott.murray@konsulko.com>2019-07-24 12:09:40 -0400
committerScott Murray <scott.murray@konsulko.com>2019-07-24 12:09:40 -0400
commit1f875de1d513c733550401ee40fa289fb2acb57e (patch)
tree9e6764cd4de63021285435e956f260b295cdbd7b /app/ImgDestinationDirection.qml
parent33258140525123d6a38900811c2df3e14f4e8337 (diff)
Initial import from github
Import from http://github.com/YoshitoMomiyama/aglqtnavigation.git as of commit a6930c2, with the following minor changes: - .gitignore tweaked to remove itself - .gitreview updated Bug-AGL: SPEC-2667 Signed-off-by: Scott Murray <scott.murray@konsulko.com> Change-Id: I91fed0f6349bf1952e41132058929b70a2b0fe5b
Diffstat (limited to 'app/ImgDestinationDirection.qml')
-rw-r--r--app/ImgDestinationDirection.qml94
1 files changed, 94 insertions, 0 deletions
diff --git a/app/ImgDestinationDirection.qml b/app/ImgDestinationDirection.qml
new file mode 100644
index 0000000..76155c9
--- /dev/null
+++ b/app/ImgDestinationDirection.qml
@@ -0,0 +1,94 @@
+import QtQuick 2.0
+
+Item {
+ id: img_destination_direction
+ width: 100
+ height: 100
+ visible: false
+
+ Rectangle {
+ width: parent.width
+ height: parent.height
+ color: "#a0a0a0"
+
+ Image {
+ id: direction
+ anchors.fill: parent
+ anchors.margins: 1
+ source: "images/SW_Patern_3.bmp"
+ }
+ }
+
+ states: [
+ State {
+ name: "0" // NoDirection
+ PropertyChanges { target: img_destination_direction; visible: false }
+ },
+ State {
+ name: "1" // DirectionForward
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_N.png" }
+ },
+ State {
+ name: "2" // DirectionBearRight
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/11_2_bear_right_112px-Signal_C117a.svg.png" }
+ },
+ State {
+ name: "3" // DirectionLightRight
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_NE.png" }
+ },
+ State {
+ name: "4" // DirectionRight
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_E.png" }
+ },
+ State {
+ name: "5" // DirectionHardRight
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_SE.png" }
+ },
+ State {
+ name: "6" // DirectionUTurnRight
+ PropertyChanges { target: img_destination_direction; visible: true }
+// PropertyChanges { target: direction; source: "images/146px-Israely_road_sign_211.svg.png" }
+ PropertyChanges { target: direction; source: "images/146px-Israely_road_sign_212.svg.png" } // No u-turn right in CES2019
+ },
+ State {
+ name: "7" // DirectionUTurnLeft
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/146px-Israely_road_sign_212.svg.png" }
+ },
+ State {
+ name: "8" // DirectionHardLeft
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_SW.png" }
+ },
+ State {
+ name: "9" // DirectionLeft
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_W.png" }
+ },
+ State {
+ name: "10" // DirectionLightLeft
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/145px-16_cardinal_points_NW.png" }
+ },
+ State {
+ name: "11" // DirectionBearLeft
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/10_11_bear_left_112px-Signal_C117a.svg.png" }
+ },
+ State {
+ name: "12" // arrived at your destination
+ PropertyChanges { target: img_destination_direction; visible: true }
+ PropertyChanges { target: direction; source: "images/Emoji_u1f3c1.svg" }
+ },
+ State {
+ name: "invisible"
+ PropertyChanges { target: img_destination_direction; visible: false }
+ }
+
+ ]
+}