Changeset 2718
- Timestamp:
- Aug 11, 2007, 2:33:10 AM (15 years ago)
- Location:
- trunk/macosx
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/macosx/Torrent.m
r2715 r2718 1005 1005 1006 1006 - (BOOL) isError 1007 { return YES;1007 { 1008 1008 return fStat->error != 0; 1009 1009 } -
trunk/macosx/TorrentCell.h
r2716 r2718 23 23 *****************************************************************************/ 24 24 25 #import "CTGradient.h" 25 @class CTGradient; 26 26 27 27 @interface TorrentCell : NSCell -
trunk/macosx/TorrentTableView.m
r2716 r2718 508 508 if (row < 0 || ![fDefaults boolForKey: @"SmallView"]) 509 509 return NO; 510 511 Torrent * torrent = [fTorrents objectAtIndex: row]; 512 NSString * statusString = ![fDefaults boolForKey: @"SmallStatusRegular"] && [torrent isActive] 513 ? [torrent remainingTimeString] : [torrent shortStatusString]; 514 515 float statusWidth = [statusString sizeWithAttributes: fSmallStatusAttributes].width + 3.0; 516 517 NSRect cellRect = [self frameOfCellAtColumn: [self columnWithIdentifier: @"Torrent"] row: row]; 518 NSRect statusRect = NSMakeRect(NSMaxX(cellRect) - statusWidth, cellRect.origin.y, 519 statusWidth, cellRect.size.height - BUTTON_WIDTH); 520 521 return NSPointInRect(point, statusRect); 510 511 TorrentCell * cell = [[self tableColumnWithIdentifier: @"Torrent"] dataCell]; 512 [cell setRepresentedObject: [fTorrents objectAtIndex: row]]; 513 return NSPointInRect(point, [cell minimalStatusRectForBounds: [self frameOfCellAtColumn: 0 row: row]]); 522 514 } 523 515
Note: See TracChangeset
for help on using the changeset viewer.