vdr-plugin-skindesigner/views/displaymenudetailview.h

51 lines
1.6 KiB
C
Raw 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 "displaymenutabview.h"
class cDisplayMenuDetailView : public cView {
private:
bool detailViewInit;
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 SetScraperTokens(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; };
void Clear(void);
void Render(void);
void KeyLeft(void);
void KeyRight(void);
void KeyUp(void);
void KeyDown(void);
};
#endif //__DISPLAYMENUDETAILVIEW_H