MythUIButtonListItem Class Reference

#include <mythuibuttonlist.h>

Inheritance diagram for MythUIButtonListItem:
MusicButtonItem PlaybackBoxListItem

List of all members.

Public Types

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

Public Member Functions

 MythUIButtonListItem (MythUIButtonList *lbtype, const QString &text, const QString &image="", bool checkable=false, CheckState state=CantCheck, bool showArrow=false, int listPosition=-1)
 MythUIButtonListItem (MythUIButtonList *lbtype, const QString &text, QVariant data, int listPosition=-1)
virtual ~MythUIButtonListItem ()
MythUIButtonListparent () const
void SetText (const QString &text, const QString &name="", const QString &state="")
void SetTextFromMap (InfoMap &infoMap, const QString &state="")
void SetTextFromMap (QMap< QString, TextProperties > &stringMap)
QString GetText (const QString &name="") const
bool FindText (const QString &searchStr, const QString &fieldList="**ALL**", bool startsWith=false) const
void SetFontState (const QString &state, const QString &name="")
void setImage (MythImage *image, const QString &name="")
 Sets an image directly, should only be used in special circumstances since it bypasses the cache.
MythImagegetImage (const QString &name="")
 Gets a MythImage which has been assigned to this button item, as with setImage() it should only be used in special circumstances since it bypasses the cache.
void SetImage (const QString &filename, const QString &name="", bool force_reload=false)
void SetImageFromMap (const InfoMap &imageMap)
QString GetImage (const QString &name="") const
void DisplayState (const QString &state, const QString &name)
void SetStatesFromMap (const InfoMap &stateMap)
bool checkable () const
void setCheckable (bool flag)
CheckState state () const
void setChecked (CheckState state)
void setDrawArrow (bool flag)
void SetData (QVariant data)
QVariant GetData ()
bool MoveUpDown (bool flag)
virtual void SetToRealButton (MythUIStateType *button, bool selected)

Protected Attributes

MythUIButtonListm_parent
QString m_text
QString m_fontState
MythImagem_image
QString m_imageFilename
bool m_checkable
CheckState m_state
QVariant m_data
bool m_showArrow
QMap< QString, TextPropertiesm_strings
QMap< QString, MythImage * > m_images
InfoMap m_imageFilenames
InfoMap m_states

Friends

class MythUIButtonList
class MythGenericTree

Detailed Description

Definition at line 24 of file mythuibuttonlist.h.


Member Enumeration Documentation

Enumerator:
CantCheck 
NotChecked 
HalfChecked 
FullChecked 

Definition at line 27 of file mythuibuttonlist.h.


Constructor & Destructor Documentation

MythUIButtonListItem::MythUIButtonListItem ( MythUIButtonList lbtype,
const QString &  text,
const QString &  image = "",
bool  checkable = false,
CheckState  state = CantCheck,
bool  showArrow = false,
int  listPosition = -1 
)

Definition at line 2985 of file mythuibuttonlist.cpp.

MythUIButtonListItem::MythUIButtonListItem ( MythUIButtonList lbtype,
const QString &  text,
QVariant  data,
int  listPosition = -1 
)

Definition at line 3009 of file mythuibuttonlist.cpp.

MythUIButtonListItem::~MythUIButtonListItem (  )  [virtual]

Definition at line 3030 of file mythuibuttonlist.cpp.


Member Function Documentation

MythUIButtonList * MythUIButtonListItem::parent (  )  const
void MythUIButtonListItem::SetText ( const QString &  text,
const QString &  name = "",
const QString &  state = "" 
)

Definition at line 3047 of file mythuibuttonlist.cpp.

Referenced by MythThemedMenu::addButton(), SmartPLOrderByDialog::ascendingPressed(), ProgramRecPriority::changeRecPriority(), ChannelRecPriority::changeRecPriority(), ImageSearchResultsDialog::Create(), EditAlbumartDialog::customEvent(), SmartPLOrderByDialog::descendingPressed(), NetSearch::doSearch(), MythBurn::editorClosed(), TreeEditor::fillGrabberButtonList(), SearchEditor::fillGrabberButtonList(), NetSearch::fillGrabberButtonList(), ChannelEditor::fillList(), RSSEditor::fillRSSButtonList(), ProgLister::HandleVisible(), RawSettingsEditor::Init(), PlaybackBox::ItemLoaded(), LanguageSelection::Load(), MusicCommon::playlistItemVisible(), MythBurn::profileChanged(), PlaybackBox::saveRecMetadata(), ImportIconsWizard::search(), WebPage::slotLoadFinished(), WebPage::slotLoadStarted(), MythBrowser::slotLoadStarted(), WebPage::slotTitleChanged(), MythBrowser::slotTitleChanged(), MythBurn::toggleUseCutlist(), MythBurn::updateArchiveList(), FileSelector::updateFileList(), VideoDialog::UpdateItem(), NetTree::UpdateItem(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MythUIFileBrowser::updateLocalFileList(), ZMConsole::updateMonitorList(), RecordingSelector::updateRecordingList(), MythUIFileBrowser::updateRemoteFileList(), ThumbFinder::updateThumb(), ProgFinder::updateTimesList(), Ripper::updateTrackList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), ViewScheduleDiff::updateUIList(), PlaybackBox::UpdateUIListItem(), MusicCommon::updateUIPlaylist(), PlaybackBox::UpdateUIRecGroupList(), and BookmarkManager::UpdateURLList().

void MythUIButtonListItem::SetTextFromMap ( InfoMap infoMap,
const QString &  state = "" 
)
void MythUIButtonListItem::SetTextFromMap ( QMap< QString, TextProperties > &  stringMap  ) 

Definition at line 3082 of file mythuibuttonlist.cpp.

QString MythUIButtonListItem::GetText ( const QString &  name = ""  )  const

Definition at line 3088 of file mythuibuttonlist.cpp.

Referenced by ProgFinder::alphabetListItemSelected(), StatusBox::clicked(), ScreenSetup::customEvent(), NetTree::customEvent(), NetSearch::customEvent(), ChannelEditor::del(), CustomEdit::deleteRule(), ScreenSetup::doListSelect(), NetSearch::doSearch(), SmartPLOrderByDialog::fieldListSelectionChanged(), MythControls::GetCurrentAction(), MythControls::GetCurrentContext(), MythControls::GetCurrentKey(), SmartPLOrderByDialog::getFieldList(), MythUIButtonList::GetIntValue(), MythUIButtonList::GetValue(), ProgLister::HandleVisible(), AudioSetupWizard::Init(), RawSettingsEditor::Init(), CustomPriority::installClicked(), ImportIconsWizard::itemChanged(), ChannelEditor::itemChanged(), PlaybackBox::ItemLoaded(), StatusBox::keyPressEvent(), SmartPLOrderByDialog::orderByChanged(), PhrasePopup::phraseSelected(), MusicCommon::playlistItemVisible(), VideoSetupWizard::playVideoTest(), VideoSetupWizard::save(), AudioSetupWizard::save(), MythDialogBox::Select(), RawSettingsEditor::selectionChanged(), ChannelEditor::setSortMode(), ChannelEditor::setSourceID(), NetTree::slotItemChanged(), NetSearch::slotItemChanged(), MythBrowser::slotTabSelected(), CustomEdit::storeClicked(), CustomEdit::storeRule(), VideoSetupWizard::testHDVideo(), CustomPriority::testSchedule(), VideoSetupWizard::testSDVideo(), AudioSetupWizard::toggleSpeakers(), AudioSetupWizard::UpdateCapabilities(), MythUIButtonList::updateLCD(), LogViewer::updateLogItem(), PlaybackBox::updateRecList(), MythControls::UpdateRightList(), VideoDialog::UpdateText(), and BookmarkManager::UpdateURLList().

bool MythUIButtonListItem::FindText ( const QString &  searchStr,
const QString &  fieldList = "**ALL**",
bool  startsWith = false 
) const

Definition at line 3098 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList::DoFind().

void MythUIButtonListItem::SetFontState ( const QString &  state,
const QString &  name = "" 
)
void MythUIButtonListItem::setImage ( MythImage image,
const QString &  name = "" 
)

Sets an image directly, should only be used in special circumstances since it bypasses the cache.

Definition at line 3179 of file mythuibuttonlist.cpp.

Referenced by ZMEvents::eventChanged(), WebPage::slotIconChanged(), and WebPage::slotLoadStarted().

MythImage * MythUIButtonListItem::getImage ( const QString &  name = ""  ) 

Gets a MythImage which has been assigned to this button item, as with setImage() it should only be used in special circumstances since it bypasses the cache.

Definition at line 3221 of file mythuibuttonlist.cpp.

Referenced by ZMEvents::eventChanged().

void MythUIButtonListItem::SetImage ( const QString &  filename,
const QString &  name = "",
bool  force_reload = false 
)
void MythUIButtonListItem::SetImageFromMap ( const InfoMap imageMap  ) 

Definition at line 3215 of file mythuibuttonlist.cpp.

Referenced by MythGenericTree::CreateListButton().

QString MythUIButtonListItem::GetImage ( const QString &  name = ""  )  const
void MythUIButtonListItem::DisplayState ( const QString &  state,
const QString &  name 
)

Definition at line 3279 of file mythuibuttonlist.cpp.

Referenced by MythThemedMenu::addButton(), HelpPopup::addItem(), BackendSelection::AddItem(), SmartPLOrderByDialog::addPressed(), SmartPLOrderByDialog::ascendingPressed(), SearchView::customEvent(), MusicCommon::customEvent(), ProgramRecPriority::deactivate(), SmartPLOrderByDialog::descendingPressed(), PlaybackBox::doClearPlaylist(), ViewScheduled::FillList(), ChannelEditor::fillList(), ProgLister::HandleVisible(), ThemeChooser::Init(), StatusBox::Init(), MythBurn::itemClicked(), PlaybackBox::ItemLoaded(), PlaybackBox::ItemVisible(), MythBurn::keyPressEvent(), MusicCommon::keyPressEvent(), MusicCommon::playlistItemClicked(), MusicCommon::playlistItemVisible(), MusicCommon::restorePosition(), SmartPLOrderByDialog::setFieldList(), PlaybackBox::SetItemIcons(), WebPage::slotLoadFinished(), WebPage::slotLoadStarted(), PlaybackBox::toggleAutoExpire(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePreserveEpisode(), MythBurn::toggleUseCutlist(), VideoDialog::ToggleWatched(), PlaybackBox::toggleWatched(), MythBurn::updateArchiveList(), GuideGrid::updateChannels(), EditAlbumartDialog::updateImageGrid(), VideoDialog::UpdateItem(), NetTree::UpdateItem(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MythUIFileBrowser::updateLocalFileList(), RecordingSelector::updateRecordingList(), MythUIFileBrowser::updateRemoteFileList(), ProgFinder::updateTimesList(), Ripper::updateTrackList(), SearchView::updateTracksList(), ViewScheduleDiff::updateUIList(), PlaybackBox::UpdateUIListItem(), PlaybackBox::UpdateUILists(), MusicCommon::updateUIPlayedList(), and MusicCommon::updateUIPlaylist().

void MythUIButtonListItem::SetStatesFromMap ( const InfoMap stateMap  ) 

Definition at line 3303 of file mythuibuttonlist.cpp.

Referenced by MythGenericTree::CreateListButton().

bool MythUIButtonListItem::checkable (  )  const

Definition at line 3309 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList::updateLCD().

void MythUIButtonListItem::setCheckable ( bool  flag  ) 
MythUIButtonListItem::CheckState MythUIButtonListItem::state ( void   )  const
void MythUIButtonListItem::setChecked ( MythUIButtonListItem::CheckState  state  ) 
void MythUIButtonListItem::setDrawArrow ( bool  flag  ) 
void MythUIButtonListItem::SetData ( QVariant  data  ) 
QVariant MythUIButtonListItem::GetData ( void   ) 

Definition at line 3350 of file mythuibuttonlist.cpp.

Referenced by BackendSelection::Accept(), GroupSelector::AcceptItem(), CustomPriority::addClicked(), MythThemedMenu::buttonAction(), ViewScheduled::ChangeGroup(), MythBurn::changeProfile(), ProgramRecPriority::changeRecPriority(), ChannelRecPriority::changeRecPriority(), ChannelEditor::channelIconImport(), CustomEdit::clauseChanged(), CustomEdit::clauseClicked(), LocationDialog::clearResults(), StatusBox::clicked(), EditAlbumartDialog::copySelectedImageToTag(), MythBurn::createConfigFile(), PlaybackBox::CurrentItem(), ViewScheduled::customEdit(), ProgramRecPriority::customEdit(), ScreenSetup::customEvent(), SearchView::customEvent(), MythThemedMenu::customEvent(), MusicCommon::customEvent(), EditAlbumartDialog::customEvent(), ChannelEditor::customEvent(), ProgramRecPriority::deactivate(), MythNews::deleteNewsSite(), ViewScheduled::deleteRule(), ScreenSetup::deleteScreen(), PlaybackBox::deleteSelected(), ViewScheduled::details(), ProgramRecPriority::details(), RSSEditor::doDeleteSite(), ScreenSetup::doListSelect(), EditAlbumartDialog::doRemoveImageFromTag(), SchedOptMixin::DupMethodChanged(), ViewScheduled::edit(), ProgramRecPriority::edit(), ChannelEditor::edit(), MythBurn::editDetails(), MythBurn::editThumbnails(), FileAssocDialogPrivate::GetCurrentFA(), MythUIButtonList::GetDataValue(), MythUIButtonList::GetItemByData(), EditAlbumartDialog::gridItemChanged(), MythUIButtonTree::handleClick(), PlaybackBox::HandleRecordingRemoveEvent(), MythUIButtonTree::handleSelect(), ProgLister::HandleSelected(), ProgLister::HandleVisible(), ThemeChooser::itemChanged(), LocationDialog::itemClicked(), FileSelector::itemClicked(), PlaybackBox::ItemLoaded(), LocationDialog::itemSelected(), ArchiveFileSelector::itemSelected(), PlaybackBox::ItemVisible(), SearchView::keyPressEvent(), MusicCommon::keyPressEvent(), BookmarkManager::keyPressEvent(), SchedFilterEditor::Load(), ViewScheduled::LoadList(), StoreOptMixin::MaxEpisodesChanged(), ChannelEditor::menu(), ImportIconsWizard::menuSelection(), MythUIFileBrowser::OKPressed(), FileSelector::OKPressed(), FileAssocDialog::OnDeletePressed(), MythUIFileBrowser::PathClicked(), MythUIFileBrowser::PathSelected(), PlaybackBox::PlayFromBeginning(), PlaybackBox::PlayFromBookmark(), MusicCommon::playlistItemVisible(), MythNews::processAndShowNews(), ProfileDialog::profileChanged(), MythBurn::profileChanged(), EditMetadataDialog::ratingSpinChanged(), CustomEdit::recordClicked(), BookmarkManager::ReloadBookmarks(), ProgramRecPriority::remove(), MythUIButtonTree::RemoveItem(), MythBurn::removeItem(), ExportNative::removeItem(), ProgramRecPriority::RemoveItemFromList(), EditAlbumartDialog::removeSelectedImageFromTag(), ThemeChooser::removeTheme(), restore_position(), SourceSetup::retrieveSpinboxUpdate(), ScheduleEditor::RuleChanged(), CustomPriority::ruleChanged(), CustomEdit::ruleChanged(), AudioSetupWizard::save(), SchedFilterEditor::Save(), LanguageSelection::Save(), save_position(), ThemeChooser::saveAndReload(), MythBurn::saveConfiguration(), SourceSetup::saveData(), ScreenSetup::saveData(), PlaybackBox::saveRecMetadata(), ProgramRecPriority::scheduleChanged(), MythDialogBox::Select(), ViewScheduled::selected(), RawSettingsEditor::selectionChanged(), MetadataResultsDialog::sendResult(), ImageSearchResultsDialog::sendResult(), VideoFilterDialog::SetBrowse(), MythThemedMenu::setButtonActive(), VideoFilterDialog::SetCast(), VideoFilterDialog::SetCategory(), EditMetadataDialog::SetCategory(), EditMetadataDialog::SetChild(), VideoFilterDialog::setCountry(), VideoFilterDialog::SetCoverFile(), SelectDestination::setDestination(), VideoFilterDialog::setGenre(), StatusBox::setHelpText(), VideoFilterDialog::SetInetRef(), EditMetadataDialog::SetLevel(), VideoFilterDialog::setOrderby(), VideoFilterDialog::setRunTime(), GalleryFilterDialog::setSort(), ChannelEditor::setSourceID(), GalleryFilterDialog::setTypeFilter(), VideoFilterDialog::SetUserRating(), MythUIButtonList::SetValueByData(), VideoFilterDialog::SetWatched(), VideoFilterDialog::SetYear(), MythNews::ShowEditDialog(), BookmarkManager::ShowEditDialog(), Ripper::showEditMetadataDialog(), SearchView::ShowMenu(), ScheduleEditor::showMenu(), MythBurn::showMenu(), EditAlbumartDialog::showMenu(), ThemeChooser::showPopupMenu(), PlaybackBox::showRecGroupPasswordChanger(), SmartPLResultViewer::showTrackInfo(), BookmarkManager::slotBookmarkClicked(), MythNewsConfig::slotCategoryChanged(), BookmarkManager::slotClearMarked(), BookmarkManager::slotDoDeleteCurrent(), RSSEditor::slotEditSite(), RSSEditor::slotItemChanged(), PlayerSettings::slotSave(), BookmarkManager::slotShowMarked(), MythNews::slotSiteSelected(), ProgramRecPriority::SortList(), ChannelRecPriority::SortList(), SourceSetup::sourceListItemSelected(), Ripper::startRipper(), VideoSelector::titleChanged(), RecordingSelector::titleChanged(), ExportNative::titleChanged(), PlaybackBox::toggleAutoExpire(), ThemeChooser::toggleFullscreenPreview(), TreeEditor::toggleItem(), SearchEditor::toggleItem(), MythNewsConfig::toggleItem(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePlayListTitle(), PlaybackBox::togglePreserveEpisode(), VideoSelector::toggleSelected(), RecordingSelector::toggleSelected(), AudioSetupWizard::toggleSpeakers(), MythBurn::toggleUseCutlist(), PlaybackBox::toggleWatched(), SearchView::trackClicked(), SmartPLResultViewer::trackVisible(), SearchView::trackVisible(), ViewScheduled::upcoming(), ProgramRecPriority::upcoming(), ChannelRecPriority::upcoming(), ViewScheduled::upcomingScheduled(), AudioSetupWizard::UpdateCapabilities(), ScreenSetup::updateHelpText(), ViewScheduleDiff::updateInfo(), ViewScheduled::updateInfo(), ProgramRecPriority::updateInfo(), ChannelRecPriority::updateInfo(), MythNews::updateInfoView(), ProgramRecPriority::UpdateList(), StatusBox::updateLogList(), RawSettingsEditor::updatePrevNextTexts(), PlaybackBox::updateRecList(), FileAssocDialog::UpdateScreen(), SourceSetup::updateSpinboxUpdate(), ImportCoverArtDialog::updateStatus(), SearchView::updateTracksList(), PlaybackBox::UpdateUIListItem(), RawSettingsEditor::valueChanged(), ScreenSetup::~ScreenSetup(), and SourceSetup::~SourceSetup().

bool MythUIButtonListItem::MoveUpDown ( bool  flag  ) 
void MythUIButtonListItem::SetToRealButton ( MythUIStateType button,
bool  selected 
) [virtual]

Friends And Related Function Documentation

friend class MythUIButtonList [friend]

Definition at line 105 of file mythuibuttonlist.h.

friend class MythGenericTree [friend]

Definition at line 106 of file mythuibuttonlist.h.


Member Data Documentation

QString MythUIButtonListItem::m_text [protected]

Definition at line 91 of file mythuibuttonlist.h.

Referenced by FindText(), GetText(), MythUIButtonListItem(), SetText(), and SetToRealButton().

QString MythUIButtonListItem::m_fontState [protected]

Definition at line 92 of file mythuibuttonlist.h.

Referenced by SetFontState(), and SetToRealButton().

Definition at line 94 of file mythuibuttonlist.h.

Referenced by GetImage(), MythUIButtonListItem(), SetImage(), and SetToRealButton().

Definition at line 96 of file mythuibuttonlist.h.

Referenced by MythUIButtonListItem(), setChecked(), SetToRealButton(), and state().

QVariant MythUIButtonListItem::m_data [protected]

Definition at line 97 of file mythuibuttonlist.h.

Referenced by GetData(), MythUIButtonListItem(), and SetData().

Definition at line 98 of file mythuibuttonlist.h.

Referenced by MythUIButtonListItem(), setDrawArrow(), and SetToRealButton().

QMap<QString, TextProperties> MythUIButtonListItem::m_strings [protected]
QMap<QString, MythImage*> MythUIButtonListItem::m_images [protected]

Definition at line 101 of file mythuibuttonlist.h.

Referenced by getImage(), setImage(), SetToRealButton(), and ~MythUIButtonListItem().

Definition at line 102 of file mythuibuttonlist.h.

Referenced by GetImage(), SetImage(), SetImageFromMap(), and SetToRealButton().

Definition at line 103 of file mythuibuttonlist.h.

Referenced by DisplayState(), SetStatesFromMap(), and SetToRealButton().


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