diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-20 14:05:28 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-01-20 14:05:28 +0100 |
commit | fd839aae7b0a443db6f0eab59fcc93f03aafd0ba (patch) | |
tree | c4930ee8c1ae7e29937ed396f6778153bb47474c /osd.c | |
parent | e1ab9c1dacad9f2b3ba3a083b2b8b388289c4b72 (diff) | |
download | vdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.gz vdr-fd839aae7b0a443db6f0eab59fcc93f03aafd0ba.tar.bz2 |
The 'Recordings' menu now displays a hierarchical structure
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 11 |
1 files changed, 10 insertions, 1 deletions
@@ -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); |