summaryrefslogtreecommitdiff
path: root/interface.h
diff options
context:
space:
mode:
authorKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
committerKlaus Schmidinger <vdr@tvdr.de>2004-05-16 10:35:36 +0200
commit5d99df7b7760c4a2b497c737a15b609008f6d56d (patch)
treea342f2f7465a73fe2bd63848d87566af8d646dd3 /interface.h
parent7aab06d8b1c6de59d06756d44c631984acd299b3 (diff)
downloadvdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.gz
vdr-5d99df7b7760c4a2b497c737a15b609008f6d56d.tar.bz2
Implemented 'skins' and 'themes'
Diffstat (limited to 'interface.h')
-rw-r--r--interface.h35
1 files changed, 4 insertions, 31 deletions
diff --git a/interface.h b/interface.h
index bcc29df0..2b3f979a 100644
--- a/interface.h
+++ b/interface.h
@@ -4,57 +4,30 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: interface.h 1.30 2003/10/05 09:42:53 kls Exp $
+ * $Id: interface.h 1.31 2004/05/01 11:11:13 kls Exp $
*/
#ifndef __INTERFACE_H
#define __INTERFACE_H
#include "config.h"
-#include "osdbase.h"
#include "remote.h"
+#include "skins.h"
#include "svdrp.h"
class cInterface {
-public:
- enum { MaxCols = 5 };
private:
- int width, height;
- int open;
- int cols[MaxCols];
bool interrupted;
cSVDRP *SVDRP;
- bool QueryKeys(cRemote *Remote);
- void HelpButton(int Index, const char *Text, eDvbColor FgColor, eDvbColor BgColor);
- eKeys Wait(int Seconds = 0, bool KeepChar = false);
+ bool QueryKeys(cRemote *Remote, cSkinDisplayMenu *DisplayMenu);
public:
cInterface(int SVDRPport = 0);
~cInterface();
- bool IsOpen(void) { return open > 0; }
- void Open(int NumCols = 0, int NumLines = 0);
- void Close(void);
bool HasSVDRPConnection(void) { return SVDRP && SVDRP->HasConnection(); }
void Interrupt(void) { interrupted = true; }
- int Width(void) { return width; }
- int Height(void) { return height; }
eKeys GetKey(bool Wait = true);
- void Clear(void);
- void ClearEol(int x, int y, eDvbColor Color = clrBackground);
- void Fill(int x, int y, int w, int h, eDvbColor color = clrBackground);
- void SetBitmap(int x, int y, const cBitmap &Bitmap);
- void Flush(void);
- void SetCols(int *c);
- const int *GetCols(void) { return cols; }
- eDvbFont SetFont(eDvbFont Font);
- char *WrapText(const char *Text, int Width, int *Height);
- void Write(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
- void WriteText(int x, int y, const char *s, eDvbColor FgColor = clrWhite, eDvbColor BgColor = clrBackground);
- 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);
+ eKeys Wait(int Seconds = 0, bool KeepChar = false);
bool Confirm(const char *s, int Seconds = 10, bool WaitForTimeout = false);
- void Help(const char *Red, const char *Green = NULL, const char *Yellow = NULL, const char *Blue = NULL);
void LearnKeys(void);
};