summaryrefslogtreecommitdiff
path: root/libtemplate/templateviewelement.h
diff options
context:
space:
mode:
authorlouis <louis.braun@gmx.de>2015-07-07 17:58:10 +0200
committerlouis <louis.braun@gmx.de>2015-07-07 17:58:10 +0200
commit5a6fb850b35bc63325cac482daaa70b00b0e8e8b (patch)
treec46bea143641a4a0f4461b971ae2cd03e10ac76b /libtemplate/templateviewelement.h
parent50fe393724a265341b1745dd401db9d93f46f354 (diff)
downloadvdr-plugin-skindesigner-5a6fb850b35bc63325cac482daaa70b00b0e8e8b.tar.gz
vdr-plugin-skindesigner-5a6fb850b35bc63325cac482daaa70b00b0e8e8b.tar.bz2
immplemented areacontainers to group areas
Diffstat (limited to 'libtemplate/templateviewelement.h')
-rw-r--r--libtemplate/templateviewelement.h18
1 files changed, 11 insertions, 7 deletions
diff --git a/libtemplate/templateviewelement.h b/libtemplate/templateviewelement.h
index 20c0906..cbc2911 100644
--- a/libtemplate/templateviewelement.h
+++ b/libtemplate/templateviewelement.h
@@ -91,24 +91,28 @@ protected:
int containerY;
int containerWidth;
int containerHeight;
- vector<cTemplatePixmap*> viewPixmaps;
- vector<cTemplatePixmap*>::iterator pixIterator;
+ vector<cTemplatePixmapNode*> viewPixmapNodes;
+ vector<cTemplatePixmapNode*>::iterator pixmapNodeIterator;
+ cTemplatePixmap *pixmapIterator;
+ cTemplatePixmapContainer *currentNode;
int pixOffset;
public:
cTemplateViewElement(void);
virtual ~cTemplateViewElement(void);
+ void SetContainer(int x, int y, int width, int height);
+ virtual void SetGlobals(cGlobals *globals);
void SetParameters(vector<pair<string, string> > &params);
bool CalculateParameters(void);
virtual bool CalculatePixmapParameters(void);
bool CalculatePixmapParametersList(int orientation, int numElements);
+ void AddPixmap(cTemplatePixmapNode *pix) { viewPixmapNodes.push_back(pix); };
int GetNumericParameter(eParamType type);
- void AddPixmap(cTemplatePixmap *pix) { viewPixmaps.push_back(pix); };
- virtual void SetGlobals(cGlobals *globals);
- void SetContainer(int x, int y, int width, int height);
void SetPixOffset(int offset) { pixOffset = offset; };
int GetPixOffset(void) { return pixOffset; };
- virtual int GetNumPixmaps(void) { return viewPixmaps.size(); };
- void InitIterator(void);
+ virtual int GetNumPixmaps(void);
+ void InitPixmapNodeIterator(void);
+ cTemplatePixmapNode *GetNextPixmapNode(void);
+ void InitPixmapIterator(void);
cTemplatePixmap *GetNextPixmap(void);
cTemplateFunction *GetFunction(string name);
bool Execute(void);