vdr-plugin-skindesigner/views/displaymenudetailview.h

53 lines
1.8 KiB
C
Raw Permalink Normal View History

2014-09-27 09:25:14 +02:00
#ifndef __DISPLAYMENUDETAILVIEW_H
#define __DISPLAYMENUDETAILVIEW_H
#include <list>
#include "../libtemplate/template.h"
#include "view.h"
#include "viewhelpers.h"
2014-09-27 09:25:14 +02:00
#include "displaymenutabview.h"
class cDisplayMenuDetailView : public cView, public cViewHelpers {
2014-09-27 09:25:14 +02:00
private:
bool detailViewInit;
2014-11-15 09:47:22 +01:00
bool isPluginTextView;
2014-09-27 09:25:14 +02:00
const cEvent *event;
const cRecording *recording;
const char *text;
cTemplateViewTab *currentTmplTab;
list<cTemplateViewTab*> activeTabs;
list<cTemplateViewTab*>::iterator atIt;
cDisplayMenuTabView *tabView;
map < string, string > stringTokens;
map < string, int > intTokens;
map < string, vector< map< string, string > > > loopTokens;
void SetTokens(void);
void InitTabs(void);
bool LoadReruns(vector< map< string, string > > *reruns);
void LoadRecordingInformation(void);
void SetEpgPictures(int eventId);
void SetRecordingImages(const char *recPath);
string StripXmlTag(string &Line, const char *Tag);
int ReadSizeVdr(const char *strPath);
void DrawHeader(void);
void DrawScrollbar(void);
void DrawTabLabels(void);
cTemplateViewTab *GetPrevTab(void);
cTemplateViewTab *GetNextTab(void);
public:
cDisplayMenuDetailView(cTemplateView *tmplDetailView);
virtual ~cDisplayMenuDetailView();
void SetEvent(const cEvent *event) { this->event = event; };
void SetRecording(const cRecording *recording) { this->recording = recording; };
void SetText(const char *text) { this->text = text; };
2014-11-15 09:47:22 +01:00
void SetPluginTokens(map<string,string> *plugStringTokens, map<string,int> *plugIntTokens, map<string,vector<map<string,string> > > *plugLoopTokens);
2014-09-27 09:25:14 +02:00
void Clear(void);
void Render(void);
void KeyLeft(void);
void KeyRight(void);
void KeyUp(void);
void KeyDown(void);
};
#endif //__DISPLAYMENUDETAILVIEW_H