Miam-Player  0.8.0
A nice music player
TreeView Class Referenceabstract

The TreeView class is the base class for displaying trees in the player. More...

#include <treeview.h>

Inheritance diagram for TreeView:
SelectedTracksModel FileSystemTreeView LibraryTreeView

Public Slots

void appendToPlaylist ()
 
void openTagEditor ()
 

Signals

void aboutToInsertToPlaylist (int rowIndex, const QList< QUrl > &tracks)
 
void aboutToSendToTagEditor (const QList< QUrl > &tracks)
 

Public Member Functions

 TreeView (QWidget *parent=nullptr)
 
virtual ~TreeView ()
 
virtual void findAll (const QModelIndex &index, QList< QUrl > *tracks) const =0
 
virtual QList< QUrl > selectedTracks () override
 
- Public Member Functions inherited from SelectedTracksModel
virtual ~SelectedTracksModel ()
 
virtual void updateSelectedTracks ()=0
 

Protected Member Functions

virtual int countAll (const QModelIndexList &indexes) const =0
 
virtual bool eventFilter (QObject *obj, QEvent *event) override
 
virtual void startDrag (Qt::DropActions supportedActions) override
 

Detailed Description

The TreeView class is the base class for displaying trees in the player.

Author
Matthieu Bachelier

Constructor & Destructor Documentation

TreeView::TreeView ( QWidget *  parent = nullptr)
explicit
TreeView::~TreeView ( )
virtual

Member Function Documentation

void TreeView::aboutToInsertToPlaylist ( int  rowIndex,
const QList< QUrl > &  tracks 
)
signal

Adds tracks to the current playlist at a specific position.

void TreeView::aboutToSendToTagEditor ( const QList< QUrl > &  tracks)
signal

Adds tracks to the tag editor.

void TreeView::appendToPlaylist ( )
slot

Sends folders or tracks to the end of a playlist.

Send folders or tracks to a specific position in a playlist.

virtual int TreeView::countAll ( const QModelIndexList &  indexes) const
protectedpure virtual

Explore items to count leaves (tracks).

Implemented in FileSystemTreeView.

bool TreeView::eventFilter ( QObject *  obj,
QEvent *  event 
)
overrideprotectedvirtual

Redefined to override shortcuts that are mapped on simple keys.

virtual void TreeView::findAll ( const QModelIndex &  index,
QList< QUrl > *  tracks 
) const
pure virtual

Scan nodes and its subitems before dispatching tracks to a specific widget (playlist or tageditor).

Implemented in LibraryTreeView, and FileSystemTreeView.

void TreeView::openTagEditor ( )
slot

Sends folders or tracks to the tag editor.

Send folders or tracks to the tag editor.

QList< QUrl > TreeView::selectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

void TreeView::startDrag ( Qt::DropActions  supportedActions)
overrideprotectedvirtual

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