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 23 of file mythuibuttonlist.h.


Member Enumeration Documentation

Enumerator:
CantCheck 
NotChecked 
HalfChecked 
FullChecked 

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

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

Definition at line 2920 of file mythuibuttonlist.cpp.

MythUIButtonListItem::~MythUIButtonListItem (  )  [virtual]

Definition at line 2941 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 2958 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(), RawSettingsEditor::Init(), LanguageSelection::Load(), MythBurn::profileChanged(), PlaybackBox::saveRecMetadata(), ImportIconsWizard::search(), WebPage::slotLoadFinished(), WebPage::slotLoadStarted(), MythBrowser::slotLoadStarted(), WebPage::slotTitleChanged(), MythBrowser::slotTitleChanged(), MythBurn::toggleUseCutlist(), MythBurn::updateArchiveList(), ProgLister::UpdateButtonList(), FileSelector::updateFileList(), VideoDialog::UpdateItem(), NetTree::UpdateItem(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MythUIFileBrowser::updateLocalFileList(), ZMConsole::updateMonitorList(), PlaybackBox::updateRecList(), RecordingSelector::updateRecordingList(), MythUIFileBrowser::updateRemoteFileList(), ThumbFinder::updateThumb(), ProgFinder::updateTimesList(), Ripper::updateTrackList(), PlaybackBox::UpdateUIGroupList(), ZMEvents::updateUIList(), ViewScheduleDiff::updateUIList(), PlaybackBox::UpdateUIListItem(), PlaybackBox::UpdateUIRecGroupList(), and BookmarkManager::UpdateURLList().

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

Definition at line 2993 of file mythuibuttonlist.cpp.

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

Definition at line 3009 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 3090 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 3132 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 3126 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 3190 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(), ThemeChooser::Init(), StatusBox::Init(), MythBurn::itemClicked(), PlaybackBox::ItemVisible(), MythBurn::keyPressEvent(), MusicCommon::keyPressEvent(), MusicCommon::playlistItemClicked(), MusicCommon::restorePosition(), SmartPLOrderByDialog::setFieldList(), PlaybackBox::SetItemIcons(), WebPage::slotLoadFinished(), WebPage::slotLoadStarted(), PlaybackBox::toggleAutoExpire(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePreserveEpisode(), MythBurn::toggleUseCutlist(), PlaybackBox::toggleWatched(), MythBurn::updateArchiveList(), ProgLister::UpdateButtonList(), EditAlbumartDialog::updateImageGrid(), VideoDialog::UpdateItem(), NetTree::UpdateItem(), ProgramRecPriority::UpdateList(), ChannelRecPriority::updateList(), MythUIFileBrowser::updateLocalFileList(), PlaybackBox::updateRecList(), 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 3214 of file mythuibuttonlist.cpp.

Referenced by MythGenericTree::CreateListButton().

bool MythUIButtonListItem::checkable (  )  const

Definition at line 3220 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 3261 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(), SchedOptEditor::dupMatchChanged(), 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(), ThemeChooser::itemChanged(), LocationDialog::itemClicked(), FileSelector::itemClicked(), LocationDialog::itemSelected(), ArchiveFileSelector::itemSelected(), PlaybackBox::ItemVisible(), SearchView::keyPressEvent(), MusicCommon::keyPressEvent(), BookmarkManager::keyPressEvent(), ViewScheduled::LoadList(), StoreOptEditor::maxEpChanged(), 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(), ScheduleEditor::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(), 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(), 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 104 of file mythuibuttonlist.h.

friend class MythGenericTree [friend]

Definition at line 105 of file mythuibuttonlist.h.


Member Data Documentation

QString MythUIButtonListItem::m_text [protected]

Definition at line 90 of file mythuibuttonlist.h.

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

QString MythUIButtonListItem::m_fontState [protected]

Definition at line 91 of file mythuibuttonlist.h.

Referenced by SetFontState(), and SetToRealButton().

Definition at line 93 of file mythuibuttonlist.h.

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

Definition at line 95 of file mythuibuttonlist.h.

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

QVariant MythUIButtonListItem::m_data [protected]

Definition at line 96 of file mythuibuttonlist.h.

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

Definition at line 97 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 100 of file mythuibuttonlist.h.

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

Definition at line 101 of file mythuibuttonlist.h.

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

Definition at line 102 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 Sat Feb 11 06:42:14 2012 for MythTV by  doxygen 1.6.3