![]() |
Sayonara Player
|
#include <CoverView.h>
Public Slots | |
void | reload () |
void | clear_cache () |
Signals | |
void | sig_all_selected () |
void | sig_delete_clicked () |
void | sig_play_clicked () |
void | sig_play_next_clicked () |
void | sig_play_new_tab_clicked () |
void | sig_append_clicked () |
void | sig_refresh_clicked () |
void | sig_reload_clicked () |
void | sig_import_files (const QStringList &files) |
void | sig_sel_changed (const IndexSet &indexes) |
void | sig_merge (const Util::Set< Id > &ids, int target_id) |
Public Member Functions | |
CoverView (QWidget *parent=nullptr) | |
void | init (LocalLibrary *library) |
AbstractLibrary * | library () const override |
QStyleOptionViewItem | viewOptions () const override |
int | index_by_model_index (const QModelIndex &idx) const override |
ModelIndexRange | model_indexrange_by_index (int idx) const override |
void | change_zoom (int zoom=-1) |
void | change_sortorder (SortOrder so) |
void | set_item_model (ItemModel *model) |
virtual Library::ContextMenu::Entries | context_menu_entries () const |
QMimeData * | dragable_mimedata () const override |
QPixmap | drag_pixmap () const override |
void | set_selection_type (SelectionViewInterface::SelectionType type) override |
bool | is_valid_drag_position (const QPoint &p) const override |
void | show_clear_button (bool visible) |
void | use_clear_button (bool yesno) |
void | resize_rows_to_contents () |
void | resize_rows_to_contents (int first_row, int count) |
virtual void | showEvent (QShowEvent *e) override |
void | info_dialog_closed () |
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 > | sorting_actions () |
static QStringList | zoom_actions () |
Protected Types | |
enum | EditTab { TabText, TabCover, TabTagsFromPath } |
enum | ReleaseReason : char { Dropped, Destroyed } |
Protected Member Functions | |
void | fill () override |
void | init_context_menu () override |
void | language_changed () override |
void | wheelEvent (QWheelEvent *e) override |
void | resizeEvent (QResizeEvent *e) override |
void | hideEvent (QHideEvent *e) override |
bool | is_mergeable () 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 | metadata_interpretation () 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 |
virtual void | mousePressEvent (QMouseEvent *event) override |
virtual void | mouseMoveEvent (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 | keyPressEvent (QKeyEvent *event) override |
virtual void | selected_items_changed (const QItemSelection &selected, const QItemSelection &deselected) |
virtual void | init_custom_context_menu (Library::ContextMenu *menu) |
Library::ContextMenu * | context_menu () const |
ItemModel * | item_model () const |
MetaDataList | info_dialog_data () 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 | import_requested (const QStringList &files) |
int | viewport_height () const override |
virtual void | skin_changed () |
virtual bool | has_metadata () 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 | show_info () |
Show the Info dialogs' info tab. | |
virtual void | show_lyrics () |
Show the Info dialogs' lyrics tab. | |
virtual void | show_edit () |
Show the tag editor. | |
virtual void | show_cover_edit () |
virtual void | drag_pressed (const QPoint &p) final |
virtual QDrag * | drag_moving (const QPoint &p) final |
virtual void | drag_released (ReleaseReason reason) |
virtual bool | has_drag_label () const |
virtual QString | drag_label () 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 GUI_DirectoryWidget.
|
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 GUI_DirectoryWidget.