mirror of
https://projects.vdr-developer.org/git/vdr-plugin-tvguide.git
synced 2023-10-05 15:01:48 +02:00
Remove SetHeader and SetFooter
This commit is contained in:
parent
00ea3fb5ff
commit
a87a1db7c2
12
recmenu.c
12
recmenu.c
@ -106,18 +106,6 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) {
|
|||||||
height += footerHeight;
|
height += footerHeight;
|
||||||
}
|
}
|
||||||
|
|
||||||
void cRecMenu::SetHeader(cRecMenuItem *header) {
|
|
||||||
this->header = header;
|
|
||||||
headerHeight = header->GetHeight();
|
|
||||||
height += headerHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
void cRecMenu::SetFooter(cRecMenuItem *footer) {
|
|
||||||
this->footer = footer;
|
|
||||||
footerHeight = footer->GetHeight();
|
|
||||||
height += footerHeight;
|
|
||||||
}
|
|
||||||
|
|
||||||
void cRecMenu::ClearMenuItems(bool destructor) {
|
void cRecMenu::ClearMenuItems(bool destructor) {
|
||||||
for (std::list<cRecMenuItem*>::iterator it = menuItems.begin(); it != menuItems.end(); it++) {
|
for (std::list<cRecMenuItem*>::iterator it = menuItems.begin(); it != menuItems.end(); it++) {
|
||||||
if (deleteMenuItems)
|
if (deleteMenuItems)
|
||||||
|
@ -39,8 +39,6 @@ protected:
|
|||||||
void CreatePixmap(void);
|
void CreatePixmap(void);
|
||||||
void AddHeader(cRecMenuItem *header);
|
void AddHeader(cRecMenuItem *header);
|
||||||
void AddFooter(cRecMenuItem *footer);
|
void AddFooter(cRecMenuItem *footer);
|
||||||
void SetHeader(cRecMenuItem *header);
|
|
||||||
void SetFooter(cRecMenuItem *footer);
|
|
||||||
void ClearMenuItems(bool destructor = false);
|
void ClearMenuItems(bool destructor = false);
|
||||||
void InitMenu(bool complete);
|
void InitMenu(bool complete);
|
||||||
bool AddMenuItemInitial(cRecMenuItem *item, bool inFront = false);
|
bool AddMenuItemInitial(cRecMenuItem *item, bool inFront = false);
|
||||||
|
@ -32,7 +32,7 @@ private:
|
|||||||
public:
|
public:
|
||||||
cRecMenuView(void);
|
cRecMenuView(void);
|
||||||
virtual ~cRecMenuView(void);
|
virtual ~cRecMenuView(void);
|
||||||
void SetFooter(cFooter *footer) { this->footer = footer; };
|
void AddFooter(cFooter *footer) { this->footer = footer; };
|
||||||
bool IsActive(void) { return active; };
|
bool IsActive(void) { return active; };
|
||||||
void Start(const cEvent *event);
|
void Start(const cEvent *event);
|
||||||
void StartFavorites(void);
|
void StartFavorites(void);
|
||||||
|
@ -116,7 +116,7 @@ void cTvGuideOsd::drawOsd() {
|
|||||||
channelGroups = new cChannelGroups();
|
channelGroups = new cChannelGroups();
|
||||||
channelGroups->ReadChannelGroups();
|
channelGroups->ReadChannelGroups();
|
||||||
footer = new cFooter(channelGroups);
|
footer = new cFooter(channelGroups);
|
||||||
recMenuView->SetFooter(footer);
|
recMenuView->AddFooter(footer);
|
||||||
footer->drawRedButton();
|
footer->drawRedButton();
|
||||||
if (config.channelJumpMode == eNumJump) {
|
if (config.channelJumpMode == eNumJump) {
|
||||||
footer->drawGreenButton();
|
footer->drawGreenButton();
|
||||||
|
Loading…
Reference in New Issue
Block a user