From a5d7d6437dbc5a72279b1f5fbfb21d4c337dedc9 Mon Sep 17 00:00:00 2001 From: louis Date: Fri, 14 Aug 2015 17:23:12 +0200 Subject: added possibility to define help texts for skin setup parameters --- libtemplate/xmlparser.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'libtemplate') diff --git a/libtemplate/xmlparser.c b/libtemplate/xmlparser.c index 17fa2c6..8db3d3d 100644 --- a/libtemplate/xmlparser.c +++ b/libtemplate/xmlparser.c @@ -588,6 +588,8 @@ void cXmlParser::ParseSetupParameter(void) { string paramName = ""; string attributeDisplayText = "displaytext"; string paramDisplayText = ""; + string attributeHelpText = "helptext"; + string paramHelpText = ""; string attributeMin = "min"; string paramMin = ""; string attributeMax = "max"; @@ -599,12 +601,13 @@ void cXmlParser::ParseSetupParameter(void) { GetAttribute(attributeType, paramType); GetAttribute(attributeName, paramName); GetAttribute(attributeDisplayText, paramDisplayText); + GetAttribute(attributeHelpText, paramHelpText); GetAttribute(attributeMin, paramMin); GetAttribute(attributeMax, paramMax); GetAttribute(attributeOptions, paramOptions); GetNodeValue(paramValue); - skinSetup->SetParameter(paramType, paramName, paramDisplayText, paramMin, paramMax, paramValue, paramOptions); + skinSetup->SetParameter(paramType, paramName, paramDisplayText, paramHelpText, paramMin, paramMax, paramValue, paramOptions); } void cXmlParser::ValidateAttributes(const char *nodeName, vector &attributes) { -- cgit v1.2.3