add interface HasColumns and its appropriate implementations
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
#include "interfaces.h"
|
||||
#include "screen.h"
|
||||
|
||||
class MediaLibrary : public Screen<NC::Window>, public Filterable, public HasSongs, public Searchable
|
||||
class MediaLibrary : public Screen<NC::Window>, public Filterable, public HasColumns, public HasSongs, public Searchable
|
||||
{
|
||||
public:
|
||||
virtual void SwitchTo() OVERRIDE;
|
||||
@@ -42,33 +42,34 @@ class MediaLibrary : public Screen<NC::Window>, public Filterable, public HasSon
|
||||
virtual bool isTabbable() OVERRIDE { return true; }
|
||||
virtual bool isMergable() OVERRIDE { return true; }
|
||||
|
||||
/// Filterable implementation
|
||||
// Filterable implementation
|
||||
virtual bool allowsFiltering() OVERRIDE;
|
||||
virtual std::string currentFilter() OVERRIDE;
|
||||
virtual void applyFilter(const std::string &filter) OVERRIDE;
|
||||
|
||||
/// Searchable implementation
|
||||
// Searchable implementation
|
||||
virtual bool allowsSearching() OVERRIDE;
|
||||
virtual bool search(const std::string &constraint) OVERRIDE;
|
||||
virtual void nextFound(bool wrap) OVERRIDE;
|
||||
virtual void prevFound(bool wrap) OVERRIDE;
|
||||
|
||||
/// HasSongs implementation
|
||||
// HasSongs implementation
|
||||
virtual std::shared_ptr<ProxySongList> getProxySongList() OVERRIDE;
|
||||
|
||||
virtual bool allowsSelection() OVERRIDE;
|
||||
virtual void reverseSelection() OVERRIDE;
|
||||
virtual MPD::SongList getSelectedSongs() OVERRIDE;
|
||||
|
||||
// HasColumns implementation
|
||||
virtual bool previousColumnAvailable() OVERRIDE;
|
||||
virtual void previousColumn() OVERRIDE;
|
||||
|
||||
virtual bool nextColumnAvailable() OVERRIDE;
|
||||
virtual void nextColumn() OVERRIDE;
|
||||
|
||||
// private members
|
||||
int Columns();
|
||||
bool isNextColumnAvailable();
|
||||
void NextColumn();
|
||||
bool isPrevColumnAvailable();
|
||||
void PrevColumn();
|
||||
|
||||
void LocateSong(const MPD::Song &);
|
||||
|
||||
std::shared_ptr<ProxySongList> songsProxyList();
|
||||
|
||||
struct SearchConstraints
|
||||
|
||||
Reference in New Issue
Block a user