Merge lp:~costales/unav/0.67-set-mode-routes into lp:unav

Proposed by costales
Status: Merged
Merged at revision: 174
Proposed branch: lp:~costales/unav/0.67-set-mode-routes
Merge into: lp:unav
Diff against target: 1655 lines (+726/-271)
14 files modified
nav/class/Settings.js (+1/-1)
nav/class/UI.js (+91/-25)
nav/class/WebAPI.js (+13/-4)
nav/css/unav.css (+37/-6)
nav/img/mode/bike.svg (+6/-6)
nav/img/mode/car.svg (+6/-6)
nav/img/mode/noroute.svg (+149/-0)
nav/img/mode/steps.svg (+54/-0)
nav/img/states/not_found.svg (+223/-0)
nav/index.html (+35/-9)
po/unav.pot (+87/-127)
qml/Location.qml (+2/-2)
qml/Main.qml (+18/-6)
qml/SettingsPage.qml (+4/-79)
To merge this branch: bzr merge lp:~costales/unav/0.67-set-mode-routes
Reviewer Review Type Date Requested Status
uNav developers Pending
Review via email: mp+317721@code.launchpad.net

Description of the change

Choose route mode in each new route or simulation

To post a comment you must log in.
184. By costales

Choose route mode

185. By costales

New empty state

186. By costales

New empty state

187. By costales

Ended

188. By costales

Wrong index

189. By costales

Updated Settings

190. By costales

i18n

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'nav/class/Settings.js'
--- nav/class/Settings.js 2016-06-24 09:22:29 +0000
+++ nav/class/Settings.js 2017-02-19 22:22:23 +0000
@@ -16,7 +16,7 @@
16function Settings() {16function Settings() {
17 this.sound = true;17 this.sound = true;
18 this.unit = this.KM;18 this.unit = this.KM;
19 this.routing_mode = 0; // 0 car, 1 walk, 2 bike19 this.routing_mode = 0; // 0 car, 1 walk, 2 bike, 3 multimodal
20 this.avoid_tolls = false;20 this.avoid_tolls = false;
21 this.alert_radars = true;21 this.alert_radars = true;
22 this.ui_speed = true;22 this.ui_speed = true;
2323
=== modified file 'nav/class/UI.js'
--- nav/class/UI.js 2017-01-15 12:10:13 +0000
+++ nav/class/UI.js 2017-02-19 22:22:23 +0000
@@ -28,7 +28,6 @@
28 this.center_1st_pos = true;28 this.center_1st_pos = true;
29 this.zoom_unav = true;29 this.zoom_unav = true;
30 this.map_stretched = true;30 this.map_stretched = true;
31 this.confirm_route = true;
32 31
33 this.marker_pos = new ol.Overlay({32 this.marker_pos = new ol.Overlay({
34 positioning: 'center-center',33 positioning: 'center-center',
@@ -195,6 +194,51 @@
195 return this.online_layer;194 return this.online_layer;
196}195}
197196
197UI.prototype.set_confirm_btn_color = function(mode) {
198 switch (mode) {
199 case 0:
200 $("#btn1_set_car").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
201 $("#btn1_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
202 $("#btn1_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
203 $("#btn1_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
204 $("#btn2_set_car").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
205 $("#btn2_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
206 $("#btn2_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
207 $("#btn2_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
208 break;
209 case 1:
210 $("#btn1_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
211 $("#btn1_set_walk").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
212 $("#btn1_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
213 $("#btn1_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
214 $("#btn2_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
215 $("#btn2_set_walk").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
216 $("#btn2_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
217 $("#btn2_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
218 break;
219 case 2:
220 $("#btn1_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
221 $("#btn1_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
222 $("#btn1_set_bike").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
223 $("#btn1_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
224 $("#btn2_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
225 $("#btn2_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
226 $("#btn2_set_bike").css( {"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
227 $("#btn2_set_public").css({"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
228 break;
229 case 3:
230 $("#btn1_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
231 $("#btn1_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
232 $("#btn1_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
233 $("#btn1_set_public").css({"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
234 $("#btn2_set_car").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
235 $("#btn2_set_walk").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
236 $("#btn2_set_bike").css( {"background": this.COLOR_BLACK, "border-color":this.COLOR_BLACK});
237 $("#btn2_set_public").css({"background": this.COLOR_ORANGE, "border-color":this.COLOR_ORANGE});
238 break;
239 }
240}
241
198UI.prototype.set_map_layer = function(layer) {242UI.prototype.set_map_layer = function(layer) {
199 var aux_center = this.map.getView().getCenter();243 var aux_center = this.map.getView().getCenter();
200 var aux_zoom = this.map.getView().getZoom();244 var aux_zoom = this.map.getView().getZoom();
@@ -251,14 +295,6 @@
251 this.zoom_unav = zoom;295 this.zoom_unav = zoom;
252}296}
253297
254UI.prototype.get_confirm_route = function() {
255 return this.confirm_route;
256}
257
258UI.prototype.set_confirm_route = function(confirm) {
259 this.confirm_route = confirm;
260}
261
262UI.prototype.markers = function(start_lat, start_lng, end_lat, end_lng) {298UI.prototype.markers = function(start_lat, start_lng, end_lat, end_lng) {
263 this.marker_start.setPosition(undefined);299 this.marker_start.setPosition(undefined);
264 this.marker_end.setPosition(undefined);300 this.marker_end.setPosition(undefined);
@@ -278,6 +314,25 @@
278 }314 }
279}315}
280316
317UI.prototype.btns_confirm_route = function(show) {
318 if (show) {
319 $('#btn_start').show();
320 $('#btn_cancel').show();
321 $('#btn_notfound').hide();
322 $('#p_review_time2left').show();
323 $('#p_review_total_dist').show();
324 $('#p_review_time2arrive').show();
325 }
326 else {
327 $('#btn_start').hide();
328 $('#btn_cancel').hide();
329 $('#btn_notfound').show();
330 $('#p_review_time2left').hide();
331 $('#p_review_total_dist').hide();
332 $('#p_review_time2arrive').hide();
333 }
334}
335
281UI.prototype.route = function(redraw_map) {336UI.prototype.route = function(redraw_map) {
282 if (this.nav.get_route_status() !== 'drawing' && this.nav.get_route_status() !== 'simulate_drawing') {337 if (this.nav.get_route_status() !== 'drawing' && this.nav.get_route_status() !== 'simulate_drawing') {
283 this.routeSource.clear();338 this.routeSource.clear();
@@ -314,6 +369,7 @@
314 aux_height = aux_height + $('#panel_msg').height();369 aux_height = aux_height + $('#panel_msg').height();
315 aux_height = aux_height + 110;370 aux_height = aux_height + 110;
316 this.map.getView().fit(this.routeSource.getExtent(), this.map.getSize(), {padding: [150, 25, aux_height, 25]});371 this.map.getView().fit(this.routeSource.getExtent(), this.map.getSize(), {padding: [150, 25, aux_height, 25]});
372 map.updateSize();
317 }373 }
318}374}
319375
@@ -534,6 +590,7 @@
534 $('#panel_msg').show();590 $('#panel_msg').show();
535 break;591 break;
536 case '2review':592 case '2review':
593 case 'calculating_error':
537 $('#p_review_time2left').html(this.maths.time2human(route_indicator['time'], false));594 $('#p_review_time2left').html(this.maths.time2human(route_indicator['time'], false));
538 $('#p_review_total_dist').html(this.maths.dist2human(route_indicator['distance_total'], this.settings.get_unit()));595 $('#p_review_total_dist').html(this.maths.dist2human(route_indicator['distance_total'], this.settings.get_unit()));
539 $('#p_review_time2arrive').html(this.maths.time2human(route_indicator['time'], true));596 $('#p_review_time2arrive').html(this.maths.time2human(route_indicator['time'], true));
@@ -587,8 +644,15 @@
587 $('#panel_msg').show();644 $('#panel_msg').show();
588 break;645 break;
589 case 'simulate_error':646 case 'simulate_error':
590 $('#p_msg').html(t("Error simulating route. Try different points"));647 $('#p_time2left').html('');
591 $('#panel_msg').show();648 $('#p_total_dist').html('');
649 $('#p_time2arrive').html('');
650 $('#p_speed').hide();
651 $('#p_txt_ind').html(this.compose_btns_routing());
652 this.set_confirm_btn_color(this.settings.get_routing_mode());
653 $('#p_img_ind').attr('src', 'img/mode/noroute.svg');
654 $('#panel_navigation').show();
655 $('#panel_indication, #panel_txt_ind').css('background-color', this.COLOR_BLACK);
592 break;656 break;
593 case 'simulate_done_bike':657 case 'simulate_done_bike':
594 case 'simulate_done_walk':658 case 'simulate_done_walk':
@@ -598,27 +662,29 @@
598 $('#p_total_dist').html(this.maths.dist2human(route_indicator['distance_total'], this.settings.get_unit()));662 $('#p_total_dist').html(this.maths.dist2human(route_indicator['distance_total'], this.settings.get_unit()));
599 $('#p_time2arrive').html(this.maths.time2human(route_indicator['time'], true));663 $('#p_time2arrive').html(this.maths.time2human(route_indicator['time'], true));
600 $('#p_speed').hide();664 $('#p_speed').hide();
601 switch (this.nav.get_route_status()) {
602 case 'simulate_done_public':
603 $('#p_img_ind').attr('src', 'img/mode/public.svg');
604 break;
605 case 'simulate_done_bike':
606 $('#p_img_ind').attr('src', 'img/mode/bike.svg');
607 break;
608 case 'simulate_done_walk':
609 $('#p_img_ind').attr('src', 'img/mode/walk.svg');
610 break;
611 default:
612 $('#p_img_ind').attr('src', 'img/mode/car.svg');
613 }
614 $('#p_next_dist').html('');665 $('#p_next_dist').html('');
615 $('#p_txt_ind').html(t("Click onto the icon for reviewing the route"));666 $('#p_txt_ind').html(this.compose_btns_routing());
667 this.set_confirm_btn_color(this.settings.get_routing_mode());
668 $('#p_img_ind').attr('src', 'img/mode/steps.svg');
616 $('#panel_navigation').show();669 $('#panel_navigation').show();
617 $('#panel_indication, #panel_txt_ind').css('background-color', this.COLOR_BLACK);670 $('#panel_indication, #panel_txt_ind').css('background-color', this.COLOR_BLACK);
618 break;671 break;
619 }672 }
620}673}
621674
675UI.prototype.compose_btns_routing = function() {
676 return "<table class='tg' id='panel_review_btns'> \
677 <tr> \
678 <th class='tg-yw4l'> \
679 <button data-role='button' id='btn2_set_car' class='btns2_mode_route negative' onClick='javascript:set_simulate_mode(0)'><img class='img2_btn_route' src='img/mode/car.svg'></button> \
680 <button data-role='button' id='btn2_set_walk' class='btns2_mode_route negative' onClick='javascript:set_simulate_mode(1)'><img class='img2_btn_route' src='img/mode/walk.svg'></button> \
681 <button data-role='button' id='btn2_set_bike' class='btns2_mode_route negative' onClick='javascript:set_simulate_mode(2)'><img class='img2_btn_route' src='img/mode/bike.svg'></button> \
682 <button data-role='button' id='btn2_set_public' class='btns2_mode_route negative' onClick='javascript:set_simulate_mode(3)'><img class='img2_btn_route' src='img/mode/public.svg'></button> \
683 </th> \
684 </tr> \
685 </table>";
686}
687
622UI.prototype.scale_line = function() {688UI.prototype.scale_line = function() {
623 switch(this.nav.get_route_status()) {689 switch(this.nav.get_route_status()) {
624 case 'no':690 case 'no':
625691
=== modified file 'nav/class/WebAPI.js'
--- nav/class/WebAPI.js 2016-12-22 19:23:03 +0000
+++ nav/class/WebAPI.js 2017-02-19 22:22:23 +0000
@@ -17,6 +17,7 @@
17 this.nav = nav;17 this.nav = nav;
18 this.ui = ui;18 this.ui = ui;
19 this.settings = settings;19 this.settings = settings;
20 this.confirm_route = '';
20 21
21 this.route_status = '';22 this.route_status = '';
22 this.t_prev = $.now() - 1;23 this.t_prev = $.now() - 1;
@@ -24,12 +25,13 @@
2425
2526
26// Route27// Route
27WebAPI.prototype.set_route = function(lat1, lng1, lat2, lng2) {28WebAPI.prototype.set_route = function(lat1, lng1, lat2, lng2, confirm_route) {
28 if (this.nav.get_route_status() == 'calculating' || this.nav.get_route_status() == 'calculating_from_out')29 if (this.nav.get_route_status() == 'calculating' || this.nav.get_route_status() == 'calculating_from_out')
29 return;30 return;
30 31
31 if (this.t_prev < $.now()) { // Avoid several calls in a small time32 if (confirm_route || this.t_prev < $.now()) { // Avoid several calls in a small time
32 33
34 this.confirm_route = confirm_route;
33 if (this.nav.get_route_status() == "errorAPI") // Avoid so many calls35 if (this.nav.get_route_status() == "errorAPI") // Avoid so many calls
34 this.t_prev = $.now() + 60000;36 this.t_prev = $.now() + 60000;
35 else37 else
@@ -108,8 +110,15 @@
108 qml_show_notification('critical', 'calcfromout_error');110 qml_show_notification('critical', 'calcfromout_error');
109 }111 }
110 else {112 else {
111 this.nav.set_route_status('errorAPI');113 if (this.confirm_route) {
112 qml_show_notification('critical', 'webapi_error');114 this.nav.set_route_status('calculating_error');
115 this.ui.route(false);
116 this.ui.btns_confirm_route(false);
117 }
118 else {
119 this.nav.set_route_status('errorAPI');
120 qml_show_notification('critical', 'webapi_error');
121 }
113 }122 }
114}123}
115124
116125
=== modified file 'nav/css/unav.css'
--- nav/css/unav.css 2016-07-15 13:22:55 +0000
+++ nav/css/unav.css 2017-02-19 22:22:23 +0000
@@ -89,8 +89,15 @@
8989
90.btns_route {90.btns_route {
91 width:95%;91 width:95%;
92 max-width: 300px;92 max-width: 200px;
93 height:40px;93 height:40px;
94 margin-top: 5px;
95 margin-bottom: 3px;
96}
97
98#btn_start {
99 background: #398DFF;
100 border-color: #398DFF;
94}101}
95102
96#gps_progress {103#gps_progress {
@@ -99,12 +106,36 @@
99 height:10px;106 height:10px;
100 margin-bottom: 8px;107 margin-bottom: 8px;
101}108}
102#btn_start {109
110.btns1_mode_route {
103 margin-top: 5px;111 margin-top: 5px;
104 margin-bottom: 3px;112 margin-left: 10px;
105}113 margin-right: 10px;
106#btn_cancel {114 margin-bottom: 3px;
107 margin-bottom: 3px;115 width: 50px;
116 height: 40px;
117}
118
119.img1_btn_route {
120 width: 25px;
121 height: 25px;
122}
123
124.btns2_mode_route {
125 margin-top: 15px;
126 margin-left: 5px;
127 margin-right: 5px;
128 width: 35px;
129 height: 35x;
130}
131
132.img2_btn_route {
133 width: 20px;
134 height: 20px;
135}
136
137#btn_notfound {
138 max-width: 274px;
108}139}
109140
110.ol-scale-line {141.ol-scale-line {
111142
=== modified file 'nav/img/mode/bike.svg'
--- nav/img/mode/bike.svg 2016-04-29 21:22:30 +0000
+++ nav/img/mode/bike.svg 2017-02-19 22:22:23 +0000
@@ -31,20 +31,20 @@
31 guidetolerance="10"31 guidetolerance="10"
32 inkscape:pageopacity="0"32 inkscape:pageopacity="0"
33 inkscape:pageshadow="2"33 inkscape:pageshadow="2"
34 inkscape:window-width="1366"34 inkscape:window-width="1440"
35 inkscape:window-height="744"35 inkscape:window-height="824"
36 id="namedview6"36 id="namedview6"
37 showgrid="false"37 showgrid="false"
38 inkscape:zoom="2.7230142"38 inkscape:zoom="2.7230142"
39 inkscape:cx="-6.8710741"39 inkscape:cx="-5.8601662"
40 inkscape:cy="30.019466"40 inkscape:cy="29.5628"
41 inkscape:window-x="0"41 inkscape:window-x="0"
42 inkscape:window-y="0"42 inkscape:window-y="24"
43 inkscape:window-maximized="1"43 inkscape:window-maximized="1"
44 inkscape:current-layer="svg2"44 inkscape:current-layer="svg2"
45 showborder="true"45 showborder="true"
46 inkscape:showpageshadow="false" /><path46 inkscape:showpageshadow="false" /><path
47 d="m 76.14832,56.00316 c -1.9964,0 -3.9146,0.33488 -5.7086,0.94208 -1.39104,-3.08384 -3.01668,-6.69208 -4.92016,-10.92776 l 1.2144,-3.3396 4.17404,-0.07636 0,-3.4914 -15.71176,0 c -1.37448,1.88048 0.5566,1.8722 7.51456,3.41504 l -1.2144,3.41596 -31.04356,0 c 2.091161,-7.30388 0.909881,-6.77212 10.322401,-6.75556 l 0,-3.56684 c -12.95728,0.12604 -10.71064,-1.334 -17.64928,20.9852 C 22.064281,56.40612 20.9704,56.29756 19.85076,56.29756 10.00768,56.29756 2,64.30616 2,74.14924 2,83.99232 10.00768,92 19.85076,92 c 9.844,0 17.851681,-8.00768 17.851681,-17.85076 0,-7.36552 -4.485,-13.7034 -10.86704,-16.4266 0.38824,-1.22176 0.80592,-2.52632 1.25396,-3.92012 26.11512,27.54572 16.31804,23.08004 30.371039,23.63848 0.06716,0 0.13156,-9.2e-4 0.19872,-0.0018 1.66428,8.13188 8.874321,14.26736 17.489201,14.26736 C 85.992321,91.70652 94,83.69884 94,73.85576 94,64.01268 85.992321,56.00316 76.148321,56.00316 Z M 33.52656,74.14924 c 0,7.54032 -6.13456,13.67488 -13.67488,13.67488 -7.54032,0 -13.6758,-6.13456 -13.6758,-13.67488 0,-7.54032 6.13456,-13.67488 13.67488,-13.67488 0.67988,0 1.3478,0.05152 2.001,0.14812 -4.3562,13.73744 -3.83364,12.17344 -3.86032,13.33172 -0.02116,0.97704 0.76728,1.75168 1.75904,1.81884 1.77744,-0.18032 1.37724,0.11408 5.819,-14.04012 4.692,2.16752 7.95708,6.91564 7.95708,12.41632 z m 17.6272,-0.851 L 29.55492,49.76096 59.9324,49.70668 51.15376,73.29824 Z m 7.14472,0.49404 -3.3212,-0.01012 8.61764,-22.62096 3.34328,7.40784 c -5.15752,3.1188 -8.61672,8.77312 -8.63972,15.22324 z M 68.67332,62.4128 73.829,73.83644 62.47436,73.80424 c 0.0184,-4.76192 2.48308,-8.9562 6.19896,-11.39144 z m 7.475,25.11784 c -6.30568,0 -11.62696,-4.29272 -13.20016,-10.10896 14.23332,0.0138 15.50292,0.74336 15.70164,-1.72592 -0.01932,-0.71944 -0.28704,-1.21256 -6.48232,-14.9224 1.25948,-0.38456 2.59624,-0.5934 3.97992,-0.5934 7.54032,0 13.67488,6.13456 13.67488,13.6758 0,7.54124 -6.13364,13.67488 -13.67396,13.67488 z"47 d="m 77.414447,41.964511 c -2.060153,0 -4.039609,0.345574 -5.890898,0.972164 -1.435462,-3.182319 -3.113015,-6.905784 -5.07728,-11.276726 l 1.25318,-3.446246 4.307334,-0.0788 0,-3.602894 -16.213498,0 c -1.418373,1.940531 0.574374,1.931987 7.754529,3.524096 l -1.253181,3.525045 -32.034902,0 c 2.15794,-7.537122 0.938937,-6.988381 10.652036,-6.971292 l 0,-3.680743 c -13.371057,0.130065 -11.052673,-1.3766 -18.212891,21.65534 -1.095584,-0.204117 -2.224397,-0.316144 -3.379791,-0.316144 -10.1574087,0 -18.42080529,8.264346 -18.42080529,18.421755 0,10.157408 8.26339659,18.420804 18.42080529,18.420804 10.158357,0 18.421755,-8.263396 18.421755,-18.420804 0,-7.60073 -4.628224,-14.141004 -11.214067,-16.951166 0.400638,-1.260776 0.831656,-2.606995 1.294004,-4.045305 26.949078,28.425363 16.839139,23.817076 31.340905,24.393349 0.0693,0 0.135761,-9.49e-4 0.205066,-0.0019 1.717427,8.391563 9.157713,14.722973 18.0477,14.722973 10.158357,-4.2e-5 18.421753,-8.263438 18.421753,-18.420846 0,-10.157409 -8.263396,-18.422704 -18.421753,-18.422704 z m -43.98284,18.725556 c 0,7.781112 -6.330461,14.111572 -14.111573,14.111572 -7.781112,0 -14.1125221,-6.33046 -14.1125221,-14.111572 0,-7.781112 6.3304611,-14.111573 14.1115731,-14.111573 0.701591,0 1.39084,0.05316 2.0649,0.15285 -4.495311,14.17613 -3.956064,12.562186 -3.983596,13.757454 -0.02183,1.008241 0.791783,1.807618 1.815213,1.876923 1.834201,-0.186078 1.421221,0.117723 6.004824,-14.488476 4.841834,2.236737 8.211181,7.136483 8.211181,12.812822 z M 51.621712,59.811891 29.333137,35.522973 60.680689,35.46696 51.621712,59.811891 Z m 7.372879,0.509816 -3.427259,-0.01044 8.892835,-23.343336 3.450044,7.644402 c -5.322219,3.218395 -8.891885,9.05328 -8.91562,15.709377 z m 10.70615,-11.742871 5.320321,11.788442 -11.717239,-0.03323 c 0.01899,-4.913986 2.562375,-9.242206 6.396918,-11.755213 z m 7.713706,25.919951 c -6.507045,0 -11.998255,-4.429803 -13.621693,-10.431779 14.687845,0.01424 15.997989,0.767099 16.203055,-1.781035 -0.01994,-0.742414 -0.296207,-1.251282 -6.689326,-15.398931 1.2997,-0.39684 2.679148,-0.612349 4.107014,-0.612349 7.781112,0 14.111573,6.33046 14.111573,14.112522 0,7.782061 -6.329511,14.111572 -14.110623,14.111572 z"
48 id="path4"48 id="path4"
49 style="fill:#ffffff"49 style="fill:#ffffff"
50 inkscape:connector-curvature="0" /></svg>50 inkscape:connector-curvature="0" /></svg>
51\ No newline at end of file51\ No newline at end of file
5252
=== modified file 'nav/img/mode/car.svg'
--- nav/img/mode/car.svg 2016-04-29 21:22:30 +0000
+++ nav/img/mode/car.svg 2017-02-19 22:22:23 +0000
@@ -21,7 +21,7 @@
21 height="96"><metadata21 height="96"><metadata
22 id="metadata18"><rdf:RDF><cc:Work22 id="metadata18"><rdf:RDF><cc:Work
23 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type23 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
24 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs24 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title /></cc:Work></rdf:RDF></metadata><defs
25 id="defs16" /><sodipodi:namedview25 id="defs16" /><sodipodi:namedview
26 pagecolor="#acacac"26 pagecolor="#acacac"
27 bordercolor="#666666"27 bordercolor="#666666"
@@ -31,19 +31,19 @@
31 guidetolerance="10"31 guidetolerance="10"
32 inkscape:pageopacity="0"32 inkscape:pageopacity="0"
33 inkscape:pageshadow="2"33 inkscape:pageshadow="2"
34 inkscape:window-width="1366"34 inkscape:window-width="1440"
35 inkscape:window-height="744"35 inkscape:window-height="824"
36 id="namedview14"36 id="namedview14"
37 showgrid="false"37 showgrid="false"
38 inkscape:zoom="1.888"38 inkscape:zoom="1.888"
39 inkscape:cx="-17.266949"39 inkscape:cx="-112.3411"
40 inkscape:cy="62.5"40 inkscape:cy="62.5"
41 inkscape:window-x="0"41 inkscape:window-x="0"
42 inkscape:window-y="0"42 inkscape:window-y="24"
43 inkscape:window-maximized="1"43 inkscape:window-maximized="1"
44 inkscape:current-layer="svg2" /><switch44 inkscape:current-layer="svg2" /><switch
45 id="switch4"45 id="switch4"
46 transform="matrix(1.0244202,0,0,1.0244202,-3.4294271,11.070804)"><foreignObject46 transform="matrix(1.0657046,0,0,1.0657046,-5.2372177,-2.8176641)"><foreignObject
47 requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/"47 requiredExtensions="http://ns.adobe.com/AdobeIllustrator/10.0/"
48 x="0"48 x="0"
49 y="0"49 y="0"
5050
=== added file 'nav/img/mode/noroute.svg'
--- nav/img/mode/noroute.svg 1970-01-01 00:00:00 +0000
+++ nav/img/mode/noroute.svg 2017-02-19 22:22:23 +0000
@@ -0,0 +1,149 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 xmlns:dc="http://purl.org/dc/elements/1.1/"
4 xmlns:cc="http://creativecommons.org/ns#"
5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6 xmlns:svg="http://www.w3.org/2000/svg"
7 xmlns="http://www.w3.org/2000/svg"
8 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 version="1.1"
11 x="0px"
12 y="0px"
13 viewBox="0 0 40 40"
14 enable-background="new 0 0 40 40"
15 xml:space="preserve"
16 id="svg2"
17 inkscape:version="0.91 r13725"
18 sodipodi:docname="noroute.svg"
19 width="40"
20 height="40"><metadata
21 id="metadata66"><rdf:RDF><cc:Work
22 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
23 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
24 id="defs64" /><sodipodi:namedview
25 pagecolor="#ffffff"
26 bordercolor="#666666"
27 borderopacity="1"
28 objecttolerance="10"
29 gridtolerance="10"
30 guidetolerance="10"
31 inkscape:pageopacity="0"
32 inkscape:pageshadow="2"
33 inkscape:window-width="1440"
34 inkscape:window-height="824"
35 id="namedview62"
36 showgrid="false"
37 inkscape:zoom="18.88"
38 inkscape:cx="26.51607"
39 inkscape:cy="18.344922"
40 inkscape:window-x="0"
41 inkscape:window-y="24"
42 inkscape:window-maximized="1"
43 inkscape:current-layer="svg2" /><g
44 id="g4"><circle
45 cx="6.1999998"
46 cy="6.1999998"
47 r="6.1999998"
48 id="circle6"
49 style="fill:#ffffff" /><g
50 id="g8"><path
51 d="M 9.2,9.3 7.8,9.3 7.3,7.8 5,7.8 4.5,9.3 3.2,9.3 5.4,3 6.9,3 9.2,9.3 Z M 7,6.8 6.1,4.2 5.3,6.8 7,6.8 Z"
52 id="path10"
53 inkscape:connector-curvature="0"
54 style="fill:#ffffff" /></g><circle
55 cx="33.799999"
56 cy="33.799999"
57 r="6.1999998"
58 id="circle12"
59 style="fill:#ffffff" /><g
60 id="g14"><path
61 d="m 36.4,35 c 0,0.6 -0.2,1 -0.6,1.3 -0.4,0.3 -0.9,0.5 -1.7,0.5 l -2.4,0 0,-6 2.3,0 c 0.3,0 0.6,0 0.9,0.1 0.3,0.1 0.5,0.2 0.7,0.3 0.2,0.1 0.3,0.3 0.4,0.5 0.1,0.2 0.1,0.4 0.1,0.6 0,0.6 -0.3,1 -0.9,1.3 0.4,0.1 0.6,0.3 0.8,0.5 0.3,0.3 0.4,0.6 0.4,0.9 z m -3.4,-1.8 1,0 c 0.3,0 0.6,-0.1 0.7,-0.2 0.1,-0.1 0.2,-0.3 0.2,-0.6 0,-0.2 -0.1,-0.4 -0.2,-0.6 -0.1,-0.1 -0.4,-0.2 -0.8,-0.2 l -1,0 0,1.6 z m 0,2.6 1,0 c 0.4,0 0.6,-0.1 0.8,-0.2 0.2,-0.1 0.3,-0.3 0.3,-0.6 0,-0.1 0,-0.3 -0.1,-0.4 0,-0.1 -0.1,-0.2 -0.2,-0.2 -0.1,-0.1 -0.2,-0.1 -0.3,-0.1 -0.1,0 -0.3,0 -0.5,0 l -1,0 0,1.5 z"
62 id="path16"
63 inkscape:connector-curvature="0"
64 style="fill:#ffffff" /></g><g
65 display="none"
66 id="g18"
67 style="display:none"><g
68 display="inline"
69 id="g20"
70 style="display:inline"><line
71 stroke-miterlimit="10"
72 x1="33.799999"
73 y1="35"
74 x2="33.799999"
75 y2="32"
76 id="line22"
77 style="fill:none;stroke:#000000;stroke-width:3;stroke-miterlimit:10" /><path
78 stroke-miterlimit="10"
79 d="m 33.8,30 0,-18 c 0,-3.8 -3.1,-6.9 -6.9,-6.9 l 0,0 C 23.1,5 20,8.1 20,11.9 l 0,16 c 0,3.8 -3.1,6.9 -6.9,6.9 l 0,0 c -3.8,0 -6.9,-3.1 -6.9,-6.9 l 0,-17.8"
80 id="path24"
81 inkscape:connector-curvature="0"
82 style="fill:none;stroke:#000000;stroke-width:3;stroke-miterlimit:10;stroke-dasharray:6.0068, 2.0023" /><line
83 stroke-miterlimit="10"
84 x1="6.1999998"
85 y1="9.1000004"
86 x2="6.1999998"
87 y2="6.0999999"
88 id="line26"
89 style="fill:none;stroke:#000000;stroke-width:3;stroke-miterlimit:10" /></g></g></g><g
90 id="g28"><path
91 d="M 21.8,20 25,23.2 23.2,25 20,21.8 16.9,24.9 15,23.1 18.1,20 15,16.9 l 1.8,-1.8 3.1,3.1 3.2,-3.2 1.8,1.8 -3.1,3.2 z"
92 id="path30"
93 inkscape:connector-curvature="0"
94 style="fill:#ffffff" /></g><g
95 id="g32"><rect
96 x="4.6999998"
97 y="19.200001"
98 width="3"
99 height="6"
100 id="rect34"
101 style="fill:#ffffff" /><path
102 d="m 7.7,27.9 0,-0.7 -3,0 0,0.7 c 0,2.2 0.8,4.2 2.3,5.8 l 2.2,-2.1 c -1,-1 -1.5,-2.3 -1.5,-3.7 z"
103 id="path36"
104 inkscape:connector-curvature="0"
105 style="fill:#ffffff" /><path
106 d="m 10.4,32.6 -1.5,2.6 c 1.3,0.7 2.7,1.1 4.2,1.1 1,0 2,-0.2 2.9,-0.5 L 15,33 c -1.5,0.5 -3.2,0.4 -4.6,-0.4 z"
107 id="path38"
108 inkscape:connector-curvature="0"
109 style="fill:#ffffff" /><rect
110 x="4.6999998"
111 y="11.2"
112 width="3"
113 height="6"
114 id="rect40"
115 style="fill:#ffffff" /><polygon
116 points="18.5,13.3 20,14.8 21.5,13.2 21.5,12.3 18.5,12.3 "
117 id="polygon42"
118 style="fill:#ffffff" /><path
119 d="M 24.5,7.1 23.2,4.4 C 21,5.5 19.4,7.5 18.8,9.9 l 2.9,0.7 C 22,9.1 23.1,7.8 24.5,7.1 Z"
120 id="path44"
121 inkscape:connector-curvature="0"
122 style="fill:#ffffff" /><rect
123 x="32.299999"
124 y="24"
125 width="3"
126 height="6"
127 id="rect46"
128 style="fill:#ffffff" /><rect
129 x="32.299999"
130 y="15.9"
131 width="3"
132 height="6"
133 id="rect48"
134 style="fill:#ffffff" /><path
135 d="M 33.9,7.3 31.4,9 c 0.6,0.9 0.9,1.9 0.9,3 l 0,2 3,0 0,-2 c 0,-1.7 -0.5,-3.3 -1.4,-4.7 z"
136 id="path50"
137 inkscape:connector-curvature="0"
138 style="fill:#ffffff" /><path
139 d="m 25.5,3.7 0.5,3 c 1.5,-0.3 3.2,0.2 4.4,1.2 L 32.3,5.6 C 30.4,3.9 27.9,3.2 25.5,3.7 Z"
140 id="path52"
141 inkscape:connector-curvature="0"
142 style="fill:#ffffff" /><path
143 d="m 16.3,32.2 1.8,2.4 c 2,-1.5 3.2,-3.8 3.3,-6.2 l -3,-0.2 c 0,1.6 -0.8,3.1 -2.1,4 z"
144 id="path54"
145 inkscape:connector-curvature="0"
146 style="fill:#ffffff" /><polygon
147 points="21.5,26.7 20,25.2 18.5,26.6 18.5,27.3 21.5,27.3 "
148 id="polygon56"
149 style="fill:#ffffff" /></g></svg>
0\ No newline at end of file150\ No newline at end of file
1151
=== added file 'nav/img/mode/steps.svg'
--- nav/img/mode/steps.svg 1970-01-01 00:00:00 +0000
+++ nav/img/mode/steps.svg 2017-02-19 22:22:23 +0000
@@ -0,0 +1,54 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 xmlns:dc="http://purl.org/dc/elements/1.1/"
4 xmlns:cc="http://creativecommons.org/ns#"
5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6 xmlns:svg="http://www.w3.org/2000/svg"
7 xmlns="http://www.w3.org/2000/svg"
8 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
9 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
10 version="1.2"
11 x="0px"
12 y="0px"
13 viewBox="0 0 100 100"
14 xml:space="preserve"
15 id="svg2"
16 inkscape:version="0.91 r13725"
17 sodipodi:docname="noun_605854_cc.svg"
18 width="100"
19 height="100"><metadata
20 id="metadata18"><rdf:RDF><cc:Work
21 rdf:about=""><dc:format>image/svg+xml</dc:format><dc:type
22 rdf:resource="http://purl.org/dc/dcmitype/StillImage" /><dc:title></dc:title></cc:Work></rdf:RDF></metadata><defs
23 id="defs16" /><sodipodi:namedview
24 pagecolor="#ffffff"
25 bordercolor="#666666"
26 borderopacity="1"
27 objecttolerance="10"
28 gridtolerance="10"
29 guidetolerance="10"
30 inkscape:pageopacity="0"
31 inkscape:pageshadow="2"
32 inkscape:window-width="1440"
33 inkscape:window-height="824"
34 id="namedview14"
35 showgrid="false"
36 inkscape:zoom="1.888"
37 inkscape:cx="66.155484"
38 inkscape:cy="62.5"
39 inkscape:window-x="0"
40 inkscape:window-y="24"
41 inkscape:window-maximized="1"
42 inkscape:current-layer="svg2" /><path
43 d="m 83.18319,-0.402542 c -9.145505,0 -16.585971,7.440467 -16.585971,16.58597 0,7.87502 5.156025,14.894203 9.415303,19.3503 l -37.058588,0 c -1.117895,0 -2.126322,0.673391 -2.554239,1.706143 -0.427918,1.032754 -0.191292,2.221415 0.599306,3.012013 L 90.369338,93.62222 29.843813,93.96721 c 6.060514,-5.86149 14.638779,-16.23767 14.638779,-28.025868 0,-12.194007 -9.920623,-22.114627 -22.114629,-22.114627 -12.194006,0 -22.11462805,9.92062 -22.11462805,22.114627 0,17.836558 19.64442305,32.448798 20.47925205,33.062478 0.464407,0.34168 1.07477,0.53517 1.650856,0.53517 l 74.637975,-0.4257 c 1.114577,-0.007 2.11637,-0.68224 2.540973,-1.71389 0.423496,-1.03164 0.185765,-2.21699 -0.602625,-3.00537 l -53.332743,-53.331645 37.556167,0 c 0.576086,0 1.180921,-0.200137 1.644223,-0.541808 0.610363,-0.452244 14.941752,-11.208799 14.941752,-24.337149 0,-9.145503 -7.440471,-16.58597 -16.585975,-16.58597 z M 22.365752,93.24074 C 17.888645,89.51111 5.7819919,78.28352 5.7819919,65.941342 c 0,-9.145504 7.4404661,-16.585971 16.5859711,-16.585971 9.145504,0 16.585971,7.440467 16.585971,16.585971 0,12.310108 -12.113288,23.563138 -16.588182,27.299398 z M 83.179872,34.728756 C 79.74326,31.755445 72.125876,24.256374 72.125876,16.183428 c 0,-6.097002 4.960311,-11.057313 11.057314,-11.057313 6.097004,0 11.057314,4.960311 11.057314,11.057313 0,8.045302 -7.625124,15.566487 -11.060632,18.545328 z"
44 id="path4"
45 inkscape:connector-curvature="0"
46 style="fill:#ffffff" /><path
47 d="m 22.367963,55.309735 c -6.097003,0 -11.057314,4.96031 -11.057314,11.057313 0,6.097004 4.960311,11.057312 11.057314,11.057312 6.097004,0 11.057314,-4.960308 11.057314,-11.057312 0,-6.097003 -4.96031,-11.057313 -11.057314,-11.057313 z m 0,16.58597 c -3.048502,0 -5.528658,-2.480155 -5.528658,-5.528657 0,-3.048501 2.480156,-5.528656 5.528658,-5.528656 3.048501,0 5.528657,2.480155 5.528657,5.528656 0,3.048502 -2.480156,5.528657 -5.528657,5.528657 z"
48 id="path6"
49 inkscape:connector-curvature="0"
50 style="fill:#ffffff" /><path
51 d="m 83.18319,10.654772 c -3.048502,0 -5.528658,2.480155 -5.528658,5.528656 0,3.048503 2.480156,5.528658 5.528658,5.528658 3.048501,0 5.528657,-2.480155 5.528657,-5.528658 0,-3.048501 -2.480156,-5.528656 -5.528657,-5.528656 z"
52 id="path8"
53 inkscape:connector-curvature="0"
54 style="fill:#ffffff" /></svg>
0\ No newline at end of file55\ No newline at end of file
156
=== removed file 'nav/img/states/not_found.png'
2Binary files nav/img/states/not_found.png 2016-12-06 15:18:02 +0000 and nav/img/states/not_found.png 1970-01-01 00:00:00 +0000 differ57Binary files nav/img/states/not_found.png 2016-12-06 15:18:02 +0000 and nav/img/states/not_found.png 1970-01-01 00:00:00 +0000 differ
=== added file 'nav/img/states/not_found.svg'
--- nav/img/states/not_found.svg 1970-01-01 00:00:00 +0000
+++ nav/img/states/not_found.svg 2017-02-19 22:22:23 +0000
@@ -0,0 +1,223 @@
1<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2<svg
3 xmlns:dc="http://purl.org/dc/elements/1.1/"
4 xmlns:cc="http://creativecommons.org/ns#"
5 xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
6 xmlns:svg="http://www.w3.org/2000/svg"
7 xmlns="http://www.w3.org/2000/svg"
8 xmlns:xlink="http://www.w3.org/1999/xlink"
9 xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
10 xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
11 viewBox="0 0 100 100"
12 version="1.1"
13 x="0px"
14 y="0px"
15 id="svg2"
16 inkscape:version="0.91 r13725"
17 sodipodi:docname="not_found.svg"
18 width="100"
19 height="100">
20 <metadata
21 id="metadata68">
22 <rdf:RDF>
23 <cc:Work
24 rdf:about="">
25 <dc:format>image/svg+xml</dc:format>
26 <dc:type
27 rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
28 <dc:title>Artboard 11 Copy 7</dc:title>
29 </cc:Work>
30 </rdf:RDF>
31 </metadata>
32 <defs
33 id="defs66" />
34 <sodipodi:namedview
35 pagecolor="#ffffff"
36 bordercolor="#666666"
37 borderopacity="1"
38 objecttolerance="10"
39 gridtolerance="10"
40 guidetolerance="10"
41 inkscape:pageopacity="0"
42 inkscape:pageshadow="2"
43 inkscape:window-width="1280"
44 inkscape:window-height="644"
45 id="namedview64"
46 showgrid="false"
47 inkscape:zoom="2.6700352"
48 inkscape:cx="108.3187"
49 inkscape:cy="50.467485"
50 inkscape:window-x="0"
51 inkscape:window-y="24"
52 inkscape:window-maximized="1"
53 inkscape:current-layer="svg2" />
54 <title
55 id="title4">Artboard 11 Copy 7</title>
56 <desc
57 id="desc6">Created with Sketch.</desc>
58 <g
59 id="g8"
60 transform="matrix(1.2569753,0,0,1.2569753,-12.487126,-22.962943)"
61 style="fill:none;fill-rule:evenodd;stroke:none;stroke-width:1">
62 <g
63 id="g10"
64 style="fill:#000000">
65 <path
66 d="m 59,33 c 0,-1.104 -0.896,-2 -2,-2 l -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2"
67 id="path12"
68 inkscape:connector-curvature="0" />
69 <path
70 d="m 70,33 c 0,-1.104 -0.896,-2 -2,-2 l -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2"
71 id="path14"
72 inkscape:connector-curvature="0" />
73 <path
74 d="m 50,58 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
75 id="path16"
76 inkscape:connector-curvature="0" />
77 <path
78 d="m 61,58 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
79 id="path24"
80 inkscape:connector-curvature="0" />
81 <path
82 d="m 80.711019,56.307407 c -0.468,0.293 -0.964,0.55 -1.476,0.762 -1.021,0.423 -1.505,1.592 -1.082,2.613 0.319,0.771 1.064,1.235 1.849,1.235 0.254,0 0.514,-0.049 0.764,-0.153 0.718,-0.298 1.415,-0.657 2.072,-1.07 0.936,-0.587 1.218,-1.822 0.63,-2.757 -0.587,-0.936 -1.82,-1.219 -2.757,-0.63"
83 id="path26"
84 inkscape:connector-curvature="0" />
85 <path
86 d="m 80.907913,33.822331 c 0.272,-1.07 -0.375,-2.159 -1.446,-2.431 -0.75,-0.191 -1.524,-0.32 -2.298,-0.384 -1.097,-0.094 -2.067,0.727 -2.157,1.829 -0.091,1.1 0.727,2.067 1.828,2.157 0.553,0.046 1.106,0.139 1.642,0.275 0.165,0.042 0.331,0.062 0.494,0.062 0.893,0 1.707,-0.603 1.937,-1.508"
87 id="path28"
88 inkscape:connector-curvature="0" />
89 <path
90 d="m 87.541704,47.009492 c -1.098,-0.107 -2.076,0.703 -2.179,1.803 -0.052,0.553 -0.151,1.103 -0.294,1.635 -0.286,1.067 0.347,2.164 1.414,2.45 0.173,0.047 0.348,0.069 0.519,0.069 0.883,0 1.691,-0.59 1.931,-1.482 0.2,-0.748 0.339,-1.52 0.412,-2.296 0.104,-1.099 -0.703,-2.075 -1.803,-2.179"
91 id="path30"
92 inkscape:connector-curvature="0" />
93 <path
94 d="m 87.72367,41.602421 c 1.015,-0.434999 1.486,-1.61 1.051,-2.626 -0.306,-0.713 -0.673,-1.405 -1.092,-2.058 -0.597,-0.928 -1.833,-1.198 -2.764,-0.600999 -0.929,0.597999 -1.198,1.835 -0.601,2.763999 0.299,0.466 0.562,0.96 0.78,1.47 0.325,0.759 1.063,1.213 1.839,1.213 0.263,0 0.53,-0.052 0.787,-0.162"
95 id="path32"
96 inkscape:connector-curvature="0" />
97 <path
98 d="m 72,58 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
99 id="path34"
100 inkscape:connector-curvature="0" />
101 <path
102 d="m 26,85 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
103 id="path36"
104 inkscape:connector-curvature="0" />
105 <path
106 d="m 15.221854,60.429556 c -0.609,0.479 -1.181999,1.015 -1.702999,1.588 -0.742,0.818 -0.681,2.083 0.137,2.825 0.382,0.348 0.863,0.52 1.343,0.52 0.544,0 1.086999,-0.221 1.481999,-0.656 0.372,-0.411 0.782,-0.793 1.218,-1.136 0.867,-0.684 1.016001,-1.942 0.332,-2.809 -0.684,-0.867 -1.942,-1.016 -2.809,-0.332"
107 id="path38"
108 inkscape:connector-curvature="0" />
109 <path
110 d="m 14,74 0,-2 c 0,-1.104 -0.896,-2 -2,-2 -1.104,0 -2,0.896 -2,2 l 0,2 c 0,1.104 0.896,2 2,2 1.104,0 2,-0.896 2,-2"
111 id="path40"
112 inkscape:connector-curvature="0" />
113 <path
114 d="m 16.555974,80.74274 c -0.693,-0.859 -1.952,-0.992 -2.813,-0.299 -0.859,0.695 -0.993,1.953 -0.298,2.813 0.486,0.601 1.026,1.168 1.605,1.682 0.381,0.339 0.856,0.506 1.329,0.506 0.551,0 1.099,-0.226 1.495,-0.671 0.734,-0.825 0.66,-2.09 -0.166,-2.823 -0.416,-0.37 -0.803,-0.776 -1.152,-1.208"
115 id="path42"
116 inkscape:connector-curvature="0" />
117 <path
118 d="m 59,85 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
119 id="path46"
120 inkscape:connector-curvature="0" />
121 <path
122 d="m 70,85 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
123 id="path48"
124 inkscape:connector-curvature="0" />
125 <path
126 d="m 37,85 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
127 id="path50"
128 inkscape:connector-curvature="0" />
129 <path
130 d="m 27,58 -2,0 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
131 id="path52"
132 inkscape:connector-curvature="0" />
133 <path
134 d="M 38.003,58 36,58 c -1.104,0 -2,0.896 -2,2 0,1.104 0.896,2 2,2 l 2.003,0 c 1.104,0 2,-0.896 2,-2 0,-1.104 -0.896,-2 -2,-2"
135 id="path54"
136 inkscape:connector-curvature="0" />
137 <g
138 id="g3410"
139 transform="matrix(0.18603326,0,0,0.18603326,37.13668,22.322767)">
140 <path
141 sodipodi:end="5.5316092"
142 sodipodi:start="0.84415396"
143 d="m 77.532686,81.965718 a 34.997948,34.997948 0 0 1 -49.215014,-2.689822 34.997948,34.997948 0 0 1 2.280696,-49.23567 34.997948,34.997948 0 0 1 49.252924,1.871412 L 54.281315,55.807926 Z"
144 sodipodi:ry="34.997948"
145 sodipodi:rx="34.997948"
146 sodipodi:cy="55.807926"
147 sodipodi:cx="54.281315"
148 id="path1425"
149 style="opacity:1;fill:#ffff00;fill-opacity:1;stroke:#000000;stroke-width:1.48216593;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
150 sodipodi:type="arc" />
151 <path
152 sodipodi:end="6.2614256"
153 sodipodi:start="0"
154 transform="scale(1,-1)"
155 d="m 58.132071,-41.435452 a 3.1974745,3.1721492 0 0 1 -3.18008,3.172103 3.1974745,3.1721492 0 0 1 -3.214679,-3.137591 3.1974745,3.1721492 0 0 1 3.145105,-3.206238 3.1974745,3.1721492 0 0 1 3.248898,3.102707 l -3.196718,0.06902 z"
156 sodipodi:ry="3.1721492"
157 sodipodi:rx="3.1974745"
158 sodipodi:cy="-41.435452"
159 sodipodi:cx="54.934597"
160 id="path2314"
161 style="opacity:1;fill:#000000;fill-opacity:1;stroke:#000000;stroke-width:0.97986925;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
162 sodipodi:type="arc" />
163 </g>
164 <ellipse
165 style="fill:#ff6600;fill-rule:evenodd;stroke:#000000;stroke-width:0.25394315px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
166 id="path3425"
167 cx="78.25042"
168 cy="86.75573"
169 rx="1.5131676"
170 ry="1.4795417" />
171 <image
172 y="75.993706"
173 x="74.881973"
174 id="image3422"
175 xlink:href="data:image/png;base64,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
207h9Jes4kAAAAASUVORK5CYII=
208"
209 preserveAspectRatio="none"
210 height="11.111693"
211 width="6.944808" />
212 </g>
213 </g>
214 <image
215 y="39.230629"
216 x="-94.559242"
217 id="image3378"
218 xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAABmJLR0QAXgBeAF6UkbWcAAAACXBI WXMAAA3XAAAN1wFCKJt4AAAAB3RJTUUH3woPESwC97TPaAAABehJREFUWMPNmFtsVEUYx//fnLOX s/e2eym9Le2WQoECbaGBEEwFojFqBIN4SfDBxBgTXlRiCL7x5KMv8uKDxPhmfCBGJUQTYyKQGCMp glIQoQjd0nu7272dc8aXb3HctLvddqtuMpndPWdmfvN9859v5gP+5x/6F/qVq+lIrxXRwOm0qzAx 7C3M3M388smh3CKvrAhUqwVcz4k8OTXzPdj5r6Wdx9z9oYtmKilq0b+oBaDhnnsMhBcBCSI6Gh98 5yAAPwAvAAOAg8ei/wKQANoJyG4AINI2kND3AogAaGBQNy8nqhZy1S7YdSrZQUJ/g0hslIU0ZGEe UtrCzMwkM5O3TAYyuVjVrsXVioRI6D1EYp+qA93l7zUaErsA5HmMAoAc13Y1olmVi7cdH3IB2A2g TvUcaQ7DFWrr0Vz+VnZ1sGQt/jtr0BVc1w0SBxZ75q5PbPI19XYBqGdATwkgrTUgAbKHSOxaFD7Q GPWEN8QBhBjQC8DFLhdrbsGdJx9EicRguXc8jT3t7rr2dQxYVLNWjZLFisVBogsknigLGNnYbIQ7 WwAEuHgAOBVIWhPAnmNfaCS0fiLRXHaLcAfcnmh3M2nOIAP6FCuKNbOg0ToQh9CeXs67vpb+uCfS 1VziZudaioQgtI2V1t+jydQnYkZ4Q5PiZm81bq4asP/EnQCAx5e7yRMRfOt64w5fNKq4edlqrhaQ hMvTBhKHq2nka+6Lu0PxGLs5UM2eWBVg55GPBYAdRCJRTTuHp87riW1pAWmlYqloxaoAQ51PRkno z65EWMG2PR3uUFsjW9FXcsKpCSARURuReGYlgJ5od7O7Lh6rdk9cNmD/W78ZQuiDHPSrl76mCX/L zvWaO9hQjViWHxPdobAU2kurOVz42/Z0On2xiLInFsWyOpFED54UpOmbicSOVZ1+Ao1Bb2xLC0Ch EjfrS10JlgXY2vdmEMBh1OATWL+30+GLhhUrGuXEIpYlDt3dQEJ/oRaA/ua+uMMbaSgBdCjXD6oK cPvxn5wc1upqASh0lyO4fm9CODz1ypbjWuoAURHQ4Y35SWgv1zLtEGrf16UbIRXQWErNlQAJQqwn EvsrDZqZGE5NXjt3Lzf7IFXpXXd9e8SoT6xjoQQVsYjSPbFswO97e9gjNOfzZcHGb8wmf/xoZObm +SkrO5fXnF4KJgbrI5sPJVyhluDSUWl/Vyp59aaVnVEjS4avptaykke73v0zQi7PFSLRVPosnRxK jl4+MzJ765t5Kzubl3Yhz1fLHGlOU3P5RahjsCm85dA2o6EjVtreyqWyNz577Wxu7v41AMMA/gAw DmCBr6ey7MW9+9UvdWeo7YDQ9NfVBFA6OXRt5MKpS/e+PX13ITm0YOdTWUg7BWAOwBSACUhr3C5k HmYmbt6fHr5wPTt9Z8zhC3ud3kjwb7E49XxqbGphfHgM0poHkGILqnfnpV1sRDcZpOnHAEBKaeZm Rs7f//79y1PXzxm2mYtAWh6eZRbAPIBZANMMugDAlLapW/l579TwhQczv393zd/S3xHZfnTA19Tb SSQolNjfNXXj/M9mJu/jg6xbsWB5QM3pjRCJp6x86sPRS2c+H734gW6b2XZIu5lnmuV6nsGmAMww YIZTHToAA9IK2mYmNHv3h7G5kcs3PLGtrbG+VwYCrbu3ukJtXjMz7WYlq7HZWhKw88hZzSpkzezk 7a2/fvpc2kyPhwG0cqM0pzRyDDPNZZZh0/zM5oFcDB+AlJNSmqH06JWHt7+6essT3RQh0iwI3YZt 6sqG/UjJVCZDKriBH0AYQCPXhgI6x2Bz/DvL8Ca7v5gjdHI7L/enXuY1tvgEgFGu57kfu9w2I7lY irVshs8zUIrXTIb/s5QMllQsUUweLSjr1atEEZv7ypW0r3jxkdx5mr/Pc51XoIoWs7nIRdK+Ng9c BC2uXbeyQRd4AnlVxVQhES54EuqRyC7J91lqh0uk1agkemlcdKXfojH+4YlKgMUOhRIWpWKpSmCV QKnkHCgVawOA/AurHtZWhtU8dAAAAABJRU5ErkJggg== "
219 preserveAspectRatio="none"
220 height="16.860262"
221 width="16.860262"
222 transform="matrix(0,-1,1,0,0,0)" />
223</svg>
0224
=== modified file 'nav/index.html'
--- nav/index.html 2017-01-22 08:34:32 +0000
+++ nav/index.html 2017-02-19 22:22:23 +0000
@@ -47,12 +47,18 @@
47 <table class="tg" id="panel_review_btns">47 <table class="tg" id="panel_review_btns">
48 <tr>48 <tr>
49 <th class="tg-yw4l">49 <th class="tg-yw4l">
50 <button data-role='button' id='btn1_set_car' class='btns1_mode_route negative' onClick='javascript:set_nav_mode(0)'><img class="img1_btn_route" src="img/mode/car.svg"></button>
51 <button data-role='button' id='btn1_set_walk' class='btns1_mode_route negative' onClick='javascript:set_nav_mode(1)'><img class="img1_btn_route" src="img/mode/walk.svg"></button>
52 <button data-role='button' id='btn1_set_bike' class='btns1_mode_route negative' onClick='javascript:set_nav_mode(2)'><img class="img1_btn_route" src="img/mode/bike.svg"></button>
53 <button data-role='button' id='btn1_set_public' class='btns1_mode_route negative' onClick='javascript:set_nav_mode(3)'><img class="img1_btn_route" src="img/mode/public.svg"></button>
54 </th>
55 </tr>
56
57 <tr>
58 <th class="tg-yw4l">
50 <button data-role='button' id='btn_start' class='btns_route positive' onClick='javascript:agree_review()' data-localize="Start">Start</button>59 <button data-role='button' id='btn_start' class='btns_route positive' onClick='javascript:agree_review()' data-localize="Start">Start</button>
51 </th>
52 </tr>
53 <tr>
54 <th class="tg-yw4l">
55 <button data-role='button' id='btn_cancel' class='btns_route negative' onClick='javascript:click_cancel_route()' data-localize="Cancel">Cancel</button>60 <button data-role='button' id='btn_cancel' class='btns_route negative' onClick='javascript:click_cancel_route()' data-localize="Cancel">Cancel</button>
61 <button style="display:none;" data-role='button' id='btn_notfound' class='btns_route negative' data-localize="Not found">Not found</button>
56 </th>62 </th>
57 </tr>63 </tr>
58 </table>64 </table>
@@ -360,16 +366,18 @@
360 case 'simulate_error':366 case 'simulate_error':
361 case '2review':367 case '2review':
362 case 'calculating':368 case 'calculating':
369 case 'calculating_error':
363 case 'calculating_from_out':370 case 'calculating_from_out':
364 break;371 break;
365 case 'drawing':372 case 'drawing':
366 var route_indication = nav.get_route_indication();373 var route_indication = nav.get_route_indication();
367 if (ui.get_confirm_route() && confirm_route) {374 if (confirm_route) {
368 if (route_indication['distance_total'] > 1000000)375 if (route_indication['distance_total'] > 1000000)
369 $('#popup_longroute').show();376 $('#popup_longroute').show();
370 ui.set_center_onpos(false);377 ui.set_center_onpos(false);
371 ui.set_center_1st_pos(false);378 ui.set_center_1st_pos(false);
372 ui.set_zoom_unav(false);379 ui.set_zoom_unav(false);
380 ui.btns_confirm_route(true);
373 ui.route(true);381 ui.route(true);
374 nav.set_route_status('2review');382 nav.set_route_status('2review');
375 qml_set_center_onpos(1);383 qml_set_center_onpos(1);
@@ -382,13 +390,14 @@
382 break;390 break;
383 case 'waiting4signal':391 case 'waiting4signal':
384 confirm_route = true;392 confirm_route = true;
393 ui.set_confirm_btn_color(settings.get_routing_mode());
385 nav.set_route_status('calc');394 nav.set_route_status('calc');
386 // Not use here break for calc route now395 // Not use here break for calc route now
387 case 'calc':396 case 'calc':
388 case 'calc_from_out':397 case 'calc_from_out':
389 case 'errorAPI':398 case 'errorAPI':
390 var gps_data = nav.get_pos_data();399 var gps_data = nav.get_pos_data();
391 webapi.set_route(gps_data['now_lat'], gps_data['now_lng'], gps_data['end_lat'], gps_data['end_lng']);400 webapi.set_route(gps_data['now_lat'], gps_data['now_lng'], gps_data['end_lat'], gps_data['end_lng'], confirm_route);
392 break;401 break;
393 case 'out':402 case 'out':
394 confirm_route = false;403 confirm_route = false;
@@ -519,10 +528,10 @@
519 window.location = 'http://set_ui_speed?' + settings.get_ui_speed().toString();528 window.location = 'http://set_ui_speed?' + settings.get_ui_speed().toString();
520 }529 }
521 530
522 function qml_save_pos() {531 function qml_save_data() { // Position & Last route mode
523 if (ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[1].toFixed(6) == 50.009167 && ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[0].toFixed(6) == 4.666389)532 if (ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[1].toFixed(6) == 50.009167 && ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[0].toFixed(6) == 4.666389)
524 return; 533 return;
525 window.location = 'http://save_pos?' + ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[1] + '/' + ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[0] + '/' + this.map.getView().getZoom();534 window.location = 'http://save_data?' + ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[1] + '/' + ol.proj.transform(map.getView().getCenter(), 'EPSG:3857', 'EPSG:4326')[0] + '/' + map.getView().getZoom() + '/' + settings.get_routing_mode();
526 }535 }
527536
528 function qml_show_notification(mode, message) {537 function qml_show_notification(mode, message) {
@@ -561,6 +570,23 @@
561 qml_set_center_onpos(2);570 qml_set_center_onpos(2);
562 }571 }
563 572
573 function set_nav_mode(mode) {
574 if (mode == settings.get_routing_mode())
575 return;
576
577 settings.set_routing_mode(mode);
578 nav.set_route_status('waiting4signal');
579 gps_loop('waiting4signal');
580 }
581
582 function set_simulate_mode(mode) {
583 if (mode == settings.get_routing_mode())
584 return;
585
586 settings.set_routing_mode(mode);
587 window.location = 'http://simulate_again?';
588 }
589
564 function load_custom_voices(play) {590 function load_custom_voices(play) {
565 $.ajax({591 $.ajax({
566 url:"/home/phablet/.local/share/navigator.costales/4.ogg",592 url:"/home/phablet/.local/share/navigator.costales/4.ogg",
567593
=== modified file 'po/unav.pot'
--- po/unav.pot 2017-01-18 17:17:26 +0000
+++ po/unav.pot 2017-02-19 22:22:23 +0000
@@ -8,7 +8,7 @@
8msgstr ""8msgstr ""
9"Project-Id-Version: unav\n"9"Project-Id-Version: unav\n"
10"Report-Msgid-Bugs-To: \n"10"Report-Msgid-Bugs-To: \n"
11"POT-Creation-Date: 2017-01-18 14:27+0100\n"11"POT-Creation-Date: 2017-02-19 23:22+0100\n"
12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"12"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"13"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
14"Language-Team: LANGUAGE <LL@li.org>\n"14"Language-Team: LANGUAGE <LL@li.org>\n"
@@ -33,7 +33,7 @@
33msgid "Go to your left"33msgid "Go to your left"
34msgstr ""34msgstr ""
3535
36#: nav/class/Navigator.js:286 nav/class/UI.js:57936#: nav/class/Navigator.js:286 nav/class/UI.js:636
37msgid "You have arrived at your destination"37msgid "You have arrived at your destination"
38msgstr ""38msgstr ""
3939
@@ -209,88 +209,84 @@
209msgid "Leave the Ferry"209msgid "Leave the Ferry"
210msgstr ""210msgstr ""
211211
212#: nav/class/UI.js:39 qml/Favorites.qml:227 qml/Main.qml:777212#: nav/class/UI.js:38 qml/Favorites.qml:227 qml/Main.qml:791
213msgid "Current Position"213msgid "Current Position"
214msgstr ""214msgstr ""
215215
216#: nav/class/UI.js:48216#: nav/class/UI.js:47
217msgid "Current Start"217msgid "Current Start"
218msgstr ""218msgstr ""
219219
220#: nav/class/UI.js:57220#: nav/class/UI.js:56
221msgid "Current End"221msgid "Current End"
222msgstr ""222msgstr ""
223223
224#: nav/class/UI.js:514224#: nav/class/UI.js:570
225msgid "Waiting for a GPS signal…"225msgid "Waiting for a GPS signal…"
226msgstr ""226msgstr ""
227227
228#: nav/class/UI.js:521228#: nav/class/UI.js:577
229msgid "Searching for a route…"229msgid "Searching for a route…"
230msgstr ""230msgstr ""
231231
232#: nav/class/UI.js:525232#: nav/class/UI.js:581
233msgid "Drawing route…"233msgid "Drawing route…"
234msgstr ""234msgstr ""
235235
236#: nav/class/UI.js:529236#: nav/class/UI.js:585
237msgid "Trying search again soon…"237msgid "Trying search again soon…"
238msgstr ""238msgstr ""
239239
240#: nav/class/UI.js:533240#: nav/class/UI.js:589
241msgid "Recalculating route…"241msgid "Recalculating route…"
242msgstr ""242msgstr ""
243243
244#: nav/class/UI.js:554244#: nav/class/UI.js:611
245msgid "Navigation will start soon"245msgid "Navigation will start soon"
246msgstr ""246msgstr ""
247247
248#: nav/class/UI.js:586248#: nav/class/UI.js:643
249msgid "Simulating route…"249msgid "Simulating route…"
250msgstr ""250msgstr ""
251251
252#: nav/class/UI.js:590
253msgid "Error simulating route. Try different points"
254msgstr ""
255
256#: nav/class/UI.js:615
257msgid "Click onto the icon for reviewing the route"
258msgstr ""
259
260#: nav/index.html.strings:1252#: nav/index.html.strings:1
261msgid "Start"253msgid "Start"
262msgstr ""254msgstr ""
263255
264#: nav/index.html.strings:2 qml/Favorites.qml:242 qml/SettingsPage.qml:463256#: nav/index.html.strings:2 qml/Favorites.qml:242 qml/SettingsPage.qml:388
265msgid "Cancel"257msgid "Cancel"
266msgstr ""258msgstr ""
267259
268#: nav/index.html.strings:3260#: nav/index.html.strings:3
261msgid "Not found"
262msgstr ""
263
264#: nav/index.html.strings:4
269msgid "Route so long"265msgid "Route so long"
270msgstr ""266msgstr ""
271267
272#: nav/index.html.strings:4268#: nav/index.html.strings:5
273msgid "More than 1000km could affect the performance"269msgid "More than 1000km could affect the performance"
274msgstr ""270msgstr ""
275271
276#: nav/index.html.strings:5272#: nav/index.html.strings:6
277msgid "We recommend you a waypoint in the middle as destination"273msgid "We recommend you a waypoint in the middle as destination"
278msgstr ""274msgstr ""
279275
280#: nav/index.html.strings:10 qml/Coordinate.qml:152 qml/Coordinate.qml:386276#: nav/index.html.strings:11 qml/Coordinate.qml:152 qml/Coordinate.qml:386
281#: qml/DownloadVoices.qml:246 qml/Main.qml:955277#: qml/DownloadVoices.qml:244 qml/Main.qml:973
282msgid "Close"278msgid "Close"
283msgstr ""279msgstr ""
284280
285#: nav/index.html.strings:7281#: nav/index.html.strings:8
286msgid "GPS Denied"282msgid "GPS Denied"
287msgstr ""283msgstr ""
288284
289#: nav/index.html.strings:8285#: nav/index.html.strings:9
290msgid "Error reading the GPS status"286msgid "Error reading the GPS status"
291msgstr ""287msgstr ""
292288
293#: nav/index.html.strings:9289#: nav/index.html.strings:10
294msgid "Please review your device settings"290msgid "Please review your device settings"
295msgstr ""291msgstr ""
296292
@@ -405,47 +401,35 @@
405"Expected format is:"401"Expected format is:"
406msgstr ""402msgstr ""
407403
408#: qml/DownloadVoices.qml:51404#: qml/DownloadVoices.qml:50
409msgid "Download voices"405msgid "Download voices"
410msgstr ""406msgstr ""
411407
412#: qml/DownloadVoices.qml:59408#: qml/DownloadVoices.qml:58
413msgid "Play current voice"409msgid "Play current voice"
414msgstr ""410msgstr ""
415411
416#: qml/DownloadVoices.qml:68 qml/DownloadVoices.qml:242412#: qml/DownloadVoices.qml:67 qml/DownloadVoices.qml:240
417msgid "How to add a voice"413msgid "How to add a voice"
418msgstr ""414msgstr ""
419415
420#: qml/DownloadVoices.qml:160416#: qml/DownloadVoices.qml:158
421msgid "By "417msgid "By "
422msgstr ""418msgstr ""
423419
424#: qml/DownloadVoices.qml:169420#: qml/DownloadVoices.qml:203
425msgid "Male"
426msgstr ""
427
428#: qml/DownloadVoices.qml:169
429msgid "Female"
430msgstr ""
431
432#: qml/DownloadVoices.qml:169
433msgid ". Size: "
434msgstr ""
435
436#: qml/DownloadVoices.qml:205
437msgid "Cancel Download"421msgid "Cancel Download"
438msgstr ""422msgstr ""
439423
440#: qml/DownloadVoices.qml:220424#: qml/DownloadVoices.qml:218
441msgid "About the voices"425msgid "About the voices"
442msgstr ""426msgstr ""
443427
444#: qml/DownloadVoices.qml:226428#: qml/DownloadVoices.qml:224
445msgid "The stars are for the recommended voices."429msgid "The stars are for the recommended voices."
446msgstr ""430msgstr ""
447431
448#: qml/DownloadVoices.qml:234432#: qml/DownloadVoices.qml:232
449msgid "You can add a new voice to uNav following these steps:"433msgid "You can add a new voice to uNav following these steps:"
450msgstr ""434msgstr ""
451435
@@ -523,68 +507,68 @@
523msgid "Search location"507msgid "Search location"
524msgstr ""508msgstr ""
525509
526#: qml/Main.qml:214 qml/SettingsPage.qml:35510#: qml/Main.qml:217 qml/SettingsPage.qml:35
527msgid "Settings"511msgid "Settings"
528msgstr ""512msgstr ""
529513
530#: qml/Main.qml:225514#: qml/Main.qml:228
531msgid "Center on Position"515msgid "Center on Position"
532msgstr ""516msgstr ""
533517
534#: qml/Main.qml:229 qml/Main.qml:534518#: qml/Main.qml:232 qml/Main.qml:542
535msgid "Searching your position… This could take a while"519msgid "Searching your position… This could take a while"
536msgstr ""520msgstr ""
537521
538#: qml/Main.qml:243 qml/PoiPage.qml:83 qml/SearchPage.qml:69522#: qml/Main.qml:246 qml/PoiPage.qml:83 qml/SearchPage.qml:69
539msgid "Search"523msgid "Search"
540msgstr ""524msgstr ""
541525
542#: qml/Main.qml:254526#: qml/Main.qml:257
543msgid "Destination"527msgid "Destination"
544msgstr ""528msgstr ""
545529
546#: qml/Main.qml:410530#: qml/Main.qml:419
547msgid "Error getting speed cameras!"531msgid "Error getting speed cameras!"
548msgstr ""532msgstr ""
549533
550#: qml/Main.qml:413534#: qml/Main.qml:422
551msgid "Error finding route! Retrying again in 1 minute…"535msgid "Error finding route! Retrying again in 1 minute…"
552msgstr ""536msgstr ""
553537
554#: qml/Main.qml:416538#: qml/Main.qml:425
555msgid "Error finding route! Trying again…"539msgid "Error finding route! Trying again…"
556msgstr ""540msgstr ""
557541
558#: qml/Main.qml:462 qml/Main.qml:488542#: qml/Main.qml:470 qml/Main.qml:496
559msgid "Shared Position"543msgid "Shared Position"
560msgstr ""544msgstr ""
561545
562#: qml/Main.qml:719546#: qml/Main.qml:733
563msgid "Near to destination"547msgid "Near to destination"
564msgstr ""548msgstr ""
565549
566#: qml/Main.qml:720550#: qml/Main.qml:734
567msgid "Cancel route"551msgid "Cancel route"
568msgstr ""552msgstr ""
569553
570#: qml/Main.qml:766554#: qml/Main.qml:780
571#, qt-format555#, qt-format
572msgid "Coord: %1, %2"556msgid "Coord: %1, %2"
573msgstr ""557msgstr ""
574558
575#: qml/Main.qml:834 qml/PoiDetailsPage.qml:225559#: qml/Main.qml:848 qml/PoiDetailsPage.qml:243
576msgid "Simulate from here! Now click on destination"560msgid "Simulate from here! Now click on destination"
577msgstr ""561msgstr ""
578562
579#: qml/Main.qml:851563#: qml/Main.qml:865
580msgid "Set a different coordinates for simulating"564msgid "Set a different coordinates for simulating"
581msgstr ""565msgstr ""
582566
583#: qml/Main.qml:943567#: qml/Main.qml:961
584msgid "Custom voices"568msgid "Custom voices"
585msgstr ""569msgstr ""
586570
587#: qml/Main.qml:944571#: qml/Main.qml:962
588msgid ""572msgid ""
589"American English voice will be the unique voice installed by default.\n"573"American English voice will be the unique voice installed by default.\n"
590"\n"574"\n"
@@ -595,39 +579,39 @@
595"the future.\n"579"the future.\n"
596msgstr ""580msgstr ""
597581
598#: qml/Main.qml:946582#: qml/Main.qml:964
599msgid "Set a voice now"583msgid "Set a voice now"
600msgstr ""584msgstr ""
601585
602#: qml/PoiDetailsPage.qml:79586#: qml/PoiDetailsPage.qml:89
603msgid "Lat, Long:"587msgid "Lat, Long:"
604msgstr ""588msgstr ""
605589
606#: qml/PoiDetailsPage.qml:85 qml/PoiDetailsPage.qml:100590#: qml/PoiDetailsPage.qml:95 qml/PoiDetailsPage.qml:110
607msgid "Available"591msgid "Available"
608msgstr ""592msgstr ""
609593
610#: qml/PoiDetailsPage.qml:87 qml/PoiDetailsPage.qml:102594#: qml/PoiDetailsPage.qml:97 qml/PoiDetailsPage.qml:112
611msgid "Not Available"595msgid "Not Available"
612msgstr ""596msgstr ""
613597
614#: qml/PoiDetailsPage.qml:89598#: qml/PoiDetailsPage.qml:99
615msgid "Wi-Fi Hotspot Available"599msgid "Wi-Fi Hotspot Available"
616msgstr ""600msgstr ""
617601
618#: qml/PoiDetailsPage.qml:91602#: qml/PoiDetailsPage.qml:101
619msgid "Wired Connection Available (ethernet connection)"603msgid "Wired Connection Available (ethernet connection)"
620msgstr ""604msgstr ""
621605
622#: qml/PoiDetailsPage.qml:93606#: qml/PoiDetailsPage.qml:103
623msgid "Computer Terminal Available"607msgid "Computer Terminal Available"
624msgstr ""608msgstr ""
625609
626#: qml/PoiDetailsPage.qml:105610#: qml/PoiDetailsPage.qml:115
627msgid "Limited Availability"611msgid "Limited Availability"
628msgstr ""612msgstr ""
629613
630#: qml/PoiDetailsPage.qml:156614#: qml/PoiDetailsPage.qml:174
631msgid "Loading POI details..."615msgid "Loading POI details..."
632msgstr ""616msgstr ""
633617
@@ -652,12 +636,12 @@
652636
653#. TRANSLATORS: Abbreviation for Public Holiday. This string is used while showing the opening hours637#. TRANSLATORS: Abbreviation for Public Holiday. This string is used while showing the opening hours
654#. of a place which might be closed during public holidays.638#. of a place which might be closed during public holidays.
655#: qml/PoiListPage.qml:324639#: qml/PoiListPage.qml:361
656msgid "PH"640msgid "PH"
657msgstr ""641msgstr ""
658642
659#. TRANSLATORS: This string indicates that a place is closed.643#. TRANSLATORS: This string indicates that a place is closed.
660#: qml/PoiListPage.qml:326644#: qml/PoiListPage.qml:363
661msgid "Closed"645msgid "Closed"
662msgstr ""646msgstr ""
663647
@@ -691,7 +675,7 @@
691msgid "Max. %1 POIs can be selected."675msgid "Max. %1 POIs can be selected."
692msgstr ""676msgstr ""
693677
694#: qml/PoiQuickAccessPage.qml:206 qml/SettingsPage.qml:484678#: qml/PoiQuickAccessPage.qml:206 qml/SettingsPage.qml:409
695msgid "OK"679msgid "OK"
696msgstr ""680msgstr ""
697681
@@ -726,130 +710,106 @@
726msgstr ""710msgstr ""
727711
728#: qml/SettingsPage.qml:56712#: qml/SettingsPage.qml:56
729msgid "Car"713msgid "A voice"
730msgstr ""714msgstr ""
731715
732#: qml/SettingsPage.qml:57716#: qml/SettingsPage.qml:57
733msgid "Walking"717msgid "A notification"
734msgstr ""718msgstr ""
735719
736#: qml/SettingsPage.qml:58720#: qml/SettingsPage.qml:58
737msgid "Bicycle"
738msgstr ""
739
740#: qml/SettingsPage.qml:59
741msgid "Public Transport"
742msgstr ""
743
744#: qml/SettingsPage.qml:69
745msgid "A voice"
746msgstr ""
747
748#: qml/SettingsPage.qml:70
749msgid "A notification"
750msgstr ""
751
752#: qml/SettingsPage.qml:71
753msgid "None"721msgid "None"
754msgstr ""722msgstr ""
755723
756#: qml/SettingsPage.qml:81724#: qml/SettingsPage.qml:68
757msgid "Kilometres"725msgid "Kilometres"
758msgstr ""726msgstr ""
759727
760#: qml/SettingsPage.qml:82728#: qml/SettingsPage.qml:69
761msgid "Miles"729msgid "Miles"
762msgstr ""730msgstr ""
763731
764#: qml/SettingsPage.qml:108732#: qml/SettingsPage.qml:95
765msgid "Online"733msgid "Online"
766msgstr ""734msgstr ""
767735
768#: qml/SettingsPage.qml:109736#: qml/SettingsPage.qml:96
769msgid "Offline"737msgid "Offline"
770msgstr ""738msgstr ""
771739
772#: qml/SettingsPage.qml:131740#: qml/SettingsPage.qml:118
773msgid "Navigation"741msgid "Navigation"
774msgstr ""742msgstr ""
775743
776#: qml/SettingsPage.qml:139744#: qml/SettingsPage.qml:125
777msgid "Navigation mode"
778msgstr ""
779
780#: qml/SettingsPage.qml:169
781msgid "Powered by a community-edited data service"
782msgstr ""
783
784#: qml/SettingsPage.qml:186
785msgid "Guidance"745msgid "Guidance"
786msgstr ""746msgstr ""
787747
788#: qml/SettingsPage.qml:218748#: qml/SettingsPage.qml:157
789msgid "Download custom voices"749msgid "Download custom voices"
790msgstr ""750msgstr ""
791751
792#: qml/SettingsPage.qml:227752#: qml/SettingsPage.qml:164
793msgid "Confirm new routes"753msgid "Car Options"
794msgstr ""754msgstr ""
795755
796#: qml/SettingsPage.qml:245756#: qml/SettingsPage.qml:171
797msgid "Avoid tolls"757msgid "Avoid tolls"
798msgstr ""758msgstr ""
799759
800#: qml/SettingsPage.qml:263760#: qml/SettingsPage.qml:188
801msgid "Speed camera alerts"761msgid "Speed camera alerts"
802msgstr ""762msgstr ""
803763
804#: qml/SettingsPage.qml:282764#: qml/SettingsPage.qml:207
805msgid "Map"765msgid "Map"
806msgstr ""766msgstr ""
807767
808#: qml/SettingsPage.qml:289768#: qml/SettingsPage.qml:214
809msgid "Mode"769msgid "Mode"
810msgstr ""770msgstr ""
811771
812#: qml/SettingsPage.qml:324772#: qml/SettingsPage.qml:249
813msgid "How to use offline maps"773msgid "How to use offline maps"
814msgstr ""774msgstr ""
815775
816#: qml/SettingsPage.qml:341776#: qml/SettingsPage.qml:266
817msgid "Online style"777msgid "Online style"
818msgstr ""778msgstr ""
819779
820#: qml/SettingsPage.qml:375780#: qml/SettingsPage.qml:300
821msgid "Units"781msgid "Units"
822msgstr ""782msgstr ""
823783
824#: qml/SettingsPage.qml:409784#: qml/SettingsPage.qml:334
825msgid "Show header in map view"785msgid "Show header in map view"
826msgstr ""786msgstr ""
827787
828#: qml/SettingsPage.qml:421788#: qml/SettingsPage.qml:346
829msgid "History"789msgid "History"
830msgstr ""790msgstr ""
831791
832#: qml/SettingsPage.qml:428792#: qml/SettingsPage.qml:353
833msgid "Store new searches"793msgid "Store new searches"
834msgstr ""794msgstr ""
835795
836#: qml/SettingsPage.qml:440 qml/SettingsPage.qml:450796#: qml/SettingsPage.qml:365 qml/SettingsPage.qml:375
837msgid "Clear history"797msgid "Clear history"
838msgstr ""798msgstr ""
839799
840#: qml/SettingsPage.qml:451800#: qml/SettingsPage.qml:376
841msgid "You'll delete the current history"801msgid "You'll delete the current history"
842msgstr ""802msgstr ""
843803
844#: qml/SettingsPage.qml:454804#: qml/SettingsPage.qml:379
845msgid "Delete"805msgid "Delete"
846msgstr ""806msgstr ""
847807
848#: qml/SettingsPage.qml:473808#: qml/SettingsPage.qml:398
849msgid "Speed Camera alerts and the law"809msgid "Speed Camera alerts and the law"
850msgstr ""810msgstr ""
851811
852#: qml/SettingsPage.qml:474812#: qml/SettingsPage.qml:399
853msgid ""813msgid ""
854"uNav is only reading the OpenStreetMap database.\n"814"uNav is only reading the OpenStreetMap database.\n"
855"uNav will show a max speed notification and a Speed Camera marker (marker "815"uNav will show a max speed notification and a Speed Camera marker (marker "
@@ -859,7 +819,7 @@
859"only if it's legal in the country."819"only if it's legal in the country."
860msgstr ""820msgstr ""
861821
862#: qml/SettingsPage.qml:480822#: qml/SettingsPage.qml:405
863msgid "Read more about it"823msgid "Read more about it"
864msgstr ""824msgstr ""
865825
866826
=== modified file 'qml/Location.qml'
--- qml/Location.qml 2016-12-11 11:01:13 +0000
+++ qml/Location.qml 2017-02-19 22:22:23 +0000
@@ -198,8 +198,8 @@
198 anchors.horizontalCenter: notFound.horizontalCenter198 anchors.horizontalCenter: notFound.horizontalCenter
199 Icon {199 Icon {
200 visible: statusLabel.text !== i18n.tr("Searching…")200 visible: statusLabel.text !== i18n.tr("Searching…")
201 height: units.gu(12)201 height: units.gu(15)
202 source: Qt.resolvedUrl("../nav/img/states/not_found.png")202 source: Qt.resolvedUrl("../nav/img/states/not_found.svg")
203 }203 }
204 }204 }
205 Row {205 Row {
206206
=== modified file 'qml/Main.qml'
--- qml/Main.qml 2017-01-31 20:23:10 +0000
+++ qml/Main.qml 2017-02-19 22:22:23 +0000
@@ -71,10 +71,9 @@
71 property int layer: 071 property int layer: 0
72 property int onlineLayer: 072 property int onlineLayer: 0
73 property int unit: 073 property int unit: 0
74 property int routingMode: 0 // 0 car, 1 walk, 2 bicycle, 3 public transport74 property int routingMode: 0 // 0 car, 1 walk, 2 bicycle, 3 multimodal
75 property bool avoidTolls: false75 property bool avoidTolls: false
76 property bool alertRadars: false76 property bool alertRadars: false
77 property bool confirmRoute: true
78 property bool legalRadarShow: true77 property bool legalRadarShow: true
79 property string prevLat: ''78 property string prevLat: ''
80 property string prevLng: ''79 property string prevLng: ''
@@ -170,6 +169,10 @@
170 property string clickedLng: "null"169 property string clickedLng: "null"
171 property string ptFromLat: "null"170 property string ptFromLat: "null"
172 property string ptFromLng: "null"171 property string ptFromLng: "null"
172 property string resimulatePTFromLat: "null"
173 property string resimulatePTFromLng: "null"
174 property string resimulatePTToLat: "null"
175 property string resimulatePTToLng: "null"
173 property string routeState: "no"176 property string routeState: "no"
174 property int center_onpos: 0 // 0 GPS off, 1 GPS on + not center, 2 GPS on + center177 property int center_onpos: 0 // 0 GPS off, 1 GPS on + not center, 2 GPS on + center
175 property bool favPopup: false178 property bool favPopup: false
@@ -356,7 +359,12 @@
356 reverseXmlModel.reverseSearch(mainPageStack.clickedLat, mainPageStack.clickedLng);359 reverseXmlModel.reverseSearch(mainPageStack.clickedLat, mainPageStack.clickedLng);
357 }360 }
358 break;361 break;
359362
363 case "http://simulate_again/":
364 mainPageStack.routeState = 'simulate_calculating';
365 mainPageStack.executeJavaScript("simulate2coord(" + mainPageStack.resimulatePTFromLat + ", " + mainPageStack.resimulatePTFromLng + ", " + mainPageStack.resimulatePTToLat + ", " + mainPageStack.resimulatePTToLng + ");");
366 break;
367
360 case "http://hide_popup/":368 case "http://hide_popup/":
361 goThereActionPopover.hide();369 goThereActionPopover.hide();
362 break;370 break;
@@ -387,10 +395,11 @@
387 mainPageStack.routeState = 'no';395 mainPageStack.routeState = 'no';
388 break;396 break;
389397
390 case "http://save_pos/":398 case "http://save_data/":
391 navApp.settings.prevLat = params[0];399 navApp.settings.prevLat = params[0];
392 navApp.settings.prevLng = params[1];400 navApp.settings.prevLng = params[1];
393 navApp.settings.prevZoom = params[2];401 navApp.settings.prevZoom = params[2];
402 navApp.settings.routingMode = params[3];
394 break;403 break;
395 404
396 case "http://show_notification/":405 case "http://show_notification/":
@@ -434,7 +443,6 @@
434 mainPageStack.executeJavaScript("settings.set_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");443 mainPageStack.executeJavaScript("settings.set_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");
435 mainPageStack.executeJavaScript("ui.set_scale_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");444 mainPageStack.executeJavaScript("ui.set_scale_unit(\'" + ( navApp.settings.unit === 0 ? "km" : "mi" ) +"\')");
436 mainPageStack.executeJavaScript("settings.set_routing_mode(" + navApp.settings.routingMode + ")");445 mainPageStack.executeJavaScript("settings.set_routing_mode(" + navApp.settings.routingMode + ")");
437 mainPageStack.executeJavaScript("ui.set_confirm_route(" + navApp.settings.confirmRoute + ")");
438 mainPageStack.executeJavaScript("settings.set_avoid_tolls(" + navApp.settings.avoidTolls + ")");446 mainPageStack.executeJavaScript("settings.set_avoid_tolls(" + navApp.settings.avoidTolls + ")");
439 mainPageStack.executeJavaScript("settings.set_alert_radars(" + navApp.settings.alertRadars + ")");447 mainPageStack.executeJavaScript("settings.set_alert_radars(" + navApp.settings.alertRadars + ")");
440 mainPageStack.executeJavaScript("settings.set_ui_speed(" + navApp.settings.uiShowSpeed + ")");448 mainPageStack.executeJavaScript("settings.set_ui_speed(" + navApp.settings.uiShowSpeed + ")");
@@ -861,6 +869,10 @@
861 else {869 else {
862 goThereActionPopover.hide();870 goThereActionPopover.hide();
863 mainPageStack.routeState = 'simulate_calculating';871 mainPageStack.routeState = 'simulate_calculating';
872 mainPageStack.resimulatePTFromLat = mainPageStack.ptFromLat;
873 mainPageStack.resimulatePTFromLng = mainPageStack.ptFromLng;
874 mainPageStack.resimulatePTToLat = mainPageStack.clickedLat;
875 mainPageStack.resimulatePTToLng = mainPageStack.clickedLng;
864 mainPageStack.executeJavaScript("simulate2coord(" + mainPageStack.ptFromLat + ", " + mainPageStack.ptFromLng + ", " + mainPageStack.clickedLat + ", " + mainPageStack.clickedLng + ");");876 mainPageStack.executeJavaScript("simulate2coord(" + mainPageStack.ptFromLat + ", " + mainPageStack.ptFromLng + ", " + mainPageStack.clickedLat + ", " + mainPageStack.clickedLng + ");");
865 mainPageStack.ptFromLat = "null";877 mainPageStack.ptFromLat = "null";
866 }878 }
@@ -938,7 +950,7 @@
938 target: Qt.application950 target: Qt.application
939 onStateChanged:951 onStateChanged:
940 if(Qt.application.state !== Qt.ApplicationActive) {952 if(Qt.application.state !== Qt.ApplicationActive) {
941 mainPageStack.executeJavaScript("qml_save_pos();");953 mainPageStack.executeJavaScript("qml_save_data()");
942 }954 }
943 }955 }
944956
945957
=== modified file 'qml/SettingsPage.qml'
--- qml/SettingsPage.qml 2017-01-17 17:20:10 +0000
+++ qml/SettingsPage.qml 2017-02-19 22:22:23 +0000
@@ -50,19 +50,6 @@
50 signal settingsChanged()50 signal settingsChanged()
5151
52 ListModel {52 ListModel {
53 id: navigationModeModel
54 Component.onCompleted: initialize()
55 function initialize() {
56 navigationModeModel.append({ "mode": i18n.tr("Car"), "index": 0 })
57 navigationModeModel.append({ "mode": i18n.tr("Walking"), "index": 1 })
58 navigationModeModel.append({ "mode": i18n.tr("Bicycle"), "index": 2 })
59 navigationModeModel.append({ "mode": i18n.tr("Public Transport"), "index": 3 })
60
61 modeList.subText.text = navigationModeModel.get(navApp.settings.routingMode).mode
62 }
63 }
64
65 ListModel {
66 id: soundModel53 id: soundModel
67 Component.onCompleted: initialize()54 Component.onCompleted: initialize()
68 function initialize() {55 function initialize() {
@@ -115,7 +102,7 @@
115 Flickable {102 Flickable {
116 id: flickable103 id: flickable
117 anchors.fill: parent104 anchors.fill: parent
118 contentHeight: settingsColumn.height + units.gu(5)105 contentHeight: settingsColumn.height
119106
120 Column {107 Column {
121 id: settingsColumn108 id: settingsColumn
@@ -132,54 +119,6 @@
132 }119 }
133120
134 ExpandableListItem {121 ExpandableListItem {
135 id: modeList
136
137 listViewHeight: units.gu(17+1)
138 height: infoPublicLabel.visible ? units.gu(11) : units.gu(9)
139 titleText.text: i18n.tr("Navigation mode")
140
141 model: navigationModeModel
142
143 delegate: ListItem {
144 divider.visible: false
145 height: navigationListItemLayout.height
146 ListItemLayout {
147 id: navigationListItemLayout
148 title.text: model.mode
149 title.color: "#5D5D5D"
150 padding { top: units.gu(1); bottom: units.gu(1) }
151 Icon {
152 SlotsLayout.position: SlotsLayout.Trailing
153 width: units.gu(2)
154 name: "tick"
155 visible: navApp.settings.routingMode === model.index
156 }
157 }
158
159 onClicked: {
160 navApp.settings.routingMode = model.index
161 mainPageStack.executeJavaScript("if (nav.get_route_status() != 'no' && !nav.get_route_status().startsWith('simulate')){nav.set_route_status('waiting4signal')}; settings.set_routing_mode(" + model.index +");")
162 modeList.subText.text = navigationModeModel.get(navApp.settings.routingMode).mode
163 modeList.toggleExpansion()
164 }
165 }
166
167 Label {
168 id: infoPublicLabel
169 text: "<a href='https://transit.land/'>" + i18n.tr("Powered by a community-edited data service") + "</a>"
170 visible: navApp.settings.routingMode === 3
171 width: parent.width
172 anchors {
173 left: parent.left
174 leftMargin: units.gu(2)
175 bottom: parent.bottom
176 bottomMargin: units.gu(1)
177 }
178 onLinkActivated: Qt.openUrlExternally(link)
179 }
180 }
181
182 ExpandableListItem {
183 id: soundList122 id: soundList
184123
185 listViewHeight: units.gu(12+1)124 listViewHeight: units.gu(12+1)
@@ -220,25 +159,12 @@
220 onClicked: mainPageStack.addPageToNextColumn(mainPageStack.primaryPage, Qt.resolvedUrl("DownloadVoices.qml"))159 onClicked: mainPageStack.addPageToNextColumn(mainPageStack.primaryPage, Qt.resolvedUrl("DownloadVoices.qml"))
221 }160 }
222161
223 ListItem {162 ListItemHeader {
224 height: confirmRouteLayout.height + divider.height163 id: carListHeader
225 ListItemLayout {164 title: i18n.tr("Car Options")
226 id: confirmRouteLayout
227 title.text: i18n.tr("Confirm new routes")
228 Switch {
229 id: confirmRouteSwitch
230 checked: navApp.settings.confirmRoute
231 onClicked: {
232 navApp.settings.confirmRoute = checked;
233 mainPageStack.executeJavaScript("ui.set_confirm_route(" + checked.toString() + ")")
234 }
235 SlotsLayout.position: SlotsLayout.Last
236 }
237 }
238 }165 }
239166
240 ListItem {167 ListItem {
241 visible: navApp.settings.routingMode === 0
242 height: tollsLayout.height + divider.height168 height: tollsLayout.height + divider.height
243 ListItemLayout {169 ListItemLayout {
244 id: tollsLayout170 id: tollsLayout
@@ -256,7 +182,6 @@
256 }182 }
257183
258 ListItem {184 ListItem {
259 visible: navApp.settings.routingMode === 0
260 height: speedCameraLayout.height + divider.height185 height: speedCameraLayout.height + divider.height
261 ListItemLayout {186 ListItemLayout {
262 id: speedCameraLayout187 id: speedCameraLayout

Subscribers

People subscribed via source and target branches