1 #ifndef LIBRARYTREEVIEW_H 2 #define LIBRARYTREEVIEW_H 14 #include <QSortFilterProxyModel> 15 #include <QStandardItemModel> 48 QMap<AlbumItem*, QImage*> _expandedCovers;
55 QTranslator translator;
66 const QImage *expandedCover(
AlbumItem *album)
const;
69 virtual void findAll(
const QModelIndex &index, QList<QUrl> *tracks)
const override;
77 virtual void contextMenuEvent(QContextMenuEvent *event)
override;
80 virtual void keyboardSearch(
const QString &search)
override;
82 virtual void keyPressEvent(QKeyEvent *event)
override;
84 virtual void keyReleaseEvent(QKeyEvent *event)
override;
86 virtual void paintEvent(QPaintEvent *)
override;
90 int count(
const QModelIndex &index)
const;
93 virtual int countAll(
const QModelIndexList &indexes)
const override;
100 void changeSortOrder();
103 virtual void reset()
override;
106 void endPopulateTree();
108 void removeExpandedCover(
const QModelIndex &index);
110 void scrollToLetter(
const QString &letter);
112 void setExpandedCover(
const QModelIndex &index);
117 #endif // LIBRARYTREEVIEW_H The LibraryTreeView class is displaying tracks in a tree.
Definition: librarytreeview.h:36
ViewProperty
Definition: settings.h:32
virtual void updateSelectedTracks()=0
The SeparatorItem class.
Definition: separatoritem.h:12
The YearItem class.
Definition: yearitem.h:13
The AlbumItem class.
Definition: albumitem.h:12
The LibraryItemDelegate class.
Definition: libraryitemdelegate.h:24
The TreeView class is the base class for displaying trees in the player.
Definition: treeview.h:14
The LibraryItemModel class is used to cache information from the database, in order to increase perfo...
Definition: libraryitemmodel.h:18
The ArtistItem class.
Definition: artistitem.h:12
JumpToWidget * jumpToWidget() const
Definition: librarytreeview.h:71
LibraryItemModel * model() const
Definition: librarytreeview.h:73
QMenu * properties
Definition: librarytreeview.h:60
The TrackItem class.
Definition: trackitem.h:12
#define MIAMLIBRARY_LIBRARY
Definition: miamlibrary_global.hpp:8
virtual void findAll(const QModelIndex &index, QList< QUrl > *tracks) const =0
The LibraryFilterLineEdit class.
Definition: libraryfilterlineedit.h:19
The MiamSortFilterProxyModel class provides support for the MiamItemModel class.
Definition: miamsortfilterproxymodel.h:18
virtual int countAll(const QModelIndexList &indexes) const =0
The LibraryFilterProxyModel class is used to filter Library by looking in all items.
Definition: libraryfilterproxymodel.h:18
The DiscItem class.
Definition: discitem.h:12