summaryrefslogtreecommitdiff
path: root/navit/navit_shipped.xml
diff options
context:
space:
mode:
authormartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-12-25 17:26:18 +0000
committermartin-s <martin-s@ffa7fe5e-494d-0410-b361-a75ebd5db220>2012-12-25 17:26:18 +0000
commit3df5786a8ff4eadf27e43a13834b9e20d5848f6e (patch)
treedcc8bcceaf6d2fa3f98f11c6f2a3791b107380a8 /navit/navit_shipped.xml
parentc2aa144690971c01804350eca8504c7d18cfa1ac (diff)
downloadnavit-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.xml33
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("&lt;img class='centry'",
+ " src='", navit.vehicle==vehicle?"gui_active":"gui_inactive", "'",
+ " onclick='name=", E(vehicle.name), ";menu(", E("#Settings Vehicle"), ")'",
+ "&gt;",
+ vehicle.name,
+ "&lt;/img&gt;"
+ );
+ </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("&lt;img class='centry'",
+ " src='gui_active' ",
+ " onclick='set(", E("navit.vehicle=navit.vehicle[@name==*]"), ",E(", E(name), "));refresh()'",
+ "&gt;",
+ "Set as active",
+ "&lt;/img&gt;"
+ );
+ foreach(vehicleprofile;navit.vehicleprofile)
+ write("&lt;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()'",
+ "&gt;",
+ vehicleprofile.name,
+ "&lt;/img&gt;"
+ );
+ }
+ </script>
</a>
<a name='Satellite Status' class='clist'><text>Satellite Status</text>
<script>satellite_status_page()</script>