diff options
author | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-25 17:26:18 +0000 |
---|---|---|
committer | martin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220> | 2012-12-25 17:26:18 +0000 |
commit | 3df5786a8ff4eadf27e43a13834b9e20d5848f6e (patch) | |
tree | dcc8bcceaf6d2fa3f98f11c6f2a3791b107380a8 /navit/navit_shipped.xml | |
parent | c2aa144690971c01804350eca8504c7d18cfa1ac (diff) | |
download | navit-3df5786a8ff4eadf27e43a13834b9e20d5848f6e.tar.gz |
Fix:gui_internal:Moved vehicle config to xml
git-svn-id: http://svn.code.sf.net/p/navit/code/trunk/navit@5328 ffa7fe5e-494d-0410-b361-a75ebd5db220
Diffstat (limited to 'navit/navit_shipped.xml')
-rw-r--r-- | navit/navit_shipped.xml | 33 |
1 files changed, 31 insertions, 2 deletions
diff --git a/navit/navit_shipped.xml b/navit/navit_shipped.xml index 33011b410..9ab14e07b 100644 --- a/navit/navit_shipped.xml +++ b/navit/navit_shipped.xml @@ -135,10 +135,39 @@ Waypoint</text></img> </script> </a> <a name='Settings Vehicles' class='clist'><text>Vehicle</text> - <script>vehicles_page()</script> + <script> + foreach(vehicle;navit.vehicle) + write("<img class='centry'", + " src='", navit.vehicle==vehicle?"gui_active":"gui_inactive", "'", + " onclick='name=", E(vehicle.name), ";menu(", E("#Settings Vehicle"), ")'", + ">", + vehicle.name, + "</img>" + ); + </script> </a> <a name='Settings Vehicle' class='clist'><script>write(name)</script> - <script>vehicle_page(name)</script> + <script> + foreach(vehicle;navit.vehicle) + if (vehicle.name == name) { + if (vehicle!=navit.vehicle) + write("<img class='centry'", + " src='gui_active' ", + " onclick='set(", E("navit.vehicle=navit.vehicle[@name==*]"), ",E(", E(name), "));refresh()'", + ">", + "Set as active", + "</img>" + ); + foreach(vehicleprofile;navit.vehicleprofile) + write("<img class='centry'", + " src='", vehicle.profilename==vehicleprofile.name?"gui_active":"gui_inactive", "'", + " onclick='set(", E("navit.vehicle[@name=="+E(name)+"].profilename=*"), ",E(", E(vehicleprofile.name), "));refresh()'", + ">", + vehicleprofile.name, + "</img>" + ); + } + </script> </a> <a name='Satellite Status' class='clist'><text>Satellite Status</text> <script>satellite_status_page()</script> |