vdr  2.2.0
Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | Static Private Attributes | List of all members
cOsdMenu Class Reference

#include <osdbase.h>

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)
 
void SetMenuCategory (eMenuCategory MenuCategory)
 
void SetMenuSortMode (eMenuSortMode MenuSortMode)
 
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)
 
- Public Member Functions inherited from cOsdObject
 cOsdObject (bool FastResponse=false)
 
virtual ~cOsdObject ()
 
bool IsMenu (void) const
 
virtual void Show (void)
 
- Public Member Functions inherited from cList< cOsdItem >
cOsdItemGet (int Index) const
 
cOsdItemFirst (void) const
 
cOsdItemLast (void) const
 
cOsdItemPrev (const cOsdItem *object) const
 
cOsdItemNext (const cOsdItem *object) const
 
- Public Member Functions inherited from cListBase
virtual ~cListBase ()
 
void Add (cListObject *Object, cListObject *After=NULL)
 
void Ins (cListObject *Object, cListObject *Before=NULL)
 
void Del (cListObject *Object, bool DeleteObject=true)
 
virtual void Move (int From, int To)
 
void Move (cListObject *From, cListObject *To)
 
cListObjectGet (int Index) const
 
int Count (void) const
 
void Sort (void)
 

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)
 
const char * Title (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 ReDisplay=true)
 
bool HasSubMenu (void)
 
cOsdMenuSubMenu (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)
 
- Protected Member Functions inherited from cOsdObject
void SetNeedsFastResponse (bool NeedsFastResponse)
 
- Protected Member Functions inherited from cListBase
 cListBase (void)
 

Private Member Functions

void DisplayHelp (bool Force=false)
 

Private Attributes

int displayMenuItems
 
char * title
 
int cols [cSkinDisplayMenu::MaxTabs]
 
int first
 
int current
 
int marked
 
eMenuCategory menuCategory
 
eMenuSortMode menuSortMode
 
cOsdMenusubMenu
 
const char * helpRed
 
const char * helpGreen
 
const char * helpYellow
 
const char * helpBlue
 
bool helpDisplayed
 
char * status
 
int digit
 
bool hasHotkeys
 
int key_nr
 
cTimeMs lastActivity
 

Static Private Attributes

static cSkinDisplayMenudisplayMenu = NULL
 
static int displayMenuCount = 0
 

Additional Inherited Members

- Protected Attributes inherited from cListBase
cListObjectobjects
 
cListObjectlastObject
 
int count
 

Detailed Description

Definition at line 86 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 81 of file osdbase.c.

References mcUnknown, and msmUnknown.

cOsdMenu::~cOsdMenu ( )
virtual

Definition at line 103 of file osdbase.c.

References DELETENULL(), and cStatus::MsgOsdClear().

Member Function Documentation

void cOsdMenu::Add ( cOsdItem Item,
bool  Current = false,
cOsdItem After = NULL 
)
eOSState cOsdMenu::AddSubMenu ( cOsdMenu SubMenu)
protected
void cOsdMenu::Clear ( void  )
protectedvirtual
eOSState cOsdMenu::CloseSubMenu ( bool  ReDisplay = true)
protected
int cOsdMenu::Current ( void  ) const
inline
void cOsdMenu::CursorDown ( void  )
protected

Definition at line 373 of file osdbase.c.

References max(), cSetup::MenuScrollPage, cSetup::MenuScrollWrap, and Setup.

void cOsdMenu::CursorUp ( void  )
protected

Definition at line 334 of file osdbase.c.

References max(), cSetup::MenuScrollPage, cSetup::MenuScrollWrap, and Setup.

void cOsdMenu::Del ( int  Index)
protectedvirtual
void cOsdMenu::Display ( void  )
virtual
void cOsdMenu::DisplayCurrent ( bool  Current)
protected
void cOsdMenu::DisplayHelp ( bool  Force = false)
private

Definition at line 176 of file osdbase.c.

References cStatus::MsgOsdHelpKeys().

void cOsdMenu::DisplayItem ( cOsdItem Item)
protected
cSkinDisplayMenu* cOsdMenu::DisplayMenu ( void  )
inlineprotected
bool cOsdMenu::HasSubMenu ( void  )
inlineprotected
const char * cOsdMenu::hk ( const char *  s)
protected
eOSState cOsdMenu::HotKey ( eKeys  Key)
protected

Definition at line 494 of file osdbase.c.

References k0, kNone, kOk, MENUKEY_TIMEOUT, osContinue, cListObject::Prev(), cRemote::Put(), and skipspace().

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

Definition at line 216 of file osdbase.c.

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

void cOsdMenu::Mark ( void  )
protected

Definition at line 484 of file osdbase.c.

References tr.

Referenced by cMenuChannels::ProcessKey().

virtual bool cOsdMenu::NeedsFastResponse ( void  )
inlinevirtual

Reimplemented from cOsdObject.

Definition at line 135 of file osdbase.h.

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

Referenced by NeedsFastResponse(), and cOsdObject::SetNeedsFastResponse().

void cOsdMenu::PageDown ( void  )
protected

Definition at line 449 of file osdbase.c.

References max(), cSetup::MenuScrollWrap, and Setup.

void cOsdMenu::PageUp ( void  )
protected

Definition at line 414 of file osdbase.c.

References cSetup::MenuScrollWrap, and Setup.

eOSState cOsdMenu::ProcessKey ( eKeys  Key)
virtual
void cOsdMenu::RefreshCurrent ( void  )
protected

Definition at line 280 of file osdbase.c.

References cOsdItem::Set().

Referenced by cMenuTimers::OnOff().

bool cOsdMenu::SelectableItem ( int  idx)
protected

Definition at line 328 of file osdbase.c.

References cOsdItem::Selectable().

void cOsdMenu::SetCols ( int  c0,
int  c1 = 0,
int  c2 = 0,
int  c3 = 0,
int  c4 = 0 
)
protected
void cOsdMenu::SetCurrent ( cOsdItem Item)
protected
void cOsdMenu::SetDisplayMenu ( void  )
protected

Definition at line 124 of file osdbase.c.

References cSkins::Current(), cSkin::DisplayMenu(), and Skins.

Referenced by cMenuSetupOSD::ProcessKey().

void cOsdMenu::SetHasHotkeys ( bool  HasHotkeys = true)
protected
void cOsdMenu::SetHelp ( const char *  Red,
const char *  Green = NULL,
const char *  Yellow = NULL,
const char *  Blue = NULL 
)
protected
void cOsdMenu::SetMenuCategory ( eMenuCategory  MenuCategory)
void cOsdMenu::SetMenuSortMode ( eMenuSortMode  MenuSortMode)

Definition at line 119 of file osdbase.c.

Referenced by cMenuRecordings::Set(), and cMenuChannels::Setup().

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

Definition at line 163 of file osdbase.c.

References mtStatus.

void cOsdMenu::SetTitle ( const char *  Title)
protected
cOsdMenu* cOsdMenu::SubMenu ( void  )
inlineprotected
const char* cOsdMenu::Title ( void  )
inlineprotected

Member Data Documentation

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

Definition at line 92 of file osdbase.h.

int cOsdMenu::current
private
int cOsdMenu::digit
private

Definition at line 100 of file osdbase.h.

cSkinDisplayMenu * cOsdMenu::displayMenu = NULL
staticprivate

Definition at line 88 of file osdbase.h.

Referenced by cOsdObject::Show().

int cOsdMenu::displayMenuCount = 0
staticprivate

Definition at line 89 of file osdbase.h.

Referenced by cOsdObject::Show().

int cOsdMenu::displayMenuItems
private

Definition at line 90 of file osdbase.h.

int cOsdMenu::first
private

Definition at line 93 of file osdbase.h.

bool cOsdMenu::hasHotkeys
private

Definition at line 101 of file osdbase.h.

const char * cOsdMenu::helpBlue
private

Definition at line 97 of file osdbase.h.

bool cOsdMenu::helpDisplayed
private

Definition at line 98 of file osdbase.h.

const char * cOsdMenu::helpGreen
private

Definition at line 97 of file osdbase.h.

const char* cOsdMenu::helpRed
private

Definition at line 97 of file osdbase.h.

const char * cOsdMenu::helpYellow
private

Definition at line 97 of file osdbase.h.

int cOsdMenu::key_nr
private

Definition at line 102 of file osdbase.h.

cTimeMs cOsdMenu::lastActivity
private

Definition at line 103 of file osdbase.h.

int cOsdMenu::marked
private

Definition at line 93 of file osdbase.h.

eMenuCategory cOsdMenu::menuCategory
private

Definition at line 94 of file osdbase.h.

eMenuSortMode cOsdMenu::menuSortMode
private

Definition at line 95 of file osdbase.h.

char* cOsdMenu::status
private

Definition at line 99 of file osdbase.h.

Referenced by cMenuTimers::ActualiseDiskStatus().

cOsdMenu* cOsdMenu::subMenu
private

Definition at line 96 of file osdbase.h.

char* cOsdMenu::title
private

Definition at line 91 of file osdbase.h.


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