![]() |
Sayonara Player
|
#include <CoverView.h>
Public Slots | |
void | reload () |
void | clearCache () |
Signals | |
void | sigDeleteClicked () |
void | sigPlayClicked () |
void | sigPlayNextClicked () |
void | sigPlayNewTabClicked () |
void | sigAppendClicked () |
void | sigRefreshClicked () |
void | sigReloadClicked () |
void | sigImportFiles (const QStringList &files) |
void | sigSelectionChanged (const IndexSet &indexes) |
Public Member Functions | |
CoverView (QWidget *parent=nullptr) | |
void | init (LocalLibrary *library) |
AbstractLibrary * | library () const override |
QStyleOptionViewItem | viewOptions () const override |
int | mapModelIndexToIndex (const QModelIndex &idx) const override |
ModelIndexRange | mapIndexToModelIndexes (int idx) const override |
SelectionViewInterface::SelectionType | selectionType () const override |
void | changeZoom (int zoom=-1) |
void | changeSortorder (SortOrder so) |
void | setItemModel (ItemModel *model) |
void | showClearButton (bool visible) |
void | useClearButton (bool yesno) |
virtual Library::ContextMenu::Entries | contextMenuEntries () const |
QMimeData * | dragableMimedata () const override |
bool | isValidDragPosition (const QPoint &p) 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. | |
Static Public Member Functions | |
static QList< ActionPair > | sortingActions () |
static QStringList | zoomActions () |
Protected Types | |
enum | EditTab { TabText, TabCover, TabTagsFromPath } |
enum | ReleaseReason : char { Dropped, Destroyed } |
Protected Member Functions | |
void | fill () override |
void | initContextMenu () override |
void | languageChanged () override |
bool | isMergeable () const override |
indicates if multiple ids can be merged into one. For example if the same artist is written in three different ways, they can be merged to one. On the other hand, for tracks that does not make sense More... | |
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... | |
int | sizeHintForColumn (int) const override |
void | wheelEvent (QWheelEvent *e) override |
void | resizeEvent (QResizeEvent *e) override |
void | hideEvent (QHideEvent *e) override |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | contextMenuEvent (QContextMenuEvent *event) override |
virtual void | dragEnterEvent (QDragEnterEvent *event) override |
virtual void | dragMoveEvent (QDragMoveEvent *event) override |
virtual void | dropEvent (QDropEvent *event) override |
virtual void | changeEvent (QEvent *event) override |
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
Library::ContextMenu * | contextMenu () const |
virtual void | initCustomContextMenu (Library::ContextMenu *menu) |
ItemModel * | itemModel () const |
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... | |
virtual void | importRequested (const QStringList &files) |
int | viewportHeight () const override |
virtual void | skinChanged () |
virtual bool | hasMetadata () const |
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist More... | |
virtual QStringList | pathlist () const |
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. | |
virtual bool | hasDragLabel () const |
virtual QString | dragLabel () const |
The CoverView class.
|
overridevirtualinherited |
Dragable
Implements Gui::Dragable.
|
protectedvirtualinherited |
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist
Reimplemented in Directory::FileListView, and Directory::TreeView.
|
overrideprotectedvirtualinherited |
get the metadata that should be used for the info dialog So for lists, the selected tracks are used here
Implements InfoDialogContainer.
|
overrideprotectedvirtual |
indicates if multiple ids can be merged into one. For example if the same artist is written in three different ways, they can be merged to one. On the other hand, for tracks that does not make sense
Implements Library::ItemView.
|
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.
|
protectedvirtualinherited |
Returns a list of paths. This is only used if has_metadata() returns false.
Reimplemented in Directory::FileListView, and Directory::TreeView.