Commit f5f2e70120cc2f778698b58eb8febadcfaf0fd75
- Diff rendering mode:
- inline
- side by side
|   | |||
| 1 | Name: Add Priority Discard Btns | ||
| 2 | Version: 1.2.1-12120 | ||
| 3 | Author: mamouton | ||
| 4 | Description: This will place a high priority icon and a discard message icon at the bottom of your current message. Special thanks to Tibfib for adding the confirmation for the discard message and removing the options from the menu area. | ||
| 5 | |||
| 1 | 6 | --- .orig/usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js | |
| 2 | 7 | +++ /usr/palm/applications/com.palm.app.email/app/controllers/compose-assistant.js | |
| 3 | @@ -80,7 +80,9 @@ | ||
| 8 | @@ -79,6 +79,7 @@ | ||
| 9 | visible: true, | ||
| 4 | 10 | menuClass: 'palm-white', | |
| 5 | 11 | items: [ | |
| 12 | + {label:$L('Priority'), icon:'priority', command:'priority'}, | ||
| 6 | 13 | {label:$L('Attach'), icon:'attach', command:'attach'}, | |
| 14 | {label:$L('Send'), icon:'send', command:'send'} | ||
| 15 | ]}; | ||
| 16 | @@ -80,7 +81,8 @@ | ||
| 17 | menuClass: 'palm-white', | ||
| 18 | items: [ | ||
| 19 | {label:$L('Attach'), icon:'attach', command:'attach'}, | ||
| 7 | 20 | - {label:$L('Send'), icon:'send', command:'send'} | |
| 8 | + {label:$L('Priority'), icon:'priority', command:'priority'}, | ||
| 9 | + {label:$L('Delete'),icon:'delete', command:'cancel'}, | ||
| 10 | + {label:('Send'), icon:'send', command:'send'} | ||
| 21 | + {label:('Send'), icon:'send', command:'send'}, | ||
| 22 | + {label:$L('Delete'),icon:'delete', command:'cancel'} | ||
| 11 | 23 | ]}; | |
| 12 | 24 | ||
| 13 | 25 | this.draftIsDirty = false; | |
| 26 | @@ -89,8 +91,8 @@ | ||
| 27 | this.appMenuModel = { | ||
| 28 | visible:true, | ||
| 29 | items: [ | ||
| 30 | - this.priorityFlagMenuItem, | ||
| 31 | - {label:$L('Discard Message'), command:'cancel'}, | ||
| 32 | + //this.priorityFlagMenuItem, | ||
| 33 | + //{label:$L('Discard Message'), command:'cancel'}, | ||
| 34 | {label:$L('Save as Draft'), command:'save', disabledProperty:true } | ||
| 35 | ]}; | ||
| 36 | this.controller.setupWidget(Mojo.Menu.appMenu, {richTextEditMenu: true}, this.appMenuModel); | ||
| 37 | @@ -185,7 +187,8 @@ | ||
| 38 | } | ||
| 39 | |||
| 40 | // Delayed a little, since we want the header part of render as quickly as possible | ||
| 41 | - ComposeAssistant.onLoad.defer(this.controller, this.email); | ||
| 42 | +ComposeAssistant.onLoad.defer(this.controller, this.email); | ||
| 43 | +this.controller.window.PalmSystem.setWindowOrientation("free"); | ||
| 44 | }, | ||
| 45 | |||
| 46 | cleanup: function() { | ||
| 47 | @@ -236,7 +239,15 @@ | ||
| 48 | break; | ||
| 49 | |||
| 50 | case 'cancel': | ||
| 51 | - this.cancelCompose(); | ||
| 52 | + this.controller.showAlertDialog({ | ||
| 53 | + onChoose: function(value) {if (value == 'yes') {this.cancelCompose();}}, | ||
| 54 | + title: $L("Discard this Draft?"), | ||
| 55 | + message: $L("This cannot be undone"), | ||
| 56 | + choices:[ | ||
| 57 | + {label:$L('Yes'), value:"yes", type:'negative'}, | ||
| 58 | + {label:$L("No"), value:"no", type: 'dismiss'} | ||
| 59 | + ] | ||
| 60 | + }); | ||
| 61 | break; | ||
| 62 | |||
| 63 | case 'priority': |
|   | |||
| 1 | Copyright (c) 2009 VeeDubb65 <mail@stevecoonsphoto.com> | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person | ||
| 4 | obtaining a copy of this software and associated documentation | ||
| 5 | files (the "Software"), to deal in the Software without | ||
| 6 | restriction, including without limitation the rights to use, | ||
| 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 8 | copies of the Software, and to permit persons to whom the | ||
| 9 | Software is furnished to do so, subject to the following | ||
| 10 | conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be | ||
| 13 | included in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | Causes the Pre to be recognized as a mass storage media player when connected to a linux desktop, without spoofing an ipod device. | ||
| 2 | Compatible with Banshee, Ryhthmbox, and several other open-source media players. | ||
| 3 | |||
| 4 | Works in both USB mode, and Media Sync mode. | ||
| 5 | |||
| 6 | Index: /media/internal/.is_audio_player | ||
| 7 | =================================================================== | ||
| 8 | --- /dev/null | ||
| 9 | +++ /media/internal/.is_audio_player | ||
| 10 | @@ -0,0 +1,3 @@ | ||
| 11 | +name=PalmPre | ||
| 12 | +audio_folders=Music/, AmazonMP3/, Videos/ | ||
| 13 | +output_formats=audio/mp3,audio/aac,video/mp4,video/quicktime,video/mp4-generic,video/mpeg4,application/sdp |
|   | |||
| 1 | Copyright (c) 2009 wtgreen <wt.green@bigfoot.com> | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person | ||
| 4 | obtaining a copy of this software and associated documentation | ||
| 5 | files (the "Software"), to deal in the Software without | ||
| 6 | restriction, including without limitation the rights to use, | ||
| 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 8 | copies of the Software, and to permit persons to whom the | ||
| 9 | Software is furnished to do so, subject to the following | ||
| 10 | conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be | ||
| 13 | included in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | Adds button to answer call via speaker phone | ||
| 2 | Index: /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js | ||
| 3 | =================================================================== | ||
| 4 | --- .orig/usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js | ||
| 5 | +++ /usr/palm/applications/com.palm.app.phone/app/controllers/incomingcall-assistant.js | ||
| 6 | @@ -336,6 +336,7 @@ var IncomingcallAssistant = Class.create | ||
| 7 | && this.sliderOpen === false | ||
| 8 | && newSliderOpenState === true) { | ||
| 9 | this.answerCall(); | ||
| 10 | + TelephonyCommands.setAudioScenario("phone_back_speaker"); | ||
| 11 | } | ||
| 12 | this.sliderOpen = newSliderOpenState | ||
| 13 | } |
|   | |||
| 1 | Copyright (c) 2009 Eric Salo <salo@cs.stanford.edu> | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person | ||
| 4 | obtaining a copy of this software and associated documentation | ||
| 5 | files (the "Software"), to deal in the Software without | ||
| 6 | restriction, including without limitation the rights to use, | ||
| 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 8 | copies of the Software, and to permit persons to whom the | ||
| 9 | Software is furnished to do so, subject to the following | ||
| 10 | conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be | ||
| 13 | included in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | Moves the "Emergency Call" button to the middle of the lock screen and the "Cancel" button to the left of the zero. | ||
| 2 | Index: /usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
| 3 | =================================================================== | ||
| 4 | --- .orig/usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
| 5 | +++ /usr/palm/applications/com.palm.app.phone/app/views/pin/pin-scene.html | ||
| 6 | @@ -29,7 +29,7 @@ | ||
| 7 | <div class="key glassbutton nine" id="nine_button" x-mojo-touch-feedback="immediate"><div></div></div> | ||
| 8 | </div> | ||
| 9 | <div class="keypad-row last"> | ||
| 10 | - <div class="key glassbutton empty"><div></div></div> | ||
| 11 | + <div class="key glassbutton empty" id="cancel_pin" x-mojo-touch-feedback="immediate"><div class="patch-cancel" x-mojo-loc=''><br />Cancel</div></div> | ||
| 12 | <div class="key glassbutton zero" id="zero_button" x-mojo-touch-feedback="immediate"><div></div></div> | ||
| 13 | <div class="key glassbutton pin-backspace" id="backspace" x-mojo-touch-feedback="immediate"><div></div></div> | ||
| 14 | </div> | ||
| 15 | @@ -39,9 +39,6 @@ | ||
| 16 | <div id="emergency_pin" x-mojo-touch-feedback="immediate" class="pin-menu-button half" x-mojo-loc=''> | ||
| 17 | Emergency Call | ||
| 18 | </div> | ||
| 19 | - <div id="cancel_pin" x-mojo-touch-feedback="immediate" class="pin-menu-button half" x-mojo-loc=''> | ||
| 20 | - Cancel | ||
| 21 | - </div> | ||
| 22 | </div> | ||
| 23 | </div> | ||
| 24 | </div> | ||
| 25 | Index: /usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
| 26 | =================================================================== | ||
| 27 | --- .orig/usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
| 28 | +++ /usr/palm/applications/com.palm.app.phone/stylesheets/pinpad.css | ||
| 29 | @@ -69,6 +69,12 @@ div.pin-key.pin-glassbutton { | ||
| 30 | bottom: 0px; | ||
| 31 | width: 320px; | ||
| 32 | height: 60px; | ||
| 33 | + margin-left: 80px; | ||
| 34 | +} | ||
| 35 | + | ||
| 36 | +.patch-cancel { | ||
| 37 | + font-size: 16px; | ||
| 38 | + line-height: 15px; | ||
| 39 | } | ||
| 40 | |||
| 41 | .pin-menu-button { |
|   | |||
| 1 | Copyright (c) 2009 Jason Robitaille | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person | ||
| 4 | obtaining a copy of this software and associated documentation | ||
| 5 | files (the "Software"), to deal in the Software without | ||
| 6 | restriction, including without limitation the rights to use, | ||
| 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 8 | copies of the Software, and to permit persons to whom the | ||
| 9 | Software is furnished to do so, subject to the following | ||
| 10 | conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be | ||
| 13 | included in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | Name: Brightness in Device Menu | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: Adds screen brightness control 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 | @@ -32,6 +32,8 @@ | ||
| 9 | var msg = $L("Battery: #{batlevel}"); | ||
| 10 | this.controller.get('dm_battery').innerHTML = new Template(msg).evaluate({"batlevel": Mojo.Format.formatPercent(this.barAssistant.getBatteryLevel())}); | ||
| 11 | |||
| 12 | + this.controller.setupWidget('brightSlider', {minValue: 0, maxValue: 100}, this.brightModel = { value: 50}); | ||
| 13 | + | ||
| 14 | this.modesModel = {scrollbars: false, mode: "vertical"}, | ||
| 15 | this.controller.setupWidget('devicescroller', {}, this.modesModel); | ||
| 16 | this.menuscroller = this.controller.get('devicescroller'); | ||
| 17 | @@ -37,6 +39,7 @@ | ||
| 18 | this.menuscroller = this.controller.get('devicescroller'); | ||
| 19 | |||
| 20 | this.drawerModel = {myOpenProperty:false}; | ||
| 21 | + this.controller.setupWidget('brightdetails', {modelProperty:'myOpenProperty'}, this.drawerModel); | ||
| 22 | this.controller.setupWidget('wifidetails', {modelProperty:'myOpenProperty'}, this.drawerModel); | ||
| 23 | this.controller.setupWidget('btdetails', {modelProperty:'myOpenProperty'}, this.drawerModel); | ||
| 24 | this.wifidrawer = this.controller.get('wifidetails'); | ||
| 25 | @@ -113,6 +116,8 @@ | ||
| 26 | }, | ||
| 27 | |||
| 28 | activate: function() { | ||
| 29 | + this.controller.get('brightSlider').addEventListener(Mojo.Event.propertyChange, this.handleBrightSlider.bindAsEventListener(this)); | ||
| 30 | + this.controller.get('brightRow').addEventListener(Mojo.Event.tap, this.handleBrightTap.bindAsEventListener(this)); | ||
| 31 | this.controller.get('dm_airplanemode').addEventListener(Mojo.Event.tap, this.toggleAirplaneMode.bindAsEventListener(this)); | ||
| 32 | this.controller.get('wifilist').addEventListener(Mojo.Event.listTap,this.handleWiFiTap.bindAsEventListener(this)); | ||
| 33 | this.controller.get('btlist').addEventListener(Mojo.Event.listTap,this.handleBTTap.bindAsEventListener(this)); | ||
| 34 | @@ -126,6 +131,18 @@ | ||
| 35 | //Close the App because this is a first launch. | ||
| 36 | this.toggleDeviceMenu(); | ||
| 37 | }, | ||
| 38 | + | ||
| 39 | + handleBrightTap: function(event) { | ||
| 40 | + this.controller.get('brightdetails').mojo.setOpenState(!this.controller.get('brightdetails').mojo.getOpenState()); | ||
| 41 | + }, | ||
| 42 | + | ||
| 43 | + handleBrightSlider: function(event) { | ||
| 44 | + this.controller.serviceRequest('palm://com.palm.display/control', { | ||
| 45 | + method: 'setProperty', | ||
| 46 | + parameters:{maximumBrightness:Math.round(event.value)} | ||
| 47 | + }); | ||
| 48 | + this.controller.get('dm_brightness').innerText = "Brightness: " + Math.round(event.value) + "%"; | ||
| 49 | + }, | ||
| 50 | |||
| 51 | cleanup: function() { | ||
| 52 | Mojo.Log.error("Device Menu - Clean up called"); | ||
| 53 | @@ -900,7 +917,8 @@ | ||
| 54 | this.clearWiFiList(); | ||
| 55 | this.controller.hideWidgetContainer(this.controller.get('wifidetails')); | ||
| 56 | this.wifidrawer.mojo.setOpenState(false); | ||
| 57 | } | ||
| 58 | + this.controller.get('brightdetails').mojo.setOpenState(false); | ||
| 59 | //this.isVisible = false; | ||
| 60 | if(this.isVisible){ | ||
| 61 | this.toggleDeviceMenu(); | ||
| 62 | @@ -944,6 +962,20 @@ | ||
| 63 | this.isVisible = true; | ||
| 64 | var date = new Date(); | ||
| 65 | this.controller.get('dm_date').innerHTML = Mojo.Format.formatDate(date,{date:'EEE '}) + Mojo.Format.formatDate(date,{date:'long'}); | ||
| 66 | + this.controller.serviceRequest('palm://com.palm.display/control', { | ||
| 67 | + method: 'getProperty', | ||
| 68 | + parameters:{properties:['maximumBrightness']}, | ||
| 69 | + onSuccess: function(response) { | ||
| 70 | + if(response.maximumBrightness != undefined) { | ||
| 71 | + this.brightModel.value = parseInt(response.maximumBrightness); | ||
| 72 | + this.controller.modelChanged(this.brightModel); | ||
| 73 | + this.controller.get('dm_brightness').innerText = "Brightness: " + response.maximumBrightness + "%"; | ||
| 74 | + } else { | ||
| 75 | + this.controller.get('dm_brightness').innerText = "Brightness: ??%"; | ||
| 76 | + } | ||
| 77 | + }.bind(this) | ||
| 78 | + }); | ||
| 79 | + | ||
| 80 | this.controller.stageController.activate(); | ||
| 81 | |||
| 82 | var animateDialog = function(){ | ||
| 83 | --- .orig/usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 84 | +++ /usr/lib/luna/system/luna-systemui/app/views/devicemenu/devicemenu-scene.html | ||
| 85 | @@ -23,8 +23,21 @@ | ||
| 86 | |||
| 87 | <div class="palm-row"><div class="palm-row-wrapper"> | ||
| 88 | <div id="dm_battery" class="title dim"></div> | ||
| 89 | </div></div> | ||
| 90 | |||
| 91 | + <div class="palm-section-divider"> | ||
| 92 | + </div> | ||
| 93 | + | ||
| 94 | + <div class="palm-row" id="brightRow" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | ||
| 95 | + <div id="dm_brightness" class="title"></div> | ||
| 96 | + </div></div> | ||
| 97 | + | ||
| 98 | + <div id="brightdetails" x-mojo-element="Drawer"> | ||
| 99 | + <div class="palm-row first"><div class="palm-row-wrapper"> | ||
| 100 | + <div x-mojo-element="Slider" id="brightSlider" style="padding-top: 30px; height: 50px;"></div> | ||
| 101 | + </div></div> | ||
| 102 | + </div> | ||
| 103 | + | ||
| 104 | <div class="palm-section-divider"> | ||
| 105 | </div> | ||
| 106 |
|   | |||
| 1 | Copyright (c) 2009 Jason Robitaille | ||
| 2 | |||
| 3 | Permission is hereby granted, free of charge, to any person | ||
| 4 | obtaining a copy of this software and associated documentation | ||
| 5 | files (the "Software"), to deal in the Software without | ||
| 6 | restriction, including without limitation the rights to use, | ||
| 7 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 8 | copies of the Software, and to permit persons to whom the | ||
| 9 | Software is furnished to do so, subject to the following | ||
| 10 | conditions: | ||
| 11 | |||
| 12 | The above copyright notice and this permission notice shall be | ||
| 13 | included in all copies or substantial portions of the Software. | ||
| 14 | |||
| 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 16 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 17 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 18 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 19 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 20 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 21 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 22 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | Name: GPS in Device Menu | ||
| 2 | Version: 1.2.1-1 | ||
| 3 | Author: Jason Robitaille | ||
| 4 | Description: 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 @@ | ||
| 9 | this.controller.get('bt_radio').addEventListener(Mojo.Event.tap, this.toggleBTRadio.bindAsEventListener(this)); | ||
| 10 | this.controller.get('bt_pref').addEventListener(Mojo.Event.tap,this.handleBluetoothLaunch.bindAsEventListener(this)); | ||
| 11 | this.controller.get('wifi_pref').addEventListener(Mojo.Event.tap,this.handleWiFiLaunch.bindAsEventListener(this)); | ||
| 12 | + this.controller.get('dm_gps').addEventListener(Mojo.Event.tap, this.toggleGPS.bindAsEventListener(this)); | ||
| 13 | this.controller.get('scrim').addEventListener(Mojo.Event.tap, this.toggleDeviceMenu.bindAsEventListener(this)); | ||
| 14 | //Close the App because this is a first launch. | ||
| 15 | this.toggleDeviceMenu(); | ||
| 16 | @@ -177,6 +178,25 @@ | ||
| 17 | } | ||
| 18 | this.apModeInProgress = false; | ||
| 19 | }, | ||
| 20 | + | ||
| 21 | + toggleGPS: function(event) { | ||
| 22 | + this.gpsEnabled = !this.gpsEnabled; | ||
| 23 | + this.controller.serviceRequest('palm://com.palm.location', { | ||
| 24 | + method: 'setUseGps', | ||
| 25 | + parameters: { | ||
| 26 | + useGps: this.gpsEnabled | ||
| 27 | + } | ||
| 28 | + }); | ||
| 29 | + this.setGPSLabel(); | ||
| 30 | + }, | ||
| 31 | + | ||
| 32 | + setGPSLabel: function() { | ||
| 33 | + if(this.gpsEnabled) { | ||
| 34 | + this.controller.get('gpsStatus').innerText = "On"; | ||
| 35 | + } else { | ||
| 36 | + this.controller.get('gpsStatus').innerText = "Off"; | ||
| 37 | + } | ||
| 38 | + }, | ||
| 39 | |||
| 40 | toggleBTRadio: function(event) { | ||
| 41 | if(RadioState.get('bluetooth')) { | ||
| 42 | @@ -956,6 +976,15 @@ | ||
| 43 | ); | ||
| 44 | } | ||
| 45 | |||
| 46 | + this.controller.serviceRequest('palm://com.palm.location', { | ||
| 47 | + method: 'getUseGps', | ||
| 48 | + parameters: {}, | ||
| 49 | + onSuccess: function(response) { | ||
| 50 | + this.gpsEnabled = response.useGps; | ||
| 51 | + this.setGPSLabel(); | ||
| 52 | + }.bind(this) | ||
| 53 | + }); | ||
| 54 | + | ||
| 55 | //animate the scrim onto the scene and then the submenu | ||
| 56 | Mojo.Animation.animateStyle(this.scrim, 'opacity', 'bezier', { | ||
| 57 | from: 0, | ||
| 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> | ||
| 63 | |||
| 64 | + <div class="palm-section-divider"></div> | ||
| 65 | + | ||
| 66 | + <div class="palm-row" id="dm_gps" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> | ||
| 67 | + <div class="title truncating-text"> | ||
| 68 | + <div class="label right" id="gpsStatus"> </div> | ||
| 69 | + <span x-mojo-loc=''>GPS</span> | ||
| 70 | + </div> | ||
| 71 | + </div></div> | ||
| 72 | + | ||
| 73 | <div class="palm-section-divider"></div> | ||
| 74 | |||
| 75 | <div id="dm_airplanemode" class="palm-row last menu-end" x-mojo-tap-highlight='momentary'><div class="palm-row-wrapper"> |
|   | |||
| 34 | 34 | //set up searchtermfield | |
| 35 | 35 | this.searchTermTextAttributes = { | |
| 36 | 36 | textReplacement:false, | |
| 37 | @@ -1284,6 +1295,229 @@ | ||
| 37 | @@ -1284,6 +1295,271 @@ | ||
| 38 | 38 | ApplicationService.launch('com.palm.app.browser', params); | |
| 39 | 39 | }, | |
| 40 | 40 | ||
| … | … | ||
| 57 | 57 | + message: s + " = " + result, | |
| 58 | 58 | + choices: [ { label: "OK", value: "ok" } ] | |
| 59 | 59 | + }); | |
| 60 | + }, | ||
| 61 | + noArguments: { | ||
| 62 | + appId: "com.palm.app.calculator" | ||
| 60 | 63 | + } | |
| 61 | 64 | + }, | |
| 62 | 65 | + "imdb": { | |
| 63 | 66 | + usage: "<i>query</i>", | |
| 64 | 67 | + description: "Find something on IMDB.com.", | |
| 65 | + url: "http://www.imdb.com/find?s=all&q=" | ||
| 68 | + url: "http://www.imdb.com/find?s=all&q=", | ||
| 69 | + noArguments: { | ||
| 70 | + url: "http://www.imdb.com/" | ||
| 71 | + } | ||
| 66 | 72 | + }, | |
| 67 | 73 | + "dict": { | |
| 68 | 74 | + usage: "<i>word</i>", | |
| 69 | 75 | + description: "Find a word on Dictionary.com.", | |
| 70 | + url: "http://m.reference.com/d/search.html?q=" | ||
| 76 | + url: "http://m.reference.com/d/search.html?q=", | ||
| 77 | + noArguments: { | ||
| 78 | + url: "http://m.reference.com/d/" | ||
| 79 | + } | ||
| 71 | 80 | + }, | |
| 72 | 81 | + "thes": { | |
| 73 | 82 | + usage: "<i>word</i>", | |
| 74 | 83 | + description: "Find a word on Thesaurus.com.", | |
| 75 | + url: "http://m.reference.com/t/search.html?q=" | ||
| 84 | + url: "http://m.reference.com/t/search.html?q=", | ||
| 85 | + noArguments: { | ||
| 86 | + url: "http://m.reference.com/t/" | ||
| 87 | + } | ||
| 76 | 88 | + }, | |
| 89 | + "ba": "beer", | ||
| 90 | + "beer": { | ||
| 91 | + usage: "<i>beer</i>", | ||
| 92 | + description: "Find a beer on BeerAdvocate.com.", | ||
| 93 | + url: "http://www.google.com/m/search?client=ms-palm-webOS&channel=iss&q=site:beeradvocate.com%20", | ||
| 94 | + noArguments: { | ||
| 95 | + url: "http://www.beeradvocate.com/" | ||
| 96 | + } | ||
| 97 | + }, | ||
| 98 | + "rb": "ratebeer", | ||
| 99 | + "ratebeer": { | ||
| 100 | + usage: "<i>beer</i>", | ||
| 101 | + description: "Find a beer on RateBeer.com.", | ||
| 102 | + url: "http://www.google.com/m/search?client=ms-palm-webOS&channel=iss&q=site:ratebeer.com%20", | ||
| 103 | + noArguments: { | ||
| 104 | + url: "http://www.ratebeer.com/" | ||
| 105 | + } | ||
| 106 | + }, | ||
| 107 | + "ebay": { | ||
| 108 | + usage: "<i>item</i>", | ||
| 109 | + description: "Find something on eBay.com.", | ||
| 110 | + url: "http://m.ebay.com/Pages/SearchResults.aspx?emvAD=320x320&emvcc=0&sv=", | ||
| 111 | + noArguments: { | ||
| 112 | + url: "http://m.ebay.com/" | ||
| 113 | + } | ||
| 114 | + }, | ||
| 77 | 115 | + "memo": "note", | |
| 78 | 116 | + "note": { | |
| 79 | 117 | + usage: "<i>text</i>", | |
| 80 | 118 | + description: "Quickly create a new note.", | |
| 81 | 119 | + appId: "com.palm.app.notes", | |
| 82 | + param: "newNoteText" | ||
| 120 | + param: "newNoteText", | ||
| 121 | + noArguments: { | ||
| 122 | + appId: "com.palm.app.notes" | ||
| 123 | + } | ||
| 83 | 124 | + }, | |
| 84 | 125 | + "m": "memo", | |
| 85 | 126 | + "n": "note", | |
| … | … | ||
| 128 | 128 | + "d": "dict", | |
| 129 | 129 | + "th": "thes", | |
| 130 | 130 | + "help": { | |
| 131 | + argumentsOptional: true, | ||
| 131 | 132 | + method: function () { | |
| 132 | 133 | + var that = this; | |
| 133 | 134 | + var commands = []; | |
| … | … | ||
| 306 | 306 | launchHelpApp: function(url) { | |
| 307 | 307 | var params = {"target":"http://help.palm.com/search/results.cgi?q="+this.buildSearchQuery(url)}; | |
| 308 | 308 | ApplicationService.launch('com.palm.app.help', params); | |
| 309 | @@ -1305,10 +1539,22 @@ | ||
| 309 | @@ -1305,10 +1581,22 @@ | ||
| 310 | 310 | $('webtext').innerHTML = this.currentFilter; | |
| 311 | 311 | this.webDrawer.showWeb = true; | |
| 312 | 312 | this.controller.modelChanged(this.webDrawer); | |
| … | … | ||
| 329 | 329 | //$('twitter').addClassName('last'); | |
| 330 | 330 | } | |
| 331 | 331 | $('find').removeClassName('single'); | |
| 332 | @@ -1340,11 +1586,23 @@ | ||
| 332 | @@ -1340,11 +1628,23 @@ | ||
| 333 | 333 | $('webtext').innerHTML = this.currentFilter; | |
| 334 | 334 | this.webDrawer.showWeb = true; | |
| 335 | 335 | this.controller.modelChanged(this.webDrawer); | |
| … | … | ||
| 353 | 353 | } | |
| 354 | 354 | $('find').removeClassName('single'); | |
| 355 | 355 | $('find').addClassName('first'); | |
| 356 | @@ -1395,10 +1653,22 @@ | ||
| 356 | @@ -1395,10 +1695,22 @@ | ||
| 357 | 357 | $('webtext').innerHTML = this.currentFilter; | |
| 358 | 358 | this.webDrawer.showWeb = true; | |
| 359 | 359 | this.controller.modelChanged(this.webDrawer); | |
| … | … | ||
| 376 | 376 | //$('twitter').addClassName('last'); | |
| 377 | 377 | } | |
| 378 | 378 | $('find').removeClassName('single'); | |
| 379 | @@ -1414,6 +1684,8 @@ | ||
| 379 | @@ -1414,6 +1726,8 @@ | ||
| 380 | 380 | } | |
| 381 | 381 | else if (url == "web") | |
| 382 | 382 | this.launchBrowser(this.currentFilter); | |
| … | … | ||
| 385 | 385 | else if(url == 'twitter') | |
| 386 | 386 | { | |
| 387 | 387 | var twitterAppInfo = this.launcherAssistant.pagesModel.getAppInfo(palmBrandedTwitterAppID+"_default"); | |
| 388 | @@ -1653,6 +1925,8 @@ | ||
| 388 | @@ -1653,6 +1967,8 @@ | ||
| 389 | 389 | this.numberDiv.hide(); | |
| 390 | 390 | this.webDrawer.showWeb = false ; | |
| 391 | 391 | this.controller.modelChanged(this.webDrawer); | |
| … | … | ||
| 394 | 394 | this.expandedSearchDrawer.showExpanded = false; | |
| 395 | 395 | this.controller.modelChanged(this.expandedSearchDrawer); | |
| 396 | 396 | this.searchApps.clear(); | |
| 397 | @@ -1661,10 +1935,15 @@ | ||
| 397 | @@ -1661,10 +1977,15 @@ | ||
| 398 | 398 | $('wikipedia').removeClassName('selected'); | |
| 399 | 399 | $('twitter').removeClassName('selected'); | |
| 400 | 400 | $('web').removeClassName('selected'); | |
| … | … | ||
| 410 | 410 | webSiteString: function(s){ | |
| 411 | 411 | if (s.indexOf("http://") == 0) | |
| 412 | 412 | return s; | |
| 413 | @@ -1762,6 +2041,7 @@ | ||
| 413 | @@ -1762,6 +2083,7 @@ | ||
| 414 | 414 | //clear search': | |
| 415 | 415 | $('google').removeClassName('palm-focus'); | |
| 416 | 416 | $('web').removeClassName('palm-focus'); | |
| … | … | ||
| 418 | 418 | }, | |
| 419 | 419 | highlightSelection: function() { | |
| 420 | 420 | ||
| 421 | @@ -1823,6 +2103,11 @@ | ||
| 422 | $('web').addClassName('palm-focus'); | ||
| 423 | this.highlightTarget = $('web'); | ||
| 424 | } | ||
| 425 | + else if (this.commandLineDrawer.showCommandLine == true) { | ||
| 426 | + $('google').removeClassName('palm-focus'); | ||
| 427 | + $('web').removeClassName('palm-focus'); | ||
| 428 | + this.highlightTarget = $('commandLine'); | ||
| 429 | + } | ||
| 430 | else if(this.expandedSearchDrawer.showExpanded == true){ | ||
| 431 | $('google').addClassName('palm-focus'); | ||
| 432 | $('web').removeClassName('palm-focus'); | ||
| 433 | @@ -1834,6 +2119,21 @@ | ||
| 421 | @@ -1834,6 +2156,24 @@ | ||
| 434 | 422 | $('google').removeClassName('palm-focus'); | |
| 435 | 423 | $('web').removeClassName('palm-focus'); | |
| 436 | 424 | } | |
| … | … | ||
| 428 | 428 | + $('commandLine').removeClassName('palm-focus'); | |
| 429 | 429 | + } | |
| 430 | 430 | + else if (this.commandLineDrawer.showCommandLine == true) { | |
| 431 | + $('google').removeClassName('palm-focus'); | ||
| 432 | + $('web').removeClassName('palm-focus'); | ||
| 433 | + this.highlightTarget = $('commandLine'); | ||
| 431 | 434 | + $('commandLine').addClassName('palm-focus'); | |
| 432 | 435 | + } | |
| 433 | 436 | + else if (this.expandedSearchDrawer.showExpanded == true) { | |
| … | … | ||
| 443 | 443 | }, | |
| 444 | 444 | ||
| 445 | 445 | enterKeyAction: function(){ | |
| 446 | @@ -1922,6 +2222,8 @@ | ||
| 446 | @@ -1922,6 +2262,8 @@ | ||
| 447 | 447 | } | |
| 448 | 448 | if (this.webDrawer.showWeb == true) | |
| 449 | 449 | this.launchBrowser(this.currentFilter); |

