UIListBtnTypeItem Class Reference

#include <uilistbtntype.h>

List of all members.


Detailed Description

Definition at line 300 of file uilistbtntype.h.


Public Types

enum  CheckState { CantCheck = -1, NotChecked = 0, HalfChecked, FullChecked }

Public Member Functions

 UIListBtnTypeItem (UIListBtnType *lbtype, const QString &text, QPixmap *pixmap=0, bool checkable=false, CheckState state=CantCheck, bool showArrow=false)
 ~UIListBtnTypeItem ()
UIListBtnTypeparent () const
void setText (const QString &text)
QString text () const
void setPixmap (QPixmap *pixmap)
const QPixmap * pixmap () const
bool checkable () const
void setCheckable (bool flag)
CheckState state () const
void setChecked (CheckState state)
void setDrawArrow (bool flag)
bool getDrawArrow (void)
void setData (void *data)
void * getData ()
void setOverrideInactive (bool flag)
bool getOverrideInactive (void)
void setJustification (int justification)
int getJustification (void) const
bool moveUpDown (bool flag)
void paint (QPainter *p, fontProp *font, int x, int y, bool active_on)

Protected Member Functions

void CalcDimensions (void)

Protected Attributes

UIListBtnTypem_parent
QString m_text
QPixmap * m_pixmap
bool m_checkable
CheckState m_state
void * m_data
QRect m_checkRect
QRect m_pixmapRect
QRect m_textRect
QRect m_arrowRect
bool m_showArrow
bool m_overrideInactive
int m_justify

Friends

class UIListBtnType

Member Enumeration Documentation

Enumerator:
CantCheck 
NotChecked 
HalfChecked 
FullChecked 

Definition at line 305 of file uilistbtntype.h.


Constructor & Destructor Documentation

UIListBtnTypeItem::UIListBtnTypeItem ( UIListBtnType lbtype,
const QString &  text,
QPixmap *  pixmap = 0,
bool  checkable = false,
CheckState  state = CantCheck,
bool  showArrow = false 
)

Definition at line 1929 of file uilistbtntype.cpp.

UIListBtnTypeItem::~UIListBtnTypeItem (  ) 

Definition at line 2003 of file uilistbtntype.cpp.


Member Function Documentation

UIListBtnType * UIListBtnTypeItem::parent (  )  const

Definition at line 2041 of file uilistbtntype.cpp.

void UIListBtnTypeItem::setText ( const QString &  text  ) 

QString UIListBtnTypeItem::text ( void   )  const

void UIListBtnTypeItem::setPixmap ( QPixmap *  pixmap  ) 

const QPixmap * UIListBtnTypeItem::pixmap (  )  const

Definition at line 2020 of file uilistbtntype.cpp.

bool UIListBtnTypeItem::checkable (  )  const

Definition at line 2031 of file uilistbtntype.cpp.

Referenced by UIListBtnType::Draw().

void UIListBtnTypeItem::setCheckable ( bool  flag  ) 

UIListBtnTypeItem::CheckState UIListBtnTypeItem::state ( void   )  const

void UIListBtnTypeItem::setChecked ( UIListBtnTypeItem::CheckState  state  ) 

void UIListBtnTypeItem::setDrawArrow ( bool  flag  ) 

bool UIListBtnTypeItem::getDrawArrow ( void   )  [inline]

Definition at line 332 of file uilistbtntype.h.

Referenced by UIListBtnType::Draw().

void UIListBtnTypeItem::setData ( void *  data  ) 

void * UIListBtnTypeItem::getData ( void   ) 

Definition at line 2070 of file uilistbtntype.cpp.

Referenced by ScreenSetup::activeListItemSelected(), UIListTreeType::ClearLevel(), IconView::ClearMenu(), ScreenSetup::cursorRight(), MythNews::deleteNewsSite(), ScreenSetup::doListSelect(), LocationDialog::getLocation(), LocationDialog::getSource(), IconView::HandleMenuButtonPress(), MythFlix::InsertMovieIntoQueue(), LocationDialog::itemSelected(), MythburnWizard::keyPressEvent(), ImportNativeWizard::keyPressEvent(), FileSelector::keyPressEvent(), DirectoryFinder::keyPressEvent(), ImportNativeWizard::nextPressed(), FileSelector::OKPressed(), DirectoryFinder::OKPressed(), MythNews::processAndShowNews(), MythFlix::processAndShowNews(), UIListTreeType::RefreshCurrentLevel(), MythburnWizard::reloadSelectedList(), MythburnWizard::removeItem(), ExportNativeWizard::removeItem(), SourceSetup::retrieveSpinboxUpdate(), SourceSetup::saveData(), ScreenSetup::saveData(), MythburnWizard::selectedChanged(), ImportNativeWizard::selectedChanged(), UIListTreeType::SetCurrentPosition(), MythburnWizard::setProfile(), UIListTreeType::SetTree(), MythNews::showEditDialog(), MythburnWizard::showEditMetadataDialog(), MythNewsConfig::slotCategoryChanged(), MythFlixConfig::slotCategoryChanged(), MythFlixQueue::slotMoveToQueue(), MythFlixQueue::slotMoveToTop(), MythFlixQueue::slotRemoveFromQueue(), MythFlixQueue::slotShowNetFlixPage(), MythFlix::slotShowNetFlixPage(), MythNews::slotSiteSelected(), MythFlix::slotSiteSelected(), MythNews::slotViewArticle(), SourceSetup::sourceListItemSelected(), VideoSelector::titleChanged(), RecordingSelector::titleChanged(), MythburnWizard::titleChanged(), ExportNativeWizard::titleChanged(), MythNewsConfig::toggleItem(), MythFlixConfig::toggleItem(), VideoSelector::toggleSelectedState(), RecordingSelector::toggleSelectedState(), MythburnWizard::toggleUseCutlist(), ScreenSetup::updateHelpText(), MythNews::updateInfoView(), MythFlixQueue::updateInfoView(), MythFlix::updateInfoView(), SourceSetup::updateSpinboxUpdate(), and SourceSetup::~SourceSetup().

void UIListBtnTypeItem::setOverrideInactive ( bool  flag  ) 

bool UIListBtnTypeItem::getOverrideInactive ( void   ) 

Definition at line 2080 of file uilistbtntype.cpp.

void UIListBtnTypeItem::setJustification ( int  justification  )  [inline]

Definition at line 340 of file uilistbtntype.h.

int UIListBtnTypeItem::getJustification ( void   )  const [inline]

Definition at line 341 of file uilistbtntype.h.

bool UIListBtnTypeItem::moveUpDown ( bool  flag  ) 

void UIListBtnTypeItem::paint ( QPainter *  p,
fontProp font,
int  x,
int  y,
bool  active_on 
)

Definition at line 2090 of file uilistbtntype.cpp.

void UIListBtnTypeItem::CalcDimensions ( void   )  [protected]

Definition at line 1952 of file uilistbtntype.cpp.

Referenced by setCheckable(), setDrawArrow(), setPixmap(), setText(), and UIListBtnTypeItem().


Friends And Related Function Documentation

friend class UIListBtnType [friend]

Definition at line 367 of file uilistbtntype.h.


Member Data Documentation

QString UIListBtnTypeItem::m_text [protected]

Definition at line 351 of file uilistbtntype.h.

Referenced by paint(), setText(), and text().

QPixmap* UIListBtnTypeItem::m_pixmap [protected]

Definition at line 352 of file uilistbtntype.h.

Referenced by CalcDimensions(), paint(), pixmap(), and setPixmap().

Definition at line 354 of file uilistbtntype.h.

Referenced by paint(), setChecked(), and state().

void* UIListBtnTypeItem::m_data [protected]

Definition at line 355 of file uilistbtntype.h.

Referenced by getData(), and setData().

QRect UIListBtnTypeItem::m_checkRect [protected]

Definition at line 357 of file uilistbtntype.h.

Referenced by CalcDimensions(), and paint().

Definition at line 358 of file uilistbtntype.h.

Referenced by CalcDimensions(), and paint().

QRect UIListBtnTypeItem::m_textRect [protected]

Definition at line 359 of file uilistbtntype.h.

Referenced by CalcDimensions(), and paint().

QRect UIListBtnTypeItem::m_arrowRect [protected]

Definition at line 360 of file uilistbtntype.h.

Referenced by CalcDimensions(), and paint().

Definition at line 362 of file uilistbtntype.h.

Referenced by CalcDimensions(), paint(), and setDrawArrow().

Definition at line 364 of file uilistbtntype.h.

Referenced by getOverrideInactive(), paint(), and setOverrideInactive().

Definition at line 365 of file uilistbtntype.h.

Referenced by paint().


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