b5528ddb4ae2b11cdf43bda208e7026144dc1919
[apps/navigation.git] / app / ImgDestinationDirection.qml
1 import QtQuick 2.0\r
2 \r
3 Item {\r
4         id: img_destination_direction\r
5     width: 100\r
6     height: 100\r
7     visible: false\r
8 \r
9     Rectangle {\r
10         width: parent.width\r
11         height: parent.height\r
12         color: "#a0a0a0"\r
13 \r
14         Image {\r
15             id: direction\r
16             anchors.fill: parent\r
17             anchors.margins: 1\r
18             source: "images/SW_Patern_3.bmp"\r
19         }\r
20     }\r
21 \r
22         states: [\r
23         State {\r
24             name: "0" // NoDirection\r
25             PropertyChanges { target: img_destination_direction; visible: true }\r
26             PropertyChanges { target: direction; source: "images/SW_Patern_3.bmp" }\r
27         },\r
28         State {\r
29             name: "1" // DirectionForward\r
30             PropertyChanges { target: img_destination_direction; visible: true }\r
31             PropertyChanges { target: direction; source: "images/5_straight.png" }\r
32                 },\r
33                 State {\r
34             name: "2" // DirectionBearRight\r
35             PropertyChanges { target: img_destination_direction; visible: true }\r
36             PropertyChanges { target: direction; source: "images/11_2_bear_right_112px-Signal_C117a.svg.png" }\r
37                 },\r
38                 State {\r
39             name: "3" // DirectionLightRight\r
40             PropertyChanges { target: img_destination_direction; visible: true }\r
41             PropertyChanges { target: direction; source: "images/4_slight_right.png" }\r
42                 },\r
43                 State {\r
44             name: "4" // DirectionRight\r
45             PropertyChanges { target: img_destination_direction; visible: true }\r
46             PropertyChanges { target: direction; source: "images/3_right.png" }\r
47                 },\r
48                 State {\r
49             name: "5" // DirectionHardRight\r
50             PropertyChanges { target: img_destination_direction; visible: true }\r
51             PropertyChanges { target: direction; source: "images/2_sharp_right.png" }\r
52                 },\r
53                 State {\r
54             name: "6" // DirectionUTurnRight\r
55             PropertyChanges { target: img_destination_direction; visible: true }\r
56           //PropertyChanges { target: direction; source: "images/1_uturn.png" }\r
57             PropertyChanges { target: direction; source: "images/9_7_uturn_left.png" }  // no u-turn right in CES2019\r
58                 },\r
59                 State {\r
60             name: "7" // DirectionUTurnLeft\r
61             PropertyChanges { target: img_destination_direction; visible: true }\r
62             PropertyChanges { target: direction; source: "images/9_7_uturn_left.png" }\r
63                 },\r
64                 State {\r
65             name: "8" // DirectionHardLeft\r
66             PropertyChanges { target: img_destination_direction; visible: true }\r
67             PropertyChanges { target: direction; source: "images/8_sharp_left.png" }\r
68                 },\r
69                 State {\r
70             name: "9" // DirectionLeft\r
71             PropertyChanges { target: img_destination_direction; visible: true }\r
72             PropertyChanges { target: direction; source: "images/7_left.png" }\r
73         },\r
74         State {\r
75             name: "10" // DirectionLightLeft\r
76             PropertyChanges { target: img_destination_direction; visible: true }\r
77             PropertyChanges { target: direction; source: "images/6_slight_left.png" }\r
78         },\r
79         State {\r
80             name: "11" // DirectionBearLeft\r
81             PropertyChanges { target: img_destination_direction; visible: true }\r
82             PropertyChanges { target: direction; source: "images/10_11_bear_left_112px-Signal_C117a.svg.png" }\r
83         },\r
84         State {\r
85             name: "12" // arrived at your destination\r
86             PropertyChanges { target: img_destination_direction; visible: true }\r
87             PropertyChanges { target: direction; source: "images/Dest_Flag.jpg" }\r
88         },\r
89         State {\r
90             name: "invisible"\r
91             PropertyChanges { target: img_destination_direction; visible: false }\r
92         }\r
93 \r
94         ]\r
95 }\r