new feature: support for merging screens together

This commit is contained in:
Andrzej Rybczak
2011-11-12 19:47:47 +01:00
parent e31dec7005
commit 56467eaac6
44 changed files with 633 additions and 218 deletions

View File

@@ -55,6 +55,8 @@ class Playlist : public Screen<Window>
virtual List *GetList() { return w == Items ? Items : 0; }
virtual bool isMergable() { return true; }
bool isPlaying() { return NowPlaying >= 0 && !Items->Empty(); }
const MPD::Song *NowPlayingSong();
@@ -85,6 +87,7 @@ class Playlist : public Screen<Window>
protected:
virtual void Init();
virtual bool isLockable() { return true; }
private:
std::string TotalLength();