|
Sayonara Player
|
The main task of the ItemView is to display a context menu for various selections. It also handles drag and drop events with a cover. It supports merging and imports. More...
#include <ItemView.h>
Public Types | |
| enum class | SelectionType { Rows = 0 , Items } |
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 | |
| ItemView (QWidget *parent=nullptr) | |
| 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 |
| virtual void | showEvent (QShowEvent *e) override |
| virtual void | setSearchableModel (Model *model) |
| int | rowCount () const |
| QAbstractItemView * | view () const |
| virtual int | viewportWidth () const |
| int | setSearchstring (const QString &str) |
| void | selectNextMatch (const QString &str) |
| void | selectPreviousMatch (const QString &str) |
| virtual void | searchDone () |
| virtual IndexSet | selectedItems () const |
Protected Types | |
| enum class | SearchDirection : unsigned char { First , Next , Prev } |
| enum | EditTab { TabText , TabCover , TabTagsFromPath } |
| enum class | ReleaseReason : char { Dropped , Destroyed } |
Protected Member Functions | |
| 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 |
| virtual AbstractLibrary * | library () const |
| virtual bool | isMergeable () const =0 |
| 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 | |
| MetaDataList | infoDialogData () const override |
| QWidget * | getParentWidget () override |
| virtual void | selectedItemsChanged (const IndexSet &indexes) |
| virtual void | importRequested (const QStringList &files) |
| virtual void | runMergeOperation (const Library::MergeData &md) |
| int | viewportHeight () const override |
| void | keyPressEvent (QKeyEvent *e) override |
| virtual QModelIndex | matchIndex (const QString &str, SearchDirection direction) const |
| virtual void | selectMatch (const QString &str, SearchDirection direction) |
| bool | handleKeyPress (QKeyEvent *e) override |
| void | selectRows (const IndexSet &rows, int minimumColumn=-1, int maximumColumn=-1) |
| void | selectItems (const IndexSet &indexes) |
| void | selectAll () |
| virtual SelectionViewInterface::SelectionType | selectionType () const |
| virtual int | mapModelIndexToIndex (const QModelIndex &idx) const =0 |
| virtual ModelIndexRange | mapIndexToModelIndexes (int idx) const =0 |
| virtual void | languageChanged () |
| virtual void | languageChanged () |
| virtual void | skinChanged () |
| virtual void | skinChanged () |
| virtual MD::Interpretation | metadataInterpretation () const =0 |
| virtual bool | hasMetadata () const |
| virtual QStringList | pathlist () const |
| virtual void | showInfo () |
| virtual void | showLyrics () |
| virtual void | showEdit () |
| virtual void | showCoverEdit () |
| virtual bool | hasDragLabel () const |
| virtual QString | dragLabel () const |
The main task of the ItemView is to display a context menu for various selections. It also handles drag and drop events with a cover. It supports merging and imports.
|
overrideprotectedvirtual |
Implements InfoDialogContainer.
|
overrideprotectedvirtualinherited |
Reimplemented from SelectionViewInterface.
|
overrideprotectedvirtual |
Implements InfoDialogContainer.
|
protectedpure virtual |
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
Implemented in Library::ArtistView, Library::CoverView, SC::AlbumView, SC::ArtistView, and SC::TrackView.
|
overridevirtual |
Dragable
Reimplemented from Gui::Dragable.
|
overrideprotectedvirtual |
Reimplemented from SearchableViewInterface.