From 571686d90996968c01a8bc560659e364efab2942 Mon Sep 17 00:00:00 2001 From: Klaus Schmidinger Date: Sat, 11 Mar 2000 11:22:37 +0100 Subject: Menu uses colors; support for RGYB buttons; fixed DEBUG_REMOTE; Add, Del and Move for channels and timers; basic record/play file handling --- interface.h | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) (limited to 'interface.h') diff --git a/interface.h b/interface.h index e387ab91..9322cf39 100644 --- a/interface.h +++ b/interface.h @@ -4,13 +4,14 @@ * See the main source file 'osm.c' for copyright information and * how to reach the author. * - * $Id: interface.h 1.1 2000/02/19 13:36:48 kls Exp $ + * $Id: interface.h 1.2 2000/02/27 14:54:02 kls Exp $ */ #ifndef __INTERFACE_H #define __INTERFACE_H #include "config.h" +#include "dvbapi.h" class cInterface { public: @@ -20,7 +21,8 @@ private: int cols[MaxCols]; unsigned int GetCh(void); void QueryKeys(void); - void Write(int x, int y, char *s); + void HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvbColor BgColor); + eKeys Wait(int Seconds = 1); public: cInterface(void); void Init(void); @@ -28,12 +30,18 @@ public: void Close(void); eKeys GetKey(void); void Clear(void); + void ClearEol(int x, int y, eDvbColor Color = clrBackground); void SetCols(int *c); - void WriteText(int x, int y, char *s, bool Current = false); - void Info(char *s); - void Error(char *s); + void Write(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground); + void WriteText(int x, int y, const char *s, bool Current = false); + void Title(const char *s); + void Status(const char *s, eDvbColor FgColor = clrBlack, eDvbColor BgColor = clrCyan); + void Info(const char *s); + void Error(const char *s); + bool Confirm(const char *s); + void Help(const char *Red, const char *Green = NULL, const char *Yellow = NULL, const char *Blue = NULL); void LearnKeys(void); - void DisplayChannel(int Number, char *Name); + void DisplayChannel(int Number, const char *Name); }; extern cInterface Interface; -- cgit v1.2.3