keybinding system rewrite
This commit is contained in:
@@ -30,6 +30,8 @@
|
||||
class Playlist : public Screen<Window>
|
||||
{
|
||||
public:
|
||||
enum Movement { mUp, mDown };
|
||||
|
||||
Playlist() : NowPlaying(-1), itsTotalLength(0), itsRemainingTime(0), itsScrollBegin(0) { }
|
||||
~Playlist() { }
|
||||
|
||||
@@ -57,11 +59,15 @@ class Playlist : public Screen<Window>
|
||||
|
||||
virtual bool isMergable() { return true; }
|
||||
|
||||
bool isFiltered();
|
||||
bool isPlaying() { return NowPlaying >= 0 && !Items->Empty(); }
|
||||
const MPD::Song *NowPlayingSong();
|
||||
|
||||
void MoveSelectedItems(Movement where);
|
||||
|
||||
void Sort();
|
||||
void AdjustSortOrder(int key);
|
||||
void Reverse();
|
||||
void AdjustSortOrder(Movement where);
|
||||
bool SortingInProgress() { return w == SortDialog; }
|
||||
void FixPositions(size_t = 0);
|
||||
|
||||
@@ -82,9 +88,6 @@ class Playlist : public Screen<Window>
|
||||
static bool ReloadTotalLength;
|
||||
static bool ReloadRemaining;
|
||||
|
||||
static bool BlockNowPlayingUpdate;
|
||||
static bool BlockUpdate;
|
||||
|
||||
protected:
|
||||
virtual void Init();
|
||||
virtual bool isLockable() { return true; }
|
||||
|
||||
Reference in New Issue
Block a user