possibility to move viewelements when starting view

This commit is contained in:
louis
2015-05-03 11:22:01 +02:00
parent 918a331de3
commit c5edc10fbd
11 changed files with 168 additions and 20 deletions

View File

@@ -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;

View File

@@ -51,6 +51,9 @@ enum eParamType {
ptMenuItemWidth,
ptDetached,
ptFadeTime,
ptShiftTime,
ptStartX,
ptStartY,
ptDelay,
ptImageType,
ptPath,

View File

@@ -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");