]> code.delx.au - comingnext/commitdiff
* added backgroundImageLocation option
authorMichael Prager <michael@pragers.de>
Thu, 28 Jan 2010 12:17:28 +0000 (13:17 +0100)
committerMichael Prager <michael@pragers.de>
Thu, 28 Jan 2010 12:17:28 +0000 (13:17 +0100)
* added translation support for ENUM options
* added Skin Fetcher tool v1.1 to package
* updated readme

13 files changed:
ComingNext_SkinFetcher_v1.1.sisx [new file with mode: 0644]
Readme.txt
background_mask_landscape.png [deleted file]
background_mask_portrait.png [deleted file]
build.bat
comingNext/de.lproj/localizedTextStrings.js
comingNext/fr.lproj/localizedTextStrings.js
comingNext/index.html
comingNext/localizedTextStrings.js
comingNextB/de.lproj/localizedTextStrings.js
comingNextB/fr.lproj/localizedTextStrings.js
comingNextB/index.html
comingNextB/localizedTextStrings.js

diff --git a/ComingNext_SkinFetcher_v1.1.sisx b/ComingNext_SkinFetcher_v1.1.sisx
new file mode 100644 (file)
index 0000000..a937836
Binary files /dev/null and b/ComingNext_SkinFetcher_v1.1.sisx differ
index b7416e4ce1005e0f1318e5bcf5da0465815d807c..959b11ccc1d5d9e458e7e525e10c9817349230c9 100644 (file)
@@ -12,22 +12,16 @@ http://sourceforge.net/projects/comingnext
 http://www.symbian-freak.com/forum/viewtopic.php?t=38045\r
 \r
 You can change the appearance (background color, font color, font size etc.) \r
-and settings from within the widget now. Only if you want to use a custom \r
-background image or fake transparency, you still need to modify the widget,\r
-following these steps:\r
+and settings from within the widget now. Even if you want to use a custom\r
+background image to fake transparency, you don't have to modify the widget\r
+anymore. Follow these steps to give your ComingNext widget a transparent \r
+background:\r
 \r
-  1. rename comingNext.wgz to comingNext.zip\r
-  2. replace comingNext.zip/comingNext/background_landscape.png and \r
-     background_portrait.png with your desired background.\r
-  3. rename comingNext.zip back to comingNext.wgz\r
-  4. do the same for comingNextB.wgz\r
-  5. in the widget settings enable "use background image"\r
-  \r
-I recommend to use a program to make a screenshot of your current \r
-homescreen background, then use a painting program like GIMP to \r
-cut out the pieces you need. Use background_mask_landscape.png and \r
-background_mask_portrait.png for guidance on what parts of the screen are\r
-used by widgets.\r
+  1. install "ComingNext Skin Fetcher" on your phone\r
+  2. start it on your phone and click on "Generate". It will ask you for the\r
+     positions of the ComingNext widgets on the homescreen.\r
+  3. In the ComingNext widget, enable the "use background image" option and set\r
+     "background image location" to "external"\r
 \r
 \r
 known limitations:\r
@@ -184,3 +178,7 @@ Changelog:
 1.25 () by Michael Prager\r
   - fixed reoccurring events not beeing shown\r
   - added "check for updates" feature\r
+  - added "ComingNext Skin Fetcher v1.1" tool\r
+  - support for external background images (useful in combination with the\r
+    new skin fetcher tool). With this, you won't need to modify the widget\r
+    anymore to use a custom background image\r
diff --git a/background_mask_landscape.png b/background_mask_landscape.png
deleted file mode 100644 (file)
index 311e23b..0000000
Binary files a/background_mask_landscape.png and /dev/null differ
diff --git a/background_mask_portrait.png b/background_mask_portrait.png
deleted file mode 100644 (file)
index 1bbd21d..0000000
Binary files a/background_mask_portrait.png and /dev/null differ
index 732d2d7ba74c27ea78d2fff418f2f7d564c9d5c3..96f35c296f8fc163925235369d6a703dffdce7ce 100644 (file)
--- a/build.bat
+++ b/build.bat
@@ -8,4 +8,4 @@ zip -9 -r comingNext.zip comingNext
 zip -9 -r comingNextB.zip comingNextB\r
 ren comingNext.zip comingNext.wgz\r
 ren comingNextB.zip comingNextB.wgz\r
-zip -9 comingNext_v%VERSION%.zip comingNext.wgz comingNextB.wgz Readme.txt License.txt background_mask_landscape.png background_mask_portrait.png
\ No newline at end of file
+zip -9 comingNext_v%VERSION%.zip comingNext.wgz comingNextB.wgz Readme.txt License.txt ComingNext_SkinFetcher_v1.1.sisx
\ No newline at end of file
index 753988c572483e97db5ad38128c3f15a32321427..ce00212f6c816ebf588ad737807d83c98c3d39e7 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Aufgaben anzeigen';
 localizedText['settings.info.includeTodos'] = 'ausschalten, um Aufgaben aus der Ereignisliste zu entfernen';\r
 localizedText['settings.name.useBackgroundImage'] = 'Benutze Hintergrundbild';\r
 localizedText['settings.info.useBackgroundImage'] = 'benutze background_portrait.png und background_landscape.png um Transparenz vorzutäuschen. Um einen einfarbigen Hintergrund zu erzeugen, muss diese Einstellung deaktiviert werden.';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Speicherort des Hinterbrundbildes';\r
+localizedText['settings.info.backgroundImageLocation'] = 'definiert, wo das Hintergrundbild zu finden ist. "intern" benutzt das eingebaute Hintergrundbild, "extern" benutzt das Hintergrundbild unter C:\\Data\\. Falls Sie Hintergrundbilder mit dem "ComingNext Skin Fetcher" Tool generiert haben, sollten Sie diese Einstellung auf "extern" setzen.';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'intern';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'extern';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Zeige Datum/Uhrzeit kombiniert an';\r
 localizedText['settings.info.showCombinedDateTime'] = 'zeigt nur die Zeit an für Ereignisse, die heute stattfinden. Andernfalls wird nur das Datum angezeigt';\r
 localizedText['settings.name.showLocation'] = 'Zeige Ort';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'Trennzeichen zwischen den einzel
 localizedText['settings.default.dateSeparator'] = '.';\r
 localizedText['settings.name.dateFormat'] = 'Datumsformat';\r
 localizedText['settings.info.dateFormat'] = 'legt fest, wie Daten angezeigt werden. \'auto\' übernimmt die Telefoneinstellung. \'MMDD\' stellt den Monat nach vorne, \'DDMM\' den Tag';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'automatisch erkennen';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'Tag.Monat.Jahr';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'Monat.Tag.Jahr';\r
 localizedText['settings.name.weekDayLength'] = 'Länge des Wochentags';\r
 localizedText['settings.info.weekDayLength'] = 'legt fest, wie viele Buschstaben des Wochentags eingezeigt werden sollen. Z.B. wird bei 2 aus "Freitag" to "Fr"';\r
 localizedText['settings.name.updateDataInterval'] = 'Updateinterval';\r
index dd0e4d723c82f379d7871140b6ba3c22ea16e526..d7eb569c9527724816b4b5e8d8a3a03110e38a0e 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Ajouter ToDos';
 localizedText['settings.info.includeTodos'] = 'D&eacute;cocher pour ne pas afficher ToDos dans la liste d\'&eacute;v&eacute;nements';\r
 localizedText['settings.name.useBackgroundImage'] = 'Utiliser Background Image';\r
 localizedText['settings.info.useBackgroundImage'] = 'Utiliser background_portrait.png et background_landscape.png pour simuler la transparence. D&eacute;cocher pour utiliser une couleur de fond';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Background Image Location';\r
+localizedText['settings.info.backgroundImageLocation'] = 'defines where the image is located that is displayed in the background. "Internal" will use the buildin image, "external" will use the image located in C:\\Data\\. If you\'ve generated images with "ComingNext Skin Fetcher", you should set this to "external".';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'internal';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'external';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Afficher date & heure';\r
 localizedText['settings.info.showCombinedDateTime'] = 'Afficher seulement l\'heure pour les &eacute;v&eacute;nements de la journ&eacute;e, sinon seulement date';\r
 localizedText['settings.name.showLocation'] = 'Afficher le lieu';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'S&eacute;parateur pour les dates
 localizedText['settings.default.dateSeparator'] = '/';\r
 localizedText['settings.name.dateFormat'] = 'Format des dates';\r
 localizedText['settings.info.dateFormat'] = 'Comment les dates doivent &ecirc;tre affich&eacute;es. \'auto\' format de votre t&eacute;l&eacute;phone. \'MMDD\' mois en premier, \'DDMM\' jour en premier';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'autodetect';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'day/month/year';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'month/day/year';\r
 localizedText['settings.name.weekDayLength'] = 'Nombre de caract&egrave;re pour le jour';\r
 localizedText['settings.info.weekDayLength'] = 'D&eacute;finit le nombre de caract&egrave;res pour afficher le jour de la semaine : 2 coupera "Lundi" &agrave; "Lu"';\r
 localizedText['settings.name.updateDataInterval'] = 'Interval de mise &agrave; jour';\r
index 09e6658c292496d2854fac8d9592ab70d23ec7f5..5d7245ed313ff7335da6fe59c79c1cde616a27e7 100644 (file)
@@ -27,6 +27,7 @@ var config = {
        monthRange: { Type: 'Int', Default: 2, Value: 2,},\r
        includeTodos: { Type: 'Bool', Default: true, Value: true,},\r
        useBackgroundImage: { Type: 'Bool', Default: true, Value: true,},\r
+       backgroundImageLocation: { Type: 'Enum', Default: 'internal', Value: 'internal', ValidValues: ['internal', 'external']},\r
        showCombinedDateTime: { Type: 'Bool', Default: false, Value: false,},\r
        showLocation: { Type: 'Bool', Default: true, Value: true,},\r
        showTodayAsText: { Type: 'Bool', Default: true, Value: true,},\r
@@ -763,7 +764,7 @@ function showSettings()
                else if (config[key].Type == 'Enum') {\r
                        settingsHtml += '<table><tr><td>' + getLocalizedText('settings.name.' + key) + '<br /><select name="settings.' + key + '" size="1">';\r
                        for(var i = 0; i < config[key].ValidValues.length; i++)\r
-                               settingsHtml += '<option label="' + config[key].ValidValues[i] + '"' + (config[key].Value == config[key].ValidValues[i] ? ' selected="selected"' : '') + '>' + config[key].ValidValues[i] + '</option>';\r
+                               settingsHtml += '<option value="' + config[key].ValidValues[i] + '"' + (config[key].Value == config[key].ValidValues[i] ? ' selected="selected"' : '') + '>' + getLocalizedText('settings.validValues.' + key + '.' + config[key].ValidValues[i]) + '</option>';\r
                        settingsHtml += '</select></div></td>' + printHintBox(getLocalizedText('settings.info.' + key)) + '<hr />';\r
                }\r
        }\r
@@ -882,6 +883,16 @@ function showFullscreen()
        updateData();\r
 }\r
 \r
+function getBackgroundImage()\r
+{\r
+       var bgImage;\r
+       if (config['backgroundImageLocation'].Value == config['backgroundImageLocation'].ValidValues[0]) // internal\r
+               bgImage = 'background_' + orientation + '.png';\r
+       else\r
+               bgImage = 'C:/Data/background_' + panelNum + '_' + orientation + '.png';\r
+       return bgImage;\r
+}\r
+\r
 function updateHomescreen()\r
 {\r
        if (config['useBackgroundImage'].Value) {\r
@@ -889,19 +900,19 @@ function updateHomescreen()
                if (orientation != 'portrait' && screen.width == 360 && screen.height == 640) {\r
                        window.widget.prepareForTransition("fade");\r
                        orientation = 'portrait';\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                        document.getElementById('body').style.backgroundColor = 'none';\r
                        window.widget.performTransition();\r
                } else if (orientation != 'landscape' && screen.width == 640 && screen.height == 360) {\r
                        window.widget.prepareForTransition("fade");\r
                        orientation = 'landscape';\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                        document.getElementById('body').style.backgroundColor = 'none';\r
                        window.widget.performTransition();\r
                }\r
                else if (document.getElementById('body').style.backgroundImage == "")\r
                {\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                }\r
        }\r
 }\r
@@ -958,7 +969,6 @@ function checkForUpdateCallback()
 { \r
        if (reqV.readyState == 4) {\r
                if (reqV.status == 200) {\r
-                       // little overhead here, one could use also string for version info\r
                        var resultXml = reqV.responseText;\r
                        if (resultXml) {\r
                                var div = document.getElementById("tmp");\r
index 881942ea5a0e76da12fce173f94787f930f0ea59..6c93cfc34666063fe6be005a0172a777f05b14c5 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Include ToDos';
 localizedText['settings.info.includeTodos'] = 'disable to remove ToDos from event list';\r
 localizedText['settings.name.useBackgroundImage'] = 'Use Background Image';\r
 localizedText['settings.info.useBackgroundImage'] = 'use background_portrait.png and background_landscape.png to fake transparency. Disable to use a solid background color';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Background Image Location';\r
+localizedText['settings.info.backgroundImageLocation'] = 'defines where the image is located that is displayed in the background. "Internal" will use the buildin image, "external" will use the image located in C:\\Data\\. If you\'ve generated images with "ComingNext Skin Fetcher", you should set this to "external".';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'internal';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'external';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Show Combined Date/Time';\r
 localizedText['settings.info.showCombinedDateTime'] = 'only show the time for events happening today, otherwise just show the date';\r
 localizedText['settings.name.showLocation'] = 'Show Location';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'separator for dates. e.g. "31.12
 localizedText['settings.default.dateSeparator'] = '.';\r
 localizedText['settings.name.dateFormat'] = 'Date Format';\r
 localizedText['settings.info.dateFormat'] = 'how dates will be displayed. \'auto\' will autodetect your phone\'s date format setting. \'MMDD\' will write month first, \'DDMM\' will write day first';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'autodetect';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'day/month/year';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'month/day/year';\r
 localizedText['settings.name.weekDayLength'] = 'Weekday Length';\r
 localizedText['settings.info.weekDayLength'] = 'defines how many characters of the weekday will be shown. E.g. 2 will cut "Friday" to "Fr"';\r
 localizedText['settings.name.updateDataInterval'] = 'Update Data Interval';\r
index 753988c572483e97db5ad38128c3f15a32321427..ce00212f6c816ebf588ad737807d83c98c3d39e7 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Aufgaben anzeigen';
 localizedText['settings.info.includeTodos'] = 'ausschalten, um Aufgaben aus der Ereignisliste zu entfernen';\r
 localizedText['settings.name.useBackgroundImage'] = 'Benutze Hintergrundbild';\r
 localizedText['settings.info.useBackgroundImage'] = 'benutze background_portrait.png und background_landscape.png um Transparenz vorzutäuschen. Um einen einfarbigen Hintergrund zu erzeugen, muss diese Einstellung deaktiviert werden.';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Speicherort des Hinterbrundbildes';\r
+localizedText['settings.info.backgroundImageLocation'] = 'definiert, wo das Hintergrundbild zu finden ist. "intern" benutzt das eingebaute Hintergrundbild, "extern" benutzt das Hintergrundbild unter C:\\Data\\. Falls Sie Hintergrundbilder mit dem "ComingNext Skin Fetcher" Tool generiert haben, sollten Sie diese Einstellung auf "extern" setzen.';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'intern';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'extern';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Zeige Datum/Uhrzeit kombiniert an';\r
 localizedText['settings.info.showCombinedDateTime'] = 'zeigt nur die Zeit an für Ereignisse, die heute stattfinden. Andernfalls wird nur das Datum angezeigt';\r
 localizedText['settings.name.showLocation'] = 'Zeige Ort';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'Trennzeichen zwischen den einzel
 localizedText['settings.default.dateSeparator'] = '.';\r
 localizedText['settings.name.dateFormat'] = 'Datumsformat';\r
 localizedText['settings.info.dateFormat'] = 'legt fest, wie Daten angezeigt werden. \'auto\' übernimmt die Telefoneinstellung. \'MMDD\' stellt den Monat nach vorne, \'DDMM\' den Tag';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'automatisch erkennen';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'Tag.Monat.Jahr';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'Monat.Tag.Jahr';\r
 localizedText['settings.name.weekDayLength'] = 'Länge des Wochentags';\r
 localizedText['settings.info.weekDayLength'] = 'legt fest, wie viele Buschstaben des Wochentags eingezeigt werden sollen. Z.B. wird bei 2 aus "Freitag" to "Fr"';\r
 localizedText['settings.name.updateDataInterval'] = 'Updateinterval';\r
index dd0e4d723c82f379d7871140b6ba3c22ea16e526..d7eb569c9527724816b4b5e8d8a3a03110e38a0e 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Ajouter ToDos';
 localizedText['settings.info.includeTodos'] = 'D&eacute;cocher pour ne pas afficher ToDos dans la liste d\'&eacute;v&eacute;nements';\r
 localizedText['settings.name.useBackgroundImage'] = 'Utiliser Background Image';\r
 localizedText['settings.info.useBackgroundImage'] = 'Utiliser background_portrait.png et background_landscape.png pour simuler la transparence. D&eacute;cocher pour utiliser une couleur de fond';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Background Image Location';\r
+localizedText['settings.info.backgroundImageLocation'] = 'defines where the image is located that is displayed in the background. "Internal" will use the buildin image, "external" will use the image located in C:\\Data\\. If you\'ve generated images with "ComingNext Skin Fetcher", you should set this to "external".';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'internal';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'external';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Afficher date & heure';\r
 localizedText['settings.info.showCombinedDateTime'] = 'Afficher seulement l\'heure pour les &eacute;v&eacute;nements de la journ&eacute;e, sinon seulement date';\r
 localizedText['settings.name.showLocation'] = 'Afficher le lieu';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'S&eacute;parateur pour les dates
 localizedText['settings.default.dateSeparator'] = '/';\r
 localizedText['settings.name.dateFormat'] = 'Format des dates';\r
 localizedText['settings.info.dateFormat'] = 'Comment les dates doivent &ecirc;tre affich&eacute;es. \'auto\' format de votre t&eacute;l&eacute;phone. \'MMDD\' mois en premier, \'DDMM\' jour en premier';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'autodetect';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'day/month/year';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'month/day/year';\r
 localizedText['settings.name.weekDayLength'] = 'Nombre de caract&egrave;re pour le jour';\r
 localizedText['settings.info.weekDayLength'] = 'D&eacute;finit le nombre de caract&egrave;res pour afficher le jour de la semaine : 2 coupera "Lundi" &agrave; "Lu"';\r
 localizedText['settings.name.updateDataInterval'] = 'Interval de mise &agrave; jour';\r
index ff194738dab06fed4e8bf32d7d12fe33f1a3263a..f5551afc56ce18b264eba4a0c3f178d07f89399b 100644 (file)
@@ -27,6 +27,7 @@ var config = {
        monthRange: { Type: 'Int', Default: 2, Value: 2,},\r
        includeTodos: { Type: 'Bool', Default: true, Value: true,},\r
        useBackgroundImage: { Type: 'Bool', Default: true, Value: true,},\r
+       backgroundImageLocation: { Type: 'Enum', Default: 'internal', Value: 'internal', ValidValues: ['internal', 'external']},\r
        showCombinedDateTime: { Type: 'Bool', Default: false, Value: false,},\r
        showLocation: { Type: 'Bool', Default: true, Value: true,},\r
        showTodayAsText: { Type: 'Bool', Default: true, Value: true,},\r
@@ -763,7 +764,7 @@ function showSettings()
                else if (config[key].Type == 'Enum') {\r
                        settingsHtml += '<table><tr><td>' + getLocalizedText('settings.name.' + key) + '<br /><select name="settings.' + key + '" size="1">';\r
                        for(var i = 0; i < config[key].ValidValues.length; i++)\r
-                               settingsHtml += '<option label="' + config[key].ValidValues[i] + '"' + (config[key].Value == config[key].ValidValues[i] ? ' selected="selected"' : '') + '>' + config[key].ValidValues[i] + '</option>';\r
+                               settingsHtml += '<option value="' + config[key].ValidValues[i] + '"' + (config[key].Value == config[key].ValidValues[i] ? ' selected="selected"' : '') + '>' + getLocalizedText('settings.validValues.' + key + '.' + config[key].ValidValues[i]) + '</option>';\r
                        settingsHtml += '</select></div></td>' + printHintBox(getLocalizedText('settings.info.' + key)) + '<hr />';\r
                }\r
        }\r
@@ -882,6 +883,16 @@ function showFullscreen()
        updateData();\r
 }\r
 \r
+function getBackgroundImage()\r
+{\r
+       var bgImage;\r
+       if (config['backgroundImageLocation'].Value == config['backgroundImageLocation'].ValidValues[0]) // internal\r
+               bgImage = 'background_' + orientation + '.png';\r
+       else\r
+               bgImage = 'C:/Data/background_' + panelNum + '_' + orientation + '.png';\r
+       return bgImage;\r
+}\r
+\r
 function updateHomescreen()\r
 {\r
        if (config['useBackgroundImage'].Value) {\r
@@ -889,19 +900,19 @@ function updateHomescreen()
                if (orientation != 'portrait' && screen.width == 360 && screen.height == 640) {\r
                        window.widget.prepareForTransition("fade");\r
                        orientation = 'portrait';\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                        document.getElementById('body').style.backgroundColor = 'none';\r
                        window.widget.performTransition();\r
                } else if (orientation != 'landscape' && screen.width == 640 && screen.height == 360) {\r
                        window.widget.prepareForTransition("fade");\r
                        orientation = 'landscape';\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                        document.getElementById('body').style.backgroundColor = 'none';\r
                        window.widget.performTransition();\r
                }\r
                else if (document.getElementById('body').style.backgroundImage == "")\r
                {\r
-                       document.getElementById('body').style.backgroundImage = 'url(background_' + orientation + '.png)';\r
+                       document.getElementById('body').style.backgroundImage = 'url(' + getBackgroundImage() + ')';\r
                }\r
        }\r
 }\r
@@ -958,7 +969,6 @@ function checkForUpdateCallback()
 { \r
        if (reqV.readyState == 4) {\r
                if (reqV.status == 200) {\r
-                       // little overhead here, one could use also string for version info\r
                        var resultXml = reqV.responseText;\r
                        if (resultXml) {\r
                                var div = document.getElementById("tmp");\r
index 881942ea5a0e76da12fce173f94787f930f0ea59..6c93cfc34666063fe6be005a0172a777f05b14c5 100644 (file)
@@ -18,6 +18,10 @@ localizedText['settings.name.includeTodos'] = 'Include ToDos';
 localizedText['settings.info.includeTodos'] = 'disable to remove ToDos from event list';\r
 localizedText['settings.name.useBackgroundImage'] = 'Use Background Image';\r
 localizedText['settings.info.useBackgroundImage'] = 'use background_portrait.png and background_landscape.png to fake transparency. Disable to use a solid background color';\r
+localizedText['settings.name.backgroundImageLocation'] = 'Background Image Location';\r
+localizedText['settings.info.backgroundImageLocation'] = 'defines where the image is located that is displayed in the background. "Internal" will use the buildin image, "external" will use the image located in C:\\Data\\. If you\'ve generated images with "ComingNext Skin Fetcher", you should set this to "external".';\r
+localizedText['settings.validValues.backgroundImageLocation.internal'] = 'internal';\r
+localizedText['settings.validValues.backgroundImageLocation.external'] = 'external';\r
 localizedText['settings.name.showCombinedDateTime'] = 'Show Combined Date/Time';\r
 localizedText['settings.info.showCombinedDateTime'] = 'only show the time for events happening today, otherwise just show the date';\r
 localizedText['settings.name.showLocation'] = 'Show Location';\r
@@ -40,6 +44,9 @@ localizedText['settings.info.dateSeparator'] = 'separator for dates. e.g. "31.12
 localizedText['settings.default.dateSeparator'] = '.';\r
 localizedText['settings.name.dateFormat'] = 'Date Format';\r
 localizedText['settings.info.dateFormat'] = 'how dates will be displayed. \'auto\' will autodetect your phone\'s date format setting. \'MMDD\' will write month first, \'DDMM\' will write day first';\r
+localizedText['settings.validValues.dateFormat.auto'] = 'autodetect';\r
+localizedText['settings.validValues.dateFormat.DDMM'] = 'day/month/year';\r
+localizedText['settings.validValues.dateFormat.MMDD'] = 'month/day/year';\r
 localizedText['settings.name.weekDayLength'] = 'Weekday Length';\r
 localizedText['settings.info.weekDayLength'] = 'defines how many characters of the weekday will be shown. E.g. 2 will cut "Friday" to "Fr"';\r
 localizedText['settings.name.updateDataInterval'] = 'Update Data Interval';\r