diff --git a/share-a-bike/app/assistants/main-assistant.js b/share-a-bike/app/assistants/main-assistant.js index 7bf3320..879998b 100644 --- a/share-a-bike/app/assistants/main-assistant.js +++ b/share-a-bike/app/assistants/main-assistant.js @@ -3,6 +3,9 @@ function MainAssistant(argFromPusher) { MainAssistant.prototype = { setup: function() { + // Setup Application Menu + this.controller.setupWidget(Mojo.Menu.appMenu, AddSubMenuAttr, AddSubMenuModel); + Ares.setupSceneAssistant(this); this.radius = 0.5; diff --git a/share-a-bike/app/assistants/mapScene-assistant.js b/share-a-bike/app/assistants/mapScene-assistant.js index b60db7b..694c859 100644 --- a/share-a-bike/app/assistants/mapScene-assistant.js +++ b/share-a-bike/app/assistants/mapScene-assistant.js @@ -6,6 +6,9 @@ function MapSceneAssistant(argFromPusher) { MapSceneAssistant.prototype = { setup: function() { + // Setup Application Menu + this.controller.setupWidget(Mojo.Menu.appMenu, AddSubMenuAttr, AddSubMenuModel); + Ares.setupSceneAssistant(this); this.$.kioskMap.setLongitude(this.gps.longitude); diff --git a/share-a-bike/app/assistants/stage-assistant.js b/share-a-bike/app/assistants/stage-assistant.js index de5247b..783c484 100644 --- a/share-a-bike/app/assistants/stage-assistant.js +++ b/share-a-bike/app/assistants/stage-assistant.js @@ -2,6 +2,27 @@ function StageAssistant() { } StageAssistant.prototype.setup = function() { + // Setup Application Menu + AddSubMenuAttr = {omitDefaultItems: true}; + AddSubMenuModel = { + visible: true, + items: [ + Mojo.Menu.editItem, + Mojo.Menu.prefsItem, + {label: "Help", command: 'do-helpAddSub', shortcut: 'h'} + ] + }; this.controller.pushScene({name: "main", disableSceneScroller: true}); this.controller.setWindowOrientation("free"); +}; + + +StageAssistant.prototype.handleCommand = function(event) { + if(event.type == Mojo.Event.command) { + switch(event.command) { + case 'do-helpAddSub': + this.controller.pushAppSupportInfoScene(); + break; + } + } }; \ No newline at end of file diff --git a/share-a-bike/appinfo.json b/share-a-bike/appinfo.json index 6e91f81..035dd1a 100644 --- a/share-a-bike/appinfo.json +++ b/share-a-bike/appinfo.json @@ -1,9 +1,18 @@ { "id": "com.mikeshoup.share-a-bike", - "version": "0.1.3", + "version": "0.1.5", "vendor": "Mike Shoup", "type": "web", "main": "index.html", "title": "Share-a-Bike", - "icon": "icon.png" + "icon": "icon.png" , + "smallicon": "images/icon-32.png", + "copyright": "© Copyright 2010 Mike Shoup", + "support": { + "url": "http://code.google.com/p/share-a-bike/wiki/UsingShareABike", + "email": { + "address": "mike@mikeshoup.com", + "subject": "Share-a-bike Support" + } + } } diff --git a/share-a-bike/index.html b/share-a-bike/index.html index 15e24ce..29a4dd6 100644 --- a/share-a-bike/index.html +++ b/share-a-bike/index.html @@ -9,5 +9,6 @@ + Loading, please wait...