summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2013-11-03 14:40:07 +0100
committerlouis <louis.braun@gmx.de>2013-11-03 14:40:07 +0100
commit48315143f433b08b9f9cf56947b84a3293031b68 (patch)
tree5a04dcd2bd3ece22e13a8e57e8fead6401db3361
parentc057102d9d7ac37ab6b83b3c811827eca3f0307b (diff)
downloadskin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.gz
skin-nopacity-48315143f433b08b9f9cf56947b84a3293031b68.tar.bz2
Added Setup Option to generate log messages when trying to load pictures
-rw-r--r--HISTORY2
-rw-r--r--config.c1
-rw-r--r--imagemagickwrapper.c12
-rw-r--r--po/ca_ES.po5
-rw-r--r--po/de_DE.po5
-rw-r--r--po/it_IT.po5
-rw-r--r--po/sk_SK.po5
-rw-r--r--setup.c2
8 files changed, 28 insertions, 9 deletions
diff --git a/HISTORY b/HISTORY
index 4b0f687..d179b82 100644
--- a/HISTORY
+++ b/HISTORY
@@ -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)
diff --git a/config.c b/config.c
index 6503d38..3953793 100644
--- a/config.c
+++ b/config.c
@@ -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"
diff --git a/setup.c b/setup.c
index 827304e..533aab3 100644
--- a/setup.c
+++ b/setup.c
@@ -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));