SASC-NG
DVBSoftCAM

osdbase.cpp

Go to the documentation of this file.
00001 /*
00002  * osdbase.c: Basic interface to the On Screen Display
00003  *
00004  * See the main source file 'vdr.c' for copyright information and
00005  * how to reach the author.
00006  *
00007  * $Id: osdbase.c 1.14 2004/07/17 13:29:13 kls Exp $
00008  */
00009 
00010 #include "include/vdr/osdbase.h"
00011 #include <string.h>
00012 #include "include/vdr/device.h"
00013 #include "include/vdr/i18n.h"
00014 #include "include/vdr/remote.h"
00015 #include "include/vdr/status.h"
00016 
00017 // --- cOsdItem --------------------------------------------------------------
00018 
00019 cOsdItem::cOsdItem(eOSState State)
00020 {
00021   text = NULL;
00022   state = State;
00023   selectable = true;
00024   fresh = true;
00025 }
00026 
00027 cOsdItem::cOsdItem(const char *Text, eOSState State, bool Selectable)
00028 {
00029   text = NULL;
00030   state = State;
00031   selectable = Selectable;
00032   fresh = true;
00033   SetText(Text);
00034 }
00035 
00036 cOsdItem::~cOsdItem()
00037 {
00038   free(text);
00039 }
00040 
00041 void cOsdItem::SetText(const char *Text, bool Copy)
00042 {
00043   free(text);
00044   text = Copy ? strdup(Text) : (char *)Text; // text assumes ownership!
00045 }
00046 
00047 void cOsdItem::SetSelectable(bool Selectable)
00048 {
00049   selectable = Selectable;
00050 }
00051 
00052 void cOsdItem::SetFresh(bool Fresh)
00053 {
00054   fresh = Fresh;
00055 }
00056 
00057 eOSState cOsdItem::ProcessKey(eKeys Key)
00058 {
00059   return Key == kOk ? state : osUnknown;
00060 }
00061 
00062 void cOsdObject::Show(void)
00063 {
00064 }
00065 // --- cOsdMenu --------------------------------------------------------------
00066 
00067 //cSkinDisplayMenu *cOsdMenu::displayMenu = NULL;
00068 //int cOsdMenu::displayMenuCount = 0;
00069 //int cOsdMenu::displayMenuItems = 0;//XXX dynamic???
00070 
00071 cOsdMenu::cOsdMenu(const char *Title, int c0, int c1, int c2, int c3, int c4)
00072 {
00073 }
00074 
00075 cOsdMenu::~cOsdMenu()
00076 {
00077 }
00078 
00079 const char *cOsdMenu::hk(const char *s)
00080 {
00081   return NULL;
00082 }
00083 
00084 void cOsdMenu::SetStatus(const char *s)
00085 {
00086 }
00087 
00088 void cOsdMenu::SetTitle(const char *Title)
00089 {
00090 }
00091 
00092 void cOsdMenu::SetHelp(const char *Red, const char *Green, const char *Yellow, const char *Blue)
00093 {
00094 }
00095 
00096 void cOsdMenu::Del(int Index)
00097 {
00098 }
00099 
00100 void cOsdMenu::Add(cOsdItem *Item, bool Current, cOsdItem *After)
00101 {
00102 }
00103 
00104 void cOsdMenu::Ins(cOsdItem *Item, bool Current, cOsdItem *Before)
00105 {
00106 }
00107 
00108 void cOsdMenu::Display(void)
00109 {
00110 }
00111 
00112 void cOsdMenu::SetCurrent(cOsdItem *Item)
00113 {
00114 }
00115 
00116 void cOsdMenu::RefreshCurrent(void)
00117 {
00118 }
00119 
00120 void cOsdMenu::DisplayCurrent(bool Current)
00121 {
00122 }
00123 
00124 void cOsdMenu::Clear(void)
00125 {
00126 }
00127 
00128 bool cOsdMenu::SelectableItem(int idx)
00129 {
00130   return true;
00131 }
00132 
00133 void cOsdMenu::CursorUp(void)
00134 {
00135 }
00136 
00137 void cOsdMenu::CursorDown(void)
00138 {
00139 }
00140 
00141 void cOsdMenu::PageUp(void)
00142 {
00143 }
00144 
00145 void cOsdMenu::PageDown(void) 
00146 {
00147 }
00148 
00149 void cOsdMenu::Mark(void)
00150 {
00151 }
00152 
00153 eOSState cOsdMenu::HotKey(eKeys Key)
00154 {
00155   return osUnknown;
00156 }
00157 
00158 eOSState cOsdMenu::AddSubMenu(cOsdMenu *SubMenu)
00159 {
00160   return osUnknown;
00161 }
00162 
00163 eOSState cOsdMenu::CloseSubMenu()
00164 {
00165   return osUnknown;
00166 }
00167 
00168 eOSState cOsdMenu::ProcessKey(eKeys Key)
00169 {
00170   return osUnknown;
00171 }
00172 
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines