MythTV
master
|
#include <playlisteditorview.h>
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) |
MythUIButtonListItem * | CreateListButton (MythUIButtonList *list) override |
![]() | |
MythGenericTree (const QString &a_string="", int an_int=0, bool selectable_flag=false) | |
virtual | ~MythGenericTree () |
void | ensureSortFields (void) |
MythGenericTree * | addNode (const QString &a_string, int an_int=0, bool selectable_flag=false, bool visible=true) |
MythGenericTree * | addNode (const QString &a_string, const QString &sortText="", int an_int=0, bool selectable_flag=false, bool visible=true) |
MythGenericTree * | addNode (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) |
MythGenericTree * | findLeaf () |
MythGenericTree * | findNode (QList< int > route_of_branches) |
MythGenericTree * | nextSibling (int number_down) |
MythGenericTree * | prevSibling (int number_up) |
MythGenericTree * | getSelectedChild (bool onlyVisible=false) const |
MythGenericTree * | getVisibleChildAt (uint reference) const |
MythGenericTree * | getChildAt (uint reference) const |
MythGenericTree * | getChildByName (const QString &a_name) const |
MythGenericTree * | getChildById (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) |
MythGenericTree * | getParent (void) const |
void | SetText (const QString &text, const QString &name="", const QString &state="") |
void | SetTextFromMap (const InfoMap &infoMap, const QString &state="") |
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) |
QString | GetImage (const QString &name="") const |
void | DisplayState (const QString &state, const QString &name="") |
void | DisplayStateFromMap (const InfoMap &infoMap) |
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< MusicButtonItem > | m_buttonItem {nullptr} |
MythUIButtonListItem::CheckState | m_check {MythUIButtonListItem::CantCheck} |
bool | m_showArrow {true} |
Definition at line 37 of file playlisteditorview.h.
MusicGenericTree::MusicGenericTree | ( | MusicGenericTree * | parent, |
const QString & | name, | ||
const QString & | action = "" , |
||
MythUIButtonListItem::CheckState | check = MythUIButtonListItem::CantCheck , |
||
bool | showArrow = true |
||
) |
Definition at line 26 of file playlisteditorview.cpp.
|
overridedefault |
|
inline |
Definition at line 46 of file playlisteditorview.h.
Referenced by PlaylistEditorView::filterTracks(), and PlaylistEditorView::updateSonglist().
|
inline |
Definition at line 48 of file playlisteditorview.h.
void MusicGenericTree::setCheck | ( | MythUIButtonListItem::CheckState | state | ) |
Definition at line 53 of file playlisteditorview.cpp.
void MusicGenericTree::setDrawArrow | ( | bool | flag | ) |
Definition at line 46 of file playlisteditorview.cpp.
Referenced by MusicGenericTree().
|
overridevirtual |
Reimplemented from MythGenericTree.
Definition at line 63 of file playlisteditorview.cpp.
|
protected |
Definition at line 56 of file playlisteditorview.h.
Referenced by MusicGenericTree().
|
protected |
Definition at line 57 of file playlisteditorview.h.
Referenced by CreateListButton(), setCheck(), and setDrawArrow().
|
protected |
Definition at line 58 of file playlisteditorview.h.
Referenced by CreateListButton(), MusicGenericTree(), and setCheck().
Definition at line 59 of file playlisteditorview.h.
Referenced by CreateListButton(), MusicGenericTree(), and setDrawArrow().