summaryrefslogtreecommitdiff
path: root/libtemplate/templateloopfunction.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2014-09-27 09:25:14 +0200
committerlouis <louis.braun@gmx.de>2014-09-27 09:25:14 +0200
commitb0509b5182b6e0d04f05e6b3d5676b0d21f51966 (patch)
tree22b302342f22843e0815eb5f516c85f1478cbf0b /libtemplate/templateloopfunction.h
downloadvdr-plugin-skindesigner-0.0.1.tar.gz
vdr-plugin-skindesigner-0.0.1.tar.bz2
initial commit version 0.0.10.0.1
Diffstat (limited to 'libtemplate/templateloopfunction.h')
-rw-r--r--libtemplate/templateloopfunction.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/libtemplate/templateloopfunction.h b/libtemplate/templateloopfunction.h
new file mode 100644
index 0000000..5335279
--- /dev/null
+++ b/libtemplate/templateloopfunction.h
@@ -0,0 +1,33 @@
+#ifndef __TEMPLATELOOPFUNCTION_H
+#define __TEMPLATELOOPFUNCTION_H
+
+#include "templatefunction.h"
+
+using namespace std;
+
+// --- cTemplateLoopFunction -------------------------------------------------------------
+
+class cTemplateLoopFunction : public cTemplateFunction {
+private:
+ vector<cTemplateFunction*> functions;
+ vector<cTemplateFunction*>::iterator funcIt;
+ void ReplaceWidthFunctions(void);
+ void ReplaceHeightFunctions(void);
+public:
+ cTemplateLoopFunction(void);
+ virtual ~cTemplateLoopFunction(void);
+ void AddFunction(string name, vector<pair<string, string> > &params);
+ void CalculateLoopFuncParameters(void);
+ void InitIterator(void);
+ cTemplateFunction *GetNextFunction(void);
+ void ClearDynamicParameters(void);
+ void ParseDynamicParameters(map <string,string> *tokens);
+ int GetLoopElementsWidth(void);
+ int GetLoopElementsHeight(void);
+ int GetContainerWidth(void) { return containerWidth; };
+ int GetContainerHeight(void) { return containerHeight; };
+ bool Ready(void);
+ void Debug(void);
+};
+
+#endif //__TEMPLATELOOPFUNCTION_H