Grouped the Setup parameters into several sub-menus

This commit is contained in:
Klaus Schmidinger
2002-03-16 10:03:04 +01:00
parent f9a3885ef2
commit d9cfa43d85
7 changed files with 382 additions and 88 deletions

19
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.20 2002/01/26 11:09:58 kls Exp $
* $Id: osd.c 1.21 2002/03/10 16:18:06 kls Exp $
*/
#include "osd.h"
@@ -102,6 +102,23 @@ cOsdMenu::~cOsdMenu()
Interface->Close();
}
const char *cOsdMenu::hk(const char *s)
{
static char buffer[32];
if (digit < 9) {
snprintf(buffer, sizeof(buffer), " %d %s", ++digit, s);
return buffer;
}
else
return s;
}
void cOsdMenu::SetHasHotkeys(void)
{
hasHotkeys = true;
digit = 0;
}
void cOsdMenu::SetStatus(const char *s)
{
delete status;