OSDListTreeType Class Reference

#include <osdlistbtntype.h>

Inheritance diagram for OSDListTreeType:

OSDType

List of all members.


Detailed Description

Definition at line 81 of file osdlistbtntype.h.


Signals

void itemSelected (OSDListTreeType *parent, OSDGenericTree *item)
void itemEntered (OSDListTreeType *parent, OSDGenericTree *item)

Public Member Functions

 OSDListTreeType (const QString &name, const QRect &area, const QRect &levelsize, int levelspacing, float wmult, float hmult)
 ~OSDListTreeType ()
bool IsVisible (void) const
void SetFontActive (TTFFont *font)
void SetFontInactive (TTFFont *font)
void SetGroupCheckState (QString group, int newState=0)
void SetSpacing (uint spacing)
void SetMargin (uint margin)
void SetItemRegColor (const QColor &beg, const QColor &end, uint alpha)
void SetItemSelColor (const QColor &beg, const QColor &end, uint alpha)
void SetVisible (bool visible)
void SetAsTree (OSDGenericTree *toplevel, vector< uint > *select=NULL)
void Reinit (float wmult, float hmult)
bool HandleKeypress (QKeyEvent *e)
void Draw (OSDSurface *surface, int fade, int maxfade, int xoff, int yoff)

Private Member Functions

void FillLevelFromTree (OSDGenericTree *item, uint levelnum)
OSDListBtnTypeGetLevel (uint levelnum)
void EnterItem (void)
void SelectItem (void)

Private Attributes

OSDGenericTreetreetop
OSDGenericTreecurrentpos
TTFFontm_active
TTFFontm_inactive
OSDListBtnList listLevels
QColor m_itemRegBeg
QColor m_itemRegEnd
QColor m_itemSelBeg
QColor m_itemSelEnd
uint m_itemRegAlpha
uint m_itemSelAlpha
uint m_spacing
uint m_margin
int m_levelspacing
QRect m_totalarea
QRect m_levelsize
float m_unbiasedspacing
float m_unbiasedmargin
QRect m_unbiasedarea
QRect m_unbiasedsize
float m_wmult
float m_hmult
int m_depth
int m_levelnum
bool m_visible
bool m_arrowAccel

Constructor & Destructor Documentation

OSDListTreeType::OSDListTreeType ( const QString &  name,
const QRect &  area,
const QRect &  levelsize,
int  levelspacing,
float  wmult,
float  hmult 
)

Definition at line 44 of file osdlistbtntype.cpp.

OSDListTreeType::~OSDListTreeType (  ) 

Definition at line 70 of file osdlistbtntype.cpp.


Member Function Documentation

bool OSDListTreeType::IsVisible ( void   )  const [inline]

Definition at line 90 of file osdlistbtntype.h.

Referenced by OSD::TreeMenuHandleKeypress().

void OSDListTreeType::SetFontActive ( TTFFont font  )  [inline]

Definition at line 92 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetFontInactive ( TTFFont font  )  [inline]

Definition at line 93 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetGroupCheckState ( QString  group,
int  newState = 0 
)

Definition at line 105 of file osdlistbtntype.cpp.

Referenced by SelectItem().

void OSDListTreeType::SetSpacing ( uint  spacing  )  [inline]

Definition at line 96 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetMargin ( uint  margin  )  [inline]

Definition at line 98 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetItemRegColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
) [inline]

Definition at line 100 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetItemSelColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
) [inline]

Definition at line 102 of file osdlistbtntype.h.

Referenced by OSD::InitMenu(), and OSD::parseListTree().

void OSDListTreeType::SetVisible ( bool  visible  )  [inline]

Definition at line 104 of file osdlistbtntype.h.

Referenced by OSD::ShowTreeMenu(), and TV::TreeMenuSelected().

void OSDListTreeType::SetAsTree ( OSDGenericTree toplevel,
vector< uint > *  select = NULL 
)

Definition at line 112 of file osdlistbtntype.cpp.

Referenced by Reinit(), and OSD::ShowTreeMenu().

void OSDListTreeType::Reinit ( float  wmult,
float  hmult 
) [virtual]

Implements OSDType.

Definition at line 77 of file osdlistbtntype.cpp.

bool OSDListTreeType::HandleKeypress ( QKeyEvent *  e  ) 

Definition at line 189 of file osdlistbtntype.cpp.

Referenced by OSD::TreeMenuHandleKeypress().

void OSDListTreeType::Draw ( OSDSurface surface,
int  fade,
int  maxfade,
int  xoff,
int  yoff 
) [virtual]

Implements OSDType.

Definition at line 256 of file osdlistbtntype.cpp.

void OSDListTreeType::itemSelected ( OSDListTreeType parent,
OSDGenericTree item 
) [signal]

Referenced by SelectItem().

void OSDListTreeType::itemEntered ( OSDListTreeType parent,
OSDGenericTree item 
) [signal]

Referenced by EnterItem().

void OSDListTreeType::FillLevelFromTree ( OSDGenericTree item,
uint  levelnum 
) [private]

Definition at line 264 of file osdlistbtntype.cpp.

Referenced by HandleKeypress(), and SetAsTree().

OSDListBtnType * OSDListTreeType::GetLevel ( uint  levelnum  )  [private]

Definition at line 301 of file osdlistbtntype.cpp.

Referenced by FillLevelFromTree(), HandleKeypress(), and SetAsTree().

void OSDListTreeType::EnterItem ( void   )  [private]

Definition at line 311 of file osdlistbtntype.cpp.

Referenced by HandleKeypress(), and SetAsTree().

void OSDListTreeType::SelectItem ( void   )  [private]

Definition at line 325 of file osdlistbtntype.cpp.

Referenced by HandleKeypress().


Member Data Documentation

Definition at line 121 of file osdlistbtntype.h.

Referenced by Reinit(), and SetAsTree().

Definition at line 122 of file osdlistbtntype.h.

Referenced by EnterItem(), HandleKeypress(), SelectItem(), and SetAsTree().

Definition at line 123 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetFontActive().

Definition at line 124 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetFontInactive().

Definition at line 128 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemRegColor().

Definition at line 129 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemRegColor().

Definition at line 130 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemSelColor().

Definition at line 131 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemSelColor().

Definition at line 132 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemRegColor().

Definition at line 133 of file osdlistbtntype.h.

Referenced by SetAsTree(), and SetItemSelColor().

Definition at line 135 of file osdlistbtntype.h.

Referenced by Reinit(), SetAsTree(), and SetSpacing().

Definition at line 136 of file osdlistbtntype.h.

Referenced by Reinit(), SetAsTree(), and SetMargin().

Definition at line 137 of file osdlistbtntype.h.

Referenced by SetAsTree().

Definition at line 139 of file osdlistbtntype.h.

Referenced by Reinit(), and SetAsTree().

Definition at line 140 of file osdlistbtntype.h.

Referenced by Reinit(), and SetAsTree().

Definition at line 142 of file osdlistbtntype.h.

Referenced by Reinit(), and SetSpacing().

Definition at line 143 of file osdlistbtntype.h.

Referenced by Reinit(), and SetMargin().

Definition at line 144 of file osdlistbtntype.h.

Referenced by OSDListTreeType(), and Reinit().

Definition at line 145 of file osdlistbtntype.h.

Referenced by OSDListTreeType(), and Reinit().

float OSDListTreeType::m_wmult [private]

Definition at line 147 of file osdlistbtntype.h.

Referenced by OSDListTreeType(), Reinit(), SetAsTree(), SetMargin(), and SetSpacing().

float OSDListTreeType::m_hmult [private]

Definition at line 148 of file osdlistbtntype.h.

Referenced by OSDListTreeType(), Reinit(), and SetAsTree().

int OSDListTreeType::m_depth [private]

Definition at line 150 of file osdlistbtntype.h.

Referenced by HandleKeypress(), and SetAsTree().

Definition at line 151 of file osdlistbtntype.h.

Referenced by EnterItem(), HandleKeypress(), Reinit(), and SetAsTree().

Definition at line 152 of file osdlistbtntype.h.

Referenced by HandleKeypress(), IsVisible(), and SetVisible().

Definition at line 153 of file osdlistbtntype.h.

Referenced by HandleKeypress().


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

Generated on Sat Dec 18 05:16:09 2010 for MythTV by  doxygen 1.5.5