mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
85 lines
2.9 KiB
C++
85 lines
2.9 KiB
C++
#ifndef __DISPLAYMENUITEMCURRENTVIEW_H
|
|
#define __DISPLAYMENUITEMCURRENTVIEW_H
|
|
|
|
#include "../libtemplate/template.h"
|
|
#include "view.h"
|
|
|
|
class cDisplayMenuItemCurrentView : public cViewElement {
|
|
private:
|
|
protected:
|
|
cRect posMenuItem;
|
|
void SetTokensPosMenuItem(void);
|
|
void SetScraperPoster(const cEvent *event, const cRecording *recording=NULL);
|
|
public:
|
|
cDisplayMenuItemCurrentView(cTemplateViewElement *tmplCurrent);
|
|
virtual ~cDisplayMenuItemCurrentView();
|
|
void SetPosMenuItem(cRect &pos);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentMainView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
string number;
|
|
string label;
|
|
string icon;
|
|
public:
|
|
cDisplayMenuItemCurrentMainView(cTemplateViewElement *tmplCurrent, string number, string label, string icon);
|
|
virtual ~cDisplayMenuItemCurrentMainView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentSchedulesView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
const cEvent *event;
|
|
const cChannel *channel;
|
|
eTimerMatch timerMatch;
|
|
eMenuCategory cat;
|
|
bool isEpgSearchFav;
|
|
void ReadSchedules(vector< map<string,string> > *schedulesTokens);
|
|
public:
|
|
cDisplayMenuItemCurrentSchedulesView(cTemplateViewElement *tmplCurrent, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat, bool isEpgSearchFav);
|
|
virtual ~cDisplayMenuItemCurrentSchedulesView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentChannelView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
const cChannel *channel;
|
|
void ReadSchedules(vector< map<string,string> > *schedulesTokens);
|
|
public:
|
|
cDisplayMenuItemCurrentChannelView(cTemplateViewElement *tmplCurrent, const cChannel *channel);
|
|
virtual ~cDisplayMenuItemCurrentChannelView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentTimerView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
const cTimer *timer;
|
|
public:
|
|
cDisplayMenuItemCurrentTimerView(cTemplateViewElement *tmplCurrent, const cTimer *timer);
|
|
virtual ~cDisplayMenuItemCurrentTimerView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentRecordingView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
const cRecording *recording;
|
|
int level;
|
|
int total;
|
|
int newRecs;
|
|
public:
|
|
cDisplayMenuItemCurrentRecordingView(cTemplateViewElement *tmplCurrent, const cRecording *recording, int level, int total, int newRecs);
|
|
virtual ~cDisplayMenuItemCurrentRecordingView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
class cDisplayMenuItemCurrentPluginView: public cDisplayMenuItemCurrentView {
|
|
private:
|
|
map<string,vector<map<string,string> > > loopTokens;
|
|
public:
|
|
cDisplayMenuItemCurrentPluginView(cTemplateViewElement *tmplCurrent, map <string,string> &plugStringTokens, map <string,int> &plugIntTokens, map<string,vector<map<string,string> > > &pluginLoopTokens);
|
|
virtual ~cDisplayMenuItemCurrentPluginView() {};
|
|
bool Render(void);
|
|
};
|
|
|
|
#endif //__DISPLAYMENUITEMCURRENTVIEW_H
|