2013-01-17 13:16:44 +01:00
|
|
|
#ifndef __TVGUIDE_FOOTER_H
|
|
|
|
#define __TVGUIDE_FOOTER_H
|
|
|
|
|
2013-12-07 15:51:50 +01:00
|
|
|
#include <vdr/osd.h>
|
|
|
|
#include "channelgroups.h"
|
|
|
|
|
2013-01-17 13:16:44 +01:00
|
|
|
// --- cFooter -------------------------------------------------------------
|
|
|
|
|
|
|
|
class cFooter {
|
|
|
|
private:
|
2013-05-26 11:38:05 +02:00
|
|
|
cPixmap *footer;
|
2013-01-17 14:33:53 +01:00
|
|
|
int buttonY;
|
2013-07-19 15:42:16 +02:00
|
|
|
int positionButtons[4];
|
2013-05-31 13:58:22 +02:00
|
|
|
cChannelGroups *channelGroups;
|
|
|
|
int currentGroup;
|
2013-07-19 15:42:16 +02:00
|
|
|
void SetButtonPositions(void);
|
2013-12-21 11:25:03 +01:00
|
|
|
void DrawButton(const char *text, tColor color, tColor borderColor, eOsdElementType buttonType, int num);
|
2014-01-11 16:53:23 +01:00
|
|
|
void ClearButton(int num);
|
2013-01-17 13:16:44 +01:00
|
|
|
public:
|
2013-05-31 13:58:22 +02:00
|
|
|
cFooter(cChannelGroups *channelGroups);
|
2013-05-26 11:38:05 +02:00
|
|
|
virtual ~cFooter(void);
|
|
|
|
void drawRedButton();
|
|
|
|
void drawGreenButton();
|
2013-05-31 13:58:22 +02:00
|
|
|
void drawGreenButton(const char *text);
|
2014-01-11 16:53:23 +01:00
|
|
|
void drawYellowButton();
|
2013-05-31 13:58:22 +02:00
|
|
|
void drawYellowButton(const char *text);
|
2014-01-14 18:00:32 +01:00
|
|
|
void drawBlueButton(bool detailedEPG = false);
|
2014-01-11 16:53:23 +01:00
|
|
|
void UpdateGroupButtons(const cChannel *channel, bool force = false);
|
2014-01-25 15:04:03 +01:00
|
|
|
void SetDetailedViewMode(bool fromRecMenu = false);
|
2014-01-11 16:53:23 +01:00
|
|
|
void LeaveDetailedViewMode(const cChannel *channel);
|
2013-01-17 13:16:44 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif //__TVGUIDE_FOOTER_H
|