diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2002-03-16 10:03:04 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2002-03-16 10:03:04 +0100 |
commit | d9cfa43d8529ea9422771d5cd744d5e20a3b5c93 (patch) | |
tree | 5ff8bb2011c37f4551cd18c16c054e204168be52 /osd.c | |
parent | f9a3885ef2d21cef30180f2a90a0a305981a27c6 (diff) | |
download | vdr-d9cfa43d8529ea9422771d5cd744d5e20a3b5c93.tar.gz vdr-d9cfa43d8529ea9422771d5cd744d5e20a3b5c93.tar.bz2 |
Grouped the Setup parameters into several sub-menus
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 19 |
1 files changed, 18 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.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; |