From e0a92906847801502a1a674000a6dcd208dd7401 Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Sun, 3 Feb 2019 17:32:08 -0500 Subject: [PATCH] Show the queue and update it when it changes --- Persephone.xcodeproj/project.pbxproj | 4 + Persephone/Base.lproj/Main.storyboard | 30 +++---- Persephone/MPDClient.swift | 80 ++++++++++++++----- Persephone/MPDClientDelegate.swift | 4 +- Persephone/MPDClientNotificationHandler.swift | 13 ++- Persephone/MPDClientSong.swift | 31 +++++++ Persephone/QueueController.swift | 55 +++++++++++-- Persephone/WindowController.swift | 17 ++-- 8 files changed, 178 insertions(+), 56 deletions(-) create mode 100644 Persephone/MPDClientSong.swift diff --git a/Persephone.xcodeproj/project.pbxproj b/Persephone.xcodeproj/project.pbxproj index 67f4d30..2847cea 100644 --- a/Persephone.xcodeproj/project.pbxproj +++ b/Persephone.xcodeproj/project.pbxproj @@ -20,6 +20,7 @@ E4E8CC902204EC7F0024217A /* MPDClientDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4E8CC8F2204EC7F0024217A /* MPDClientDelegate.swift */; }; E4E8CC922204F4B80024217A /* QueueController.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4E8CC912204F4B80024217A /* QueueController.swift */; }; E4E8CC942206097F0024217A /* MPDClientNotificationHandler.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4E8CC932206097F0024217A /* MPDClientNotificationHandler.swift */; }; + E4E8CC9A22075D370024217A /* MPDClientSong.swift in Sources */ = {isa = PBXBuildFile; fileRef = E4E8CC9922075D370024217A /* MPDClientSong.swift */; }; /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ @@ -109,6 +110,7 @@ E4E8CC8F2204EC7F0024217A /* MPDClientDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MPDClientDelegate.swift; sourceTree = ""; }; E4E8CC912204F4B80024217A /* QueueController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = QueueController.swift; sourceTree = ""; }; E4E8CC932206097F0024217A /* MPDClientNotificationHandler.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MPDClientNotificationHandler.swift; sourceTree = ""; }; + E4E8CC9922075D370024217A /* MPDClientSong.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MPDClientSong.swift; sourceTree = ""; }; /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ @@ -171,6 +173,7 @@ E40786242110CE70006887B1 /* Info.plist */, E40786252110CE70006887B1 /* Persephone.entitlements */, E4E8CC932206097F0024217A /* MPDClientNotificationHandler.swift */, + E4E8CC9922075D370024217A /* MPDClientSong.swift */, E4E8CC8F2204EC7F0024217A /* MPDClientDelegate.swift */, E41B22C521FB932700D544F6 /* MPDClient.swift */, ); @@ -395,6 +398,7 @@ E465049A21E94DF500A70F4C /* WindowController.swift in Sources */, E41B22C621FB932700D544F6 /* MPDClient.swift in Sources */, E407861C2110CE6E006887B1 /* AppDelegate.swift in Sources */, + E4E8CC9A22075D370024217A /* MPDClientSong.swift in Sources */, E4E8CC902204EC7F0024217A /* MPDClientDelegate.swift in Sources */, E4E8CC922204F4B80024217A /* QueueController.swift in Sources */, ); diff --git a/Persephone/Base.lproj/Main.storyboard b/Persephone/Base.lproj/Main.storyboard index e1ace0f..ffef13b 100644 --- a/Persephone/Base.lproj/Main.storyboard +++ b/Persephone/Base.lproj/Main.storyboard @@ -713,25 +713,9 @@ - - - - - - - - - - - - - - - - @@ -739,7 +723,6 @@ - @@ -807,7 +790,7 @@ - + @@ -829,7 +812,7 @@ - + @@ -865,12 +848,16 @@ + + + +