vdr-plugin-skindesigner/views/displaymenulistview.h

37 lines
1.7 KiB
C
Raw Normal View History

2014-09-27 09:25:14 +02:00
#ifndef __DISPLAYMENULISTVIEW_H
#define __DISPLAYMENULISTVIEW_H
#include "../libtemplate/template.h"
#include "view.h"
#include "displaymenuitemview.h"
class cDisplayMenuListView {
private:
cTemplateViewList *tmplList;
int itemCount;
cDisplayMenuItemView **menuItems;
int *tabs;
int *tabWidths;
bool oneColumn;
public:
cDisplayMenuListView(cTemplateViewList *tmplList, int count = -1);
virtual ~cDisplayMenuListView();
void Clear(void);
void SetTabs(int tab1, int tab2, int tab3, int tab4, int tab5);
int GetMaxItems(void) { return itemCount; };
int GetListWidth(void);
void AddDefaultMenuItem(int index, string *tabTexts, bool current, bool selectable);
void AddMainMenuItem(int index, const char *itemText, bool current, bool selectable);
void AddSetupMenuItem(int index, const char *itemText, bool current, bool selectable);
void AddSchedulesMenuItem(int index, const cEvent *event, const cChannel *channel, eTimerMatch timerMatch, eMenuCategory cat, bool isEpgSearchFav, bool current, bool selectable);
2014-09-27 09:25:14 +02:00
void AddChannelsMenuItem(int index, const cChannel *channel, bool withProvider, bool current, bool selectable);
void AddTimersMenuItem(int index, const cTimer *timer, bool current, bool selectable);
void AddRecordingMenuItem(int index, const cRecording *recording, int level, int total, int isNew, bool current, bool selectable);
2014-11-15 09:47:22 +01:00
void AddPluginMenuItem(map<string,string> *stringTokens, map<string,int> *intTokens, map<string, vector<map<string,string> > > *loopTokens, int index, bool current, bool selectable);
2014-09-27 09:25:14 +02:00
void AddTracksMenuItem(int index, const char *title, bool current, bool selectable);
void Render(void);
void Debug(void);
};
#endif //__DISPLAYMENULISTVIEW_H