Commit fa1fd6ef authored by Matthieu Gallien's avatar Matthieu Gallien 🎵 Committed by Nate Graham
Browse files

add data about child views

parent cf00393b
......@@ -193,6 +193,78 @@ public:
ViewManager::NoDiscHeaders,
ViewManager::IsRadio}};
QMap<ViewManager::ViewsType, ViewParameters> mChildViews = {
{ViewManager::OneAlbum, {ViewManager::OneAlbum,
{},
QUrl{QStringLiteral("image://icon/view-media-track")},
ViewManager::ListView,
ElisaUtils::FilterById,
ElisaUtils::Track,
Qt::DisplayRole,
ViewManager::NoSort,
ViewManager::SingleAlbum,
ViewManager::DiscHeaders,
ViewManager::IsTrack}},
{ViewManager::OneAlbumFromArtistAndGenre, {ViewManager::OneAlbumFromArtistAndGenre,
{},
QUrl{QStringLiteral("image://icon/view-media-track")},
ViewManager::ListView,
ElisaUtils::FilterById,
ElisaUtils::Track,
Qt::DisplayRole,
ViewManager::NoSort,
ViewManager::SingleAlbum,
ViewManager::DiscHeaders,
ViewManager::IsTrack}},
{ViewManager::OneAlbumFromArtist, {ViewManager::OneAlbumFromArtist,
{},
QUrl{QStringLiteral("image://icon/view-media-track")},
ViewManager::ListView,
ElisaUtils::FilterById,
ElisaUtils::Track,
Qt::DisplayRole,
ViewManager::NoSort,
ViewManager::SingleAlbum,
ViewManager::DiscHeaders,
ViewManager::IsTrack}},
{ViewManager::AllArtistsFromGenre, {ViewManager::AllArtistsFromGenre,
{},
QUrl{QStringLiteral("image://icon/view-media-artist")},
ViewManager::GridView,
ElisaUtils::FilterByGenre,
ElisaUtils::Artist,
QUrl{QStringLiteral("image://icon/view-media-artist")},
ViewManager::DelegateWithoutSecondaryText,
ViewManager::ViewHideRating}},
{ViewManager::OneArtist, {ViewManager::OneArtist,
{},
QUrl{QStringLiteral("image://icon/view-media-album-cover")},
ViewManager::GridView,
ElisaUtils::FilterByArtist,
ElisaUtils::Album,
QUrl{QStringLiteral("image://icon/media-optical-audio")},
ViewManager::DelegateWithSecondaryText,
ViewManager::ViewShowRating}},
{ViewManager::OneArtistFromGenre, {ViewManager::OneArtistFromGenre,
{},
QUrl{QStringLiteral("image://icon/view-media-album-cover")},
ViewManager::GridView,
ElisaUtils::FilterByGenreAndArtist,
ElisaUtils::Album,
QUrl{QStringLiteral("image://icon/media-optical-audio")},
ViewManager::DelegateWithSecondaryText,
ViewManager::ViewShowRating}},
};
QMap<ViewManager::ViewsType, ViewManager::ViewsType> mViewsOrder = {
{ViewManager::OneAlbum, ViewManager::AllAlbums},
{ViewManager::OneArtist, ViewManager::AllArtists},
{ViewManager::OneAlbumFromArtist, ViewManager::OneArtist},
{ViewManager::AllArtistsFromGenre, ViewManager::AllGenres},
{ViewManager::OneArtistFromGenre, ViewManager::AllArtistsFromGenre},
{ViewManager::OneAlbumFromArtistAndGenre, ViewManager::OneArtistFromGenre},
};
QString mCurrentAlbumTitle;
QString mCurrentAlbumAuthor;
QString mCurrentArtistName;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment