summaryrefslogtreecommitdiff
path: root/extensions
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2016-04-30 06:49:30 +0200
committerlouis <louis.braun@gmx.de>2016-04-30 06:49:30 +0200
commitf4f64e96e5cd5856305498dd562247cdf6474fff (patch)
tree7d51c3ca4c731f383d891b83ed4de24d7ef21345 /extensions
parent4076377e213c45f1f0e07c288ea48aa9faa37d90 (diff)
downloadvdr-plugin-skindesigner-f4f64e96e5cd5856305498dd562247cdf6474fff.tar.gz
vdr-plugin-skindesigner-f4f64e96e5cd5856305498dd562247cdf6474fff.tar.bz2
improved estuary4vdr
Diffstat (limited to 'extensions')
-rw-r--r--extensions/skinsetup.c9
-rw-r--r--extensions/skinsetup.h1
2 files changed, 8 insertions, 2 deletions
diff --git a/extensions/skinsetup.c b/extensions/skinsetup.c
index f622336..ddde409 100644
--- a/extensions/skinsetup.c
+++ b/extensions/skinsetup.c
@@ -33,6 +33,9 @@ void cSkinSetupParameter::Debug(void) {
sType = "int";
else if (type == sptString)
sType = "string";
+ else if (type == sptSeparator)
+ sType = "separator";
+
dsyslog("skindesigner: name \"%s\", type %s, displayText \"%s\", Value: %d", name.c_str(), sType.c_str(), displayText.c_str(), value);
if (type == sptInt)
dsyslog("skindesigner: min %d, max %d", min, max);
@@ -224,7 +227,7 @@ void cSkinSetup::SubMenuDone(void) {
}
void cSkinSetup::SetParameter(string type, string name, string displayText, string helpText, string min, string max, string value, string options) {
- if (!type.size() || !name.size() || !displayText.size() || !value.size()) {
+ if (!type.size() || !name.size() || !displayText.size()) {
esyslog("skindesigner: invalid setup parameter for skin %s", skin.c_str());
return;
}
@@ -235,6 +238,8 @@ void cSkinSetup::SetParameter(string type, string name, string displayText, stri
paramType = sptBool;
} else if (!type.compare("string")) {
paramType = sptString;
+ } else if (!type.compare("separator")) {
+ paramType = sptSeparator;
}
if (paramType == sptUnknown) {
esyslog("skindesigner: invalid setup parameter for skin %s", skin.c_str());
@@ -266,7 +271,7 @@ void cSkinSetup::AddToGlobals(cGlobals *globals) {
globals->AddString(param->name, value);
string intName = "index" + param->name;
globals->AddInt(intName, param->value);
- } else {
+ } else if (param->type == sptInt || param->type == sptBool) {
globals->AddInt(param->name, param->value);
}
}
diff --git a/extensions/skinsetup.h b/extensions/skinsetup.h
index e3b9cc3..ede93f9 100644
--- a/extensions/skinsetup.h
+++ b/extensions/skinsetup.h
@@ -16,6 +16,7 @@ enum eSetupParameterType {
sptInt,
sptBool,
sptString,
+ sptSeparator,
sptUnknown
};