summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkamel5 <vdr.kamel5 (at) gmx (dot) net>2019-11-12 14:53:22 +0100
committerkamel5 <vdr.kamel5 (at) gmx (dot) net>2022-06-25 13:00:13 +0200
commita87a1db7c2fc5ec4adba0f625501781b0c168338 (patch)
treefdfce62d93a90b1d16ed185be462ed52e471dbf5
parent00ea3fb5ffc0be40ea0bd90fb41aaa07cd0a301c (diff)
downloadvdr-plugin-tvguide-a87a1db7c2fc5ec4adba0f625501781b0c168338.tar.gz
vdr-plugin-tvguide-a87a1db7c2fc5ec4adba0f625501781b0c168338.tar.bz2
Remove SetHeader and SetFooter
-rw-r--r--recmenu.c12
-rw-r--r--recmenu.h2
-rw-r--r--recmenuview.h2
-rw-r--r--tvguideosd.c2
4 files changed, 2 insertions, 16 deletions
diff --git a/recmenu.c b/recmenu.c
index 77c4f56..e96e5e1 100644
--- a/recmenu.c
+++ b/recmenu.c
@@ -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)
diff --git a/recmenu.h b/recmenu.h
index c9afdab..2dbb1c2 100644
--- a/recmenu.h
+++ b/recmenu.h
@@ -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);
diff --git a/recmenuview.h b/recmenuview.h
index e1a9930..bd2aba5 100644
--- a/recmenuview.h
+++ b/recmenuview.h
@@ -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);
diff --git a/tvguideosd.c b/tvguideosd.c
index 952a5e5..df93469 100644
--- a/tvguideosd.c
+++ b/tvguideosd.c
@@ -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();