make media library show more songs (with incomplete tags etc.)
This commit is contained in:
@@ -36,6 +36,11 @@ class MediaLibrary : public Screen<Window>
|
||||
std::string Year;
|
||||
};
|
||||
|
||||
struct SearchConstraintsSorting
|
||||
{
|
||||
bool operator()(const SearchConstraints &a, const SearchConstraints &b) const;
|
||||
};
|
||||
|
||||
public:
|
||||
virtual void SwitchTo();
|
||||
virtual void Resize();
|
||||
@@ -67,7 +72,7 @@ class MediaLibrary : public Screen<Window>
|
||||
void LocateSong(const MPD::Song &);
|
||||
|
||||
Menu<std::string> *Artists;
|
||||
Menu< std::pair<std::string, SearchConstraints> > *Albums;
|
||||
Menu<SearchConstraints> *Albums;
|
||||
Menu<MPD::Song> *Songs;
|
||||
|
||||
protected:
|
||||
@@ -78,6 +83,9 @@ class MediaLibrary : public Screen<Window>
|
||||
|
||||
static std::string SongToString(const MPD::Song &s, void *);
|
||||
|
||||
static std::string AlbumToString(const SearchConstraints &, void *);
|
||||
static void DisplayAlbums(const SearchConstraints &, void *, Menu<SearchConstraints> *);
|
||||
|
||||
static bool SortSongsByTrack(MPD::Song *, MPD::Song *);
|
||||
static bool SortSongsByYear(MPD::Song *, MPD::Song *);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user