enable selecting and add sel. menu in media lib

Previously, selecting entries was only possible in the "songs" column of
the media library. Now it works in the "artists" and "albums" column as
well, allowing one to add whole albums and artist collections to the
playlist at specific positions via the "add selection" menu.
This commit is contained in:
Frank Blendinger
2009-12-11 20:59:44 +01:00
parent b504b346af
commit 486f2d32cd
2 changed files with 92 additions and 32 deletions

View File

@@ -52,8 +52,8 @@ class MediaLibrary : public Screen<Window>
virtual MPD::Song *CurrentSong();
virtual bool allowsSelection() { return w == Songs; }
virtual void ReverseSelection() { Songs->ReverseSelection(); }
virtual bool allowsSelection() { return true; }
virtual void ReverseSelection();
virtual void GetSelectedSongs(MPD::SongList &);
virtual void ApplyFilter(const std::string &);