new feature: support for merging screens together
This commit is contained in:
@@ -66,9 +66,11 @@ class MediaLibrary : public Screen<Window>
|
||||
|
||||
virtual List *GetList();
|
||||
|
||||
virtual bool isMergable() { return true; }
|
||||
|
||||
int Columns() { return hasTwoColumns ? 2 : 3; }
|
||||
void NextColumn();
|
||||
void PrevColumn();
|
||||
bool NextColumn();
|
||||
bool PrevColumn();
|
||||
|
||||
void LocateSong(const MPD::Song &);
|
||||
|
||||
@@ -78,6 +80,7 @@ class MediaLibrary : public Screen<Window>
|
||||
|
||||
protected:
|
||||
virtual void Init();
|
||||
virtual bool isLockable() { return true; }
|
||||
|
||||
private:
|
||||
void AddToPlaylist(bool);
|
||||
@@ -92,6 +95,7 @@ class MediaLibrary : public Screen<Window>
|
||||
static bool SortAllTracks(MPD::Song *, MPD::Song *);
|
||||
|
||||
static bool hasTwoColumns;
|
||||
static size_t itsLeftColStartX;
|
||||
static size_t itsLeftColWidth;
|
||||
static size_t itsMiddleColWidth;
|
||||
static size_t itsMiddleColStartX;
|
||||
|
||||
Reference in New Issue
Block a user