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 insertToPlaylist (int rowIndex)
 
void openTagEditor ()
 

Signals

void aboutToInsertToPlaylist (int rowIndex, const QStringList &tracks)
 
void sendToTagEditor (const QModelIndexList indexes, const QStringList &tracks)
 

Public Member Functions

 TreeView (QWidget *parent=nullptr)
 
virtual void findAll (const QModelIndex &index, QStringList &tracks) const =0
 
virtual QStringList 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 void startDrag (Qt::DropActions supportedActions) override
 

Protected Attributes

QModelIndexList _cacheSelectedIndexes
 

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

Member Function Documentation

void TreeView::aboutToInsertToPlaylist ( int  rowIndex,
const QStringList &  tracks 
)
signal

Adds tracks to the current playlist at a specific position.

void TreeView::appendToPlaylist ( )
inlineslot

Sends folders or tracks to the end of a playlist.

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

Explore items to count leaves (tracks).

Implemented in FileSystemTreeView.

virtual void TreeView::findAll ( const QModelIndex &  index,
QStringList &  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::insertToPlaylist ( int  rowIndex)
slot

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

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

void TreeView::openTagEditor ( )
slot

Sends folders or tracks to the tag editor.

Send folders or tracks to the tag editor.

QStringList TreeView::selectedTracks ( )
overridevirtual

Implements SelectedTracksModel.

void TreeView::sendToTagEditor ( const QModelIndexList  indexes,
const QStringList &  tracks 
)
signal

Adds tracks to the tag editor.

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

Member Data Documentation

QModelIndexList TreeView::_cacheSelectedIndexes
protected

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