The 'Recordings' menu now displays a hierarchical structure

This commit is contained in:
Klaus Schmidinger
2002-01-20 14:05:28 +01:00
parent e1ab9c1dac
commit fd839aae7b
11 changed files with 306 additions and 64 deletions

11
osd.c
View File

@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
* $Id: osd.c 1.18 2001/08/25 13:15:16 kls Exp $
* $Id: osd.c 1.19 2002/01/20 11:13:22 kls Exp $
*/
#include "osd.h"
@@ -150,6 +150,10 @@ void cOsdMenu::Add(cOsdItem *Item, bool Current)
void cOsdMenu::Display(void)
{
if (subMenu) {
subMenu->Display();
return;
}
visible = true;
Interface->Clear();
Interface->SetCols(cols);
@@ -179,6 +183,11 @@ void cOsdMenu::Display(void)
Interface->Status(status);
}
void cOsdMenu::SetCurrent(cOsdItem *Item)
{
current = Item ? Item->Index() : -1;
}
void cOsdMenu::RefreshCurrent(void)
{
cOsdItem *item = Get(current);