isa = PBXContainerItemProxy;
containerPortal = 29B97313FDCFA39411CA2CEA /* Project object */;
proxyType = 1;
- remoteGlobalIDString = A2DF58240DE4B0EF000795D5 /* shttpd */;
+ remoteGlobalIDString = A2DF58240DE4B0EF000795D5;
remoteInfo = shttpd;
};
BE1183750CE161040002D0F3 /* PBXContainerItemProxy */ = {
id item = [fTableView itemAtRow: row];
if ([item isKindOfClass: [Torrent class]] && [[(Torrent *)item dataLocation] isEqualToString: fullPath])
{
- NSRect frame = [fTableView rectOfRow: row];
+ NSRect frame = [fTableView iconRectForRow: row];
frame.origin = [fTableView convertPoint: frame.origin toView: nil];
frame.origin = [fWindow convertBaseToScreen: frame.origin];
frame.origin.y -= frame.size.height;
- (void) setTorrent: (Torrent *) torrent;
- (Torrent *) torrent;
+- (NSRect) iconRectForRow: (int) row;
+
- (int) hoveredRow;
@end
return [self menu];
}
+- (NSRect) iconRectForRow: (int) row
+{
+ FileNameCell * cell = (FileNameCell *)[[self tableColumnWithIdentifier: @"Name"] dataCell];
+ return [cell imageRectForBounds: [self rectOfRow: row]];
+}
+
- (void) updateTrackingAreas
{
[super updateTrackingAreas];
#import "InfoWindowController.h"
#import "InfoTabButtonCell.h"
+#import "FileOutlineView.h"
#import "QuickLookController.h"
#import "NSApplicationAdditions.h"
#import "NSStringAdditions.h"
id rowItem = [fileOutlineView itemAtRow: row];
if ([[folder stringByAppendingPathComponent: [rowItem objectForKey: @"Path"]] isEqualToString: fullPath])
{
- NSRect frame = [fileOutlineView rectOfRow: row];
+ NSRect frame = [fileOutlineView iconRectForRow: row];
frame.origin = [fileOutlineView convertPoint: frame.origin toView: nil];
frame.origin = [[self window] convertBaseToScreen: frame.origin];
frame.origin.y -= frame.size.height;
- (NSArray *) selectedValues;
- (NSArray *) selectedTorrents;
+- (NSRect) iconRectForRow: (int) row;
+
- (void) paste: (id) sender;
- (void) toggleControlForTorrent: (Torrent *) torrent;
}
}
+- (NSRect) iconRectForRow: (int) row
+{
+ return [fTorrentCell iconRectForBounds: [self rectOfRow: row]];
+}
+
- (void) paste: (id) sender
{
NSURL * url;