MythTV  master
Public Member Functions | Protected Attributes | List of all members
MusicGenericTree Class Reference

#include <playlisteditorview.h>

Inheritance diagram for MusicGenericTree:
Inheritance graph
Collaboration diagram for MusicGenericTree:
Collaboration graph

Public Member Functions

 MusicGenericTree (MusicGenericTree *parent, const QString &name, const QString &action="", MythUIButtonListItem::CheckState check=MythUIButtonListItem::CantCheck, bool showArrow=true)
 ~MusicGenericTree () override=default
QString getAction (void) const
MythUIButtonListItem::CheckState getCheck (void) const
void setCheck (MythUIButtonListItem::CheckState state)
void setDrawArrow (bool flag)
MythUIButtonListItemCreateListButton (MythUIButtonList *list) override
- Public Member Functions inherited from MythGenericTree
 MythGenericTree (QString a_string="", int an_int=0, bool selectable_flag=false)
virtual ~MythGenericTree ()
void ensureSortFields (void)
MythGenericTreeaddNode (const QString &a_string, int an_int=0, bool selectable_flag=false, bool visible=true)
MythGenericTreeaddNode (const QString &a_string, const QString &sortText="", int an_int=0, bool selectable_flag=false, bool visible=true)
MythGenericTreeaddNode (MythGenericTree *child)
void DetachParent (void)
 Detach this node/branch from it's parent without deleting it, it can then be reattached elsewhere or used on it's own. More...
void removeNode (MythGenericTree *child)
void deleteNode (MythGenericTree *child)
MythGenericTreefindLeaf ()
MythGenericTreefindNode (QList< int > route_of_branches)
MythGenericTreenextSibling (int number_down)
MythGenericTreeprevSibling (int number_up)
MythGenericTreegetSelectedChild (bool onlyVisible=false) const
MythGenericTreegetVisibleChildAt (uint reference) const
MythGenericTreegetChildAt (uint reference) const
MythGenericTreegetChildByName (const QString &a_name) const
MythGenericTreegetChildById (int an_int) const
QList< MythGenericTree * > * getAllChildren () const
int getChildPosition (MythGenericTree *child) const
int getPosition (void)
QList< int > getRouteById (void)
QStringList getRouteByString (void)
QList< MythGenericTree * > getRoute (void)
void setInt (int an_int)
int getInt () const
void setParent (MythGenericTree *a_parent)
MythGenericTreegetParent (void) const
void SetText (const QString &text, const QString &name="", const QString &state="")
void SetTextFromMap (const InfoMap &infoMap, const QString &state="")
void SetTextCb (mgtCbFn fn, void *data)
QString GetText (const QString &name="") const
QString GetSortText () const
void SetSortText (const QString &text)
void SetImage (const QString &filename, const QString &name="")
void SetImageFromMap (const InfoMap &infoMap)
void SetImageCb (mgtCbFn fn, void *data)
QString GetImage (const QString &name="") const
void DisplayState (const QString &state, const QString &name="")
void DisplayStateFromMap (const InfoMap &infoMap)
void SetStateCb (mgtCbFn fn, void *data)
QString GetState (const QString &name="") const
void SetData (QVariant data)
QVariant GetData (void) const
int childCount (void) const
uint visibleChildCount () const
int siblingCount (void) const
int currentDepth (void)
 Establish how deep in the current tree this node lies. More...
void setSelectable (bool flag)
bool isSelectable () const
void SetVisible (bool visible)
bool IsVisible () const
void IncVisibleCount ()
void DecVisibleCount ()
void becomeSelectedChild (void)
void setSelectedChild (MythGenericTree *a_node)
void sortByString ()
void sortBySelectable ()
void deleteAllChildren ()
void MoveItemUpDown (MythGenericTree *item, bool flag)

Protected Attributes

QString m_action
QPointer< MusicButtonItemm_buttonItem {nullptr}
MythUIButtonListItem::CheckState m_check {MythUIButtonListItem::CantCheck}
bool m_showArrow {true}

Detailed Description

Definition at line 38 of file playlisteditorview.h.

Constructor & Destructor Documentation

◆ MusicGenericTree()

MusicGenericTree::MusicGenericTree ( MusicGenericTree parent,
const QString &  name,
const QString &  action = "",
MythUIButtonListItem::CheckState  check = MythUIButtonListItem::CantCheck,
bool  showArrow = true 

Definition at line 27 of file playlisteditorview.cpp.

◆ ~MusicGenericTree()

MusicGenericTree::~MusicGenericTree ( )

Member Function Documentation

◆ getAction()

QString MusicGenericTree::getAction ( void  ) const

◆ getCheck()

MythUIButtonListItem::CheckState MusicGenericTree::getCheck ( void  ) const

Definition at line 49 of file playlisteditorview.h.

◆ setCheck()

void MusicGenericTree::setCheck ( MythUIButtonListItem::CheckState  state)

Definition at line 53 of file playlisteditorview.cpp.

◆ setDrawArrow()

void MusicGenericTree::setDrawArrow ( bool  flag)

Definition at line 46 of file playlisteditorview.cpp.

Referenced by MusicGenericTree().

◆ CreateListButton()

MythUIButtonListItem * MusicGenericTree::CreateListButton ( MythUIButtonList list)

Reimplemented from MythGenericTree.

Definition at line 63 of file playlisteditorview.cpp.

Member Data Documentation

◆ m_action

QString MusicGenericTree::m_action

Definition at line 57 of file playlisteditorview.h.

◆ m_buttonItem

QPointer<MusicButtonItem> MusicGenericTree::m_buttonItem {nullptr}

Definition at line 58 of file playlisteditorview.h.

Referenced by CreateListButton(), setCheck(), and setDrawArrow().

◆ m_check

Definition at line 59 of file playlisteditorview.h.

Referenced by CreateListButton(), and setCheck().

◆ m_showArrow

bool MusicGenericTree::m_showArrow {true}

Definition at line 60 of file playlisteditorview.h.

Referenced by CreateListButton(), and setDrawArrow().

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