UIListBtnType Class Reference

#include <uilistbtntype.h>

Inheritance diagram for UIListBtnType:

UIType

List of all members.


Detailed Description

Definition at line 164 of file uilistbtntype.h.


Public Types

enum  MovementUnit { MoveItem, MovePage, MoveMax }

Public Slots

bool takeFocus ()
void looseFocus ()

Signals

void itemSelected (UIListBtnTypeItem *item)

Public Member Functions

 UIListBtnType (const QString &name, const QRect &area, int order, bool showArrow=true, bool showScrollArrows=false)
 ~UIListBtnType ()
void SetParentListTree (UIListTreeType *parent)
void SetFontActive (fontProp *font)
void SetFontInactive (fontProp *font)
void SetSpacing (int spacing)
void SetMargin (int margin)
void SetItemRegColor (const QColor &beg, const QColor &end, uint alpha)
void SetItemSelColor (const QColor &beg, const QColor &end, uint alpha)
void SetJustification (int justification)
void Draw (QPainter *p, int order, int context)
void Draw (QPainter *p, int order, int context, bool active_on)
void SetActive (bool active)
void Reset ()
void calculateScreenArea ()
void SetItemCurrent (UIListBtnTypeItem *item)
void SetItemCurrent (int pos)
UIListBtnTypeItemGetItemCurrent ()
UIListBtnTypeItemGetItemFirst ()
UIListBtnTypeItemGetItemNext (UIListBtnTypeItem *item)
UIListBtnTypeItemGetItemAt (int pos)
bool MoveItemUpDown (UIListBtnTypeItem *item, bool flag)
QPtrListIterator
< UIListBtnTypeItem
GetIterator ()
int GetItemPos (UIListBtnTypeItem *item)
int GetCount ()
void MoveDown (MovementUnit unit=MoveItem)
void MoveDown (int count)
void MoveUp (MovementUnit unit=MoveItem)
void MoveUp (int count)
bool MoveToNamedPosition (const QString &position_name)
bool incSearchStart ()
bool incSearchNext ()
bool IsVisible ()
void SetVisible (bool vis)
void SetDrawOffset (int x)
int GetDrawOffset (void)
QRect GetArea (void)
uint GetNumbItemsVisible ()

Private Member Functions

void Init ()
void LoadPixmap (QPixmap &pix, const QString &fileName)
void InsertItem (UIListBtnTypeItem *item)
void RemoveItem (UIListBtnTypeItem *item)

Private Attributes

UIListTreeTypem_parentListTree
QRect m_rect
QRect m_contentsRect
QRect m_arrowsRect
int m_itemHeight
int m_itemSpacing
int m_itemMargin
uint m_itemsVisible
int m_justify
bool m_active
bool m_visible
bool m_showScrollArrows
bool m_showArrow
bool m_showUpArrow
bool m_showDnArrow
QPixmap m_itemRegPix
QPixmap m_itemSelActPix
QPixmap m_itemSelInactPix
QPixmap m_upArrowRegPix
QPixmap m_dnArrowRegPix
QPixmap m_upArrowActPix
QPixmap m_dnArrowActPix
QPixmap m_arrowPix
QPixmap m_checkNonePix
QPixmap m_checkHalfPix
QPixmap m_checkFullPix
QColor m_itemRegBeg
QColor m_itemRegEnd
QColor m_itemSelBeg
QColor m_itemSelEnd
uint m_itemRegAlpha
uint m_itemSelAlpha
fontPropm_fontActive
fontPropm_fontInactive
bool m_initialized
bool m_clearing
UIListBtnTypeItemm_topItem
UIListBtnTypeItemm_selItem
QPtrListIterator
< UIListBtnTypeItem > * 
m_topIterator
QPtrListIterator
< UIListBtnTypeItem > * 
m_selIterator
int m_selPosition
int m_topPosition
int m_itemCount
QPtrList< UIListBtnTypeItemm_itemList
int m_xdrawoffset
QString m_incSearch
bool m_bIncSearchContains

Friends

class UIListBtnTypeItem

Member Enumeration Documentation

Enumerator:
MoveItem 
MovePage 
MoveMax 

Definition at line 201 of file uilistbtntype.h.


Constructor & Destructor Documentation

UIListBtnType::UIListBtnType ( const QString &  name,
const QRect &  area,
int  order,
bool  showArrow = true,
bool  showScrollArrows = false 
)

Definition at line 858 of file uilistbtntype.cpp.

UIListBtnType::~UIListBtnType (  ) 

Definition at line 902 of file uilistbtntype.cpp.


Member Function Documentation

void UIListBtnType::SetParentListTree ( UIListTreeType parent  )  [inline]

Definition at line 172 of file uilistbtntype.h.

Referenced by UIListTreeType::CreateLevel().

void UIListBtnType::SetFontActive ( fontProp font  ) 

Definition at line 927 of file uilistbtntype.cpp.

Referenced by UIListTreeType::CreateLevel(), and XMLParse::parseListBtnArea().

void UIListBtnType::SetFontInactive ( fontProp font  ) 

Definition at line 932 of file uilistbtntype.cpp.

Referenced by UIListTreeType::CreateLevel(), and XMLParse::parseListBtnArea().

void UIListBtnType::SetSpacing ( int  spacing  ) 

Definition at line 937 of file uilistbtntype.cpp.

Referenced by UIListTreeType::CreateLevel(), and XMLParse::parseListBtnArea().

void UIListBtnType::SetMargin ( int  margin  ) 

Definition at line 942 of file uilistbtntype.cpp.

Referenced by UIListTreeType::CreateLevel(), and XMLParse::parseListBtnArea().

void UIListBtnType::SetItemRegColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
)

void UIListBtnType::SetItemSelColor ( const QColor &  beg,
const QColor &  end,
uint  alpha 
)

void UIListBtnType::SetJustification ( int  justification  )  [inline]

Definition at line 179 of file uilistbtntype.h.

Referenced by XMLParse::parseListBtnArea().

void UIListBtnType::Draw ( QPainter *  p,
int  order,
int  context 
) [virtual]

Reimplemented from UIType.

Definition at line 1594 of file uilistbtntype.cpp.

Referenced by UIListTreeType::Draw(), and UIListTreeType::DrawRegion().

void UIListBtnType::Draw ( QPainter *  p,
int  order,
int  context,
bool  active_on 
)

Definition at line 1605 of file uilistbtntype.cpp.

void UIListBtnType::SetActive ( bool  active  ) 

void UIListBtnType::Reset ( void   ) 

void UIListBtnType::calculateScreenArea ( void   )  [virtual]

Reimplemented from UIType.

Definition at line 1907 of file uilistbtntype.cpp.

Referenced by XMLParse::parseListBtnArea(), and ScreenSetup::wireUI().

void UIListBtnType::SetItemCurrent ( UIListBtnTypeItem item  ) 

void UIListBtnType::SetItemCurrent ( int  pos  ) 

Definition at line 1138 of file uilistbtntype.cpp.

UIListBtnTypeItem * UIListBtnType::GetItemCurrent (  ) 

Definition at line 1147 of file uilistbtntype.cpp.

Referenced by ScreenSetup::activeListItemSelected(), ScreenSetup::cursorDown(), ScreenSetup::cursorRight(), ScreenSetup::cursorSelect(), ScreenSetup::cursorUp(), MythNews::deleteNewsSite(), ScreenSetup::deleteScreen(), LocationDialog::getLocation(), LocationDialog::getSource(), IconView::HandleMenuButtonPress(), MythFlix::InsertMovieIntoQueue(), LocationDialog::keyPressEvent(), SourceSetup::keyPressEvent(), MythNewsConfig::keyPressEvent(), MythFlixConfig::keyPressEvent(), MythburnWizard::keyPressEvent(), ImportNativeWizard::keyPressEvent(), FileSelector::keyPressEvent(), DirectoryFinder::keyPressEvent(), ImportNativeWizard::nextPressed(), FileSelector::OKPressed(), DirectoryFinder::OKPressed(), MythNews::processAndShowNews(), MythFlix::processAndShowNews(), MythburnWizard::removeItem(), ExportNativeWizard::removeItem(), SourceSetup::retrieveSpinboxUpdate(), SourceSetup::saveData(), UIListTreeType::SetCurrentPosition(), MythburnWizard::setProfile(), MythNews::showEditDialog(), MythburnWizard::showEditMetadataDialog(), MythFlixQueue::slotMoveToQueue(), MythFlixQueue::slotMoveToTop(), MythFlixQueue::slotRemoveFromQueue(), MythFlixQueue::slotShowNetFlixPage(), MythFlix::slotShowNetFlixPage(), MythNews::slotViewArticle(), SourceSetup::sourceListItemSelected(), MythburnWizard::toggleReorderState(), VideoSelector::toggleSelectedState(), RecordingSelector::toggleSelectedState(), MythburnWizard::toggleUseCutlist(), MythburnWizard::updateArchiveList(), ExportNativeWizard::updateArchiveList(), ScreenSetup::updateHelpText(), MythNews::updateInfoView(), MythFlixQueue::updateInfoView(), MythFlix::updateInfoView(), RecordingSelector::updateRecordingList(), MythburnWizard::updateSizeBar(), SourceSetup::updateSpinboxUpdate(), and VideoSelector::updateVideoList().

UIListBtnTypeItem * UIListBtnType::GetItemFirst (  ) 

UIListBtnTypeItem * UIListBtnType::GetItemNext ( UIListBtnTypeItem item  ) 

Definition at line 1157 of file uilistbtntype.cpp.

Referenced by UIListTreeType::ClearLevel(), and IconView::ClearMenu().

UIListBtnTypeItem * UIListBtnType::GetItemAt ( int  pos  ) 

bool UIListBtnType::MoveItemUpDown ( UIListBtnTypeItem item,
bool  flag 
)

Definition at line 1435 of file uilistbtntype.cpp.

Referenced by ScreenSetup::doListSelect(), and UIListBtnTypeItem::moveUpDown().

QPtrListIterator< UIListBtnTypeItem > UIListBtnType::GetIterator ( void   ) 

int UIListBtnType::GetItemPos ( UIListBtnTypeItem item  ) 

int UIListBtnType::GetCount (  ) 

void UIListBtnType::MoveDown ( MovementUnit  unit = MoveItem  ) 

void UIListBtnType::MoveDown ( int  count  ) 

Definition at line 1340 of file uilistbtntype.cpp.

void UIListBtnType::MoveUp ( MovementUnit  unit = MoveItem  ) 

void UIListBtnType::MoveUp ( int  count  ) 

Definition at line 1242 of file uilistbtntype.cpp.

bool UIListBtnType::MoveToNamedPosition ( const QString &  position_name  ) 

Definition at line 1381 of file uilistbtntype.cpp.

Referenced by UIListTreeType::tryToSetCurrent().

bool UIListBtnType::incSearchStart ( void   ) 

bool UIListBtnType::incSearchNext ( void   ) 

bool UIListBtnType::IsVisible (  )  [inline]

Definition at line 211 of file uilistbtntype.h.

Referenced by UIListTreeType::Draw(), and UIListTreeType::DrawRegion().

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

void UIListBtnType::SetDrawOffset ( int  x  )  [inline]

Definition at line 214 of file uilistbtntype.h.

Referenced by UIListTreeType::Draw(), and UIListTreeType::DrawRegion().

int UIListBtnType::GetDrawOffset ( void   )  [inline]

Definition at line 215 of file uilistbtntype.h.

Referenced by UIListTreeType::RedrawCurrent().

QRect UIListBtnType::GetArea ( void   )  [inline]

uint UIListBtnType::GetNumbItemsVisible (  )  [inline]

Definition at line 218 of file uilistbtntype.h.

Referenced by UIListTreeType::getNumbItemsVisible().

bool UIListBtnType::takeFocus (  )  [virtual, slot]

Reimplemented from UIType.

Definition at line 1915 of file uilistbtntype.cpp.

void UIListBtnType::looseFocus (  )  [virtual, slot]

Reimplemented from UIType.

Definition at line 1921 of file uilistbtntype.cpp.

void UIListBtnType::Init ( void   )  [private]

Definition at line 1750 of file uilistbtntype.cpp.

Referenced by UIListBtnTypeItem::CalcDimensions(), and Draw().

void UIListBtnType::LoadPixmap ( QPixmap &  pix,
const QString &  fileName 
) [private]

Definition at line 1895 of file uilistbtntype.cpp.

Referenced by Init().

void UIListBtnType::InsertItem ( UIListBtnTypeItem item  )  [private]

Definition at line 976 of file uilistbtntype.cpp.

Referenced by UIListBtnTypeItem::UIListBtnTypeItem().

void UIListBtnType::RemoveItem ( UIListBtnTypeItem item  )  [private]

Definition at line 999 of file uilistbtntype.cpp.

Referenced by UIListBtnTypeItem::~UIListBtnTypeItem().

void UIListBtnType::itemSelected ( UIListBtnTypeItem item  )  [signal]


Friends And Related Function Documentation

friend class UIListBtnTypeItem [friend]

Definition at line 288 of file uilistbtntype.h.


Member Data Documentation

Definition at line 231 of file uilistbtntype.h.

Referenced by Draw(), and UIListBtnType().

QRect UIListBtnType::m_rect [private]

Definition at line 234 of file uilistbtntype.h.

Referenced by Draw(), and Init().

QRect UIListBtnType::m_arrowsRect [private]

Definition at line 235 of file uilistbtntype.h.

Referenced by Draw(), and Init().

Definition at line 237 of file uilistbtntype.h.

Referenced by UIListBtnTypeItem::CalcDimensions(), Draw(), Init(), and UIListBtnType().

Definition at line 238 of file uilistbtntype.h.

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

int UIListBtnType::m_justify [private]

Definition at line 242 of file uilistbtntype.h.

Referenced by Draw(), and UIListBtnType().

Definition at line 244 of file uilistbtntype.h.

Referenced by Draw(), UIListBtnTypeItem::paint(), SetActive(), and UIListBtnType().

Definition at line 245 of file uilistbtntype.h.

Referenced by Draw(), and UIListBtnType().

Definition at line 246 of file uilistbtntype.h.

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

QPixmap UIListBtnType::m_itemRegPix [private]

Definition at line 251 of file uilistbtntype.h.

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

QPixmap UIListBtnType::m_itemSelActPix [private]

Definition at line 252 of file uilistbtntype.h.

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

Definition at line 253 of file uilistbtntype.h.

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

QPixmap UIListBtnType::m_upArrowRegPix [private]

Definition at line 254 of file uilistbtntype.h.

Referenced by Draw(), and Init().

QPixmap UIListBtnType::m_dnArrowRegPix [private]

Definition at line 255 of file uilistbtntype.h.

Referenced by Draw(), and Init().

QPixmap UIListBtnType::m_upArrowActPix [private]

Definition at line 256 of file uilistbtntype.h.

Referenced by Draw(), and Init().

QPixmap UIListBtnType::m_dnArrowActPix [private]

Definition at line 257 of file uilistbtntype.h.

Referenced by Draw(), and Init().

QPixmap UIListBtnType::m_arrowPix [private]

QPixmap UIListBtnType::m_checkNonePix [private]

QPixmap UIListBtnType::m_checkHalfPix [private]

Definition at line 260 of file uilistbtntype.h.

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

QPixmap UIListBtnType::m_checkFullPix [private]

Definition at line 261 of file uilistbtntype.h.

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

QColor UIListBtnType::m_itemRegBeg [private]

Definition at line 263 of file uilistbtntype.h.

Referenced by Init(), and SetItemRegColor().

QColor UIListBtnType::m_itemRegEnd [private]

Definition at line 264 of file uilistbtntype.h.

Referenced by Init(), and SetItemRegColor().

QColor UIListBtnType::m_itemSelBeg [private]

Definition at line 265 of file uilistbtntype.h.

Referenced by Init(), and SetItemSelColor().

QColor UIListBtnType::m_itemSelEnd [private]

Definition at line 266 of file uilistbtntype.h.

Referenced by Init(), and SetItemSelColor().

Definition at line 267 of file uilistbtntype.h.

Referenced by Init(), and SetItemRegColor().

Definition at line 268 of file uilistbtntype.h.

Referenced by SetItemSelColor().

Definition at line 270 of file uilistbtntype.h.

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

Definition at line 271 of file uilistbtntype.h.

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

Definition at line 273 of file uilistbtntype.h.

Referenced by UIListBtnTypeItem::CalcDimensions(), Draw(), Init(), and UIListBtnType().

Definition at line 274 of file uilistbtntype.h.

Referenced by RemoveItem(), Reset(), and UIListBtnType().

QPtrListIterator<UIListBtnTypeItem>* UIListBtnType::m_topIterator [private]

QPtrListIterator<UIListBtnTypeItem>* UIListBtnType::m_selIterator [private]

Definition at line 290 of file uilistbtntype.h.

Referenced by Draw(), and UIListBtnType().

QString UIListBtnType::m_incSearch [private]

Definition at line 292 of file uilistbtntype.h.

Referenced by incSearchNext(), incSearchStart(), and UIListBtnType().

Definition at line 293 of file uilistbtntype.h.

Referenced by incSearchNext(), incSearchStart(), and UIListBtnType().


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

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