vdr-plugin-skindesigner/displaymenu.h

44 lines
2.2 KiB
C
Raw Normal View History

2014-09-27 09:25:14 +02:00
#ifndef __DISPLAYMENU_H
#define __DISPLAYMENU_H
2015-08-09 09:33:36 +02:00
#include "libskindesignerapi/skindesignerapi.h"
2016-01-26 18:32:38 +01:00
#include <vdr/skins.h>
#include "coreengine/viewdisplaymenu.h"
2014-09-27 09:25:14 +02:00
2015-04-02 15:09:41 +02:00
class cSDDisplayMenu : public skindesignerapi::ISDDisplayMenu {
2014-09-27 09:25:14 +02:00
private:
2016-01-26 18:32:38 +01:00
cViewMenu *view;
bool ok;
void SetCurrentRecording(void);
2014-09-27 09:25:14 +02:00
public:
2016-01-26 18:32:38 +01:00
cSDDisplayMenu(cViewMenu *menuView);
2014-09-27 09:25:14 +02:00
virtual ~cSDDisplayMenu();
virtual void Scroll(bool Up, bool Page);
virtual int MaxItems(void);
virtual void Clear(void);
virtual void SetMenuCategory(eMenuCategory MenuCat);
virtual void SetMenuSortMode(eMenuSortMode MenuSortMode);
2015-08-08 11:04:15 +02:00
virtual eMenuOrientation MenuOrientation(void);
2016-01-26 18:32:38 +01:00
virtual void SetPluginMenu(int plugId, int menuId, int type, bool init);
2014-09-27 09:25:14 +02:00
virtual void SetTitle(const char *Title);
virtual void SetButtons(const char *Red, const char *Green = NULL, const char *Yellow = NULL, const char *Blue = NULL);
virtual void SetMessage(eMessageType Type, const char *Text);
virtual bool SetItemEvent(const cEvent *Event, int Index, bool Current, bool Selectable, const cChannel *Channel, bool WithDate, eTimerMatch TimerMatch);
virtual bool SetItemTimer(const cTimer *Timer, int Index, bool Current, bool Selectable);
virtual bool SetItemChannel(const cChannel *Channel, int Index, bool Current, bool Selectable, bool WithProvider);
virtual bool SetItemRecording(const cRecording *Recording, int Index, bool Current, bool Selectable, int Level, int Total, int New);
2016-01-26 18:32:38 +01:00
virtual void SetItem(const char *Text, int Index, bool Current, bool Selectable);
virtual bool SetItemPlugin(skindesignerapi::cTokenContainer *tk, int Index, bool Current, bool Selectable);
2014-09-27 09:25:14 +02:00
virtual void SetScrollbar(int Total, int Offset);
virtual void SetEvent(const cEvent *Event);
virtual void SetRecording(const cRecording *Recording);
virtual void SetText(const char *Text, bool FixedFont);
2016-01-26 18:32:38 +01:00
virtual bool SetPluginText(skindesignerapi::cTokenContainer *tk);
2014-09-27 09:25:14 +02:00
virtual void Flush(void);
virtual void SetTabs(int Tab1, int Tab2 = 0, int Tab3 = 0, int Tab4 = 0, int Tab5 = 0);
virtual int GetTextAreaWidth(void) const;
virtual const cFont *GetTextAreaFont(bool FixedFont) const;
};
#endif //__DISPLAYMENU_H