diff options
author | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-29 13:17:22 +0100 |
---|---|---|
committer | Klaus Schmidinger <vdr@tvdr.de> | 2000-10-29 13:17:22 +0100 |
commit | e6999e9b3a5f584de2f40ca833effe5ff5636f6a (patch) | |
tree | ffbbe5fd379916a43e9c887783b34ee34563a77f /osd.c | |
parent | 92d3e366badb370e446156c0896103a578a24af0 (diff) | |
download | vdr-e6999e9b3a5f584de2f40ca833effe5ff5636f6a.tar.gz vdr-e6999e9b3a5f584de2f40ca833effe5ff5636f6a.tar.bz2 |
Implemented 'Schedules' menu
Diffstat (limited to 'osd.c')
-rw-r--r-- | osd.c | 12 |
1 files changed, 9 insertions, 3 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.9 2000/10/08 12:20:34 kls Exp $ + * $Id: osd.c 1.10 2000/10/28 09:33:47 kls Exp $ */ #include "osd.h" @@ -24,7 +24,7 @@ cOsdItem::cOsdItem(eOSState State) bgColor = clrBackground; } -cOsdItem::cOsdItem(char *Text, eOSState State) +cOsdItem::cOsdItem(const char *Text, eOSState State) { text = NULL; offset = -1; @@ -74,7 +74,7 @@ eOSState cOsdItem::ProcessKey(eKeys Key) // --- cOsdMenu -------------------------------------------------------------- -cOsdMenu::cOsdMenu(char *Title, int c0, int c1, int c2, int c3, int c4) +cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4) { visible = false; title = strdup(Title); @@ -108,6 +108,12 @@ void cOsdMenu::SetStatus(const char *s) Interface->Status(status); } +void cOsdMenu::SetTitle(const char *Title, bool Copy) +{ + delete title; + title = Copy ? strdup(Title) : Title; +} + void cOsdMenu::SetHelp(const char *Red, const char *Green, const char *Yellow, const char *Blue) { // strings are NOT copied - must be constants!!! |