summaryrefslogtreecommitdiff
path: root/osdbase.h
diff options
context:
space:
mode:
Diffstat (limited to 'osdbase.h')
-rw-r--r--osdbase.h11
1 files changed, 7 insertions, 4 deletions
diff --git a/osdbase.h b/osdbase.h
index 0a94f4a8..07d222d5 100644
--- a/osdbase.h
+++ b/osdbase.h
@@ -4,7 +4,7 @@
* See the main source file 'vdr.c' for copyright information and
* how to reach the author.
*
- * $Id: osdbase.h 1.14 2006/01/05 15:35:06 kls Exp $
+ * $Id: osdbase.h 1.15 2007/01/07 14:41:32 kls Exp $
*/
#ifndef __OSDBASE_H
@@ -70,12 +70,13 @@ class cOsdObject {
friend class cOsdMenu;
private:
bool isMenu;
-protected:
bool needsFastResponse;
+protected:
+ void SetNeedsFastResponse(bool NeedsFastResponse) { needsFastResponse = NeedsFastResponse; }
public:
cOsdObject(bool FastResponse = false) { isMenu = false; needsFastResponse = FastResponse; }
virtual ~cOsdObject() {}
- bool NeedsFastResponse(void) { return needsFastResponse; }
+ virtual bool NeedsFastResponse(void) { return needsFastResponse; }
bool IsMenu(void) { return isMenu; }
virtual void Show(void);
virtual eOSState ProcessKey(eKeys Key) { return osUnknown; }
@@ -98,12 +99,13 @@ protected:
cSkinDisplayMenu *DisplayMenu(void) { return displayMenu; }
const char *hk(const char *s);
void SetCols(int c0, int c1 = 0, int c2 = 0, int c3 = 0, int c4 = 0);
- void SetHasHotkeys(void);
+ void SetHasHotkeys(bool HasHotkeys = true);
virtual void Clear(void);
bool SelectableItem(int idx);
void SetCurrent(cOsdItem *Item);
void RefreshCurrent(void);
void DisplayCurrent(bool Current);
+ void DisplayItem(cOsdItem *Item);
void CursorUp(void);
void CursorDown(void);
void PageUp(void);
@@ -120,6 +122,7 @@ protected:
public:
cOsdMenu(const char *Title, int c0 = 0, int c1 = 0, int c2 = 0, int c3 = 0, int c4 = 0);
virtual ~cOsdMenu();
+ virtual bool NeedsFastResponse(void) { return subMenu ? subMenu->NeedsFastResponse() : cOsdObject::NeedsFastResponse(); }
int Current(void) { return current; }
void Add(cOsdItem *Item, bool Current = false, cOsdItem *After = NULL);
void Ins(cOsdItem *Item, bool Current = false, cOsdItem *Before = NULL);