Implemented 'Schedules' menu

This commit is contained in:
Klaus Schmidinger
2000-10-29 13:17:22 +01:00
parent 92d3e366ba
commit e6999e9b3a
20 changed files with 1948 additions and 558 deletions

12
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.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!!!