MythTV  master
Public Member Functions | List of all members
MusicButtonItem Class Reference

#include <playlisteditorview.h>

Inheritance diagram for MusicButtonItem:
Inheritance graph
[legend]
Collaboration diagram for MusicButtonItem:
Collaboration graph
[legend]

Public Member Functions

 MusicButtonItem (MythUIButtonList *lbtype, const QString &text, const QString &image="", bool checkable=false, CheckState state=CantCheck, bool showArrow=false, int listPosition=-1)
 
 MusicButtonItem (MythUIButtonList *lbtype, const QString &text, QVariant data, int listPosition=-1)
 
- Public Member Functions inherited from MythUIButtonListItem
 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 >
 MythUIButtonListItem (typename std::enable_if< FunctionPointerTest< SLOT >::MemberFunction, MythUIButtonList * >::type lbtype, const QString &text, SLOT slot, int listPosition=-1)
 
template<typename SLOT >
 MythUIButtonListItem (typename std::enable_if< FunctionPointerTest< SLOT >::MemberConstFunction, MythUIButtonList * >::type 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)
 

Additional Inherited Members

- Public Types inherited from MythUIButtonListItem
enum  CheckState { CantCheck = -1, NotChecked = 0, HalfChecked, FullChecked }
 
- Protected Attributes inherited from MythUIButtonListItem
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 {0,0,0}
 
ProgressInfo m_progress2 {0,0,0}
 
QMap< QString, TextPropertiesm_strings
 
QMap< QString, MythImage * > m_images
 
InfoMap m_imageFilenames
 
InfoMap m_states
 
muibCbInfo m_textCb
 
muibCbInfo m_imageCb
 
muibCbInfo m_stateCb
 

Detailed Description

Definition at line 25 of file playlisteditorview.h.

Constructor & Destructor Documentation

◆ MusicButtonItem() [1/2]

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

Definition at line 28 of file playlisteditorview.h.

◆ MusicButtonItem() [2/2]

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

Definition at line 34 of file playlisteditorview.h.


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