OSDListBtnType Class Reference

#include <osdlistbtntype.h>

Inheritance diagram for OSDListBtnType:

OSDType

List of all members.


Detailed Description

Definition at line 156 of file osdlistbtntype.h.


Signals

void itemSelected (OSDListBtnTypeItem *item)

Public Member Functions

 OSDListBtnType (const QString &name, const QRect &area, float wmult, float hmult, bool showScrollArrows=false)
 ~OSDListBtnType ()
bool IsVisible () const
void SetFontActive (TTFFont *font)
void SetFontInactive (TTFFont *font)
void SetSpacing (int spacing)
void SetMargin (int margin)
void SetActive (bool active)
void SetVisible (bool vis)
void SetItemRegColor (const QColor &beg, const QColor &end, uint alpha)
void SetItemSelColor (const QColor &beg, const QColor &end, uint alpha)
void SetGroupCheckState (QString group, int newState=0)
void SetItemCurrent (const OSDListBtnTypeItem *item)
void SetItemCurrent (uint pos)
int GetCount (void) const
int GetItemPos (const OSDListBtnTypeItem *item) const
int GetItemCurrentPos () const
OSDListBtnTypeItemGetItemCurrent (void)
OSDListBtnTypeItemGetItemFirst (void)
OSDListBtnTypeItemGetItemNext (const OSDListBtnTypeItem *item)
OSDListBtnTypeItemGetItemAt (int pos)
void MoveDown (void)
void MoveUp (void)
void MovePageDown (void)
void MovePageUp (void)
void Draw (OSDSurface *surface, int fade, int maxfade, int xoff, int yoff)
void Reinit (float, float)
void Reset (void)

Private Member Functions

void Init (void)
void InitItem (OSDTypeImage &osdImg, uint width, uint height, QColor beg, QColor end, int alpha)
void LoadPixmap (OSDTypeImage &pix, const QString &fileName)
void InsertItem (OSDListBtnTypeItem *item)
void RemoveItem (OSDListBtnTypeItem *item)

Private Attributes

int m_order
QRect m_rect
QRect m_contentsRect
QRect m_arrowsRect
float m_wmult
float m_hmult
int m_itemHeight
int m_itemSpacing
int m_itemMargin
uint m_itemsVisible
bool m_active
bool m_showScrollArrows
bool m_showUpArrow
bool m_showDnArrow
bool m_initialized
bool m_clearing
bool m_visible
QColor m_itemRegBeg
QColor m_itemRegEnd
QColor m_itemSelBeg
QColor m_itemSelEnd
uint m_itemRegAlpha
uint m_itemSelAlpha
OSDTypeImage m_itemRegPix
OSDTypeImage m_itemSelActPix
OSDTypeImage m_itemSelInactPix
OSDTypeImage m_upArrowRegPix
OSDTypeImage m_dnArrowRegPix
OSDTypeImage m_upArrowActPix
OSDTypeImage m_dnArrowActPix
OSDTypeImage m_arrowPix
OSDTypeImage m_checkNonePix
OSDTypeImage m_checkHalfPix
OSDTypeImage m_checkFullPix
TTFFontm_fontActive
TTFFontm_fontInactive
int m_topIndx
int m_selIndx
OSDListBtnItemList m_itemList
QMutex m_update

Friends

class OSDListBtnTypeItem

Constructor & Destructor Documentation

OSDListBtnType::OSDListBtnType ( const QString &  name,
const QRect &  area,
float  wmult,
float  hmult,
bool  showScrollArrows = false 
)

Definition at line 340 of file osdlistbtntype.cpp.

OSDListBtnType::~OSDListBtnType (  ) 

Definition at line 362 of file osdlistbtntype.cpp.


Member Function Documentation

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

Definition at line 168 of file osdlistbtntype.h.

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

Definition at line 171 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

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

Definition at line 172 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

void OSDListBtnType::SetSpacing ( int  spacing  )  [inline]

Definition at line 173 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

void OSDListBtnType::SetMargin ( int  margin  )  [inline]

Definition at line 174 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

void OSDListBtnType::SetActive ( bool  active  )  [inline]

void OSDListBtnType::SetVisible ( bool  vis  )  [inline]

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

Definition at line 177 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

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

Definition at line 179 of file osdlistbtntype.h.

Referenced by OSDListTreeType::SetAsTree().

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

Definition at line 367 of file osdlistbtntype.cpp.

void OSDListBtnType::SetItemCurrent ( const OSDListBtnTypeItem item  ) 

Definition at line 431 of file osdlistbtntype.cpp.

Referenced by OSDListTreeType::SetAsTree().

void OSDListBtnType::SetItemCurrent ( uint  pos  ) 

Definition at line 439 of file osdlistbtntype.cpp.

int OSDListBtnType::GetCount ( void   )  const

Definition at line 483 of file osdlistbtntype.cpp.

int OSDListBtnType::GetItemPos ( const OSDListBtnTypeItem item  )  const

Definition at line 495 of file osdlistbtntype.cpp.

int OSDListBtnType::GetItemCurrentPos ( void   )  const

Definition at line 452 of file osdlistbtntype.cpp.

OSDListBtnTypeItem * OSDListBtnType::GetItemCurrent ( void   ) 

Definition at line 458 of file osdlistbtntype.cpp.

Referenced by OSDListBtnTypeItem::paint().

OSDListBtnTypeItem * OSDListBtnType::GetItemFirst ( void   ) 

Definition at line 466 of file osdlistbtntype.cpp.

OSDListBtnTypeItem * OSDListBtnType::GetItemNext ( const OSDListBtnTypeItem item  ) 

Definition at line 474 of file osdlistbtntype.cpp.

OSDListBtnTypeItem * OSDListBtnType::GetItemAt ( int  pos  ) 

Definition at line 489 of file osdlistbtntype.cpp.

void OSDListBtnType::MoveDown ( void   ) 

Definition at line 521 of file osdlistbtntype.cpp.

Referenced by OSDListTreeType::HandleKeypress().

void OSDListBtnType::MoveUp ( void   ) 

Definition at line 501 of file osdlistbtntype.cpp.

Referenced by OSDListTreeType::HandleKeypress().

void OSDListBtnType::MovePageDown ( void   ) 

Definition at line 563 of file osdlistbtntype.cpp.

Referenced by OSDListTreeType::HandleKeypress().

void OSDListBtnType::MovePageUp ( void   ) 

Definition at line 539 of file osdlistbtntype.cpp.

Referenced by OSDListTreeType::HandleKeypress().

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

Implements OSDType.

Definition at line 586 of file osdlistbtntype.cpp.

void OSDListBtnType::Reinit ( float  ,
float   
) [inline, virtual]

Implements OSDType.

Definition at line 202 of file osdlistbtntype.h.

void OSDListBtnType::Reset ( void   ) 

void OSDListBtnType::Init ( void   )  [private]

Definition at line 631 of file osdlistbtntype.cpp.

Referenced by Draw(), and OSDListBtnTypeItem::OSDListBtnTypeItem().

void OSDListBtnType::InitItem ( OSDTypeImage osdImg,
uint  width,
uint  height,
QColor  beg,
QColor  end,
int  alpha 
) [private]

Definition at line 680 of file osdlistbtntype.cpp.

Referenced by Init().

void OSDListBtnType::LoadPixmap ( OSDTypeImage pix,
const QString &  fileName 
) [private]

Definition at line 717 of file osdlistbtntype.cpp.

Referenced by Init().

void OSDListBtnType::InsertItem ( OSDListBtnTypeItem item  )  [private]

Definition at line 393 of file osdlistbtntype.cpp.

Referenced by OSDListBtnTypeItem::OSDListBtnTypeItem().

void OSDListBtnType::RemoveItem ( OSDListBtnTypeItem item  )  [private]

Definition at line 410 of file osdlistbtntype.cpp.

Referenced by OSDListBtnTypeItem::~OSDListBtnTypeItem().

void OSDListBtnType::itemSelected ( OSDListBtnTypeItem item  )  [signal]


Friends And Related Function Documentation

friend class OSDListBtnTypeItem [friend]

Definition at line 158 of file osdlistbtntype.h.


Member Data Documentation

int OSDListBtnType::m_order [private]

Definition at line 215 of file osdlistbtntype.h.

QRect OSDListBtnType::m_rect [private]

Definition at line 216 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and OSDListBtnTypeItem::OSDListBtnTypeItem().

Definition at line 217 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 218 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

float OSDListBtnType::m_wmult [private]

Definition at line 220 of file osdlistbtntype.h.

Referenced by LoadPixmap().

float OSDListBtnType::m_hmult [private]

Definition at line 221 of file osdlistbtntype.h.

Referenced by LoadPixmap().

Definition at line 223 of file osdlistbtntype.h.

Referenced by Draw(), Init(), InitItem(), and OSDListBtnTypeItem::OSDListBtnTypeItem().

Definition at line 224 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and SetSpacing().

Definition at line 225 of file osdlistbtntype.h.

Referenced by Draw(), Init(), OSDListBtnTypeItem::OSDListBtnTypeItem(), and SetMargin().

Definition at line 228 of file osdlistbtntype.h.

Referenced by Draw(), OSDListBtnTypeItem::paint(), and SetActive().

Definition at line 229 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and InsertItem().

Definition at line 232 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and OSDListBtnTypeItem::OSDListBtnTypeItem().

Definition at line 233 of file osdlistbtntype.h.

Referenced by RemoveItem(), and Reset().

Definition at line 234 of file osdlistbtntype.h.

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

QColor OSDListBtnType::m_itemRegBeg [private]

Definition at line 236 of file osdlistbtntype.h.

Referenced by Init(), and SetItemRegColor().

QColor OSDListBtnType::m_itemRegEnd [private]

Definition at line 237 of file osdlistbtntype.h.

Referenced by Init(), and SetItemRegColor().

QColor OSDListBtnType::m_itemSelBeg [private]

Definition at line 238 of file osdlistbtntype.h.

Referenced by Init(), and SetItemSelColor().

QColor OSDListBtnType::m_itemSelEnd [private]

Definition at line 239 of file osdlistbtntype.h.

Referenced by Init(), and SetItemSelColor().

Definition at line 240 of file osdlistbtntype.h.

Referenced by Init(), and SetItemRegColor().

Definition at line 241 of file osdlistbtntype.h.

Referenced by SetItemSelColor().

Definition at line 243 of file osdlistbtntype.h.

Referenced by Init(), and OSDListBtnTypeItem::paint().

Definition at line 244 of file osdlistbtntype.h.

Referenced by Init(), and OSDListBtnTypeItem::paint().

Definition at line 245 of file osdlistbtntype.h.

Referenced by Init(), and OSDListBtnTypeItem::paint().

Definition at line 246 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 247 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 248 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 249 of file osdlistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 252 of file osdlistbtntype.h.

Referenced by Init(), and OSDListBtnTypeItem::paint().

Definition at line 253 of file osdlistbtntype.h.

Referenced by Init(), and OSDListBtnTypeItem::paint().

Definition at line 255 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and SetFontActive().

Definition at line 256 of file osdlistbtntype.h.

Referenced by Draw(), Init(), and SetFontInactive().

QMutex OSDListBtnType::m_update [mutable, private]


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

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