mirror of
https://github.com/vdr-projects/vdr.git
synced 2025-03-01 10:50:46 +00:00
Implemented 'Schedules' menu
This commit is contained in:
12
osd.c
12
osd.c
@@ -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!!!
|
||||
|
||||
Reference in New Issue
Block a user