Commit 6fd1c2dfce724b3b2a7b8e3001e52727836d1bb7.patch
- Diff rendering mode:
- inline
- side by side
|   | |||
| 1 | Copyright (c) 2009 dallashigh <karl@webosnerd.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 | Index: /usr/palm/applications/com.palm.app.calculator/app/controllers/calculator-assistant.js | ||
| 2 | =================================================================== | ||
| 3 | --- /usr/palm/applications/com.palm.app.calculator/app/controllers/~calculator-assistant.orig | ||
| 4 | +++ /usr/palm/applications/com.palm.app.calculator/app/controllers/calculator-assistant.js | ||
| 5 | @@ -160,12 +160,14 @@ | ||
| 6 | onNumberPress: function(event, number) { | ||
| 7 | this.calculator.enterDigit(number); | ||
| 8 | this.updateResults(); | ||
| 9 | + this.vibrate(); | ||
| 10 | event.stop(); | ||
| 11 | }, | ||
| 12 | |||
| 13 | onDecimalPress: function(event) { | ||
| 14 | this.calculator.enterDecimal(); | ||
| 15 | this.updateResults(); | ||
| 16 | + this.vibrate(); | ||
| 17 | event.stop(); | ||
| 18 | }, | ||
| 19 | |||
| 20 | @@ -178,6 +180,7 @@ | ||
| 21 | this.calculator.divide(); | ||
| 22 | } | ||
| 23 | this.updateResults(); | ||
| 24 | + this.vibrate(); | ||
| 25 | event.stop(); | ||
| 26 | }, | ||
| 27 | |||
| 28 | @@ -189,6 +192,7 @@ | ||
| 29 | this.calculator.multiply(); | ||
| 30 | } | ||
| 31 | this.updateResults(); | ||
| 32 | + this.vibrate(); | ||
| 33 | event.stop(); | ||
| 34 | }, | ||
| 35 | |||
| 36 | @@ -200,6 +204,7 @@ | ||
| 37 | this.calculator.subtract(); | ||
| 38 | } | ||
| 39 | this.updateResults(); | ||
| 40 | + this.vibrate(); | ||
| 41 | event.stop(); | ||
| 42 | }, | ||
| 43 | |||
| 44 | @@ -211,6 +216,7 @@ | ||
| 45 | this.calculator.add(); | ||
| 46 | } | ||
| 47 | this.updateResults(); | ||
| 48 | + this.vibrate(); | ||
| 49 | event.stop(); | ||
| 50 | }, | ||
| 51 | |||
| 52 | @@ -218,12 +224,14 @@ | ||
| 53 | |||
| 54 | this.calculator.equals(); | ||
| 55 | this.updateResults(); | ||
| 56 | + this.vibrate(); | ||
| 57 | event.stop(); | ||
| 58 | }, | ||
| 59 | |||
| 60 | onClearPress: function(event) { | ||
| 61 | this.calculator.clear(); | ||
| 62 | this.updateResults(); | ||
| 63 | + this.vibrate(); | ||
| 64 | event.stop(); | ||
| 65 | }, | ||
| 66 | |||
| 67 | @@ -231,18 +239,21 @@ | ||
| 68 | this.calculator.memPlus(); | ||
| 69 | this.showMemoryIndicator(); | ||
| 70 | this.updateResults(); | ||
| 71 | + this.vibrate(); | ||
| 72 | event.stop(); | ||
| 73 | }, | ||
| 74 | |||
| 75 | onMemRecallPress: function(event) { | ||
| 76 | this.calculator.memRecall(); | ||
| 77 | this.updateResults(); | ||
| 78 | + this.vibrate(); | ||
| 79 | event.stop(); | ||
| 80 | }, | ||
| 81 | |||
| 82 | onBackspacePress: function(event) { | ||
| 83 | this.calculator.backspace(); | ||
| 84 | this.updateResults(); | ||
| 85 | + this.vibrate(); | ||
| 86 | event.stop(); | ||
| 87 | }, | ||
| 88 | |||
| 89 | @@ -250,6 +261,7 @@ | ||
| 90 | this.calculator.memClear(); | ||
| 91 | this.hideMemoryIndicator(); | ||
| 92 | this.updateResults(); | ||
| 93 | + this.vibrate(); | ||
| 94 | event.stop(); | ||
| 95 | }, | ||
| 96 | |||
| 97 | @@ -297,6 +309,16 @@ | ||
| 98 | } else if (event.type == Mojo.Event.commandEnable && event.command == Mojo.Menu.helpCmd) { | ||
| 99 | event.stopPropagation(); | ||
| 100 | } | ||
| 101 | + }, | ||
| 102 | + | ||
| 103 | + vibrate: function() { | ||
| 104 | + this.controller.serviceRequest( | ||
| 105 | + "palm://com.palm.vibrate", { | ||
| 106 | + method: 'vibrate', parameters: { | ||
| 107 | + 'period': 0,'duration': 50 | ||
| 108 | + } | ||
| 109 | + } | ||
| 110 | + ); | ||
| 111 | }, | ||
| 112 | }); | ||
| 113 |
|   | |||
| 1 | Copyright (c) 2009 daventx, Mark Klein <mdklein@gmail.com>, | ||
| 2 | drnull <jdhatfield@gmail.com>, fritos1406, | ||
| 3 | Jason Robitaille <robitaille88@gmail.com> | ||
| 4 | |||
| 5 | Permission is hereby granted, free of charge, to any person | ||
| 6 | obtaining a copy of this software and associated documentation | ||
| 7 | files (the "Software"), to deal in the Software without | ||
| 8 | restriction, including without limitation the rights to use, | ||
| 9 | copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
| 10 | copies of the Software, and to permit persons to whom the | ||
| 11 | Software is furnished to do so, subject to the following | ||
| 12 | conditions: | ||
| 13 | |||
| 14 | The above copyright notice and this permission notice shall be | ||
| 15 | included in all copies or substantial portions of the Software. | ||
| 16 | |||
| 17 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, | ||
| 18 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES | ||
| 19 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND | ||
| 20 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT | ||
| 21 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
| 22 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING | ||
| 23 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR | ||
| 24 | OTHER DEALINGS IN THE SOFTWARE. |
|   | |||
| 1 | k--- .orig/usr/palm/applications/com.palm.app.camera/javascripts/camera-control.js | ||
| 2 | +++ /usr/palm/applications/com.palm.app.camera/javascripts/camera-control.js | ||
| 3 | @@ -70,8 +70,14 @@ | ||
| 4 | |||
| 5 | // Create a filename using the image count and path info stored in preferences. | ||
| 6 | var imgNum = this.prefs[CameraControl.PREFS.COUNT]; | ||
| 7 | - var imgNumStr = "000"+imgNum; | ||
| 8 | - imgNumStr = imgNumStr.substring(imgNumStr.length-4); | ||
| 9 | + var date = new Date(); | ||
| 10 | + var YYYY = date.getFullYear(); | ||
| 11 | + var MM = (1+date.getMonth()); if (MM<10) { MM = "0"+MM; } | ||
| 12 | + var DD = (0+date.getDate()); if (DD<10) { DD = "0"+DD; } | ||
| 13 | + var hh = date.getHours(); if (hh < 10) { hh = "0"+hh; } | ||
| 14 | + var mm = date.getMinutes(); if (mm < 10) { mm = "0"+mm; } | ||
| 15 | + var ss = date.getSeconds(); if (ss < 10) { ss = "0"+ss; } | ||
| 16 | + var fileBase = YYYY + "-" + MM + "-" + DD + "-" + hh + mm + ss; | ||
| 17 | |||
| 18 | // Set file destination image | ||
| 19 | cam.dst = this.prefs[CameraControl.PREFS.PATH] | ||
| 20 | @@ -79,25 +85,11 @@ | ||
| 21 | + this.prefs[CameraControl.PREFS.MAKE].toUpperCase().substring(0,4) | ||
| 22 | + "/" | ||
| 23 | + this.prefs[CameraControl.PREFS.FILE] | ||
| 24 | - + imgNumStr | ||
| 25 | + + fileBase | ||
| 26 | +".jpg"; | ||
| 27 | |||
| 28 | // Increment image count, but wrap at 10000, then save back to preferences | ||
| 29 | ++imgNum; | ||
| 30 | - if (imgNum > 9999){ | ||
| 31 | - imgNum = 1; | ||
| 32 | - | ||
| 33 | - // Increment the album number (directory) so we don't overwrite the previous CIMG0001.jpg | ||
| 34 | - var album = (+this.prefs[CameraControl.PREFS.ALBUM]); | ||
| 35 | - if (album == 900) { | ||
| 36 | - album = 100; | ||
| 37 | - } | ||
| 38 | - else { | ||
| 39 | - ++album; | ||
| 40 | - } | ||
| 41 | - CameraPrefs.updatePref(this.prefs, CameraControl.PREFS.ALBUM, album); | ||
| 42 | - } | ||
| 43 | - | ||
| 44 | CameraPrefs.updatePref(this.prefs, CameraControl.PREFS.COUNT, imgNum); | ||
| 45 | } | ||
| 46 | |||
| 47 | @@ -215,19 +207,6 @@ | ||
| 48 | |||
| 49 | // Increment image count - after all, the image we got from the adapter was the LAST CAPTURED | ||
| 50 | ++image; | ||
| 51 | - if (image > 9999) { | ||
| 52 | - image = 1; | ||
| 53 | - | ||
| 54 | - // Increment the album number (directory) so we don't overwrite the previous CIMG0001.jpg | ||
| 55 | - if (album == 900) { | ||
| 56 | - album = 100; | ||
| 57 | - } | ||
| 58 | - else { | ||
| 59 | - ++album; | ||
| 60 | - } | ||
| 61 | - CameraPrefs.updatePref(this.prefs, CameraControl.PREFS.ALBUM, album); | ||
| 62 | - } | ||
| 63 | - | ||
| 64 | CameraPrefs.updatePref(this.prefs, CameraControl.PREFS.COUNT, image); | ||
| 65 | |||
| 66 | llog("ALBUM: " + album); | ||
| 67 | --- .orig/usr/palm/applications/com.palm.app.camera/camera-prefs-defaults.json | ||
| 68 | +++ /usr/palm/applications/com.palm.app.camera/camera-prefs-defaults.json | ||
| 69 | @@ -7,7 +7,7 @@ | ||
| 70 | 'CAMERA-MAKE': 'Palm', | ||
| 71 | 'CAMERA-MODEL': 'Pre ', | ||
| 72 | 'COUNT': '1', | ||
| 73 | - 'FILE-PREFIX': 'CIMG', | ||
| 74 | + 'FILE-PREFIX': 'PRE_', | ||
| 75 | 'GEOTAGGING': 'enabled', | ||
| 76 | 'GPS-ACCURACY-METER': 'disabled', | ||
| 77 | 'GPS-FIX-MAX-AGE': '120', | ||
| 78 |
|   | |||
| 1 | Copyright (c) 2009 jhoff80 | ||
| 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 | |||
| 2 | --- .orig/usr/palm/applications/com.palm.app.musicplayer/scripts/MediaKeyControlHandler.js | ||
| 3 | +++ /usr/palm/applications/com.palm.app.musicplayer/scripts/MediaKeyControlHandler.js | ||
| 4 | @@ -23,6 +23,9 @@ | ||
| 5 | |||
| 6 | case "next": | ||
| 7 | // start playing automatically when the song is switched | ||
| 8 | + this.serviceRequest = new Mojo.Service.Request("palm://com.palm.vibrate", { | ||
| 9 | + method: 'vibrate', parameters: { 'period': 0,'duration': 750 } | ||
| 10 | + }); | ||
| 11 | this.musicPlayer.setPlayingState(true); | ||
| 12 | |||
| 13 | this.musicPlayer.nextSong(); |

