diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2015-01-15 10:51:37 +0100 |
commit | be9a6de0ef0bb282842f57a86d00075539f4156c (patch) | |
tree | 8b113d8bab495e6f812e4e01607ac92f53e3b841 /osdbase.c | |
parent | b3954aefd5290babbc2aa97b8f62b6112ff494f0 (diff) | |
download | vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.gz vdr-be9a6de0ef0bb282842f57a86d00075539f4156c.tar.bz2 |
Plugins can now implement the function SetMenuSortMode() in their skin objects derived from cSkinDisplayMenu, to get informed about the currently used sort mode
Diffstat (limited to 'osdbase.c')
-rw-r--r-- | osdbase.c | 9 |
1 files changed, 8 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 3.2 2013/09/22 14:01:17 kls Exp $ + * $Id: osdbase.c 3.3 2015/01/15 10:11:11 kls Exp $ */ #include "osdbase.h" @@ -86,6 +86,7 @@ cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4) displayMenuItems = 0; title = NULL; menuCategory = mcUnknown; + menuSortMode = msmUnknown; SetTitle(Title); SetCols(c0, c1, c2, c3, c4); first = 0; @@ -114,6 +115,11 @@ void cOsdMenu::SetMenuCategory(eMenuCategory MenuCategory) menuCategory = MenuCategory; } +void cOsdMenu::SetMenuSortMode(eMenuSortMode MenuSortMode) +{ + menuSortMode = MenuSortMode; +} + void cOsdMenu::SetDisplayMenu(void) { if (displayMenu) { @@ -224,6 +230,7 @@ void cOsdMenu::Display(void) cStatus::MsgOsdClear(); if (menuCategory != displayMenu->MenuCategory()) displayMenu->SetMenuCategory(menuCategory); + displayMenu->SetMenuSortMode(menuSortMode); displayMenuItems = displayMenu->MaxItems(); displayMenu->SetTabs(cols[0], cols[1], cols[2], cols[3], cols[4]);//XXX displayMenu->SetTitle(title); |