MythTV master
Public Types | Public Member Functions | Protected Attributes | Private Member Functions | Static Private Member Functions | Friends | List of all members
MythUIButtonListItem Class Reference

#include <libmythui/mythuibuttonlist.h>

Inheritance diagram for MythUIButtonListItem:
[legend]
Collaboration diagram for MythUIButtonListItem:
[legend]

Public Types

enum  CheckState : std::int8_t { CantCheck = -1 , NotChecked = 0 , HalfChecked = 1 , FullChecked = 2 }
 

Public Member Functions

 MythUIButtonListItem (MythUIButtonList *lbtype, QString text, 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)
 
template<typename SLOT >
requires is_nonconst_member_func_v<SLOT>
 MythUIButtonListItem (MythUIButtonList *lbtype, const QString &text, SLOT slot, int listPosition=-1)
 
template<typename SLOT >
requires is_const_member_func_v<SLOT>
 MythUIButtonListItem (MythUIButtonList *lbtype, const QString &text, SLOT slot, int listPosition=-1)
 
virtual ~MythUIButtonListItem ()
 
MythUIButtonListparent () const
 
void SetText (const QString &text, const QString &name="", const QString &state="")
 
void SetTextFromMap (const InfoMap &infoMap, const QString &state="")
 
void SetTextFromMap (const QMap< QString, TextProperties > &stringMap)
 
void SetTextCb (muibCbFn fn, void *data)
 
QString GetText (const QString &name="") const
 
TextProperties GetTextProp (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. More...
 
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. More...
 
bool HasImage (const QString &name="")
 Returns true when the image exists. More...
 
void SetImage (const QString &filename, const QString &name="", bool force_reload=false)
 
void SetImageFromMap (const InfoMap &imageMap)
 
void SetImageCb (muibCbFn fn, void *data)
 
QString GetImageFilename (const QString &name="") const
 
void SetProgress1 (int start, int total, int used)
 
void SetProgress2 (int start, int total, int used)
 
void DisplayState (const QString &state, const QString &name)
 
void SetStatesFromMap (const InfoMap &stateMap)
 
void SetStateCb (muibCbFn fn, void *data)
 
QString GetState (const QString &name)
 
bool isVisible () const
 
void setVisible (bool flag)
 
bool checkable () const
 
void setCheckable (bool flag)
 
bool isEnabled () const
 
void setEnabled (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 {nullptr}
 
QString m_text
 
QString m_fontState
 
MythImagem_image {nullptr}
 
QString m_imageFilename
 
bool m_checkable {false}
 
CheckState m_state {CantCheck}
 
QVariant m_data {0}
 
bool m_showArrow {false}
 
bool m_isVisible {false}
 
bool m_enabled {true}
 
bool m_debugme {false}
 
ProgressInfo m_progress1
 
ProgressInfo m_progress2
 
QMap< QString, TextPropertiesm_strings
 
QMap< QString, MythImage * > m_images
 
InfoMap m_imageFilenames
 
InfoMap m_states
 
muibCbInfo m_textCb
 
muibCbInfo m_imageCb
 
muibCbInfo m_stateCb
 

Private Member Functions

void DoButtonText (MythUIText *buttontext)
 
void DoButtonImage (MythUIImage *buttonimage)
 
void DoButtonArrow (MythUIImage *buttonarrow) const
 
void DoButtonCheck (MythUIStateType *buttoncheck)
 
void DoButtonProgress1 (MythUIProgressBar *buttonprogress) const
 
void DoButtonProgress2 (MythUIProgressBar *buttonprogress) const
 
void DoButtonLookupText (MythUIText *text, const TextProperties &textprop)
 

Static Private Member Functions

static void DoButtonLookupFilename (MythUIImage *image, const QString &filename)
 
static void DoButtonLookupImage (MythUIImage *uiimage, MythImage *image)
 
static void DoButtonLookupState (MythUIStateType *statetype, const QString &name)
 

Friends

class MythUIButtonList
 
class MythGenericTree
 

Detailed Description

Definition at line 42 of file mythuibuttonlist.h.

Member Enumeration Documentation

◆ CheckState

Enumerator
CantCheck 
NotChecked 
HalfChecked 
FullChecked 

Definition at line 45 of file mythuibuttonlist.h.

Constructor & Destructor Documentation

◆ MythUIButtonListItem() [1/4]

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

Definition at line 3284 of file mythuibuttonlist.cpp.

◆ MythUIButtonListItem() [2/4]

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

Definition at line 3301 of file mythuibuttonlist.cpp.

◆ MythUIButtonListItem() [3/4]

template<typename SLOT >
requires is_nonconst_member_func_v<SLOT>
MythUIButtonListItem::MythUIButtonListItem ( MythUIButtonList lbtype,
const QString &  text,
SLOT  slot,
int  listPosition = -1 
)
inline

Definition at line 59 of file mythuibuttonlist.h.

◆ MythUIButtonListItem() [4/4]

template<typename SLOT >
requires is_const_member_func_v<SLOT>
MythUIButtonListItem::MythUIButtonListItem ( MythUIButtonList lbtype,
const QString &  text,
SLOT  slot,
int  listPosition = -1 
)
inline

Definition at line 64 of file mythuibuttonlist.h.

◆ ~MythUIButtonListItem()

MythUIButtonListItem::~MythUIButtonListItem ( )
virtual

Definition at line 3324 of file mythuibuttonlist.cpp.

Member Function Documentation

◆ checkable()

bool MythUIButtonListItem::checkable ( ) const

Definition at line 3686 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList::updateLCD().

◆ DisplayState()

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

◆ DoButtonArrow()

void MythUIButtonListItem::DoButtonArrow ( MythUIImage buttonarrow) const
private

Definition at line 3774 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonCheck()

void MythUIButtonListItem::DoButtonCheck ( MythUIStateType buttoncheck)
private

Definition at line 3781 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonImage()

void MythUIButtonListItem::DoButtonImage ( MythUIImage buttonimage)
private

Definition at line 3758 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonLookupFilename()

void MythUIButtonListItem::DoButtonLookupFilename ( MythUIImage image,
const QString &  filename 
)
staticprivate

Definition at line 3864 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonLookupImage()

void MythUIButtonListItem::DoButtonLookupImage ( MythUIImage uiimage,
MythImage image 
)
staticprivate

Definition at line 3880 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonLookupState()

void MythUIButtonListItem::DoButtonLookupState ( MythUIStateType statetype,
const QString &  name 
)
staticprivate

Definition at line 3891 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonLookupText()

void MythUIButtonListItem::DoButtonLookupText ( MythUIText text,
const TextProperties textprop 
)
private

Definition at line 3815 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonProgress1()

void MythUIButtonListItem::DoButtonProgress1 ( MythUIProgressBar buttonprogress) const
private

Definition at line 3799 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonProgress2()

void MythUIButtonListItem::DoButtonProgress2 ( MythUIProgressBar buttonprogress) const
private

Definition at line 3807 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ DoButtonText()

void MythUIButtonListItem::DoButtonText ( MythUIText buttontext)
private

Definition at line 3749 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ FindText()

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

Definition at line 3420 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList::DoFind().

◆ GetData()

QVariant MythUIButtonListItem::GetData ( void  )

Definition at line 3737 of file mythuibuttonlist.cpp.

Referenced by BackendSelection::Accept(), GroupSelector::AcceptItem(), CustomPriority::addClicked(), MythUISpinBox::AddSelection(), StreamView::addStream(), MythThemedMenu::buttonAction(), ViewScheduled::ChangeGroup(), MythBurn::changeProfile(), ChannelRecPriority::changeRecPriority(), ProgramRecPriority::changeRecPriority(), ChannelEditor::channelIconImport(), CustomEdit::clauseChanged(), CustomEdit::clauseClicked(), LocationDialog::clearResults(), StatusBox::clicked(), ImportCoverArtDialog::copyPressed(), EditAlbumartDialog::copySelectedImageToTag(), MythBurn::createConfigFile(), SmartPlaylistEditor::criteriaChanged(), EditAlbumartDialog::customEvent(), LyricsView::customEvent(), MusicCommon::customEvent(), SearchView::customEvent(), StreamView::customEvent(), ScreenSetup::customEvent(), MythThemedMenu::customEvent(), StandardSettingDialog::customEvent(), GalleryThumbView::customEvent(), ChannelEditor::customEvent(), ProgramRecPriority::deactivate(), StandardSettingDialog::deleteEntry(), StandardSettingDialog::deleteEntryConfirmed(), MythNews::deleteNewsSite(), ViewScheduled::deleteRule(), ScreenSetup::deleteScreen(), PlaybackBox::deleteSelected(), SmartPlaylistEditor::doDeleteCriteria(), RSSEditor::DoDeleteSite(), ScreenSetup::doListSelect(), EditAlbumartDialog::doRemoveImageFromTag(), StreamView::doRemoveStream(), SchedOptMixin::DupMethodChanged(), ProgramRecPriority::edit(), ChannelEditor::edit(), SmartPlaylistEditor::editCriteria(), MythBurn::editDetails(), StreamView::editStream(), MythBurn::editThumbnails(), ZMEvents::eventVisible(), FileAssocDialogPrivate::GetCurrentFA(), PlaybackBox::GetCurrentProgram(), ProgramRecPriority::GetCurrentProgram(), ViewScheduled::GetCurrentProgram(), MythUIButtonList::GetDataValue(), anonymous_namespace{nettree.cpp}::GetNodePtrFromButton(), anonymous_namespace{videodlg.cpp}::GetNodePtrFromButton(), EditAlbumartDialog::gridItemChanged(), MythUIButtonTree::handleClick(), PlaybackBox::HandleRecordingRemoveEvent(), MythUIButtonTree::handleSelect(), ProgLister::HandleSelected(), ProgLister::HandleVisible(), ThemeChooser::itemChanged(), FileSelector::itemClicked(), LocationDialog::itemClicked(), GalleryThumbView::ItemClicked(), PlaybackBox::ItemLoaded(), ArchiveFileSelector::itemSelected(), LocationDialog::itemSelected(), PlaybackBox::ItemVisible(), MusicCommon::keyPressEvent(), BookmarkManager::keyPressEvent(), PlaylistEditorView::keyPressEvent(), SearchView::keyPressEvent(), StandardSettingDialog::keyPressEvent(), PlaybackBox::keyPressEvent(), StandardSettingDialog::LevelDown(), ViewScheduled::LoadList(), StoreOptMixin::MaxEpisodesChanged(), ChannelEditor::menu(), ImportIconsWizard::menuSelection(), PlaybackSettingsDialog::MoveProfileItemDown(), PlaybackSettingsDialog::MoveProfileItemUp(), FileSelector::OKPressed(), MythUIFileBrowser::OKPressed(), FileAssocDialog::OnDeletePressed(), MythUIFileBrowser::PathClicked(), MythUIFileBrowser::PathSelected(), PlaybackBox::PlayFromAnyMark(), PlaybackBox::PlayFromBeginning(), PlaybackBox::PlayFromBookmark(), PlaybackBox::PlayFromLastPlayPos(), MusicCommon::playlistItemVisible(), MythNews::processAndShowNews(), MythBurn::profileChanged(), ProfileDialog::profileChanged(), EditMetadataDialog::ratingSpinChanged(), CustomEdit::recordClicked(), BookmarkManager::ReloadBookmarks(), ProgramRecPriority::remove(), MythUIButtonTree::RemoveItem(), ExportNative::removeItem(), MythBurn::removeItem(), ProgramRecPriority::RemoveItemFromList(), EditAlbumartDialog::removeSelectedImageFromTag(), StreamView::removeStream(), restore_position(), SourceSetup::retrieveSpinboxUpdate(), CustomEdit::ruleChanged(), CustomPriority::ruleChanged(), ScheduleEditor::RuleChanged(), LanguageSelection::Save(), FilterOptMixin::Save(), AudioSetupWizard::save(), save_position(), ThemeChooser::saveAndReload(), MythBurn::saveConfiguration(), ScreenSetup::saveData(), SourceSetup::saveData(), PlaybackBox::saveRecMetadata(), ProgramRecPriority::scheduleChanged(), MythDialogBox::Select(), RawSettingsEditor::selectionChanged(), ImageSearchResultsDialog::sendResult(), MetadataResultsDialog::sendResult(), VideoFilterDialog::SetBrowse(), MythThemedMenu::setButtonActive(), VideoFilterDialog::SetCast(), EditMetadataDialog::SetCategory(), VideoFilterDialog::SetCategory(), EditMetadataDialog::SetChild(), VideoFilterDialog::setCountry(), VideoFilterDialog::SetCoverFile(), SelectDestination::setDestination(), VideoFilterDialog::setGenre(), StatusBox::setHelpText(), VideoFilterDialog::SetInetRef(), EditMetadataDialog::SetLevel(), LyricsView::setLyricTime(), VideoFilterDialog::setOrderby(), VideoFilterDialog::setRunTime(), ChannelEditor::setSourceID(), StandardSettingDialog::settingClicked(), StandardSettingDialog::settingSelected(), GalleryThumbView::SetUiSelection(), VideoFilterDialog::SetUserRating(), VideoFilterDialog::SetWatched(), VideoFilterDialog::SetYear(), PlaybackBox::ShowActionPopup(), BookmarkManager::ShowEditDialog(), MythNews::ShowEditDialog(), ZMConsole::showEditFunctionPopup(), Ripper::showEditMetadataDialog(), EditAlbumartDialog::showMenu(), ScheduleEditor::showMenu(), MythBurn::ShowMenu(), SearchView::ShowMenu(), StandardSettingDialog::ShowMenu(), PlaybackSettingsDialog::ShowMenu(), SmartPLResultViewer::showTrackInfo(), BookmarkManager::slotBookmarkClicked(), MythNewsConfig::slotCategoryChanged(), BookmarkManager::slotClearMarked(), BookmarkManager::slotDoDeleteCurrent(), RSSEditor::SlotEditSite(), RSSEditor::SlotItemChanged(), PlayerSettings::slotSave(), BookmarkManager::slotSetHomepage(), BookmarkManager::slotShowMarked(), MythNews::slotSiteSelected(), ProgramRecPriority::SortList(), ChannelRecPriority::SortList(), SourceSetup::sourceListItemSelected(), Ripper::startRipper(), SearchStream::streamClicked(), StreamView::streamItemVisible(), SearchStream::streamVisible(), ExportNative::titleChanged(), RecordingSelector::titleChanged(), VideoSelector::titleChanged(), PlaybackBox::toggleAutoExpire(), ThemeChooser::toggleFullscreenPreview(), NetEditorBase::ToggleItem(), MythNewsConfig::toggleItem(), PlaybackBox::togglePlayListItem(), PlaybackBox::togglePlayListTitle(), PlaybackBox::togglePreserveEpisode(), RecordingSelector::toggleSelected(), VideoSelector::toggleSelected(), AudioSetupWizard::toggleSpeakers(), MythBurn::toggleUseCutlist(), PlaybackBox::toggleWatched(), SearchView::trackClicked(), SearchView::trackVisible(), SmartPLResultViewer::trackVisible(), PlaylistEditorView::treeItemClicked(), PlaylistEditorView::treeItemVisible(), ChannelRecPriority::upcoming(), AudioSetupWizard::UpdateCapabilities(), ScreenSetup::updateHelpText(), GalleryThumbView::UpdateImageItem(), ChannelRecPriority::updateInfo(), ProgramRecPriority::updateInfo(), ViewScheduled::updateInfo(), ViewScheduleDiff::updateInfo(), MythNews::updateInfoView(), ProgramRecPriority::UpdateList(), StatusBox::updateLogList(), PlaybackBox::updateRecGroup(), PlaybackBox::updateRecList(), FileAssocDialog::UpdateScreen(), SourceSetup::updateSpinboxUpdate(), ImportCoverArtDialog::updateStatus(), StreamView::updateStream(), SearchView::updateTracksList(), PlaybackBox::UpdateUIListItem(), RawSettingsEditor::valueChanged(), ScreenSetup::~ScreenSetup(), and SourceSetup::~SourceSetup().

◆ GetImage()

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.

Note
The reference count is set for one use, call DecrRef() to delete.

Definition at line 3545 of file mythuibuttonlist.cpp.

◆ GetImageFilename()

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

◆ GetState()

QString MythUIButtonListItem::GetState ( const QString &  name)

Definition at line 3671 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ GetText()

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

Definition at line 3390 of file mythuibuttonlist.cpp.

Referenced by MythTerminal::AddText(), ProgFinder::alphabetListItemSelected(), StatusBox::clicked(), NetSearch::customEvent(), NetTree::customEvent(), ChannelEditor::del(), CustomEdit::deleteRule(), DoButtonLookupText(), ScreenSetup::doListSelect(), NetSearch::DoSearch(), SpinBoxEntryDialog::entryChanged(), SmartPLOrderByDialog::fieldListSelectionChanged(), ChannelEditor::fillList(), MythControls::GetCurrentAction(), MythControls::GetCurrentContext(), MythControls::GetCurrentKey(), SmartPLOrderByDialog::getFieldList(), MythUIButtonList::GetIntValue(), MythUIButtonList::GetValue(), ProgLister::HandleVisible(), RawSettingsEditor::Init(), AudioSetupWizard::Init(), CustomPriority::installClicked(), ChannelEditor::itemChanged(), ImportIconsWizard::itemChanged(), PlaybackBox::ItemLoaded(), MythUISpinBox::keyPressEvent(), SmartPLOrderByDialog::orderByChanged(), PhrasePopup::phraseSelected(), MusicCommon::playlistItemVisible(), VideoSetupWizard::playVideoTest(), AudioSetupWizard::save(), VideoSetupWizard::save(), MythDialogBox::Select(), RawSettingsEditor::selectionChanged(), PlaybackBox::selectUIGroupsAlphabet(), ChannelEditor::setSortMode(), ChannelEditor::setSourceID(), NetSearch::SlotItemChanged(), MythBrowser::slotTabSelected(), CustomEdit::storeClicked(), CustomEdit::storeRule(), StreamView::streamItemVisible(), SearchStream::streamVisible(), VideoSetupWizard::testHDVideo(), CustomPriority::testSchedule(), VideoSetupWizard::testSDVideo(), AudioSetupWizard::toggleSpeakers(), PlaylistEditorView::treeItemVisible(), AudioSetupWizard::UpdateCapabilities(), NetTree::UpdateCurrentItem(), MythUIButtonList::updateLCD(), LogViewer::updateLogItem(), PlaybackBox::updateRecList(), MythControls::UpdateRightList(), VideoDialog::UpdateText(), and BookmarkManager::UpdateURLList().

◆ GetTextProp()

TextProperties MythUIButtonListItem::GetTextProp ( const QString &  name = "") const

Definition at line 3405 of file mythuibuttonlist.cpp.

Referenced by SetToRealButton().

◆ HasImage()

bool MythUIButtonListItem::HasImage ( const QString &  name = "")
inline

Returns true when the image exists.

Definition at line 98 of file mythuibuttonlist.h.

Referenced by ZMEvents::eventVisible().

◆ isEnabled()

bool MythUIButtonListItem::isEnabled ( ) const

Definition at line 3722 of file mythuibuttonlist.cpp.

Referenced by MythUIButtonList::keyPressEvent().

◆ isVisible()

bool MythUIButtonListItem::isVisible ( ) const
inline

Definition at line 124 of file mythuibuttonlist.h.

◆ MoveUpDown()

bool MythUIButtonListItem::MoveUpDown ( bool  flag)

◆ parent()

MythUIButtonList * MythUIButtonListItem::parent ( ) const

◆ setCheckable()

void MythUIButtonListItem::setCheckable ( bool  flag)

◆ setChecked()

void MythUIButtonListItem::setChecked ( MythUIButtonListItem::CheckState  state)

◆ SetData()

void MythUIButtonListItem::SetData ( QVariant  data)

◆ setDrawArrow()

void MythUIButtonListItem::setDrawArrow ( bool  flag)

◆ setEnabled()

void MythUIButtonListItem::setEnabled ( bool  flag)

◆ SetFontState()

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

◆ SetImage() [1/2]

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

Definition at line 3565 of file mythuibuttonlist.cpp.

◆ SetImage() [2/2]

void MythUIButtonListItem::SetImage ( MythImage image,
const QString &  name = "" 
)

◆ SetImageCb()

void MythUIButtonListItem::SetImageCb ( muibCbFn  fn,
void *  data 
)

Definition at line 3539 of file mythuibuttonlist.cpp.

◆ SetImageFromMap()

void MythUIButtonListItem::SetImageFromMap ( const InfoMap imageMap)

Definition at line 3533 of file mythuibuttonlist.cpp.

Referenced by GalleryThumbView::UpdateImageItem().

◆ SetProgress1()

void MythUIButtonListItem::SetProgress1 ( int  start,
int  total,
int  used 
)

Definition at line 3615 of file mythuibuttonlist.cpp.

Referenced by PlaybackBox::ItemVisible().

◆ SetProgress2()

void MythUIButtonListItem::SetProgress2 ( int  start,
int  total,
int  used 
)

◆ SetStateCb()

void MythUIButtonListItem::SetStateCb ( muibCbFn  fn,
void *  data 
)

Definition at line 3665 of file mythuibuttonlist.cpp.

◆ SetStatesFromMap()

void MythUIButtonListItem::SetStatesFromMap ( const InfoMap stateMap)

Definition at line 3659 of file mythuibuttonlist.cpp.

◆ SetText()

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

◆ SetTextCb()

void MythUIButtonListItem::SetTextCb ( muibCbFn  fn,
void *  data 
)

Definition at line 3384 of file mythuibuttonlist.cpp.

◆ SetTextFromMap() [1/2]

void MythUIButtonListItem::SetTextFromMap ( const InfoMap infoMap,
const QString &  state = "" 
)

◆ SetTextFromMap() [2/2]

void MythUIButtonListItem::SetTextFromMap ( const QMap< QString, TextProperties > &  stringMap)

Definition at line 3378 of file mythuibuttonlist.cpp.

◆ SetToRealButton()

void MythUIButtonListItem::SetToRealButton ( MythUIStateType button,
bool  selected 
)
virtual

◆ setVisible()

void MythUIButtonListItem::setVisible ( bool  flag)
inline

Definition at line 125 of file mythuibuttonlist.h.

Referenced by RecordingProfile::Name::setValue().

◆ state()

MythUIButtonListItem::CheckState MythUIButtonListItem::state ( ) const

Friends And Related Function Documentation

◆ MythGenericTree

friend class MythGenericTree
friend

Definition at line 182 of file mythuibuttonlist.h.

◆ MythUIButtonList

friend class MythUIButtonList
friend

Definition at line 181 of file mythuibuttonlist.h.

Member Data Documentation

◆ m_checkable

bool MythUIButtonListItem::m_checkable {false}
protected

◆ m_data

QVariant MythUIButtonListItem::m_data {0}
protected

Definition at line 165 of file mythuibuttonlist.h.

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

◆ m_debugme

bool MythUIButtonListItem::m_debugme {false}
protected

Definition at line 169 of file mythuibuttonlist.h.

◆ m_enabled

bool MythUIButtonListItem::m_enabled {true}
protected

Definition at line 168 of file mythuibuttonlist.h.

Referenced by isEnabled(), MythUIButtonListItem(), setEnabled(), and SetToRealButton().

◆ m_fontState

QString MythUIButtonListItem::m_fontState
protected

Definition at line 160 of file mythuibuttonlist.h.

Referenced by DoButtonLookupText(), DoButtonText(), and SetFontState().

◆ m_image

MythImage* MythUIButtonListItem::m_image {nullptr}
protected

◆ m_imageCb

muibCbInfo MythUIButtonListItem::m_imageCb
protected

Definition at line 178 of file mythuibuttonlist.h.

Referenced by GetImageFilename(), and SetImageCb().

◆ m_imageFilename

QString MythUIButtonListItem::m_imageFilename
protected

Definition at line 162 of file mythuibuttonlist.h.

Referenced by DoButtonImage(), GetImageFilename(), and SetImage().

◆ m_imageFilenames

InfoMap MythUIButtonListItem::m_imageFilenames
protected

Definition at line 175 of file mythuibuttonlist.h.

Referenced by GetImageFilename(), SetImage(), and SetImageFromMap().

◆ m_images

QMap<QString, MythImage*> MythUIButtonListItem::m_images
protected

Definition at line 174 of file mythuibuttonlist.h.

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

◆ m_isVisible

bool MythUIButtonListItem::m_isVisible {false}
protected

◆ m_parent

MythUIButtonList* MythUIButtonListItem::m_parent {nullptr}
protected

◆ m_progress1

ProgressInfo MythUIButtonListItem::m_progress1
protected

Definition at line 170 of file mythuibuttonlist.h.

Referenced by DoButtonProgress1(), and SetProgress1().

◆ m_progress2

ProgressInfo MythUIButtonListItem::m_progress2
protected

Definition at line 171 of file mythuibuttonlist.h.

Referenced by DoButtonProgress2(), and SetProgress2().

◆ m_showArrow

bool MythUIButtonListItem::m_showArrow {false}
protected

Definition at line 166 of file mythuibuttonlist.h.

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

◆ m_state

CheckState MythUIButtonListItem::m_state {CantCheck}
protected

Definition at line 164 of file mythuibuttonlist.h.

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

◆ m_stateCb

muibCbInfo MythUIButtonListItem::m_stateCb
protected

Definition at line 179 of file mythuibuttonlist.h.

Referenced by GetState(), and SetStateCb().

◆ m_states

InfoMap MythUIButtonListItem::m_states
protected

Definition at line 176 of file mythuibuttonlist.h.

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

◆ m_strings

QMap<QString, TextProperties> MythUIButtonListItem::m_strings
protected

◆ m_text

QString MythUIButtonListItem::m_text
protected

◆ m_textCb

muibCbInfo MythUIButtonListItem::m_textCb
protected

Definition at line 177 of file mythuibuttonlist.h.

Referenced by GetState(), GetText(), GetTextProp(), and SetTextCb().


The documentation for this class was generated from the following files: