diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2012-04-08 11:52:56 +0200 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2012-04-08 11:52:56 +0200 |
commit | 170e05e1e651a46740ab231e43f3d33b805926ec (patch) | |
tree | fb7ac1d5c5bfd275f4a1e6a4bd5256ac65eb55d0 /osdbase.c | |
parent | c24a89156857e91787e8a1ccaaffc085de41ae04 (diff) | |
download | vdr-170e05e1e651a46740ab231e43f3d33b805926ec.tar.gz vdr-170e05e1e651a46740ab231e43f3d33b805926ec.tar.bz2 |
Skins can now inquire the menu category for which their cSkinDisplayMenu is currently being used
Diffstat (limited to 'osdbase.c')
-rw-r--r-- | osdbase.c | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: osdbase.c 2.4 2012/03/02 15:49:57 kls Exp $ + * $Id: osdbase.c 2.5 2012/04/08 11:19:46 kls Exp $ */ #include "osdbase.h" @@ -80,6 +80,7 @@ cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4) digit = 0; hasHotkeys = false; title = NULL; + menuCategory = mcUnknown; SetTitle(Title); SetCols(c0, c1, c2, c3, c4); first = 0; @@ -103,6 +104,11 @@ cOsdMenu::~cOsdMenu() DELETENULL(displayMenu); } +void cOsdMenu::SetMenuCategory(eMenuCategory MenuCategory) +{ + menuCategory = MenuCategory; +} + void cOsdMenu::SetDisplayMenu(void) { if (displayMenu) { @@ -212,6 +218,8 @@ void cOsdMenu::Display(void) displayMenu->SetMessage(mtStatus, NULL); displayMenu->Clear(); cStatus::MsgOsdClear(); + if (menuCategory != displayMenu->MenuCategory()) + displayMenu->SetMenuCategory(menuCategory); displayMenu->SetTabs(cols[0], cols[1], cols[2], cols[3], cols[4]);//XXX displayMenu->SetTitle(title); cStatus::MsgOsdTitle(title); |