diff --git a/Classes/SBOptionsViewController.h b/Classes/SBOptionsViewController.h new file mode 100644 index 0000000..699f384 --- /dev/null +++ b/Classes/SBOptionsViewController.h @@ -0,0 +1,27 @@ +// +// QueueOptionsController.h +// Subler +// +// Created by Damiano Galassi on 16/03/14. +// +// + +#import + +@interface SBOptionsViewController : NSViewController { + IBOutlet NSButton *_optimizeOption; + IBOutlet NSButton *_metadataOption; + IBOutlet NSButton *_organizeGroupsOption; + IBOutlet NSButton *_autoStartOption; + + IBOutlet NSPopUpButton *_destButton; + + NSMutableDictionary *_options; + + NSURL *_destination; + BOOL _customDestination; +} + +- (instancetype)initWithOptions:(NSMutableDictionary *)options; + +@end diff --git a/Classes/SBOptionsViewController.m b/Classes/SBOptionsViewController.m new file mode 100644 index 0000000..8606e7d --- /dev/null +++ b/Classes/SBOptionsViewController.m @@ -0,0 +1,180 @@ +// +// QueueOptionsController.m +// Subler +// +// Created by Damiano Galassi on 16/03/14. +// +// + +#import "SBOptionsViewController.h" + +@interface SBOptionsViewController () + +@property NSMutableDictionary *options; + +- (IBAction)chooseDestination:(id)sender; +- (IBAction)destination:(id)sender; + +@end + +@implementation SBOptionsViewController + +@synthesize options = _options; + +- (instancetype)initWithOptions:(NSMutableDictionary *)options { + self = [self init]; + if (self) { + _options = [options retain]; + } + return self; +} + +- (instancetype)init { + self = [super initWithNibName:@"QueueOptions" bundle:nil]; + if (self) { + + } + return self; +} + +- (void)loadView { + [super loadView]; + [self prepareDestPopup]; + //[self prepareOptions]; +} + +- (void)prepareOptions { + if (self.options) { + [_optimizeOption setState:[[self.options objectForKey:@"Optimize"] boolValue]]; + [_metadataOption setState:[[self.options objectForKey:@"Metadata"] boolValue]]; + [_organizeGroupsOption setState:[[self.options objectForKey:@"Organize"] boolValue]]; + [_autoStartOption setState:[[self.options objectForKey:@"AutoStart"] boolValue]]; + } +} + +- (void)prepareDestPopup { + NSMenuItem *folderItem = nil; + + if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) { + _destination = [[NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]] retain]; + +#ifdef SB_SANDBOX + if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationBookmark"]) { + BOOL bookmarkDataIsStale; + NSError *error; + NSData *bookmarkData = [[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationBookmark"]; + + [destination release]; + destination = [[NSURL + URLByResolvingBookmarkData:bookmarkData + options:NSURLBookmarkResolutionWithSecurityScope + relativeToURL:nil + bookmarkDataIsStale:&bookmarkDataIsStale + error:&error] retain]; + } +#endif + if (![[NSFileManager defaultManager] fileExistsAtPath:[_destination path] isDirectory:nil]) + _destination = nil; + } + + if (!_destination) { + NSArray *allPaths = NSSearchPathForDirectoriesInDomains(NSMoviesDirectory, + NSUserDomainMask, + YES); + if ([allPaths count]) + _destination = [[NSURL fileURLWithPath:[allPaths lastObject]] retain];; + } + + folderItem = [self prepareDestPopupItem:_destination]; + + [[_destButton menu] insertItem:[NSMenuItem separatorItem] atIndex:0]; + [[_destButton menu] insertItem:folderItem atIndex:0]; + + if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationSelected"] boolValue]) { + [_destButton selectItem:folderItem]; + _customDestination = YES; + } +} + +- (BOOL)validateUserInterfaceItem:(id < NSValidatedUserInterfaceItem >)anItem { + SEL action = [anItem action]; + + if (action == @selector(chooseDestination:)) + return YES; + + if (action == @selector(destination:)) + return YES; + + return NO; +} + +- (IBAction)chooseDestination:(id)sender { + NSOpenPanel *panel = [NSOpenPanel openPanel]; + panel.allowsMultipleSelection = NO; + panel.canChooseFiles = NO; + panel.canChooseDirectories = YES; + panel.canCreateDirectories = YES; + + [panel setPrompt:@"Select"]; + [panel beginSheetModalForWindow:nil completionHandler:^(NSInteger result) { + if (result == NSFileHandlingPanelOKButton) { + _destination = [[panel URL] retain]; + + NSMenuItem *folderItem = [self prepareDestPopupItem:[panel URL]]; + + [[_destButton menu] removeItemAtIndex:0]; + [[_destButton menu] insertItem:folderItem atIndex:0]; + + [_destButton selectItem:folderItem]; + _customDestination = YES; + +#ifdef SB_SANDBOX + NSData *bookmark = nil; + NSError *error = nil; + bookmark = [[panel URL] bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope + includingResourceValuesForKeys:nil + relativeToURL:nil // Make it app-scoped + error:&error]; + if (error) { + NSLog(@"Error creating bookmark for URL (%@): %@", [panel URL], error); + [NSApp presentError:error]; + } + + [[NSUserDefaults standardUserDefaults] setValue:bookmark forKey:@"SBQueueDestinationBookmark"]; +#endif + [[NSUserDefaults standardUserDefaults] setValue:[[panel URL] path] forKey:@"SBQueueDestination"]; + [[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"SBQueueDestinationSelected"]; + } + else + [_destButton selectItemAtIndex:2]; + }]; +} + +- (NSMenuItem *)prepareDestPopupItem:(NSURL*) dest { + NSMenuItem *folderItem = [[NSMenuItem alloc] initWithTitle:[dest lastPathComponent] action:@selector(destination:) keyEquivalent:@""]; + [folderItem setTag:10]; + + NSImage *menuItemIcon = [[NSWorkspace sharedWorkspace] iconForFile:[dest path]]; + [menuItemIcon setSize:NSMakeSize(16, 16)]; + + [folderItem setImage:menuItemIcon]; + + return [folderItem autorelease]; +} + +- (IBAction)destination:(id)sender { + if ([sender tag] == 10) { + _customDestination = YES; + [[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"SBQueueDestinationSelected"]; + } else { + _customDestination = NO; + [[NSUserDefaults standardUserDefaults] setValue:nil forKey:@"SBQueueDestinationSelected"]; + } +} + +- (void)dealloc { + [_options release]; + [super dealloc]; +} + +@end diff --git a/Classes/SBQueueController.h b/Classes/SBQueueController.h index 0af97a1..10bf0d0 100755 --- a/Classes/SBQueueController.h +++ b/Classes/SBQueueController.h @@ -22,22 +22,14 @@ IBOutlet NSTextField *_countLabel; IBOutlet NSProgressIndicator *_progressIndicator; - IBOutlet NSButton *_optimizeOption; - IBOutlet NSButton *_metadataOption; - IBOutlet NSButton *_organizeGroupsOption; - IBOutlet NSButton *_autoStartOption; - IBOutlet NSBox *_optionsBox; - BOOL _optionsStatus; - IBOutlet NSScrollView *_tableScrollView; IBOutlet SBTableView *_tableView; - IBOutlet NSPopUpButton *_destButton; + NSMutableDictionary *_options; + NSPopover *_popover; NSImage *_docImg; - NSURL *_destination; - BOOL _customDestination; SBQueue *_queue; } @@ -60,7 +52,5 @@ - (IBAction)toggleOptions:(id)sender; - (IBAction)open:(id)sender; -- (IBAction)chooseDestination:(id)sender; -- (IBAction)destination:(id)sender; @end diff --git a/Classes/SBQueueController.m b/Classes/SBQueueController.m index 61e737a..1745297 100755 --- a/Classes/SBQueueController.m +++ b/Classes/SBQueueController.m @@ -7,6 +7,8 @@ // #import "SBQueueController.h" +#import "SBOptionsViewController.h" + #import "SBQueueItem.h" #import "SBDocument.h" #import "SBTableView.h" @@ -18,9 +20,12 @@ static NSString *fileType = @"mp4"; #define SublerBatchTableViewDataType @"SublerBatchTableViewDataType" #define kOptionsPanelHeight 88 -@interface SBQueueController () +@interface SBQueueController () @property (readonly) SBQueue *queue; +@property NSPopover *popover; + +@property NSMutableDictionary *options; - (void)start:(id)sender; - (void)stop:(id)sender; @@ -28,8 +33,6 @@ static NSString *fileType = @"mp4"; - (void)updateUI; - (void)updateDockTile; - (NSURL *)queueURL; -- (NSMenuItem *)prepareDestPopupItem:(NSURL *)dest; -- (void)prepareDestPopup; - (void)addItems:(NSArray *)items atIndexes:(NSIndexSet *)indexes; - (void)removeItems:(NSArray *)items; @@ -40,6 +43,8 @@ static NSString *fileType = @"mp4"; @implementation SBQueueController @synthesize queue = _queue; +@synthesize popover = _popover; +@synthesize options = _options; + (SBQueueController *)sharedManager { static dispatch_once_t pred; @@ -65,31 +70,14 @@ static NSString *fileType = @"mp4"; [_progressIndicator setHidden:YES]; [_countLabel setStringValue:@"Empty"]; - NSRect frame = [[self window] frame]; - frame.size.height += kOptionsPanelHeight; - frame.origin.y -= kOptionsPanelHeight; - - [[self window] setFrame:frame display:NO animate:NO]; - - frame = [[self window] frame]; - frame.size.height -= kOptionsPanelHeight; - frame.origin.y += kOptionsPanelHeight; - - [_tableScrollView setAutoresizingMask:NSViewNotSizable | NSViewMinYMargin]; - [_optionsBox setAutoresizingMask:NSViewNotSizable | NSViewMinYMargin]; - - [[self window] setFrame:frame display:YES animate:NO]; - - [_tableScrollView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; - [_optionsBox setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin]; - _docImg = [[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode('MOOV')] retain]; [_docImg setSize:NSMakeSize(16, 16)]; - [self prepareDestPopup]; - [_tableView registerForDraggedTypes: [NSArray arrayWithObjects: NSFilenamesPboardType, SublerBatchTableViewDataType, nil]]; + // Init options + [self initOptions]; + // Register to the queue notifications NSOperationQueue *mainQueue = [NSOperationQueue mainQueue]; @@ -120,6 +108,43 @@ static NSString *fileType = @"mp4"; [self updateUI]; } +- (void)initOptions { + _options = [[NSMutableDictionary alloc] init]; + [_options setObject:@YES forKey:@"Organize"]; + [_options setObject:@YES forKey:@"Metadata"]; + [_options setObject:@NO forKey:@"AutoStart"]; + [_options setObject:@YES forKey:@"Optimize"]; +} + +- (void)createPopover +{ + if (self.popover == nil) { + // create and setup our popover + _popover = [[NSPopover alloc] init]; + + // the popover retains us and we retain the popover, + // we drop the popover whenever it is closed to avoid a cycle + self.popover.contentViewController = [[SBOptionsViewController alloc] initWithOptions:self.options]; + + self.popover.appearance = NSPopoverAppearanceMinimal; + self.popover.animates = YES; + + // AppKit will close the popover when the user interacts with a user interface element outside the popover. + // note that interacting with menus or panels that become key only when needed will not cause a transient popover to close. + self.popover.behavior = NSPopoverBehaviorSemitransient; + + // so we can be notified when the popover appears or closes + self.popover.delegate = self; + } +} + +- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover { + NSWindow *window = [[NSWindow alloc] init]; + window.contentView = popover.contentViewController.view; + + return window; +} + - (NSURL *)queueURL { NSURL *appSupportURL = nil; NSArray *allPaths = NSSearchPathForDirectoriesInDomains(NSApplicationSupportDirectory, @@ -141,72 +166,6 @@ static NSString *fileType = @"mp4"; return [self.queue saveQueueToDisk]; } -- (NSMenuItem *)prepareDestPopupItem:(NSURL*) dest { - NSMenuItem *folderItem = [[NSMenuItem alloc] initWithTitle:[dest lastPathComponent] action:@selector(destination:) keyEquivalent:@""]; - [folderItem setTag:10]; - - NSImage *menuItemIcon = [[NSWorkspace sharedWorkspace] iconForFile:[dest path]]; - [menuItemIcon setSize:NSMakeSize(16, 16)]; - - [folderItem setImage:menuItemIcon]; - - return [folderItem autorelease]; -} - -- (void)prepareDestPopup { - NSMenuItem *folderItem = nil; - - if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) { - _destination = [[NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]] retain]; - -#ifdef SB_SANDBOX - if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationBookmark"]) { - BOOL bookmarkDataIsStale; - NSError *error; - NSData *bookmarkData = [[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationBookmark"]; - - [destination release]; - destination = [[NSURL - URLByResolvingBookmarkData:bookmarkData - options:NSURLBookmarkResolutionWithSecurityScope - relativeToURL:nil - bookmarkDataIsStale:&bookmarkDataIsStale - error:&error] retain]; - } -#endif - if (![[NSFileManager defaultManager] fileExistsAtPath:[_destination path] isDirectory:nil]) - _destination = nil; - } - - if (!_destination) { - NSArray *allPaths = NSSearchPathForDirectoriesInDomains(NSMoviesDirectory, - NSUserDomainMask, - YES); - if ([allPaths count]) - _destination = [[NSURL fileURLWithPath:[allPaths lastObject]] retain];; - } - - folderItem = [self prepareDestPopupItem:_destination]; - - [[_destButton menu] insertItem:[NSMenuItem separatorItem] atIndex:0]; - [[_destButton menu] insertItem:folderItem atIndex:0]; - - if ([[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestinationSelected"] boolValue]) { - [_destButton selectItem:folderItem]; - _customDestination = YES; - } -} - -- (IBAction)destination:(id)sender { - if ([sender tag] == 10) { - _customDestination = YES; - [[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"SBQueueDestinationSelected"]; - } else { - _customDestination = NO; - [[NSUserDefaults standardUserDefaults] setValue:nil forKey:@"SBQueueDestinationSelected"]; - } -} - - (void)updateDockTile { NSUInteger count = [self.queue readyCount]; @@ -256,26 +215,14 @@ static NSString *fileType = @"mp4"; } - (IBAction)toggleOptions:(id)sender { - NSInteger value = 0; - if (_optionsStatus) { - value = -kOptionsPanelHeight; - _optionsStatus = NO; + [self createPopover]; + + if (!self.popover.isShown) { + NSButton *targetButton = (NSButton *)sender; + [self.popover showRelativeToRect:[targetButton bounds] ofView:sender preferredEdge:NSMaxXEdge]; } else { - value = kOptionsPanelHeight; - _optionsStatus = YES; + [self.popover close]; } - - NSRect frame = [[self window] frame]; - frame.size.height += value; - frame.origin.y -= value; - - [_tableScrollView setAutoresizingMask:NSViewNotSizable | NSViewMinYMargin]; - [_optionsBox setAutoresizingMask:NSViewNotSizable | NSViewMinYMargin]; - - [[self window] setFrame:frame display:YES animate:YES]; - - [_tableScrollView setAutoresizingMask:NSViewWidthSizable | NSViewHeightSizable]; - [_optionsBox setAutoresizingMask:NSViewWidthSizable | NSViewMaxYMargin]; } #pragma mark Open methods @@ -301,54 +248,12 @@ static NSString *fileType = @"mp4"; [self updateUI]; - if ([_autoStartOption state]) - [self start:self]; + //if ([_autoStartOption state]) + // [self start:self]; } }]; } -- (IBAction)chooseDestination:(id)sender { - NSOpenPanel *panel = [NSOpenPanel openPanel]; - panel.allowsMultipleSelection = NO; - panel.canChooseFiles = NO; - panel.canChooseDirectories = YES; - panel.canCreateDirectories = YES; - - [panel setPrompt:@"Select"]; - [panel beginSheetModalForWindow:[self window] completionHandler:^(NSInteger result) { - if (result == NSFileHandlingPanelOKButton) { - _destination = [[panel URL] retain]; - - NSMenuItem *folderItem = [self prepareDestPopupItem:[panel URL]]; - - [[_destButton menu] removeItemAtIndex:0]; - [[_destButton menu] insertItem:folderItem atIndex:0]; - - [_destButton selectItem:folderItem]; - _customDestination = YES; - -#ifdef SB_SANDBOX - NSData *bookmark = nil; - NSError *error = nil; - bookmark = [[panel URL] bookmarkDataWithOptions:NSURLBookmarkCreationWithSecurityScope - includingResourceValuesForKeys:nil - relativeToURL:nil // Make it app-scoped - error:&error]; - if (error) { - NSLog(@"Error creating bookmark for URL (%@): %@", [panel URL], error); - [NSApp presentError:error]; - } - - [[NSUserDefaults standardUserDefaults] setValue:bookmark forKey:@"SBQueueDestinationBookmark"]; -#endif - [[NSUserDefaults standardUserDefaults] setValue:[[panel URL] path] forKey:@"SBQueueDestination"]; - [[NSUserDefaults standardUserDefaults] setValue:@"YES" forKey:@"SBQueueDestinationSelected"]; - } - else - [_destButton selectItemAtIndex:2]; - }]; -} - #pragma mark TableView - (NSInteger)numberOfRowsInTableView:(NSTableView *)aTableView { @@ -490,12 +395,6 @@ static NSString *fileType = @"mp4"; if (action == @selector(removeCompletedItems:)) return YES; - if (action == @selector(chooseDestination:)) - return YES; - - if (action == @selector(destination:)) - return YES; - return NO; } @@ -567,9 +466,6 @@ static NSString *fileType = @"mp4"; [indexes release]; [self updateUI]; - if ([_autoStartOption state]) - [self start:self]; - return YES; } } @@ -580,14 +476,18 @@ static NSString *fileType = @"mp4"; - (SBQueueItem *)createItemWithURL:(NSURL *)url { SBQueueItem *item = [SBQueueItem itemWithURL:url]; - if ([_metadataOption state] == NSOnState) { + if ([[self.options objectForKey:@"Metadata"] boolValue]) { [item addAction:[[[SBQueueMetadataAction alloc] init] autorelease]]; [item addAction:[[[SBQueueSubtitlesAction alloc] init] autorelease]]; } - if ([_organizeGroupsOption state] == NSOnState) { + if ([[self.options objectForKey:@"Organize"] boolValue]) { [item addAction:[[[SBQueueOrganizeGroupsAction alloc] init] autorelease]]; } + if ([[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]) { + _destination = [NSURL fileURLWithPath:[[NSUserDefaults standardUserDefaults] valueForKey:@"SBQueueDestination"]]; + } + item.destURL = [[[_destination URLByAppendingPathComponent:[url lastPathComponent]] URLByDeletingPathExtension] URLByAppendingPathExtension:fileType]; return item; @@ -596,9 +496,6 @@ static NSString *fileType = @"mp4"; - (void)addItem:(SBQueueItem *)item { [self addItems:[NSArray arrayWithObject:item] atIndexes:nil]; [self updateUI]; - - if ([_autoStartOption state]) - [self start:self]; } - (void)addItems:(NSArray *)items atIndexes:(NSIndexSet *)indexes; { @@ -627,7 +524,7 @@ static NSString *fileType = @"mp4"; if ([undo isUndoing] || [undo isRedoing]) [self updateUI]; - if ([_autoStartOption state]) + if ([[self.options objectForKey:@"Autostart"] boolValue]) [self start:self]; [mutableIndexes release]; diff --git a/English.lproj/Queue.xib b/English.lproj/Queue.xib index d5571b6..6014a9b 100755 --- a/English.lproj/Queue.xib +++ b/English.lproj/Queue.xib @@ -1,5 +1,5 @@ - + @@ -7,19 +7,13 @@ - - - - - - @@ -28,15 +22,15 @@ - + - + - + - + @@ -93,14 +87,14 @@ - + - + - + @@ -109,7 +103,7 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -277,6 +183,7 @@ + diff --git a/English.lproj/QueueOptions.xib b/English.lproj/QueueOptions.xib new file mode 100644 index 0000000..863f20b --- /dev/null +++ b/English.lproj/QueueOptions.xib @@ -0,0 +1,115 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/Subler.xcodeproj/project.pbxproj b/Subler.xcodeproj/project.pbxproj index ce5ec6e..6d6983a 100755 --- a/Subler.xcodeproj/project.pbxproj +++ b/Subler.xcodeproj/project.pbxproj @@ -59,6 +59,8 @@ A9D47B5A17B239E200900BCA /* EncodeComplete.png in Resources */ = {isa = PBXBuildFile; fileRef = A9D47B5617B239E200900BCA /* EncodeComplete.png */; }; A9D47B5B17B239E200900BCA /* EncodeComplete@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = A9D47B5717B239E200900BCA /* EncodeComplete@2x.png */; }; A9D73C5218BF3F1100C6FFA6 /* SBQueue.m in Sources */ = {isa = PBXBuildFile; fileRef = A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */; }; + A9EEA5F218D65490008B54B4 /* SBOptionsViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */; }; + A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */; }; A9F284A0133C9F6E00F10951 /* close.pdf in Resources */ = {isa = PBXBuildFile; fileRef = A9F2849D133C9F6E00F10951 /* close.pdf */; }; A9F284A1133C9F6E00F10951 /* close-over.pdf in Resources */ = {isa = PBXBuildFile; fileRef = A9F2849E133C9F6E00F10951 /* close-over.pdf */; }; A9F284A2133C9F6E00F10951 /* close-pressed.pdf in Resources */ = {isa = PBXBuildFile; fileRef = A9F2849F133C9F6E00F10951 /* close-pressed.pdf */; }; @@ -214,6 +216,9 @@ A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBQueue.h; path = Classes/SBQueue.h; sourceTree = ""; }; A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = ""; }; A9ED7B21180067A2008FD3A8 /* IOKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = IOKit.framework; path = System/Library/Frameworks/IOKit.framework; sourceTree = SDKROOT; }; + A9EEA5EF18D65490008B54B4 /* SBOptionsViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBOptionsViewController.h; path = Classes/SBOptionsViewController.h; sourceTree = ""; }; + A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBOptionsViewController.m; path = Classes/SBOptionsViewController.m; sourceTree = ""; }; + A9EEA5F718D654B9008B54B4 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/QueueOptions.xib; sourceTree = ""; }; A9F2849D133C9F6E00F10951 /* close.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = close.pdf; path = images/close.pdf; sourceTree = ""; }; A9F2849E133C9F6E00F10951 /* close-over.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "close-over.pdf"; path = "images/close-over.pdf"; sourceTree = ""; }; A9F2849F133C9F6E00F10951 /* close-pressed.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "close-pressed.pdf"; path = "images/close-pressed.pdf"; sourceTree = ""; }; @@ -411,6 +416,7 @@ CD71FEA412F1B62600F0A98D /* MetadataSearch.xib */, CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */, A961476513F568210068F161 /* Queue.xib */, + A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */, A90B023910F3290A000416F3 /* Prefs.xib */, ); name = NIBs; @@ -421,6 +427,8 @@ children = ( A961475F13F567E10068F161 /* SBQueueController.h */, A961476013F567E10068F161 /* SBQueueController.m */, + A9EEA5EF18D65490008B54B4 /* SBOptionsViewController.h */, + A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */, A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */, A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */, A982D0BE140AB66400B92357 /* SBQueueItem.h */, @@ -600,6 +608,7 @@ isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; files = ( + A9EEA5F818D654B9008B54B4 /* QueueOptions.xib in Resources */, A9AB486617F0AEFD000AA72E /* MovieView.xib in Resources */, 8D15AC2C0486D014006FF6A4 /* Credits.rtf in Resources */, A9AB486717F0AEFD000AA72E /* SoundView.xib in Resources */, @@ -682,6 +691,7 @@ A9AF6A7518D0496400FAAB08 /* SBQueueAction.m in Sources */, CDC06FCE1747494D003C1D0A /* iTunesStore.m in Sources */, CD03087417576A550093A0BE /* TheMovieDB3.m in Sources */, + A9EEA5F218D65490008B54B4 /* SBOptionsViewController.m in Sources */, CD03087917576AE50093A0BE /* MetadataImporter.m in Sources */, CD3F2A881761A143000D4C73 /* XMLReader.m in Sources */, A9AB485517F0AEAC000AA72E /* SBEmptyViewController.m in Sources */, @@ -795,6 +805,14 @@ name = FileImport.xib; sourceTree = ""; }; + A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */ = { + isa = PBXVariantGroup; + children = ( + A9EEA5F718D654B9008B54B4 /* English */, + ); + name = QueueOptions.xib; + sourceTree = ""; + }; CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */ = { isa = PBXVariantGroup; children = (