keybinding system rewrite

This commit is contained in:
Andrzej Rybczak
2012-07-18 01:34:55 +02:00
parent 4cf9fe33db
commit 181224b837
34 changed files with 4401 additions and 3270 deletions

View File

@@ -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; }