|
Sayonara Player
|
The DirectoryTreeView class. More...
#include <DirectoryTreeView.h>
Public Slots | |
| void | setBusy (bool b) |
Public Member Functions | |
| TreeView (QWidget *parent=nullptr) | |
| void | init (LibraryInfoAccessor *libraryInfoAccessor, const Library::Info &info) |
| QString | directoryName (const QModelIndex &index) |
| QModelIndexList | selectedRows () const |
| QStringList | selectedPaths () const |
| void | setFilterTerm (const QString &filter) |
| virtual void | showEvent (QShowEvent *e) override |
Protected Types | |
| enum | EditTab { TabText , TabCover , TabTagsFromPath } |
| enum class | ReleaseReason : char { Dropped , Destroyed } |
Protected Member Functions | |
| void | skinChanged () override |
| void | keyPressEvent (QKeyEvent *event) override |
| void | contextMenuEvent (QContextMenuEvent *event) override |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| void | dragLeaveEvent (QDragLeaveEvent *event) override |
| void | dragMoveEvent (QDragMoveEvent *event) override |
| void | dropEvent (QDropEvent *event) override |
| void | selectionChanged (const QItemSelection &selected, const QItemSelection &deselected) 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... | |
| QWidget * | getParentWidget () override |
| virtual void | languageChanged () |
| 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 | isValidDragPosition (const QPoint &p) const |
| virtual bool | hasDragLabel () const |
| virtual QString | dragLabel () const |
The DirectoryTreeView class.
|
overrideprotectedvirtual |
Implements InfoDialogContainer.
|
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.
|
protectedvirtualinherited |
Reimplemented in Library::ItemView.
|
protectedvirtualinherited |
Reimplemented in Preferences::Base.
|
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.
|
overrideprotectedvirtual |
Reimplemented from Gui::WidgetTemplateParent.