Move the Queue’s options to their own view controller.
This commit is contained in:
1 parent
d730f1699f
commit
4cacf3aedd
7 files changed
+420
-286
No files matched your search
@@ -0,0 +1,27 @@
|
||||
//
|
||||
// QueueOptionsController.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 16/03/14.
|
||||
//
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@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
|
||||
@@ -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
|
||||
@@ -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
|
||||
+63
-166
@@ -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 () <NSTableViewDelegate, NSTableViewDataSource, SBTableViewDelegate>
|
||||
@interface SBQueueController () <NSPopoverDelegate, NSTableViewDelegate, NSTableViewDataSource, SBTableViewDelegate>
|
||||
|
||||
@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];
|
||||
|
||||
+15
-108
@@ -1,5 +1,5 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D12" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D17" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1060" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
|
||||
@@ -7,19 +7,13 @@
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBQueueController">
|
||||
<connections>
|
||||
<outlet property="_autoStartOption" destination="41" id="cHt-hh-1fu"/>
|
||||
<outlet property="_countLabel" destination="12" id="BMB-K6-Foo"/>
|
||||
<outlet property="_destButton" destination="66" id="Tfd-Ed-si6"/>
|
||||
<outlet property="_metadataOption" destination="39" id="MeV-UG-OYW"/>
|
||||
<outlet property="_open" destination="16" id="r2p-1j-93j"/>
|
||||
<outlet property="_optimizeOption" destination="37" id="eOf-57-gHN"/>
|
||||
<outlet property="_optionsBox" destination="57" id="M8z-YA-4ex"/>
|
||||
<outlet property="_organizeGroupsOption" destination="93" id="GHr-Mj-KXS"/>
|
||||
<outlet property="_progressIndicator" destination="91" id="Kds-4b-YzV"/>
|
||||
<outlet property="_start" destination="14" id="V2n-b3-u1j"/>
|
||||
<outlet property="_tableScrollView" destination="3" id="AjG-kV-Ymx"/>
|
||||
<outlet property="_tableView" destination="7" id="N5e-Ro-a6f"/>
|
||||
<outlet property="destButton" destination="66" id="76"/>
|
||||
<outlet property="window" destination="1" id="25"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
@@ -28,15 +22,15 @@
|
||||
<window title="Queue" allowsToolTipsWhenApplicationIsInactive="NO" autorecalculatesKeyViewLoop="NO" oneShot="NO" releasedWhenClosed="NO" visibleAtLaunch="NO" frameAutosaveName="SBQueuePosition" animationBehavior="default" id="1">
|
||||
<windowStyleMask key="styleMask" titled="YES" closable="YES" miniaturizable="YES" resizable="YES"/>
|
||||
<windowPositionMask key="initialPositionMask" leftStrut="YES" rightStrut="YES" topStrut="YES" bottomStrut="YES"/>
|
||||
<rect key="contentRect" x="233" y="759" width="488" height="421"/>
|
||||
<rect key="contentRect" x="233" y="759" width="488" height="332"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
|
||||
<value key="minSize" type="size" width="454" height="200"/>
|
||||
<value key="minSize" type="size" width="300" height="200"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="488" height="421"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="488" height="332"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<subviews>
|
||||
<scrollView autohidesScrollers="YES" horizontalLineScroll="19" horizontalPageScroll="10" verticalLineScroll="19" verticalPageScroll="10" usesPredominantAxisScrolling="NO" id="3">
|
||||
<rect key="frame" x="-1" y="135" width="490" height="287"/>
|
||||
<rect key="frame" x="-1" y="46" width="490" height="287"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<clipView key="contentView" id="ix7-yM-0F6">
|
||||
<rect key="frame" x="1" y="1" width="488" height="285"/>
|
||||
@@ -93,14 +87,14 @@
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<box autoresizesSubviews="NO" borderType="none" id="57">
|
||||
<rect key="frame" x="-4" y="-30" width="496" height="166"/>
|
||||
<rect key="frame" x="-4" y="-4" width="496" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<view key="contentView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="496" height="151"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="496" height="36"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" id="12">
|
||||
<rect key="frame" x="16" y="133" width="186" height="17"/>
|
||||
<rect key="frame" x="17" y="18" width="186" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxX="YES" flexibleMaxY="YES"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Queue items" id="13">
|
||||
<font key="font" metaFont="system"/>
|
||||
@@ -109,7 +103,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" id="14">
|
||||
<rect key="frame" x="349" y="123" width="70" height="32"/>
|
||||
<rect key="frame" x="349" y="8" width="70" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
|
||||
<buttonCell key="cell" type="push" title="Start" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="15">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
@@ -120,7 +114,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" id="16">
|
||||
<rect key="frame" x="415" y="123" width="38" height="32"/>
|
||||
<rect key="frame" x="415" y="8" width="38" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
|
||||
<buttonCell key="cell" type="push" title="+" bezelStyle="rounded" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="17">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
@@ -130,99 +124,11 @@
|
||||
<action selector="open:" target="-2" id="19"/>
|
||||
</connections>
|
||||
</button>
|
||||
<box autoresizesSubviews="NO" borderType="line" id="34">
|
||||
<rect key="frame" x="-12" y="-3" width="521" height="133"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<view key="contentView">
|
||||
<rect key="frame" x="1" y="1" width="519" height="117"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<button id="37">
|
||||
<rect key="frame" x="32" y="83" width="80" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="38">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="46" name="value" keyPath="values.SBQueueOptimize" id="48"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="39">
|
||||
<rect key="frame" x="116" y="83" width="118" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="40">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="46" name="value" keyPath="values.SBQueueMetadata" id="50"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="41">
|
||||
<rect key="frame" x="369" y="83" width="89" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Auto-Start" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="42">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="46" name="value" keyPath="values.SBQueueAutoStart" id="52"/>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="93">
|
||||
<rect key="frame" x="238" y="83" width="129" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="94">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="46" name="value" keyPath="values.SBQueueITunesGroups" id="96"/>
|
||||
</connections>
|
||||
</button>
|
||||
<popUpButton verticalHuggingPriority="750" id="66">
|
||||
<rect key="frame" x="227" y="44" width="180" height="26"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<popUpButtonCell key="cell" type="push" title="Same as file" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="69" id="67">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" id="68">
|
||||
<items>
|
||||
<menuItem title="Same as file" state="on" id="69">
|
||||
<connections>
|
||||
<action selector="destination:" target="-2" id="77"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
<menuItem isSeparatorItem="YES" id="74"/>
|
||||
<menuItem title="Other…" id="70">
|
||||
<connections>
|
||||
<action selector="chooseDestination:" target="-2" id="75"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" id="72">
|
||||
<rect key="frame" x="113" y="50" width="109" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Default location:" id="73">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
</view>
|
||||
<color key="borderColor" white="0.0" alpha="0.41999999999999998" colorSpace="calibratedWhite"/>
|
||||
<color key="fillColor" white="0.0" alpha="0.0" colorSpace="calibratedWhite"/>
|
||||
</box>
|
||||
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" id="53">
|
||||
<rect key="frame" x="451" y="127" width="29" height="26"/>
|
||||
<rect key="frame" x="444.99999962354099" y="8" width="38" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="YES"/>
|
||||
<buttonCell key="cell" type="disclosure" bezelStyle="roundedDisclosure" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES" changeBackground="YES" changeGray="YES"/>
|
||||
<buttonCell key="cell" type="push" bezelStyle="rounded" image="NSActionTemplate" imagePosition="only" alignment="center" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="54">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
@@ -230,7 +136,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<progressIndicator maxValue="100" indeterminate="YES" style="bar" id="91">
|
||||
<rect key="frame" x="197" y="130" width="150" height="20"/>
|
||||
<rect key="frame" x="197" y="15" width="150" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
</progressIndicator>
|
||||
</subviews>
|
||||
@@ -277,6 +183,7 @@
|
||||
<userDefaultsController representsSharedInstance="YES" id="46"/>
|
||||
</objects>
|
||||
<resources>
|
||||
<image name="NSActionTemplate" width="14" height="14"/>
|
||||
<image name="NSFollowLinkFreestandingTemplate" width="10" height="10"/>
|
||||
</resources>
|
||||
</document>
|
||||
@@ -0,0 +1,115 @@
|
||||
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
||||
<document type="com.apple.InterfaceBuilder3.Cocoa.XIB" version="3.0" toolsVersion="5053" systemVersion="13D17" targetRuntime="MacOSX.Cocoa" propertyAccessControl="none">
|
||||
<dependencies>
|
||||
<deployment defaultVersion="1060" identifier="macosx"/>
|
||||
<plugIn identifier="com.apple.InterfaceBuilder.CocoaPlugin" version="5053"/>
|
||||
</dependencies>
|
||||
<objects>
|
||||
<customObject id="-2" userLabel="File's Owner" customClass="SBQueueOptViewController">
|
||||
<connections>
|
||||
<outlet property="_autoStartOption" destination="MGZ-hB-jhx" id="DRb-jB-pzy"/>
|
||||
<outlet property="_destButton" destination="86l-GG-SpO" id="bE1-31-17X"/>
|
||||
<outlet property="_metadataOption" destination="9GN-f6-r2j" id="L4N-QR-whD"/>
|
||||
<outlet property="_optimizeOption" destination="zEH-aV-Tl7" id="Pdd-Ip-hHx"/>
|
||||
<outlet property="_organizeGroupsOption" destination="ccd-Xn-Dj3" id="NhJ-bJ-y3o"/>
|
||||
<outlet property="view" destination="UlG-O3-eNc" id="hzl-ex-WZi"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application"/>
|
||||
<customView id="UlG-O3-eNc" userLabel="OptionsView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="330" height="172"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<button id="zEH-aV-Tl7">
|
||||
<rect key="frame" x="100" y="18" width="80" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Optimize" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="nig-pN-efw">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="-2" name="value" keyPath="self.options.Optimize" id="8sB-yj-wgn">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="9GN-f6-r2j">
|
||||
<rect key="frame" x="100" y="95" width="118" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Fetch Metadata" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="QNO-e1-WUJ">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="-2" name="value" keyPath="self.options.Metadata" id="QcD-oI-rV4">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="MGZ-hB-jhx">
|
||||
<rect key="frame" x="100" y="38" width="89" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Auto-Start" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="LYO-G0-9jA">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="-2" name="value" keyPath="self.options.Autostart" id="Pw0-L8-WEp">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<button id="ccd-Xn-Dj3">
|
||||
<rect key="frame" x="100" y="75" width="129" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Organize Groups" bezelStyle="regularSquare" imagePosition="left" alignment="left" state="on" inset="2" id="240-c7-2UW">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="system"/>
|
||||
</buttonCell>
|
||||
<connections>
|
||||
<binding destination="-2" name="value" keyPath="self.options.Organize" id="3lj-bb-181">
|
||||
<dictionary key="options">
|
||||
<bool key="NSValidatesImmediately" value="YES"/>
|
||||
</dictionary>
|
||||
</binding>
|
||||
</connections>
|
||||
</button>
|
||||
<popUpButton verticalHuggingPriority="750" id="86l-GG-SpO">
|
||||
<rect key="frame" x="132" y="128" width="180" height="26"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<popUpButtonCell key="cell" type="push" title="Same as file" bezelStyle="rounded" alignment="left" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="WKY-e5-5Mn" id="8bb-Gy-KAS">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="menu"/>
|
||||
<menu key="menu" title="OtherViews" id="BBw-yf-xUC">
|
||||
<items>
|
||||
<menuItem title="Same as file" state="on" id="WKY-e5-5Mn"/>
|
||||
<menuItem isSeparatorItem="YES" id="DPM-zs-KPu"/>
|
||||
<menuItem title="Other…" id="veS-S3-uYt">
|
||||
<connections>
|
||||
<action selector="chooseDestination:" target="-2" id="waN-ES-iWt"/>
|
||||
</connections>
|
||||
</menuItem>
|
||||
</items>
|
||||
</menu>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
<textField verticalHuggingPriority="750" id="vJ5-JB-k1m">
|
||||
<rect key="frame" x="18" y="134" width="109" height="17"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Default location:" id="17e-9u-rVn">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
</customView>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -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 = "<group>"; };
|
||||
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBQueue.m; path = Classes/SBQueue.m; sourceTree = "<group>"; };
|
||||
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 = "<group>"; };
|
||||
A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBOptionsViewController.m; path = Classes/SBOptionsViewController.m; sourceTree = "<group>"; };
|
||||
A9EEA5F718D654B9008B54B4 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/QueueOptions.xib; sourceTree = "<group>"; };
|
||||
A9F2849D133C9F6E00F10951 /* close.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = close.pdf; path = images/close.pdf; sourceTree = "<group>"; };
|
||||
A9F2849E133C9F6E00F10951 /* close-over.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "close-over.pdf"; path = "images/close-over.pdf"; sourceTree = "<group>"; };
|
||||
A9F2849F133C9F6E00F10951 /* close-pressed.pdf */ = {isa = PBXFileReference; lastKnownFileType = image.pdf; name = "close-pressed.pdf"; path = "images/close-pressed.pdf"; sourceTree = "<group>"; };
|
||||
@@ -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 = "<group>";
|
||||
};
|
||||
A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9EEA5F718D654B9008B54B4 /* English */,
|
||||
);
|
||||
name = QueueOptions.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
|
||||
Reference in new issue
Block a user