Commit 50de7496ea9cd3412957e504a918c3fea3fb018a

  • avatar
  • dBsooner's Stuff <dbsooner @del…ge.vision5.com>
  • Thu Feb 18 01:24:03 CET 2010
28 Updates for Patches
  
1Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
2===================================================================
3--- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
4+++ /usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
5@@ -189,6 +189,10 @@
1diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
2index 8115472..26aec73 100644
3--- a/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
4+++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/app-assistant.js
5@@ -189,6 +189,10 @@ var DefaultStageAssistant = Class.create(
66 var self = this;
77 var menu = new Weave.Utilities.AppMenu()
88 .addEdit()
1313 .addItem($L('Preferences & Accounts'),
1414 function()
1515 {
16Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js
17===================================================================
18--- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js
19+++ /usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js
16diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js
17new file mode 100644
18index 0000000..0321579
19--- /dev/null
20+++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/hide-assistant.js
2021@@ -0,0 +1,46 @@
2122+/*jslint browser: true, eqeqeq: true, undef: true */
2223+/******************************************************************************
6565+ this.update();
6666+ },
6767+});
68Index: /usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
69===================================================================
70--- .orig/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
71+++ /usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
72@@ -29,6 +29,8 @@
68diff --git a/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js b/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
69index 41fa796..7bda4d3 100644
70--- a/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
71+++ b/usr/palm/applications/com.palm.app.findapps/app/controllers/search-assistant.js
72@@ -29,6 +29,8 @@ var SearchAssistant = Class.create(
7373 this._searchApps = this._searchApps.bindAsEventListener(this);
7474 this._formatAppDivider = this._formatAppDivider.bind(this);
7575
7878 // Set up the attributes & prepare this widget for lazy loading of data
7979 this._searchListAttr =
8080 {
81@@ -146,6 +148,8 @@
81@@ -146,6 +148,8 @@ var SearchAssistant = Class.create(
8282 this._appsSearch.button.addEventListener(Mojo.Event.tap, this._searchApps);
8383 // Refocus search field
8484 this._appsSearch.widget.mojo.focus();
8787 },
8888
8989 deactivate: function()
90@@ -296,6 +300,24 @@
90@@ -296,6 +300,24 @@ var SearchAssistant = Class.create(
9191 model.formattedUpdate = (this._getApplicationInstalledState(model) == 'update' ? 'has-update' : '');
9292 // HACK - author fixup
9393 model.author = (model.author ? model.author : '&nbsp;');
112112 },
113113
114114 _formatAppDivider: function(model)
115Index: /usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js
116===================================================================
117--- .orig/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js
118+++ /usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js
115diff --git a/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js b/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js
116new file mode 100644
117index 0000000..ca74a14
118--- /dev/null
119+++ b/usr/palm/applications/com.palm.app.findapps/app/model/hide-list.js
119120@@ -0,0 +1,101 @@
120121+/*jslint browser: true, eqeqeq: true, undef: true */
121122+/*global Mojo */
219219+
220220+HideList.initialize();
221221+
222Index: /usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html
223===================================================================
224--- .orig/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html
225+++ /usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html
222diff --git a/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html b/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html
223new file mode 100644
224index 0000000..1f12b9f
225--- /dev/null
226+++ b/usr/palm/applications/com.palm.app.findapps/app/views/hide/hide-scene.html
226227@@ -0,0 +1,19 @@
227228+<div class="palm-scene hide-scene">
228229+ <div class="palm-page-header multi-line">
244244+ x-mojo-element="TextField"></div>
245245+
246246+</div>
247Index: /usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
248===================================================================
249--- .orig/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
250+++ /usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
247diff --git a/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html b/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
248index 07d7a8c..cb73c28 100644
249--- a/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
250+++ b/usr/palm/applications/com.palm.app.findapps/app/views/search/search-appsummary.html
251251@@ -1,5 +1,5 @@
252252-<div class="palm-row" x-mojo-tap-highlight='momentary'>
253253- <div class="palm-row-wrapper padded">
256256 <div class="icon left search-result-app-icon #{formattedUpdate}">
257257 <div class="loadingicon"></div>
258258 <div class="update-badge"></div>
259Index: /usr/palm/applications/com.palm.app.findapps/index-default.html
260===================================================================
261--- .orig/usr/palm/applications/com.palm.app.findapps/index-default.html
262+++ /usr/palm/applications/com.palm.app.findapps/index-default.html
259diff --git a/usr/palm/applications/com.palm.app.findapps/index-default.html b/usr/palm/applications/com.palm.app.findapps/index-default.html
260index a77c2d7..851999e 100644
261--- a/usr/palm/applications/com.palm.app.findapps/index-default.html
262+++ b/usr/palm/applications/com.palm.app.findapps/index-default.html
263263@@ -7,6 +7,7 @@
264264 <head>
265265 <script src="/usr/palm/frameworks/mojo/mojo.js" x-mojo-version="1" xx-mojo-submission="trunk" type="text/javascript"></script>
268268 </head>
269269
270270 <body class="wallpaper">
271Index: /usr/palm/applications/com.palm.app.findapps/sources.json
272===================================================================
273--- .orig/usr/palm/applications/com.palm.app.findapps/sources.json
274+++ /usr/palm/applications/com.palm.app.findapps/sources.json
271diff --git a/usr/palm/applications/com.palm.app.findapps/sources.json b/usr/palm/applications/com.palm.app.findapps/sources.json
272index 9aad548..4405991 100644
273--- a/usr/palm/applications/com.palm.app.findapps/sources.json
274+++ b/usr/palm/applications/com.palm.app.findapps/sources.json
275275@@ -69,6 +69,9 @@
276276 "source": "app\/controllers\/change-email-address-assistant.js"
277277 },
293293 "source": "app\/controllers\/prefs-assistant.js",
294294 "scenes": "prefs"
295295 },
296Index: /usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
297===================================================================
298--- .orig/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
299+++ /usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
300@@ -1579,3 +1579,37 @@
296diff --git a/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css b/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
297index 6db1994..65cc955 100644
298--- a/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
299+++ b/usr/palm/applications/com.palm.app.findapps/stylesheets/appcatalog.css
300@@ -1579,3 +1579,37 @@ a:hover.table-of-contents {color: #1F00F0;}
301301 /* -webkit-box-sizing: border-box; */
302302 }
303303
  
11diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
2index bebbad2..5814b08 100644
2index bebbad2..851c45e 100644
33--- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
44+++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
55@@ -10,7 +10,7 @@ var LauncherAssistant = Class.create({
4848- this.kAppHeight = newAppDiv.getHeight();
4949- this.kAppsPerRow = Math.round(this.kPageWidthNoMargin / this.kAppWidth);
5050+ this.kAppWidth = 80;
51+ this.kAppHeight = 88;
51+ this.kAppHeight = 91;
5252+ this.kAppsPerRow = 4;
5353 }
5454
7272 this.showAppInfoMenu(appInfo);
7373 } else if (!this.feedbackTimeout) { // are we already trying to launch something?
7474diff --git a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css
75index 545460c..bd17230 100644
75index 545460c..1fbd22f 100644
7676--- a/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css
7777+++ b/usr/lib/luna/system/luna-applauncher/stylesheets/launcher.css
78@@ -125,7 +125,7 @@ body.palm-default
78@@ -21,7 +21,7 @@ body.palm-default
79 width: 320px;
80 height: 100%;
81 }
82-
83+/*
84 .launcher_fade_bottom {
85 position: absolute;
86 bottom: 0px;
87@@ -63,7 +63,7 @@ body.palm-default
88 background: url(../images/fade-arrow-up.png) center center no-repeat;
89 -webkit-palm-mouse-target: ignore;
90 }
91-
92+*/
93 #pages_container {
94 position:relative;
95 left:0px;
96@@ -75,7 +75,7 @@ body.palm-default
97 #page_indicators {
98 position:absolute;
99 bottom: 0px;
100- height:20px;
101+ height:7px;
102 width: 100%;
103 z-index:30;
104 -webkit-palm-mouse-target: ignore;
105@@ -86,7 +86,7 @@ body.palm-default
106 background: url(../images/launcher-page-indicator.png) no-repeat;
107 /* left/top provided by JS */
108 width:7px;
109- height:15px;
110+ height:7px;
111 -webkit-palm-mouse-target: ignore;
112 }
79113
114@@ -125,16 +125,17 @@ body.palm-default
115
80116 .launcher_page .name {
81117 position:absolute;
82118- top: 68px;
83+ top: 60px;
84 width:100px;
119- width:100px;
120+ top: 61px;
121+ left:10px;
122+ width:80px;
85123 height: 34px;
86124 max-height: 34px;
87@@ -134,7 +134,7 @@ body.palm-default
125 clear:both;
126- line-height:16px;
127+ line-height:13px;
88128 color:white;
89129 text-align:center;
90130 font-weight:bold;
133133 overflow: hidden;
134134 text-overflow: ellipsis;
135135 z-index:5;
136@@ -263,8 +263,8 @@ body.palm-default
136@@ -263,8 +264,8 @@ body.palm-default
137137 }
138138
139139 .draggable {
144144 margin: 0 auto;
145145 -webkit-user-drag: any;
146146 -webkit-user-select: none;
147@@ -312,8 +312,8 @@ body.palm-default
147@@ -312,8 +313,8 @@ body.palm-default
148148
149149 #app-icon {
150150 float:left;
  
1Name: Advanced Options in Launcher
2Version: 1.3.5.1-1
3Author: Jason Robitaille
4Description: Adds additional options to the launcher's menu: turn on/off DevMode, rescan fileindexer, and rescan applications (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
7+++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
8@@ -28,6 +28,7 @@
1diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
2index bebbad2..af87a53 100644
3--- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
4+++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
5@@ -28,6 +28,7 @@ var LauncherAssistant = Class.create({
96 Mojo.Menu.editItem,
107 { label: $L('List Apps...'), command: 'listapps' },
118 { label: $L('Default Applications'), command: 'defaultapps'},
1010 Mojo.Menu.helpItem
1111 ]
1212 },
13@@ -115,6 +116,84 @@
13@@ -115,6 +116,95 @@ var LauncherAssistant = Class.create({
1414 handleCommand: function(event) {
1515 if (event.type == Mojo.Event.command) {
1616 switch (event.command) {
2626+ parameters: {},
2727+ onSuccess: function(response){
2828+ var choices = [
29+ {label:"Toggle DevMode", value:'devmode'},
30+ {label:"Rescan Fileindexer", value:'fileindexer'},
29+ {label:"Toggle DevMode", value:'devmode'},
3130+ {label:"Rescan Applications", value:'rescanapps'},
31+ {label:"Rescan Fileindexer", value:'fileindexer'},
32+ {label:"Run Garbage Collectors", value:'gc'},
3233+ {label:"Cancel", value:'cancel', type:'secondary'}
3334+ ];
3435+ this.inDevMode = response.isEnabled;
4545+ onChoose: function(value){
4646+ if(value=='reset') {
4747+ this.controller.serviceRequest('palm://com.palm.connectionmanager', {
48+ method: 'getnovacommode',
48+ method: 'setnovacommode',
4949+ parameters: {
5050+ isEnabled:!this.inDevMode
5151+ },
8181+ parameters: {}
8282+ });
8383+ SystemManagerService.showQuickLaunch(this.showQLBar);
84+ } else if(value=='gc') {
85+ this.controller.serviceRequest('palm://ca.canucksoftware.filemgr', {
86+ method: 'gc', //java garbage collect
87+ parameters: {}
88+ });
89+ this.controller.serviceRequest('palm://com.palm.lunastats',{
90+ method: 'gc', //javascript garbage collect
91+ parameters: {},
92+ });
93+ SystemManagerService.showQuickLaunch(this.showQLBar);
8494+ } else {
8595+ SystemManagerService.showQuickLaunch(this.showQLBar);
8696+ }
  
1Name: Hide Quick Launch Bar
2Version: 1.3.1-1
3Author: Jason Robitaille
4Description: Hides the quick launch bar (while still alowing the quick launch wave) (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
7+++ /usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
8@@ -7,7 +7,7 @@
9 SystemManagerService.showQuickLaunch = function(show) {
10 var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, {
11 method: 'systemUi',
12- parameters: {'quicklaunch':show}
13+ parameters: {'quicklaunch':false}
14 });
15 request = null;
16 }
17\ No newline at end of file
18--- .orig/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
19+++ /usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
20@@ -8,7 +8,7 @@
1diff --git a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
2index bebbad2..013a694 100644
3--- a/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
4+++ b/usr/lib/luna/system/luna-applauncher/app/controllers/launcher-assistant.js
5@@ -8,7 +8,7 @@ var LauncherAssistant = Class.create({
216 * hardcoding the quick launch height until we can find a better way.
227 * This value = ql graphic height - the offset from the top (small fade area)
238 */
1111
1212 kPageIndicatorSpacing: 6, /* spacing between each page indicator */
1313 kPageMargin: 10, /* 10 pixel margin on each side of a page */
14--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
15+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
16@@ -17,6 +17,11 @@
14diff --git a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
15index e9f6856..2e42778 100644
16--- a/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
17+++ b/usr/lib/luna/system/luna-applauncher/app/models/SystemManagerService.js
18@@ -7,7 +7,7 @@ function SystemManagerService() {
19 SystemManagerService.showQuickLaunch = function(show) {
20 var request = new Mojo.Service.Request(SystemManagerService.SysMgrId, {
21 method: 'systemUi',
22- parameters: {'quicklaunch':show}
23+ parameters: {'quicklaunch':false}
24 });
25 request = null;
26 }
27diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
28index 6fdbb39..99e0226 100644
29--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
30+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
31@@ -17,6 +17,11 @@ var BarAssistant = Class.create({
1732 this.wifiState = 'Off';
1833 this.wifiRadio = false;
1934
4040 $('rssi').className = 'nobars';
4141 $('datanet').className = 'off';
4242 $('wifi').className = 'off';
43@@ -230,6 +235,12 @@
44 $('appname').innerHTML = this.carrierText;
45 this.phoneIsForeground = true;
43@@ -260,12 +265,23 @@ handleAppName:function(payload){
44 }
45 $('appname').innerHTML = $L("Preferences");
4646 }
4747+ else if (payload.id == "com.palm.launcher"){
4848+ this.controller.serviceRequest('palm://com.palm.systemmanager', {
4949+ method: 'systemUi',
5050+ parameters: {"quicklaunch": false}
5151+ });
52+ $('appname').innerHTML = payload.appmenu || payload.title;
5253+ }
53 else if (this.isPreferences(payload)) {
54 if(payload.id == "com.palm.app.updates") {
55 this.updateIsForeground = true;
56@@ -242,6 +253,10 @@
54 else
55 $('appname').innerHTML = payload.appmenu || payload.title;
56 $('appname').show();
5757 this.foregroundAppID = payload.id;
5858 }
5959 else{
  
2020 },
2121
2222diff --git a/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js b/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js
23index 65c8202..f6f3aef 100644
23index 65c8202..af0a2ea 100644
2424--- a/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js
2525+++ b/usr/palm/applications/com.palm.app.clock/app/controllers/settings-assistant.js
26@@ -1,6 +1,30 @@
26@@ -1,6 +1,26 @@
2727 /* Copyright 2009 Palm, Inc. All rights reserved. */
2828
2929 var SettingsAssistant = Class.create({
3030+ // values for snooze duration listselector
3131+ snoozeDurationChoices: [
3232+ {
33+ label: $L("3 min."),
34+ value: 3
35+ },
36+ {
3733+ label: $L("5 min."),
3834+ value: 5
3935+ },
5050 initialize: function(settings, themes, onThemeChange) {
5151 this.appController = Mojo.Controller.getAppController();
5252
53@@ -14,7 +38,7 @@ var SettingsAssistant = Class.create({
53@@ -14,7 +34,7 @@ var SettingsAssistant = Class.create({
5454 this.initializeSettings();
5555
5656 this.onKeyPress = this.onKeyPress.bind(this);
5959 this.easterString = "";
6060
6161 },
62@@ -22,8 +46,12 @@ var SettingsAssistant = Class.create({
62@@ -22,8 +42,12 @@ var SettingsAssistant = Class.create({
6363 // VERY IMPORTANT: UI for ringer switch has OPPOSITE MEANING of variable
6464 // it's reversed here for display and must be reversed back when saving
6565 initializeSettings: function() {
7474 },
7575
7676 setup: function() {
77@@ -50,6 +78,15 @@ var SettingsAssistant = Class.create({
77@@ -50,6 +74,15 @@ var SettingsAssistant = Class.create({
7878
7979 this.controller.get('theme_set').observe(Mojo.Event.tap, this.onThemeSelect);
8080
9090 this.controller.listen(this.controller.sceneElement, Mojo.Event.keypress, this.onKeyPress);
9191
9292 },
93@@ -74,6 +111,10 @@ var SettingsAssistant = Class.create({
93@@ -74,6 +107,10 @@ var SettingsAssistant = Class.create({
9494 this.settings.ringerSwitchObeyedSet(!(this.settingsModel.ringerSwitchObeyed));
9595 },
9696
  
1diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
2index 362383b..e208961 100644
3--- a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
4+++ b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
5@@ -72,6 +72,7 @@ var MessageAssistant = Class.create({
6 this.cmdMenuModel = {
7 visible:true,
8 items: [
9+ {label:$L('Move'), icon:'file', command:'move'},
10 {label:$L('Reply'), icon:'reply', command:'reply'},
11 {label:$L('Reply all'), icon:'reply-all', command:'replyAll'},
12 {label:$L('Forward'), icon:'forward-email', command:'forward'},
13@@ -106,7 +107,6 @@ var MessageAssistant = Class.create({
14 emailEditItems,
15 this.markUnreadMenuItem,
16 this.markSetFlagMenuItem,
17- {label:$L('Move to Folder...'), shortcut:'m', command:'move'},
18 this.showRecipientsMenuItem,
19 Mojo.Menu.prefsItem,
20 Mojo.Menu.helpItem
  
11diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
2index 567c7a1..d45815f 100644
2index 362383b..de6f1e3 100644
33--- a/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
44+++ b/usr/palm/applications/com.palm.app.email/app/controllers/message-assistant.js
5@@ -68,8 +68,8 @@ var MessageAssistant = Class.create({
5@@ -72,8 +72,8 @@ var MessageAssistant = Class.create({
66 this.cmdMenuModel = {
77 visible:true,
88 items: [
9+ {label:$L('Move'), icon:'file', command:'move'},
9+ {label:$L('Move'), icon:'file', command:'move'},
1010 {label:$L('Reply'), icon:'reply', command:'reply'},
1111- {label:$L('Reply all'), icon:'reply-all', command:'replyAll'},
1212 {label:$L('Forward'), icon:'forward-email', command:'forward'},
1313 {label:$L('Delete'), icon:'delete', command:'delete'}
1414 ]};
15@@ -102,7 +102,7 @@ var MessageAssistant = Class.create({
15@@ -106,7 +106,7 @@ var MessageAssistant = Class.create({
1616 emailEditItems,
1717 this.markUnreadMenuItem,
1818 this.markSetFlagMenuItem,
1919- {label:$L('Move to Folder...'), shortcut:'m', command:'move'},
20+ {label:$L('Reply all'), command:'replyAll'},
20+ {label:$L('Reply All'), command:'replyAll'},
2121 this.showRecipientsMenuItem,
2222 Mojo.Menu.prefsItem,
2323 Mojo.Menu.helpItem
  
1Name: No Network Time Zone Error
2Version: 1.3.5-1
3Author: Jason Robitaille
4Description: Under some circumstances, even with "network time" and "network time zone" disables, you'll still get an error at reboot about the network time zone be invalid. This patch gets rid of that error message. (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8@@ -180,8 +180,8 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index 6fdbb39..5b52355 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -183,8 +183,8 @@ handleSystemTimeUpdate: function(payload) {
96 return;
107 this.startClock();
118
  
1Name: Advanced Reset Options
2Version: 1.3.5.1-1
3Author: Jason Robitaille
4Description: On power button hold, it goes straight to the reset options, with airplaine mode, java restart, and luna restart added, and skips the swap-battery/shutdown prompt. (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8@@ -2426,7 +2426,7 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index 6fdbb39..8614738 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -2426,7 +2426,7 @@ showPowerOffAlert: function() {
96 var f = function(stageController){
107 stageController.pushScene('poweroffalert',this);
118 }.bind(this);
1111 appController.createStageWithCallback(params,f,'popupalert');
1212 }
1313 //Close the Storage Alert and create a USB dashboard.
14--- .orig/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
15+++ /usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
16@@ -1,5 +1,8 @@
17 <div class="system-notification power-off">
18 <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div>
19- <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div>
20+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='java' x-mojo-loc=''>Java-Services Restart</div>
21+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='luna' x-mojo-loc=''>Luna Restart</div>
22+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Device Restart</div>
23+ <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div>
24 <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div>
25 </div>
26\ No newline at end of file
27--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
28+++ /usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
29@@ -7,7 +7,10 @@
14diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
15index 05ea355..96a4e70 100644
16--- a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
17+++ b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
18@@ -7,7 +7,10 @@ var PoweroffalertAssistant = Class.create({
3019
3120 setup: function() {
3221 var flightMode = this.flightMode.bindAsEventListener(this);
2727 var cancel = this.cancel.bindAsEventListener(this);
2828 var launchAirplaneModeHelp = this.launchAirplaneModeHelp.bindAsEventListener(this);
2929 this.flightMode = this.barAssistant.getAirplaneMode();
30@@ -16,7 +19,10 @@
30@@ -16,8 +19,11 @@ var PoweroffalertAssistant = Class.create({
3131 else
3232 this.controller.get('flightmode').innerHTML = "<div class='info-icon' id='airplaneInfo' x-mojo-touch-feedback='immediate'></div>" + $L('Airplane Mode');
3333
3939+ this.controller.get('shutdown').addEventListener(Mojo.Event.tap, shutdown);
4040 this.controller.get('cancel').addEventListener(Mojo.Event.tap, cancel);
4141 this.controller.get('airplaneInfo').addEventListener(Mojo.Event.tap, launchAirplaneModeHelp);
42@@ -46,6 +52,32 @@
42
43@@ -46,6 +52,32 @@ var PoweroffalertAssistant = Class.create({
4344 this.controller.window.close();
4445 },
4546
7373 flightMode:function(event) {
7474
7575 var targetId = event.target.id;
76diff --git a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
77index dfb04c1..782b7d6 100644
78--- a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
79+++ b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
80@@ -1,5 +1,8 @@
81 <div class="system-notification power-off">
82 <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div>
83- <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div>
84+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='java' x-mojo-loc=''>Java-Services Restart</div>
85+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='luna' x-mojo-loc=''>Luna Restart</div>
86+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Device Restart</div>
87+ <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div>
88 <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div>
89 </div>
90\ No newline at end of file
  
1Name: "Just Charge" By Default
2Version: 1.3.5-1
3Author: Jason Robitaille
4Description: On plugging in your device, it'll automatically go into "Just Charge" with notification at bottom if you want to change to a different mode (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8@@ -2101,7 +2101,7 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index 6fdbb39..61a8e7c 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -2174,7 +2174,7 @@ storageHandleNotifications: function(payload) {
96 this.isUSBConnected = true;
107 if (!this.onActiveCall) {
118 if (this.canUSBAlertDisplayed())
1111 else
1212 this.createUSBDashboard();
1313 }
14@@ -2235,7 +2235,7 @@
14@@ -2308,7 +2308,7 @@ isUSBCableConnected: function() {
1515 if (this.updateAvailable)
1616 this.createUSBDashboard();
1717 else
  
1Name: Reset Options On Power Button Hold
2Version: 1.3.5-3
3Author: Jason Robitaille
4Description: On power button hold, it goes straight to the reset options, with airplaine mode added, and skips the swap-battery/shutdown prompt, (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
8@@ -2426,7 +2426,7 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index 6fdbb39..d92c748 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -2426,7 +2426,7 @@ showPowerOffAlert: function() {
96 var f = function(stageController){
107 stageController.pushScene('poweroffalert',this);
118 }.bind(this);
1111 appController.createStageWithCallback(params,f,'popupalert');
1212 }
1313 //Close the Storage Alert and create a USB dashboard.
14--- .orig/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
15+++ /usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
16@@ -1,5 +1,6 @@
17 <div class="system-notification power-off">
18 <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div>
19- <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div>
20+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Restart</div>
21+ <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div>
22 <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div>
23 </div>
24\ No newline at end of file
25--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
26+++ /usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
27@@ -7,7 +7,8 @@
14diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
15index 05ea355..abc4da1 100644
16--- a/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
17+++ b/usr/lib/luna/system/luna-systemui/app/controllers/poweroffalert-assistant.js
18@@ -7,7 +7,8 @@ var PoweroffalertAssistant = Class.create({
2819
2920 setup: function() {
3021 var flightMode = this.flightMode.bindAsEventListener(this);
2525 var cancel = this.cancel.bindAsEventListener(this);
2626 var launchAirplaneModeHelp = this.launchAirplaneModeHelp.bindAsEventListener(this);
2727 this.flightMode = this.barAssistant.getAirplaneMode();
28@@ -16,7 +17,8 @@
28@@ -16,8 +17,9 @@ var PoweroffalertAssistant = Class.create({
2929 else
3030 this.controller.get('flightmode').innerHTML = "<div class='info-icon' id='airplaneInfo' x-mojo-touch-feedback='immediate'></div>" + $L('Airplane Mode');
3131
3535+ this.controller.get('shutdown').addEventListener(Mojo.Event.tap, shutdown);
3636 this.controller.get('cancel').addEventListener(Mojo.Event.tap, cancel);
3737 this.controller.get('airplaneInfo').addEventListener(Mojo.Event.tap, launchAirplaneModeHelp);
38@@ -46,6 +48,16 @@
38
39@@ -46,6 +48,16 @@ var PoweroffalertAssistant = Class.create({
3940 this.controller.window.close();
4041 },
4142
5353 flightMode:function(event) {
5454
5555 var targetId = event.target.id;
56diff --git a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
57index dfb04c1..7ff0194 100644
58--- a/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
59+++ b/usr/lib/luna/system/luna-systemui/app/views/poweroffalert/poweroffalert-scene.html
60@@ -1,5 +1,6 @@
61 <div class="system-notification power-off">
62 <div class="palm-notification-button affirmative" x-mojo-tap-highlight="immediate" id='flightmode' x-mojo-loc=''></div>
63- <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='poweroff' x-mojo-loc=''>Power</div>
64+ <div class="palm-notification-button alternate" x-mojo-tap-highlight="immediate" id='restart' x-mojo-loc=''>Restart</div>
65+ <div class="palm-notification-button negative" x-mojo-tap-highlight="immediate" id='shutdown' x-mojo-loc=''>Shut Down</div>
66 <div class="palm-notification-button" x-mojo-tap-highlight="immediate" id='cancel' x-mojo-loc=''>Cancel</div>
67 </div>
68\ No newline at end of file
  
1diff --git a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
2index 3ba467f..108c335 100644
3--- a/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
4+++ b/usr/palm/applications/com.palm.app.phone/app/controllers/app-assistant.js
5@@ -193,20 +193,14 @@ AppAssistant.prototype.handleLaunch = function(params){
6 if(PalmSystem.isMinimal)
7 return
8 else
9- this.showDialpad();
10+ this.showCallLog(); // start with call log instead of dialpad
11 }
12 } else {
13
14 if (!(this.telephonyEventListener.isPendingOrActive())) {
15 if (this.initialLaunch === false) {
16 QDLogger.log( "handleLaunch", "no args, no calls: focusing stage");
17- var appControl = Mojo.Controller.getAppController();
18- var stageController = appControl.getStageController(this.stageName);
19-
20- if (!stageController) {
21- this.showDialpad();
22- }
23-
24+ this.showCallLog(); // just show call log here
25 this.focusStage();
26 } else {
27 QDLogger.log( "handleLaunch", "initial launch, so doing nothing");
28@@ -483,7 +477,7 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde
29 this.sceneStack.push(sceneName);
30 sc.pushScene({
31 "name": sceneName,
32- transition: Mojo.Transition.crossFade
33+ transition: Mojo.Transition.none // we don't need the transition
34 }, type);
35 }.bind(this);
36
37@@ -502,6 +496,9 @@ AppAssistant.prototype.showCallLog = function(contactId, number, type, keepHidde
38 if(type == 'missed')
39 stageController.delegateToSceneAssistant("updateMissedCalls")
40 stageController.activate();
41+ pushLogScene(stageController); // get back the the all calls list
42+ return;
43+ stageController.activate();
44 }
45 }
46 };
47@@ -718,7 +715,7 @@ AppAssistant.prototype.closePhoneStage = function() {
48 AppAssistant.prototype.hidePhoneStage = function(win) {
49 QDLogger.log("AppAssistant#hidePhoneStage");
50 win.PalmSystem.hide();
51- this.showDialpad(null, true /* keep hidden */);
52+ this.showCallLog("", "", "", true /* keep hidden */); // just in case; show call log here
53 this.hidden = true;
54 }
55
56@@ -752,14 +749,7 @@ AppAssistant.prototype.popActiveCall = function(params) {
57 if (stageController !== undefined) {
58 this.sceneStack = [];
59 stageController.popScenesTo();
60- if (this.backToCalllog) {
61- if(this.calllogType == "missed")
62- this.showCallLog("", "", "missed", true);
63- else
64- this.showCallLog("", "", "", true);
65- }
66- else
67- this.showDialpad(null, true);
68+ this.showCallLog("", "", "", true); // return to call log
69 } else {
70 QDLogger.log( "popActiveCall", "undefined stage");
71 }
  
11diff --git a/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js b/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js
2index 4431398..79ec5cf 100644
2index 4431398..09ec6c3 100644
33--- a/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js
44+++ b/usr/palm/applications/com.palm.app.email/app/controllers/email-dashboard-assistant.js
5@@ -39,8 +39,10 @@ var EmailDashboardAssistant = Class.create({
6
7 this.controller.sceneElement.stopObserving(Mojo.Event.tap, this.boundTapHandler);
8 // turn off throbber
9+ /*
10 Mojo.Log.info('Turning off throbber');
11 this.controller.stageController.indicateNewContent(false);
12+ */
13 },
14
15 tapHandler: function(event) {
16@@ -79,8 +81,10 @@ var EmailDashboardAssistant = Class.create({
5@@ -78,9 +78,6 @@ var EmailDashboardAssistant = Class.create({
6 var content;
177 var latestDetails;
188
19 // turn on throbber
20+ /*
21 Mojo.Log.info('Turning on throbber for new email notification');
22 this.controller.stageController.indicateNewContent(true);
23+ */
9- // turn on throbber
10- Mojo.Log.info('Turning on throbber for new email notification');
11- this.controller.stageController.indicateNewContent(true);
2412
2513 // update notifications if they are changed.
2614 this.notifications = notificationInfo;
  
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
2index 6fdbb39..b0ad34c 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/bar-assistant.js
5@@ -1660,6 +1660,8 @@ handlePowerNotifications: function(payload) {
6 this.isCharging = true;
7 }.bind(this));
8
9+ this.setForAutoOff();
10+
11 if (this.isCharging) {
12 Mojo.Log.info("SystemUI- Charger Notification "+ this.isCharging + " Last battery level "+ this.lastBatteryLevel);
13 if(this.batteryLevel == 100)
14@@ -1692,6 +1694,66 @@ handlePowerNotifications: function(payload) {
15 }
16 },
17
18+setForAutoOff: function() {
19+ if(this.powerSource['inductive']==true) {
20+ this.controller.serviceRequest('palm://com.palm.display/control', {
21+ method: 'getProperty',
22+ parameters: {
23+ properties: ["onWhenConnected"]
24+ },
25+ onSuccess: function(payload) {
26+ if(payload.onWhenConnected) {
27+ this.getAutoOffTimeout(
28+ function(response) {
29+ if(response.timeout!=604800) {
30+ this.setAutoOffCookie(response.timeout);
31+ this.setAutoOffTimeout(604800);
32+ }
33+ }.bind(this)
34+ );
35+ }
36+ }.bind(this)
37+ });
38+ } else {
39+ var timeout = this.getAutoOffCookie();
40+ if(timeout.seconds != 604800) {
41+ this.setAutoOffTimeout(timeout.seconds);
42+ this.setAutoOffCookie(604800);
43+ }
44+ }
45+},
46+
47+getAutoOffCookie: function() {
48+ var cookie = new Mojo.Model.Cookie("auto-off");
49+ var val = cookie.get();
50+ if(!val) {
51+ val = {seconds:604800};
52+ cookie.put(val);
53+ }
54+ return val;
55+},
56+
57+setAutoOffCookie: function(value) {
58+ var cookie = new Mojo.Model.Cookie("auto-off");
59+ cookie.put({seconds:value});
60+},
61+
62+getAutoOffTimeout: function(callback) {
63+ this.controller.serviceRequest('palm://com.palm.display/control', {
64+ method: 'getProperty',
65+ parameters:{properties:['timeout']},
66+ onSuccess: callback
67+ });
68+},
69+
70+setAutoOffTimeout: function(value) {
71+ this.controller.serviceRequest('palm://com.palm.display/control', {
72+ method: 'setProperty',
73+ parameters:{timeout:value}
74+ });
75+
76+},
77+
78 handleCriticalPowerNotifications: function(payload) {
79 if(payload.cause) {
80 Mojo.Log.error("SystemUI - Battery Level is critical. Shutting down the phone ");
181diff --git a/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js b/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js
2index 86eb675..0683764 100644
82index 86eb675..1e1c0a3 100644
383--- a/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js
484+++ b/usr/palm/applications/com.palm.app.screenlock/app/controllers/securityconfig-assistant.js
585@@ -19,6 +19,10 @@ var SecurityconfigAssistant = Class.create({
118118+ toggleautoOffCharging: function(event) {
119119+ if(!event)
120120+ return;
121+ this.setAutoOffCharging(event.value);
121+ this.setAutoOffCharging();
122122+ },
123123+
124124+ setAutoOffCharging: function(value) {
125125+ this.controller.serviceRequest('palm://com.palm.display/control', {
126126+ method: 'setProperty',
127127+ parameters: {
128+ onWhenConnected: !value
128+ onWhenConnected: !this.autoOffChargingtoggleModel.value
129129+ }
130130+ });
131131+ },
137137+ properties: ["onWhenConnected"]
138138+ },
139139+ onSuccess: function(payload) {
140+ this.autoOffChargingToggleModel.value = !payload.onWhenConnected;
140+ this.autoOffChargingtoggleModel.value = !payload.onWhenConnected;
141141+ this.controller.modelChanged(this.autoOffChargingtoggleModel);
142142+ }.bind(this)
143143+ });
  
1Name: Data Toggle in Device Menu
2Version: 1.2.1-1
3Author: Jason Robitaille
4Description: Adds a data connection (ex. EVDO/1X) toggle to the device menu (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
8@@ -122,2 +122,3 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
2index 2a42b1a..4d0299b 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
5@@ -120,6 +120,7 @@ var DevicemenuAssistant = Class.create({
6 this.controller.get('dm_bluetooth').addEventListener(Mojo.Event.tap, this.togglebluetoothList.bindAsEventListener(this));
7 this.controller.get('wifi_radio').addEventListener(Mojo.Event.tap, this.toggleWifiRadio.bindAsEventListener(this));
98 this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this));
109+ this.controller.get('dm_data').addEventListener(Mojo.Event.tap, this.toggleData.bindAsEventListener(this));
1110 this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this));
12@@ -889,6 +890,25 @@
11 this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this));
12 this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this));
13@@ -920,6 +921,25 @@ var DevicemenuAssistant = Class.create({
1314 this.controller.modelChanged(this.spinnerModel);
1415 },
1516
3636 close: function() {
3737
3838 if (this.btdrawer.mojo.getOpenState()) {
39@@ -941,6 +961,18 @@
39@@ -972,6 +992,18 @@ var DevicemenuAssistant = Class.create({
4040 //this.controller.stageController.deactivate();
4141 }
4242 else {
5555 this.isVisible = true;
5656 var date = new Date();
5757 this.controller.get('dm_date').innerHTML = Mojo.Format.formatDate(date,{date:'EEE '}) + Mojo.Format.formatDate(date,{date:'long'});
58--- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
59+++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
60@@ -89,6 +89,15 @@
61
62 </div>
58diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
59index 933094e..07274c3 100644
60--- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
61+++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
62@@ -94,6 +94,15 @@
6363
64+ <div class="palm-section-divider"></div>
65+
64 <div class="palm-section-divider"></div>
65
6666+ <div class="palm-row" id="dm_data" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
6767+ <div class="title truncating-text">
6868+ <div class="label right" id="dataStatus">&nbsp;</div>
7070+ </div>
7171+ </div></div>
7272+
73 <div class="palm-section-divider"></div>
74
73+ <div class="palm-section-divider"></div>
74+
7575 <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
76 <div id="dm_airplanemode_status" class="title truncating-text">
77 </div>
  
1Name: Flashlight in Device Menu
2Version: 1.3.5-1
3Author: Jason Robitaille
4Description: Adds a flashlight toggle to the device menu. Requires SysToolsMgr Service. (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
8@@ -122,6 +122,7 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
2index 2a42b1a..efbfca6 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
5@@ -122,6 +122,7 @@ var DevicemenuAssistant = Class.create({
96 this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this));
107 this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this));
118 this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this));
1010 this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this));
1111 //Close the App because this is a first launch.
1212 this.toggleDeviceMenu();
13@@ -177,6 +178,29 @@
14 }
13@@ -178,6 +179,31 @@ var DevicemenuAssistant = Class.create({
1514 this.apModeInProgress = false;
1615 },
17+
16
1817+ toggleFlash: function() {
1918+ if(this.flashVal==0) {
2019+ this.flashVal = 100;
2525+ parameters: {
2626+ value: this.flashVal
2727+ },
28+ onSuccess: function() { this.setFlashLabel(); }.bind(this)
28+ onSuccess: function() {
29+ this.setFlashLabel();
30+ }.bind(this)
2931+ });
3032+ },
3133+
3838+ this.controller.get('flashStatus').innerText = "On";
3939+ }
4040+ },
41
41+
4242 toggleBTRadio: function(event) {
4343 if(RadioState.get('bluetooth')) {
44@@ -956,6 +980,16 @@
44 BtService.radiooff(null,null);
45@@ -987,6 +1013,19 @@ var DevicemenuAssistant = Class.create({
4546 );
4647 }
4748
5353+ onSuccess: function(response) {
5454+ this.flashVal = response.value;
5555+ this.setFlashLabel();
56+ }.bind(this),
57+ onFailure: function(err) {
58+ this.controller.get('flashStatus').innerText = "Error";
5659+ }.bind(this)
5760+ });
5861+
5962 //animate the scrim onto the scene and then the submenu
6063 Mojo.Animation.animateStyle(this.scrim, 'opacity', 'bezier', {
6164 from: 0,
62--- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
63+++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
64@@ -89,6 +89,15 @@
65
66 </div>
65diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
66index 933094e..9cfb512 100644
67--- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
68+++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
69@@ -94,6 +94,15 @@
6770
68+ <div class="palm-section-divider"></div>
69+
71 <div class="palm-section-divider"></div>
72
7073+ <div class="palm-row" id="dm_flash"><div class="palm-row-wrapper">
7174+ <div class="title truncating-text">
7275+ <div class="label right" id="flashStatus">&nbsp;</div>
7777+ </div>
7878+ </div></div>
7979+
80 <div class="palm-section-divider"></div>
81
80+ <div class="palm-section-divider"></div>
81+
8282 <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
83 <div id="dm_airplanemode_status" class="title truncating-text">
84 </div>
  
1Name: GPS in Device Menu
2Version: 1.2.1-1
3Author: Jason Robitaille
4Description: Adds a GPS toggle to the device menu (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
8@@ -122,6 +122,7 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
2index 2a42b1a..508c795 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
5@@ -122,6 +122,7 @@ var DevicemenuAssistant = Class.create({
96 this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this));
107 this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this));
118 this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this));
1010 this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this));
1111 //Close the App because this is a first launch.
1212 this.toggleDeviceMenu();
13@@ -177,6 +178,25 @@
14 }
13@@ -178,6 +179,25 @@ var DevicemenuAssistant = Class.create({
1514 this.apModeInProgress = false;
1615 },
17+
16
1817+ toggleGPS: function(event) {
1918+ this.gpsEnabled = !this.gpsEnabled;
2019+ this.controller.serviceRequest('palm://com.palm.location', {
3232+ this.controller.get('gpsStatus').innerText = "Off";
3333+ }
3434+ },
35
35+
3636 toggleBTRadio: function(event) {
3737 if(RadioState.get('bluetooth')) {
38@@ -956,6 +976,15 @@
38 BtService.radiooff(null,null);
39@@ -987,6 +1007,15 @@ var DevicemenuAssistant = Class.create({
3940 );
4041 }
4142
5252 //animate the scrim onto the scene and then the submenu
5353 Mojo.Animation.animateStyle(this.scrim, 'opacity', 'bezier', {
5454 from: 0,
55--- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
56+++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
57@@ -89,6 +89,15 @@
58
59 </div>
55diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
56index 933094e..ba400f6 100644
57--- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
58+++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
59@@ -94,6 +94,15 @@
6060
61+ <div class="palm-section-divider"></div>
62+
61 <div class="palm-section-divider"></div>
62
6363+ <div class="palm-row" id="dm_gps" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
6464+ <div class="title truncating-text">
6565+ <div class="label right" id="gpsStatus">&nbsp;</div>
6767+ </div>
6868+ </div></div>
6969+
70 <div class="palm-section-divider"></div>
71
70+ <div class="palm-section-divider"></div>
71+
7272 <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
73 <div id="dm_airplanemode_status" class="title truncating-text">
74 </div>
  
1Name: Roam-Only in Device Menu
2Version: 1.2.1-1
3Author: Jason Robitaille
4Description: Adds a roam-only toggle to the device menu (MIT license)
5
6--- .orig/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
7+++ /usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
8@@ -125,3 +125,4 @@
1diff --git a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
2index 2a42b1a..eff6bd9 100644
3--- a/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
4+++ b/usr/lib/luna/system/luna-systemui/app/controllers/devicemenu-assistant.js
5@@ -123,6 +123,7 @@ var DevicemenuAssistant = Class.create({
6 this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this));
7 this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this));
98 this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this));
109+ this.controller.get('dm_roam').addEventListener(Mojo.Event.tap, this.toggleRoam.bindAsEventListener(this));
1110 //Close the App because this is a first launch.
1211 this.toggleDeviceMenu();
13@@ -222,6 +223,30 @@
12 },
13@@ -230,6 +231,30 @@ var DevicemenuAssistant = Class.create({
1414 this.btdeviceList.clear();
1515 },
1616
4141 /*
4242 * Handles the Bluetooth Device connect or disconnect when tapped on the device.
4343 */
44@@ -944,2 +969,10 @@
44@@ -973,6 +998,14 @@ var DevicemenuAssistant = Class.create({
45 }
46 else {
4547 this.isVisible = true;
4648+ this.controller.serviceRequest('palm://com.palm.telephony', {
4749+ method: 'roamModeQuery',
5454+ }.bind(this)
5555+ });
5656 var date = new Date();
57--- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
58+++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
59@@ -89,6 +89,15 @@
60
61 </div>
57 this.controller.get('dm_date').innerHTML = Mojo.Format.formatDate(date,{date:'EEE '}) + Mojo.Format.formatDate(date,{date:'long'});
58 this.controller.stageController.activate();
59diff --git a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
60index 933094e..968977b 100644
61--- a/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
62+++ b/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html
63@@ -94,6 +94,15 @@
6264
63+ <div class="palm-section-divider"></div>
64+
65 <div class="palm-section-divider"></div>
66
6567+ <div class="palm-row" id="dm_roam" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
6668+ <div class="title truncating-text">
6769+ <div class="label right" id="roamStatus">&nbsp;</div>
7171+ </div>
7272+ </div></div>
7373+
74 <div class="palm-section-divider"></div>
75
74+ <div class="palm-section-divider"></div>
75+
7676 <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper">
77 <div id="dm_airplanemode_status" class="title truncating-text">
78 </div>
  
1Name: YouTube URL Copy
2Version: 1.2.1-1
3Author: Jason Robitaille
4Description: Adds the ability to copy a video's URL to the clipboard in the YouTube app (MIT license)
5
6--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
7+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
8@@ -76,7 +76,11 @@
9 params: {messageText: this.video.shareLink}
1diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
2index 99701ce..cccfde7 100644
3--- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
4+++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
5@@ -77,6 +77,10 @@ var VideoAssistant = Class.create({
106 }})
117 event.stop(event);
12- }
13+ }
8 }
149+ else if (event.command == 'clipboard' && this.video.shareLink && this.video.shareLink != "") {
1510+ this.controller.stageController.setClipboard(this.video.shareLink);
1611+ event.stop(event);
1313 else {
1414 AppAssistant.common.handleCommand(event);
1515 }
16@@ -92,7 +92,8 @@
16@@ -92,7 +96,8 @@ var VideoAssistant = Class.create({
1717 shareMenuModel: {label: $L('Share'),
1818 items: [
1919 {label: $L('Email'), command:'email'},
  
1Name: Hyperlinks in Description
2Version: 1.2.1-1
3Author: Jason Robitaille
4Description: Creates hyperlinks for text URLs in YouTube video descriptions (MIT license)
5
6--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
7+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
8@@ -20,6 +20,24 @@
1diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
2index 99701ce..d972344 100644
3--- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
4+++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
5@@ -20,6 +20,24 @@ var VideoAssistant = Class.create({
96 this.controller.setupWidget('share-menu', undefined, this.shareMenuModel);
107 this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel);
118
2727 // render video details template
2828 var info = Mojo.View.render({object: this.video, template: 'video/video-info'});
2929 $('video_info').update(info);
30--- .orig/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html
31+++ /usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html
30diff --git a/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html b/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html
31index c2f1d9c..f33a4dc 100644
32--- a/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html
33+++ b/usr/palm/applications/com.palm.app.youtube/app/views/video/video-info.html
3234@@ -14,5 +14,5 @@
3335 <div id="videoName" class="video-name">#{title}</div>
3436
  
1Name: YouTube Video Downloads
2Version: 1.3.5-2
3Author: Jason Robitaille
4Description: Adds a download option for videos in the YouTube app (MIT license)
5
6--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
7+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
8@@ -16,6 +16,8 @@
1diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
2index 99701ce..15c6f66 100644
3--- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
4+++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
5@@ -16,6 +16,8 @@ var VideoAssistant = Class.create({
96 this.cmdMenuModel = {items: [{label: $L('More'), submenu:'more-menu'},
107 {label: $L('Share'), submenu:'share-menu'}]};
118
1111 this.controller.setupWidget('more-menu', undefined, this.moreMenuModel);
1212 this.controller.setupWidget('share-menu', undefined, this.shareMenuModel);
1313 this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel);
14@@ -53,6 +55,53 @@
14@@ -53,6 +55,53 @@ var VideoAssistant = Class.create({
1515 }
1616 event.stop(event);
1717 }
6565 else if (event.command == 'related') {
6666 if (this.video.related_url && this.video.related_url != "") {
6767 Mojo.Controller.stageController.pushScene("search", this.video.related_url, "related");
68@@ -86,7 +135,8 @@
68@@ -86,7 +135,8 @@ var VideoAssistant = Class.create({
6969 moreMenuModel: {label: $L('More'),
7070 items: [
7171 {label: $L('More from This Author'), command:'more'},
  
1Name: YouTube Video Downloads
2Version: 1.3.5-2
3Author: Jason Robitaille
4Description: Adds a download option for videos in the YouTube app (MIT license)
5
6--- .orig/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
7+++ /usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
8@@ -16,6 +16,8 @@
1diff --git a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
2index 99701ce..278334a 100644
3--- a/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
4+++ b/usr/palm/applications/com.palm.app.youtube/app/controllers/video-assistant.js
5@@ -16,6 +16,8 @@ var VideoAssistant = Class.create({
96 this.cmdMenuModel = {items: [{label: $L('More'), submenu:'more-menu'},
107 {label: $L('Share'), submenu:'share-menu'}]};
118
1111 this.controller.setupWidget('more-menu', undefined, this.moreMenuModel);
1212 this.controller.setupWidget('share-menu', undefined, this.shareMenuModel);
1313 this.controller.setupWidget(Mojo.Menu.commandMenu, {menuClass: "no-fade"}, this.cmdMenuModel);
14@@ -53,6 +55,53 @@
14@@ -53,6 +55,53 @@ var VideoAssistant = Class.create({
1515 }
1616 event.stop(event);
1717 }
6565 else if (event.command == 'related') {
6666 if (this.video.related_url && this.video.related_url != "") {
6767 Mojo.Controller.stageController.pushScene("search", this.video.related_url, "related");
68@@ -86,7 +135,8 @@
68@@ -86,7 +135,8 @@ var VideoAssistant = Class.create({
6969 moreMenuModel: {label: $L('More'),
7070 items: [
7171 {label: $L('More from This Author'), command:'more'},