![]() |
Sayonara Player
|
The FileListView class. More...
#include <FileListView.h>
Public Member Functions | |
FileListView (QWidget *parent=nullptr) | |
QModelIndexList | selectedRows () const |
QStringList | selectedPaths () const |
void | setParentDirectory (LibraryId id, const QString &dir) |
QString | parentDirectory () const |
void | setSearchFilter (const QString &search_string) |
QMimeData * | dragableMimedata () const override |
virtual void | showEvent (QShowEvent *e) override |
void | infoDialogClosed () |
this function should not be called from outside. This function is triggered when the info dialog was closed. | |
Protected Types | |
enum | EditTab { TabText, TabCover, TabTagsFromPath } |
Protected Member Functions | |
void | contextMenuEvent (QContextMenuEvent *event) override |
void | dragEnterEvent (QDragEnterEvent *event) override |
void | dragMoveEvent (QDragMoveEvent *event) override |
void | dropEvent (QDropEvent *event) override |
void | languageChanged () override |
void | skinChanged () override |
int | mapModelIndexToIndex (const QModelIndex &idx) const override |
ModelIndexRange | mapIndexToModelIndexes (int idx) const override |
MD::Interpretation | metadataInterpretation () const override |
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums while others should be considered as tracks More... | |
MetaDataList | infoDialogData () const override |
get the metadata that should be used for the info dialog So for lists, the selected tracks are used here More... | |
bool | hasMetadata () const override |
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist More... | |
QStringList | pathlist () const override |
Returns a list of paths. This is only used if has_metadata() returns false. More... | |
virtual void | showInfo () |
Show the Info dialogs' info tab. | |
virtual void | showLyrics () |
Show the Info dialogs' lyrics tab. | |
virtual void | showEdit () |
Show the tag editor. | |
virtual void | showCoverEdit () |
Show the cover tab withing the tag editor. | |
The FileListView class.
|
overrideprotectedvirtual |
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist
Reimplemented from InfoDialogContainer.
|
overrideprotectedvirtual |
get the metadata that should be used for the info dialog So for lists, the selected tracks are used here
Implements InfoDialogContainer.
|
overrideprotectedvirtual |
get the interpretation for the metadata. Maybe a list of metadata should be intrepeted as albums while others should be considered as tracks
Implements InfoDialogContainer.
|
overrideprotectedvirtual |
Returns a list of paths. This is only used if has_metadata() returns false.
Reimplemented from InfoDialogContainer.