add QuickLook to the main window (keeping it in the info window as well)

This commit is contained in:
Mitchell Livingston
2008-05-21 15:45:27 +00:00
parent 1f0c5b891c
commit 64e328a741
5 changed files with 59 additions and 22 deletions

View File

@@ -68,13 +68,7 @@ QuickLookController * fQuickLookInstance = nil;
if ([fInfoController shouldQuickLookFileView])
return [fInfoController quickLookFrameWithURL: url];
else
{
/*NSRect frame = [fImageView frame];
frame.origin = [[self window] convertBaseToScreen: frame.origin];
return frame;*/
}
return NSZeroRect;
return [fMainController quickLookFrameWithURL: url];
}
- (BOOL) quickLookSelectItems
@@ -87,19 +81,7 @@ QuickLookController * fQuickLookInstance = nil;
if ([fInfoController shouldQuickLookFileView])
urlArray = [fInfoController quickLookURLs];
else
{
/*if ([fTorrents count] > 0)
{
urlArray = [NSMutableArray arrayWithCapacity: [fTorrents count]];
NSEnumerator * enumerator = [fTorrents objectEnumerator];
Torrent * torrent;
while ((torrent = [enumerator nextObject]))
{
if ([torrent folder] || [torrent progress] == 1.0)
[urlArray addObject: [NSURL fileURLWithPath: [torrent dataLocation]]];
}
}*/
}
urlArray = [fMainController quickLookURLs];
if (urlArray && [urlArray count] > 0)
{