diff options
author | louis <louis.braun@gmx.de> | 2015-05-03 11:22:01 +0200 |
---|---|---|
committer | louis <louis.braun@gmx.de> | 2015-05-03 11:22:01 +0200 |
commit | c5edc10fbd57d17e774a07b659996bdffe16242c (patch) | |
tree | cc9b5cfc4b38c7bb7f2743cba732d6e4200b5594 /libtemplate | |
parent | 918a331de3e0a6a31b2cd621ed628d53ac9fa2da (diff) | |
download | vdr-plugin-skindesigner-c5edc10fbd57d17e774a07b659996bdffe16242c.tar.gz vdr-plugin-skindesigner-c5edc10fbd57d17e774a07b659996bdffe16242c.tar.bz2 |
possibility to move viewelements when starting view
Diffstat (limited to 'libtemplate')
-rw-r--r-- | libtemplate/templatefunction.c | 20 | ||||
-rw-r--r-- | libtemplate/templatefunction.h | 3 | ||||
-rw-r--r-- | libtemplate/templateview.c | 3 |
3 files changed, 26 insertions, 0 deletions
diff --git a/libtemplate/templatefunction.c b/libtemplate/templatefunction.c index e186621..9855066 100644 --- a/libtemplate/templatefunction.c +++ b/libtemplate/templatefunction.c @@ -73,6 +73,12 @@ void cTemplateFunction::SetParameters(vector<pair<string, string> > params) { p.first = ptDetached;
} else if (!name.compare("fadetime")) {
p.first = ptFadeTime;
+ } else if (!name.compare("shifttime")) {
+ p.first = ptShiftTime;
+ } else if (!name.compare("startx")) {
+ p.first = ptStartX;
+ } else if (!name.compare("starty")) {
+ p.first = ptStartY;
} else if (!name.compare("imagetype")) {
p.first = ptImageType;
} else if (!name.compare("path")) {
@@ -230,7 +236,10 @@ bool cTemplateFunction::CalculateParameters(void) { case ptHeight:
case ptMenuItemWidth:
case ptFadeTime:
+ case ptShiftTime:
case ptDelay:
+ case ptStartX:
+ case ptStartY:
case ptFontSize:
case ptLayer:
case ptTransparency:
@@ -780,6 +789,7 @@ bool cTemplateFunction::SetNumericParameter(eParamType type, string value) { param.SetGlobals(globals);
switch (type) {
case ptX:
+ case ptStartX:
case ptWidth:
case ptMenuItemWidth:
case ptScaleTvX:
@@ -787,6 +797,7 @@ bool cTemplateFunction::SetNumericParameter(eParamType type, string value) { param.SetHorizontal();
break;
case ptY:
+ case ptStartY:
case ptHeight:
case ptScaleTvY:
case ptScaleTvHeight:
@@ -1591,6 +1602,15 @@ string cTemplateFunction::GetParamName(eParamType pt) { case ptFadeTime:
name = "Fade Time";
break;
+ case ptShiftTime:
+ name = "Shift Time";
+ break;
+ case ptStartX:
+ name = "Startpos X";
+ break;
+ case ptStartY:
+ name = "Startpos Y";
+ break;
case ptDelay:
name = "Delay";
break;
diff --git a/libtemplate/templatefunction.h b/libtemplate/templatefunction.h index c781568..508615d 100644 --- a/libtemplate/templatefunction.h +++ b/libtemplate/templatefunction.h @@ -51,6 +51,9 @@ enum eParamType { ptMenuItemWidth, ptDetached, ptFadeTime, + ptShiftTime, + ptStartX, + ptStartY, ptDelay, ptImageType, ptPath, diff --git a/libtemplate/templateview.c b/libtemplate/templateview.c index ddd6094..2e7782b 100644 --- a/libtemplate/templateview.c +++ b/libtemplate/templateview.c @@ -667,6 +667,9 @@ void cTemplateView::SetFunctionDefinitions(void) { attributes.insert("detached"); attributes.insert("delay"); attributes.insert("fadetime"); + attributes.insert("shifttime"); + attributes.insert("startx"); + attributes.insert("starty"); attributes.insert("name"); attributes.insert("condition"); attributes.insert("mode"); |