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 ()
int Current (void)
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

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 (void)
virtual void Clear (void)
bool SelectableItem (int idx)
void SetCurrent (cOsdItem *Item)
void RefreshCurrent (void)
void DisplayCurrent (bool Current)
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 84 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 cSkins::Current(), current, digit, cSkin::DisplayMenu(), displayMenu, displayMenuCount, displayMenuItems, first, hasHotkeys, helpBlue, helpGreen, helpRed, helpYellow, cOsdObject::isMenu, marked, cSkinDisplayMenu::MaxItems(), SetCols(), SetTitle(), Skins, status, subMenu, and title.

Here is the call graph for this function:

cOsdMenu::~cOsdMenu (  )  [virtual]

Definition at line 95 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

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

Definition at line 98 of file osdbase.h.

References displayMenu.

Referenced by cMenuRecording::Display(), cMenuEvent::Display(), cMenuText::Display(), cMenuRecording::ProcessKey(), cMenuEvent::ProcessKey(), and cMenuText::ProcessKey().

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

Definition at line 106 of file osdbase.c.

References digit, and hasHotkeys.

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

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

Definition at line 121 of file osdbase.c.

References cols.

Referenced by cOsdMenu(), cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), and cMenuSchedule::PrepareScheduleThisThis().

void cOsdMenu::SetHasHotkeys ( void   )  [protected]

Definition at line 130 of file osdbase.c.

References digit, and hasHotkeys.

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

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

Reimplemented from cListBase.

Definition at line 259 of file osdbase.c.

References cListBase::Clear(), current, first, marked, and SetStatus().

Referenced by cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), cMenuMain::Set(), cMenuSetup::Set(), cMenuSetupOSD::Set(), cMenuRecordings::Set(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), cMenuChannels::Setup(), and cMenuEditChannel::Setup().

Here is the call graph for this function:

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

Definition at line 268 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]

Definition at line 235 of file osdbase.c.

References current, and cListObject::Index().

Referenced by cMenuRecordings::cMenuRecordings(), cMenuTimers::cMenuTimers(), cMenuSchedule::Number(), cMenuChannels::Number(), cMenuSetupOSD::Set(), cMenuRecordings::Set(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), cMenuChannels::Setup(), and cMenuEditChannel::Setup().

Here is the call graph for this function:

void cOsdMenu::RefreshCurrent ( void   )  [protected]

Definition at line 240 of file osdbase.c.

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

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

Here is the call graph for this function:

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

Definition at line 247 of file osdbase.c.

References current, displayMenu, first, cList< cOsdItem >::Get(), cStatus::MsgOsdCurrentItem(), cOsdItem::Selectable(), cOsdItem::SetFresh(), cSkinDisplayMenu::SetItem(), and cOsdItem::Text().

Referenced by CursorDown(), CursorUp(), cMenuTimers::OnOff(), PageDown(), PageUp(), and ProcessKey().

Here is the call graph for this function:

void cOsdMenu::CursorUp ( void   )  [protected]

Definition at line 274 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 312 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 352 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 386 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 420 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 428 of file osdbase.c.

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

Referenced by ProcessKey().

Here is the call graph for this function:

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

Definition at line 443 of file osdbase.c.

References Display(), osContinue, and subMenu.

Referenced by cMenuMain::cMenuMain(), cMenuRecordings::Commands(), cMenuTimers::Edit(), cMenuChannels::Edit(), cMenuCommands::Execute(), cMenuRecordings::Info(), cMenuTimers::Info(), cMenuTimers::New(), cMenuChannels::New(), cMenuRecordings::Open(), cMenuMain::ProcessKey(), cMenuSetup::ProcessKey(), cMenuSetupPlugins::ProcessKey(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::ProcessKey(), cMenuSchedule::Record(), and cMenuWhatsOn::Record().

Here is the call graph for this function:

eOSState cOsdMenu::CloseSubMenu (  )  [protected]

Definition at line 451 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]

Definition at line 115 of file osdbase.h.

References subMenu.

Referenced by cMenuRecordings::Commands(), cMenuRecordings::Delete(), cMenuChannels::Delete(), cMenuTimers::Edit(), cMenuChannels::Edit(), cMenuRecordings::Info(), cMenuTimers::Info(), cMenuTimers::New(), cMenuChannels::New(), cMenuChannels::Number(), cMenuTimers::OnOff(), cMenuMain::ProcessKey(), cMenuSetup::ProcessKey(), cMenuSetupPlugins::ProcessKey(), cMenuRecordings::ProcessKey(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::ProcessKey(), cMenuTimers::ProcessKey(), cMenuChannels::ProcessKey(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), cMenuRecordings::Rewind(), and cMenuChannels::Switch().

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

Definition at line 136 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]

Definition at line 143 of file osdbase.c.

References title.

Referenced by cMenuCam::cMenuCam(), cMenuCamEnquiry::cMenuCamEnquiry(), cMenuEvent::cMenuEvent(), cOsdMenu(), cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), cMenuMain::Set(), cMenuSetup::Set(), cMenuSetupPage::SetSection(), and cMenuMain::Update().

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

Definition at line 149 of file osdbase.c.

References displayMenu, helpBlue, helpGreen, helpRed, helpYellow, cStatus::MsgOsdHelpKeys(), and cSkinDisplayMenu::SetButtons().

Referenced by cMenuEvent::cMenuEvent(), cMenuRecording::cMenuRecording(), cMenuSetupCICAM::cMenuSetupCICAM(), cMenuSetupEPG::cMenuSetupEPG(), cMenuSchedule::ProcessKey(), cMenuRecordings::SetHelpKeys(), cMenuSchedule::SetHelpKeys(), cMenuWhatsOn::SetHelpKeys(), cMenuTimers::SetHelpKeys(), cMenuChannels::Setup(), and cMenuMain::Update().

Here is the call graph for this function:

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

Definition at line 160 of file osdbase.c.

References cListBase::Count(), cListBase::count, current, cListBase::Del(), first, cList< cOsdItem >::Get(), and SelectableItem().

Referenced by cMenuRecordings::Delete(), cMenuTimers::Delete(), cMenuChannels::Delete(), cMenuRecordings::ProcessKey(), cMenuEditTimer::SetFirstDayItem(), and cMenuMain::Update().

Here is the call graph for this function:

int cOsdMenu::Current ( void   )  [inline]

Definition at line 123 of file osdbase.h.

References current.

Referenced by cMenuRecordings::cMenuRecordings(), cMenuRecordings::Commands(), cMenuTimers::CurrentTimer(), cMenuRecordings::Delete(), cMenuTimers::Delete(), cMenuChannels::Delete(), cMenuChannels::Edit(), cMenuCommands::Execute(), cMenuRecordings::Info(), cMenuSetupCICAM::Menu(), cMenuChannels::New(), cMenuSchedule::Number(), cMenuRecordings::Open(), cMenuRecordings::Play(), cMenuMain::ProcessKey(), cMenuSetupPlugins::ProcessKey(), cMenuRecordings::ProcessKey(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::ProcessKey(), cMenuSchedule::Record(), cMenuWhatsOn::Record(), cMenuSetupCICAM::Reset(), cMenuRecordings::Rewind(), cMenuCam::Select(), cMenuSetupOSD::Set(), cMenuRecordings::Set(), cMenuRecordings::SetHelpKeys(), cMenuSchedule::SetHelpKeys(), cMenuWhatsOn::SetHelpKeys(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), cMenuChannels::Setup(), cMenuEditChannel::Setup(), cMenuWhatsOn::Switch(), and cMenuChannels::Switch().

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

Definition at line 174 of file osdbase.c.

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

Referenced by cMenuCam::AddMultiLineItem(), cMenuCam::cMenuCam(), cMenuCamEnquiry::cMenuCamEnquiry(), cMenuCommands::cMenuCommands(), cMenuEditTimer::cMenuEditTimer(), cMenuSetupCICAM::cMenuSetupCICAM(), cMenuSetupHello::cMenuSetupHello(), cMenuSetupMisc::cMenuSetupMisc(), cMenuSetupPlugins::cMenuSetupPlugins(), cMenuSetupRecord::cMenuSetupRecord(), cMenuSetupReplay::cMenuSetupReplay(), cMenuTimers::cMenuTimers(), cMenuWhatsOn::cMenuWhatsOn(), cMenuSchedule::PrepareScheduleAllAll(), cMenuSchedule::PrepareScheduleAllThis(), cMenuSchedule::PrepareScheduleThisAll(), cMenuSchedule::PrepareScheduleThisThis(), cMenuTimers::ProcessKey(), cMenuChannels::ProcessKey(), cMenuMain::Set(), cMenuSetup::Set(), cMenuSetupOSD::Set(), cMenuRecordings::Set(), cMenuEditTimer::SetFirstDayItem(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), cMenuChannels::Setup(), cMenuEditChannel::Setup(), and cMenuMain::Update().

Here is the call graph for this function:

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

Definition at line 181 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 188 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::SetTabs(), cSkinDisplayMenu::SetTitle(), status, subMenu, and title.

Referenced by AddSubMenu(), CloseSubMenu(), cMenuCam::cMenuCam(), cMenuCamEnquiry::cMenuCamEnquiry(), cMenuRecordings::cMenuRecordings(), cMenuWhatsOn::cMenuWhatsOn(), CursorDown(), CursorUp(), cMenuRecordings::Delete(), cMenuTimers::Delete(), Display(), cMenuRecording::Display(), cMenuEvent::Display(), cMenuText::Display(), 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(), 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]

Reimplemented from cOsdObject.

Reimplemented in cMenuEditChannel, cMenuChannels, cMenuTimers, cMenuWhatsOn, cMenuSchedule, cMenuCommands, cMenuRecording, cMenuSetupOSD, cMenuSetupEPG, cMenuSetupDVB, cMenuSetupLNB, cMenuSetupCICAM, cMenuSetupPlugins, cMenuSetup, cMenuText, cMenuEditTimer, cMenuEvent, cMenuMain, cMenuCam, cMenuCamEnquiry, cMenuRecordings, and cMenuSetupPage.

Definition at line 460 of file osdbase.c.

References CloseSubMenu(), current, CursorDown(), CursorUp(), DisplayCurrent(), cList< cOsdItem >::Get(), hasHotkeys, HotKey(), k0, k1, k_Repeat, kBack, kDown, kLeft, kOk, kRight, kUp, marked, cListBase::Move(), osBack, osContinue, osUnknown, PageDown(), PageUp(), cOsdItem::ProcessKey(), ProcessKey(), SetStatus(), and subMenu.

Referenced by ProcessKey(), cMenuSetupPage::ProcessKey(), cMenuMain::ProcessKey(), cMenuSetup::ProcessKey(), cMenuSetupPlugins::ProcessKey(), cMenuRecordings::ProcessKey(), cMenuRecording::ProcessKey(), cMenuCamEnquiry::ProcessKey(), cMenuCam::ProcessKey(), cMenuCommands::ProcessKey(), cMenuSchedule::ProcessKey(), cMenuWhatsOn::ProcessKey(), cMenuEvent::ProcessKey(), cMenuTimers::ProcessKey(), cMenuEditTimer::ProcessKey(), cMenuText::ProcessKey(), cMenuChannels::ProcessKey(), and cMenuEditChannel::ProcessKey().

Here is the call graph for this function:


Member Data Documentation

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

Definition at line 86 of file osdbase.h.

Referenced by cOsdMenu(), Display(), DisplayCurrent(), DisplayMenu(), SetHelp(), SetStatus(), and ~cOsdMenu().

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

Definition at line 87 of file osdbase.h.

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

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

Definition at line 88 of file osdbase.h.

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

char* cOsdMenu::title [private]

Definition at line 89 of file osdbase.h.

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

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

Definition at line 90 of file osdbase.h.

Referenced by Display(), and SetCols().

int cOsdMenu::first [private]

Definition at line 91 of file osdbase.h.

Referenced by Clear(), cOsdMenu(), CursorDown(), CursorUp(), Del(), Display(), DisplayCurrent(), PageDown(), and PageUp().

int cOsdMenu::current [private]

Definition at line 91 of file osdbase.h.

Referenced by Add(), Clear(), cOsdMenu(), Current(), CursorDown(), CursorUp(), Del(), Display(), DisplayCurrent(), HotKey(), Ins(), Mark(), PageDown(), PageUp(), ProcessKey(), RefreshCurrent(), cMenuSetupOSD::Set(), SetCurrent(), cMenuSetupLNB::Setup(), cMenuSetupDVB::Setup(), cMenuSetupEPG::Setup(), and cMenuEditChannel::Setup().

int cOsdMenu::marked [private]

Definition at line 91 of file osdbase.h.

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

cOsdMenu* cOsdMenu::subMenu [private]

Definition at line 92 of file osdbase.h.

Referenced by AddSubMenu(), CloseSubMenu(), cOsdMenu(), Display(), HasSubMenu(), ProcessKey(), and ~cOsdMenu().

const char* cOsdMenu::helpRed [private]

Definition at line 93 of file osdbase.h.

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

const char * cOsdMenu::helpGreen [private]

Definition at line 93 of file osdbase.h.

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

const char * cOsdMenu::helpYellow [private]

Definition at line 93 of file osdbase.h.

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

const char * cOsdMenu::helpBlue [private]

Definition at line 93 of file osdbase.h.

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

char* cOsdMenu::status [private]

Definition at line 94 of file osdbase.h.

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

int cOsdMenu::digit [private]

Definition at line 95 of file osdbase.h.

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

bool cOsdMenu::hasHotkeys [private]

Definition at line 96 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 Nov 6 20:21:20 2007 for VDR by  doxygen 1.5.3-20071008