Queue is now a toggle.

CQTexperiment
vspader 2008-03-08 23:57:54 +00:00
parent 2124066761
commit 3375e15a83
5 changed files with 253 additions and 160 deletions

View File

@ -26,6 +26,7 @@
17211A780D68B79700911CA9 /* PathNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17211A6E0D68B79700911CA9 /* PathNode.m */; }; 17211A780D68B79700911CA9 /* PathNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17211A6E0D68B79700911CA9 /* PathNode.m */; };
17211A790D68B79700911CA9 /* SmartFolderNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17211A700D68B79700911CA9 /* SmartFolderNode.m */; }; 17211A790D68B79700911CA9 /* SmartFolderNode.m in Sources */ = {isa = PBXBuildFile; fileRef = 17211A700D68B79700911CA9 /* SmartFolderNode.m */; };
17211A7E0D68B7C500911CA9 /* FileTreePanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17211A7C0D68B7C500911CA9 /* FileTreePanel.xib */; }; 17211A7E0D68B7C500911CA9 /* FileTreePanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17211A7C0D68B7C500911CA9 /* FileTreePanel.xib */; };
17249F0F0D82E17700F33392 /* ToggleQueueTitleTransformer.m in Sources */ = {isa = PBXBuildFile; fileRef = 17249F0E0D82E17700F33392 /* ToggleQueueTitleTransformer.m */; };
173428F50D5FB1C400E8D854 /* EntriesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 173428F40D5FB1C400E8D854 /* EntriesController.m */; }; 173428F50D5FB1C400E8D854 /* EntriesController.m in Sources */ = {isa = PBXBuildFile; fileRef = 173428F40D5FB1C400E8D854 /* EntriesController.m */; };
17342A9A0D5FD20B00E8D854 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17342A980D5FD20B00E8D854 /* MainMenu.xib */; }; 17342A9A0D5FD20B00E8D854 /* MainMenu.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17342A980D5FD20B00E8D854 /* MainMenu.xib */; };
17342ABF0D5FD36400E8D854 /* OpenURLPanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17342ABD0D5FD36400E8D854 /* OpenURLPanel.xib */; }; 17342ABF0D5FD36400E8D854 /* OpenURLPanel.xib in Resources */ = {isa = PBXBuildFile; fileRef = 17342ABD0D5FD36400E8D854 /* OpenURLPanel.xib */; };
@ -511,6 +512,8 @@
17211A6F0D68B79700911CA9 /* SmartFolderNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartFolderNode.h; sourceTree = "<group>"; }; 17211A6F0D68B79700911CA9 /* SmartFolderNode.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SmartFolderNode.h; sourceTree = "<group>"; };
17211A700D68B79700911CA9 /* SmartFolderNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartFolderNode.m; sourceTree = "<group>"; }; 17211A700D68B79700911CA9 /* SmartFolderNode.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = SmartFolderNode.m; sourceTree = "<group>"; };
17211A7D0D68B7C500911CA9 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/FileTreePanel.xib; sourceTree = "<group>"; }; 17211A7D0D68B7C500911CA9 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/FileTreePanel.xib; sourceTree = "<group>"; };
17249F0D0D82E17700F33392 /* ToggleQueueTitleTransformer.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = ToggleQueueTitleTransformer.h; sourceTree = "<group>"; };
17249F0E0D82E17700F33392 /* ToggleQueueTitleTransformer.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = ToggleQueueTitleTransformer.m; sourceTree = "<group>"; };
173428F30D5FB1C400E8D854 /* EntriesController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntriesController.h; sourceTree = "<group>"; }; 173428F30D5FB1C400E8D854 /* EntriesController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = EntriesController.h; sourceTree = "<group>"; };
173428F40D5FB1C400E8D854 /* EntriesController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EntriesController.m; sourceTree = "<group>"; }; 173428F40D5FB1C400E8D854 /* EntriesController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = EntriesController.m; sourceTree = "<group>"; };
17342A990D5FD20B00E8D854 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; }; 17342A990D5FD20B00E8D854 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/MainMenu.xib; sourceTree = "<group>"; };
@ -1233,6 +1236,8 @@
170B55930D6E5E7B006B9E92 /* StatusImageTransformer.m */, 170B55930D6E5E7B006B9E92 /* StatusImageTransformer.m */,
17B7DD7B0D7CD10D00320E70 /* BlankZeroFormatter.h */, 17B7DD7B0D7CD10D00320E70 /* BlankZeroFormatter.h */,
17B7DD7C0D7CD10D00320E70 /* BlankZeroFormatter.m */, 17B7DD7C0D7CD10D00320E70 /* BlankZeroFormatter.m */,
17249F0D0D82E17700F33392 /* ToggleQueueTitleTransformer.h */,
17249F0E0D82E17700F33392 /* ToggleQueueTitleTransformer.m */,
); );
path = Playlist; path = Playlist;
sourceTree = "<group>"; sourceTree = "<group>";
@ -1718,6 +1723,7 @@
17A8F6370D6A7B0F0095DA13 /* RepeatTransformers.m in Sources */, 17A8F6370D6A7B0F0095DA13 /* RepeatTransformers.m in Sources */,
170B55940D6E5E7B006B9E92 /* StatusImageTransformer.m in Sources */, 170B55940D6E5E7B006B9E92 /* StatusImageTransformer.m in Sources */,
17B7DD7D0D7CD10D00320E70 /* BlankZeroFormatter.m in Sources */, 17B7DD7D0D7CD10D00320E70 /* BlankZeroFormatter.m in Sources */,
17249F0F0D82E17700F33392 /* ToggleQueueTitleTransformer.m in Sources */,
); );
runOnlyForDeploymentPostprocessing = 0; runOnlyForDeploymentPostprocessing = 0;
}; };

View File

@ -9,8 +9,11 @@
<object class="NSMutableArray" key="IBDocument.EditedObjectIDs"> <object class="NSMutableArray" key="IBDocument.EditedObjectIDs">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<integer value="29"/> <integer value="29"/>
<integer value="513"/>
<integer value="21"/>
<integer value="463"/>
<integer value="1324"/>
<integer value="1063"/> <integer value="1063"/>
<integer value="207"/>
</object> </object>
<object class="NSArray" key="IBDocument.PluginDependencies"> <object class="NSArray" key="IBDocument.PluginDependencies">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
@ -2331,11 +2334,14 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>filename</string> <string>filename</string>
<string>path</string> <string>path</string>
<string>status</string> <string>status</string>
<object class="NSMutableString">
<characters key="NS.bytes">queued</characters>
</object>
</object> </object>
<string key="NSObjectClassName">PlaylistEntry</string> <string key="NSObjectClassName">PlaylistEntry</string>
<bool key="NSEditable">YES</bool>
<object class="_NSManagedProxy" key="_NSManagedProxy"/> <object class="_NSManagedProxy" key="_NSManagedProxy"/>
<bool key="NSAvoidsEmptySelection">YES</bool> <bool key="NSAvoidsEmptySelection">YES</bool>
<bool key="NSPreservesSelection">YES</bool>
<bool key="NSSelectsInsertedObjects">YES</bool> <bool key="NSSelectsInsertedObjects">YES</bool>
<bool key="NSFilterRestrictsInsertion">YES</bool> <bool key="NSFilterRestrictsInsertion">YES</bool>
<bool key="NSClearsFilterPredicateOnInsertion">YES</bool> <bool key="NSClearsFilterPredicateOnInsertion">YES</bool>
@ -2773,26 +2779,10 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<nil key="NSDelegate"/> <nil key="NSDelegate"/>
</object> </object>
<object class="NSCustomView" id="13554666"> <object class="NSCustomView" id="13554666">
<nil key="NSNextResponder"/> <reference key="NSNextResponder"/>
<int key="NSvFlags">258</int> <int key="NSvFlags">258</int>
<object class="NSMutableArray" key="NSSubviews"> <object class="NSMutableArray" key="NSSubviews">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSTextField" id="363335288">
<reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">260</int>
<string key="NSFrame">{{91, 76}, {97, 22}}</string>
<reference key="NSSuperview" ref="13554666"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="192377713">
<int key="NSCellFlags">-2077098431</int>
<int key="NSCellFlags2">272630784</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="854063545"/>
<reference key="NSControlView" ref="363335288"/>
<reference key="NSBackgroundColor" ref="308735910"/>
<reference key="NSTextColor" ref="205164227"/>
</object>
</object>
<object class="NSTextField" id="973571112"> <object class="NSTextField" id="973571112">
<reference key="NSNextResponder" ref="13554666"/> <reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">260</int> <int key="NSvFlags">260</int>
@ -2857,22 +2847,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference key="NSTextColor" ref="173361739"/> <reference key="NSTextColor" ref="173361739"/>
</object> </object>
</object> </object>
<object class="NSTextField" id="994782662">
<reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">260</int>
<string key="NSFrame">{{91, 46}, {97, 22}}</string>
<reference key="NSSuperview" ref="13554666"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="657532517">
<int key="NSCellFlags">-2077098431</int>
<int key="NSCellFlags2">272630784</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="854063545"/>
<reference key="NSControlView" ref="994782662"/>
<reference key="NSBackgroundColor" ref="308735910"/>
<reference key="NSTextColor" ref="205164227"/>
</object>
</object>
<object class="NSTextField" id="219351690"> <object class="NSTextField" id="219351690">
<reference key="NSNextResponder" ref="13554666"/> <reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">257</int> <int key="NSvFlags">257</int>
@ -2880,7 +2854,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference key="NSSuperview" ref="13554666"/> <reference key="NSSuperview" ref="13554666"/>
<bool key="NSEnabled">YES</bool> <bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="853879433"> <object class="NSTextFieldCell" key="NSCell" id="853879433">
<int key="NSCellFlags">-2077098431</int> <int key="NSCellFlags">-2076574143</int>
<int key="NSCellFlags2">272630784</int> <int key="NSCellFlags2">272630784</int>
<string key="NSContents"/> <string key="NSContents"/>
<reference key="NSSupport" ref="854063545"/> <reference key="NSSupport" ref="854063545"/>
@ -2928,8 +2902,41 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<int key="NSPeriodicInterval">25</int> <int key="NSPeriodicInterval">25</int>
</object> </object>
</object> </object>
<object class="NSTextField" id="363335288">
<reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">260</int>
<string key="NSFrame">{{91, 76}, {97, 22}}</string>
<reference key="NSSuperview" ref="13554666"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="192377713">
<int key="NSCellFlags">-2077098431</int>
<int key="NSCellFlags2">272630784</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="854063545"/>
<reference key="NSControlView" ref="363335288"/>
<reference key="NSBackgroundColor" ref="308735910"/>
<reference key="NSTextColor" ref="205164227"/>
</object>
</object>
<object class="NSTextField" id="994782662">
<reference key="NSNextResponder" ref="13554666"/>
<int key="NSvFlags">260</int>
<string key="NSFrame">{{91, 46}, {97, 22}}</string>
<reference key="NSSuperview" ref="13554666"/>
<bool key="NSEnabled">YES</bool>
<object class="NSTextFieldCell" key="NSCell" id="657532517">
<int key="NSCellFlags">-2077098431</int>
<int key="NSCellFlags2">272630784</int>
<string key="NSContents"/>
<reference key="NSSupport" ref="854063545"/>
<reference key="NSControlView" ref="994782662"/>
<reference key="NSBackgroundColor" ref="308735910"/>
<reference key="NSTextColor" ref="205164227"/>
</object>
</object>
</object> </object>
<string key="NSFrameSize">{321, 103}</string> <string key="NSFrameSize">{321, 103}</string>
<reference key="NSSuperview"/>
<string key="NSClassName">NSView</string> <string key="NSClassName">NSView</string>
<string key="NSExtension">NSResponder</string> <string key="NSExtension">NSResponder</string>
</object> </object>
@ -3203,11 +3210,27 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<object class="NSMutableString"> <object class="NSMutableString">
<characters key="NS.bytes">seekable</characters> <characters key="NS.bytes">seekable</characters>
</object> </object>
<string>queued</string>
</object> </object>
<string key="NSObjectClassName">PlaylistEntry</string> <string key="NSObjectClassName">PlaylistEntry</string>
<bool key="NSEditable">YES</bool> <bool key="NSEditable">YES</bool>
<object class="_NSManagedProxy" key="_NSManagedProxy"/> <object class="_NSManagedProxy" key="_NSManagedProxy"/>
</object> </object>
<object class="NSArrayController" id="1039052152">
<object class="NSMutableArray" key="NSDeclaredKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableString">
<characters key="NS.bytes">queued</characters>
</object>
</object>
<bool key="NSEditable">YES</bool>
<object class="_NSManagedProxy" key="_NSManagedProxy"/>
<bool key="NSAvoidsEmptySelection">YES</bool>
<bool key="NSPreservesSelection">YES</bool>
<bool key="NSSelectsInsertedObjects">YES</bool>
<bool key="NSFilterRestrictsInsertion">YES</bool>
<bool key="NSClearsFilterPredicateOnInsertion">YES</bool>
</object>
</object> </object>
<object class="IBObjectContainer" key="IBDocument.Objects"> <object class="IBObjectContainer" key="IBDocument.Objects">
<object class="NSMutableArray" key="connectionRecords"> <object class="NSMutableArray" key="connectionRecords">
@ -3728,22 +3751,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">853</int> <int key="connectionID">853</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.channels</string>
<reference key="source" ref="219351690"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="219351690"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.channels</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.channels</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">877</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection"> <object class="IBBindingConnection" key="connection">
<string key="label">value: selection.bitsPerSample</string> <string key="label">value: selection.bitsPerSample</string>
@ -3768,22 +3775,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">1065</int> <int key="connectionID">1065</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.bitrate</string>
<reference key="source" ref="994782662"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="994782662"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.bitrate</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.bitrate</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">1094</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">showPrefs:</string> <string key="label">showPrefs:</string>
@ -3956,22 +3947,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">1356</int> <int key="connectionID">1356</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.sampleRate</string>
<reference key="source" ref="363335288"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="363335288"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.sampleRate</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.sampleRate</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">1359</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">remove:</string> <string key="label">remove:</string>
@ -4865,22 +4840,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">1873</int> <int key="connectionID">1873</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">removeFromQueue:</string>
<reference key="source" ref="710316598"/>
<reference key="destination" ref="939812695"/>
</object>
<int key="connectionID">1874</int>
</object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">addToQueue:</string>
<reference key="source" ref="710316598"/>
<reference key="destination" ref="533401573"/>
</object>
<int key="connectionID">1875</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">selectText:</string> <string key="label">selectText:</string>
@ -4989,14 +4948,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">1891</int> <int key="connectionID">1891</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">addToQueue:</string>
<reference key="source" ref="710316598"/>
<reference key="destination" ref="203290105"/>
</object>
<int key="connectionID">1894</int>
</object>
<object class="IBConnectionRecord"> <object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection"> <object class="IBActionConnection" key="connection">
<string key="label">stopAfterCurrent:</string> <string key="label">stopAfterCurrent:</string>
@ -5268,6 +5219,131 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
<int key="connectionID">1927</int> <int key="connectionID">1927</int>
</object> </object>
<object class="IBConnectionRecord">
<object class="IBActionConnection" key="connection">
<string key="label">toggleQueued:</string>
<reference key="source" ref="710316598"/>
<reference key="destination" ref="203290105"/>
</object>
<int key="connectionID">1934</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.channels</string>
<reference key="source" ref="219351690"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="219351690"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.channels</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.channels</string>
<object class="NSDictionary" key="NSOptions">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>NSAllowsEditingMultipleValuesSelection</string>
<string>NSAlwaysPresentsApplicationModalAlerts</string>
<string>NSConditionallySetsEditable</string>
<string>NSConditionallySetsEnabled</string>
<string>NSConditionallySetsHidden</string>
<string>NSContinuouslyUpdatesValue</string>
<string>NSMultipleValuesPlaceholder</string>
<string>NSNoSelectionPlaceholder</string>
<string>NSNotApplicablePlaceholder</string>
<string>NSNullPlaceholder</string>
<string>NSRaisesForNotApplicableKeys</string>
<string>NSValidatesImmediately</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="9"/>
<reference ref="8"/>
<reference ref="8"/>
<reference ref="8"/>
<reference ref="8"/>
<reference ref="8"/>
<string/>
<string/>
<string/>
<string/>
<reference ref="9"/>
<reference ref="9"/>
</object>
</object>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">1970</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.bitrate</string>
<reference key="source" ref="994782662"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="994782662"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.bitrate</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.bitrate</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">2015</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">contentArray: selectedObjects</string>
<reference key="source" ref="1039052152"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="1039052152"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">contentArray: selectedObjects</string>
<string key="NSBinding">contentArray</string>
<string key="NSKeyPath">selectedObjects</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">2023</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">title: arrangedObjects.queued</string>
<reference key="source" ref="203290105"/>
<reference key="destination" ref="1039052152"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="203290105"/>
<reference key="NSDestination" ref="1039052152"/>
<string key="NSLabel">title: arrangedObjects.queued</string>
<string key="NSBinding">title</string>
<string key="NSKeyPath">arrangedObjects.queued</string>
<object class="NSDictionary" key="NSOptions">
<string key="NS.key.0">NSValueTransformerName</string>
<string key="NS.object.0">ToggleQueueTitleTransformer</string>
</object>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">2025</int>
</object>
<object class="IBConnectionRecord">
<object class="IBBindingConnection" key="connection">
<string key="label">value: selection.sampleRate</string>
<reference key="source" ref="363335288"/>
<reference key="destination" ref="710316598"/>
<object class="NSNibBindingConnector" key="connector">
<reference key="NSSource" ref="363335288"/>
<reference key="NSDestination" ref="710316598"/>
<string key="NSLabel">value: selection.sampleRate</string>
<string key="NSBinding">value</string>
<string key="NSKeyPath">selection.sampleRate</string>
<int key="NSNibBindingConnectorVersion">2</int>
</object>
</object>
<int key="connectionID">2028</int>
</object>
</object> </object>
<object class="IBMutableOrderedSet" key="objectRecords"> <object class="IBMutableOrderedSet" key="objectRecords">
<object class="NSArray" key="orderedObjects"> <object class="NSArray" key="orderedObjects">
@ -6320,15 +6396,15 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference key="object" ref="13554666"/> <reference key="object" ref="13554666"/>
<object class="NSMutableArray" key="children"> <object class="NSMutableArray" key="children">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<reference ref="363335288"/>
<reference ref="973571112"/> <reference ref="973571112"/>
<reference ref="857274286"/> <reference ref="857274286"/>
<reference ref="794358669"/> <reference ref="794358669"/>
<reference ref="539256406"/> <reference ref="539256406"/>
<reference ref="994782662"/>
<reference ref="219351690"/> <reference ref="219351690"/>
<reference ref="794243417"/> <reference ref="794243417"/>
<reference ref="922840894"/> <reference ref="922840894"/>
<reference ref="363335288"/>
<reference ref="994782662"/>
</object> </object>
<reference key="parent" ref="293114310"/> <reference key="parent" ref="293114310"/>
<string key="objectName">infoView</string> <string key="objectName">infoView</string>
@ -7104,6 +7180,12 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference key="object" ref="982563044"/> <reference key="object" ref="982563044"/>
<reference key="parent" ref="756482179"/> <reference key="parent" ref="756482179"/>
</object> </object>
<object class="IBObjectRecord">
<int key="objectID">2020</int>
<reference key="object" ref="1039052152"/>
<reference key="parent" ref="293114310"/>
<string key="objectName">Playlist Selection Controller</string>
</object>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="flattenedProperties"> <object class="NSMutableDictionary" key="flattenedProperties">
@ -7160,6 +7242,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>131.ImportedFromIB2</string> <string>131.ImportedFromIB2</string>
<string>1319.IBPluginDependency</string> <string>1319.IBPluginDependency</string>
<string>1319.ImportedFromIB2</string> <string>1319.ImportedFromIB2</string>
<string>1324.IBEditorWindowLastContentRect</string>
<string>1324.IBPluginDependency</string> <string>1324.IBPluginDependency</string>
<string>1324.ImportedFromIB2</string> <string>1324.ImportedFromIB2</string>
<string>1337.IBPluginDependency</string> <string>1337.IBPluginDependency</string>
@ -7433,6 +7516,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>197.ImportedFromIB2</string> <string>197.ImportedFromIB2</string>
<string>2.IBPluginDependency</string> <string>2.IBPluginDependency</string>
<string>2.ImportedFromIB2</string> <string>2.ImportedFromIB2</string>
<string>2020.IBPluginDependency</string>
<string>206.IBPluginDependency</string> <string>206.IBPluginDependency</string>
<string>206.ImportedFromIB2</string> <string>206.ImportedFromIB2</string>
<string>207.CustomClassName</string> <string>207.CustomClassName</string>
@ -7536,11 +7620,14 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>426.ImportedFromIB2</string> <string>426.ImportedFromIB2</string>
<string>448.IBPluginDependency</string> <string>448.IBPluginDependency</string>
<string>448.ImportedFromIB2</string> <string>448.ImportedFromIB2</string>
<string>463.IBEditorWindowLastContentRect</string>
<string>463.IBPluginDependency</string> <string>463.IBPluginDependency</string>
<string>463.ImportedFromIB2</string> <string>463.ImportedFromIB2</string>
<string>463.editorWindowContentRectSynchronizationRect</string> <string>463.editorWindowContentRectSynchronizationRect</string>
<string>463.lastResizeAction</string>
<string>5.IBPluginDependency</string> <string>5.IBPluginDependency</string>
<string>5.ImportedFromIB2</string> <string>5.ImportedFromIB2</string>
<string>513.IBEditorWindowLastContentRect</string>
<string>513.IBPluginDependency</string> <string>513.IBPluginDependency</string>
<string>513.ImportedFromIB2</string> <string>513.ImportedFromIB2</string>
<string>517.IBPluginDependency</string> <string>517.IBPluginDependency</string>
@ -7628,7 +7715,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{365, 691}, {137, 23}}</string> <string>{{365, 691}, {137, 23}}</string>
<string>{{21, 898}, {169, 63}}</string> <string>{{375, 745}, {169, 63}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{482, 640}, {169, 63}}</string> <string>{{482, 640}, {169, 63}}</string>
@ -7669,6 +7756,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{0, 821}, {140, 163}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@ -7943,6 +8031,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>PlaylistView</string> <string>PlaylistView</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@ -8057,11 +8146,26 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{300, 656}, {321, 103}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{0, 653}, {321, 103}}</string> <string>{{0, 653}, {321, 103}}</string>
<object class="NSDictionary">
<bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>IBResizeActionFinalFrame</string>
<string>IBResizeActionInitialFrame</string>
</object>
<object class="NSMutableArray" key="dict.values">
<bool key="EncodedWithXMLCoder">YES</bool>
<string>{{0, 881}, {321, 103}}</string>
<string>{{0, 881}, {321, 103}}</string>
</object>
</object>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>{{21, 818}, {164, 143}}</string>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
<reference ref="9"/> <reference ref="9"/>
<string>com.apple.InterfaceBuilder.CocoaPlugin</string> <string>com.apple.InterfaceBuilder.CocoaPlugin</string>
@ -8159,7 +8263,7 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
</object> </object>
</object> </object>
<nil key="sourceID"/> <nil key="sourceID"/>
<int key="maxID">1927</int> <int key="maxID">2028</int>
</object> </object>
<object class="IBClassDescriber" key="IBDocument.Classes"> <object class="IBClassDescriber" key="IBDocument.Classes">
<object class="NSMutableArray" key="referencedPartialClassDescriptions"> <object class="NSMutableArray" key="referencedPartialClassDescriptions">
@ -8593,16 +8697,15 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<object class="NSMutableArray" key="dict.sortedKeys"> <object class="NSMutableArray" key="dict.sortedKeys">
<bool key="EncodedWithXMLCoder">YES</bool> <bool key="EncodedWithXMLCoder">YES</bool>
<string>addToQueue:</string>
<string>clear:</string> <string>clear:</string>
<string>clearFilterPredicate:</string> <string>clearFilterPredicate:</string>
<string>emptyQueueList:</string> <string>emptyQueueList:</string>
<string>removeFromQueue:</string>
<string>searchByAlbum:</string> <string>searchByAlbum:</string>
<string>searchByArtist:</string> <string>searchByArtist:</string>
<string>showEntryInFinder:</string> <string>showEntryInFinder:</string>
<string>stopAfterCurrent:</string> <string>stopAfterCurrent:</string>
<string>takeShuffleFromObject:</string> <string>takeShuffleFromObject:</string>
<string>toggleQueued:</string>
<string>toggleRepeat:</string> <string>toggleRepeat:</string>
</object> </object>
<object class="NSMutableArray" key="dict.values"> <object class="NSMutableArray" key="dict.values">
@ -8617,7 +8720,6 @@ QXBwbGUsIEluYy4sIDIwMDgAA</bytes>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string> <string>id</string>
<string>id</string>
</object> </object>
</object> </object>
<object class="NSMutableDictionary" key="outlets"> <object class="NSMutableDictionary" key="outlets">

View File

@ -87,8 +87,7 @@ typedef enum {
- (PlaylistEntry *)entryAtIndex:(int)i; - (PlaylistEntry *)entryAtIndex:(int)i;
// queue methods // queue methods
- (IBAction)addToQueue:(id)sender; - (IBAction)toggleQueued:(id)sender;
- (IBAction)removeFromQueue:(id)sender;
- (IBAction)emptyQueueList:(id)sender; - (IBAction)emptyQueueList:(id)sender;
- (NSMutableArray *)queueList; - (NSMutableArray *)queueList;

View File

@ -13,6 +13,7 @@
#import "SpotlightWindowController.h" #import "SpotlightWindowController.h"
#import "RepeatTransformers.h" #import "RepeatTransformers.h"
#import "StatusImageTransformer.h" #import "StatusImageTransformer.h"
#import "ToggleQueueTitleTransformer.h"
#import "CogAudio/AudioPlayer.h" #import "CogAudio/AudioPlayer.h"
@ -45,8 +46,18 @@
NSValueTransformer *statusImageTransformer = [[[StatusImageTransformer alloc] init] autorelease]; NSValueTransformer *statusImageTransformer = [[[StatusImageTransformer alloc] init] autorelease];
[NSValueTransformer setValueTransformer:statusImageTransformer [NSValueTransformer setValueTransformer:statusImageTransformer
forName:@"StatusImageTransformer"]; forName:@"StatusImageTransformer"];
NSValueTransformer *toggleQueueTitleTransformer = [[[ToggleQueueTitleTransformer alloc] init] autorelease];
[NSValueTransformer setValueTransformer:toggleQueueTitleTransformer
forName:@"ToggleQueueTitleTransformer"];
} }
+ (NSSet *)keyPathsForValuesAffectingSelection
{
return [NSSet setWithObjects:@"content.bitrate", @"content.sampleRate", nil];
}
- (id)initWithCoder:(NSCoder *)decoder - (id)initWithCoder:(NSCoder *)decoder
{ {
self = [super initWithCoder:decoder]; self = [super initWithCoder:decoder];
@ -647,34 +658,32 @@
} }
- (IBAction)addToQueue:(id)sender - (IBAction)toggleQueued:(id)sender
{ {
for (PlaylistEntry *queueItem in [self selectedObjects]) for (PlaylistEntry *queueItem in [self selectedObjects])
{ {
queueItem.queued = YES; if (queueItem.queued)
[queueItem setQueuePosition: [queueList count]]; {
queueItem.queued = NO;
queueItem.queuePosition = -1;
[queueList addObject:queueItem]; [queueList removeObject:queueItem];
} }
else
{
queueItem.queued = YES;
queueItem.queuePosition = [queueList count];
for (PlaylistEntry *ap in queueList) [queueList addObject:queueItem];
NSLog(@"hehe now: %d", ap.queuePosition); }
}
- (IBAction)removeFromQueue:(id)sender NSLog(@"TOGGLE QUEUED: %i", queueItem.queued);
{
for (PlaylistEntry *queueItem in [self selectedObjects])
{
queueItem.queued = NO;
[queueItem setQueuePosition:-1];
[queueList removeObject:queueItem];
} }
int i = 0; int i = 0;
for (PlaylistEntry *cur in queueList) for (PlaylistEntry *cur in queueList)
{ {
[cur setQueuePosition:i++]; cur.queuePosition = i++;
} }
} }

View File

@ -141,6 +141,8 @@
// enables right-click selection for "Show in Finder" contextual menu // enables right-click selection for "Show in Finder" contextual menu
-(NSMenu*)menuForEvent:(NSEvent*)event -(NSMenu*)menuForEvent:(NSEvent*)event
{ {
return [self menu];
//Find which row is under the cursor //Find which row is under the cursor
[[self window] makeFirstResponder:self]; [[self window] makeFirstResponder:self];
NSPoint menuPoint = [self convertPoint:[event locationInWindow] fromView:nil]; NSPoint menuPoint = [self convertPoint:[event locationInWindow] fromView:nil];
@ -204,31 +206,6 @@
[artistMenuItem release]; [artistMenuItem release];
addedItems++; addedItems++;
} }
int remQ = 0;
if (song.queuePosition > 0)
{
NSMenuItem *queueRemoveMenuItem = [NSMenuItem alloc];
NSString *retitle = [NSString
stringWithFormat:@"Remove from Queue"];
[queueRemoveMenuItem initWithTitle:retitle
action:@selector(removeFromQueue:)
keyEquivalent:@""];
queueRemoveMenuItem.target = playlistController;
[tableViewMenu insertItem:queueRemoveMenuItem atIndex:1];
[queueRemoveMenuItem release];
remQ = 1;
}
if (remQ == 1)
[tableViewMenu insertItem:[NSMenuItem separatorItem] atIndex:2];
else
[tableViewMenu insertItem:[NSMenuItem separatorItem] atIndex:1];
if(addedItems)
{
// add a separator in the right place - turned into a hack now
[tableViewMenu insertItem:[NSMenuItem separatorItem] atIndex:[tableViewMenu numberOfItems]-2];
}
} }
return [tableViewMenu autorelease]; return [tableViewMenu autorelease];