draft #1 of #2369 - use public API for QuickLook on 10.6 (and drop the hack for 10.5-support)

This commit is contained in:
Mitchell Livingston
2009-09-04 04:10:46 +00:00
parent ae675f3d6f
commit 5e2ef3aa89
12 changed files with 180 additions and 354 deletions

View File

@@ -24,13 +24,14 @@
#import <Cocoa/Cocoa.h>
#import <transmission.h>
#import <Quartz/Quartz.h>
@class Torrent;
@class TrackerTableView;
@class FileOutlineController;
@class PiecesView;
@interface InfoWindowController : NSWindowController
@interface InfoWindowController : NSWindowController <QLPreviewPanelDataSource, QLPreviewPanelDelegate>
{
NSArray * fTorrents;
NSMutableArray * fTrackers;
@@ -77,6 +78,8 @@
* fPeersConnectField;
NSString * fInitialString;
QLPreviewPanel * fPreviewPanel;
}
- (void) setInfoForTorrents: (NSArray *) torrents;
@@ -90,7 +93,6 @@
- (void) addRemoveTracker: (id) sender;
- (BOOL) shouldQuickLookFileView;
- (NSArray *) quickLookURLs;
- (BOOL) canQuickLook;
- (NSRect) quickLookFrameWithURL: (NSURL*) url;