cOsdMenu Class Reference

#include <osdbase.h>

Inheritance diagram for cOsdMenu:

Inheritance graph
[legend]
Collaboration diagram for cOsdMenu:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 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)
int Current (void) const
void Add (cOsdItem *Item, bool Current=false, cOsdItem *After=NULL)
void Ins (cOsdItem *Item, bool Current=false, cOsdItem *Before=NULL)
virtual void Display (void)
virtual eOSState ProcessKey (eKeys Key)

Protected Member Functions

void SetDisplayMenu (void)
cSkinDisplayMenuDisplayMenu (void)
const char * hk (const char *s)
void SetCols (int c0, int c1=0, int c2=0, int c3=0, int c4=0)
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)
void PageDown (void)
void Mark (void)
eOSState HotKey (eKeys Key)
eOSState AddSubMenu (cOsdMenu *SubMenu)
eOSState CloseSubMenu ()
bool HasSubMenu (void)
void SetStatus (const char *s)
void SetTitle (const char *Title)
void SetHelp (const char *Red, const char *Green=NULL, const char *Yellow=NULL, const char *Blue=NULL)
virtual void Del (int Index)

Private Attributes

char * title
int cols [cSkinDisplayMenu::MaxTabs]
int first
int current
int marked
cOsdMenusubMenu
const char * helpRed
const char * helpGreen
const char * helpYellow
const char * helpBlue
char * status
int digit
bool hasHotkeys

Static Private Attributes

static cSkinDisplayMenudisplayMenu = NULL
static int displayMenuCount = 0
static int displayMenuItems = 0


Detailed Description

Definition at line 85 of file osdbase.h.


Constructor & Destructor Documentation

cOsdMenu::cOsdMenu ( const char *  Title,
int  c0 = 0,
int  c1 = 0,
int  c2 = 0,
int  c3 = 0,
int  c4 = 0 
)

Definition at line 76 of file osdbase.c.

References current, digit, displayMenuCount, first, hasHotkeys, helpBlue, helpGreen, helpRed, helpYellow, cOsdObject::isMenu, marked, SetCols(), SetDisplayMenu(), SetTitle(), status, subMenu, and title.

Here is the call graph for this function:

cOsdMenu::~cOsdMenu (  )  [virtual]

Definition at line 93 of file osdbase.c.

References cSkinDisplayMenu::Clear(), DELETENULL, displayMenu, displayMenuCount, cStatus::MsgOsdClear(), status, subMenu, and title.

Here is the call graph for this function:


Member Function Documentation

void cOsdMenu::SetDisplayMenu ( void   )  [protected]

Definition at line 104 of file osdbase.c.

References cSkinDisplayMenu::Clear(), cSkins::Current(), cSkin::DisplayMenu(), displayMenu, displayMenuItems, cSkinDisplayMenu::MaxItems(), and Skins.

Referenced by cOsdMenu(), and cMenuSetupOSD::ProcessKey().

Here is the call graph for this function:

cSkinDisplayMenu* cOsdMenu::DisplayMenu ( void   )  [inline, protected]

const char * cOsdMenu::hk ( const char *  s  )  [protected]

Definition at line 114 of file osdbase.c.

References digit, hasHotkeys, and cString::sprintf().

Referenced by cMenuCommands::cMenuCommands(), cMenuSetupPlugins::cMenuSetupPlugins(), cMenuMain::Set(), cMenuSetup::Set(), and cMenuCam::Set().

Here is the call graph for this function:

void cOsdMenu::SetCols ( int  c0,
int  c1 = 0,
int  c2 = 0,
int  c3 = 0,
int  c4 = 0 
) [protected]

void cOsdMenu::SetHasHotkeys ( bool  HasHotkeys = true  )  [protected]

void cOsdMenu::Clear ( void   )  [protected, virtual]

bool cOsdMenu::SelectableItem ( int  idx  )  [protected]

Definition at line 291 of file osdbase.c.

References cList< cOsdItem >::Get(), and cOsdItem::Selectable().

Referenced by CursorDown(), CursorUp(), Del(), PageDown(), and PageUp().

Here is the call graph for this function:

void cOsdMenu::SetCurrent ( cOsdItem Item  )  [protected]

void cOsdMenu::RefreshCurrent ( void   )  [protected]

Definition at line 249 of file osdbase.c.

References current, cList< cOsdItem >::Get(), and cOsdItem::Set().

Referenced by CloseSubMenu(), HotKey(), and cMenuTimers::OnOff().

Here is the call graph for this function:

void cOsdMenu::DisplayCurrent ( bool  Current  )  [protected]

void cOsdMenu::DisplayItem ( cOsdItem Item  )  [protected]

void cOsdMenu::CursorUp ( void   )  [protected]

Definition at line 297 of file osdbase.c.

References cListBase::Count(), current, Display(), DisplayCurrent(), displayMenuItems, first, max(), cSetup::MenuScrollPage, cSetup::MenuScrollWrap, SelectableItem(), and Setup.

Referenced by PageUp(), and ProcessKey().

Here is the call graph for this function:

void cOsdMenu::CursorDown ( void   )  [protected]

Definition at line 335 of file osdbase.c.

References cListBase::Count(), current, Display(), DisplayCurrent(), displayMenuItems, first, max(), cSetup::MenuScrollPage, cSetup::MenuScrollWrap, SelectableItem(), and Setup.

Referenced by PageDown(), and ProcessKey().

Here is the call graph for this function:

void cOsdMenu::PageUp ( void   )  [protected]

Definition at line 375 of file osdbase.c.

References cListBase::Count(), current, CursorUp(), Display(), DisplayCurrent(), displayMenuItems, first, cSetup::MenuScrollWrap, SelectableItem(), and Setup.

Referenced by ProcessKey().

Here is the call graph for this function:

void cOsdMenu::PageDown ( void   )  [protected]

Definition at line 409 of file osdbase.c.

References cListBase::Count(), current, CursorDown(), Display(), DisplayCurrent(), displayMenuItems, first, max(), cSetup::MenuScrollWrap, SelectableItem(), and Setup.

Referenced by ProcessKey().

Here is the call graph for this function:

void cOsdMenu::Mark ( void   )  [protected]

Definition at line 443 of file osdbase.c.

References cListBase::Count(), current, marked, SetStatus(), and tr.

Referenced by cMenuChannels::ProcessKey().

Here is the call graph for this function:

eOSState cOsdMenu::HotKey ( eKeys  Key  )  [protected]

Definition at line 451 of file osdbase.c.

References current, Display(), cList< cOsdItem >::First(), k1, kOk, cList< cOsdItem >::Next(), osContinue, cRemote::Put(), RefreshCurrent(), and skipspace().

Referenced by ProcessKey().

Here is the call graph for this function:

eOSState cOsdMenu::AddSubMenu ( cOsdMenu SubMenu  )  [protected]

eOSState cOsdMenu::CloseSubMenu (  )  [protected]

Definition at line 476 of file osdbase.c.

References Display(), osContinue, RefreshCurrent(), and subMenu.

Referenced by ProcessKey(), cMenuChannels::ProcessKey(), cMenuSchedule::Record(), and cMenuWhatsOn::Record().

Here is the call graph for this function:

bool cOsdMenu::HasSubMenu ( void   )  [inline, protected]

void cOsdMenu::SetStatus ( const char *  s  )  [protected]

Definition at line 144 of file osdbase.c.

References displayMenu, mtStatus, cSkinDisplayMenu::SetMessage(), and status.

Referenced by Clear(), Mark(), and ProcessKey().

Here is the call graph for this function:

void cOsdMenu::SetTitle ( const char *  Title  )  [protected]

void cOsdMenu::SetHelp ( const char *  Red,
const char *  Green = NULL,
const char *  Yellow = NULL,
const char *  Blue = NULL 
) [protected]

void cOsdMenu::Del ( int  Index  )  [protected, virtual]

virtual bool cOsdMenu::NeedsFastResponse ( void   )  [inline, virtual]

Reimplemented from cOsdObject.

Definition at line 126 of file osdbase.h.

References cOsdObject::NeedsFastResponse(), NeedsFastResponse(), and subMenu.

Referenced by NeedsFastResponse().

Here is the call graph for this function:

int cOsdMenu::Current ( void   )  const [inline]

void cOsdMenu::Add ( cOsdItem Item,
bool  Current = false,
cOsdItem After = NULL 
)

void cOsdMenu::Ins ( cOsdItem Item,
bool  Current = false,
cOsdItem Before = NULL 
)

Definition at line 189 of file osdbase.c.

References current, cListObject::Index(), and cListBase::Ins().

Here is the call graph for this function:

void cOsdMenu::Display ( void   )  [virtual]

Reimplemented in cMenuRecording, cMenuText, and cMenuEvent.

Definition at line 196 of file osdbase.c.

References cSkinDisplayMenu::Clear(), cols, cListBase::Count(), cListBase::count, current, Display(), displayMenu, displayMenuItems, first, cList< cOsdItem >::First(), cList< cOsdItem >::Get(), helpBlue, helpGreen, helpRed, helpYellow, isempty(), cStatus::MsgOsdClear(), cStatus::MsgOsdCurrentItem(), cStatus::MsgOsdHelpKeys(), cStatus::MsgOsdItem(), cStatus::MsgOsdTitle(), mtStatus, cList< cOsdItem >::Next(), cSkinDisplayMenu::SetButtons(), cSkinDisplayMenu::SetItem(), cSkinDisplayMenu::SetMessage(), cSkinDisplayMenu::SetScrollbar(), cSkinDisplayMenu::SetTabs(), cSkinDisplayMenu::SetTitle(), status, subMenu, and title.

Referenced by AddSubMenu(), CloseSubMenu(), cMenuRecordings::cMenuRecordings(), cMenuWhatsOn::cMenuWhatsOn(), CursorDown(), CursorUp(), cMenuRecordings::Delete(), cMenuTimers::Delete(), Display(), cMenuRecording::Display(), cMenuEvent::Display(), cMenuText::Display(), HotKey(), cMenuSchedule::Number(), cMenuChannels::Number(), PageDown(), PageUp(), cMenuMain::ProcessKey(), cMenuSetup::ProcessKey(), cMenuRecordings::ProcessKey(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::ProcessKey(), cMenuTimers::ProcessKey(), cMenuChannels::Propagate(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), cMenuMain::Set(), cMenuSetupOSD::Set(), cMenuRecordings::Set(), cMenuCam::Set(), cMenuEditTimer::SetFirstDayItem(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), cMenuChannels::Setup(), and cMenuEditChannel::Setup().

Here is the call graph for this function:

eOSState cOsdMenu::ProcessKey ( eKeys  Key  )  [virtual]


Member Data Documentation

cSkinDisplayMenu * cOsdMenu::displayMenu = NULL [static, private]

int cOsdMenu::displayMenuCount = 0 [static, private]

Definition at line 88 of file osdbase.h.

Referenced by cOsdMenu(), and ~cOsdMenu().

int cOsdMenu::displayMenuItems = 0 [static, private]

Definition at line 89 of file osdbase.h.

Referenced by CursorDown(), CursorUp(), Display(), DisplayItem(), PageDown(), PageUp(), and SetDisplayMenu().

char* cOsdMenu::title [private]

Definition at line 90 of file osdbase.h.

Referenced by cOsdMenu(), Display(), SetTitle(), and ~cOsdMenu().

int cOsdMenu::cols[cSkinDisplayMenu::MaxTabs] [private]

Definition at line 91 of file osdbase.h.

Referenced by Display(), and SetCols().

int cOsdMenu::first [private]

int cOsdMenu::current [private]

int cOsdMenu::marked [private]

Definition at line 92 of file osdbase.h.

Referenced by Clear(), cOsdMenu(), Mark(), and ProcessKey().

const char* cOsdMenu::helpRed [private]

Definition at line 94 of file osdbase.h.

Referenced by cOsdMenu(), Display(), and SetHelp().

const char * cOsdMenu::helpGreen [private]

Definition at line 94 of file osdbase.h.

Referenced by cOsdMenu(), Display(), and SetHelp().

const char * cOsdMenu::helpYellow [private]

Definition at line 94 of file osdbase.h.

Referenced by cOsdMenu(), Display(), and SetHelp().

const char * cOsdMenu::helpBlue [private]

Definition at line 94 of file osdbase.h.

Referenced by cOsdMenu(), Display(), and SetHelp().

char* cOsdMenu::status [private]

Definition at line 95 of file osdbase.h.

Referenced by cOsdMenu(), Display(), SetStatus(), and ~cOsdMenu().

int cOsdMenu::digit [private]

Definition at line 96 of file osdbase.h.

Referenced by cOsdMenu(), hk(), and SetHasHotkeys().

bool cOsdMenu::hasHotkeys [private]

Definition at line 97 of file osdbase.h.

Referenced by cOsdMenu(), hk(), ProcessKey(), and SetHasHotkeys().


The documentation for this class was generated from the following files:

Generated on Tue Jan 13 14:30:45 2009 for VDR by  doxygen 1.5.6