Added another popover with some queue’s item info.
This commit is contained in:
1 parent
e71c5a93cd
commit
75e5b85cfc
11 files changed
+325
-52
No files matched your search
@@ -0,0 +1,26 @@
|
||||
//
|
||||
// SBItemViewController.h
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 19/03/14.
|
||||
//
|
||||
//
|
||||
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@class SBQueueItem;
|
||||
|
||||
@interface SBItemViewController : NSViewController {
|
||||
@private
|
||||
SBQueueItem *_item;
|
||||
|
||||
NSTextField *_nameLabel;
|
||||
NSTextField *_sourceLabel;
|
||||
NSTextField *_destinationLabel;
|
||||
|
||||
NSTextField *_actionsLabel;
|
||||
}
|
||||
|
||||
- (instancetype)initWithItem:(SBQueueItem *)item;
|
||||
|
||||
@end
|
||||
@@ -0,0 +1,75 @@
|
||||
//
|
||||
// SBItemViewController.m
|
||||
// Subler
|
||||
//
|
||||
// Created by Damiano Galassi on 19/03/14.
|
||||
//
|
||||
//
|
||||
|
||||
#import "SBItemViewController.h"
|
||||
#import "SBQueueItem.h"
|
||||
|
||||
@interface SBItemViewController ()
|
||||
|
||||
@property SBQueueItem *item;
|
||||
|
||||
@property (assign) IBOutlet NSTextField *nameLabel;
|
||||
@property (assign) IBOutlet NSTextField *sourceLabel;
|
||||
@property (assign) IBOutlet NSTextField *destinationLabel;
|
||||
|
||||
@property (assign) IBOutlet NSTextField *actionsLabel;
|
||||
|
||||
@end
|
||||
|
||||
@implementation SBItemViewController
|
||||
|
||||
@synthesize item = _item;
|
||||
|
||||
@synthesize nameLabel = _nameLabel;
|
||||
@synthesize sourceLabel = _sourceLabel;
|
||||
@synthesize destinationLabel = _destinationLabel;
|
||||
|
||||
@synthesize actionsLabel = _actionsLabel;
|
||||
|
||||
- (instancetype)initWithItem:(SBQueueItem *)item {
|
||||
self = [self init];
|
||||
if (self) {
|
||||
_item = [item retain];
|
||||
}
|
||||
return self;
|
||||
}
|
||||
|
||||
- (instancetype)init {
|
||||
self = [super initWithNibName:@"QueueItem" bundle:nil];
|
||||
return self;
|
||||
}
|
||||
|
||||
- (void)loadView {
|
||||
[super loadView];
|
||||
|
||||
[self.nameLabel setStringValue:[self.item.URL lastPathComponent]];
|
||||
[self.sourceLabel setStringValue:[self.item.URL path]];
|
||||
[self.destinationLabel setStringValue:[self.item.destURL path]];
|
||||
|
||||
NSMutableString *actions = [[NSMutableString alloc] init];
|
||||
for (id<SBQueueActionProtocol> action in self.item.actionsArray) {
|
||||
[actions appendString:[NSString stringWithFormat:@"%@\n", [action description]]];
|
||||
}
|
||||
|
||||
if ([actions length]) {
|
||||
[self.actionsLabel setStringValue:actions];
|
||||
} else {
|
||||
[self.actionsLabel setStringValue:@"None"];
|
||||
}
|
||||
|
||||
NSSize frameSize = self.view.frame.size;
|
||||
frameSize.height += [self.item.actionsArray count] ? self.actionsLabel.frame.size.height * ([self.item.actionsArray count] - 1) : 0;
|
||||
[self.view setFrameSize:frameSize];
|
||||
}
|
||||
|
||||
- (void)dealloc {
|
||||
[_item release];
|
||||
[super dealloc];
|
||||
}
|
||||
|
||||
@end
|
||||
@@ -9,6 +9,7 @@
|
||||
#import <Cocoa/Cocoa.h>
|
||||
|
||||
@interface SBOptionsViewController : NSViewController {
|
||||
@private
|
||||
IBOutlet NSPopUpButton *_destButton;
|
||||
IBOutlet NSPopUpButton *_setsPopup;
|
||||
|
||||
|
||||
@@ -26,6 +26,7 @@
|
||||
|
||||
IBOutlet NSWindow *_detachedWindow;
|
||||
NSPopover *_popover;
|
||||
NSPopover *_itemPopover;
|
||||
|
||||
NSMutableDictionary *_options;
|
||||
NSImage *_docImg;
|
||||
@@ -41,15 +42,4 @@
|
||||
|
||||
- (BOOL)saveQueueToDisk;
|
||||
|
||||
- (IBAction)removeSelectedItems:(id)sender;
|
||||
- (IBAction)removeCompletedItems:(id)sender;
|
||||
|
||||
- (IBAction)edit:(id)sender;
|
||||
- (IBAction)showInFinder:(id)sender;
|
||||
|
||||
- (IBAction)toggleStartStop:(id)sender;
|
||||
- (IBAction)toggleOptions:(id)sender;
|
||||
|
||||
- (IBAction)open:(id)sender;
|
||||
|
||||
@end
|
||||
@@ -8,6 +8,7 @@
|
||||
|
||||
#import "SBQueueController.h"
|
||||
#import "SBOptionsViewController.h"
|
||||
#import "SBItemViewController.h"
|
||||
|
||||
#import "SBQueueItem.h"
|
||||
#import "SBDocument.h"
|
||||
@@ -18,6 +19,7 @@
|
||||
#import <MP42Foundation/MP42Metadata.h>
|
||||
|
||||
static NSString *fileType = @"mp4";
|
||||
static void *SBQueueContex = &SBQueueContex;
|
||||
|
||||
#define SublerBatchTableViewDataType @"SublerBatchTableViewDataType"
|
||||
#define kOptionsPanelHeight 88
|
||||
@@ -26,9 +28,22 @@ static NSString *fileType = @"mp4";
|
||||
|
||||
@property (readonly) SBQueue *queue;
|
||||
@property NSPopover *popover;
|
||||
@property NSPopover *itemPopover;
|
||||
|
||||
@property NSMutableDictionary *options;
|
||||
|
||||
- (IBAction)removeSelectedItems:(id)sender;
|
||||
- (IBAction)removeCompletedItems:(id)sender;
|
||||
|
||||
- (IBAction)edit:(id)sender;
|
||||
- (IBAction)showInFinder:(id)sender;
|
||||
|
||||
- (IBAction)toggleStartStop:(id)sender;
|
||||
- (IBAction)toggleOptions:(id)sender;
|
||||
- (IBAction)toggleItemsOptions:(id)sender;
|
||||
|
||||
- (IBAction)open:(id)sender;
|
||||
|
||||
- (void)start:(id)sender;
|
||||
- (void)stop:(id)sender;
|
||||
|
||||
@@ -46,6 +61,7 @@ static NSString *fileType = @"mp4";
|
||||
|
||||
@synthesize queue = _queue;
|
||||
@synthesize popover = _popover;
|
||||
@synthesize itemPopover = _itemPopover;
|
||||
@synthesize options = _options;
|
||||
|
||||
+ (SBQueueController *)sharedManager {
|
||||
@@ -71,8 +87,8 @@ static NSString *fileType = @"mp4";
|
||||
[super windowDidLoad];
|
||||
|
||||
[_progressIndicator setHidden:YES];
|
||||
[_countLabel setStringValue:@"Empty"];
|
||||
|
||||
// Load a generic movie icon to display in the table view
|
||||
_docImg = [[[NSWorkspace sharedWorkspace] iconForFileType:NSFileTypeForHFSTypeCode('MOOV')] retain];
|
||||
[_docImg setSize:NSMakeSize(16, 16)];
|
||||
|
||||
@@ -112,6 +128,7 @@ static NSString *fileType = @"mp4";
|
||||
[NSApp presentError:[info valueForKey:@"Error"]];
|
||||
}];
|
||||
|
||||
// Update the UI the first time
|
||||
[self updateUI];
|
||||
}
|
||||
|
||||
@@ -158,7 +175,7 @@ static NSString *fileType = @"mp4";
|
||||
}
|
||||
|
||||
// Observe the changes to SBQueueOptimize
|
||||
[self addObserver:self forKeyPath:@"options.SBQueueOptimize" options:NSKeyValueObservingOptionInitial context:NULL];
|
||||
[self addObserver:self forKeyPath:@"options.SBQueueOptimize" options:NSKeyValueObservingOptionInitial context:SBQueueContex];
|
||||
}
|
||||
|
||||
- (NSURL *)queueURL {
|
||||
@@ -176,8 +193,10 @@ static NSString *fileType = @"mp4";
|
||||
}
|
||||
|
||||
- (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)change context:(void *)context {
|
||||
if ([keyPath isEqualToString:@"options.SBQueueOptimize"]) {
|
||||
self.queue.optimize = [[self.options objectForKey:@"SBQueueOptimize"] boolValue];
|
||||
if (context == SBQueueContex) {
|
||||
if ([keyPath isEqualToString:@"options.SBQueueOptimize"]) {
|
||||
self.queue.optimize = [[self.options objectForKey:@"SBQueueOptimize"] boolValue];
|
||||
}
|
||||
} else {
|
||||
[super observeValueForKeyPath:keyPath ofObject:object change:change context:context];
|
||||
}
|
||||
@@ -214,14 +233,41 @@ static NSString *fileType = @"mp4";
|
||||
}
|
||||
}
|
||||
|
||||
- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover {
|
||||
_detachedWindow.contentView = [[SBOptionsViewController alloc] initWithOptions:self.options].view;
|
||||
- (void)createItemPopover:(SBQueueItem *)item {
|
||||
_itemPopover = [[NSPopover alloc] init];
|
||||
|
||||
return _detachedWindow;
|
||||
// the popover retains us and we retain the popover,
|
||||
// we drop the popover whenever it is closed to avoid a cycle
|
||||
self.itemPopover.contentViewController = [[[SBItemViewController alloc] initWithItem:item] autorelease];
|
||||
self.itemPopover.appearance = NSPopoverAppearanceMinimal;
|
||||
self.itemPopover.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.itemPopover.behavior = NSPopoverBehaviorSemitransient;
|
||||
|
||||
// so we can be notified when the popover appears or closes
|
||||
self.itemPopover.delegate = self;
|
||||
|
||||
}
|
||||
|
||||
- (NSWindow *)detachableWindowForPopover:(NSPopover *)popover {
|
||||
if (popover == self.popover) {
|
||||
_detachedWindow.contentView = [[SBOptionsViewController alloc] initWithOptions:self.options].view;
|
||||
return _detachedWindow;
|
||||
}
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (void)popoverDidClose:(NSNotification *)notification {
|
||||
self.popover = nil;
|
||||
if (self.popover) {
|
||||
self.popover.contentViewController = nil;
|
||||
self.popover = nil;
|
||||
}
|
||||
if (self.itemPopover) {
|
||||
self.itemPopover.contentViewController = nil;
|
||||
self.itemPopover = nil;
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark - UI methods
|
||||
@@ -255,7 +301,7 @@ static NSString *fileType = @"mp4";
|
||||
[self.queue start];
|
||||
}
|
||||
|
||||
- (void)progressStatus: (CGFloat)progress {
|
||||
- (void)progressStatus:(CGFloat)progress {
|
||||
dispatch_async(dispatch_get_main_queue(), ^{
|
||||
[_progressIndicator setIndeterminate:NO];
|
||||
[_progressIndicator setDoubleValue:progress];
|
||||
@@ -285,6 +331,18 @@ static NSString *fileType = @"mp4";
|
||||
}
|
||||
}
|
||||
|
||||
- (IBAction)toggleItemsOptions:(id)sender {
|
||||
NSInteger clickedRow = [sender clickedRow];
|
||||
|
||||
[self createItemPopover:[self.queue itemAtIndex:clickedRow]];
|
||||
|
||||
if (!self.itemPopover.isShown) {
|
||||
[self.itemPopover showRelativeToRect:[sender frameOfCellAtColumn:2 row:clickedRow] ofView:sender preferredEdge:NSMaxXEdge];
|
||||
} else {
|
||||
[self.itemPopover close];
|
||||
}
|
||||
}
|
||||
|
||||
#pragma mark Open methods
|
||||
|
||||
- (IBAction)open:(id)sender {
|
||||
|
||||
@@ -35,7 +35,9 @@ typedef enum SBQueueItemStatus : NSInteger {
|
||||
@property (nonatomic, readonly) MP42File *mp4File;
|
||||
@property (nonatomic, readonly) NSDictionary *attributes;
|
||||
@property (nonatomic, readonly) NSURL *URL;
|
||||
@property (nonatomic, copy, readwrite) NSURL *destURL;
|
||||
@property (nonatomic, copy) NSURL *destURL;
|
||||
|
||||
@property (nonatomic, readonly) NSArray *actionsArray;
|
||||
|
||||
@property (nonatomic, readwrite) SBQueueItemStatus status;
|
||||
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
@interface SBQueueItem ()
|
||||
|
||||
@property (nonatomic, readwrite, retain) MP42File *mp4File;
|
||||
|
||||
@property (nonatomic, readwrite) NSMutableArray *actions;
|
||||
|
||||
@end
|
||||
@@ -114,6 +113,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
- (NSArray *)actionsArray {
|
||||
return [self.actions copy];
|
||||
}
|
||||
|
||||
- (void)addAction:(id<SBQueueActionProtocol>)action {
|
||||
[self.actions addObject:action];
|
||||
}
|
||||
@@ -176,12 +179,13 @@
|
||||
}
|
||||
|
||||
- (void)encodeWithCoder:(NSCoder *)coder {
|
||||
[coder encodeInt:1 forKey:@"SBQueueItemTagEncodeVersion"];
|
||||
[coder encodeInt:2 forKey:@"SBQueueItemTagEncodeVersion"];
|
||||
|
||||
[coder encodeObject:_mp4File forKey:@"SBQueueItemMp4File"];
|
||||
[coder encodeObject:_fileURL forKey:@"SBQueueItemFileURL"];
|
||||
[coder encodeObject:_destURL forKey:@"SBQueueItemDestURL"];
|
||||
[coder encodeObject:_attributes forKey:@"SBQueueItemAttributes"];
|
||||
[coder encodeObject:_actions forKey:@"SBQueueItemActions"];
|
||||
|
||||
[coder encodeInt:_status forKey:@"SBQueueItemStatus"];
|
||||
}
|
||||
@@ -194,6 +198,7 @@
|
||||
_fileURL = [[decoder decodeObjectForKey:@"SBQueueItemFileURL"] retain];
|
||||
_destURL = [[decoder decodeObjectForKey:@"SBQueueItemDestURL"] retain];
|
||||
_attributes = [[decoder decodeObjectForKey:@"SBQueueItemAttributes"] retain];
|
||||
_actions = [[decoder decodeObjectForKey:@"SBQueueItemActions"] retain];
|
||||
|
||||
_status = [decoder decodeIntForKey:@"SBQueueItemStatus"];
|
||||
|
||||
|
||||
+34
-19
@@ -23,51 +23,66 @@
|
||||
<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="332"/>
|
||||
<rect key="contentRect" x="233" y="759" width="378" height="332"/>
|
||||
<rect key="screenRect" x="0.0" y="0.0" width="2560" height="1418"/>
|
||||
<value key="minSize" type="size" width="360" height="200"/>
|
||||
<value key="minSize" type="size" width="378" height="200"/>
|
||||
<view key="contentView" id="2">
|
||||
<rect key="frame" x="0.0" y="0.0" width="488" height="332"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="378" 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="46" width="490" height="287"/>
|
||||
<rect key="frame" x="-1" y="46" width="380" 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"/>
|
||||
<rect key="frame" x="1" y="1" width="378" height="285"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" columnAutoresizingStyle="lastColumnOnly" alternatingRowBackgroundColors="YES" autosaveColumns="NO" id="7" customClass="SBTableView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="488" height="285"/>
|
||||
<tableView verticalHuggingPriority="750" allowsExpansionToolTips="YES" alternatingRowBackgroundColors="YES" autosaveColumns="NO" id="7" customClass="SBTableView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="378" height="285"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
<size key="intercellSpacing" width="3" height="2"/>
|
||||
<color key="backgroundColor" white="1" alpha="1" colorSpace="calibratedWhite"/>
|
||||
<color key="gridColor" name="gridColor" catalog="System" colorSpace="catalog"/>
|
||||
<tableColumns>
|
||||
<tableColumn identifier="statusColumn" width="20" minWidth="20" maxWidth="20" id="30">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="statusColumn">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<imageCell key="dataCell" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSFollowLinkFreestandingTemplate" id="32">
|
||||
<imageCell key="dataCell" lineBreakMode="charWrapping" refusesFirstResponder="YES" alignment="left" imageScaling="proportionallyDown" image="NSFollowLinkFreestandingTemplate" id="32">
|
||||
<font key="font" metaFont="system"/>
|
||||
</imageCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="nameColumn" editable="NO" width="462" minWidth="40" maxWidth="1000" id="8">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left">
|
||||
<tableColumn identifier="nameColumn" editable="NO" width="333" minWidth="40" maxWidth="3000" id="8">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="nameColumn">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" white="0.33333298560000002" alpha="1" colorSpace="calibratedWhite"/>
|
||||
</tableHeaderCell>
|
||||
<textFieldCell key="dataCell" lineBreakMode="truncatingTail" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="11">
|
||||
<textFieldCell key="dataCell" lineBreakMode="charWrapping" selectable="YES" editable="YES" alignment="left" title="Text Cell" id="11">
|
||||
<font key="font" metaFont="system"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES"/>
|
||||
</tableColumn>
|
||||
<tableColumn identifier="actionColumn" width="16" minWidth="16" maxWidth="16" id="AOY-6b-kkZ">
|
||||
<tableHeaderCell key="headerCell" lineBreakMode="truncatingTail" borderStyle="border" alignment="left" title="actionColumn">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="headerTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="headerColor" catalog="System" colorSpace="catalog"/>
|
||||
</tableHeaderCell>
|
||||
<buttonCell key="dataCell" type="inline" bezelStyle="inline" image="NSActionTemplate" imagePosition="overlaps" alignment="center" lineBreakMode="charWrapping" borderStyle="border" imageScaling="proportionallyDown" inset="2" id="N2p-Ol-NaN">
|
||||
<behavior key="behavior" pushIn="YES" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<connections>
|
||||
<action selector="toggleItemsOptions:" target="-2" id="Ab6-c1-OBN"/>
|
||||
</connections>
|
||||
</buttonCell>
|
||||
<tableColumnResizingMask key="resizingMask" resizeWithTable="YES" userResizable="YES"/>
|
||||
</tableColumn>
|
||||
</tableColumns>
|
||||
<connections>
|
||||
<outlet property="dataSource" destination="-2" id="26"/>
|
||||
@@ -79,7 +94,7 @@
|
||||
<color key="backgroundColor" name="controlBackgroundColor" catalog="System" colorSpace="catalog"/>
|
||||
</clipView>
|
||||
<scroller key="horizontalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="YES" id="6">
|
||||
<rect key="frame" x="1" y="271" width="488" height="15"/>
|
||||
<rect key="frame" x="1" y="270" width="378" height="16"/>
|
||||
<autoresizingMask key="autoresizingMask"/>
|
||||
</scroller>
|
||||
<scroller key="verticalScroller" hidden="YES" verticalHuggingPriority="750" horizontal="NO" id="4">
|
||||
@@ -88,10 +103,10 @@
|
||||
</scroller>
|
||||
</scrollView>
|
||||
<box autoresizesSubviews="NO" borderType="none" id="57">
|
||||
<rect key="frame" x="-4" y="-4" width="496" height="51"/>
|
||||
<rect key="frame" x="-4" y="-4" width="385" height="51"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
<view key="contentView">
|
||||
<rect key="frame" x="0.0" y="0.0" width="496" height="36"/>
|
||||
<rect key="frame" x="0.0" y="0.0" width="385" height="36"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" id="12">
|
||||
@@ -104,7 +119,7 @@
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<button verticalHuggingPriority="750" id="14">
|
||||
<rect key="frame" x="349" y="8" width="70" height="32"/>
|
||||
<rect key="frame" x="234" 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"/>
|
||||
@@ -115,7 +130,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button verticalHuggingPriority="750" id="16">
|
||||
<rect key="frame" x="415" y="8" width="38" height="32"/>
|
||||
<rect key="frame" x="302" 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"/>
|
||||
@@ -126,7 +141,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button horizontalHuggingPriority="750" verticalHuggingPriority="750" id="53">
|
||||
<rect key="frame" x="444.99999962354099" y="8" width="38" height="32"/>
|
||||
<rect key="frame" x="331" y="8" width="38" height="32"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMinX="YES" flexibleMaxY="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"/>
|
||||
@@ -137,7 +152,7 @@
|
||||
</connections>
|
||||
</button>
|
||||
<progressIndicator maxValue="100" indeterminate="YES" style="bar" id="91">
|
||||
<rect key="frame" x="197" y="15" width="150" height="20"/>
|
||||
<rect key="frame" x="197" y="15" width="35" height="20"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMaxY="YES"/>
|
||||
</progressIndicator>
|
||||
</subviews>
|
||||
|
||||
@@ -0,0 +1,89 @@
|
||||
<?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="SBItemViewController">
|
||||
<connections>
|
||||
<outlet property="actionsLabel" destination="pW0-Ga-LFI" id="8jA-6w-Inv"/>
|
||||
<outlet property="destinationLabel" destination="eTa-uz-sjk" id="ivS-cY-3Jt"/>
|
||||
<outlet property="nameLabel" destination="ITP-pW-XrQ" id="o3b-Gi-Mey"/>
|
||||
<outlet property="sourceLabel" destination="aBh-Is-f6Q" id="xCJ-Zl-gZ6"/>
|
||||
<outlet property="view" destination="c22-O7-iKe" id="eHa-ul-BOp"/>
|
||||
</connections>
|
||||
</customObject>
|
||||
<customObject id="-1" userLabel="First Responder" customClass="FirstResponder"/>
|
||||
<customObject id="-3" userLabel="Application"/>
|
||||
<customView id="c22-O7-iKe">
|
||||
<rect key="frame" x="0.0" y="0.0" width="380" height="116"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<subviews>
|
||||
<textField verticalHuggingPriority="750" id="ITP-pW-XrQ">
|
||||
<rect key="frame" x="18" y="82" width="299" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="ItemName" id="5j3-R9-JdX">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" id="MHQ-kr-DVS">
|
||||
<rect key="frame" x="18" y="42" width="73" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Destination:" id="9R2-ND-o8w">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" id="0Or-PU-gfk">
|
||||
<rect key="frame" x="43" y="20" width="50" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Actions:" id="4B2-1n-ouM">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsExpansionToolTips="YES" id="eTa-uz-sjk">
|
||||
<rect key="frame" x="95" y="42" width="267" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" sendsActionOnEndEditing="YES" title="url" id="5mD-V5-53a">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" id="990-0E-nlL">
|
||||
<rect key="frame" x="46" y="60" width="45" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" scrollable="YES" lineBreakMode="clipping" sendsActionOnEndEditing="YES" title="Source:" id="9De-A4-Oas">
|
||||
<font key="font" metaFont="smallSystemBold"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" allowsExpansionToolTips="YES" id="aBh-Is-f6Q">
|
||||
<rect key="frame" x="95" y="60" width="267" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" flexibleMinY="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" lineBreakMode="truncatingTail" selectable="YES" sendsActionOnEndEditing="YES" title="url" id="OJa-Jm-vq4">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
<textField verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" setsMaxLayoutWidthAtFirstLayout="YES" id="pW0-Ga-LFI">
|
||||
<rect key="frame" x="97" y="20" width="265" height="14"/>
|
||||
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
||||
<textFieldCell key="cell" controlSize="small" sendsActionOnEndEditing="YES" title="Multiline Label" id="SYr-MC-PZ1">
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<color key="textColor" name="controlTextColor" catalog="System" colorSpace="catalog"/>
|
||||
<color key="backgroundColor" name="controlColor" catalog="System" colorSpace="catalog"/>
|
||||
</textFieldCell>
|
||||
</textField>
|
||||
</subviews>
|
||||
</customView>
|
||||
</objects>
|
||||
</document>
|
||||
@@ -49,9 +49,9 @@
|
||||
</connections>
|
||||
</button>
|
||||
<button id="MGZ-hB-jhx">
|
||||
<rect key="frame" x="111" y="35" width="79" height="18"/>
|
||||
<rect key="frame" x="111" y="35" width="136" height="18"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<buttonCell key="cell" type="check" title="Auto-Start" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
|
||||
<buttonCell key="cell" type="check" title="Auto-Start the queue" bezelStyle="regularSquare" imagePosition="left" alignment="left" controlSize="small" state="on" inset="2" id="LYO-G0-9jA">
|
||||
<behavior key="behavior" changeContents="YES" doesNotDimImage="YES" lightByContents="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
</buttonCell>
|
||||
@@ -140,16 +140,10 @@
|
||||
<popUpButton verticalHuggingPriority="750" id="DVM-Js-DwK">
|
||||
<rect key="frame" x="176" y="69" width="128" height="22"/>
|
||||
<autoresizingMask key="autoresizingMask" flexibleMaxX="YES" flexibleMinY="YES"/>
|
||||
<popUpButtonCell key="cell" type="push" title="Item 1" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" state="on" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" selectedItem="w3H-dW-Kp2" id="bQx-xN-b3H">
|
||||
<popUpButtonCell key="cell" type="push" bezelStyle="rounded" alignment="left" controlSize="small" lineBreakMode="truncatingTail" borderStyle="borderAndBezel" imageScaling="proportionallyDown" inset="2" id="bQx-xN-b3H">
|
||||
<behavior key="behavior" lightByBackground="YES" lightByGray="YES"/>
|
||||
<font key="font" metaFont="smallSystem"/>
|
||||
<menu key="menu" title="OtherViews" id="4en-ZA-qlS">
|
||||
<items>
|
||||
<menuItem title="Item 1" state="on" id="w3H-dW-Kp2"/>
|
||||
<menuItem title="Item 2" id="fk2-Cj-YDq"/>
|
||||
<menuItem title="Item 3" id="Zeq-hi-goU"/>
|
||||
</items>
|
||||
</menu>
|
||||
<menu key="menu" title="OtherViews" id="4en-ZA-qlS"/>
|
||||
</popUpButtonCell>
|
||||
</popUpButton>
|
||||
</subviews>
|
||||
|
||||
@@ -52,6 +52,8 @@
|
||||
A9B46A9E12B79B990040517A /* ButtonToolbarItem.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46A9412B79B990040517A /* ButtonToolbarItem.m */; };
|
||||
A9B46AA412B79BB10040517A /* Subler.icns in Resources */ = {isa = PBXBuildFile; fileRef = A9B46AA312B79BB10040517A /* Subler.icns */; };
|
||||
A9B46ABF12B79D1C0040517A /* SBDocument.m in Sources */ = {isa = PBXBuildFile; fileRef = A9B46ABE12B79D1C0040517A /* SBDocument.m */; };
|
||||
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */ = {isa = PBXBuildFile; fileRef = A9BC410218D9AB8700F8C92C /* SBItemViewController.m */; };
|
||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9BC410618D9ABC000F8C92C /* QueueItem.xib */; };
|
||||
A9C055370F6D395B00AF15B5 /* FileImport.xib in Resources */ = {isa = PBXBuildFile; fileRef = A9C055360F6D395B00AF15B5 /* FileImport.xib */; };
|
||||
A9C9E34413FBC1EB00CA3B4E /* EncodeWorking.png in Resources */ = {isa = PBXBuildFile; fileRef = A9C9E34113FBC1EB00CA3B4E /* EncodeWorking.png */; };
|
||||
A9D47B5817B239E200900BCA /* EncodeCanceled.png in Resources */ = {isa = PBXBuildFile; fileRef = A9D47B5417B239E200900BCA /* EncodeCanceled.png */; };
|
||||
@@ -204,6 +206,9 @@
|
||||
A9B46ABE12B79D1C0040517A /* SBDocument.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; lineEnding = 0; name = SBDocument.m; path = Classes/SBDocument.m; sourceTree = "<group>"; xcLanguageSpecificationIdentifier = xcode.lang.objc; };
|
||||
A9B46AC112B79E230040517A /* English */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = file.xib; name = English; path = English.lproj/SBDocument.xib; sourceTree = "<group>"; };
|
||||
A9B4EE4E1643EBF3009AF6BC /* Subler.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.xml; path = Subler.entitlements; sourceTree = "<group>"; };
|
||||
A9BC410118D9AB8700F8C92C /* SBItemViewController.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = SBItemViewController.h; path = Classes/SBItemViewController.h; sourceTree = "<group>"; };
|
||||
A9BC410218D9AB8700F8C92C /* SBItemViewController.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; name = SBItemViewController.m; path = Classes/SBItemViewController.m; sourceTree = "<group>"; };
|
||||
A9BC410718D9ABC000F8C92C /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/QueueItem.xib; sourceTree = "<group>"; };
|
||||
A9C055330F6D394F00AF15B5 /* English */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = English; path = English.lproj/FileImport.xib; sourceTree = "<group>"; };
|
||||
A9C0603F168315C500FE3D98 /* libbz2.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; name = libbz2.dylib; path = usr/lib/libbz2.dylib; sourceTree = SDKROOT; };
|
||||
A9C0957F0F7B6C8C00170CAF /* AudioToolbox.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = AudioToolbox.framework; path = /System/Library/Frameworks/AudioToolbox.framework; sourceTree = "<absolute>"; };
|
||||
@@ -417,6 +422,7 @@
|
||||
CD4E6E5B12F744210095C84F /* ArtworkSelector.xib */,
|
||||
A961476513F568210068F161 /* Queue.xib */,
|
||||
A9EEA5F618D654B9008B54B4 /* QueueOptions.xib */,
|
||||
A9BC410618D9ABC000F8C92C /* QueueItem.xib */,
|
||||
A90B023910F3290A000416F3 /* Prefs.xib */,
|
||||
);
|
||||
name = NIBs;
|
||||
@@ -429,6 +435,8 @@
|
||||
A961476013F567E10068F161 /* SBQueueController.m */,
|
||||
A9EEA5EF18D65490008B54B4 /* SBOptionsViewController.h */,
|
||||
A9EEA5F018D65490008B54B4 /* SBOptionsViewController.m */,
|
||||
A9BC410118D9AB8700F8C92C /* SBItemViewController.h */,
|
||||
A9BC410218D9AB8700F8C92C /* SBItemViewController.m */,
|
||||
A9D73C5018BF3F1100C6FFA6 /* SBQueue.h */,
|
||||
A9D73C5118BF3F1100C6FFA6 /* SBQueue.m */,
|
||||
A982D0BE140AB66400B92357 /* SBQueueItem.h */,
|
||||
@@ -631,6 +639,7 @@
|
||||
A9D47B5A17B239E200900BCA /* EncodeComplete.png in Resources */,
|
||||
A975644E132A325C0051ED08 /* info-over.pdf in Resources */,
|
||||
A975644F132A325C0051ED08 /* info-pressed.pdf in Resources */,
|
||||
A9BC410818D9ABC000F8C92C /* QueueItem.xib in Resources */,
|
||||
A9F284A0133C9F6E00F10951 /* close.pdf in Resources */,
|
||||
A9F284A1133C9F6E00F10951 /* close-over.pdf in Resources */,
|
||||
A9F284A2133C9F6E00F10951 /* close-pressed.pdf in Resources */,
|
||||
@@ -670,6 +679,7 @@
|
||||
8D15AC320486D014006FF6A4 /* main.m in Sources */,
|
||||
A9AB485617F0AEAC000AA72E /* SBMovieViewController.m in Sources */,
|
||||
A960E96317D4B00900FC6ED9 /* SBImageBrowserView.m in Sources */,
|
||||
A9BC410318D9AB8700F8C92C /* SBItemViewController.m in Sources */,
|
||||
A9AB484917F0AEA2000AA72E /* SBAppDelegate.m in Sources */,
|
||||
A9B46A8C12B79B240040517A /* SBFileImport.m in Sources */,
|
||||
A9B46A8E12B79B240040517A /* SBPrefsController.m in Sources */,
|
||||
@@ -797,6 +807,14 @@
|
||||
name = SBDocument.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9BC410618D9ABC000F8C92C /* QueueItem.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
A9BC410718D9ABC000F8C92C /* English */,
|
||||
);
|
||||
name = QueueItem.xib;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
A9C055360F6D395B00AF15B5 /* FileImport.xib */ = {
|
||||
isa = PBXVariantGroup;
|
||||
children = (
|
||||
|
||||
Reference in new issue
Block a user