Sayonara Player
|
#include <AlbumView.h>
Signals | |
void | sigDiscPressed (Disc d) |
void | sigSortorderChanged (SortOrder) |
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 | |
AlbumView (QWidget *parent=nullptr) | |
virtual void | init (AbstractLibrary *library) |
void | setItemModel (ItemModel *model) |
void | showClearButton (bool visible) |
void | useClearButton (bool yesno) |
virtual Library::ContextMenu::Entries | contextMenuEntries () const |
bool | isValidDragPosition (const QPoint &p) const override |
virtual void | showEvent (QShowEvent *e) override |
Protected Types | |
enum | EditTab { TabText , TabCover , TabTagsFromPath } |
enum class | ReleaseReason : char { Dropped , Destroyed } |
Protected Member Functions | |
ColumnHeaderList | columnHeaders () const override |
returns a list of ColumnHeader objects containing name, sortorder. Everytime when the language is changed, this method is fetched as well when the UI is instantiated More... | |
QByteArray | columnHeaderState () const override |
This method returns the SAVED column header sizes as they were remembered since the last time sayonara was running. Also see save_column_header_sizes() More... | |
void | saveColumnHeaderState (const QByteArray &state) override |
Here, the column headers sizes should be saved somewhere. More... | |
void | setupColumnNames () |
the column names are reloaded and updated with their corresponding texts | |
void | languageChanged () override |
int | mapModelIndexToIndex (const QModelIndex &idx) const override |
ModelIndexRange | mapIndexToModelIndexes (int idx) const 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 | resizeEvent (QResizeEvent *event) override |
virtual void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) override |
Library::ContextMenu * | contextMenu () const |
virtual void | initContextMenu () |
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... | |
QWidget * | getParentWidget () override |
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 AlbumView class.
|
overrideprotectedvirtual |
returns a list of ColumnHeader objects containing name, sortorder. Everytime when the language is changed, this method is fetched as well when the UI is instantiated
Implements Library::TableView.
|
overrideprotectedvirtual |
This method returns the SAVED column header sizes as they were remembered since the last time sayonara was running. Also see save_column_header_sizes()
Implements Library::TableView.
|
overrideprotectedvirtualinherited |
Implements InfoDialogContainer.
|
protectedvirtualinherited |
returns, if the widget can provide metadata instantly If false, the info dialog will the pathlist
Reimplemented in Directory::TreeView, and Directory::FileListView.
|
overrideprotectedvirtualinherited |
get the metadata that should be used for the info dialog So for lists, the selected tracks are used here
Implements InfoDialogContainer.
|
overridevirtualinherited |
Dragable
Reimplemented from Gui::Dragable.
|
overrideprotectedvirtualinherited |
Reimplemented from Gui::WidgetTemplateParent.
|
protectedvirtualinherited |
Returns a list of paths. This is only used if has_metadata() returns false.
Reimplemented in Directory::TreeView, and Directory::FileListView.
|
overrideprotectedvirtual |
Here, the column headers sizes should be saved somewhere.
a | list of widths in pixels. The list should be as big as there are columns (even if they are not visible) |
Implements Library::TableView.