allow quicklook of transfers through the inspector; add a quicklook button; move quicklook code from the file controller to the info controller

This commit is contained in:
Mitchell Livingston
2008-05-20 23:04:23 +00:00
parent bb3f77d2cd
commit 7983c5484a
6 changed files with 258 additions and 149 deletions

View File

@@ -24,6 +24,7 @@
#import "FileOutlineView.h"
#import "FileOutlineController.h"
#import "InfoWindowController.h"
#import "FileNameCell.h"
#import "FilePriorityCell.h"
#import "Torrent.h"
@@ -88,11 +89,11 @@
{
unichar firstChar = [[event charactersIgnoringModifiers] characterAtIndex: 0];
if (firstChar == ' ')
[(FileOutlineController *)[super delegate] userDidPressSpaceInOutlineView: self];
[(InfoWindowController *)[[self window] windowController] toggleQuickLook: nil];
else if (firstChar == NSRightArrowFunctionKey)
[(FileOutlineController *)[super delegate] userDidPressRightInOutlineView: self];
[(InfoWindowController *)[[self window] windowController] quickLookPressRight];
else if (firstChar == NSLeftArrowFunctionKey)
[(FileOutlineController *)[super delegate] userDidPressLeftInOutlineView: self];
[(InfoWindowController *)[[self window] windowController] quickLookPressLeft];
else;
[super keyDown: event];