Remove SetHeader and SetFooter

This commit is contained in:
kamel5 2019-11-12 14:53:22 +01:00
parent 00ea3fb5ff
commit a87a1db7c2
4 changed files with 2 additions and 16 deletions

View File

@ -106,18 +106,6 @@ void cRecMenu::AddFooter(cRecMenuItem *footer) {
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) {
for (std::list<cRecMenuItem*>::iterator it = menuItems.begin(); it != menuItems.end(); it++) {
if (deleteMenuItems)

View File

@ -39,8 +39,6 @@ protected:
void CreatePixmap(void);
void AddHeader(cRecMenuItem *header);
void AddFooter(cRecMenuItem *footer);
void SetHeader(cRecMenuItem *header);
void SetFooter(cRecMenuItem *footer);
void ClearMenuItems(bool destructor = false);
void InitMenu(bool complete);
bool AddMenuItemInitial(cRecMenuItem *item, bool inFront = false);

View File

@ -32,7 +32,7 @@ private:
public:
cRecMenuView(void);
virtual ~cRecMenuView(void);
void SetFooter(cFooter *footer) { this->footer = footer; };
void AddFooter(cFooter *footer) { this->footer = footer; };
bool IsActive(void) { return active; };
void Start(const cEvent *event);
void StartFavorites(void);

View File

@ -116,7 +116,7 @@ void cTvGuideOsd::drawOsd() {
channelGroups = new cChannelGroups();
channelGroups->ReadChannelGroups();
footer = new cFooter(channelGroups);
recMenuView->SetFooter(footer);
recMenuView->AddFooter(footer);
footer->drawRedButton();
if (config.channelJumpMode == eNumJump) {
footer->drawGreenButton();