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)
void itemLoaded (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, bool showScrollBar=false)
 ~MythUIButtonList ()
virtual bool keyPressEvent (QKeyEvent *)
virtual bool gestureEvent (MythGestureEvent *event)
virtual void customEvent (QEvent *)
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)
void LoadInBackground (int start=0, int pageSize=20)
int StopLoad (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 SetScrollBarPosition (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
bool m_showScrollBar
MythUIScrollBarm_scrollBar
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
int m_nextItemLoaded
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 118 of file mythuibuttonlist.h.


Member Enumeration Documentation

Enumerator:
MoveItem 
MoveColumn 
MoveRow 
MovePage 
MoveMax 
MoveMid 
MoveByAmount 

Definition at line 133 of file mythuibuttonlist.h.

Enumerator:
LayoutVertical 
LayoutHorizontal 
LayoutGrid 

Definition at line 135 of file mythuibuttonlist.h.

Enumerator:
ScrollFree 
ScrollCenter 
ScrollGroupCenter 

Definition at line 202 of file mythuibuttonlist.h.

Enumerator:
ArrangeFixed 
ArrangeFill 
ArrangeSpread 
ArrangeStack 

Definition at line 203 of file mythuibuttonlist.h.

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

Definition at line 204 of file mythuibuttonlist.h.


Constructor & Destructor Documentation

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

Definition at line 24 of file mythuibuttonlist.cpp.

Referenced by CreateCopy().

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

Definition at line 33 of file mythuibuttonlist.cpp.

MythUIButtonList::~MythUIButtonList (  ) 

Definition at line 97 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 2309 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 2443 of file mythuibuttonlist.cpp.

void MythUIButtonList::customEvent ( QEvent *  event  )  [virtual]

Reimplemented from MythUIType.

Definition at line 2507 of file mythuibuttonlist.cpp.

void MythUIButtonList::SetDrawFromBottom ( bool  draw  ) 

Definition at line 121 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 140 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(), AudioSetupWizard::UpdateCapabilities(), 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 143 of file mythuibuttonlist.h.

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

Reimplemented in MythUISpinBox.

Definition at line 1559 of file mythuibuttonlist.cpp.

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

Definition at line 1589 of file mythuibuttonlist.cpp.

Referenced by MythUIStateType::RecalculateArea().

void MythUIButtonList::SetItemCurrent ( MythUIButtonListItem item  ) 

Definition at line 1520 of file mythuibuttonlist.cpp.

Referenced by MythDialogBox::AddButton(), MythTimeInputDialog::Create(), ManualSchedule::Create(), StatusBox::customEvent(), SearchView::customEvent(), MusicCommon::customEvent(), DoFind(), ChannelEditor::fillList(), PlayerSettings::fillRegionList(), gestureEvent(), VideoSelector::getVideoList(), gotoMainMenu(), 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(), StoreOptMixin::SetRecGroup(), 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 1526 of file mythuibuttonlist.cpp.

MythUIButtonListItem * MythUIButtonList::GetItemCurrent (  )  const

Definition at line 1550 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(), AudioSetupWizard::Init(), CustomPriority::installClicked(), PlaybackBox::ItemLoaded(), PlaybackBox::ItemVisible(), StatusBox::keyPressEvent(), SearchView::keyPressEvent(), ProgramRecPriority::keyPressEvent(), PlaybackBox::keyPressEvent(), keyPressEvent(), MythDialogBox::keyPressEvent(), MythBurn::keyPressEvent(), MusicCommon::keyPressEvent(), CustomEdit::keyPressEvent(), Ripper::keyPressEvent(), BookmarkManager::keyPressEvent(), ViewScheduled::LoadList(), ChannelEditor::menu(), MoveDown(), SmartPLOrderByDialog::moveDownPressed(), MoveItemUpDown(), MoveUp(), SmartPLOrderByDialog::moveUpPressed(), ProgramRecPriority::newTemplate(), 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(), 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(), ScheduleEditor::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(), AudioSetupWizard::UpdateCapabilities(), 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 1604 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 2290 of file mythuibuttonlist.cpp.

uint MythUIButtonList::ItemHeight ( void   ) 

Definition at line 2298 of file mythuibuttonlist.cpp.

LayoutType MythUIButtonList::GetLayout (  )  const [inline]

Definition at line 160 of file mythuibuttonlist.h.

Referenced by MythDialogBox::keyPressEvent().

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

Definition at line 2178 of file mythuibuttonlist.cpp.

int MythUIButtonList::GetCurrentPos (  )  const [inline]

Definition at line 166 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(), 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 1615 of file mythuibuttonlist.cpp.

Referenced by ChannelEditor::channelIconImport(), LocationDialog::clearResults(), RSSEditor::Create(), ManualSchedule::Create(), MythBurn::createConfigFile(), ScreenSetup::customEvent(), SearchView::customEvent(), NetTree::customEvent(), NetSearch::customEvent(), MetadataResultsDialog::customEvent(), ImageSearchResultsDialog::customEvent(), customEvent(), MusicCommon::customEvent(), ZMEvents::deleteAll(), ScreenSetup::deleteScreen(), DoFind(), ScreenSetup::doListSelect(), NetSearch::doSearch(), ZMEvents::eventChanged(), SmartPLOrderByDialog::getFieldList(), ProgLister::HandleSelected(), LogViewer::Init(), EditPowerSearchPopup::initLists(), SchedFilterEditor::Load(), 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 1620 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 1905 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 2810 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 2904 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::searchChanged().

bool MythUIButtonList::FindNext ( void   ) 

Definition at line 2911 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::nextClicked().

bool MythUIButtonList::FindPrev ( void   ) 

Definition at line 2916 of file mythuibuttonlist.cpp.

Referenced by SearchButtonListDialog::prevClicked().

void MythUIButtonList::LoadInBackground ( int  start = 0,
int  pageSize = 20 
)
int MythUIButtonList::StopLoad ( void   ) 

Definition at line 2535 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::Play(), and Reset().

void MythUIButtonList::Select (  )  [slot]

Definition at line 106 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::itemLoaded ( MythUIButtonListItem item  )  [signal]

Referenced by customEvent().

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

Reimplemented from MythUIType.

Definition at line 2719 of file mythuibuttonlist.cpp.

void MythUIButtonList::Const ( void   )  [protected]

Definition at line 45 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 1440 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::MythUIButtonListItem().

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

Definition at line 176 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

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

Definition at line 204 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons(), and DistributeRow().

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

Definition at line 1671 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 229 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 279 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 642 of file mythuibuttonlist.cpp.

Referenced by DistributeButtons().

bool MythUIButtonList::DistributeButtons ( void   )  [protected]

Definition at line 760 of file mythuibuttonlist.cpp.

Referenced by SetPositionArrowStates().

void MythUIButtonList::SetPosition ( void   )  [protected]

Definition at line 1253 of file mythuibuttonlist.cpp.

Referenced by SetPositionArrowStates().

void MythUIButtonList::SetPositionArrowStates ( void   )  [protected]

Definition at line 1383 of file mythuibuttonlist.cpp.

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

void MythUIButtonList::SetScrollBarPosition ( void   )  [protected]

Definition at line 3658 of file mythuibuttonlist.cpp.

Referenced by DrawSelf(), and GetVisibleCount().

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

Definition at line 1434 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonListItem::SetToRealButton().

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

Definition at line 1699 of file mythuibuttonlist.cpp.

Referenced by MoveUp().

int MythUIButtonList::PageDown ( void   )  [protected]

Definition at line 1801 of file mythuibuttonlist.cpp.

Referenced by MoveDown().

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

Definition at line 2921 of file mythuibuttonlist.cpp.

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

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

Definition at line 2552 of file mythuibuttonlist.cpp.

Referenced by Init().

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

Definition at line 2542 of file mythuibuttonlist.cpp.

Referenced by Init().

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

Definition at line 2589 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 2607 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 2740 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 2731 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 2799 of file mythuibuttonlist.cpp.

void MythUIButtonList::SanitizePosition ( void   )  [protected]

Definition at line 1375 of file mythuibuttonlist.cpp.

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


Friends And Related Function Documentation

friend class MythUIButtonListItem [friend]

Definition at line 317 of file mythuibuttonlist.h.

Referenced by MythUISpinBox::SetRange().

friend class MythUIButtonTree [friend]

Definition at line 318 of file mythuibuttonlist.h.


Member Data Documentation

Definition at line 266 of file mythuibuttonlist.h.

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

Definition at line 270 of file mythuibuttonlist.h.

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

QString MythUIButtonList::m_searchFields [protected]

Definition at line 271 of file mythuibuttonlist.h.

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

QString MythUIButtonList::m_searchStr [protected]

Definition at line 272 of file mythuibuttonlist.h.

Referenced by DoFind(), and Find().

Definition at line 273 of file mythuibuttonlist.h.

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

Definition at line 280 of file mythuibuttonlist.h.

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

int MythUIButtonList::m_rows [protected]

Definition at line 281 of file mythuibuttonlist.h.

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

int MythUIButtonList::m_columns [protected]

Definition at line 283 of file mythuibuttonlist.h.

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

Definition at line 283 of file mythuibuttonlist.h.

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

int MythUIButtonList::m_topRows [protected]

Definition at line 284 of file mythuibuttonlist.h.

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

Definition at line 284 of file mythuibuttonlist.h.

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

Definition at line 287 of file mythuibuttonlist.h.

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

Definition at line 290 of file mythuibuttonlist.h.

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

Definition at line 291 of file mythuibuttonlist.h.

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

Definition at line 292 of file mythuibuttonlist.h.

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

Definition at line 294 of file mythuibuttonlist.h.

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

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

Definition at line 298 of file mythuibuttonlist.h.

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

Definition at line 301 of file mythuibuttonlist.h.

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

Definition at line 307 of file mythuibuttonlist.h.

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

Definition at line 310 of file mythuibuttonlist.h.

Referenced by Const(), customEvent(), LoadInBackground(), and StopLoad().

Definition at line 312 of file mythuibuttonlist.h.

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

QString MythUIButtonList::m_lcdTitle [protected]

Definition at line 314 of file mythuibuttonlist.h.

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

QStringList MythUIButtonList::m_lcdColumns [protected]

Definition at line 315 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 Mon May 28 06:42:17 2012 for MythTV by  doxygen 1.6.3