diff options
author | louis <louis.braun@gmx.de> | 2013-11-03 14:40:07 +0100 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2013-11-03 14:40:07 +0100 |
commit | 48315143f433b08b9f9cf56947b84a3293031b68 (patch) | |
tree | 5a04dcd2bd3ece22e13a8e57e8fead6401db3361 | |
parent | c057102d9d7ac37ab6b83b3c811827eca3f0307b (diff) | |
download | skin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.gz skin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.bz2 |
Added Setup Option to generate log messages when trying to load pictures
-rw-r--r-- | HISTORY | 2 | ||||
-rw-r--r-- | config.c | 1 | ||||
-rw-r--r-- | imagemagickwrapper.c | 12 | ||||
-rw-r--r-- | po/ca_ES.po | 5 | ||||
-rw-r--r-- | po/de_DE.po | 5 | ||||
-rw-r--r-- | po/it_IT.po | 5 | ||||
-rw-r--r-- | po/sk_SK.po | 5 | ||||
-rw-r--r-- | setup.c | 2 |
8 files changed, 28 insertions, 9 deletions
@@ -344,3 +344,5 @@ Version 0.1.4 timers menu. - improved display of text progress bar in wide menus - changed header icons to scale automatically +- Added Setup Option to generate log messages when trying to load + pictures (VDR Menu -> Common Settings) @@ -44,6 +44,7 @@ void cNopacityConfig::LoadDefaults(void) { //Common Values conf.insert(std::pair<std::string, int>("displayType", dtBlending)); conf.insert(std::pair<std::string, int>("fontIndex", 0)); + conf.insert(std::pair<std::string, int>("debugImageLoading", 0)); //DisplayMenu conf.insert(std::pair<std::string, int>("scrollMode", 0)); conf.insert(std::pair<std::string, int>("spaceMenu", 5)); diff --git a/imagemagickwrapper.c b/imagemagickwrapper.c index aa1c147..e06e9f6 100644 --- a/imagemagickwrapper.c +++ b/imagemagickwrapper.c @@ -52,9 +52,11 @@ bool cImageMagickWrapper::LoadImage(std::string FileName, std::string Path, std: std::stringstream sstrImgFile; sstrImgFile << Path << FileName << "." << Extension; std::string imgFile = sstrImgFile.str(); - //dsyslog("nopacity: trying to load: %s", imgFile.c_str()); + if (config.GetValue("debugImageLoading")) + dsyslog("nopacity: trying to load: %s", imgFile.c_str()); buffer.read(imgFile.c_str()); - //dsyslog("nopacity: %s sucessfully loaded", imgFile.c_str()); + if (config.GetValue("debugImageLoading")) + dsyslog("nopacity: %s sucessfully loaded", imgFile.c_str()); } catch (...) { return false; } @@ -65,9 +67,11 @@ bool cImageMagickWrapper::LoadImage(const char *fullpath) { if ((fullpath == NULL) || (strlen(fullpath) < 5)) return false; try { - //dsyslog("nopacity: trying to load: %s", fullpath); + if (config.GetValue("debugImageLoading")) + dsyslog("nopacity: trying to load: %s", fullpath); buffer.read(fullpath); - //dsyslog("nopacity: %s sucessfully loaded", fullpath); + if (config.GetValue("debugImageLoading")) + dsyslog("nopacity: %s sucessfully loaded", fullpath); } catch (...) { return false; } diff --git a/po/ca_ES.po b/po/ca_ES.po index 472be8c..44fd27c 100644 --- a/po/ca_ES.po +++ b/po/ca_ES.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-11-03 14:03+0100\n" +"POT-Creation-Date: 2013-11-03 14:34+0100\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Gabychan <gbonich@gmail.com>\n" "Language-Team: \n" @@ -143,6 +143,9 @@ msgstr "sÃ" msgid "auto" msgstr "auto" +msgid "Create Log Messages for image loading" +msgstr "" + msgid "Number of Default Menu Entries per Page" msgstr "Nombre d'entrades de menú per pà gina" diff --git a/po/de_DE.po b/po/de_DE.po index c925eee..477f972 100644 --- a/po/de_DE.po +++ b/po/de_DE.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-11-03 14:03+0100\n" +"POT-Creation-Date: 2013-11-03 14:34+0100\n" "PO-Revision-Date: 2012-11-11 17:49+0200\n" "Last-Translator: louis\n" "Language-Team: \n" @@ -140,6 +140,9 @@ msgstr "ja" msgid "auto" msgstr "auto" +msgid "Create Log Messages for image loading" +msgstr "Log Nachrichten beim Bilder laden erzeugen" + msgid "Number of Default Menu Entries per Page" msgstr "Anzahl der Default-Menüelemente pro Seite" diff --git a/po/it_IT.po b/po/it_IT.po index 215dc06..cb8910d 100644 --- a/po/it_IT.po +++ b/po/it_IT.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: skinnopacity 0.0.1\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-11-03 14:03+0100\n" +"POT-Creation-Date: 2013-11-03 14:34+0100\n" "PO-Revision-Date: 2013-03-19 22:56+0100\n" "Last-Translator: Diego Pierotto <vdr-italian@tiscali.it>\n" "Language-Team: \n" @@ -143,6 +143,9 @@ msgstr "" msgid "auto" msgstr "" +msgid "Create Log Messages for image loading" +msgstr "" + msgid "Number of Default Menu Entries per Page" msgstr "Numero di voci per pagina menu predefinito" diff --git a/po/sk_SK.po b/po/sk_SK.po index 2c4df1b..0b7b195 100644 --- a/po/sk_SK.po +++ b/po/sk_SK.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: vdr-skinnopacity\n" "Report-Msgid-Bugs-To: <see README>\n" -"POT-Creation-Date: 2013-11-03 14:03+0100\n" +"POT-Creation-Date: 2013-11-03 14:34+0100\n" "PO-Revision-Date: 2013-09-16 19:34+0100\n" "Last-Translator: Milan Hrala <hrala.milan@gmail.com>\n" "Language-Team: \n" @@ -140,6 +140,9 @@ msgstr "áno" msgid "auto" msgstr "automaticky" +msgid "Create Log Messages for image loading" +msgstr "" + msgid "Number of Default Menu Entries per Page" msgstr "Poèet polo¾iek základného menu na stránke" @@ -35,7 +35,6 @@ void cNopacitySetup::Setup(void) { Add(new cOsdItem(tr("Messages"))); Add(new cOsdItem(tr("Volume"))); Add(new cOsdItem(tr("Image Caching"))); - SetCurrent(Get(currentItem)); Display(); } @@ -142,6 +141,7 @@ cNopacitySetupMenuDisplay::cNopacitySetupMenuDisplay(cNopacityConfig* data) : c void cNopacitySetupMenuDisplay::Set(void) { int currentItem = Current(); Clear(); + Add(new cMenuEditBoolItem(tr("Create Log Messages for image loading"), tmpConf->GetValueRef("debugImageLoading"))); Add(new cMenuEditIntItem(tr("Number of Default Menu Entries per Page"), tmpConf->GetValueRef("numDefaultMenuItems"), 10, 40)); Add(new cMenuEditIntItem(tr("Adjust Font Size - Default Menu Item"), tmpConf->GetValueRef("fontMenuitemDefault"), -20, 20)); Add(new cMenuEditStraItem(tr("Adjustment of narrow menus"), tmpConf->GetValueRef("menuAdjustLeft"), 2, adjustLeft)); |