MythUIButtonList Class Reference
[MythUI Widget and theme handling]

List widget, displays list items in a variety of themeable arrangements and can trigger signals when items are highlighted or clicked. More...

#include <mythuibuttonlist.h>

Inheritance diagram for MythUIButtonList:
MythUIType XMLParseBase MythUISpinBox

List of all members.

Public Types

enum  MovementUnit {
  MoveItem, MoveColumn, MoveRow, MovePage,
  MoveMax, MoveMid, MoveByAmount
}
enum  LayoutType { LayoutVertical, LayoutHorizontal, LayoutGrid }

Public Slots

void Select ()
void Deselect ()

Signals

void itemSelected (MythUIButtonListItem *item)
void itemClicked (MythUIButtonListItem *item)
void itemVisible (MythUIButtonListItem *item)

Public Member Functions

 MythUIButtonList (MythUIType *parent, const QString &name)
 MythUIButtonList (MythUIType *parent, const QString &name, const QRect &area, bool showArrow=true, bool showScrollArrows=false)
 ~MythUIButtonList ()
virtual bool keyPressEvent (QKeyEvent *)
virtual bool gestureEvent (MythGestureEvent *event)
void SetDrawFromBottom (bool draw)
void Reset ()
void Update ()
virtual void SetValue (int value)
virtual void SetValue (QString value)
void SetValueByData (QVariant data)
virtual int GetIntValue () const
virtual QString GetValue () const
QVariant GetDataValue () const
MythRect GetButtonArea (void) const
void SetItemCurrent (MythUIButtonListItem *item)
void SetItemCurrent (int pos, int topPos=-1)
MythUIButtonListItemGetItemCurrent () const
MythUIButtonListItemGetItemFirst () const
MythUIButtonListItemGetItemNext (MythUIButtonListItem *item) const
MythUIButtonListItemGetItemAt (int pos) const
MythUIButtonListItemGetItemByData (QVariant data)
uint ItemWidth (void)
uint ItemHeight (void)
LayoutType GetLayout () const
bool MoveItemUpDown (MythUIButtonListItem *item, bool up)
void SetAllChecked (MythUIButtonListItem::CheckState state)
int GetCurrentPos () const
int GetItemPos (MythUIButtonListItem *item) const
int GetTopItemPos (void) const
int GetCount () const
uint GetVisibleCount ()
bool IsEmpty () const
virtual bool MoveDown (MovementUnit unit=MoveItem, uint amount=0)
virtual bool MoveUp (MovementUnit unit=MoveItem, uint amount=0)
bool MoveToNamedPosition (const QString &position_name)
void RemoveItem (MythUIButtonListItem *item)
void SetLCDTitles (const QString &title, const QString &columnList="")
void updateLCD (void)
void SetSearchFields (const QString &fields)
void ShowSearchDialog (void)
bool Find (const QString &searchStr, bool startsWith=false)
bool FindNext (void)
bool FindPrev (void)

Protected Types

enum  ScrollStyle { ScrollFree, ScrollCenter, ScrollGroupCenter }
enum  ArrangeType { ArrangeFixed, ArrangeFill, ArrangeSpread, ArrangeStack }
enum  WrapStyle {
  WrapCaptive = -1, WrapNone = 0, WrapSelect, WrapItems,
  WrapFlowing
}

Protected Member Functions

virtual void DrawSelf (MythPainter *p, int xoffset, int yoffset, int alphaMod, QRect clipRect)
void Const ()
virtual void Init ()
void InsertItem (MythUIButtonListItem *item, int listPosition=-1)
int minButtonWidth (const MythRect &area)
int minButtonHeight (const MythRect &area)
void InitButton (int itemIdx, MythUIStateType *&realButton, MythUIButtonListItem *&buttonItem)
MythUIGroupPrepareButton (int buttonIdx, int itemIdx, int &selectedIdx, int &button_shift)
bool DistributeRow (int &first_button, int &last_button, int &first_item, int &last_item, int &selected_column, int &skip_cols, bool grow_left, bool grow_right, int **col_widths, int &row_height, int total_height, int split_height, int &col_cnt, bool &wrapped)
bool DistributeCols (int &first_button, int &last_button, int &first_item, int &last_item, int &selected_column, int &selected_row, int &skip_cols, int **col_widths, QList< int > &row_heights, int &top_height, int &bottom_height, bool &wrapped)
bool DistributeButtons (void)
void SetPosition (void)
void SetPositionArrowStates (void)
void ItemVisible (MythUIButtonListItem *item)
void SetActive (bool active)
int PageUp (void)
int PageDown (void)
bool DoFind (bool doMove, bool searchForward)
virtual void CalculateVisibleItems (void)
virtual QPoint GetButtonPosition (int column, int row) const
void SetButtonArea (const MythRect &rect)
virtual bool ParseElement (const QString &filename, QDomElement &element, bool showWarnings)
virtual void CopyFrom (MythUIType *base)
virtual void CreateCopy (MythUIType *parent)
virtual void Finalize (void)
void SanitizePosition (void)

Protected Attributes

LayoutType m_layout
ArrangeType m_arrange
ScrollStyle m_scrollStyle
WrapStyle m_wrapStyle
int m_alignment
MythRect m_contentsRect
MythPoint m_searchPosition
QString m_searchFields
QString m_searchStr
bool m_searchStartsWith
int m_itemWidth
int m_itemHeight
int m_itemHorizSpacing
int m_itemVertSpacing
uint m_itemsVisible
int m_maxVisible
int m_rows
int m_columns
int m_leftColumns
int m_rightColumns
int m_topRows
int m_bottomRows
bool m_active
bool m_showArrow
MythUIStateTypem_upArrow
MythUIStateTypem_downArrow
MythUIStateTypem_buttontemplate
QVector< MythUIStateType * > m_ButtonList
QMap< int, MythUIButtonListItem * > m_ButtonToItem
QHash< QString, QString > m_actionRemap
bool m_initialized
bool m_needsUpdate
bool m_clearing
int m_selPosition
int m_topPosition
int m_itemCount
bool m_keepSelAtBottom
QList< MythUIButtonListItem * > m_itemList
bool m_drawFromBottom
QString m_lcdTitle
QStringList m_lcdColumns

Friends

class MythUIButtonListItem
class MythUIButtonTree

Detailed Description

List widget, displays list items in a variety of themeable arrangements and can trigger signals when items are highlighted or clicked.

Definition at line 117 of file mythuibuttonlist.h.


Member Enumeration Documentation

Enumerator:
MoveItem 
MoveColumn 
MoveRow 
MovePage 
MoveMax 
MoveMid 
MoveByAmount 

Definition at line 130 of file mythuibuttonlist.h.

Enumerator:
LayoutVertical 
LayoutHorizontal 
LayoutGrid 

Definition at line 132 of file mythuibuttonlist.h.

Enumerator:
ScrollFree 
ScrollCenter 
ScrollGroupCenter 

Definition at line 195 of file mythuibuttonlist.h.

Enumerator:
ArrangeFixed 
ArrangeFill 
ArrangeSpread 
ArrangeStack 

Definition at line 196 of file mythuibuttonlist.h.

enum MythUIButtonList::WrapStyle [protected]
Enumerator:
WrapCaptive 
WrapNone 
WrapSelect 
WrapItems 
WrapFlowing 

Definition at line 197 of file mythuibuttonlist.h.


Constructor & Destructor Documentation

MythUIButtonList::MythUIButtonList ( MythUIType parent,
const QString &  name 
)

Definition at line 23 of file mythuibuttonlist.cpp.

Referenced by CreateCopy().

MythUIButtonList::MythUIButtonList ( MythUIType parent,
const QString &  name,
const QRect &  area,
bool  showArrow = true,
bool  showScrollArrows = false 
)

Definition at line 31 of file mythuibuttonlist.cpp.

MythUIButtonList::~MythUIButtonList (  ) 

Definition at line 91 of file mythuibuttonlist.cpp.


Member Function Documentation

bool MythUIButtonList::keyPressEvent ( QKeyEvent *  e  )  [virtual]

Key event handler.

Parameters:
event Keypress event

Reimplemented from MythUIType.

Definition at line 2278 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonTree::keyPressEvent().

bool MythUIButtonList::gestureEvent ( MythGestureEvent event  )  [virtual]

Mouse click/movement handler, receives mouse gesture events from the QCoreApplication event loop. Should not be used directly.

Parameters:
event Mouse event

Reimplemented from MythUIType.

Definition at line 2412 of file mythuibuttonlist.cpp.

void MythUIButtonList::SetDrawFromBottom ( bool  draw  ) 

Definition at line 115 of file mythuibuttonlist.cpp.

void MythUIButtonList::Reset ( void   )  [virtual]

Reset the widget to it's original state, should not reset changes made by the theme.

Reimplemented from MythUIType.

Definition at line 134 of file mythuibuttonlist.cpp.

Referenced by LocationDialog::clearResults(), MythNews::clearSites(), StatusBox::doAutoExpireList(), StatusBox::doJobQueueStatus(), StatusBox::doListingsStatus(), StatusBox::doLogEntries(), StatusBox::doMachineStatus(), StatusBox::doScheduleStatus(), NetSearch::doSearch(), StatusBox::doTunerStatus(), ImportIconsWizard::enableControls(), CriteriaRowEditor::fieldChanged(), NetSearch::fillGrabberButtonList(), ViewScheduled::FillList(), ChannelEditor::fillList(), RSSEditor::fillRSSButtonList(), GuideGrid::fillTimeInfos(), NetSearch::getLastResults(), NetSearch::getMoreResults(), CriteriaRowEditor::getOperatorList(), SmartPLOrderByDialog::getOrderByFields(), ThemeChooser::Init(), VideoDialog::loadData(), NetTree::loadData(), ViewScheduled::LoadList(), MythNews::processAndShowNews(), ImportIconsWizard::search(), SmartPLOrderByDialog::setFieldList(), ZMEvents::setGridLayout(), PlaybackBox::setGroupFilter(), MythControls::SetListContents(), MythUISpinBox::SetRange(), SmartPLResultViewer::setSQL(), LogViewer::showFullLog(), LogViewer::showProgressLog(), MythNewsConfig::slotCategoryChanged(), MythNews::slotSiteSelected(), MythUISearchDialog::slotUpdateList(), ProgFinder::timesListLosingFocus(), MythBurn::updateArchiveList(), ExportNative::updateArchiveList(), GuideGrid::updateChannels(), ProgLister::UpdateDisplay(), MythUIFileBrowser::updateFileList(), FileSelector::updateFileList(), BookmarkManager::UpdateGroupList(), EditAlbumartDialog::updateImageGrid(), ProgramRecPriority::UpdateList(), MythUIButtonTree::UpdateList(), ChannelRecPriority::updateList(), MythDialogBox::updateMenu(), ZMConsole::updateMonitorList(), PlaybackBox::updateRecList(), RecordingSelector::updateRecordingList(), FileAssocDialog::UpdateScreen(), ProgFinder::updateShowList(), ProgFinder::updateTimesList(), Ripper::updateTrackList(), SearchView::updateTracksList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), PlaybackBox::UpdateUILists(), MusicCommon::updateUIPlayedList(), MusicCommon::updateUIPlaylist(), PlaybackBox::UpdateUIRecGroupList(), BookmarkManager::UpdateURLList(), and VideoSelector::updateVideoList().

void MythUIButtonList::Update ( void   ) 
virtual void MythUIButtonList::SetValue ( int  value  )  [inline, virtual]
virtual void MythUIButtonList::SetValue ( QString  value  )  [inline, virtual]

Definition at line 140 of file mythuibuttonlist.h.

void MythUIButtonList::SetValueByData ( QVariant  data  ) 
int MythUIButtonList::GetIntValue ( void   )  const [virtual]

Reimplemented in MythUISpinBox.

Definition at line 1538 of file mythuibuttonlist.cpp.

QString MythUIButtonList::GetValue ( void   )  const [virtual]
QVariant MythUIButtonList::GetDataValue (  )  const
MythRect MythUIButtonList::GetButtonArea ( void   )  const

Definition at line 1568 of file mythuibuttonlist.cpp.

Referenced by MythUIStateType::RecalculateArea().

void MythUIButtonList::SetItemCurrent ( MythUIButtonListItem item  ) 

Definition at line 1499 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButton(), TimePopup::Create(), ManualSchedule::Create(), StatusBox::customEvent(), SearchView::customEvent(), StoreOptEditor::customEvent(), MusicCommon::customEvent(), DoFind(), ChannelEditor::fillList(), PlayerSettings::fillRegionList(), gestureEvent(), VideoSelector::getVideoList(), PlaybackBox::HandleRecordingRemoveEvent(), StatusBox::Init(), RawSettingsEditor::Init(), LogViewer::Init(), EditPowerSearchPopup::initLists(), ThumbFinder::keyPressEvent(), MythBrowser::keyPressEvent(), MusicCommon::keyPressEvent(), LanguageSelection::Load(), SelectDestination::loadConfiguration(), VideoDialog::loadData(), VideoSetupWizard::loadData(), NetTree::loadData(), CustomPriority::loadData(), CustomEdit::loadData(), ViewScheduled::LoadList(), ManualSchedule::minuteRollover(), MoveToNamedPosition(), SmartPLOrderByDialog::orderByChanged(), ZMEvents::playerExited(), BookmarkManager::ReloadBookmarks(), restore_position(), MusicCommon::restorePosition(), ProgLister::RestoreSelection(), VideoDialog::searchComplete(), ProgFinder::selectShowData(), SetValueByData(), MythBrowser::slotAddTab(), MythUISearchDialog::slotUpdateList(), MythBurn::updateArchiveList(), ExportNative::updateArchiveList(), RecordingSelector::updateCategorySelector(), LogViewer::updateClicked(), ProgramRecPriority::UpdateList(), MythUIButtonTree::UpdateList(), ChannelRecPriority::updateList(), MythDialogBox::updateMenu(), ZMConsole::updateMonitorList(), RecordingSelector::updateRecordingList(), FileAssocDialog::UpdateScreen(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), MusicCommon::updateUIPlaylist(), PlaybackBox::UpdateUIRecGroupList(), and VideoSelector::updateVideoList().

void MythUIButtonList::SetItemCurrent ( int  pos,
int  topPos = -1 
)

Definition at line 1505 of file mythuibuttonlist.cpp.

MythUIButtonListItem * MythUIButtonList::GetItemCurrent (  )  const

Definition at line 1529 of file mythuibuttonlist.cpp.

Referenced by BackendSelection::Accept(), CustomPriority::addClicked(), SmartPLOrderByDialog::ascendingPressed(), MythBurn::changeProfile(), ProgramRecPriority::changeRecPriority(), ChannelRecPriority::changeRecPriority(), ChannelEditor::channelIconImport(), StatusBox::clicked(), EditAlbumartDialog::copySelectedImageToTag(), PlaybackBox::CurrentItem(), ViewScheduled::customEdit(), ProgramRecPriority::customEdit(), ScreenSetup::customEvent(), StatusBox::customEvent(), SearchView::customEvent(), ProgramRecPriority::customEvent(), PlaybackBox::customEvent(), MythThemedMenu::customEvent(), MusicCommon::customEvent(), EditAlbumartDialog::customEvent(), ChannelEditor::customEvent(), ProgramRecPriority::deactivate(), ChannelEditor::del(), PowerSearchPopup::deleteClicked(), PhrasePopup::deleteClicked(), MythNews::deleteNewsSite(), ZMEvents::deletePressed(), SmartPLOrderByDialog::deletePressed(), ViewScheduled::deleteRule(), CustomEdit::deleteRule(), ScreenSetup::deleteScreen(), SmartPLOrderByDialog::descendingPressed(), ViewScheduled::details(), ProgramRecPriority::details(), RSSEditor::doDeleteSite(), NetTree::doDeleteVideo(), NetTree::doDownloadAndPlay(), NetTree::doPlayVideo(), EditAlbumartDialog::doRemoveImageFromTag(), NetSearch::doSearch(), ViewScheduled::edit(), ChannelEditor::edit(), MythBurn::editDetails(), MythBurn::editorClosed(), MythBurn::editThumbnails(), gestureEvent(), MythControls::GetCurrentAction(), MythControls::GetCurrentContext(), FileAssocDialogPrivate::GetCurrentFA(), MythControls::GetCurrentKey(), GetDataValue(), GetIntValue(), VideoDialog::GetItemCurrent(), MythUIButtonTree::GetItemCurrent(), GetValue(), PlaybackBox::HandlePreviewEvent(), PlaybackBox::HandleRecordingRemoveEvent(), ThemeChooser::Init(), CustomPriority::installClicked(), PlaybackBox::ItemVisible(), StatusBox::keyPressEvent(), SearchView::keyPressEvent(), ProgramRecPriority::keyPressEvent(), PlaybackBox::keyPressEvent(), keyPressEvent(), MythDialogBox::keyPressEvent(), MythBurn::keyPressEvent(), MusicCommon::keyPressEvent(), Ripper::keyPressEvent(), BookmarkManager::keyPressEvent(), ViewScheduled::LoadList(), ChannelEditor::menu(), MoveDown(), SmartPLOrderByDialog::moveDownPressed(), MoveItemUpDown(), MoveUp(), SmartPLOrderByDialog::moveUpPressed(), MythUIFileBrowser::OKPressed(), FileSelector::OKPressed(), FileAssocDialog::OnDeletePressed(), PlaybackBox::PlayFromBeginning(), PlaybackBox::PlayFromBookmark(), VideoSetupWizard::playVideoTest(), MythNews::processAndShowNews(), MythBurn::profileChanged(), CustomEdit::recordClicked(), ProgramRecPriority::remove(), MythBurn::removeItem(), ExportNative::removeItem(), EditAlbumartDialog::removeSelectedImageFromTag(), ThemeChooser::removeTheme(), restore_position(), MusicCommon::restorePosition(), SourceSetup::retrieveSpinboxUpdate(), VideoSetupWizard::save(), AudioSetupWizard::save(), ScheduleEditor::Save(), LanguageSelection::Save(), save_position(), ThemeChooser::saveAndReload(), SourceSetup::saveData(), VideoDialog::SavePosition(), PlaybackBox::saveRecMetadata(), ProgramRecPriority::scheduleChanged(), Select(), SetItemCurrent(), SmartPLResultViewer::setSQL(), MythUIButtonTree::SetTreeState(), MythNews::ShowEditDialog(), BookmarkManager::ShowEditDialog(), SearchView::ShowMenu(), NetTree::showMenu(), MythBurn::showMenu(), EditAlbumartDialog::showMenu(), ChannelRecPriority::ShowMenu(), ThemeChooser::showPopupMenu(), PlaybackBox::showRecGroupPasswordChanger(), SmartPLResultViewer::showTrackInfo(), NetTree::showWebVideo(), BookmarkManager::slotDeleteCurrent(), BookmarkManager::slotDoDeleteCurrent(), RSSEditor::slotEditSite(), RSSEditor::slotItemChanged(), NetTree::slotItemChanged(), NetSearch::slotItemChanged(), MythBrowser::slotLoadStarted(), PlayerSettings::slotSave(), MythUISearchDialog::slotSendResult(), BookmarkManager::slotShowCurrent(), BookmarkManager::slotShowMarked(), MythBrowser::slotTitleChanged(), ProgramRecPriority::SortList(), ChannelRecPriority::SortList(), SourceSetup::sourceListItemSelected(), Ripper::startRipper(), CustomEdit::storeClicked(), NetTree::streamWebVideo(), VideoSetupWizard::testHDVideo(), CustomPriority::testSchedule(), VideoSetupWizard::testSDVideo(), PlaybackBox::toggleAutoExpire(), ThemeChooser::toggleFullscreenPreview(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePlayListTitle(), PlaybackBox::togglePreserveEpisode(), AudioSetupWizard::toggleSpeakers(), MythBurn::toggleUseCutlist(), PlaybackBox::toggleWatched(), ViewScheduled::upcoming(), ProgramRecPriority::upcoming(), ChannelRecPriority::upcoming(), ViewScheduled::upcomingScheduled(), ExportNative::updateArchiveList(), ScreenSetup::updateHelpText(), MythNews::updateInfoView(), ProgramRecPriority::UpdateList(), RecordingSelector::updateRecordingList(), MythControls::UpdateRightList(), FileAssocDialog::UpdateScreen(), SourceSetup::updateSpinboxUpdate(), ImportCoverArtDialog::updateStatus(), ThumbFinder::updateThumb(), SearchView::updateTracksList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), PlaybackBox::UpdateUIListItem(), BookmarkManager::UpdateURLList(), VideoSelector::updateVideoList(), and RawSettingsEditor::valueChanged().

MythUIButtonListItem * MythUIButtonList::GetItemFirst (  )  const
MythUIButtonListItem * MythUIButtonList::GetItemNext ( MythUIButtonListItem item  )  const

Definition at line 1583 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::HandleRecordingRemoveEvent().

MythUIButtonListItem * MythUIButtonList::GetItemAt ( int  pos  )  const
MythUIButtonListItem * MythUIButtonList::GetItemByData ( QVariant  data  ) 
uint MythUIButtonList::ItemWidth ( void   ) 

Definition at line 2259 of file mythuibuttonlist.cpp.

uint MythUIButtonList::ItemHeight ( void   ) 

Definition at line 2267 of file mythuibuttonlist.cpp.

LayoutType MythUIButtonList::GetLayout (  )  const [inline]

Definition at line 157 of file mythuibuttonlist.h.

Referenced by MythDialogBox::keyPressEvent().

bool MythUIButtonList::MoveItemUpDown ( MythUIButtonListItem item,
bool  up 
)
void MythUIButtonList::SetAllChecked ( MythUIButtonListItem::CheckState  state  ) 

Definition at line 2152 of file mythuibuttonlist.cpp.

int MythUIButtonList::GetCurrentPos (  )  const [inline]

Definition at line 163 of file mythuibuttonlist.h.

Referenced by ZMEvents::cameraChanged(), CustomEdit::clauseChanged(), StatusBox::clicked(), ManualSchedule::Create(), ViewScheduleDiff::CurrentProgram(), ProgFinder::customEdit(), StatusBox::customEvent(), ProgFinder::customEvent(), MusicCommon::customEvent(), ZMEvents::dateChanged(), ManualSchedule::dateChanged(), PowerSearchPopup::deleteClicked(), PhrasePopup::deleteClicked(), ZMEvents::deletePressed(), CustomEdit::deleteRule(), ProgFinder::details(), DoFind(), NetSearch::doSearch(), ProgFinder::edit(), PowerSearchPopup::editClicked(), ZMEvents::eventChanged(), ChannelEditor::fillList(), ProgLister::GetCurrent(), ZMEvents::getEventList(), ProgFinder::getInfo(), ThumbFinder::gridItemChanged(), ProgLister::HandleSelected(), ThumbFinder::keyPressEvent(), MythBrowser::keyPressEvent(), MusicCommon::keyPressEvent(), ManualSchedule::minuteRollover(), EditPowerSearchPopup::okClicked(), TimePopup::okClicked(), SmartPLOrderByDialog::orderByChanged(), PowerSearchPopup::phraseClicked(), PhrasePopup::phraseClicked(), PowerSearchPopup::phraseSelected(), PhrasePopup::phraseSelected(), MusicCommon::playlistItemClicked(), ZMEvents::playPressed(), ManualSchedule::recordClicked(), CustomPriority::ruleChanged(), ProfileDialog::save(), save_position(), SelectDestination::saveConfiguration(), MythDialogBox::Select(), ProgLister::ShowMenu(), MythBrowser::slotTabSelected(), CustomEdit::storeClicked(), CustomEdit::textChanged(), DVDThemeSelector::themeChanged(), SmartPLResultViewer::trackSelected(), ProgFinder::upcoming(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgLister::UpdateDisplay(), ProgFinder::updateInfo(), updateLCD(), ZMConsole::updateMonitorList(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), ThumbFinder::updateThumb(), JaProgFinder::whereClauseGetSearchData(), and StatusBox::~StatusBox().

int MythUIButtonList::GetItemPos ( MythUIButtonListItem item  )  const
int MythUIButtonList::GetTopItemPos ( void   )  const [inline]
int MythUIButtonList::GetCount ( void   )  const

Definition at line 1594 of file mythuibuttonlist.cpp.

Referenced by ChannelEditor::channelIconImport(), LocationDialog::clearResults(), RSSEditor::Create(), TimePopup::Create(), ManualSchedule::Create(), MythBurn::createConfigFile(), ScreenSetup::customEvent(), SearchView::customEvent(), NetTree::customEvent(), NetSearch::customEvent(), MetadataResultsDialog::customEvent(), ImageSearchResultsDialog::customEvent(), MusicCommon::customEvent(), ZMEvents::deleteAll(), ScreenSetup::deleteScreen(), DoFind(), ScreenSetup::doListSelect(), NetSearch::doSearch(), ZMEvents::eventChanged(), SmartPLOrderByDialog::getFieldList(), ProgLister::HandleSelected(), LogViewer::Init(), EditPowerSearchPopup::initLists(), CustomEdit::loadClauses(), SelectDestination::loadConfiguration(), RSSEditor::loadData(), SmartPLOrderByDialog::orderByChanged(), MythThemedMenu::parseMenu(), BookmarkManager::ReloadBookmarks(), restore_position(), SchedFilterEditor::Save(), save_position(), MythBurn::saveConfiguration(), SourceSetup::saveData(), ScreenSetup::saveData(), ProgFinder::select(), ProgFinder::ShowMenu(), NetSearch::showMenu(), EditAlbumartDialog::showTypeMenu(), BookmarkManager::slotClearMarked(), CustomEdit::storeRule(), SmartPLResultViewer::trackSelected(), ProgLister::UpdateButtonList(), LogViewer::updateClicked(), ProgFinder::updateInfo(), VideoDialog::UpdatePosition(), RawSettingsEditor::updatePrevNextTexts(), SearchView::updateTracksList(), VideoSelector::updateVideoList(), ScreenSetup::~ScreenSetup(), and SourceSetup::~SourceSetup().

uint MythUIButtonList::GetVisibleCount (  ) 

Definition at line 1599 of file mythuibuttonlist.cpp.

Referenced by ZMEvents::eventChanged().

bool MythUIButtonList::IsEmpty ( void   )  const
bool MythUIButtonList::MoveDown ( MovementUnit  unit = MoveItem,
uint  amount = 0 
) [virtual]
bool MythUIButtonList::MoveUp ( MovementUnit  unit = MoveItem,
uint  amount = 0 
) [virtual]

Reimplemented in MythUISpinBox.

Definition at line 1879 of file mythuibuttonlist.cpp.

Referenced by gestureEvent(), keyPressEvent(), and MoveItemUpDown().

bool MythUIButtonList::MoveToNamedPosition ( const QString &  position_name  ) 
void MythUIButtonList::RemoveItem ( MythUIButtonListItem item  ) 
void MythUIButtonList::SetLCDTitles ( const QString &  title,
const QString &  columnList = "" 
)
void MythUIButtonList::updateLCD ( void   ) 

Definition at line 2724 of file mythuibuttonlist.cpp.

Referenced by MythThemedMenu::aboutToShow(), and SetPositionArrowStates().

void MythUIButtonList::SetSearchFields ( const QString &  fields  )  [inline]
void MythUIButtonList::ShowSearchDialog ( void   ) 
bool MythUIButtonList::Find ( const QString &  searchStr,
bool  startsWith = false 
)

Definition at line 2818 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::searchChanged().

bool MythUIButtonList::FindNext ( void   ) 

Definition at line 2825 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::nextClicked().

bool MythUIButtonList::FindPrev ( void   ) 

Definition at line 2830 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::prevClicked().

void MythUIButtonList::Select (  )  [slot]

Definition at line 100 of file mythuibuttonlist.cpp.

Referenced by Const(), and MythUIButtonTree::SwitchList().

void MythUIButtonList::Deselect (  )  [slot]
void MythUIButtonList::itemSelected ( MythUIButtonListItem item  )  [signal]
void MythUIButtonList::itemClicked ( MythUIButtonListItem item  )  [signal]

Referenced by gestureEvent(), and keyPressEvent().

void MythUIButtonList::itemVisible ( MythUIButtonListItem item  )  [signal]

Referenced by ItemVisible().

void MythUIButtonList::DrawSelf ( MythPainter p,
int  xoffset,
int  yoffset,
int  alphaMod,
QRect  clipRect 
) [protected, virtual]

Reimplemented from MythUIType.

Definition at line 2638 of file mythuibuttonlist.cpp.

void MythUIButtonList::Const ( void   )  [protected]

Definition at line 42 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList().

void MythUIButtonList::Init ( void   )  [protected, virtual]
void MythUIButtonList::InsertItem ( MythUIButtonListItem item,
int  listPosition = -1 
) [protected]

Definition at line 1419 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::MythUIButtonListItem().

int MythUIButtonList::minButtonWidth ( const MythRect area  )  [protected]

Definition at line 169 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

int MythUIButtonList::minButtonHeight ( const MythRect area  )  [protected]

Definition at line 197 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

void MythUIButtonList::InitButton ( int  itemIdx,
MythUIStateType *&  realButton,
MythUIButtonListItem *&  buttonItem 
) [protected]

Definition at line 1647 of file mythuibuttonlist.cpp.

Referenced by PageDown(), and PageUp().

MythUIGroup * MythUIButtonList::PrepareButton ( int  buttonIdx,
int  itemIdx,
int &  selectedIdx,
int &  button_shift 
) [protected]

Definition at line 222 of file mythuibuttonlist.cpp.

Referenced by DistributeRow().

bool MythUIButtonList::DistributeRow ( int &  first_button,
int &  last_button,
int &  first_item,
int &  last_item,
int &  selected_column,
int &  skip_cols,
bool  grow_left,
bool  grow_right,
int **  col_widths,
int &  row_height,
int  total_height,
int  split_height,
int &  col_cnt,
bool wrapped 
) [protected]

Definition at line 271 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeCols().

bool MythUIButtonList::DistributeCols ( int &  first_button,
int &  last_button,
int &  first_item,
int &  last_item,
int &  selected_column,
int &  selected_row,
int &  skip_cols,
int **  col_widths,
QList< int > &  row_heights,
int &  top_height,
int &  bottom_height,
bool wrapped 
) [protected]

Definition at line 632 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons().

bool MythUIButtonList::DistributeButtons ( void   )  [protected]

Definition at line 750 of file mythuibuttonlist.cpp.

Referenced by SetPositionArrowStates().

void MythUIButtonList::SetPosition ( void   )  [protected]

Definition at line 1234 of file mythuibuttonlist.cpp.

Referenced by SetPositionArrowStates().

void MythUIButtonList::SetPositionArrowStates ( void   )  [protected]

Definition at line 1364 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), GetVisibleCount(), and MythUISpinBox::SetRange().

void MythUIButtonList::ItemVisible ( MythUIButtonListItem item  )  [protected]

Definition at line 1413 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::SetToRealButton().

void MythUIButtonList::SetActive ( bool  active  )  [protected]
int MythUIButtonList::PageUp ( void   )  [protected]

Definition at line 1674 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

int MythUIButtonList::PageDown ( void   )  [protected]

Definition at line 1776 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

bool MythUIButtonList::DoFind ( bool  doMove,
bool  searchForward 
) [protected]

Definition at line 2835 of file mythuibuttonlist.cpp.

Referenced by Find(), FindNext(), and FindPrev().

void MythUIButtonList::CalculateVisibleItems ( void   )  [protected, virtual]

Definition at line 2473 of file mythuibuttonlist.cpp.

Referenced by Init().

QPoint MythUIButtonList::GetButtonPosition ( int  column,
int  row 
) const [protected, virtual]

Definition at line 2463 of file mythuibuttonlist.cpp.

Referenced by Init().

void MythUIButtonList::SetButtonArea ( const MythRect rect  )  [protected]

Definition at line 2510 of file mythuibuttonlist.cpp.

Referenced by ParseElement().

bool MythUIButtonList::ParseElement ( const QString &  filename,
QDomElement &  element,
bool  showWarnings 
) [protected, virtual]

Parse the xml definition of this widget setting the state of the object accordingly.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2528 of file mythuibuttonlist.cpp.

void MythUIButtonList::CopyFrom ( MythUIType base  )  [protected, virtual]

Copy this widgets state from another.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2656 of file mythuibuttonlist.cpp.

Referenced by CreateCopy(), and MythUIButtonTree::Init().

void MythUIButtonList::CreateCopy ( MythUIType parent  )  [protected, virtual]

Copy the state of this widget to the one given, it must be of the same type.

Reimplemented from MythUIType.

Reimplemented in MythUISpinBox.

Definition at line 2647 of file mythuibuttonlist.cpp.

void MythUIButtonList::Finalize ( void   )  [protected, virtual]

Perform any post-xml parsing initialisation tasks. This is called after the widget has been created and it's state established by ParseElement() or CopyFrom(). A derived class should use this to perform any initialisation tasks which should occur after this point.

Reimplemented from MythUIType.

Definition at line 2713 of file mythuibuttonlist.cpp.

void MythUIButtonList::SanitizePosition ( void   )  [protected]

Definition at line 1356 of file mythuibuttonlist.cpp.

Referenced by MoveDown(), MoveUp(), and SetPositionArrowStates().


Friends And Related Function Documentation

friend class MythUIButtonListItem [friend]

Definition at line 306 of file mythuibuttonlist.h.

Referenced by MythUISpinBox::SetRange().

friend class MythUIButtonTree [friend]

Definition at line 307 of file mythuibuttonlist.h.


Member Data Documentation

Definition at line 258 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), DistributeButtons(), and ParseElement().

Definition at line 262 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), ParseElement(), and ShowSearchDialog().

QString MythUIButtonList::m_searchFields [protected]

Definition at line 263 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), and DoFind().

QString MythUIButtonList::m_searchStr [protected]

Definition at line 264 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

Definition at line 265 of file mythuibuttonlist.h.

Referenced by Const(), DoFind(), and Find().

Definition at line 272 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), DistributeButtons(), InitButton(), and PrepareButton().

int MythUIButtonList::m_rows [protected]

Definition at line 273 of file mythuibuttonlist.h.

Referenced by CalculateVisibleItems(), Const(), and DistributeButtons().

int MythUIButtonList::m_columns [protected]

Definition at line 275 of file mythuibuttonlist.h.

Referenced by Const(), DistributeButtons(), and PageUp().

Definition at line 275 of file mythuibuttonlist.h.

Referenced by Const(), DistributeButtons(), and PageDown().

int MythUIButtonList::m_topRows [protected]

Definition at line 276 of file mythuibuttonlist.h.

Referenced by Const(), DistributeButtons(), PageDown(), and PageUp().

Definition at line 276 of file mythuibuttonlist.h.

Referenced by Const(), DistributeButtons(), PageDown(), and PageUp().

Definition at line 279 of file mythuibuttonlist.h.

Referenced by CopyFrom(), MythUIButtonList(), and ParseElement().

Definition at line 281 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), Init(), and SetPositionArrowStates().

Definition at line 282 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), Init(), and SetPositionArrowStates().

Definition at line 284 of file mythuibuttonlist.h.

Referenced by Const(), Init(), InitButton(), and PrepareButton().

QHash<QString, QString> MythUIButtonList::m_actionRemap [protected]

Definition at line 288 of file mythuibuttonlist.h.

Referenced by CopyFrom(), keyPressEvent(), and ParseElement().

Definition at line 291 of file mythuibuttonlist.h.

Referenced by Const(), DrawSelf(), GetVisibleCount(), SetPositionArrowStates(), and Update().

Definition at line 297 of file mythuibuttonlist.h.

Referenced by Const(), MoveDown(), and SetPosition().

Definition at line 301 of file mythuibuttonlist.h.

Referenced by Const(), CopyFrom(), ParseElement(), SetDrawFromBottom(), and SetPosition().

QString MythUIButtonList::m_lcdTitle [protected]

Definition at line 303 of file mythuibuttonlist.h.

Referenced by Const(), SetLCDTitles(), and updateLCD().

QStringList MythUIButtonList::m_lcdColumns [protected]

Definition at line 304 of file mythuibuttonlist.h.

Referenced by SetLCDTitles(), and updateLCD().


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends
Generated on Sat Feb 11 06:42:14 2012 for MythTV by  doxygen 1.6.3