From c5edc10fbd57d17e774a07b659996bdffe16242c Mon Sep 17 00:00:00 2001 From: louis Date: Sun, 3 May 2015 11:22:01 +0200 Subject: possibility to move viewelements when starting view --- libtemplate/templatefunction.c | 20 ++++++++++++++++++++ libtemplate/templatefunction.h | 3 +++ libtemplate/templateview.c | 3 +++ 3 files changed, 26 insertions(+) (limited to 'libtemplate') 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 > 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"); -- cgit v1.2.3