playlist: move sorting dialog related functions to separate file

This commit is contained in:
Andrzej Rybczak
2012-09-13 21:57:17 +02:00
parent fcc097fc76
commit 9ddfca8f31
16 changed files with 414 additions and 314 deletions

View File

@@ -27,13 +27,13 @@
#include "screen.h"
#include "song.h"
class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs, public Searchable
class Playlist : public Screen<NC::Menu<MPD::Song>>, public Filterable, public HasSongs, public Searchable
{
public:
Playlist() : itsTotalLength(0), itsRemainingTime(0), itsScrollBegin(0) { }
~Playlist() { }
// Screen<NC::Window> implementation
// Screen<NC::Menu<MPD::Song>> implementation
virtual void switchTo() OVERRIDE;
virtual void resize() OVERRIDE;
@@ -70,10 +70,7 @@ class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs,
MPD::Song nowPlayingSong();
bool isFiltered();
void Sort();
void Reverse();
bool SortingInProgress();
void EnableHighlighting();
void UpdateTimer();
@@ -87,14 +84,9 @@ class Playlist : public Screen<NC::Window>, public Filterable, public HasSongs,
bool checkForSong(const MPD::Song &s);
void moveSortOrderUp();
void moveSortOrderDown();
void registerHash(size_t hash);
void unregisterHash(size_t hash);
NC::Menu<MPD::Song> *Items;
static bool ReloadTotalLength;
static bool ReloadRemaining;